U1 music shows unknown artist, how can I make it recognize m4a files?

we are actively working to properly support m4a files. There will be updates about this within the next month or two.


Converting to btrfs from md raid5 with lvm

FYI, you don't need a separate /boot partition on a raid1; grub2 can boot directly from lvm on raid5.

If your raid5 is partitioned and currently LVM is using /dev/md1p1 as the PV, then you can shrink the PV, shrink the partition, and create a new partition using the free space to use for btrfs.

You will need to use parted to shrink the lvm partition after using pvresize to have LVM release part of it.  You will need to have parted use sectors for the units and delete the LVM partition, and recreate it with the same start sector, but a shorter length.  This will require either that the partition not be in use ( do it from a livecd ), or will complain that it could not update the kernel, and you will have to reboot for it to take affect.

After that, you can use gparted to create a new btrfs partition using the free space, then add it to /etc/fstab, mount it, and transfer some files.  To move more space, you will need to repeat the pvresize and parted shrink step, then use gparted to move the btrfs partition to the left, and expand.  This will take a long time because it has to copy all of the existing data in the btrfs partition.

It would be much easier, safer, and faster to simply create a new LV using whatever space is currently free in the VG, and format it with btrfs, then transfer some files, shrink an existing LV with resize2fs ( assuming it's ext4, and it will need to be unmounted to do this ) and lvresize, then add the space to the btrfs lv with lvresize, and tell btrfs to use the new space with btrfs filesystem resize max /path/to/btrfs-mount.


To install Seam, download the .deb file from the Steam website.
After you download it, just run the file to install it.


Can I remove Windows Boot Manager from dedicated Ubuntu computer?

It is normal to have two ubuntu entries. One is shim and the other grub. You can see the details of each with :

sudo efibootmgr -v

You can delete the /EFI/Microsoft folder in the ESP - efi system partition and then delete the UEFI NVRAM entries. If you leave the folder, UEFI will often find the boot files & add them again to UEFI boot menu. It can depend on how you have mounted ESP on where it is. Inside install it is /boot/efi/EFI/Microsoft. But newer versions of Ubuntu make ESP write protected with 0077 mount permissions in fstab. Change to defaults like 14.04 and remount to make sure no errors before rebooting and you have to reboot for new permissions on /efi to take effect:

sudo nano /etc/fstab
sudo mount -a

14.04 fstab entry defaults

UUID=FD76-E33D  /boot/efi       vfat    defaults        0       1

16.04 fstab entry umask=0077

UUID=68CD-3368  /boot/efi       vfat    umask=0077      0       1

This discusses the removal of an entry. Just be sure to use the Windows one:

How do I remove "Ubuntu" in the bios boot menu? (UEFI)

Delete entry change XXXX to correct entries. Some UEFI require all 4 HEX char, other just need 1 or 2 significant char.

sudo efibootmgr -b XXXX -B

details on efibootmgr commands:

man efibootmgr

http://linux.die.net/man/8/efibootmgr


Ubuntu 13.04 on Mac Mini 6,2 ethernet port Broadcom NetXtreme BCM57766 not detected

OK - after rebuilding the kernel as per https://wiki.ubuntu.com/Kernel/BuildYourOwnKernel>https://wiki.ubuntu.com/Kernel/BuildYourOwnKernel and prior build run, adapting the tg3.c file as per previous message, the Network card is detected and running fine now.

[ 5140.908163] tg3.c:v3.128 (December 03, 2012)
[ 5140.921437] tg3 0000:01:00.0: enabling device (0000 -> 0002)
[ 5140.944063] tg3 0000:01:00.0 eth0: Tigon3 [partno(BCM957766a) rev 57766001] (PCI Express) MAC address 10:dd:b1:99:95:2a
[ 5140.944074] tg3 0000:01:00.0 eth0: attached PHY is 57765 (10/100/1000Base-T Ethernet) (WireSpeed[1], EEE[0])
[ 5140.944079] tg3 0000:01:00.0 eth0: RXcsums[1] LinkChgREG[0] MIirq[0] ASF[0] TSOcap[1]
[ 5140.944084] tg3 0000:01:00.0 eth0: dma_rwctrl[00000001] dma_mask[64-bit]
[ 5140.957230] tg3 0000:01:00.0: irq 26 for MSI/MSI-X
[ 5140.957249] tg3 0000:01:00.0: irq 27 for MSI/MSI-X
[ 5140.957263] tg3 0000:01:00.0: irq 28 for MSI/MSI-X
[ 5140.957297] tg3 0000:01:00.0: irq 29 for MSI/MSI-X
[ 5140.957310] tg3 0000:01:00.0: irq 30 for MSI/MSI-X
[ 5141.230492] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[ 5141.230964] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[ 5144.225216] tg3 0000:01:00.0 eth0: Link is up at 1000 Mbps, full duplex
[ 5144.225224] tg3 0000:01:00.0 eth0: Flow control is on for TX and on for RX
[ 5144.225250] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready

In case someone neeeds just the tg3.ko driver - let me know. I'll send it by mail.
It should load into the normal current kernel:

Linux Pandora 3.8.0-19-generic #30-Ubuntu SMP Wed May 1 16:35:23 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux


I loaded a program in wine and I cant find it

you could try push alt + f2 and type wineremove, and then use wineremove and push tab application, and then add/remove the software from the c: drev /program files, and then delete it this should work, and then install it you can install the software again, and then you can run it from the wine application.


Is there a way to determine how to launch any program from the command line

Short Version:

Find the Exec command for your app by grepping the applications directory

grep 'Calculator' /usr/share/applications/*

Start the app

gcalctool

Kill it by hitting Ctrl+C

First, find out where your application is. A few directories are in an environment variable $PATH, so that you don't have to type the whole directory.

One way to find your app is to open the Menu Editor (right click on the Applications Menu and select Edit Menus) and find the app's command.

The calculator, for example is gcalctool at /usr/bin/gcalctool (use the whereis command to find the exact path of an app). Since /usr/bin is in the PATH variable (type echo $PATH), you can run it in your terminal by typing gcalctool.

It's now running in the foreground. You can pause it by pressing Ctrl+Z, resume it in the background by typing bg,or resume it in the foreground by typing fg. You can also use fg to raise an app to the foreground.

If you do this with multiple apps, you can use jobs to get a numbered list of all of them, and then use, for example, fg 3 to raise one of them.

An App that is in the foreground can be killed with Ctrl+C or Ctrl+\ (if it doesn't react to the former).

A universal way to find your app is to open the File Browser, go to Filesystem → usr → share → applications and to find your app there.

You'll see a bunch of .desktop files, which you can drag into a Text Editor (or use cat) to read. This is a piece of the Calculators .desktop file:
[Desktop Entry]
Name=Calculator
Comment=Perform arithmetic, scientific or financial calculations
Exec=gcalctool

The Exec entry is what you're interested in here. It's the same you would see if you went to the Menu Editor, just quicker. You can grep the files to search them for your app, if you can't find it.

If the app doesn't have a .desktop file in the applications directory, you have to know it's command of course. Use TAB to get suggestions from just a few letters. Press tab, tab, y to get a huge list of every application.


Thanks @irrational John & @david6 for your replies. Yeah fullahs, I had found it in a forum that I needed to do a fresh install to switch from 32bit to 64bit. I found the problem. It was as you as you suggested John. I was using Brasero to create the boot disk and just assumed that because it was installed as standard with Ubuntu, that there would be now problems using it. Of course, 8 useless DVD's yesterday (indicative of my level of cognitive reasoning) and about 9.3 seconds of research this morning has revealed that there are plenty of issues with Brasero. I installed K3b and have just finished my first install of 12.04 64bit. I'm happy now. Sorry to waste your time, boys.


Ubuntu 14.04 : Cannot access internet via terminal

In your case, the apt-get command is finding those http_proxy entries and attempting to connect to the internet through them.  In this case, it is an IP address belonging to the Department of Defense, and the :3128 is indicating Squid.

Either you do work for the DoD - in which case you should not be posting this information on a public forum, this should be going through your department admin.

Or you accidentally added those entries there.  Check your /etc/environment file for those entries and comment them out.  If it isn't in /etc/environment, have a look at your ~/.profile file as well; same deal, just comment them out.


Looks like you've fetched the installer incorrectly. I suggest fetching it using wget and then setting the execute flag on the file so you can run it, using:

wget https://github.com/nrc-cnrc/EGSnrc/releases/download/v2020/EGSnrc-configure-linux
chmod +x EGSnrc-configure-linux
./EGSnrc-configure-linux


How do you edit the Blacklist.conf file?

First you would need to have the files for the system you want to edit mounted.

Look in the left panel for the file system in pcmanfm (the file manager) and click on it - it will look 'similar' to this

You can see that I have mounted my 12.10 partition

Check what the path is called for you - could be /media/long UUID reference and then run

gksudo leafpad /media/longUUIDreference/etc/modprobe.d/blacklist.conf

from a terminal.


Ubuntu installation disk with updates included

To my knowledge you would need to wait for point release - one is due in August which will have updates included.

I've successfuly copied the cache from one machine to another, there are other ways of dealing with it though.

How to backup programs without using apt cache?


compatible wireless adapter for ad hoc/Access Point on Ubuntu

To create an ad-hoc or hotspot using your wireless adapter, DON'T use the Create New Wi-fi Network from the network icon in the top panel. One reason is because you'll only be able to do WEP security.

Rather, go to Edit Connections... in the network icon menu, and ADD a new Wi-Fi profile. In the Wi-fi tab, change the mode to ad-hoc or hotspot, and in the security tab, choose WPA2. As seen below...


Installing updates froze virtual machine

Well, the easiest way to recover a virtual machine is to make use of the snapshot feature available in VirtualBox. As far as apt-get, you can try apt-get check, which will make sure none of your packages are broken--i.e. missing dependencies. It there are any, you can use apt-get --fix-broken install to allow apt to try to automagically fix it. In the worst case, apt-get remove <pkg-name> any broken packages, and try to reinstall them via apt-get install <pkg-name>. In the very worst case, you might have to use dpkg --remove <pkg-name if apt cannot remove them for some reason.

NB: This is just a quick synopsis; it cannot instil wisdom or avert impending experience.


I'm having a problem getting ubuntu installed

Did you md5sum check the downloaded iso?
See https://help.ubuntu.com/community/HowToMD5SUM
Check the number against the listing in the link for your release listed at
http://releases.ubuntu.com under the MD5SUMS link.
For other releases' hashes, like lubuntu, see:
https://help.ubuntu.com/community/UbuntuHashes
Create the USB install media with a tool like unetbootin or rufus.  Don't just copy files to the USB.
See   https://help.ubuntu.com/community/Installation
Did you select the media check before trying to install?
https://help.ubuntu.com/community/Installation/CDIntegrityCheck
Did you ever do a "memory check" (perhaps another live-media menu choice) on your PC?
Doing the above can save you a lot of time struggling with a bad install media or hardware problems.


SOLVED!

It was painfully simple, all I needed was to add "2>&1 | sed -e '2d'" to the line:- "my $cmd = qx{pidstat -V};" and delete "(C) Sebastien Godard (sysstat  orange.fr)" from my if statement.

Thanks all for the pointers, they really have helped.


During your tutorial-following, you have probably added a definition for eth0 in /etc/network/interfaces. If an interface is defined in this file, Network Manager assumes that you want to control it manually, and so doesn't manage it for you.

If this is indeed the problem, you can fix it by reverting /etc/network/interfaces to its default. It should look something like:

auto lo
iface lo inet loopback

-- importantly, not containing any stanzas for eth0.


dpkg: error processing archive minergate-cli.deb

Is Minergate provide deb package for your architecture? If not, you could download the source code and build it yourself


Ubuntu 16.04 Wi-Fi problem after Suspend

Odd as it sounds, the solution that worked for me was disabling/purging ModemManager. I had very similar symptoms as you, but now my system resumes Wifi like a charm.


How to install a Canon PIXMA MG3520 Wireless printer

You might need to do some changes (might be the first step of the procedure in installation because this it the folder where you download the file) to make it work for you because the steps he posted are for ubuntu users.
http://ubuntuforums.org/showthread.php?t=2209879

This is what he posted:

Re: Trouble installing Canon Pixma MG3500 printer driver

So if one was starting from the beginning, I would suggest going to the Canon Asia site and finding the MG3500 page and what you would download would be iP3500_debian.tar.

The commands to install it if the Downloads directory is where you download things to would be:

cd Downloads
tar -zxvf iP3500_debian.tar
cd iP3500_debian
sudo ./install.sh

and that should install it for you.


sudo asks for root password but expects user in sudoers?

My understanding was that rootpw just changes the behaviour of the password prompt. Your users still need to be named (explicitly, or through groups) /etc/sudoers.

In this case kenneth isn't. Fix that and this should work.

On a side note, this seems like a really backwards use of sudo. This is exactly the sort of behaviour sudo was invented to prevent against. You might as well just su.


You could do this by using the chown command.

Usage: chown -R $user $directory

For example, if you wanted to change the permission of folder you created as root named "example" inside your home directory, you would first obtain root privileges by typing su, and then run chown -R ousman /home/ousman/example, assuming your username is "ousman". The "-R" stands for "recursive", so that the owner of the files inside the directory changes as well.


I believe it has to do with the new software of the torrent tracker. For example; I installed the latest qbittorrent and the same thing happened. I then downgraded to an older qbittorrent, and it works fine now. Good luck.


Does something similar to "rvim" exist on Ubuntu?

There appears to be no independent rvim binary, however installing the vim package creates a symbolic link using the update-alternatives mechanism:

Setting up vim (2:7.4.1689-3ubuntu1.1) ...
update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/vim (vim) in auto mode
update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/vimdiff (vimdiff) in auto mode
update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/rvim (rvim) in auto mode
update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/rview (rview) in auto mode
update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/vi (vi) in auto mode
update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/view (view) in auto mode
update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/ex (ex) in auto mode

Following the link, we find that the link eventually resolves to vim.basic

$ readlink -f $(which rvim)
/usr/bin/vim.basic

Presumably there's some argv[0] magic inside vim.basic that causes it to run it in restricted mode when invoked as rvim.

According to the vim manpage you can also use the -Z option:

rvim rview rgvim rgview
          Like the above, but with restrictions.  It will not be possi‐
          ble to start shell commands, or suspend  Vim.   Can  also  be
          done with the "-Z" argument.

Which provides the same functionality in vim as rvim, but is not literally calling rvim.


I fixed the problem by disabling DNSMasq using this guide

Edit /etc/NetworkManager/NetworkManager.conf, for example

sudoedit /etc/NetworkManager/NetworkManager.conf

and comment out the line

dns=dnsmasq

so it says

#dns=dnsmasq

Save and exit the file and restart NetworkManager

sudo service network-manager restart


Adding aliases is manual labour but can be done with a 1-liner on command line. This will create your alias and add it to bash_aliases and also reload them:

echo "alias aosunpack='/home/elementalfx/aosfirmware/unpack-aos-kernel-g10'" >>
~/.bash_aliases && source ~/.bash_aliases

All you need to do is adjust it to your commands for any other command you want (if you put those into a text file you can omit the && source ~/.bash_aliases and add source ~/.bash_aliases at the end. This will not prevent duplicates but the last one added will be the active one.

Partly taken from a comment by hobs from this question: How to create a permanent "alias"? There are more good answers and comments in that topic.


Alt-tab crashes gnome classic desktop (12.04)

Well, in case others with the same issue come across this, the solution was to disable the application switcher in compiz, and enable the static application switcher. The shift switcher also works nicely.

More info:
https://bugs.launchpad.net/ubuntu/+source/compiz/+bug/971051

I noticed that if I used the gnome classic (no effects) desktop, a basic form of alt-tab worked fine, which was what I wanted, but I want some of the effects in the regular gnome classic desktop. For some reason my computer couldn't handle the fancy Application Switcher option.


Ubuntu 11.10 Nginx and fastcgi-php not working

What I generally do is have a "php.inc" file that I just include with my virtual hosts. It has all the settings necessary to tell Nginx what to do with PHP files (complete with URL rewriting for things like Wordpress).

index index.php;

location = /favicon.ico {
    log_not_found off;
    access_log off;
}

location = /robots.txt {
    allow all;
    log_not_found off;
    access_log off;
}

location / {
    # This is cool because no php is touched for static content.
    # include the "?$args" part so non-default permalinks doesn't break when using query string
    try_files $uri $uri/ /index.php?$args;
}

location ~ \.php$ {
    try_files $uri =404;
    fastcgi_split_path_info ^(.+\.php)(/.+)$;
    fastcgi_pass unix:/var/run/php5-fpm.sock;
    fastcgi_index index.php;
    include fastcgi_params;
}

location ~* \.(js|css|png|jpg|jpeg|gif|ico)$ {
    expires max;
    log_not_found off;
}

Just drop that into /etc/nginx (you'll need to do it via command line with sudo). Then, edit your config to add include php.inc; (it automatically knows where to look) in your server{} block. Reload (sudo service nginx reload) or restart (sudo service nginx restart) Nginx, and your PHP file should work.

Edit: Here are a couple of other things I've noticed in your config, and what I do differently.

One of the things that I do differently is to leave the main nginx.conf file alone, and instead, declare virtual hosts in either /etc/nginx/sites-available (with a symlink to sites-enabled) or /etc/nginx/conf.d. I've found this avoids issues all around, but then, I generally have to manage several virtual host domains at any given time, and set up with this in mind from the get-go.

Another thing I noticed in your config is that you have a root /var/www; block inside the location ~ \.php$ {} block. You shouldn't need to do this (and, according to this article I found, may be causing your issue), as location blocks within a server block will inherit as needed.

Combining these three tactics (leave vhost configuration out of nginx.conf and instead put it in conf.d, use an include file for PHP stuff, and allow location blocks to inherit as needed) should result in a clean configuration setup without much hassle.

So, your nginx.conf file should look like this (or the default, if you have it backed up):

user www-data;
worker_processes 4;
pid /var/run/nginx.pid;

events {
    worker_connections 768;
    # multi_accept on;
}

http {

    ##
    # Basic Settings
    ##

    sendfile on;
    tcp_nopush on;
    tcp_nodelay on;
    keepalive_timeout 65;
    types_hash_max_size 2048;
    # server_tokens off;

    # server_names_hash_bucket_size 64;
    # server_name_in_redirect off;

    include /etc/nginx/mime.types;
    default_type application/octet-stream;

    ##
    # Logging Settings
    ##

    access_log /var/log/nginx/access.log;
    error_log /var/log/nginx/error.log;

    ##
    # Gzip Settings
    ##

    gzip on;
    gzip_disable "msie6";

    # gzip_vary on;
    # gzip_proxied any;
    # gzip_comp_level 6;
    # gzip_buffers 16 8k;
    # gzip_http_version 1.1;
    # gzip_types text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript;

    ##
    # nginx-naxsi config
    ##
    # Uncomment it if you installed nginx-naxsi
    ##

    #include /etc/nginx/naxsi_core.rules;

    ##
    # nginx-passenger config
    ##
    # Uncomment it if you installed nginx-passenger
    ##

    #passenger_root /usr;
    #passenger_ruby /usr/bin/ruby;

    ##
    # Virtual Host Configs
    ##

    include /etc/nginx/conf.d/*.conf;
    include /etc/nginx/sites-enabled/*;
}

#mail {
#   # See sample authentication script at:
#   # http://wiki.nginx.org/ImapAuthenticateWithApachePhpScript
#
#   # auth_http localhost/auth.php;
#   # pop3_capabilities "TOP" "USER";
#   # imap_capabilities "IMAP4rev1" "UIDPLUS";
#
#   server {
#       listen     localhost:110;
#       protocol   pop3;
#       proxy      on;
#   }
#
#   server {
#       listen     localhost:143;
#       protocol   imap;
#       proxy      on;
#   }
#}

Then, add an entry in /etc/nginx/conf.d/default.conf like this:

server {
    listen 80;
    server_name localhost;
    root /var/www;
    include php.inc;
}


Serializing the copying of multiple sets of files

One solution would be to use rsync as suggested in the comment. As you seem to prefer a GUI solution I would recommend using freefilesync.

The usage is very straightforward:

Choose left and right directories.
Press Compare.
Select synchronization settings.
Press Synchronize to begin synchronization.

Freefilesync also supports batch jobs.


Almost every Chrome action opens a dialog box that says "Allow opening file? Allow snap "chromium" to open file "/home/iii/Downloads"?"

I've run into the same issue, and in my research on the issue, I've found no solutions (outside of just not using the snap version of Chromium, which doesn't even work on Ubuntu 19.10, as installing chromium-browser via apt will install the snap), but plenty of questions asking for one.

Your title (emphasis mine),

  Almost every Chrome action opens a dialog box that says “Allow opening file? Allow snap ”chromium“ to open file ”/home/iii/Downloads“?”

refers to both Chrome, and Chromium. I'm guessing since you're having this issue, that you're using Chromium, not Chrome, as I don't believe there is a snap for Chrome.

According to this answer, this is "issue", as we see it, is actually an intended, hardcoded feature that cannot be changed without changing the source code of snapd. (Emphasis is added.)

  This is the intentional behavior of snapd and hard-coded into source
  code.

  This feature, opening files in snapd, is new (about seven month old).
  As I understand the developers are conservative and [the] prompt is to
  prevent any security issues. The discussion about subject in
  forum.snapcraft.io and pull request that introduced new feature.

From the above-mentioned discussion on the snapcraft forum (again, emphasis added):

  The /usr/bin/xdg-open in the core snap will now accept local file
  paths, including relative paths. It then calls the new
  io.snapcraft.Launcher.OpenFile D-Bus method, passing a file descriptor
  to prove that the confined application has access to the file. Outside
  the sandbox, snap userd will show a graphical permission prompt and
  then launch the file using the real xdg-open.

  This feature also supports opening directories, causing them to be
  opened in the file manager.

If you look at the relevant portion of the source code of snapd, you can see that there's no way to bypass the above graphical permission prompt, without adding an additional check against a global or app variable that you set in order to automatically allow it. As it is, it's impossible.

This all applies to Chromium (or any app) installed by snapd, and due to the changes, as well as Chromium installed via apt in 19.10. However, for Chrome, you can use the .deb installer you get from simply downloading Chrome from google.com/chrome. Since it's a self-updating program (I believe so, I'm not 100% sure on that), you needn't worry about it not having a way to update via snapd or apt.

So, if you really, really hate the prompt, you can get around it by installing Chrome, rather than Chromium. There are some differences between Chrome and Chromium, some good, some not so good. It's mostly the same, though.

To be clear, this isn't a solution. This is stating that there currently isn't a solution, as the "issue" is considered a "feature" for security purposes by the developers. If you're on 19.10, and can't stand it, your only "option" is to move to Chrome or another browser that isn't installed via snap.


GLSL 3.30 is not supported (Ubuntu 12.04, Intel HD Graphics 3000 and NVIDIA Graphics with Optimus)

Came across this question accidentally and thought, maybe someone is facing the same today ...

Your NVIDIA NVSTM 4200M graphics is supported by the latest official NVIDIA drivers 355.11 !
Completely remove all NVIDIA software and replace it with the NVIDIA drivers 355 and Optimus.

When the GRUB boot menu appears : Highlight the Ubuntu menu entry and  press the E key.
Add the nouveau.modeset=0 parameter to the end of the linux line ... Then press F10 to boot.

When the login screen appears press Ctrl+Alt+F1.

Enter your user name and password. Now uninstall every NVIDIA related software by executing:

sudo apt-get purge nvidia* bumblebee
sudo reboot

When the GRUB boot menu appears : Highlight the Ubuntu menu entry and  press the E key.
Add the nouveau.modeset=0 parameter to the end of the linux line ... Then press F10 to boot.

When the login screen appears press Ctrl+Alt+F1.

Enter your user name and password. Now reinstall the NVIDIA drivers by executing:

sudo add-apt-repository ppa:graphics-drivers/ppa
sudo apt-get update
sudo apt-get install nvidia-355 nvidia-prime
sudo reboot

For further information about the NVIDIA 355 drivers release refer to the NVIDIA release notes.

You can check the OpenGL version with :

sudo apt-get install mesa-utils
sudo glxinfo | grep "OpenGL version"

The output shows something like this :

OpenGL version string: 4.5.0 NVIDIA 355.11


Kernel source package for 3.16 in Ubuntu 14.04.2

You can install linux-source from 14.10. In 14.04.2 that kernel is installed.

If you need Ubuntu kernel for development, you can clone it from git.

git clone http://kernel.ubuntu.com/git/ubuntu/ubuntu-utopic.git


setxkbmap -option "compose:caps" for CapsLock

setxkbmap -option "compose:ralt" for right alt =)


This is resolved for me in the latest release. Now my calendar syncs automatically with the cloud and then back down to each de device. Check it out and see, as I am more than happy with it now.


The new line \n is not being interpreted by the echo command try adding the -e argument to echo:

#!/bin/sh
mkdir -p /testFolder
wget https://launcher.mojang.com/v1/objects/bb2b6b1aefcd70dfd1892149ac3a215f6c636b07/server.jar -O /testFolder/server.jar
echo -e "cd /testFolder\njava -Xmx1024M -Xms1024M -jar server.jar nogui" >> /testFolder/startMc.shenter code here


Click Settings > Configure Kate... to bring up the Configure dialog.
Click Editor Component > Appearance.
In the Whitespace Highlighting section, check Highlight tabulators and Highlight trailing spaces.
In the Advanced section, check Show indentation lines.
Click OK.

It seems one cannot highlight leading spaces.


How do I get Japanese characters showing correctly in OpenOffice?

Do installing full Japanese support help?

Look at the
System / Administration / Language Support / Install-Remove Languages:

Don't forget to re-login — or else changes may not get applied.


Can we use graphics.h library for C/C++ on ubuntu 20.04?

I did install (using a few tutorials) & Use graphics.h library in Ubuntu 20.04 (in a virtual machine) and it worked fine. Except for some "warning" messages displayed when I run my compiled apps...


What does the export PATH line in .bashrc do?

To recap everything mentioned in this question,
The export part
The export line means that the variable that you declare after it will be accessible to child processes. In other words, processes will be able to access the variable declared after the export keyword through the shell's environment. So, if you did something like export FOO="BAR" and then sourced the changes in your shell environment, you could type $FOO and get BAR.
The PATH part
The path line is just as you stated: it's declaring a variable that's named PATH for the shell environment. In the bash environment, PATH has a special purpose of defining where the computer looks for programs is. This lets you type custom commands for scripts without typing the full directory. Note that PATH is marked for export by default, so this line doesn't have to be rewritten. It doesn't hurt, though.
The $HOME in the PATH variable
At the beginning of the path that is assigned to the PATH variable, $HOME is declared. This means that the computer will pretty much grab the value stored in HOME and copy-paste it in front of the rest of the line when reading it.
The : in between both paths
The : is equivalent to a comma in sentences. It just separates the three directories. Without those three directories, the console would not recognize the commands it receives. Those three places are the three directories that are most commonly used for scripts/command files to be stored and therefore should be accessible by the terminal without having to write out the full path to the file.


man find is pretty clear about it:

   -perm mode

       File's permission bits are exactly  mode  (octal  or  symbolic).
          Since  an  exact match is required, if you want to use this form
          for symbolic modes, you may have to  specify  a  rather  complex
          mode  string.  For example -perm g=w will only match files which
          have mode 0020 (that is, ones for which group  write  permission
          is  the  only  permission set).  It is more likely that you will
          want to use the `/' or `-' forms, for example -perm -g=w,  which
          matches  any file with group write permission.  See the EXAMPLES
          section for some illustrative examples.

   -perm -mode

          All of the permission bits mode are set for the file.   Symbolic
          modes  are accepted in this form, and this is usually the way in
          which would want to use them.  You must specify `u', `g' or  `o'
          if  you use a symbolic mode.   See the EXAMPLES section for some
          illustrative examples.

   -perm /mode

          Any of the permission bits mode are set for the file.   Symbolic
          modes  are  accepted in this form.  You must specify `u', `g' or
          `o' if you use a symbolic mode.  See the  EXAMPLES  section  for
          some  illustrative  examples.  If no permission bits in mode are
          set, this test matches any file (the idea here is to be  consis‐
          tent with the behaviour of -perm -000).

   -perm +mode

          Deprecated,  old way of searching for files with any of the per‐
          mission bits in mode set.  You should use -perm  /mode  instead.
          Trying to use the `+' syntax with symbolic modes will yield sur‐
          prising results.  For example, `+u+x' is a valid  symbolic  mode
          (equivalent to +u,+x, i.e. 0111) and will therefore not be eval‐
          uated as -perm +mode but instead as  the  exact  mode  specifier
          -perm  mode  and so it matches files with exact permissions 0111
          instead of files with any execute bit set.  If  you  found  this
          paragraph  confusing,  you're  not alone - just use -perm /mode.
          This form of the -perm test  is  deprecated  because  the  POSIX
          specification  requires  the  interpretation of a leading `+' as
          being part of a symbolic mode, and so we switched to  using  `/'
          instead.


Apple Magic mouse frequently disconnects and reconnects

I've had the same problem and recently I tried disabling eSCO mode in the bluetooth module:

echo 1 | sudo tee /sys/module/bluetooth/parameters/disable_esco
sudo /etc/init.d/bluetooth restart
# persist setting
echo "options bluetooth disable_esco=1" | sudo tee /etc/modprobe.d/bluetooth-tweaks.conf

The mouse's connection seems more stable now and I haven't seen a disconnect after tweaking this setting.

My laptop Lenovo W530 has a Broadcom Bluetooth adapter (internally usb is the interface).

If you have a Broadcom Bluetooth adapter, you might have to get a .hex firmware file from a windows driver and put it in /lib/firmware directory to support all Bluetooth features. More info in
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1065400/comments/11 and
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1065400 .

Use hex2hcd to convert windows driver .hex file to .hcd:
https://github.com/jessesung/hex2hcd

I found Broadcom .hex files in this windows driver package. Locate the Win7/Win32/bcbtums-win7x86-brcm.inf file and search for the USB ID of your adapter.

$ lsusb |grep Bluetooth
Bus 001 Device 006: ID 0a5c:21e6 Broadcom Corp. BCM20702 Bluetooth 4.0 [ThinkPad]

search for RAMUSB<usb product id in upper case>, for example RAMUSB21E6 for my adapter. There you will find the .hex file name:

[RAMUSB21E6.NTX86.hw.reg]
HKR,,LowerFilters, 0x00010000, "bcbtums"
HKR,,%RAMPatchFileName%,0x00000, "BCM20702A1_001.002.014.1315.1387.hex"
HKR,,%RemoteWakeEnabled%,0x00010001,1
HKR,,%DeviceRemoteWakeSupported%,0x00010001,1

In my case the file was Win7/Win32/BCM20702A1_001.002.014.1315.1387.hex

I then used hex2hcd to convert the file to /lib/firmware/fw-0a5c_21e6.hcd (again that file name contains the USB ids of your Broadcom USB Bluetooth adapter).


Have you verified redis-server service is actually running on localhost and listening on port 6379? Double check the service and port. Those extra characters are strange, but that's where the error message should be for the reason you could not connect. See my error below:

Could not connect to Redis at 127.0.0.1:6379: Connection refuse*

In my case, redis-server wasn't actually running, and trying to start it via

service redis-server start

command generated errors in /var/log/redis/redis-server.log


Unable to install python cryptography module

I think there are multiple versions of python interpreters and pip versions present. So in order to install the cryptography package try using this

python -m pip install cryptography

This actually happened to me when I was using virtualenv so I got solution from here: ImportError after successful pip installation - Stack Overflow

Happy Coding!


this depends:-) Some are internal commands of your shell, some scripts, some are compiled programs.

You can find out more with the type command: For example: type type gives (in my cygwin bash!) type is a shell builtin.

If you type type bash, your answer will be something like bash is /usr/bin/bash.

Now you can inspect what type of file /usr/bin/bash is: file /usr/bin/bash says  something like ... executable ..., so this will be a compiled file, presumably written in C, FORTRAN or whatever. If the answer is something like ... script...  you can inspect this file with a normal text editor like gedit, vim or whatever you like.


Is LibreOffice Calc available in Ubuntu Server 18.04 LTS?

Usually in Ubuntu Server (and any other server distribution) there isn't the desktop manager (Gnome, KDE, ...). There isn't graphical environment.

But, anyway, you can install it and, obviously you also can install Libreoffice.

To install Gnome:

sudo tasksel ubuntu-desktop

If you want to install another desktop manager (Mate, XFCE, ...) you can follow this guide: https://linuxconfig.org/install-gui-on-ubuntu-server-18-04-bionic-beaver


How can I get VLC to automatically play DVDs when inserted? Running 13.04

Wider Support for DVDs

First, install this package to get wider support for DVDs. I noticed that you did not mention that you installed it. Open the Terminal:

Search the in the Dash for the Terminal, or hit Alt+Ctrl+T and enter this command

sudo apt-get install libdvdread4

VLC

To get VlC to launch automatically and play DVD's when inserted into the computer(Note that VLC can not be running for this to work, and when you are done watching the movie, you have to exit it out.), search in the Dash for Details and launch it.

Click Removable Media. Select VLC for DVD Video to be open automatically when a disk is inserted, like shown below:

XBMC

I do believe, however, that you should use XBMC, as it has a simple user interface It only requires basic input, like using Arrow Keys and the Space Bar. You can install it by:

Opening the Ubuntu Software Center, and searching for XBMC

or

Opening the Terminal (Alt+Ctrl+T), and typing

sudo apt-get install xbmc

Here are some screenshots:

You can install plugins, so you can fetch content from other sources, including some live tv and videos. You can even watch Youtube videos. It is usable with touch screens. It can even run on Android. There are remote controls apps for Android and iOS to control it.

Get it to start on Boot

If you want for it to auto-Launch when the computer is turned on:

Open the dash and search for Startup Applications

Click Add
Name it XBMC, or whatever you wish.
For Command, enter /usr/bin/xbmc
Finally, click Add

To make it easier, also set the account that the person will be using to login automatically.

Hope this works for you.


What applications are available to Ubuntu for Android?

There is no Ubuntu for Android currently. It requires vendor buy-in to implement on a device.

However, it is a system by which Android and Ubuntu are both on the device. You would use Android when using the device normally, and it would switch to Ubuntu when docked to a keyboard/mouse.


Empathy with Gnome Online Accounts (GOA)

Tested on Ubuntu 13.04 and later (but the package is available also for 12.10 so it should work).

sudo apt-get update
sudo apt-get install mcp-account-manager-goa
sudo apt-get remove --purge mcp-account-manager-uoa
sudo reboot

After the reboot empathy will use the Gnome Online Accounts instead of the Ubuntu one.


Kubuntu 16.04 installation DVD will not boot

So it turns out the problem was the HVR card that was in the computer. I took it out and it booted just fine.

Hopefully the installed system won't do the same thing.


13.10 Fresh Install Slow Unity Animations Intel Graphics

It is said that Zeitgeist is slowing unity animations and increse cpu usage.

Zeitgeist is a service which logs the users's activities and events, anywhere from files opened to websites visited and conversations. It makes this information readily available for other applications to use in the form of timelines and statistics.

You can remove zeitgeist easily, but don't remove libzeitgeist-XXX as you use unity :

sudo apt-get purge zeitgeist zeitgest-core zeitgeist-datahub


Ubuntu 20.04.1: End Kernel Panic - not syncing: Fatal exception in interrupt

if this problem is solved or you did something else then you can skip this.
Well kernel panic not sync, this message most probably telling that something is wrong with the kernel. ( I could be wrong ) You can do as I suggest. Power off the system and turn it back on. Whenever the grub menu comes in it shows 3 options

start ubuntu normally
advanced options for ubuntu
memory test
memory test ....

Choose the 2nd option **`advanced options for ubuntu`**. Then you'll be given options to select from one of the kernels that are installed on your system. From there please choose a previous one which one is the previous one from the present or latest one. Choose the recovery option.

Then you'll be prompt to choose the Recovery menu and then choose **root**. After that paste the following codes.
# mount -o remount, rw /

It will take some times. Then you need to choose the latest kernel.
# mkinitramfs -o /boot/initrd.img-4.(Your kernel version)

It will generate the boot image for you for this specific kernel. After that please update your grub by update-grub.

I hope this works. But please be careful while playing with your kernel. I have found this on a youtube tutorial and here is the link for your help.
Here is the link: https://www.youtube.com/watch?v=L0I7i_lE5zA


Why is Kubuntu booting so slowly despite using an SSD?

Concerning your startup times, open your terminal using CTRL+ALT+T and then enter the following:

systemd-analyze blame

That will give you a list of everything that started during the boot process and how long it took to start - before you entered userland.

If you want to see what's happening with the critical (system will not really work well without it) startup functions then user this:

systemd-analyze critical-chain

To get out of any of those menus and return to the terminal press Q.

systemd does a lot of things. If you're interested in learning more about systemd then try:

systemd-analyze critical-chain

Or, if you have a minute or three:

man systemd


Yes There is. Go to Ubuntu Software Center. Search Gnome. Install Full GNOME Desktop Environment, with extra components
Now in login screen, select Gnome like this:


Apply transparency only to some windows with FluxBox

Well, I had not read enough the documentation. In the fluxbox feature list, at the first entry:

"One of the most underestimated - although one of the most powerful features - is the apps-file. With this file it is possible to set application-specific parameters for dimension, decoration, default workspace to open on, stickyness and much more. It will let you manipulate almost every setting for any window or application. The best way to learn about it is to visit the wiki-site for the apps-file."

It allows to configure specifically the interface, based on the application. It looks like it does exactly what I wanted. I'm gonna try this.


How to inspect the currently used Nvidia driver version and switch it to another alternative?

List available drivers via

% apt-cache search nvidia | grep -P '^nvidia-(driver-)?[0-9]+\s'
nvidia-304 - NVIDIA legacy binary driver - version 304.125
nvidia-310 - Transitional package for nvidia-310
nvidia-319 - Transitional package for nvidia-319
nvidia-346 - NVIDIA binary driver - version 346.59
nvidia-driver-390 - NVIDIA driver metapackage
nvidia-340 - NVIDIA binary driver - version 340.107
nvidia-driver-418 - Transitional package for nvidia-driver-430
nvidia-driver-430 - NVIDIA driver metapackage
nvidia-driver-435 - NVIDIA driver metapackage

and install with, eg

sudo apt-get install nvidia-driver-435

Show driver in use

nvidia-smi

Sat Sep  5 11:57:22 2015
+------------------------------------------------------+
| NVIDIA-SMI 340.76     Driver Version: 340.76         |
|-------------------------------+----------------------+----------------------+
| GPU  Name        Persistence-M| Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |
|===============================+======================+======================|
|   0  GeForce 9800 GT...  Off  | 0000:01:00.0     N/A |                  N/A |
| 65%   52C    P0    N/A /  N/A |    271MiB /  1023MiB |     N/A      Default |
+-------------------------------+----------------------+----------------------+

+-----------------------------------------------------------------------------+
| Compute processes:                                               GPU Memory |
|  GPU       PID  Process name                                     Usage      |
|=============================================================================|
|    0            Not Supported                                               |
+-----------------------------------------------------------------------------+

nvidia-settings

nvidia-settings -q NvidiaDriverVersion

  Attribute 'NvidiaDriverVersion' (sturm:1.0): 340.76
  Attribute 'NvidiaDriverVersion' (sturm:1[gpu:0]): 340.76

cat /proc/driver/nvidia/version

NVRM version: NVIDIA UNIX x86_64 Kernel Module  340.76  Thu Jan 22 12:11:08 PST 2015
GCC version:  gcc version 4.9.2 (Ubuntu 4.9.2-10ubuntu13)


I tried all day on my y510p to get this working but for now I've determined we cannot boot the system with both video cards plugged in.

Note! The Lenovo y510p with Nvidia SLI has Intel Graphics AND Nvidia Graphics! You have to setup the intel video driver first, then move on to Nvidia.

Brightness Problem

If you get a black screen at login, try pressing Fn + Brightness+ (Up arrow) on your keyboard and you should be able to see the login box.

Enable Intel Video Driver

Remove or backup your xorg.conf file if you have one
sudo rm /etc/X11/xorg.conf
Remove all nvidia stuff if you have anything: sudo apt-get remove --purge nvidia*
Install the intel video driver (might already be installed): sudo apt-get install xserver-xorg-video-intel
Create a new file under the xorg.conf.d directory: sudo nano /usr/share/X11/xorg.conf.d/20-intel.conf
Copy/Paste this into the file:
Section "Device"
    Identifier "Intel"
    Driver "intel"
EndSection
Save it and exit
Reboot the system and you should now have decent intel graphic acceleration working with no errors. sudo reboot now or press the power button

Enable Nvidia Driver

To get the Nividia card working (for certain games & apps), you'll need nvidia drivers from the xorg edgers repo and Bumblebee. This method allows you to run a specific application with the nvidia driver active.

sudo add-apt-repository ppa:xorg-edgers/ppa
sudo apt-get update
sudo apt-get install nvidia-331 nvidia-331-settings bumblebee bumblebee-nvidia
Update the /etc/bumblebee/bumblebee.conf file like in this answer: Using Nvidia 319 with bumblebee


Is there a way I can open the Windows 10 Ubuntu bash without running the ~/.bashrc script?

You should be able to skip loading the default .bashrc file in WSL in essentially the same way as in "regular" bash:

  --norc Do  not  read  and  execute  the system wide initialization file
          /etc/bash.bashrc and the personal initialization file  ~/.bashrc
          if  the  shell  is interactive.  This option is on by default if
          the shell is invoked as sh.

So, open the Windows CMD.exe and type

wsl.exe -e bash --norc

Once you are in the interactive shell you can revert the changes yo made to the ~/.bashrc file.


unable to boot asus laptop from usb ubuntu

hmm according to the screenshot it seems to be a nouveau error.

nouveau is the open-source nvidia driver and may not support your card. if it's 900M-series.

Can you access the GRUB menu?, if so then try putting

nomodeset

as kernel parameter in place of quiet splash, it should boot you into desktop, but you will always have to put it on boot, unless you install the proper drivers.

Also, do you have by any chance a Skylake processor?, then you at least 15.10 is recommended.


How can I add GNOME extensions to both sides of the clock?

You might check the Frippery Move Clock GNOME extension here. This will move the clock to the right side of the top panel, making room for your other extension icons.


netplan: nameservers in netplan yaml. What effect?

NOTE: This may duplicate information from chili555, however in discussion with them, the aforementioned individual suggested posting an 'authoritative' answer as I have worked with this exact issue/question before.

The behavior witnessed in your environment is the systemd-resolved equivalent of what dnsmasq on pre-18.04 was doing.  The netplan updates affect the nameservers that systemd-resolved use for its lookups.  This is detailed in the last section of the answer.

But first, for the curious, some history about this behavior, and how it differs from the 'older' Ubuntu versions which use Network Manager and dnsmasq.  (Feel free to skip past the next section of this answer if you only want the 18.04-related stuff)

Before 18.04: dnsmasq as a local caching resolver

Prior to 18.04, whenever you used the GUI Ubuntu, it would install dnsmasq alongside Network Manager.  The Network Manager integration with dnsmasq would update the dnsmasq list of 'next hop' servers (upstream DNS servers) for where to send a query.

Therefore, a DNS query for google.com would pass from whatever application is requesting the resolution, into dnsmasq, and if dnsmasq doesn't know the IP address or has had a cached entry expire, would then pass the DNS request to whatever upstream DNS server (for this example, 8.8.8.8 or 8.8.4.4).  You would then have to check Network Manager or the dnsmasq config to see where the 'upstream' DNS servers were.

This is typical behavior in a graphical Ubuntu installed from the Desktop ISOs.

The default install from the Server ISOs, conversely, followed the traditional "update /etc/resolv.conf" method via the resolvconf package and utilized /etc/resolv.conf directly instead of communicating via dnsmasq.

18.04: netplan, and systemd-resolved

With 18.04, the default DNS system is systemd-resolved.  This operates like the dnsmasq of old does, except it does this for both Desktop and Server ISO installations currently.  It also can integrate with Network Manager (used in the GUI environments for managing wifi and such), and with Netplan (which better handles ethernets)

systemd-resolved is handed from netplan (servers or custom desktops) or Network Manager (default Desktop images) the list of DNS servers to send queries to (whether statically configured or configured via DHCP).  Therefore, using the same example from above, a DNS query to google.com would pass through systemd-resolved's stub resolver which would either return the cached lookup value or pass it on to upstream DNS servers.

This emulates the default behavior of dnsmasq, but also adds some additional lookup handling for how 'localhost', and other local-related addresses can be queried.

With NetPlan, or Network Manager, you can get the list of upstream DNS servers through systemd-resolved with the following command:

systemd-resolve --status

which will give you a bunch of output.  The relevant section would look like this (taken from chili555's answer for expediency):

DNS Servers: 8.8.8.8
             8.8.4.4
             2600:1700:5aa0:830::1


rEFInd menu not showing on a dual Mac/Ubuntu machine

OSes sometimes reset the default boot program, particularly if they upgrade their standard boot loaders. There's really no way to prevent this from happening, so you must simply know how to correct the problem when it occurs. In Linux, this is done by using the efibootmgr program. In OS X, it's done via bless. See here for more on efibootmgr.

If this juggling is happening every time you reboot, then something is seriously wrong. If Ubuntu is resetting GRUB as the default on every reboot, then personally, I'd remove it -- but I'm not a fan of GRUB (enough so that I forked rEFIt to make rEFInd rather than deal with GRUB). I suppose you could also put a call to efibootmgr in a shutdown script, but that runs the risk of becoming disconnected from reality and causing problems, so I'd be reluctant to do that.

EDIT:

Yes, changing the BootOrder variable (via the -o option to efibootmgr) as you suggest is appropriate. You can delete the OpenSUSE entry with:

sudo efibootmgr -b 0 -B

There may be OpenSUSE files installed that you can delete using rm -- probably sudo rm -r /boot/efi/EFI/opensuse from Ubuntu. (These files shouldn't do any harm per se, but they could be confusing or be accidentally re-activated in the future.) You can remove the Ubuntu GRUB in a similar way, although it might be re-installed if/when Ubuntu updates it in the future. Also, keeping it around as a backup method of booting may make sense.

If you leave Ubuntu's GRUB installed but don't want to see it in rEFInd's menu, you can use dont_scan_dirs or dont_scan_files in refind.conf (probably /boot/efi/EFI/refind/refind.conf from Ubuntu) to hide the GRUB entry.


Brightness doesn't change on Dell XPS15 7590 with Ubuntu 19.10

OK, should also work, but the preferred location is under /etc/.
  /usr/share/X11 is reserved for the distribution, and files there may
  eventually be overwritten by system updates.

After putting the file there, I was able to configure the brightness of the screen.


Solution to the problem:

AMD has a new driver. Use the Beta version to solve the problem, it’s maybe not as stable as the open source Ubuntu driver but CS:GO (and other games on steam) will be playable again!

https://support.amd.com/en-us/kb-articles/Pages/AMD-Radeon-GPU-PRO-Linux-Beta-Driver%E2%80%93Release-Notes.aspx

Supported GPUs, just install and enjoy your games again:

  AMD Radeon™ RX 480 // AMD Radeon™ R9 M395X // Radeon™ RX 470
  //    AMD Radeon™ R9 M385 // Radeon™ RX 460 // AMD
  Radeon™ R9 M380 // AMD Radeon™ R9 Fury X //   AMD Radeon™ R9
  M270X // AMD Radeon™ R9 Fury // AMD Radeon™ R9 360
  // AMD Radeon™ R9 Nano //    AMD Radeon™ R9 290X //
  AMD Radeon™ R9 390X //   AMD Radeon™ R9 290 // AMD Radeon™
  R9 390 // AMD Radeon™ R9 285 // AMD Radeon™ R9 380X
  //    AMD Radeon™ R7 260X // AMD Radeon™ R9 380
  //    AMD Radeon™ R7 260

Information direct from the official AMD site.

For all other / older GPUs from AMD please use the open-source driver "radeon"!

(Thanks to CelticWarrior for pointing out, that youve to use radeon than)


SD card not mounting with: mmc0: error -110 whilst initialising SD card

There is a discussion at kernel.org about this topic.
The reason has to do with the module rtsx_pci and the low voltage interface (LVI).

There is a patch available (2019-08-27, at the bottom), to be tested.


I can't install dropbox client: Cannont open libatomic.so.1

After surfing the web, I found that it's needed to install the library libatomic1 to make it work.

To install the library, you have to execute the following command:

sudo apt install libatomic1

After that, execute back the daemon, and it'll work correctly:

~/.dropbox-dist/dropboxd

NOTE: This library is installed with Google Chrome, so if you had have the browser installed in your system you wouldn't have seen the issue.


The program can be found in the following packages

The command mvn

In the case of mvn, you can install maven (v3, not v1) and maven2 (v2) side by side with:

sudo apt-get install maven maven2

and you will have two binaries.

/usr/share/maven/bin/mvn
/usr/share/maven2/bin/mvn

To switch between the two binaries, use:

sudo update-alternatives --config mvn

Example

% mvn -version
Apache Maven 2.2.1 (rdebian-17)
Java version: 1.8.0_45
Java home: /usr/lib/jvm/java-8-oracle/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "linux" version: "3.19.0-22-generic" arch: "amd64" Family: "unix"

% sudo update-alternatives --config mvn
There are 2 choices for the alternative mvn (providing /usr/bin/mvn).

  Selection    Path                       Priority   Status
------------------------------------------------------------
* 0            /usr/share/maven2/bin/mvn   200       auto mode
  1            /usr/share/maven/bin/mvn    150       manual mode
  2            /usr/share/maven2/bin/mvn   200       manual mode

Press enter to keep the current choice[*], or type selection number: 1
update-alternatives: using /usr/share/maven/bin/mvn to provide /usr/bin/mvn (mvn) in manual mode

% mvn -version
Apache Maven 3.0.5
Maven home: /usr/share/maven
Java version: 1.8.0_45, vendor: Oracle Corporation
Java home: /usr/lib/jvm/java-8-oracle/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "3.19.0-22-generic", arch: "amd64", family: "unix"

The command node

In the case of node, that's not possible or only with greater effort:

% sudo apt-get install node nodejs-legacy
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 node : Conflicts: nodejs-legacy but 0.10.25~dfsg2-2ubuntu1 is to be installed
 nodejs-legacy : Conflicts: node but 0.3.2-7.4 is to be installed
E: Unable to correct problems, you have held broken packages.


OpenVPN keeps flipping back VPN connections

Turns out I was using a wrong user name.

It's surprising that neither PrivateInternetAccess nor OpenVPN have no feedback / error reporting mechanism.


command not found (2 lines) when opening the terminal

First run this command:

grep -E '^\$' .bashrc -c

It should give you a number greater than of 0, which means your .bashrc contains some lines started with $.

Run this command:

sed -r -i.bak 's/^\$.*//' .bashrc .profile

it should fix the issue by editing and removing the offending lines in your .bashrc and .profile files. The original files will be backed up with the .bak suffix.

There is two $ somewhere in your .bashrc, every time you open a new terminal .bashrc will be sourced and thus bash try to run the $ as command which there is no such a command and bash complains about it with command not found.


How to report a bug on a different issue?

The intention is that you would run ubuntu-bug <package>. Given that this isn't clear to you so you had the question, I'd say that there is a separate bug in Apport here, which is that the error message isn't being helpful to you.


The things you tried are not going to help, since this does not depend on the file's contents; rather, it depends on the text editor.

In Vim, the following should work:

vim "$file" +'$normal o' +'startinsert'

Each + argument is interpreted in "command mode"; usually it's the line number but any command actually works. :$normal o appends an empty line after the last line (it's ugly but I couldn't think of any other way); :startinsert enters the insert mode.


If you are running low on memory you could try with pip install package --no-cache-dir


The main issue here is that .bash_profile is not read when you do a graphical login. It is a bash-specific file, it's read when you start a login shell and I very much doubt it will ever be read on graphical login.

You would have a better chance using ~/.profile instead which is i) read by most login shells, not only bash, so you're not limiting your user to a specific shell and ii) far more likely to be read by a graphical login.

I just checked this and .profile is indeed read on Ubuntu 13.04 when you log in graphically. However, you cannot assume that will always be the case. For more details see Gilles's excellent answer here.

Now, a couple of minor points. There is no need for touch, echo "foo" >> bar will create the file bar if it doesn't exist and append to it if it does. Also, there is no need for .bash_profile to be executable, the file is sourced, not run. I don't know if that would cause problems but it might.

Finally, the file's group will be root, not the user's. Again, not sure if this is a problem but you may as well add this to your script:

chown $user:$user .profile

Note that .profile is ignored by bash if a file called ~/.bash_profile exists. This should not affect graphical logins but may cause unexpected behavior when logging in from the command line.


Seems like you have configured it incorrectly. It seems you have multiple entry for blegends.ru with different locations referring in apache conf and website conf as well. More over in the virtual host tag you can give as

<VirtualHost blegends.ru:80>

like so and set _default_:80  for default serving.

Check your site conf is enabled or not. to enable it try cmd

sudo a2ensite yoursite.conf

Restart your apache service.


How can I backup and restore all installed fonts?

The standards fonts directories are: /usr/share/fonts, /usr/local/share/fonts, and ~/.fonts.
You backup those directories, then when you've restored the contents run:

sudo fc-cache -f -v

and your fonts will be available to your system

[edit] you can also use fc-list to list all installed font before the backup


Unable to install ubuntu 20.04 on HP DL380, DL360 Gen8

I did the same a few days back and failed too. Turns out it was a USB 3.0 compatibility issue with me, then I tried using the 2.0 slot and it worked. Don't know if there's a reason behind this or was it just with me.


Unfortunately Apple does not support the Linux platform when it comes to their products. Even if you manage to install iTunes with wine, it won't work like it would say on a Mac or Windows set up.

Rythmbox and many Linux media players (from personal experience) will be able to snyc and play your songs without a problem.

The best option for you is to install Virtualbox and install Windows your guest OS, iTunes should install and work your iPhone.

Here is a guide on  how to install Windows XP on Ubuntu with Virtualbox.

However (from personal experience) do not try updating the firmware of your phone with virtualbox as it does not work like on a native OS.


Look at ntop.

# dpkg -l ntop
ii  ntop  3:4.99.3+ndpi5517+dfsg3-1 amd64 display network usage in web browser

There is pretty option --sticky-hosts, so you can find what host suck all of traffic.

Look also at the nethogs:

# dpkg -l nethogs
ii  nethogs   0.8.0-1 amd64   Net top tool grouping bandwidth per process

You can get bandwidth by applications, but if your game service written in one way than another, you'll get only one string about bandwidth of whole game service.

However no one of this two apps can log by ports.

There is commercial project splunk, it has 30 days free trial. You can register as a new customer without any credit information(anonymously) and get deb package. It is awesome, but adobe flash. Check this. Especially plugins section.


Remastersys can be used in 12.04 to create a backup of your system for installing to other systems.

sudo vi /etc/apt/sources.list

Paste the following lines into the file:

# Remastersys
deb http://www.remastersys.com/repository lucid/

Update sources:

sudo apt-get update

Install remastersys:

sudo apt-get install remastersys

Once this is done simply modify your system in any way you see fit then create an image file, which you can load onto a usb/cd.


Trying to build MariaDB, I get the error: You must put some 'deb-src' URIs in your sources.list

The list of your APT repositories is here: /etc/apt/sources.list
In this file, there will be some lines that says:
deb http://archive.ubuntu.com/ubuntu focal universe
# deb-src http://archive.ubuntu.com/ubuntu focal universe
deb http://archive.ubuntu.com/ubuntu focal-updates universe
# deb-src http://archive.ubuntu.com/ubuntu focal-updates universe

(Note: You may have a prefix in front of "archive" - for instance, since I'm in Denmark, for me it's dk.archive.ubuntu.com)
Since MariaDB is part of the "Universe" packages (this can be checked on packages.ubuntu.com) and you want to bulid from the source files, you have to edit the file with sudo nano /etc/apt/sources.list and uncomment the deb-src lines, like this:
deb http://archive.ubuntu.com/ubuntu focal universe
deb-src http://archive.ubuntu.com/ubuntu focal universe
deb http://archive.ubuntu.com/ubuntu focal-updates universe
deb-src http://archive.ubuntu.com/ubuntu focal-updates universe

I imagine this should do the trick.


They are not necessarily microcode error.

The "microcode" string in mce logs are just telling you which CPU is having errors and which microcode version it has.

You should inspect dmesg lines around those mce logs first.


Wireless driver - how to load manufacturer's STA file (Ralink 3290)

First, right-click the file and select Rename. Rename it to 2012_0508_RT3290_Linux_STA_v2.6.0.0.tar.bz2; that is, without the leading slash and adding .tar. Now right-click it and select Extract Here. Open the file os/linux/config.mk with any text editor and change the line:

HAS_NATIVE_WPA_SUPPLICANT_SUPPORT=n

...to

HAS_NATIVE_WPA_SUPPLICANT_SUPPORT=y

Proofread, save and close the text editor. Now, with a temporary ethernet connection, do:

sudo apt-get install build-essential linux-headers-generic
cd Desktop/DPO_RT3290_LinuxSTA_V2600_20120508

...or wherever you extracted the package, if not your desktop.

sudo su
make
make install
modprobe rt3290sta
exit

Please post any errors, questions, etc. Warnings are alright. Your question and this process are in no way trivial.


Which application do you recommend for watching TV (DVB)?

VLC
I'm using VLC. It works pretty good for what I do. Pause/resume feature works out of the box.
You will have to scan for channels first. Use w_scan (install it if necessary) and launch the following command :
w_scan -c FR -X > channels.conf

Replace FR with your country (w_scan -c ? to get the list). Now, each time you want to watch the tv, just launch this command :
vlc channels.conf

You can start recording with Shift+R, again to stop it. Pause a live program with Space.
There is a good wiki about DVB in french : http://doc.ubuntu-fr.org/tnt (has a list of compatible hardware).
Others
Other softwares are kaffeine , totem , gxine  and mplayer  but I don't use them.
I used to use Kaffeine but dropped it for vlc because I had some issues. Just retested it and it seems to work nicely. It is a good program for recording  (instant or scheduled record as you want). Maybe should I reconsider my actual choice for watching DVB...


You have to install also ncurses-doc. To install it from terminal run the following command:

sudo apt-get install ncurses-doc

Then you can read the manual page:

man ncurses


Setting Device Label using e2label or tune2fs causes Bad magic number in super-block while trying to open /dev/sda5

I had this problem while trying to label a newly-created, freshly-formatted partition on a USB stick.

I formatted the file system and then tried to label it using tune2fs -L.

It gave the following error:

  tune2fs: Bad magic number in super-block while trying to open
  /dev/sdb1 Couldn't find valid filesystem superblock.

I transpired that I had used tune2fs while the USB partition was mounted. This corrupted the file system. I couldn't even run fsck on it.

The solution for me was to unmount the drive, delete the partition and start all over again. This time I created the label when I created the file system, using the -L option with mke2fs:

mke2fs -t ext3 -L labelname /dev/sdb1

The drive now appears to be working and it has a label. But I've not tried tune2fs on it again. I was fortunate not to have any data on it. Running fsck, however, provided a suggestion that may have got round the problem.


If I create a Live usb bootable distro with persistence files, can I later use the usb to install to the hard drive?

The persistence files stays on the usb. the new install done from the usb is going to be a fresh install. There is not an easy click a button way to install the presisted files to the new installed computer.

I would suggest just run the computer using the usb as your primary drive and use the internal hdd for storage.


Each user has environment variables. XDG_RUNTIME_DIR is most likely not defined in root user's environment or is being overwritten as empty.

To fix it in your current shell (temporarily), login as root and type export XDG_RUNTIME_DIR="/run/user/1000"

To fix it every time root logs in you can define it in ~root/.profile.
Just add the line export XDG_RUNTIME_DIR="/run/user/1000" at the bottom of the file. Then either source ~/.profile or logout & login again.

You can verify which environment variables are defined in the current shell, type env, or a specific one with env | grep XDG_RUNTIME_DIR


I deleted a folder in Ubuntu, how can I recover it?

Not speaking from personal experience, but I've heard good things about extundelete. You know to unmount the partition with the deleted files immediately, right? And never mount it again, (read-only is ok), until you have finished attempting to recover files?

For best results you'll have to download and build extundelete from source. That partition is still unmounted, right? Easiest though, and again I haven't actually tried this, boot from a live USB/DVD, don't mount the affected partition, sudo apt-get install extundelete (a slightly out of date package is in the Ubuntu Universe repository), cd to a directory on some other mounted partition with sufficient free space to hold your recovered files, and just run the program. You'll want to check the command reference, but the first thing to try should be something like

$ extundelete /dev/sdX --restore-directory /home/user/that/directory/you/deleted.


How do I start a second instance of a program from Unity's launcher?

You now can start a new instance via a middle clicking on the launcher icon.


How can I save my favourites in KNR search and launch page?

I think the favourites in Kickoff and S&L are separate lists.  Click the gold star on the ones you find on the S&L page to put them in the Favourites section.  If they're not staying put, report a bug.


Thanks for quoting the error message from the log; this issue has been reported elsewhere but without that log message it's quite an opaque failure.

This looks like a bug in the cloud-init azure datasource.  A bug has been opened for this issue at https://bugs.launchpad.net/cloud-init/+bug/1879737.


Update Manager in Ubuntu 12.04 freezes every time

Try running the following commands as an alternative:

sudo apt-get update
sudo apt-get upgrade

That will run the updates for you, maybe after those are run your update manager will work.


Icons in the tray do not work properly Ubuntu 13.10

You might be refering to this bug, wich fizx was already released but probably hasn't made it to normal updates.

https://bugs.launchpad.net/ubuntu/saucy/+source/gtk+3.0/+bug/1199877

You can however enable Proposed updates in Software Center>Edit>Sources and just update the mentioned packages or update the whole system.


Why did ubuntu install break out my partitions?

Something there suggests to me that you created the partitions and picked one of the automatic options in the installer, which went on to further subdivide the space of a new partition. It's just a theory and I've no idea why there are three swaps.

This is the second post like this I've seen recently. There's rarely a good reason to set your own partitions; let the installer handle all that, that's what it's there for.

Personally if I'd just done this I'd boot back to the LiveCD, delete all the Linux partitions and ask the installer to just automatically install into the free space. I'd do this because installing Ubuntu takes about three seconds. Moving partitions around takes a lot longer and is much riskier.


How can I use a Pip module with Quickly?

Do you have another version of Python installed?  That is my guess so when you installed the module it was set to work with say Python 2.7.

Type this in the terminal.  I will tell you what python version it recognizes.

which python

For python3.2 (on my system), it would say usr/bin/python3.2.

If you see usr/bin/python, then the modules are being synced to python 2.7 or whatever the standard version is installed.


You are supposed to select the All window, and use the search feature to find the program(s) you consider to install.

https://help.ubuntu.com/stable/ubuntu-help/addremove-install.html


No. /dev/sda1 is a partition. The partition contains a filesystem which you'll mount. But you can mount them anywhere you like. Nothing really wrong if you want to use /partitions/sda1 instead of /media/hollidays-2011 for instance, but I don't understand why you'd want to.


NVIDIA Geforce Go 7300 automatically removed from blacklist when problems are solved?

We won't update the blacklist in a stable release for UI consistency (I don't think that our user base would be pleased if we you update and you are transitionned into another UI at next reboot).

However, we will update that for the next ubuntu release of course (and hopefully, people will use that to create a PPA for natty users).


Rather than recreate the wheel, a user asked a very similar question to your own here:

Possible to run a script when something plugged in / disconnected from Mini DisplayPort?

This seems to be what you are looking for. Then you just set the script referred to here to run XMBC when the HDMI is plugged in. Please pay special attention to whether or not your card records when the HDMI is disconnected. You could then design a script to:

1) Verify that XMBC is running

2) Verify that the HDMI port is still connected using the same UDEV script in the link

3) Kill XMBC gracefully should the HDMI port be unplugged

This assumes that you want the XMBC daemon killed when the HDMI gets unplugged, of course.


Nvidia problem after inappropriate shut down

Have you tried to re-install drivers (which I assume proprietary ones, as you talked about nvidia-settings)?
Are you getting the right resolution or low-res mode?


Cannot connect DSL after upgrade from 14.10 to 15.04

This is Ubuntu bug 1438003 and it has a workaround:

  I'm hitting this bug too, and so far working around it by going to Edit connections → Edit the network you want to connect to → manually input the WPA2 password in the Wi-Fi Security tab → Save, then it connects without problems.


Windows XP can't access NTFS partitions created with gparted

Yes, the partition type needs to be 0x07.  Run sudo fdisk /dev/sda and use the t command to tag the partition with the correct code, then w to save and exit.


Dowgrade Upgrade WUBI Ubuntu Precise 12.1 replacing only PPA

Another proposition on top of your 3 possibilities as wubi is a dead end street.

just bite the bullet now and:

Take a full back-up of your data
flash your BIOS (to get rid of the firmware bug)
Wipe your virus-ridden Windows and install 16.04 as per here

That way:

you will have a clean, working system
you will have future-proofness
you will have Long Term Support
you can always install Wine Is Not an Emulator (wine) for those applications that really need Windows and are not available on Ubuntu (I have none, but some people do)


Ubuntu 12.04 : No video, image thumbnails after repairing partitions

Perhaps try reinstalling gnome keep in mind though that if you have uninstalled unity this may be difficult so an understanding of ALT+FX would be useful

sudo apt-get purge gnome-shell
sudo apt-get install gnome-shell


Why are there 2 packages for some applications (e.g. Chromium) in Ubuntu Software?

The first and the third items are both the Chromium browser. The former is a snap package and the latter is a Debian package.

You can confirm this from the version numbers and descriptions. The first:

matches:

$ snap search chromium
Name      Version       Developer  Notes  Summary
chromium  62.0.3202.75  canonical  -      Chromium web browser, open-source version of Chrome

The second:

matches:

$ apt search chromium-browser
Sorting... Done
Full Text Search... Done
chromium-browser/xenial-updates,xenial-security 62.0.3202.75-0ubuntu0.16.04.1313 amd64
  Chromium web browser, open-source version of Chrome

and the AppStream description:

$ appstreamcli search chromium
Identifier: chromium-browser.desktop [desktop-application]
Name: Chromium Web Browser
Summary: Access the Internet
Package: chromium-browser
Icon: chromium-browser_chromium-browser.png

Using the gnome-software command should help. Both of these commands open the third entry:

gnome-software --details=chromium-browser.desktop
gnome-software --details-pkg=chromium-browser

Here, chromium-browser.desktop is the AppStream ID, and chromium-browser is the package name.


How do I compile the latest gvim from source

Run the following commands in the terminal.

sudo apt-get build-dep vim-gnome

to get all the build dependencies you need.
Then

sudo apt-get install mercurial

to get the Mercurial version control system needed to download the latest Vim source code.
Then

hg clone https://vim.googlecode.com/hg/ vim

to download the Vim source code to the subdirectory vim of the current directory.

cd vim/src

to change to the right directory

Now let's configure Vim for compilation (with "huge" features - see http://www.drchip.org/astronaut/vim/vimfeat.html for a description of the different feature sets)

./configure --prefix=/usr/local --with-features=huge

If ./configure finished without any problems, then run

make

and then

sudo make install

and that should be it.

To update Vim to the latest version, just go into the vim directory and run

hg pull
hg update

and then re-run configure, make and make install.


By beginning your script with #!/bin/sh, you're telling the system to use the dash (POSIX features only) shell interpreter. See man sh;man dash. dash does not support shell arrays.

If you change the first line to #!/bin/bash, you'll get all the bash features, including arrays. See man bash.


I would suggest that you try out Xubuntu. Xubuntu is more lightweight than Ubuntu with Unity, but more polished than Lubuntu. If Lubuntu with LXDE worked fine for you (hardware-wise), then Xubuntu with Xfce should, too.

If Xubuntu doesn't suit you, though, then anoter solution could be Enlightenment. Either way, different people have different tastes, so I would suggest that you take a look at What kinds of desktop environments and shells are available? for an overview of the various DEs available. Perhaps a different choice would fit your needs.


How fix hostapd invalid/unknown driver 'nl80211' error?

You need to build, or obtain, a different copy of hostapd.  The one you have has been built with the option CONFIG_DRIVER_NL80211 set to N, rather than Y.

There are simple and detailed instructions how to rebuild it here → Hostapd building instruction. Rebuild it with the option enabled.   You may have to google for hostapd.2.0.tar.gz, but do exactly as it mentioned in link.

As for the follow-up question/error try to install this library libssl-dev using this command:

sudo apt-get install libssl-dev


I can read from /dev/null; how to fix it?

/dev/null is a file. A special file. A device file like /dev/sda or /dev/tty that talks to a piece of hardware on your system.

The only difference with /dev/null is that no hardware is linked to it. Any data you send to it is silently discarded. Like the following command:

echo "Hello World" > /dev/null

which won't print anything on your terminal because you send the output of echo to null, to the void, a black hole thus.

But when you did mv test_file /dev/null you've replaced the special file /dev/null by a normal text file, holding a copy of the content of your test_file.
In other words, you've lost your /dev/null.

Now, what you have to do is (to reconstruct it):

sudo rm /dev/null
sudo mknod -m 0666 /dev/null c 1 3

You should reconstruct it because a lot of scripts by default send output to /dev/null. If /dev/null is no more a black hole but a regular text file, it may grow, grow and fill your file-system up. And I'm sure you want to avoid this.

And much more dangerous, a lot of scripts assume that reading from /dev/null will read nothing; breaking this assumption can lead to random garbage written in files all around your system... practically impossible to fix up.

And remember that Linux is multi-tasking: while you are playing with /dev/null, a lot of processes are running and can wreak havoc even during a few seconds "window of opportunity".

If you want to play with /dev/null you can create a copy and experiment with it:

sudo mknod -m 0666 /tmp/null c 1 3

Will create a /tmp/null file that works in the exactly same way of /dev/null but that you can manipulate and test without any risk for your system.


The package is called subversion  (abbreviated svn). You've to install it by running:

sudo apt-get install subversion

This package contains the svnserve daemon too (not started by default). If you want to host a subversion server over HTTP, you must install apache2 and configure it accordingly.


From the question above it's clear that is the system try to install libgnuradio-iqbalance package, and it's can't. I cannot do a lot until fix this issue, so I was going to remove the packages that required libgnuradio-iqbalance package. I have typed sudo apt-get upgrade command, and the output was as the following ::

ayad@Ayad:~$ sudo apt-get upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these.
The following packages have unmet dependencies:
 gr-osmosdr : Depends: libgnuradio-iqbalance but it is not installed
 libgnuradio-osmosdr0.1.4 : Depends: libgnuradio-iqbalance but it is not installed
E: Unmet dependencies. Try using -f.

It's clear that is I have two packages require libgnuradio-iqbalance package. Therefore I have tried to delete them using sudo apt-get remove PACKAGE_NAME command, the output was as the following ::

ayad@Ayad:~$ sudo apt-get remove gr-osmosdr
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
 libgnuradio-osmosdr0.1.4 : Depends: libgnuradio-iqbalance but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
ayad@Ayad:~$ sudo apt-get remove libgnuradio-osmosdr0.1.4
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
 gqrx-sdr : Depends: libgnuradio-osmosdr0.1.4 but it is not going to be installed
 gr-osmosdr : Depends: libgnuradio-osmosdr0.1.4 but it is not going to be installed
              Depends: libgnuradio-iqbalance but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

From the Terminal's output, we can see that it the gr-osmosdr package cannot be removed. And so on for libgnuradio-osmosdr0.1.4 package because it's required from gr-osmosdr and gqrx-sdr packages. So I went to delete gqrx-sdr package, but it was unable to delete.

By searching on the internet, I find a way to delete these packages from here, using sudo dpkg --remove --force-remove-reinstreq PACKAGE_NAME command. then I have typed the following ::

ayad@Ayad:~$ sudo dpkg --remove --force-remove-reinstreq gqrx-sdr
dpkg: warning: files list file for package 'arduino' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'arduino-core' missing; assuming package has no files currently installed
(Reading database ... 364867 files and directories currently installed.)
Removing gqrx-sdr (2.5.3-gqrx4~xenial) ...
Processing triggers for man-db (2.7.5-1) ...
Processing triggers for hicolor-icon-theme (0.15-0ubuntu1) ...
Processing triggers for bamfdaemon (0.5.3~bzr0+16.04.20160824-0ubuntu1) ...
Rebuilding /usr/share/applications/bamf-2.index...
Processing triggers for gnome-menus (3.13.3-6ubuntu3.1) ...
Processing triggers for desktop-file-utils (0.22-1ubuntu5) ...
Processing triggers for mime-support (3.59ubuntu1) ...
ayad@Ayad:~$ sudo dpkg --remove --force-remove-reinstreq gr-osmosdr
dpkg: warning: files list file for package 'arduino' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'arduino-core' missing; assuming package has no files currently installed
(Reading database ... 364858 files and directories currently installed.)
Removing gr-osmosdr (0.1.4.75.ae686c4-myriadrf3~xenial) ...
Processing triggers for man-db (2.7.5-1) ...
ayad@Ayad:~$ sudo apt-get remove libgnuradio-osmosdr0.1.4
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
  gr-fcdproplus libairspy0 libbladerf1 libgnuradio-fcdproplus0 libhackrf0 libmirisdr0 libosmodsp libosmosdr0 libsoapysdr0.5-2
Use 'sudo apt autoremove' to remove them.
The following packages will be REMOVED:
  libgnuradio-osmosdr0.1.4
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
10 not fully installed or removed.
After this operation, 1,052 kB disk space will be freed.
Do you want to continue? [Y/n] y
dpkg: warning: files list file for package 'arduino' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'arduino-core' missing; assuming package has no files currently installed
(Reading database ... 364826 files and directories currently installed.)
Removing libgnuradio-osmosdr0.1.4:amd64 (0.1.4.75.ae686c4-myriadrf3~xenial) ...
Processing triggers for libc-bin (2.23-0ubuntu3) ...
Setting up libgnuradio-fcdproplus0 (10.0.1.0-myriadrf5~xenial) ...
Setting up gr-fcdproplus (10.0.1.0-myriadrf5~xenial) ...
Setting up libosmodsp (0.3.0-myriadrf1~xenial) ...
Setting up libsoapysdr0.5-2:amd64 (0.5.3.1.609808b-myriadrf1~xenial) ...
Setting up libairspy0:amd64 (1.0.8-1~ubuntu16.04.1~myriadrf1) ...
Setting up libbladerf1:amd64 (0.2016.01~rc1-3) ...
Setting up libhackrf0:amd64 (2015.07.2-6) ...
rmmod: ERROR: Module hackrf is not currently loaded
Setting up libmirisdr0:amd64 (0.0.4.59ba37-4) ...
Setting up libosmosdr0:amd64 (0.1.8.effcaa7-5) ...
Processing triggers for libc-bin (2.23-0ubuntu3) ...

And then I typed sudo apt-get upgrade command.

ayad@Ayad:~$ sudo apt-get upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages were automatically installed and are no longer required:
  gr-fcdproplus libairspy0 libbladerf1 libgnuradio-fcdproplus0 libhackrf0 libmirisdr0 libosmodsp libosmosdr0 libsoapysdr0.5-2
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

It's Done.

Now I have going to remove gnuradio and reinstall it because I think there are some files missing within it.


Run a script when connected to a network

To make it work I placed it in /etc/NetworkManager/dispatcher.d and re-wrote it as
!#/bin/bash
if [ "$2" = "up" ]; then #not "$IFACE = wlan0"
    echo "hello world!">>/tmp/out.txt
fi

I tried placing it in /etc/network/is-up.d (and modify it) but it would not work


colored text format for readme or simple documentation files

README files should be as easy to read as possible without installing additional tools. Therefore, create a simple text README file, and if you want to go fancy, make a README.html version with colors, bells and whistles.


Change duplicated extension of multiple files recursively from the command line

The following did the trick.

find . -depth -name "*.zip.zip" -exec sh -c 'mv "$1" "${1%.zip.zip}.zip"' _ {} \;


Unused swap is normal.  For example here's my memory usage - this is my laptop and it's been up for 7 hours today while I'm working:

$ free -h
              total        used        free      shared  buff/cache   available
Mem:           15Gi       3.2Gi       8.5Gi       1.5Gi       3.8Gi        10Gi
Swap:         979Mi          0B       979Mi

The fact is that you don't want to be actively using swap.  Sometimes Linux will put unused programs in swap if there is enough memory pressure and that's fine.  But if you are actually running out of memory you should really just add more RAM.  Even if you are using an SSD swapping is slooow.

The only reason to add more swap is if you want to hibernate your machine.  In that case you will need at least as much swap as you have RAM.

Anyway - if for some reason you are unable to add more RAM you need to put another line in your /etc/fstab for the new swap file.  Something like this:

/dev/sdb5 none swap sw 0 0

It will now persist across reboots.

Side note:

If you want to see if your system is actively using swap use the dstat command and look at the paging column.


Fsck on every bootup, slow bootup, moved /

I have found the cause of my issue.

In /etc/fstab, the swap partition was referencing a non-existing partition UID. I updated it, and now my system boots just fine!


Transmission says port is closed but seeding is happening

The short answer to the question: YES, you can seed with closed port too.

If the port is closed that only means you can't accept incoming connections, but you can still connect to peers who accept connections. In torrent terminology they say that you are in passive mode.
If your port would be open then you would be able to accept connections too. In torrent terminology this is called active mode.

So it works like this: A client in passive mode can connect to a client which is in active mode, but not to a client which is in passive mode. A client in active mode can connect to both active and passive clients.

So if your port is closed that only means you can't connect to other peers with closed ports. That means that you may get less peers and because of that worse speed. But if the torrent is frequent and there are lot of peers your client will likely be able to find enough active peers to max out your connection. If the torrent has few peers then it is likely that with active mode you would get much better speed. (If that rare case happens that all the peers are in passive mode, then you won't be able to download/upload anything. Actually non of the peers would be able to do anything as everyone is passive, you will have to wait until an active peer comes in.)

To open that port: First find out the number of the port in Transmission under Edit->Preferences->Network->Port used for incoming connections. That port can be blocked either by your router or by your firewall.

If you use Ubuntu with the default settings and didn't activate a firewall then the linux firewall won't block any port. If you activated some kind of firewall then you have to change those settings to allow incoming connections on that port. If you use a firewall but you don't know how to allow that port, use the following command where PORT_NUMBER is the port used for incoming connections in Transmission:

sudo iptables -I INPUT -p tcp --dport PORT_NUMBER -j ACCEPT

this is only a temporary solution, after reboot this firewall setting is lost. If you want to make it permanent you can put this command in a startup script. (But it is better if you allow the port in your firewall frontend (ufw, gufw, firestarter, e.g.) for permanent solution.)
So the much more likely case is that your router is "blocking" that port:

The easier way to solve this is to just enable UPnP in the router's settings and also in Transmission under Edit->Preferences->Network tab-> and check in Use UPNP or NAT-PMP port-forwarding from my router.

If that doesn't solve it then you will have to forward that port in the router's settings. Here is a great site showing you how to do that for almost all types of router. Just select your router type there and follow the instructions. (On that site you will also have to select a program for which you want to forward, but it is unimportant which one you choose, because the solution will only differ in the port number, but you already know from transmission the port number which you want to forward.)

Note: You should only check Pick a random port every time Transmission is started in Transmission if you use UPNP, or the port number will always change and the firewall/forwarding have to be set up after every start of transmission. (UPNP can deal with changing port numbers.)


You need to boot from the disc. To do this, assuming your BIOS supports booting from a disc, put the disc into the disc drive and turn your computer off. Next, when you first turn your computer on, interrupt your BIOS. Usually this is done with the F12, Delete, or Escape keys. That should bring up an option to boot from the disc. Choose that, and the Windows installation screen should come up.


Wireless not working with an Atheros AR9285

Your problem is two-fold and you'll have to handle both errors.

*-network UNCLAIMED means no kernel module (driver) is taking care of this piece of hardware.

For your device, I'd recommend first to see if there are drivers available using the regular method: How do I install additional drivers?

In case that doesn't list any drivers for your device, try installing backported drivers from newer Linux kernels. Ubuntu has packages available for these so-called compat-wireless set of drivers. See my answer in another related question on how to do this.
ideapad_wlan: Wireless LAN, Soft blocked: yes means that your radio kill switch is activated. This prevents all communication and is useful in case you intend to do so (e.g. when requested in an airplane). To enable your radio, disable this killswitch by issuing

sudo rfkill unblock all

to enable both WiFi and Bluetooth in your case.

See My WiFi adapter is not working at all, how to troubleshoot? for a more general, complete how-to.


I play minecraft and I fixed the issue by:
Using oracles version of java by using the wepupd8 teams java ppa. Follow this tutorial:
http://www.ubuntugeek.com/how-to-install-oracle-java-7-in-ubuntu-12-04.html

Then try this in terminal

export LD_LIBRARY_PATH="/usr/lib/jvm/java-7-oracle/jre/lib/i386"

And then:

java -jar technic-launcher-latest.jar

If that doesnt work for you, you will have to update your jwgl files by following this tutorial I wrote (included references at bottom if you would rather use them):


I can't install Android Studio on my Ubuntu 16.04 LTS 64-bit due to error

It's the first time I see these intructions to install Android Studio on Ubuntu.

I recommend to use official Android page, section Tools to download directly newest Android Studio 2.2: http://tools.android.com/download/studio/builds/android-studio-2-2-stable

Unzip downloaded archive, then using terminal go to unpacked directory, and run

./bin/studio.sh file

If you see welcome screen, go to Configure -> Create Desktop Shortcut to have an Android Studio launcher in Apps menu.

Hope it will help


The partition is not hidden is is currently mounted at /mnt. Btw why did you mount it on /mnt just mount it on a folder inside the mnt folder. Anyway the files inside the folder maybe hidden so just run ls -a or press CTRL + H to view hidden files using Thunar or Nemo. Try Gnome Disk Utility its great for managing mounting points without using terminal.


Mouse (in VirtualBox) scrolls horizontally

Fixed it with this: My mouse wheel has stopped scrolling up and down

I don't know what caused the problem, but those tools helped diagnose and fix it.


You need %user + %nice + %system for total CPU.

If %user gets close to 100% it might be because of you running "sar"; keep the intervals relative long.

%iowait is time that the processor/processors are waiting but it is only for a single CPU So useless for multi cores.
%steal is the percentage of time a virtual CPU waits for a real CPU


just go to the display settings and turn off sticky edges !


finding specific files and data inside files

To search for specific file inside directory,

locate filename

OR

find /path/to/search -iname 'filename'

To search for specific word in a file

grep text /path/to/the/file


I do this regularly and you don't even have to start the virtual machine itself. The idea is to mount the disk image on your host machine.

To do this, you'll need virtualbox-fuse:

$ sudo apt-get install virtualbox-fuse

You can then mount the image using vdfuse. Per example, mounting a VDI image (VMDK and al are also supported), as root:

$ mkdir /mnt/vdi
$ vdfuse -f /path/to/disk/image.vdi /mnt/vdi

In /mnt/vdi, you'll have a disk image for each partition and one for the entire disk:

$ ls /mnt/vdi
EntireDisk  Partition1  Partition2

Mount the partition you want:

$ mkdir /mnt/guest
$ mount /mnt/vdi/Partition2 /mnt/guest

And that's it. You can now copy your files from /mnt/guest to your host machine without any network overhead whatsoever.

It's also useful for a ton of other things other than backing up broken VMs. ;-)


Command line suspend for a pre-determined amount of time

I'm assuming that you want Suspend-to-RAM (ACPI S3).

Here is what works for me.

sudo rtcwake --verbose  --mode mem --time `date '+%s' -d '+ 130 minutes'`

The subcommand passed as the argument to --time is the easy way to generate the int timestamp required by that argument.

Note that on my system, I have to cheat a bit: the command above just suspends for 10 minute -- must be related to the internal clock not using UTC.

Note also that --mode can take other values:

disk to Suspend-to-disk (ACPI S4)
no to just set the alarm but does not suspend
(there are other options, see man rtcwake)

If you use no, you can then check the state of the alarm with

cat /proc/driver/rtc

Look at the first 6 lines:

rtc_time     : 10:34:45
rtc_date     : 2012-02-29
alrm_time    : 10:44:36
alrm_date    : 2012-02-29
alarm_IRQ    : yes
alrm_pending : no

alrm_pending always display no for me, go figure... But the interesting one is the alarm_IRQ, which is set to yes when an alarm is set.