Enforce a shell script to execute a specific python version

Since you have multiple python versions installed and you want to determine which python is to be used as default, you should use update-alternatives command which maintains symbolic links determining default commands.

First of all run this:

update-alternatives --list python

If the result is:

update-alternatives: error: no alternatives for python

Then you should use update-alternatives to --install alternatives of the various python versions that you have (if the --list option resulted in listing alternatives, jump straight to the --config option mentioned later). Parameters for the --install option are group, target and priority where the greater priority number results into higher priority and group means the path of the command that will be given a group of alternatives:

update-alternatives --install /usr/bin/python python /usr/bin/python2.4 1
update-alternatives --install /usr/bin/python python /usr/bin/python2.7 2

After this, python 2.7 is your default python since it was given a greater priority number and you have both python versions installed as alternatives (or more if you installed other versions too). Bear in mind that python 2.7 is now the default python for everything.

You can now list the installed alternatives again for a group with --list parameter:

update-alternatives --list python

/usr/bin/python2.4
/usr/bin/python2.7

And now you can switch between the alternatives with:

update-alternatives --config python

Enter the selection number and you're all set to have the desired version of python used as the default python.

Use man pages to read more about update-alternatives:

man update-alternatives


How do I stop color changes when quitting vi from a terminal emulator?

You just need to keep the TERM setting same in both the computers. So just change it to whatever is in the server.

Note that you should keep the set t_Co=256 setting in .vimrc for it to work properly, esp when connected remotely.


Can't find upgrade to 12.04, Update manager doesn't seem to detect it

Try to clean it first

sudo apt-get clean
sudo apt-get autoremove
sudo apt-get update && sudo apt-get upgrade


compiz refresh rate keeps resetting itself to 50

This seems to be a bug in compiz. For now the only solution is to set the value on every restart:

Create a shell script, make it executable and put it in the start up application list. The shell script should contain the following:

#!/bin/bash

dconf write /org/compiz/profiles/unity/plugins/composite/refresh-rate "60"

For more information read here: Changing "Composite > Detect Refresh Rate" is ignored initially


Used and available df values don't add up to the correct size

Used and Available are not added up to the 1K-blocks because the Available excludes the blocks reserved by root.

Reference:

https://unix.stackexchange.com/questions/179274/what-does-1k-blocks-column-mean-in-the-output-of-df

https://en.wikipedia.org/wiki/Df_(Unix)


PHP5.4 Unable to load dynamic library gd.so undefined symbol: gdGetC

The real culprit is the fact that PHP 5.4 GD extension is not compatible with libgd (>= 2.1.0).  Since the gd.so is an dynamic extension it's not possible to detect the missing symbols at compile time.

Anyway the php5-oldstable has been updated:

libgd 2.1.x has been removed
new php5 has been updated with forced dependency on libgd 2.0.x

E.g. this bug has been fixed in php5 5.4.17-5+debphp.org~+1 (some dists are still building at the time of writing this answer).


You don't need UEFI for any Ubuntu version at the moment. Might even be problematic with really old be versions.


Transmission causes internet to stop working - log off required to make it work again

I think you might be experiencing the same problem as the one discussed in Transmission slows down internet connection. This is my answer to that question:

  The problem, in your case, is probably
  not the data rate but the number of
  connections. Many internet gateways
  can't handle many connections at the
  same time.

  You can Limit your maximum amount of
  simultaneous connections in the
  Transmission preferences like so:

  Try to keep these values very low at
  first. 5/10 is a good starting point.
  And increase them slowly as you find
  it working.

  Note: Especially new torrents can show this behaviour. If you wait until
  there are enough seeders for a
  torrent, it'll be slowing down your
  browsing much less.
  Note also: You shouldn't have to limit bandwidth. This is handled by
  the TCP/IP stack, no problem, in
  most cases. It tries to schedule packet delivery fairly.

I found that some routers just give up under the load of a badly seeded torrent when you use many connections.


What packages do I need to install in order to bulld postgres from source?

I believe you're interested in sudo apt-get build-dep postgresql-8.4.


Running Bionic Beaver and not able to get sudo modprobe binder_linux to load

See https://askubuntu.com/a/1206133/452115 : it seems this is normal, and anbox installation instructions on the website are outdated.
Specifically, binder_linux no longer creates a /dev/binder file. You need a recent (from the "snap" store) version of anbox to support that version of that module. From https://docs.anbox.io/userguide/install.html#install-the-anbox-snap :
snap install --devmode --beta anbox


Configuration of dropbox-nautilus package hangs while downloading dropbox binary

Let's fool nautilus-dropbox configuration scripts.

Backup some files:

sudo cp -a /var/lib/dpkg/info/nautilus-dropbox.postinst /var/lib/dpkg/info/nautilus-dropbox.postinst.bkp
sudo cp -a /var/lib/dpkg/info/nautilus-dropbox.prerm /var/lib/dpkg/info/nautilus-dropbox.prerm.bkp

Write new empty postinst and prerm scripts:

echo '#!/bin/sh' | sudo tee /var/lib/dpkg/info/nautilus-dropbox.postinst
echo 'exit 0' | sudo tee -a /var/lib/dpkg/info/nautilus-dropbox.postinst
sudo cp -a /var/lib/dpkg/info/nautilus-dropbox.postinst /var/lib/dpkg/info/nautilus-dropbox.prerm

Now you should be able to remove nautilus-dropbox:

sudo apt-get purge nautilus-dropbox


Alt+F2 (Run Application) doesn't work for custom commands

I assume the bashrc is not read by Gnome, and why should it, since it is a config file for bash.

I define my path in ~/.profile. This file is definitely read by the Gnome and XFCE environments and should by others as well. (But it is read only on login, so you have to log out and back in any the changes to take effect!)


Run "qjackctl"  (install it eventually) , clic "settings".
Look for the "interface" selection and clic on the ">" near it: you should see your usb device in the list.
Just select it  and  close and restart Qjackctl : now you should see "system" with "playback" and "capture" in the audio connection window .

Delayed recording  problem : the delay  on the  recorded sound (latency)   is caused by the "sample/periods" setting (1024 on the screen capture): set it to 128 or 256. The obtained latency is displayed  in the bottom right : 5 ms or less is excellent , around 10 ms is ok.
If you set latency too low , you will get clics  ("xruns") when recording with Ardour.
Stop Ardour, jack and qjackctl for applying changes

Audio level problem: You must first set an acceptable level for Ardour  using alsamixer in a terminal  or gnome-alsamixer (install it) , select your usb sound card (F6 in alsamixer, click on the relevant tab in gnome-alsamixer), then increase "capture" faders etc...
 Ardour as a built-in mixer  but incoming sound level must be roughly good.

No sound  from other programs : Normal, as jackd takes the sound card , disabling pulseaudio (this is automatic).So stop jackd with qjackctl when you don't use Ardour.
 You can use also jack compatible programs like vlc (vlc-jack, to be installed) . This   thread shows how to connect Firefox to jackd but it is not very useful in your case.


Permissions when mounting a network drive

Read man mount.cifs, the uid=,gid=, and forceuid will help.
You can find your UID and GID with id.


You can disable (or enable) the left sidebar entirely by pressing the F9 key.

If you are willing to hide only the text, but keep the icons, I don't think that's easily doable. Note that there aren't actually two columns (i.e. one for the icons and the other for the texts). There is a single column and the illusion of two columns is created by the theme Ubuntu uses. With the GNOME-default Adwaita theme it would look something like this:


How to save currently playing radio station?

1 - In Banshee click on Add A New Internet Station Or Playlist

2 - Then in the Stream URL field copy and paste: http://www.somafm.com/groovesalad.pls

3 - In the Station Name enter the station name

4 - In the Station Genre drop-down menu choose from the list

For some unknown reason you need to fill the Station Genre in before it will allow you to save the station.

5 - Click Save

I have just tested this and it works, even after I have restarted Banshee the radio station I added was there and was working perfectly.


Deleted var/log/* and now Ubuntu tries to enter setup on boot

Commands to recreate /var/log (FILES only; no dirs) ...
cd /var/log/
sudo touch ubuntu-advantage.log bootstrap.log Xorg.1.log faillog fontconfig.log btmp apport.log lastlog dmesg.0 alternatives.log Xorg.0.log.old gpu-manager-switch.log gpu-manager.log boot.log dmesg Xorg.0.log wtmp dpkg.log kern.log syslog auth.log

sudo chown root:root *.log
sudo chown root:root faillog
sudo chown syslog:adm kern.log
sudo chown syslog:adm syslog
sudo chown syslog:adm auth.log
sudo chown root:adm dmesg*
sudo chgrp utmp btmp
sudo chgrp utmp wtmp
sudo chgrp adm apport.log


problem with Gnome and how to upgrade it

Upgrading from Gnome shell 3.10 to 3.14 is highly risky. Things may break. Only if you are sure/patient, then continue. Or else its better to stick with your version

Saying that, this is the procedure (I tried on Ubuntu Gnome and it worked after fixing lots of things. )

1)First upgrade to Gnome 3.12 - http://www.webupd8.org/2014/05/how-to-install-gnome-312-in-ubuntu.html

2)Then upgrade to Ubuntu 14.10

3)Now upgrade to Gnome 3.14 - http://www.webupd8.org/2014/10/how-to-install-gnome-314-in-ubuntu.html

If any things break you can follow - Several crashes after upgrading to 14.10 from 14.04 . This worked for me.

Backup your system for sure before starting this.


How to ‘lockdown’ system-wide settings with `dconf`

The profile file must be /etc/dconf/profile/user

From man 7 dconf:

On startup, dconf consults the DCONF_PROFILE environment variable.
If set, dconf will attempt to open the named profile, aborting if that fails.
If the environment variable is not set, it will attempt to open the profile named "user"
and if that fails, it will fall back to an internal hard-wired configuration.

I've added that file:

cat /etc/dconf/profile/user
user-db:user
system-db:local

Then I've put my lockdown file in /etc/dconf/db/local.d/lock

And finally I run dconf update

I had to logout and login again as I was using the hard-wired configuration.
Now it works.


Ubuntu 13.04 network connection is no more

OK, two possible solutions to the two parts of your problem.

Firstly, to get Network Manager back up try running this from the command line:

sudo service network-manager start

If that works, then you probably need to make that change permanent by editing the file /etc/rc.local and adding the line

NetworkManager

before the line that says 'exit'. Reply if you need help doing that.

(See Restarted computer during update; "the system network service is not compatible with this version" for source of above.)

Secondly, if you want to try wicd again then it looks like you're experiencing a symptom of this bug: https://bugs.launchpad.net/ubuntu/+source/wicd/+bug/1132529

The solution that worked for me was to run the following commands from the command line (see comment #22 from above link):

sudo service wicd stop
rm /etc/resolv.conf
ln -s /run/resolvconf/resolv.conf
rm /var/lib/wicd/resolv.conf.orig
ln -s /run/resolvconf/resolv.conf /var/lib/wicd/resolv.conf.orig
sudo service wicd start

Hope that helps!


I would like to install Simon Voice recognition software on Ubunu 18.04

Since simon was dropped from the 18.04 repositories, installation is not easy, and requires downloading its source code and compiling it. This is non-trivial.

Alternatives? CMUsphinx is just a toolkit which simon uses, and freespeech AKA OpenMindSpeech is less. julius, another toolkit simon uses, exists and is in the 18.04 repositories, but is nowhere near as well documented as simon. Installing julius is simple: open a terminal window and type in

sudo apt-get install julius

Should you find julius wanting, this article goes into great detail on an alternative through Google Docs.


Software corrupted during upgrade to 19.04

You can't access Ubuntu from Windows. Boot from the installation DVD/USB drive (live).
Select Try "Ubuntu"  and copy/paste anything you want.


Ubuntu 17.10 on Acer Cloudbook 14 ao1-431

Try booting to an Ubuntu emergency disk, opening a Terminal window, and issuing the following command:

sudo efibootmgr -o 0005,2001,2002,2003

Note that the values here are for your system, as revealed in the efibootmgr output in your Boot Repair output. Specifically, I've added the ubuntu option (Boot0005, hence 0005) to the front of the boot order list.

When you reboot, GRUB should appear and you should be able to boot; however, many computers have defective EFIs that will prevent this from working. If you continue to have problems at this point, you'll have to employ a fix or workaround, such as:

Reset firmware options to their defaults -- Sometimes NVRAM data becomes damaged and resetting the firmware options to their defaults will clear enough out that the problem will go away. You'll need to dig around in your firmware setup utility to locate the appropriate option. Note, however, that the ubuntu entry in the boot order list is likely to disappear, so you may need to add it manually or run Boot Repair to completely re-install GRUB.
Update your firmware -- If you're very lucky, your computer's manufacturer may have released a firmware update (probably called a "BIOS update" on their site) that fixes this problem. You can try installing it, then try fixing the boot order again. Sometimes this will wipe the boot options, just like the preceding fix, so you may need to manually add a boot option or run Boot Repair.
Return your defective computer for a refund -- If neither of the preceding options helps, and if the computer is new enough, I recommend returning it to the store for a refund. Manufacturers have had YEARS to fix this very fundamental bug, so I cannot recommend giving your money to a manufacturer who hasn't fixed this problem. Of course, you may not have the option to return the broken computer for a refund if you bought it months or years ago, so....
Copy GRUB to the fallback position -- EFI-based computers should boot from the fallback filename, EFI/BOOT/bootx64.efi (case-insensitive) on the EFI System Partition (ESP), if no other boot entry is valid. Thus, you can copy GRUB (or Shim, if Secure Boot is active) to this location to get the boot to work. To do this, mount the ESP somewhere convenient in an emergency system, copy EFI/ubuntu at this mount point to EFI/BOOT at the same mount point, and rename EFI/BOOT/shimx64.efi to EFI/BOOT/bootx64.efi. (You could instead rename grubx64.efi to bootx64.efi if you're sure you're booting with Secure Boot disabled.) This should get the system to boot, but subsequent updates to GRUB or Shim will not be properly installed unless you manually repeat this step.
Use fbx64.efi -- The fallback.efi/fbx64.efi program is intended to help with your type of situation. If this program is installed using the fallback filename, it will look for .CSV files in subdirectories of EFI and, if they're found, read their contents and use that to re-create suitable boot entries and move them to the top of the boot order. Shim will also launch a matching fbx64.efi file if it's present, so you can copy shimx64.efi to EFI/BOOT/bootx64.efi and put fbx64.efi in EFI/BOOT to have it work with Secure Boot enabled. Setting this up manually is more of a pain than copying GRUB to the fallback filename, but it's a slightly cleaner solution in some respects. IIRC, Ubuntu 17.10 should set this up automatically, but your Boot Repair output lacks sufficient details to verify that this is the case on your system. (Unfortunately, Boot Repair lacks proper support for NVMe disks.)


How to run (if possible) gpu-accelerated apps in LXC (LXD) container?

There is an updated guide that simplifies the process,
https://blog.simos.info/running-x11-software-in-lxd-containers/

Both guides expose the hardware acceleration of the host to the container. Therefore, you should be able to run chromium-browser with GPU acceleration, as if you were running on the host.

To verify that the container is setup correctly, try to run the following. If both run successfully, then GPU acceleration has been setup correctly in the container.

glxinfo
glxgears


How can I create a new partition with mountpoint by splitting an existing partition?

You need to boot from a live CD or USB and use gparted to partition your drive. It should be called something like Partition Manager in the System->Administration menu.

Read through this tutorial for gparted  - it should tell you everything you need to be able to:

Shrink the partition
Create a new partition in the free space created by this action

You should take a note of the device path of the partition you create (eg. /dev/sda5). To mount this drive you can run this command:

sudo mount -t ext4 /dev/sda5 /path/to/mountpoint

Replace ext4 with the file system type, /dev/sda5 with the device path you noted down and /path/to/mountpoint with the file path you want it to be mounted to.

To permanently mount this partition, you need to edit /etc/fstab. Before you do, make a copy to back it up in case you mess it up somehow. To edit /etc/fstab, press Alt+F2 and enter gksudo gedit /etc/fstab. This will prompt you for your password and then open the file in the text editor.

Once opened, add this line to the end of the file:

/dev/sda5       /home           ext4    defaults        0       2

but obviously you need to use your specific information instead. Once you have done this, save and close the file. The partition will now be mounted to the specified path every time you start up the computer.


You can create a role with your name by running a createuser command as the postgres system user. Run this in a terminal:

 sudo -u postgres createuser roelof


Network performance dropped in Ubuntu 15.04 with Realtek RTL-8110SC/8169SC

I've switched to the Intel adapter as @Pilot6 suggested in the comments and it works flawlessly. Probably some issue with the Realtek network interface driver or something.

If you have something to add here, please do so.


If you do:
$ ls -lad /tmp
drwxrwxrwt 28 root root 36864 Feb 14 22:26 /tmp

You'll see that it has the sticky bit (t) set. This prevents users from removing or renaming files of other users. Recent Linux also takes this further by introducing the fs.protected_regular sysctl which also prevents writing to other users' files in such directories.
You could do what you want to do in a directory that isn't set sticky or if it's just writes you could disable that sysctl (system-wide).


Ubuntu 14.04 virtualbox ctrl and alt keys on a MacBook Pro keyboard?

I found the solution for my issue:

clear control
clear mod4
clear mod1

keycode 105 =
keycode 206 =

keycode 64 = Control_L NoSymbol Control_L
keycode 133 = Alt_L NoSymbol Alt_L
keycode 134 = Control_R NoSymbol Control_R
keycode 37 = Super_L NoSymbol Super_L

add control = Control_L
add control = Control_R
add mod1 = Alt_L Meta_L
add mod4 = Super_L

If using an external keyboard plugged to the mac laptop, you can also map the keyboard in the list of available inputs in your Ubuntu instance by defining it in Settings -> Text Entry -> Input Sources as shown below (for a UK laptop). After that, you can switch between keyboards with the top-left corner icon (if on Metacity), e.g. En1:


Chainload boot of Ubuntu installed on 32GB SD card from legacy Grub boot on USB

Try running the following in Legacy GRUB's command line:

uuid {{device uuid here}}
kernel /boot/grub/core.img
boot

{{device uuid here}} is, obviously, your SD card's UUID.  This also assumes that your installation of GRUB2 is located at {{sdcard}}/boot/grub.  You could also do it via chainloading from Legacy GRUB:

uuid {{device uuid here}}
chainload +1

Regardless, if you want to boot from UUID, make sure that your Legacy GRUB is version 0.97 (otherwise you won't have access to the uuid command, meaning that you'll have to hunt for the SD card by device name).


How to send messages on LAN running on Windows and Ubuntu

To send to one user, have a look at the write command. From the relevant man page:

 The write utility allows you to communicate with other users, by copying
 lines from your terminal to theirs.

 When you run the write command, the user you are writing to gets a mes‐
 sage of the form:

       Message from yourname@yourhost on yourtty at hh:mm ...

 Any further lines you enter will be copied to the specified user's termi‐
 nal.  If the other user wants to reply, they must run write as well.

 When you are done, type an end-of-file or interrupt character.  The other
 user will see the message ‘EOF’ indicating that the conversation is over.

To send to multiple users, look at the wall command:

 Wall displays the contents of file or, by default, its standard input, on
 the terminals of all currently logged in users. The command will cut over
 79 character long lines to new lines. Short lines are white space padded
 to have 79 characters. The command will always put carriage return and
 new line at the end of each line.

 Only the super-user can write on the terminals of users who have chosen
 to deny messages or are using a program which automatically denies mes‐
 sages.

Also relevant is the mesg command:

   Mesg  controls  the  access to your terminal by others.  It's typically
   used to allow or disallow other users to write to  your  terminal  (see
   write(1)).


When I click a link in Google Chrome the Thunderbird Account Wizard opens

Ok, Looks like I had to send an email. That's why the account wizard was opening. To set up the email system on this computer. Thanks for your answers.


How to make a virtual machine with .vdi file

If you are using VirtualBox, then it is not too difficult to take a VDI and use it anywhere. Here's how:

copy your .vdi file to a directory where VirtualBox will be able to access it
run VirtualBox and create a new virtual machine
choose Ubuntu Linux as the operating system and click "Next"
under the "Virtual Hard Disk" option, choose "Use existing hard disk". This will open the "Virtual Media Manager".
in the Virtual Media Manager, click the "Add" button and select the .vdi file that you copied, then click "Next"
configure the rest of the virtual machine as you would like it to be
start the virtual machine

So long as the .vdi file has not been corrupted, it will work just fine.


I found the answer here:
https://itsfoss.com/switch-xorg-wayland/

Simply:

Use the command below

xhost +si:localuser:root

and then run the troublesome program with sudo like this:

sudo -H gparted

I tried it and it worked.


How do I move the GNOME application launcher to the top?

Do you mean moving the icon that opens the application dashboard to the top of the panel?
You should be able to do it using the following command in terminal to set the proper gsetting key:
gsettings set org.gnome.shell.extensions.dash-to-dock show-apps-at-top true

About the windows key, maybe try https://unix.stackexchange.com/a/443314/68922 ?


Is there a rational reason to wait for the release date to download, install or update to the next version of Ubuntu?

If you require a super-stable working environment, I'd recommend waiting until the first Stable Release Updates (SRUs) are available. This usually happens within a few days of the official release. As the non-LTS releases tend to have more progressive enhancements and new features, they can contain bugs that have sneaked past the initial testing.

Also, waiting for the official release gives a chance to enjoy the growing excitement and buzz within the community (if you use irc, Twitter or identi.ca you'll know what I mean) :)


GNOME classic minimizer tweak/similar desktop enviorment

Super + Alt + click 3 (right click) on a panel will offer a menu with :

new panel
remove this panel
add objects to this panel
properties

Super + Alt + click 3 on an object will offer a menu with :

move the object on the panel or to another panel
remove it

click 3 on the objects will give you their preferences.

If you create a new panel you can add the unity panel area
 just add indicator applet complete

Have fun :D


Library for video conversion from one format to another format

In fact there are lots. The most common used is FFmpeg-libav. VLC utilises this library.


Problem in import/installing python modules (pyserial) in ubuntu 15

You should install the packages python-serial and python3-serial using the apt package manager:

sudo apt-get install python-serial python3-serial

Now you can import the module from both Python 2 and 3 with the name serial:

python -c "import serial; print(serial.__file__)"
python3 -c "import serial; print(serial.__file__)"

If those two example commands show you the file where the serial module is located, it works correctly.


Difference between possible ways of installing programs on Ubuntu

It is not that difficult to get to know the difference, though you could easily google it:-)

Since you are already here I will try to explain the difference.

The package manager is the easy way to install tools on ubuntu (or any linux distro), easy because when you try to install a tool it most likely (in most of the case) will need some additional libraries/packages (called dependencies) and there the package manager aid you by helping automatically to collect all dependencies and install them along.

The same won't happen with the manual package installation as if the tool has some dependencies, it will likely fail in installation and you will have to provide and install the dependencies 1by1 to satisfy and once you are done you can then install the package you were trying to install.

So when you type say:

   apt-get install foo

Apt-get will collect all dependencies and ask you if you want to install them all along by telling that "foo" requires "bar" and so on.

Differently, if you have the package foo.deb and by trying to install manually:

   dpkg -i foo.deb

It will fail because it needs also bar.deb (dependency) and so on, so the installation will become complicated.

Or there is a 3rd way which is installing from source, called self-compiling using the source file.

Here is some link to help you understand the concept:

   http://askubuntu.com/questions/309113/what-is-the-difference-between-dpkg-and-aptitude-apt-get


Installing the following worked in firefox:

sudo add-apt-repository ppa:mjblenner/hal-flash
sudo apt-get update
sudo apt-get install libhal1-flash
sudo apt-get install ubuntu-restricted-extras

restart firefox.


Can't install ubuntu alongside windows on dell xps 13

Thanks to everyone who helped me, the problem came from the usb key, Don't use sandisk's UltraFit key. It worked with a shitty made one that I grabed for free.


No scrolling on my Vaio VPCEF3E1E Notebook

http://ubuntuforums.org/showthread.php?t=1722177 any help?

Add the following line to /etc/modprobe.d/psmouse.conf
    "options psmouse proto=imps"


This can happen when the repo mirror is out-of-sync.  Change mirrors or wait a day and see if your mirror caught up.

If you want to change mirrors try the tutorials in the answers to these questions:

How can I get apt to use a mirror close to me, or choose a faster mirror?
How do you select the fastest mirror from the command line?


SMB setup guide:
https://wiki.ubuntu.com/MountWindowsSharesPermanently

NFS setup guide:
https://help.ubuntu.com/community/SettingUpNFSHowTo

Have you been trying the setup via SMB or NFS?
I would recommend the NFS connection in general for the persistent connections.


the attributes of files demonstrated by ls -l

The second column shows the number of (hard) links to that file system object.

A regular file has one hard link by default, which would be represented by just its normal file path. More hard links could be added to it with the ln command. Those extra hard links would just be regular files in the file system again, but point to the exact same file on disk as your original file descriptor.

Directories normally have two hard links by default, as they're referenced once by themselves (.) and once as entry from their parent directory. They also have one hard link as parent of each of their subdirectories. So the 135 in your case would mean that your /etc folder should have 133 subdirectories, plus the two default links.

What you label the 7th column is actually the day part of the modification timestamp.


Maybe this bug affecting nvidia users:
https://bugs.launchpad.net/ubuntu/+source/compiz/+bug/1166765

temp fix is open a terminal    and execute the following:

$ gsettings reset org.compiz.core:/org/compiz/profiles/unity/plugins/core/ active-plugins
$ shutdown -r now

if this fixes it ... maybe not permanent yet so keep this note handy.


convert a folder of mp4's to mp3's with ffmpeg?

The ls command is superfluous: filename expansion should be just enough. I did not understand the adding line breaks part of your question though... I suppose you had problems with blank spaces in filenames.

I would personally use a variant of the following command:

for f in *.mp4; do ffmpeg -i "$f" -vn "$(basename "$f" .mp4).mp3"; done

The basename part is just to remove the .mp4 suffix from $f. You can use some bash trickery instead, but I never remember the syntax.


Is porting a game to Ubuntu fine for the Ubuntu App Showdown?

No it has to be new software written from scratch.
Also see these answers:
Can I submit an application started one year ago to the Ubuntu App Showdown?

Is a port of an existing program eligible for the App Showdown?


Looks like this is fixed in a newer build. After updating my system with the groovy proposed source, it is loading correctly on startup.
I still had to set my default device on startup manually by editing /etc/pulse/default.pa and adding the set-default-sink option. E.g. set-default-sink 0
It's better to use the name of the sink rather than the index, to avoid any possible problems in the future with the indexes changing. You can find the name of the sink with pacmd list-sinks


Ubuntu has some compatibility issues running on Macs (some ACPI issues, I believe). Using the acpi=off or nomodeset or noapic or nolapic or a combination of one or more of these can help you boot normally.

I have a MacBook Pro too and used the noapic and nomodeset flags until 12.10. From 13.04 onwards, I am not using any flags.


I can recreate your problem in 12.10 if I change the setting through System Settings >> Keyboard >> Shortcuts.

This is probably related to Bug #936840  about the change in Gnome from using <ctrl> to using <primary>. Note that the setting in System Settings is given as Ctrl+Super+D, so the setting is probably no longer going through correctly.

When I left the setting in System Settings alone and made the change from CompizConfig or Dconf, the change held across reboots. Note that these two programs, use <Control><Primary><Super>d, so they apparently are able to hook the settings daemon correctly.

If you are still having trouble, try resetting System Settings to the default, rebooting, and then making the change from CompizConfig.


Install Ubuntu with Windows 8 on Separate partition

In most computers these days the D drive is the RECOVERY drive which allows you to return your Windows machine to factory specs. You need to check first before you do anything else.
If the D drive is NOT a recovery drive, then all you need to do is to insert the Ubuntu Live CD or USB stick, boot from it (consult the documentation for your computer on how to do that) and choose to install on the D drive. It's as simple as that.


Actually you should elaborate you question with more details, but I could recommend some steps below:

Before you boot Ubuntu DVD live, you must ensure that it is Ubuntu
64bit version (because yours is AMD64).
Then boot with the DVD and pressing a special keyboard key to display booting otions menu (on my nephew  ASUS laptop, it is ESC key). on
booting options, choose DVD option.

(Note: you can also set the booting optio priority from BIOS setup utiliy)


You should really check this link http://realprogrammers.com/how_to/set_up_an_ssh_tunnel_with_putty.html to set up an easy SHH-tunnel using Putty.

After setting up the tunnel you should have all the needed information to fill the required fields in MySQL Workbench and have it up and running in no time!


TrueStudio "Could not determine GDB version command" error

I have found solution. So for solve problem you should install libncurses5 library. Command is sudo apt install libncurses5 .

Thanks for helps.


Clone Ubuntu with openssh-server, Still asking for password

Try to ssh with the -v flag and see what the identification error is.

ssh -v username@destinationIP

When you cloned the machine, the program may have regenerated the MAC address in the clone, so it's not recognized as the old one.

Also, I would advice to recreate the keys, not just copying them.


How to run FSCK with write capabilities on a sever with 4+ partitions

It depends on the type of filesystem you are using. Ext2/3/4, for example, cannot safely run on a mounted filesystem, so you must either boot into single user mode, or use a boot disk. Other types allow mounted checks in writemode (btrfs, etc.).


Acquiring pre-releases/betas for unreleased distros for testing

You can download Ubuntu 16.10 beta version from here: http://cdimage.ubuntu.com/ubuntu-gnome/releases/16.10/beta-2/

However be advised this has been in Alpha and then Beta for quite some time and the production release is scheduled for October 14th, 2016 (I think) so you need to act quickly!


VMware Tools - There was a problem updating a software component. Try again later and if the problem persists, contact VMware Support

sudo apt install libncursesw5

This solved it for me.


I can not update or upgrade from 11.10. How can I troubleshoot this?

If you are able to reach remote server on the internet using IP address, but not by domain name, then most likely you need to update your DNS servers:

Edit /etc/resolv.conf:

sudo vi /etc/resolv.conf

If any nameserver lines appear, write down the IP addresses for future reference.
Replace the nameserver lines with, or add, the following lines:

For IPv4:

nameserver 8.8.8.8
nameserver 8.8.4.4

For IPv6:

nameserver 2001:4860:4860::8888
nameserver 2001:4860:4860::8844

Save and exit.
Restart any Internet clients you are using.
Test that your setup is working correctly:

ping google.com

Reference: Google Public DNS


Select different wallpaper for each virtual desktop in Xubuntu 18.04

Right-click on the first workspace desktop and select Desktop Settings. You will see the image above. Untick Apply to all workspaces and set the wallpaper you like. Repeat the process by right-clicking on each workspace desktop.


cannot use wifi broadcom 802.11 alternative driver in ubuntu 15.04

If you still have the install DVD or USB, then you can find the correct driver and its prerequisite there. Navigate to pool > restricted > b > bcmwl and drag and drop the deb file to your desktop. Now navigate to pool > main > d > dkms and drag and drop dkms to your desktop. Now install both with:

cd ~/Desktop
sudo dpkg -i *.deb

Load the driver:

sudo modprobe wl

Your wireless should now be working.

If there is an error, please post it and I'll propose a further solution.


How can I use four finger drag and switch between workspaces with my touchpad on Ubuntu?

Yes, this is possible with Touchégg.

This is an open source script you install onto your machine via the command line. There is an alternative GUI but I have not used that.

Once installed you can execute touchegg from the command line and it will tell you which touch devices you have.

After this you can edit the configuration file, mentioned in the instructions, to tell Touchégg what to do with 4 finger actions (among others).


automatic switch between the Wifi and ethernet in Linux using command line

Connman(1) can be used to prioritize your connections to prefer wired networks and auto-connect to wireles when the wired connection is unavailable.  It is supported by Intel, so it can be hostile to non-intel networking hardware: I can't use Connman(1) since my wifi driver won't set flags Intel expects to enable the adapter.  I get "no carrier" error and no wifi connection.  However, it seems to connect quickly when I plug in the wired connection.

You need to configure /etc/connman/main.conf/main.conf
with something like:

  BackgroundScanning = false
  DefaultAutoConnectTechnologies = ethernet,wifi
  PreferredTechnologies = ethernet,wifi
  SingleConnectedTechnology = true

to ensure only wifi or ethernet is connected.  Then, use an interactive connmanctl(1) session as indicated by the man page  to connect to wifi the first time or edit the settings  file for your interface found in /var/lib/connman (this seems easier to me, but restart required.)  See connman-service.config(5)

If you have ifupdown or its variants installed, you might remove those to avoid collisions before installing connman(1)


Lock screen halts file copying in Nautilus

For your second question - "How could I add a progress indicator to cp?" cp does't support displaying a progress indicator. For a command line copy command with a progress indicator, you can try rsync. Install it using the following command:

sudo apt install rsync

To use rsync with a progress indicator, run:

rsync -ah --progress <source> <destination>

More about copying files with a progress indicator here.


Gnome-terminal profiles do not show up in gconf-editor in 16.04 LTS

So there are no good resources online to do this so hopefully this helps. Everything changed in 16.04 LTS. As mentioned in the comments, dconf-editor needs to be installed.

Once installed, the profiles will be found under org > gnome > terminal > legacy.

In order to get the palette, background color, foreground color, and bold color to show up as keys you can simply fiddle with the color settings in the profile via the terminal profile preferences menu. Once that's done for Zenburn copy the color settings from this gist. You will not be able to use the gist as-is. Instead, you will have to manually copy each color into the right spot. Maybe later on I'll write a script to do this automatically.


Kubuntu 15.04 : Brightness controls not working vs 2 graphic cards?

Brightness control buttons do not produce events due to an outdated kernel driver. It can be fixed by adding "acpi_osi=" boot parameter, just like you added "acpi_backlight=vendor".

So add "acpi_osi=" instead.


Mark, I had some account issues and had to make a new one. Just add these lines to /etc/crontab.  You must be COMPLETELY sure that Ubuntu is installed on that ST3.. drive, otherwise your Ubuntu installation will be broken.

@reboot root umount /dev/sda1
@reboot root umount /dev/sdh1
@reboot root umount /dev/sdi1

On the bright side..I don't think Ubuntu would allow you to unmount the root partition..but I haven't had the opportunity to test that theory haha.  Please respond if not all of the drives disappear, then we will need to do some further investigation into their partition numbers.


I deleted Ubuntu partition and my laptop it was showing grub rescue screen

Start up your computer with the USB or DVD Windows 8 recovery media in the system.

When the computer boots off the recovery media, pick the Troubleshoot option.

Then choose Advanced Options.

and head on over to the Command Prompt.

The computer should reboot and then ask you for the account.

Click your account to continue.

Then login to get started.

We’re going to use the built in partitioning tool called diskpart to confirm that:

We have all the right partitions
EFI partition is formatted correctly.

In the black screen that looks like a dark abyss, type:

diskpart

and enter this command:

sel disk 0

Now that the first disk is selected we need to view all the partitions

list vol

Verify that the EFI partition is using the FAT32 file system then select the volume and assign a drive letter to it.

Let’s say your EFI partition is on Volume 3, the next thing you would type is:

sel vol 3

Then assign an arbitrary drive letter to the parition.  Let’s use v.

assign letter=v:

You should see a message saying: DiskPart successfully assigned the drive letter or mount point.

Exit the diskpart tool by typing:

exit

You should still be in the command prompt but outside of the DISKPART> prompt.

We need to repair the boot record.  We can pull that off like so:

cd /d v:\EFI\Microsoft\Boot\

bootrec /fixboot

The CD command tells the command line interpreter to change the directory to the volume label that has the EFI boot record.

Then the bootrec /fixboot command attempts to repair the selected volume.

Now we need to recreate the Boot Configuration Data (BCD) store, so let’s backup the existing store first

Type:

ren BCD BCD.old

Now that we backed it up, let’s recreate the BCD store:

bcdboot c:\Windows /l en-us /s v: /f ALL

Now remove the recovery media and reboot and you should be all set.

Source: windows.microsoft.com/en-us/windows-8/system-recovery-overview


Unfortunately there is no easy method to do that.

To do that you have to edit  the source file and change whatever you want.

apt-get source lxtask

This will download the source file of the package. Mainly you'll have two files lxtask_0.1.4.orig.tar.gz and lxtask_0.1.4-1.debian.tar.bz2.

Now extract the lxtask_0.1.4.orig.tar.gz and then

cd path-to-extracted/lxtask-0.1.4/src

In the directory you'll find a file named interface.c

Open it with your favorite editor

gedit interface.c

search for function create_list_store under it you'll find the way of building the columns so there you an swap between the columns as you like.

Once you've finished you have to install again from source

./configure
make

and then

sudo make install

PS: I didn't try it myself since there is some dependency problems with gtk in my system. But this is a start where you can try and test yourself


Modifying sysctl values inside lxc container

I had the same issue.  You are right that it is related to LXC containers.  I added
net.ipv4.ip_nonlocal_bind = 1
to my LXC host's sysctl.conf , then ran:
sysctl -p (requires root access/sudo)

I did have to reboot the container for the change to take effect.  Also, you will still get sysctl: cannot stat /proc/sys/net/ipv4/ip_nonlocal_bind: No such file or directory
on the container.  If the functionality works, I am not entirely sure that it is necessary for the same command to be run on the guest container.

I can now access the container via the VIP or the defined IP.


Changing to gtkRecordMyDesktop solves the problem. Just select one workspace (instead of the "whole" desktop by default) and the video looks nice.

Click to see video on Youtube

PS: sorry for the terrible sound. ^_^


How to stay productive? What time management software is available?

Hamster doesn't automatically track your actions, but it can be set to remind you every few minutes, which I actually find more useful.  You can ask yourself every n minutes "am I still doing what I was planning to do?", "should I stop now?", "why am I not doing what I planned to be doing?"  Then you can change course right away, rather than at the end of the day finding you spent three hours on askubuntu. :-)

Ultimately I want to develop more mindfulness of where I'm using my time, and these questions help.


I need a copy of the default /etc/apt/sources.list

Since 10.10 is now unsupported, you have to use the server old-releases.ubuntu.com for everything. For example a line like:

deb http://es.archive.ubuntu.com/ubuntu/ maverick main restricted

Should change to:

deb http://old-releases.ubuntu.com/ubuntu/ maverick main restricted

Here is a complete /etc/apt/sources.list:

deb http://old-releases.ubuntu.com/ubuntu/ maverick main restricted
deb http://old-releases.ubuntu.com/ubuntu/ maverick-updates main restricted
deb http://old-releases.ubuntu.com/ubuntu/ maverick universe
deb http://old-releases.ubuntu.com/ubuntu/ maverick-updates universe
deb http://old-releases.ubuntu.com/ubuntu/ maverick multiverse
deb http://old-releases.ubuntu.com/ubuntu/ maverick-updates multiverse
deb http://old-releases.ubuntu.com/ubuntu/ maverick-security main restricted
deb http://old-releases.ubuntu.com/ubuntu/ maverick-security universe
deb http://old-releases.ubuntu.com/ubuntu/ maverick-security multiverse

After updating your file:

sudo apt-get clean
sudo apt-get update


Use export and define it like any other variable. In your example:

export ANDROID_HOME=/home/me123/android-sdk-linux/sdk

You can also just add it to your path instead of exporting.

ANDROID_HOME=/home/me123/android-sdk-linux/sdk
PATH=$PATH:$ANDROID_HOME


How to create accurately timed soft video sub titles?

To create/edit/synchronize your subtitles, you can try :

Gnome-subtitles
Gaupol subtitle editor
Subtitle editor

And then Avidemux to integrate your subtitles in your video

Source: I found these apps from the French Ubuntu Web Site


How to make feedly look better in Kubuntu Firefox like in Firefox in Windows?

I fixed this by changing default fonts in firefox's settings to Liberation Serif:

Here is the new screenshot:

Tip:Don't bother installing Times New Roman font,Liberation font is perfect for linux and preinstalled.


Is there a network switch's brand which is more linux friendly than others?

Network switches really don't care what they are connected to.  All LAN devices follow well defined standards so you can connect Network printers, XBox, PS3 and computers running any OS without worry.

I have a wide range of hardware, from embedded systems to PCs running multiple OS's on my networks both at home and at work and it all just works.


apt-get update constantly gives out error

You seem to have both 32 and 64 bit repositories enabled and so you have two incompatible sources available. To find out whether your system architecture is 32 or 64 bit, enter in the terminal

uname -i

If you are running a 32 bit system, the output will contain:

 i386

Thus, for a 32bit system, open your sources.list file with gedit:

gksudo gedit /etc/apt/sources.list

and remove completely any line that contains amd64 Packages.

Obviously, for a 64bit system remove the line that contains the i386 packages.

After you have edited your sources.list, saved it, and closed gedit, enter these commands:

sudo apt-get update
sudo apt-get -f install


Superkey suddenly changed behaviour and acts as a CTRL-key

The problem was, as often the case, in front of the monitor. :-)
My keyboard, TT esports Poseidon ZX, has a key to turn off the Superkey(winkey), which I did not knew about.

After toggling it again and turnin off the functionality everything worked as expected again.


After installing NVIDIA driver, X isn't showing

What happened is actually pretty common. You most likely did not uninstall the old driver.

You need to go and boot into recovery mode. Steps are below.

Reboot your PC.
After your PC's logo shows, press and hold your SHIFT key.
Select and boot into your newest recovery mode.
Open a root terminal (no networking needed).
Run mount -o remount,rw / DO NOT FORGET THE remount!
Run sudo apt-get remove nvidia-304 nvidia-settings-304
reboot and log in to Ubuntu as you always have.

Bonus Step:
Fix Plymouth (the Ubuntu boot logo) by following this tutorial from WebUpd8.


Your default users are sys and system.  According to the Oracle website the passwords are displayed in a message during installation, but I guess you didn't see it?

It used to be that the default users had default passwords. For sys it was: change_on_install and for system: manager.  As you can guess these weren't changed on install, which generally caused a major security risk so maybe this is why Oracle stopped using them.

So my advice would be:
- try the above default passwords and hope they work (which is unlikely);
- reinstall the database and look for the message giving you passwords.

Once you are logged in as sys, create a day-to-day user and use it for your project.  Don't use sys or system - they are too powerful and to be used for administration only.


When you run with ./RunMySQLDump the working directory of the script is /home/xyz/MySQL_Dumps/, that is why it works.

When cron starts the script it's working directory is /home/xyz/ (your home directory) as it is in a user crontab.

The first lines in your script use absolute paths, the last lines use relative paths. That is why it fails.

Just change the working directory in the script before you start using relative paths or better at the beginning of the script:

cd /home/xyz/MySQL_Dumps/

Or use absolute paths everywhere in the script.


Is this for production (that is, something you remotely care about)? If so:

You don't want to run an email server at home.

No really, you don't want to run an email server at home.

Between the ISP port blocking, dynamic addresses, potential downtime where mail can just get lost or bounce, among many other things...

Learning is awesome. If you're doing it as a personal project for learning on a spare domain, that's super neat, and I encourage you to go on. But if you're doing it for your own personal inbox, I highly reccomend against it.

And to answer your actual question, it's entirely likely Comcast is blocking some inbound ports for residential circuts. You could test this by forwarding ports you want to test to a daemon you know is listening, and then attempt to access it from a VPS.

For example, to test port 25, configure your router to forward port 25 to port 80 on a known webserver on your LAN. From there, just run curl [your ip]:25 and see what happens. If it works, Comcast likely isn't blocking. If it doesn't, try again at a high port like 8046. If it works there, but not at your desired port, you're likely being blocked, at which point your only options are:

1) Host externally

2) Use some sort of VPN to gain entry to your network and then access services over the VPN

3) switch ports to an unblocked one

4) contact comcast (not likely to go anywhere).


The ERE quantifier ? means zero or one occurrences. So

grep -E '[A-Z][0-9][A-Z] ?[0-9][A-Z][0-9]'

If you want to allow for zero or more spaces, change ? to *. To allow tabs as well as spaces, you can use [ \t]?, [[:blank:]]?, or (in GNU grep) \s?


This also happened to me.

I fixed it running this command:

sudo apt-get -f install --reinstall indicator-sound*


How do I change my display name on login?

Click on the ubuntu button, search for "User" until the User Accounts application shows up, then launch it. Click on the lock button on the top right, this enables you to change your settings.

Then click on your username to change it, and that's it!

This changes the display name the system shows you. To change your actual username is a bit more complex:

How do I change my username?


How to change juju bootstrap time from the 10min it gives you

Consider a higher time-out.

    bootstrap-timeout: 1800

In your environments.yaml should work.


MAAS on Ubuntu 14.04 comissioning scripts fail

For me it was a dnssec issue.

Look at this and see if this helps:

  I am able to get rid of the message by commenting the
  dnssec-validation auto; and adding dnssec-enable no; dnssec-validation
  no; below it. On Ubuntu/Debian, the named.conf is located in
  /etc/bind/named.conf.options file.

https://stackoverflow.com/questions/13342003/ns-got-insecure-response-parent-indicates-it-should-be-secure/14923549#14923549


Stuck In Low Graphics Mode - Nvidia/Intel - Recently moved and this is my only system

I only can add on a good advice: If you relay on a running system then make backup ! And take care that the backups can be restored. Therefor I use USB Thumb Flash-drives where the system is installed. They can easy be backuped simple with "dd" before running any funny patches/installations or trying things. This simple technique solved me a lot of headache cause I have alway a second copy of a good system already on a second stick. If I f...up something just swap the usb thumb. Other data will be on encrypted containers on the internal storage. data is simple backuped with rsync. it's simple and works for years now. Even in the data-center on "pro"-servers.


This is more of an alternative than a fix to your problem.

When it comes to boost I never use the libboost-all-dev install. It rarely works and it does not actually install EVERY boost library.

What I would recommend is installing synaptic:

sudo apt-get install synaptic

and from within synaptic search for "boost" and just manually select all the relevant boost libraries.


Searching in the Ubuntu Software manager

A search box will be appear on the top right corner in Ubuntu software center.Type the software name you want to search on the search box.

If the software you searched,was not available on software center then you have to update the software repositories by running the below command on terminal,

sudo apt-get update


lost after upgrading from 10.04 to 12.04

You can start the dashboard (the icon in the upper left corner of the launcher with the ubuntu logo) and type the name of the application you want to run there. When it is found it will show you the application's icon. You can start it directly by clicking on it or drag the icon to the launcher to have in there permanently.


You are probably missing the ubuntu-restricted-extras package.

Open the software and type "ubuntu-restricted-extras" and install the package or open a terminal and type:

sudo apt-get install ubuntu-restricted-extras

Enter your password and try playing the audio file again.


It is a nano emergency file where its buffer gets dumped. If your current file seems alright, you can delete the filename.save associated file.

From nano manual notes:

  In some cases nano will try to dump the buffer into an emergency file. This will happen mainly if nano receives a SIGHUP or SIGTERM or runs out of memory. It will write the buffer into a file named nano.save if the buffer didn’t have a name already, or will add a ".save" suffix to the current filename. If an emergency file with that name already exists in the current directory, it will add ".save" plus a number (e.g. ".save.1") to the current filename in order to make it unique. In multibuffer mode, nano will write all the open buffers to their respective emergency files.


Wine Gecko comes "bundled" as part of their IE packages. Installing some flavour of IE should bring Gecko with it.

One of the apps I run under WINE uses .chm files a lot, and they weren't rendering (just blank). When I ran the file with wine hh file.chm in the terminal, this was the error message I got:

Could not load wine-gecko. ...

I used winetricks to install IE8 into my Wine space, and then the .chm files loaded perfectly -- error gone.


Is there an easy way to transfer a whole ubuntu os from one pc to another?

You could take a look at Clonezilla.  This would allow you to make a backup of your pc and install it on any others.  There are many tutorials online, just google it.


Edit file /usr/lib/NetworkManager/conf.d/10-globally-managed-devices.conf and change it's content from:

[keyfile]
unmanaged-devices=*,except:type:wifi,except:type:wwan

to :

[keyfile]
unmanaged-devices=*,except:type:ethernet,except:type:wifi,except:type:wwan

And then run:

sudo service network-manager restart


cmake cannot find c compiler even though gcc and g++ are installed

You need to install make before installing cmake:
sudo apt install make


Configuring a network on a multi ethernet port server

You need to enable IP forwarding on the server so the packages from the hosts can reach the WAN:

sudo sysctl net/ipv4/ip_forward=1

Try this, and then try to ping an external IP or URL from the hosts.


In Default Ubuntu 19.04

the User Shell Theme is /usr/share/gnome-shell/theme/Yaru/gnome-shell.css

If you want to use your own shell theme, you need to install user-shell theme. https://extensions.gnome.org/extension/19/user-themes/

If you are using the default one,

open the file /usr/share/gnome-shell/theme/Yaru/gnome-shell.css and edit the content like below. Please note that I have already added the line font-family: Arial, Helvetica, sans-serif; in below content.

/* TOP BAR */
    #panel {
      background-color: #1d1d1d;
      font-weight: 450;
      font-family: Arial, Helvetica, sans-serif;
      height: 1.86em;
      font-feature-settings: "tnum"; }

for Example: In the belwo .gif I have changed the top bar font from "Keraleeyam" to "Dyuthi"


dpkg: error: dpkg frontend is locked by another process

Let all the on going process/installations/updates to complete, retry once all the installation/updates gets completed. It will work.

If you've not in started any installation/updates then try following method.

Use following command in terminal, it will give you PID

sudo lsof /var/lib/dpkg/lock-frontend

then copy the value of PID and execute following command with adding your copied PID in place of

sudo kill -9 <PID>


You can try the global equalizer for pulseaudio.  From a terminal or ALT+F2 run

sudo add-apt-repository ppa:nilarimogard/webupd8 && sudo apt-get update && sudo apt-get install pulseaudio-equalizer

It is located in Multimedia menu


Can the Nautilus Properties page show size in bytes for multiple-selects, and for directories?

The value displayed is called by the function g_format_size_for_display of GLib. You have to edit the source code of nautilus to change this behaviour by just adding an %i to the output:

Step 1: Download source, install dependencies and open the file to edit

mkdir -p .p/nautilus && cd .p/nautilus
sudo apt-get build-dep nautilus
apt-get source nautilus && cd nautilus*
gedit src/file-manager/fm-properties-window.c

Step 2: Change the code

Now go to line 2338 (in Nautilus 2.30) and change with size %s to with size %s (%i Bytes). Do the same for totalling %s. Change it to totalling %s (%i Bytes)
It should now look like this:

    text = g_strdup_printf (ngettext("%'d item, with size %s (%i Bytes)",
                     "%'d items, totalling %s (%i Bytes)",

Step 3: Compile

Now you can simply compile Nautilus like every other application

./configure --prefix=/usr
make
sudo make install
nautilus -q

Note that Nautilus will be overwritten whenever there will be an update to it through package management. This means you have to build and install it again manually.

There is also an alternative way by using an Nautilus script, but this would add another entry in the right click meny instead of having the value in the properties window.


Arno, this link might lead you to a solution. Good luck.

Can't boot without Flash Drive plugged in


bitorrent sync is not starting after i login

I know its an old question but I just fixed by reinstalling BTSYNC, everything was good after that.


I experienced this problem with a SANSUI HDMI/PC tv/monitor. My issue resulted from the SANSUI incorrectly reporting it's EDID. The solution is to use xrandr to add a mode manually to the problematic device.  If the mode you want to add to your output already exists you can skip steps 2 and 3

Type "xrandr" without any arguments which by default will list the devices and the modes currently associated with them. In my case xrandr reports the "output" device name for the SANSUI as CRT1.
Use "cvt" to create a mode line to work with. (60 is the refresh rate)

$ cvt 1920 1080 60
Modeline "1920x1080_60.00"  173.00  1920 2048 2248 2576  1080 1083 1088 1120 -hsync +vsync

Add this as a new mode to the xrandr database

$ xrandr --newmode "1920x1080_60.00"  173.00  1920 2048 2248 2576  1080 1083 1088 1120 -hsync +vsync

Associate the mode with the problematic output device

$ xrandr --addmode CRT1 "1920x1080_60.00"

We still need to select the new mode as the active mode for the output device

$ xrandr --output CRT1 --mode "1920x1080_60.00"

NOTE: If the modeline doesn't work as reported by cvt try leaving off the other parameters besides the dimensions and refresh rate when creating a new mode.

References:

http://pkg-xorg.alioth.debian.org/howto/use-xrandr.html
https://wiki.ubuntu.com/X/Config/Resolution#Dynamic_setup_with_xrandr


How to fully remove the eclipse package?

Your personal configuration files are stored in your home directory.

Check ~/.eclipse/ or ~/.config/eclipse/

Note, these are hidden directories (Ctrl+H in Nautilus to show, or ls -la).


What language is this file written in and which plotting program can graph it?

I managed to open the below file with Grace in the end, but I would like to know what "language" its written in

The language IS called Grace. It seems to me to be more a configuration or set of plotting instruction then a language (you can not execute the file; you send it to the plotter).

and what other plotting programs read this language.

The project page lists a lot of software that can read Grace:

Forks/Modifications

AcGrace: the NRC Analysis Code version of Grace
GraceGTK is based on the GTK toolkit and adds some new features
QtGrace is a version of Grace based on the Qt SDK by Nokia

xmgr is a predecessor of grace that got resurrected. But you probably will be better of with Grace itself.


Xubuntu 12.04: How to get Emacs keybindings?

Found here: http://iomem.com/archives/22-Emacs-keybindings-with-XFCE.html

xfconf-query -c xsettings -p /Gtk/KeyThemeName -s Emacs


Doubt about installing Ubuntu on my internal HDD

Regarding your question "No root system  defined"
you need to define your partition on the Installation type page...click
on "+" .

This is to create/edit a partition.

Then, you will have to select "/" which is defined as the root.

This should solve the problem.


Trying to put Ubuntu on to my flash drive

For that you will need to enable USB in Virtualbox: How to set up USB for Virtualbox?

Then you can install Multisystem in Ubuntu in Virtualbox to your flash drive and choose the linux distribution you want to install.

Note: The Virtualbox uses USB2 drivers where your computer might have only USB3. This must not be compatible 100%, but you can still try it.


Do I need to install Update Manager whenever it is displayed?

We can open "Settings..." for options on how often Update Manager checks for updates, and to always install security updates in the background.
10.04 LTS

12.04 LTS

The automatic check for updates can be set in steps from Never, Every two weeks, Weekly, Every two days, and Daily.
It is recommended to check for security updates frequently. You may install them automatically in the background without getting a notice. Updating of other packages can be done whenever this is convenient, but you will not get bugs fixed until you do it.


This question have been asked on the #snappy IRC channel and they answered that, for the time being, there will be only one repository.


How do I append a line to all .gitignore files recursively?

In bash, enabled recursive globbing:
shopt -s globstar

Then do:
echo "desktop.ini" | tee -a **/.gitignore


You could use hardware compatibility databases. You can even set Ubuntu Linux as a search attribute.

When I buy new hardware I usually google for that hardware. Let's say I want to buy a graphic card from nvidia, the gtx260. I would google for "gtx 260 ubuntu" and then I see if other people have any problems. I do that for all the hardware. I always prefer hardware from companies who have open-source drivers or generally a good reputation in the linux community.


Just Installed Ubuntu - Mostly empty screen that doesn't respond to mouse clicks or keyboard

I got around it by changing .dmrc Session=ubuntu to Session=gnome-2d

I then installed the proprietary driver for my Radeon card and restored Session=ubuntu and it worked after that.


Flash Player not working on latest Chrome under Xenial

You can enable Flash for this website by allowing it to run :

Reload page after this change and You should be able to play Flash videos.


Bumblebee running on Nvidia does not increase performance

I am confused by this myself. The Bumblebee FAQ says, that it makes little sense to use the glxspheares output because of something about VirtualGL. I don't understand the issue, but so they say.

Check here: https://github.com/Bumblebee-Project/Bumblebee/wiki/FAQ#how-to-check-nvidia-card-performances--they-seems-low

If someone who has deeper knowledge in this could elaborate I'd be really happy.


"connection unsuccessful" transfering a file via Bluetooth from Android phone

Search and find "Personal File Sharing" in the dash and activate both check boxes under "Receive Files over Bluetooth". This way you won't have to install blueman.


How to display all new variables after terminal started?

declare -p will show you ALL the variables defined outside of environmental variables which will include what you are looking for but also 121 other variables you are not looking for.
The secret is to capture the default variables when gnome-terminal opens and subtract that from the list of current variables to display only the new variables.

Using listvar
Instructions on creating the listvar function are below. To see how the listvar function works open a terminal and type:
$ listvar

$ hey="Hey World :/"

$ listvar
declare -- hey="Hey World :/"

$ Word=Something

$ Number=25

$ Ubuntu=16.04

$ listvar
declare -- Number="25"
declare -- Ubuntu="16.04"
declare -- Word="Something"
declare -- hey="Hey World :/"

Creating listvar
Add this to the end of your ~/.bashrc:
# Below must be at end of ~/.bashrc
# Display newly created variables
function listvar () {

    # Get current variable list
    mapfile -t CurrVars <<< "$(declare -p)"

    # Loop through each current variable
    for CurrVar in "${CurrVars[@]}" ; do

        # Skip over unwanted variables that are dynamic
        [[ "$CurrVar" == "declare -a BASH_"*    ]] && continue
        [[ "$CurrVar" == "declare -a FUNCNAME"* ]] && continue
        [[ "$CurrVar" == "declare -a PIPESTAT"* ]] && continue
        [[ "$CurrVar" == "declare -- _=\"\""*   ]] && continue
#        [[ "$CurrVar" == "declare -- sh="*      ]] && continue

        # Skip over variables used in our listvar function
        [[ "$CurrVar" == "declare -a SaveVar"*  ]] && continue
        [[ "$CurrVar" == "declare -- SaveVar"*  ]] && continue
        [[ "$CurrVar" == "declare -a CurrVar"*  ]] && continue
        [[ "$CurrVar" == "declare -- CurrVar"*  ]] && continue
        [[ "$CurrVar" == "declare -a OldVar"*   ]] && continue
        [[ "$CurrVar" == "declare -- OldVar"*   ]] && continue
        [[ "$CurrVar" == 'declare -- _="SaveV'* ]] && continue
        [[ "$CurrVar" == 'declare -- _="listv'* ]] && continue

        OldVar=false
        for SaveVar in "${SaveVars[@]}" ; do
            # Is current variable existing at time of save?
            [[ "$CurrVar" == "$SaveVar" ]]         && { OldVar=true ; break ; }
        done
        [[ $OldVar == false ]] && echo "$CurrVar"
    done

} # listvar

# Empty array to prevent doubling everytime ~/.bashrc is resourced
SaveVars=()
# Save variable list before user creates new ones in shell
mapfile -t SaveVars <<< "$(declare -p)"

Save your ~/.bashrc file and open a new terminal session to use listvar function.


How can I automatically full-screen a program in Lubuntu?

Some programs in Lubuntu remember the size when they were closed.  Some do not.  Lubuntu users can open some or all programs maximized by editing ~/.config/openbox/lubuntu-rc.xml. A very detailed how to can be found at the Community Documentation site

https://help.ubuntu.com/community/Lubuntu/Windows#Launching_Windows_Maximized


How can install developer tools on Ubuntu 18.04 LTS?

You need to update the repositories before install or upgrade something. So probably sudo apt update && sudo apt install --fix-missing will fix your problem, after that try to install the desired package again.


is the current Adobe Flash 'ransomware vulnerability' affecting Ubuntu users?

Ubuntu is affected the same way as the other vulnerable OSs: Windows, Macintosh, Linux, and Chrome OS.

  Successful exploitation could cause a crash and potentially allow an
  attacker to take control of the affected system.

In other words, Ubuntu is as exploitable as the the rest of the systems running the vulnerable Flash plugin. Flash for Linux has been updated to version 11.2.202.616, and is available through the repositories.

info source


Possible Duplicate of night-light-and-redshift-dont-work

Go to: https://www.computercorrect.com/2018/operating-systems/linux/ubuntu/ubuntu-night-light-tips-tweaks/

To find out how to reset and tweak night light settings.

Synopsis:
The easiest way to control your night light settings is dconf editor, which is a low level system and settings manager.

First run sudo apt-get upgrade from your terminal.
Then run sudo apt-get install dconf-editor -y
You will now find an app on your desktop which looks like a magnifying glass with a tick in it. This is dconf, open it.
In the bar at the top you will see a file path.
Change this to org/gnome/settings-daemon/plugins/color/night-light-temperature or alternatively click the search icon and search for "night light".
You will see at the bottom you can set a custom value. Use this to set the night light to a strength you prefer.


System -> Preferences -> Appearance -> Visual Effects tab -> Normal


We created Ubuntu Studio Menu Item Editor (ubuntustudio-menu-add) just for this purpose, though it is in very early stages. The goal is to not mess with the default menus like alacarte or libremenu have a tendency to do. I will admit that it's not super intuitive, but it does the job.


Does the monitor get correctly identified in System Settings > Screen Display? There is also a scale option there in Ubuntu 15.04, I don't remember if that was there in earlier releases.

Failing that, I can't say this will definitely solve your problem, but I know you can alter screen geometry with xrandr which I had to do with Crunchbang in a virtual machine.

From a terminal, running xrandr bare will list modes and tell you what's currently set. To change screen size you can try for example

    $ xrandr --size 1680x1050 &

or change mode

    $ xrandr --mode 1680x1050 --pos 0x0 --rotate normal &

And you can alter the framebuffer size too, perhaps shrink it and reposition. The man xrandr page has a few examples.

I think the changes are non-permanent though, I'm not sure where each distribution expects settings to be written.


all in one printer/scanner and slide scanner

OK,

I think I can help you. The first thing you want to do to set up your printer is to go to the wrench icon found on the left hand side of your computer. This is your settings. Next select the printer, it looks like this:

You should see a screen like this:

Now click on the Add button with the big green + sign next to it. It should be in the top right of the printer menu. Now you should see a screen like this:

Scroll down to the drop-down arrow next to Network Printer. You should see something like this:

OK, we are getting there. After you have scrolled down to the printer of your choice, you should see this screen:

 Follow the the configuration settings provided in the screenshot, and then click the forward button. After a while the system will ask you for your password:

And then it will begin to install.

OK, that's the printer. You also said something about scanning. If your printer has scanning capability, Press CTRL + ALT + T all the the same time. This will open a Terminal window. Now type simple-scan. You should see something like this:

But if it isn't there, just type sudo apt-get install simple-scan.

Go to the Scan button on the top left. It should look something like this:

Now, after it is finished scanning, click on the save button. It should look something like this:

Type in the name you want it to be saved as and you are all set.

I hope this helps.


Bluetooth not working on an Alienware m14x r2

Here's your problem:

[    2.702607] Bluetooth: Configuration file not found ar3k/ramps_0x11020000_40.dfu

The file is present in the latest kernel-firmware from OpenSuSE and several other distributions but ubuntu doesn't have it.
As this file is a configuration file, albeit not a plain-text one, I suggest you an experiment: get this package from openSuSE, extract it, find the file you're missing (as your dmesg says) and place it in /lib/firmware/ar3k/ directory (don't forget to change permissions and ownership, should be the same as other files in that directory).
Alternatively download the missing file from the kernel repository itself.

Unfortunately I can't verify that this solution will work, as I don't have Ubuntu anywhere within my grasp.


Problem in connecting WiFi on A Dell Inspiron 1420

Run:

sudo apt-get purge bcmwl-kernel-source broadcom-sta-common broadcom-sta-source
sudo apt-get update
sudo apt-get install b43-fwcutter firmware-b43-installer


Have you tried this advice? 16.04 - Is it possible to speed up kernel boot time?

  "You can trim down the initramfs to speed up boot by editing /etc/initramfs-tools/initramfs.conf and setting MODULES=dep.
  Then run the following to update the initramfs to hopefully make a smaller one:
  sudo update-initramfs -u"


after upgrading to Lubuntu 17.10 screen became black for 3/4 of surface

It's a problem with Intel drivers in 4.13 kernel, workaround is to downgrade to 4.12 until a fix is released. Having same issue on EEE PC 901.

For more information view these bug reports (and maybe subscribe to them for updates):

https://bugs.freedesktop.org/show_bug.cgi?id=102929

https://bugs.launchpad.net/linux/+bug/1724639

There is a claim that one linked patch fixes the problem, now we wait until it gets pushed upstream.

If for some reason you have trouble downgrading comment and I'll try to help with that too. Two more tips:

Update: New workaround, I haven't tested yet is to use GRUB_GFXPAYLOAD_LINUX=text
The affected area is the same as the GRUB screen size, reducing it will reduce disabled area:

sudo nano /etc/default/grub
sudo update-grub

Use recovery mode meanwhile if you don't already. But that will reduce screen resolution.


They require Adobe's Hardware Abstraction Layer (HAL) to be installed to view secured content (i.e DRM encumbered). The solution to install HAL is:

sudo add-apt-repository ppa:mjblenner/ppa-hal
sudo apt-get update
sudo apt-get install hal

Source: http://ubuntuforums.org/showthread.php?t=2255621

More information can be found here:

https://launchpad.net/~mjblenner/+archive/ubuntu/ppa-hal

A few are still complaining it isn't working while others state that it works for them and that it works for other sites that they had previous issues with. Make sure to follow the directions carefully - if you have any questions then feel free to ask. Ensure that you have ad blocking software or script blocking software disabled for the site in question as well. If this resolves your problem then please be sure to mark it as solved to let others better find the solution.

Edit: I forgot to mention that the project appears to still be active but doesn't have a lot of resources. Their most recent package was July 3rd of this year.


This is a write-up about gnome Task Scheduler http://www.ubuntugeek.com/tag/ubuntu-task-scheduler

Gnome-schedule is a graphical user interface that leverages the power
of vixie-cron, dcron and at to manage your crontab file and provide an
easy way to schedule tasks on your computer. It supports recurrent
(periodical) tasks and tasks that happen only once in the future. It
is written in Python using pygtk, and has been developed, tested and
packaged for various Linux distributions.
Awesome features

Supports custom titles and icons for your tasks so that they are more easily to keep track of.
Templates support so that you won't have to create the same task again and again; these are saved in gconf and may easily ship them
with, say, a Linux distribution.
If run as root, you can edit any user's crontab and "at" tasks.
Human-readable strings like "Every hour" instead of "0 * * * *"
Advanced mode for crontab experts
Provides a "panel applet" where you can manage tasks from a dropdown menu.
Predefined common expressions like: every minute, every week, tomorrow, next week
A calendar allows you to choose the day you want a task executed

Install gnome-schedule in Ubuntu
Open the terminal and run the following command
sudo apt-get install gnome-schedule


Binding a terminal command to a set of keys for Kubuntu 15.10

To create a shortcut for cmus via Terminator while running Kubuntu first follow this path:

KMenu > System Settings > Shortcuts & Gestures > Custom Shortcuts

From here you can create the shortcut by drilling through this path:

Edit > New > Global Shortcut > Command/URL

Now follow these steps:

Where it says 'New Action' type in 'Open Cmus' (without the apostrophes)
Go to 'Trigger > Shortcut' and press Alt+F9 (or other keys)
Go to 'Action' and type in: terminator -e cmus
Press 'Apply'

This works beautifully on my system:

KDE will obligingly tell you if there is any conflict with the key combination you have selected versus any existing shortcuts...


I've run into this problem before. The way I found that works for me, is to turn off mirroring, then auto-adjust your secondary monitor.


What tools could I use on Ubuntu 16.04 to cut mp4 files into several clips?

I found ffmpeg could do the task.
To install the ffmpeg
sudo apt-get install ffmpeg
To copy a specific short duration from the video file.

ffmpeg -i original.mp4 -ss 00:01:52 -c copy -t 00:00:10 output.mp4

-i:input file. The file name of the original video clip.
-ss:start timestamp. In my case I tried to copy the new video from the original video started after 1 minute and 52 seconds.
-t:indicating the duration of the new video clip, in my case, 10 seconds.
Not sure parameter -c for, maybe the action? If some1 knows, let me know plz.

Reference:
- Cut video by using ffmpeg
- ffmpeg seeking in subsection [cut small sections]


Can I use ubuntu with this PC? If I can then what is this error?

I believe that error is related to the nvidia card. There is an open bug report. Try activating the nomodeset mode when booting. To do that, follow this link. The relevant part is the following:

How to enable kernel options on the livecd (before install)

If you boot ubuntu from a livecd (or USB stick), right after the bios splash screen you will get a purple screen with a keyboard logo at the bottom:

Press any key at that moment to access a menu. Select your language with the arrow keys, press enter and you will a menu.

If you press the F6 key, a menu at the bottom will open allowing you to set kernel options with the space bar or enter key.
If you need to add kernel options not provided by the F6 menu, you can just type them in at the end of the boot options line.

Important: if you select a kernel boot option from the F6 menu and proceed to boot and later install ubuntu, those boot options will NOT be applied to your installation. If you needed nomodeset to get the livecd to boot, you will almost certainly need it again once you reboot in to your fresh install.


Here is the solution I found:

I had to add permanently the variable mentioned indirectly above (.yarn/bin) to /etc/environment:

:/.yarn/bin

I then restarted my laptop and got it work:


Xubuntu 13.10: disabling suspend on lid being closed

I had the same problem, affecting the power button as well. This worked for me:

https://wiki.archlinux.org/index.php/xfce#xfce4-power-manager

/etc/systemd/logind.conf

HandlePowerKey=ignore
HandleSuspendKey=ignore
HandleHibernateKey=ignore
HandleLidSwitch=ignore


mysql workbench failed to connect to server over ssh tunnel after server upgrade to ubuntu 16.04

After checking problem and trying to reproduce issues on other computers and those connected successfully. I found out some how the problem is caused by caching ssh known host.

I remove the folder under the user\application data\roaming\mysql\workbench\ssh\ but still problem remains.

For final try I uninstall MySql Workbench and delete setting folder mentioned before and install recently downloaded version of MySql workbench. Fortunately everything working fine.


OpenLDAP error configuring StartTLS: ldap_modify: Other (e.g., implementation specific) error (80)

I solved this problem by changing the order in the file.ldif like this:

dn: cn=config
changetype: modify
replace: olcTLSCertificateKeyFile
olcTLSCertificateKeyFile: /etc/openldap/certs/your_key

dn: cn=config
changetype: modify
replace: olcTLSCertificateFile
olcTLSCertificateFile: /etc/openldap/certs/your_certificate

and the I ran the command

ldapmodify -Y EXTERNAL -H ldapi:/// -f your_file.ldif

make sure that there an acl that makes the root eligible to make change with authenticating with SASL bind.

To make sure that changes have been done, run this command

ldapsearch -Y EXTERNAL -H ldapi:/// -b cn=config | grep olcTLS


On the netbook edition (Unity), firefox is taking up full screen, covering menu and its own controls

One thing you can do with any window that has important bits below or above the screen edge is hold down alt while click and dragging with your left mouse button. It will let you drag the window around wherever you need. You can also resize by holding down alt while click and dragging with your right mouse button.

I suspect that you'll be fine once you resize Firefox down to something reasonable. After that, feel free to maximize the window or resize normally.


You have to remove or diable all non-official repositories ("PPA's") to perform the upgrade.

To do this, open Software & Updates, navigate to Other Software (2nd tab) and untick all entries.

E.g. the Google Chrome PPA: http://dl.google.com/linux/chrome/deb/ stable main

after the Upgrade you can re-enable them, but first you have to update the distro version. Select every PPA, click Edit and set the field Distribution to trusty.

Some PPA's may not work for Trusty because they aren't updated yet or discontinued. You'll get an error report if this is the case when reloading the APT sources. You have to remove these PPA's to prevent further errors.


The most optimal operating system to host virtual machines

There can not possibly be any universal recipe for deciding which operating system should be the host when running multiple virtual machines.

This really depends on your individual needs. Let me give you some (incomplete) rules of thumb to help making this decision

In case security in terms of immunity to virus infections matters do not have Windows as host.
Choose the operating system where you either spend most of the time with, or where the most processor demanding processes run as host.
The host operating system should be where applications run that need best graphic performance.
Choose an operating system as guest if you know that it may crash or when system settings change frequently. A virtual machine can provide snapshots for easy restore.
Do not have an unstable operating system host your virtual machines.


FILE extension changing while copying from Ubuntu to windows

It appears that Windows adds the .file extension to any file with an extension it doesn't know/recognise. Understandable, because text/plain is not a file extension but rather a 'content type'.

It seems that opening the file has worked on Ubuntu, because GNOME can "associate a media type with a file by examining both the filename suffix and the contents of the file" (Wikipedia).

To open the file in Windows, you can simply change the extension from .file to .txt, which is the most likely filetype. However, depending on where and for what purpose you downloaded the file, it could also be a .dat (data) or other file. If you don't know how to change the file type, I'd advice to Google for it as that seems out of scope for this Ubuntu-oriented site :)


log into a machine on same wireless network

Sure.  From Terminal (Ctrl+Alt+T):

ssh <host-username>@<hostname/ip-address>

If you don't know what the ip address of your server is, you can use nmap to find it (I am not an nmap expert, but something like sudo nmap -sS 192.168.1.1-255 will usually do the trick.  Your server should be one of the hosts that nmap returns.


No more updates for Google Chrome 32-bit

Important information on how to install Chrome in Ubuntu 16.04 and 17.04 at the bottom !

This message is valid for Linux 32 bit systems only, 64 bit systems of course will stay supported.
When you have the 32 bit version of Ubuntu installed, Google Chrome will not receive updates, starting from March 2016 - this already was announced by Google back on December 1st 2015.

Google: We will end support for Google Chrome on 32-bit Linux, Ubuntu Precise (12.04) ...

Google Chromium-dev Dirk Pranke announced: Updates to Google Chrome Linux support
OMG! UBUNTU! information: Google Chrome Axes Support for ALL 32-bit Linux Distros
SOFTPEDIA: Google Decides to End Support for Google Chrome on 32-Bit Linux OSes

When you want to receive Chrome updates - you should switch to the 64 bit version of Ubuntu.
Ubuntu 14.04.3 LTS and Ubuntu 15.10 are recommended to download in 64 bit flavour anyway.
The next Ubuntu LTS edition 16.04 Xenial Xerus will be released in April 2016, install it in 64 bit.

In the time frame from March to April you can use the pre-installed Firefox web browser instead.
Alternatively you can install chromium-browser or epiphany-browser from Ubuntu repositories.
Or you can install the 64 bit version of Ubuntu 14.04, but is this worth the effort? ... you decide ...

The five year support for Ubuntu LTS editions covers the system including official repositories.
Google Chrome is not available in the official Ubuntu repositories and that is the reason why there is no five year LTS support for Chrome provided from the Canonical/Ubuntu developers.

Update information 2016-03-03: Google has removed the 32 bit version from their repository !

As you can see on the Google Chrome website, there is no 32 bit Linux edition offered anymore.

Running sudo apt-get update gives the following error:

Failed to fetch http://dl.google.com/linux/chrome/deb/dists/stable/Release
Unable to find expected entry 'main/binary-i386/Packages' in Release file
(Wrong sources.list entry or malformed file)
Some index files failed to download.
They have been ignored, or old ones used instead.

As a workaround set the repositories specifically for 64 bit:

sudo sed -i -e 's/deb http/deb [arch=amd64] http/' "/etc/apt/sources.list.d/google-chrome.list" "/opt/google/chrome/cron/google-chrome"

Reference: Fix "Failed to fetch" Google Chrome repository

Update information 2016-03-09: Google seems to have fixed the issue in  version 49.0.2623.87 !

/opt/google/chrome/cron/google-chrome file now has these architecture relevant entries:

# sources.list setting for google-chrome updates.
REPOCONFIG="deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main"
REPOCONFIGREGEX="deb (\[arch=[^]]*\bamd64\b[^]]*\][[:space:]]*)?https?://dl.google.com/linux/chrome/deb/ stable main"

/etc/apt/sources.list.d/google-chrome.list file shows this architecture relevant entry:

### THIS FILE IS AUTOMATICALLY CONFIGURED ###
# You may comment out this entry, but any other modifications may be lost.
deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main

Update information 2016-04-21: How to install the Google Chrome browser in Ubuntu 16.04

There currently is an issue to install Google Chrome by downloading from Google website. When clicking on the .deb file Ubuntu Software opens, but nothing happens when you click on Install. Install Google Chrome properly this way - open a terminal and execute the following commands:

echo "deb http://dl.google.com/linux/chrome/deb/ stable main" | sudo tee /etc/apt/sources.list.d/google-chrome.list
wget -q -O - https://dl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
sudo apt-get update
sudo apt-get install google-chrome-stable

There is little new "weak signature" issue when updating the repositories - but it can be ignored:

W: http://dl.google.com/linux/chrome/deb/dists/stable/Release.gpg: Signature by key 4CCA1EAF950CEE4AB83976DCA040830F7FAC5991 uses weak digest algorithm (SHA1)

Update information 2017-04-13: How to install the Google Chrome browser in Ubuntu 17.04

The commands given above for Ubuntu 16.04 are still valid and the best working solution to install Google Chrome successfully. Note : the command apt can be used instead of apt-get as well.


There are two possibilities of encryption within Ubuntu.

Full disk encryption

It means that the whole disk is encrypted. Immediately after starting (right after booting the kernel) you are prompted for a password. It looks like this: http://imacify.com/wp-content/uploads/2013/08/Ubuntu-FDD-lock-Screen.jpeg

This does not seem your case, because your problem happens later in the booting sequence.

Anyway, this guide shows you how to access an encrypted volume using a Ubuntu Live CD or USB stick. You should be able to recover some data and copy them over to another disk. Good luck :)

https://alvinabad.wordpress.com/2012/09/22/how-to-recover-a-luks-encrypted-disk/

Home folder encryption

In this case, home partitions are encrypted on a per-user basis.

Here are a few resources for you:

http://www.howtogeek.com/116297/how-to-recover-an-encrypted-home-directory-on-ubuntu/

https://help.ubuntu.com/community/EncryptedPrivateDirectory

You should try to recover your data first. But I also think that it should not be too hard to restore functionality to that box.


Huge latency between two Ubuntu computers in the same wifi network

From the comments...

The subject line indicates that two computers on the same network have high latency and can't run Synergy. This isn't exactly accurate, as the laptop was connecting to the 2.4ghz network, and the PC was connecting to the 5ghz network. Ping times between computers was ~300ms. Ping times from either the laptop or the PC to the router were fine. The PC could not be pinged when connected to the 5ghz network.

Once the laptop and the PC were both connected to the 2.4ghz network, ping times came down to 2-60ms, and Synergy worked fine. The PC could now be pinged. To continue testing in this configuration, the router needs to be changed from auto to either channel 1/6/11 and retested with each setting change. Use ping times to determine performance.

The 2.4ghz and 5ghz networks need to have different names.

For now, if the laptop can do 5ghz, then connect both computers to the same 2.4ghz or 5ghz network. Later testing with laptop/PC on different wireless networks is going to require tweeking the VLAN/BR0 settings in the router.


Retrieving gpg Key timed out - What does this mean?

I had the exact same problem that you've described. I found that sometimes repositories can behave as if censored by your internet service provider (it's quite weird). I solved this problem by using a VPN. It will work the minute you hit Enter. No wait, no fuss, smooth sailing. I hope it works for you. If you're not sure what VPN works on Linux, check out ProtonVPN. It's free and fast.


Can I run KDE-based Programs without completely installing KDE?

The thing about KDE is that if you try to install a component of the desktop, such as Krita, it will require, and thus depend on and automatically install, all (or most) of the base KDE programs. It's a very centralized software. When you install all the KDE desktop packages, however, the most harm they will cause is taking a lot of disk space. Your standard Ubuntu desktop will remain unchanged as long as that is the session type you select upon login.


dual boot with windows 7 ubuntu 14 not working

try EasyBCD. it's an aplication for windows to change the bootloader settings.  i've seen some functions of it, but i haven't tested it yet.


Using Gparted may of help - install it, open it, and you should be able to reformat the disk once you have unmounted it.

You can do this and other options by selecting the drive in the menu at the top right, and then right-clicking on the partitions.