Startup applications not working I have recently installed Ubuntu 14.04 and i want to add some extra applications to the start up process e.g. xpad, thunderbird and others, but i simply can not get it to work.
I have tried added programs using commands like "xpad" or by launching the executables but is did not work.

I am pretty sure i have done this the correct way but it just will not work.

Can you help me ?

See this link :-

http://www.howtogeek.com/189995/how-to-manage-startup-applications-in-ubuntu-14.04/

It shows how to manage startup application in ubuntu.

I realise that Startup Application does not like users
to check or uncheck more than 1 item for it to work properly.

I have now successfully use Startup Application
to start a program, execute command shell.

sh /path/tofile/xxx.sh

Use Startup Application
Create a new application to startup Teamviewer
Reboot
Goto Startup Application
Create a new command execution to run sh /path/tofile/srt-03.sh
Use a name say "run totem"
Reboot
Goto Startup Application
Create a new command execution to run sh /path/tofile/srt-03t.sh
Use a name say "xclose Teamviewer window"
Reboot

Example of shell script

#!/bin/sh

cd ./

cd /path/to-file

/usr/bin/totem --fullscreen --play file:///home/path-to/file/playlist.m3u

exit 0


sshfs with fstab: connection reset by peer I am trying to allow my laptop (Ubuntu 13.04) to access my PC (Lubuntu 13.04) hard drive through SSHFS. I'm using RSA keys to connect.

It works perfectly fine if I type this in the terminal:

sshfs my-PC:/a_folder /media/a_folder

But I would like it to be mounted automatically when I boot my laptop. So I added myself to the fuse group:

sudo adduser mynickname fuse

And I added the following line to my fstab file:

sshfs#mynickname@my-PC:/a_folder /media/a_folder fuse defaults,idmap=user,_netdev 0 0

When I boot the laptop, a_folder appears in the list of devices, but is not mounted. When I try to access it through Nautilus, it displays the following error:

mount: only root can mount sshfs#mynickname@my-PC:/a_folder on /media/a_folder

I get the same error if I try

mount /media/a_folder

in a terminal.

If I try

sudo mount /media/a_folder

I get

read: Connection reset by peer

I tried to add "allow_other" as an option in the fstab entry, and uncommented the related line in /etc/fuse.conf, but it didn't change anything.

The user "mynickname" is the owner of the folder /media/a_folder and has rwx permissions.

I looked at many threads on the internet about people with quite similar issues, but nothing worked so far. Usually, people can't even do

sshfs my-PC:/a_folder /media/a_folder

without getting an error, whereas this works fine on my laptop.

Any insight and tips will be greatly appreciated! Thanks.

EDIT: I solved this issue a while ago, but I forgot to update this post. So here is what is in my fstab:

sshfs#mynickname@my-PC:/a_folder /media/a_folder fuse noauto,_netdev,idmap=user,user,default_permissions 0 0

The key option to add was default_permissions if I recall. I had to add mynickname to the group to which belongs /a_folder/ on my-PC.

The problem you are experiencing is that your normal user has a correct setup for your identity file, while the root user has no idea what ssh key to use.

You can fix this by telling fstab what identity file/ssh key to use while trying to connect:

sshfs#user@host:/mnt/whatever/ /mnt/whatever/        fuse    user,_netdev,reconnect,uid=1000,gid=1000,IdentityFile=/home/USER/.ssh/KEYFILE,idmap=user,allow_other  0   2

Full disclosure: old-school geek, but brand spanking new to the linux/open source world

First off, I'm still using password authentication because I haven't yet become savvy enough with RSA keys. That's nearing the top of the list though.

Relevant set-up info:
Using a MacBook Pro with VMWare Fusion installed, on which I have Ubuntu server 10.04 LTS. Relying on Mac's terminal and SSH for almost all my server interaction

After botching a Drupal install, I rolled back to a prior snapshot and was suddenly unable to execute a command that I had just used moments previously: sshfs -o idmap=user -o allow_other user@mac.home:/Users/<username>/Documents ~/mountpoint

The issue is that the keys got out of sync. I don't know if I actually needed to do this on both my host and server, but  I cleared out all of the local keys on each by first making a back-up of the known_hosts file, then editing the known_hosts file to remove entries.
On Mac, this file was located at: /Users/<username>/.ssh/known_hosts
On Ubuntu, this file is located at: /home/<username>/.ssh/known_hosts

So, to summarize, all performed from my Mac terminal, after starting up Ubuntu server:

cp /Users/<username>/.ssh/known_hosts /Users/<username>/.ssh/known_hosts.old
nano  /Users/<username>/.ssh/known_hosts
  # remove extra entries, save file
ssh <username>@ubuntu_server
cp /home/<username>/.ssh/known_hosts, /home/<username>/.ssh/known_hosts.old
nano /home/<username>/.ssh/known_hosts
  # remove extra entries, save file

Upon first SSH into each system, SSH prompts me to allow RSA keys to be added and all works thereafter.


Problem with Java 8.45 instalation I tried to install java 8.45 wine but the installation wont even start so I tried to download older version and update it but the update fails to download the patch.

Does anyone know what to do with it?

try this method

1.Download java

http://www.oracle.com/technetwork/java/javase/downloads/index.html

2.Open terminal type commant

cd Downloads

tar xzvf jdk-8u45-linux-x64.tar.gz

sudo mkdir /usr/lib/jvm

sudo mv ~/Downloads/jdk1.8.0_45/ /usr/lib/jvm/

sudo chown -R root:root /usr/lib/jvm/jdk1.8.0_45

sudo update-alternatives --install "/usr/bin/java" "java" "/usr/lib/jvm/jdk1.8.0_45/bin/java" 0

sudo update-alternatives --install "/usr/bin/javac" "javac" "/usr/lib/jvm/jdk1.8.0_45/bin/javac" 0

sudo update-alternatives --set java /usr/lib/jvm/jdk1.8.0_45/bin/java

sudo update-alternatives --set javac /usr/lib/jvm/jdk1.8.0_45/bin/javac

sudo gedit ~/.bashrc
    export JAVA_HOME=/usr/lib/jvm/jdk1.8.0_45
    export PATH=$PATH:$JAVA_HOME/bin

. ~/.bashrc

java -version

echo $JAVA_HOME

echo $PATH


How to install Flash player on Ubuntu? Even though I have the latest Adobe Flash player 11.2 for Linux in Firefox -
ref: Flash player security doubts - a particular online flash game still requests that I update to the latest flash player.

I've tried this online game on my laptop (Windows 8 with Flash Player 11.8) and it has no problems.

Is there a way to trick Ubuntu or this game into thinking Flash Player 11.8 is "installed"?

Note: This answer is severely outdated. Please refer to karel’s answer instead which describes how Canonical and Adobe currently recommend to install Flash Player in Ubuntu.

For Linux, the latest version of Adobe Flash Player is 11.2 which you already have. Sorry, but it cannot be updated to 11.8. Adobe provides security backports to Flash Player 11.2 for Linux.

To install the Flash plug-in on Ubuntu 13.04 (Raring Ringtail), please follow this process:

Enable the multiverse repository, as shown here: How do I enable the "multiverse" repository?
Open a terminal window (press Ctrl+Alt+T) and copy/paste this line:

sudo apt-get install flashplugin-installer

When the Flash Player is installed, close the terminal window and restart your browser.

How to manually install Adobe's Flash NPAPI plugin for browsers such as Firefox, Iceweasel and SeaMonkey

Access https://get.adobe.com/flashplayer/otherversions/
Select your architecture: Linux (32-bit) or Linux (64-bit).

If you're unsure about your system's architecture, run the shell command uname -i: if it returns something having the number 64 in it, your system is 64-bit. Otherwise, it's 32-bit.

Download the NPAPI tarball: select the option having (.tar.gz) - NPAPI in it and then click onto the "Download now" button.

A tarball is a file with a ".tar.xxx" extension, where "xxx" is an extension for compressed files, like e.g. zip, gz, bz2, 7z etc. Hence, tarball.tar.gz, tarball.tar.zip, tarball.tar.7z and tarball.tar.bz2 are all examples of tarballs.

Save the tarball into the /tmp folder with the name flash.tar.gz. If your browser automatically downloads the tarball, thus making it impossible for you to rename the tarball before the download starts, wait for the download to end, then go to the folder where the tarball's been put, rename the tarball to flash.tar.gz and then move it to /tmp.
Start the shell terminal and then run this command:

cd /tmp ; tar -xvf flash.tar.gz

Now run this supercommand in order to place the Adobe Flash plugin in the system folder:

if ! [ -d /usr/lib/adobe-flashplugin/ ]; then sudo mkdir /usr/lib/adobe-flashplugin ; else echo /usr/lib/adobe-flashplugin/ already exists ; fi ; sudo cp -f libflashplayer.so /usr/lib/adobe-flashplugin/ ; sudo ln -sf /usr/lib/adobe-flashplugin/libflashplayer.so /usr/lib/flashplugin-installer/libflashplayer.so

Then run this command in order to place the Adobe Flash folders in their respective locations:

sudo cp -rf /tmp/usr /

You can now run your Mozilla/Gecko browser (Firefox, Iceweasel or SeaMonkey) and then access the URL about:plugins in order to check if your browser has detected the flash plugin located at /usr/lib/adobe-flashplugin/libflashplayer.so (it should be also visible by accessing about:addons and then the Plugins section). If you see something like Shockwave Flash 24.0 r0, then go to http://www.adobe.com/software/flash/about in order to check if the flash applet detects your NPAPI flash install and tells you which version you're currently using.

It's possible that your browser will show the plugin location as being /usr/lib/flashplugin-installer/libflashplayer.so instead of /usr/lib/adobe-flashplugin/libflashplayer.so. If it happens, ignore it: it's normal.

Restart your computer just to make sure that the applications menu shows your brand-new "Adobe Flash Player" control panel. If it doesn't, you should be able to start it by running this shell command:

/usr/bin/flash-player-properties

Note: if you're using the 32-bit SeaMonkey on a 64-bit system, the browser won't "see" the plugin. Use another browser (e.g. Firefox).

How to manually uninstall Adobe's Flash NPAPI plugin for browsers such as Firefox, Iceweasel and SeaMonkey

Open a shell terminal window and run this supercommand:

sudo rm -r /usr/lib/adobe-flashplugin /usr/lib/flashplugin-installer/libflashplayer.so /usr/bin/flash-player-properties /usr/lib/kde4/kcm_adobe_flash_player.so /usr/lib64/kde4/kcm_adobe_flash_player.so /usr/share/applications/flash-player-properties.desktop /usr/share/kde4/services/kcm_adobe_flash_player.desktop /usr/share/pixmaps/flash-player-properties.png ; cd /usr/share/icons/hicolor ; sudo find . -name "flash-player-properties.png" -delete

How to manually install Adobe's Flash PPAPI plugin for a WebKit browser such as Opera

Access https://get.adobe.com/flashplayer/otherversions/
Select your architecture: Linux (32-bit) or Linux (64-bit).

If you're unsure about your system's architecture, run the shell command uname -i: if it returns something having the number 64 in it, your system is 64-bit. Otherwise, it's 32-bit.

Download the PPAPI tarball: select the option having (.tar.gz) - PPAPI in it, and then hit the "Download now" button.

A tarball is a file with a ".tar.xxx" extension, where "xxx" is an extension for compressed files, like e.g. zip, gz, bz2, 7z etc. Hence, tarball.tar.gz, tarball.tar.zip, tarball.tar.7z and tarball.tar.bz2 are all examples of tarballs.

Save the tarball into the /tmp folder with the name pepflash.tar.gz. If your browser automatically downloads the tarball, thus making it impossible for you to rename the tarball before the download starts, wait for the download to end, then go to the folder where the tarball's been put, rename the tarball to pepflash.tar.gz and then move it to /tmp.
Start the shell terminal and then run this command:

cd /tmp ; tar -xvf pepflash.tar.gz

Now run these commands in order to place the Adobe Flash plugin in the system folder:

if ! [ -d /usr/lib/adobe-flashplugin/ ]; then sudo mkdir /usr/lib/adobe-flashplugin ; else echo /usr/lib/adobe-flashplugin/ already exists ; fi ; sudo cp -f libpepflashplayer.so manifest.json /usr/lib/adobe-flashplugin/

You can now run your WebKit / Opera browser (only Opera versions prior to version 45), then access the URL about:plugins in order to check if your browser has detected the flash plugin located at /usr/lib/adobe-flashplugin/libpepflashplayer.so. Don't forget to click the Show details button (upper right) in order to expand the information fields and show extra info about each detected plugin. If you see something like Adobe Flash Player located at /usr/lib/adobe-flashplugin/libpepflashplayer.so, then go to http://www.adobe.com/software/flash/about just to make sure that the flash applet detects your PPAPI flash install and tells you which version you're currently using. If your browser is Opera version 45+ (version 45 or later), then the only way to check if the plugin is properly installed and functional is by accessing http://www.adobe.com/software/flash/about. If the flash applet detects your PPAPI flash install, then flash is working on your Opera 45+ browser.

How to manually uninstall Adobe's Flash PPAPI plugin for a WebKit browser such as Opera

Open a shell terminal window and run this command:

sudo rm /usr/lib/adobe-flashplugin/libpepflashplayer.so

How to manually install Adobe's Flash PPAPI plugin for Google Chrome and Google Chromium browsers

If you're using Google Chrome/Chromium, it already comes with its own bundled PPAPI Flash plugin located at ~/.config/google-chrome/PepperFlash/some_version_number/libpepflashplayer.so. However, if videos aren't working with Google Chrome/Chromium when you're on Facebook, YouTube et cetera (you hear the audio, but doesn't see any video), then you're probably trying to watch HTML5 videos but your GPU (Graphics Processing Unit) has a built-in rendering blacklist that's avoiding video acceleration required by HTML5.

In order to fix this issue, start Google Chrome/Chromium, access this URL:

chrome://flags/#ignore-gpu-blacklist

...then activate the above option and restart Google Chrome/Chromium.

If the above solution doesn't solve the issue, follow the 6 steps provided at How to manually install Adobe's Flash PPAPI plugin for a WebKit browser such as Opera, then back up Google's PepperFlash plugin and create a symbolic link to Adobe's flash PPAPI plugin.

If e.g. your Chrome/Chromium browser is using PepperFlash plugin version 24.0.0.186 and you downloaded Adobe's flash PPAPI plugin version 24.0.0.186 (same version of Google's PepperFlash), then this is the shell command you'll have to issue after you install Adobe's Flash PPAPI plugin:

mv ~/.config/google-chrome/PepperFlash/24.0.0.186/libpepflashplayer.so ~/.config/google-chrome/PepperFlash/24.0.0.186/libpepflashplayer.so.bak ; sudo ln -sf /usr/lib/adobe-flashplugin/libpepflashplayer.so ~/.config/google-chrome/libpepflashplayer.so

How to manually uninstall Adobe's Flash PPAPI plugin for Google Chrome and Google Chromium browsers

Open a shell terminal window and run this command:

sudo rm ~/.config/google-chrome/libpepflashplayer.so ; mv ~/.config/google-chrome/PepperFlash/24.0.0.186/libpepflashplayer.so.bak ~/.config/google-chrome/PepperFlash/24.0.0.186/libpepflashplayer.so

Source: my own answer to question #470281.


sigrok-cli and PulseView AppImage do not start because of undefined symbol: libusb_get_version I am trying to start PulseView and sigrok AppImages. Unfortunately, I am getting an error message and I cannot figure out how to fix it:

./sigrok-cli-0.7.1-x86_64.AppImage
sigrok-cli: symbol lookup error: /tmp/.mount_sigrokLM29y6/usr/lib/libsigrok.so.4: undefined symbol: libusb_get_version

./PulseView-0.4.1-x86_64.AppImage
pulseview: symbol lookup error: /tmp/.mount_PulseVunpXcp/usr/lib/libsigrok.so.4: undefined symbol: libusb_get_version

Then, I tried to build from source following the instructions at https://sigrok.org/wiki/Linux . I have built successfully all libraries but got the same undefined reference to libusb when building sigrok-cli:

~/temp/sigrok-cli$ make
make  all-am
  CCLD     sigrok-cli
/usr/local/lib/libsigrok.so: undefined reference to `libusb_free_pollfds'
/usr/local/lib/libsigrok.so: undefined reference to `libusb_get_version'
/usr/local/lib/libsigrok.so: undefined reference to `libusb_handle_events_timeout_completed'
/usr/local/lib/libsigrok.so: undefined reference to `libusb_has_capability'
/usr/local/lib/libsigrok.so: undefined reference to `libusb_error_name'
/usr/local/lib/libsigrok.so: undefined reference to `libusb_get_port_numbers'
collect2: error: ld returned 1 exit status
Makefile:476: recipe for target 'sigrok-cli' failed
make[1]: *** [sigrok-cli] Error 1
Makefile:362: recipe for target 'all' failed
make: *** [all] Error 2

Here are some dumps:

$ lsb_release -a
LSB Version:    core-9.20160110ubuntu0.2-amd64:core-9.20160110ubuntu0.2-noarch:security-9.20160110ubuntu0.2-amd64:security-9.20160110ubuntu0.2-noarch
Distributor ID: Ubuntu
Description:    Ubuntu 16.04.6 LTS
Release:    16.04
Codename:   xenial

$ apt-cache policy libusb-1.0*
libusb-1.0-0:
  Installed: 2:1.0.20-1
  Candidate: 2:1.0.20-1
  Version table:
 *** 2:1.0.20-1 500
        500 http://de.archive.ubuntu.com/ubuntu xenial/main amd64 Packages
        100 /var/lib/dpkg/status
libusb-1.0-0-dbg:
  Installed: (none)
  Candidate: 2:1.0.20-1
  Version table:
     2:1.0.20-1 500
        500 http://de.archive.ubuntu.com/ubuntu xenial/main amd64 Packages
libusb-1.0-0-dev:
  Installed: 2:1.0.20-1
  Candidate: 2:1.0.20-1
  Version table:
 *** 2:1.0.20-1 500
        500 http://de.archive.ubuntu.com/ubuntu xenial/main amd64 Packages
        100 /var/lib/dpkg/status
libusb-1.0-doc:
  Installed: 2:1.0.20-1
  Candidate: 2:1.0.20-1
  Version table:
 *** 2:1.0.20-1 500
        500 http://de.archive.ubuntu.com/ubuntu xenial/main amd64 Packages
        500 http://de.archive.ubuntu.com/ubuntu xenial/main i386 Packages
        100 /var/lib/dpkg/status

Do you have ideas what is the problem?

I fixed the problem thanks to the help of a developer in the sigrok mailing list.
I had an outdated libusb version installed in /usr/local/lib/libusb-1.0.so.0

ldd showed that libsigrok.so, that I previously built, was refering to libusb-1.0.so.0 => /usr/local/lib/libusb-1.0.so.0

$ ldd /usr/local/lib/libsigrok.so linux-vdso.so.1 =>  (0x00007fffd00c9000)
libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f9e60cb4000)
libglib-2.0.so.0 => /lib/x86_64-linux-gnu/libglib-2.0.so.0
(0x00007f9e609a3000) libserialport.so.0 =>
/usr/local/lib/libserialport.so.0 (0x00007f9e60792000) libftdi1.so.2 =>
/usr/lib/x86_64-linux-gnu/libftdi1.so.2 (0x00007f9e60584000)
libusb-1.0.so.0 => /usr/local/lib/libusb-1.0.so.0 (0x00007f9e60376000)
libzip.so.4 => /usr/lib/x86_64-linux-gnu/libzip.so.4 (0x00007f9e60163000)
libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0
(0x00007f9e5ff46000) libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6
(0x00007f9e5fb7c000) /lib64/ld-linux-x86-64.so.2 (0x00007f9e612d2000)
libpcre.so.3 => /lib/x86_64-linux-gnu/libpcre.so.3 (0x00007f9e5f90c000)
librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007f9e5f704000)
libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007f9e5f4ea000)

nm showed that the required symbols are missing

$nm -gD /usr/local/lib/libusb-1.0.so.0 | grep version

Then I searched for other libusb  containing the symbols

$ locate libusb-1.0.so.0
/lib/x86_64-linux-gnu/libusb-1.0.so.0
/lib/x86_64-linux-gnu/libusb-1.0.so.0.1.0
/opt/calibre/lib/libusb-1.0.so.0
/usr/lib/libusb-1.0.so.0
/usr/lib/libusb-1.0.so.0.0.0
/usr/local/lib/libusb-1.0.so.0
/usr/local/lib/libusb-1.0.so.0_toberemoved

$ nm -gD /lib/x86_64-linux-gnu/libusb-1.0.so.0 | grep version
0000000000006190 T libusb_get_version

Finally, I renamed the outdated /usr/local/lib/libusb-1.0.so.0 . The dependency of libsigrok corrected itself to /lib/x86_64-linux-gnu as confirmed with ldd. After that I managed to build sigrok-cli and start the AppImages PulseView-0.4.1-x86_64.AppImage and sigrok-cli-0.7.1-x86_64.AppImage without any problems.

$ sudo mv /usr/local/lib/libusb-1.0.so.0 /usr/local/lib/libusb-1.0.so.0-temp
$ ldd /usr/local/lib/libsigrok.so
linux-vdso.so.1 =>  (0x00007ffe453e1000)
libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f10f103e000)
libglib-2.0.so.0 => /lib/x86_64-linux-gnu/libglib-2.0.so.0
(0x00007f10f0d2d000)
libserialport.so.0 => /usr/local/lib/libserialport.so.0 (0x00007f10f0b1c000)
libftdi1.so.2 => /usr/lib/x86_64-linux-gnu/libftdi1.so.2
(0x00007f10f090e000)
libusb-1.0.so.0 => /lib/x86_64-linux-gnu/libusb-1.0.so.0
(0x00007f10f06f6000)
libzip.so.4 => /usr/lib/x86_64-linux-gnu/libzip.so.4 (0x00007f10f04e3000)
libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0
(0x00007f10f02c6000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f10efefc000)
/lib64/ld-linux-x86-64.so.2 (0x00007f10f165c000)
libpcre.so.3 => /lib/x86_64-linux-gnu/libpcre.so.3 (0x00007f10efc8c000)
libudev.so.1 => /lib/x86_64-linux-gnu/libudev.so.1 (0x00007f10f1834000)
libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007f10efa72000)
librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007f10ef86a000)


Can't copy from clipboard to any Java applet The clipboard does not work with any Java applet on my install of Ubuntu 10.04. I am using the IcedTea plugin. I cannot copy/paste from Ubuntu to Java in either direction. However, IcedTea can copy to itself - that is, I can cut text from a Java applet and paste it into another part of that same applet. Other than this, clipboard support is fine across the rest of Ubuntu. Is there anything I can do to fix this?

gksudo gedit /etc/java-6-sun/security/java.policy

and/or

gksudo gedit /etc/java-6-openjdk/security/java.policy

or (for example)

gksudo gedit /opt/java/64/jre1.7.0_04/lib/security/java.policy

Add the following line down the bottom before the last closing bracket.

permission java.awt.AWTPermission "accessClipboard";

If you are having trouble finding the correct java.policy file to edit, you can try to locate the file using

$ sudo find / -name "*java.policy"

For Opera --> Firefox. You use any clipboard manager eg Parcelite.


Error installing Copy.com client I'm trying to install copy.com's client on Ubuntu 13.10 but when I do, I get the following error message:

Gtk-Message: Failed to load module "canberra-gtk-module"

(CopyAgent:4430): LIBDBUSMENU-GTK-CRITICAL **: watch_submenu: assertion 'GTK_IS_MENU_SHELL(menu)' failed

From there, it initially appears that the Copy client installs correctly. I am prompted to login and their icon shows up in the task bar. However, sync does not work properly. Items placed in my Copy folder on other devices (or through the web interface) sometimes download to this machine, and sometimes don't.

I have investigated the first error message and found this solution, that I should install the libcanberra-gtk-module. But when trying to install it, it is already installed. Just to be sure, I reinstalled it but it seems to have had no effect.

I attempted to investigate the second error message and found that lots of different programs give similar error messages, but all of the solutions I could find seemed to be specific to the program that was under discussion on that particular thread.

Any thoughts on how I could solve this? Or at least what I can try next?

This appears to be a long standing bug and was not considered critical see post #3: https://bugs.launchpad.net/ubuntu/+source/libdbusmenu/+bug/953158

A possible workaround can be found here: https://bugs.launchpad.net/ubuntu/+source/libdbusmenu/+bug/618587/comments/46


UBUNTU 15.10 & UBUNTU 15.10 SERVER QUESTION Hi i wanted to know if the 2 are different or are they the same? If different can any1 shed some light and what are they used for? I Use UBUNTU 15.10 and was interested on installing "LAMP". I use my Ubuntu PC for everyday use of simple tasks like web browsing etc.. but i also am learning to code/software & app dev.. if Ubuntu 15.10 OS Different from Ubuntu 15.10 SERVER, would it the same or does the fact it has "Server" make my PC act different? or better yet what does it mean by server and what does server do or used for?
Thank you..

Ubuntu Server is for servers, and is not recommended for normal use. It has a terminal interface, probably something newbies should not use.

Ubuntu Desktop is for normal use, and newbies can use this like freedom.


Hissing sound in headphones Today I tried Ubuntu on my laptop Asus n550jx 64 bit version. Everything works fine except there is constant static/ hissing in headphones (in laptop speaker too, but its too silent to be heard). It uses intel 4th generation sound drivers or something liek that, on windows realtek hd drivers. Also hissing is constant - it doesn't stop if there is no music playing or something like, pop only happens when Ubuntu boots. Hissing doesn't become louder if there max volume, it happens even if there is speaker on mute( sound of hissing changes thought).

What have tried:

Mute built in microphone- no effect
Check playback settings with alsamixer. There was something loopback which turned off made hissing quieter, but its still annoying
Checked sound card power saving which was turned off

So its something like that...

Oh and there is no hissing on windows 10.

The following solved it for my ux501VW laptop

sudo apt-get install alsa-tools-gui
sudo hdajackretask

Select both Show unconnected pins and Advanced override in the Options
Override Pin ID 0x16 Changing Device to: headphones
Click the Install boot override button
Reboot

This worked for me http://xps13-9333.appspot.com/#background_noise .
I could not make it run on boot, but its something.


Why do I get "wrong fs type, bad option, bad superblock" error? When mounting an NFS directory by doing:

sudo mount 192.168.1.5:/home/shared /mnt/common

I get the following error:

mount: wrong fs type, bad option, bad superblock on 192.168.1.5:/home/shared, missing codepage or helper program, or other error (for several filesystems (e.g. nfs, cifs) you might need a /sbin/mount.<type> helper program)
In some cases useful info is found in syslog - try dmesg | tail or so.

The kernel is up to date.

The question was already asked (for example here and here), but are either not answered or the answers are not helpful in my case.

What is wrong?

The error message mentions:

  (for several filesystems (e.g. nfs, cifs) you might need a /sbin/mount. helper program)

This is relevant given that you are trying to mount NFS. The /sbin/mount.nfs helper program is provided by nfs-common. You can install it with:

sudo apt install nfs-common

On the other hand, if you are trying to mount CIFS, the helper program is provided by cifs-utils. You can install it with:

sudo apt install cifs-utils

Try:

mount -t nfs 192.168.1.5:/home/shared /mnt/common


Switch between multiple java versions While installing Android Studio on Ubuntu 14.04 I get the message that my Java version (javac 1.7.0_79) is causing problems. I found a solution of how to install a newer Oracle version of Java:

sudo apt-add-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java8-installer

However I'm afraid that this might overwrite my existing open-jdk version of Java. Since I don't know which of my programs depend on Java, I fear that this could crash these other programs.

Is there a way to make sure apt-get doesn't overwrite my previous Java? I would basically like to have installed both and be able to switch between them manually, depending on what version I need.

Apt-get won't overwrite the existing java versions.

To switch between installed java versions, use the update-java-alternatives command.

List all java versions:

update-java-alternatives --list

Set java version as default (needs root permissions):

sudo update-java-alternatives --set /path/to/java/version

...where /path/to/java/version is one of those listed by the previous command (e.g. /usr/lib/jvm/java-7-openjdk-amd64).

Additional information:

update-java-alternatives is a convenience tool that uses Debian's alternatives system (update-alternatives) to set a bunch of links to the specified java version (e.g. java, javac, ...).

jrunscriptmay not be available in future releases, so safe choice is using
 export JAVA_HOME=$(dirname $(dirname $(readlink -f $(which java)))) as suggested by @ThiamTeck.
Also .bashrc needs to be executed every time you change your java version using update-alternative command.


passwordless ssh not working I've tried to setup a password-less ssh b/w  A to B and B to A as well.
Generated the public and private key using ssh-keygen -trsa on both the machines.
Used the ssh-copy-id utility to copy the public-keys from A to B as well as B to A.

The passwordless ssh works from A to B but not from B to A.
I've checked the permissions of the ~/ssh/ folder and seems to be normal.

A's .ssh folder permissions:

-rw-------  1 root root 13530 2011-07-26 23:00 known_hosts
-rw-------  1 root root   403 2011-07-27 00:35 id_rsa.pub
-rw-------  1 root root  1675 2011-07-27 00:35 id_rsa
-rw-------  1 root root   799 2011-07-27 00:37 authorized_keys
drwxrwx--- 70 root root  4096 2011-07-27 00:37 ..
drwx------  2 root root  4096 2011-07-27 00:38 .

B's .ssh folder permissions:

-rw------- 1 root root  884 2011-07-07 13:15 known_hosts
-rw-r--r-- 1 root root  396 2011-07-27 00:15 id_rsa.pub
-rw------- 1 root root 1675 2011-07-27 00:15 id_rsa
-rw------- 1 root root 2545 2011-07-27 00:36 authorized_keys
drwxr-xr-x 8 root root 4096 2011-07-06 19:44 ..
drwx------ 2 root root 4096 2011-07-27 00:15 .

A is an ubuntu 10.04 (OpenSSH_5.3p1 Debian-3ubuntu4, OpenSSL 0.9.8k 25 Mar 2009) B is a debian machine (OpenSSH_5.1p1 Debian-5, OpenSSL 0.9.8g 19 Oct 2007)

From A:

#ssh B

works fine.

From B:

#ssh -vvv A
...
...
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug2: key: /root/.ssh/identity ((nil))
debug2: key: /root/.ssh/id_rsa (0x7f1581f23a50)
debug2: key: /root/.ssh/id_dsa ((nil))
debug3: Wrote 64 bytes for a total of 1127
debug1: Authentications that can continue: publickey,password
debug3: start over, passed a different list publickey,password
debug3: preferred gssapi-keyex,gssapi-with-mic,gssapi,publickey,keyboard-interactive,password
debug3: authmethod_lookup publickey
debug3: remaining preferred: keyboard-interactive,password
debug3: authmethod_is_enabled publickey
debug1: Next authentication method: publickey
debug1: Trying private key: /root/.ssh/identity
debug3: no such identity: /root/.ssh/identity
debug1: Offering public key: /root/.ssh/id_rsa
debug3: send_pubkey_test
debug2: we sent a publickey packet, wait for reply
debug3: Wrote 368 bytes for a total of 1495
debug1: Authentications that can continue: publickey,password
debug1: Trying private key: /root/.ssh/id_dsa
debug3: no such identity: /root/.ssh/id_dsa
debug2: we did not send a packet, disable method
debug3: authmethod_lookup password
debug3: remaining preferred: ,password
debug3: authmethod_is_enabled password
debug1: Next authentication method: password
root@192.168.122.1's password:

Which essentially means it's not authenticating using the file /root/id_rsa.
I ran the ssh-add command in both the machines as well.

The authentication part of /etc/ssh/sshd_config file is

# Authentication:
LoginGraceTime 120
PermitRootLogin yes
StrictModes yes

RSAAuthentication yes
PubkeyAuthentication yes
#AuthorizedKeysFile     %h/.ssh/authorized_keys

# Don't read the user's ~/.rhosts and ~/.shosts files

I'm running out of ideas.
Any help would be appreciated.

After setting up password-less ssh, I was still asked for my user password. Looking at /var/log/auth.log on the remote machine pointed out the issue:

sshd[4215]: Authentication refused: bad ownership or modes for directory /home/<user>

So, make sure to have it right:

chmod o-w ~/
chmod 700 ~/.ssh
chmod 600 ~/.ssh/authorized_keys

While forbidding other users to write over your .ssh folder is obvious, having the same requirement for your home folder was trickier.

Also, check /etc/ssh/ssd_config to ensure that RSAAuthentication and PubkeyAuthentication options aren't disabled. Default is yes so that shouldn't be a problem.

in /etc/ssh/sshd_config on the target
change

  PermitRootLogin no

to

  PermitRootLogin yes

then kill -HUP your sshd PID:

  root@dzone2 # ps -ef|grep ssh
      root 28075 27576   0   Nov 17 ?           6:11 /usr/lib/ssh/sshd

root 17708 20618   0 10:09:30 pts/37      0:00 grep ssh root@dzone2 # kill -HUP 28075 root@dzone2 # ps -ef|grep ssh
root 17861 20618   0 10:09:44 pts/37      0:00 grep ssh
root 17852 27576   0 10:09:42 ?           0:00 /usr/lib/ssh/sshd


“Failed to load platform plugin ”xcb“ ” while launching qt5 app on linux without qt installed I wrote application for linux which uses Qt5.

But when I am trying to launch it on the linux without Qt SDK installed, the output in console is:

Failed to load platform plugin "xcb". Available platforms are:

How can I fix this? Maybe I need to copy some plugin file? When I use Ubuntu with Qt5 installed, but I rename Qt directory, the same problem occurs. So, it uses some file from qt directory...

I have found file libqxcb.so in the Qt SDK directory, but placing it in /usr/lib does not help.

I had this error message when trying to run "Stellarium".

With strace I found that the missing file was libxcb-xinerama.so.0.
I had to reinstall libxcb-xinerama0 to make it work:

sudo apt-get install --reinstall libxcb-xinerama0

Copy plugins/platforms/libqxcb.so from your qt install to platforms/libqxcb.so in your application directory.


How can I customize the Ubuntu boot up logo? I am making a custom distribution, and have a question about the Ubuntu Logo with 5 dots displayed when booting up.

The Ubuntu-Logo-Script in the /lib/plymouth/themes/ubuntutext folder has the word Ubuntu and beneath that 5 progressing 'dots'. Is it possible to remove the progress bar dots, and instead replace it with a faded Ubuntu logo, that gradually colors up to full?

Install Theme

I have created theme as you wanted with a faded Ubuntu logo (moreover I have added an animation of the Ubuntu logo. Hope you'd like it :-P )

Screenshot

Want to see it live?

Go to http://www.youtube.com/watch?v=zPo50gM3txU

Where can you get this theme?

I have uploaded it to Mediafire cloud here.

How do you install it?

Download from the above link, save it on your Desktop, then issue these commands one by one.
Please replace /lib/plymouth/themes with /usr/share/plymouth/themes in the commands, if you are on 16.04 or later.

cd ~/Desktop/
tar -xf ubuntufaded.tar
sudo cp -r ubuntu-faded-screen '/lib/plymouth/themes'
sudo rm '/lib/plymouth/themes/default.plymouth'
sudo ln -s '/lib/plymouth/themes/ubuntu-faded-screen/ubuntu-faded-screen.plymouth' '/lib/plymouth/themes/default.plymouth'
sudo update-initramfs -u

How to check it?

Restart Ubuntu and you'll see a nice animation while booting up and
shutting down. OR
Copy the whole command below and paste it into a terminal and hit enter. (You will probably need to install a package: sudo apt-get install plymouth-x11)

sudo plymouthd --debug --debug-file=/tmp/plymouth-debug-out ; sudo  plymouth --show-splash ; for ((I=0;I<10;I++)); do sleep 1 ; sudo  plymouth --update=event$I ; done ; sudo  plymouth --quit

How to create a Plymouth theme yourself

Plymouth Scripting Language is very similar to C or JavaScript. If you know these languages, it'll be very easy to create Plymouth scripts yourself.

Let's start with basics like operators, looping, comments, etc. Three type of comments are supported.

# comment like in bash
// single line comment like in C
/* block comments */

Statements are terminated with a semicolon, e.g.

foo = 10;

Statement blocks can be created with curly brackets, e.g.

{
    foo = 10;
    z = foo + foo;
}

The supported operators are +, -, *, /, %.
Shorthand assignment operators are also supported +=, -=, *=, etc.
Unary operators are also supported, e.g.

foo *= ++z;

+ is used for concatenation e.g.

foo = "Jun" + 7; # here foo is "Jun7"

Comparison operator example:

x = (3 >= 1); # assign 1 to x because it's true
y = ("foo" == "bar"); # assign 0 to y because it's false

Conditional operations and looping:

if (foo > 4)
{
    foo--;
    z = 1;
}
else
    z = 0;

while (foo--)
    z *= foo;

&&, ||, ! are also supported.

if ( foo > 0 && foo <4 )

This may be new to many readers: hashes, similar to arrays. Hashes can be created by accessing their contents using dot or [ ] brackets, e.g.

foo.a = 5;
x = foo["a"] ; # x equals to 5

Use the fun keyword to define function, e.g.

fun animator (param1, param2, param3)
{
    if (param1 == param2)
        return param2;
    else
        return param3;
}

The two basic Plymouth objects

Image

To create a new Image, give the filename of an image within the theme directory to Image(). Remember, only .png files are supported. For example:

background = Image ("black.png");

To show a text message you must create an Image of the text. (This might surprise you.) For example:

text_message_image = Image.Text("I love Ubuntu");

Width and height can be found using GetWidth() and GetHeight(); for example:

image_area = background.GetWidth() * background.GetHeight();

One can rotate or change the size of an Image; for example:

down_image = logo_image.Rotate (3.1415); # Image can be Rotated. Parameter to Rotate is the angle in radians
fat_image = background.Scale ( background.GetWidth() * 4 , background.GetHeight () ) # make the image four times the width

Sprite

Use Sprite to place an Image on screen.

Creating a Sprite:

first_sprite = Sprite ();
first_sprite.SetImage (background);

Or by supplying image to its constructor,

first_sprite = Sprite (background);

How to set different the sprite to different positions on screen (x,y,z):

first_sprite.SetX (300); # put at x=300
first_sprite.SetY (200); # put at y=200
background.SetZ(-20);
foreground.SetZ(50);

Or you can set all at once with SetPosition():

first_sprite.Setposition(300, 200, 50) # put at x=300, y=200, z=50

Changing opacity:

faded_sprite.SetOpacity (0.3);
invisible_sprite.SetOpacity (0);

Some miscellaneous methods used are:

Window.GetWidth();
Window.GetHeight();
Window.SetBackgroundTopColor (0.5, 0, 0); # RGB values between 0 to 1.
Window.SetBackgroundBottomColor (0.4, 0.3, 0.6);
Plymouth.GetMode(); #  returns a string of one of: "boot", "shutdown", "suspend", "resume" or unknown.
etc.

Predefined Functions

Plymouth.SetRefreshFunction (function); # Calling Plymouth.SetRefreshFunction with a function will set that function to be called up to 50 times every second
Plymouth.SetBootProgressFunction(); # function is called with two numbers, time spent booting so far and the progress (between 0 and 1)
Plymouth.SetRootMountedFunction(); # function is called when a new root is mounted
Plymouth.SetKeyboardInputFunction(); # function is called with a string containing a new character entered on the keyboard
Plymouth.SetUpdateStatusFunction(); # function is called with the new boot status string
Plymouth.SetDisplayPasswordFunction(); # function is called when the display should display a password dialogue. First param is prompt string, the second is the number of bullets.
Plymouth.SetDisplayQuestionFunction(); # function is called when the display should display a question dialogue. First param is prompt string, the second is the entry contents.
Plymouth.SetDisplayNormalFunction(); # function is called when the display should return to normal
Plymouth.SetMessageFunction(); # function is called when new message should be displayed. First arg is message to display.

Mathematical Functions

Math.Abs()
Math.Min()
Math.Pi()
Math.Cos()
Math.Random()
Math.Int()
etc.

It is better to modify an existing script than to start from scratch.

Open up .script file from my uploaded theme and try to understand what it does. A fantastic guide can be found  here.

I'm sure you'll learn this. It isn't hard. Let me know if you need any help.

Hope it'd help you create one yourself.

Answer to Roshan George's Comment :
Is it possible to replace the purple colour with an image as background in the default Plymouth theme names "ubuntu-logo" ?

background = Image ("your-image.png");
sprite = Sprite (background.Scale (Window.GetWidth(), Window.GetHeight()));
sprite.SetX (0); # put at x=0
sprite.SetY (0); # put at y=0

You might need to add sprite.SetZ (-10);

You should remove

Window.SetBackgroundTopColor (p, q, r);
Window.SetBackgroundBottomColor (a, b, c);

where p, q, r, a, b, c are some values.

More links

https://www.freedesktop.org/wiki/Software/Plymouth/
https://www.freedesktop.org/wiki/Software/Plymouth/Scripts/
https://www.khattam.info/plymouth-preview-a-tool-to-preview-your-plymouth-theme-2010-11-19.html
http://brej.org/blog/?p=158

I have changed the GRUB screen with the GRUB Customizer software. But if you want to change the Plymouth screen it's different.

All the things of this software is in the /lib/plymouth/themes directory and all the animation of this one is in the /lib/plymouth/themes/ubuntu-logo/ubuntu-logo.script file.

If you want to modify to your liking Plymouth, all you need is on the ubuntu-logo folder.

You can do it by your own without the help of any external software, but you must understand programming.

Also you can find tools to do that in the Ubuntu repository, but you need to learn to create Plymouth themes.

Good luck!


Ubuntu 16.04 is slow and lags I am running Ubuntu 16.04 on my laptop HP Pavilion G6 2320tx.
The specs are:

i5 processor
4 GB RAM
Radeon graphics 7670m

After using it for 10-15 minutes, everything starts lagging.
Clicking anything takes time to open up and everything becomes super slow.

I have done top but none of the processes is taking RAM or CPU.
Everything looks normal.

If your cpu gets hot because the heat sink of your cpu ist covered by dust or the cpu fan not working the cpu might be throttled to prevent overheating.
See here

Pop into terminal and type:

sudo gedit /etc/sysctl.conf

... and add this line to the end:

vm.swappiness = 15

... which will tell your system to use physical memory instead of virtual and speed up your desktop.  The default is 60 which is too high and relies on virtual memory more which can cause slowdown after a time.  Reboot after change.


Failed to mount Windows share: Invalid argument A very similar question has been asked before by robazefa, but no one answered it.
For the last month or so, my Ubuntu 14.04 LTS box has been been unable to open a couple of folders shared from external drives on a PC running Win 8.1 on a home network.

Through Files on the Unity desktop, I can browse the network, access the workgoup, access the Win 8.1 box, see and access its shares except the folders on its external drives.  They appear on the list and I could access them without a problem a couple of months ago, but now I get a dialogue box with Unable to access location - failed to mount Windows share: Invalid argument message, with only the option to click OK.

These folders are readily accessible now from other Win 7 and 8 PCs on the network, but the same Invalid argument error now appears on the only other Linux box on the network which runs Mint Cinnamon.

My question is which argument is in invalid and how can I validate it?

I resolved this by using the IP address instead of the server name.

Try restart windows... I don't now why but when I input (to map network disk) correct pass I have "Unable to access". After some many restart is it work all correctly :D


How to fix empty __dummy__ problem on desktop - ubuntu 16.04 I'm using ubuntu 16.04. After I restart or log on ubuntu. The dummy file appear on desktop, but when I open to show the problem, unfortunately it's empty. I can not find cause to create the file. Could someone help me to detect and resolved this problem. Thanks

When I tried to delete it in the GUI, the prompt said 'No such file or directory'.

So ran this in the problematic directory and worked well.

$ mkdir __dummy__
$ rm -r __dummy__

I just had this and was able to delete it using the command line - navigate to the directory and run

$ sudo rm- rf _ dummy _


Merging partitions on new computer I have a new laptop with several partitions on it and was hoping to merge them; but having never done that, I wanted to ask before I screw something up.

The output of sudo lsblk -o NAME,FSTYPE,SIZE,MOUNTPOINT,LABEL is:

NAME   FSTYPE   SIZE MOUNTPOINT LABEL
sda           111,8G
├─sda1 ext4    95,9G /
├─sda2            1K
└─sda5 swap    15,9G [SWAP]
sdb           931,5G
├─sdb1 ext4   810,4G
└─sdb2 ntfs   121,1G
sr0            1024M

I can see that i have around 930G in one partition and im running out of space on my main partition.  My goal is to merge the two and get easy access to that second bit , but i want to verify that i won't disrupt or destroy anything on my main partition by merging the two and of course need to know the best method to do so safely .

You can use gparted software, it has a graphical interface and it is very easy to understand and perform the operations.

$ sudo apt-get install gparted

Obs: Partition changes can cause data loss, be careful with the operations performed.


Unable to get grub after upgrading to windows 8.1 I have ubuntu along with windows8. Recently I upgraded to windows8.1. After that I am not getting the grub, which i used to get with windows 8. But i can access ubuntu 13.04 by pressing F9 while starting and in boot options, ubuntu, then i get grub and i can access ubuntu. Files are as usual. I tried to run boot repair but its rectifying this problem.

http://paste.ubuntu.com/6393514
 It says, The boot files of the OS now in use-ubuntu 13.04 are far from the start of the disk. Your bios may not detect them. I dont have idea whar it is. Can anyone help on the same?

I got it back when I changed chose back up EFI files option in advanced boot repair option.

If you can access ubuntu, reinstall grub:

Note than in my example, I have grub installed in the first hard drive. Your installation may be different (sdb for example):

sudo grub-install /dev/sda

If you're not sure which one to use:

sudo fdisk -l

Will show you the devices and partitions you have.

After installing grub, update it:

sudo update-grub

Good luck!


How to execute a .sh file? I just install Ubuntu. One of the things I miss about windows is the lack of executable.

When I right click the .sh file, go to permissions, and check "Allow executing as a program", it never does execute as a program when I double click it.

Another solution I found is doing it in the terminal. This doesn't work either.

What am I doing wrong? Is this really too stupid of a question or am I too stupid? Thanks for any help!

After you run chmod +x your shell script became executable. Now you can run it

./ts3client_runscript.sh

from the directory script lives in. Its a bit tricky, don't forget to put ./ in front of shell script file name.

How about this command:

sudo sh ts3client_runscript.sh


Possible missing firmware (Xubuntu 18.04) I have received this warning for a few weeks when I upgrade certain packages such as kernel or firmware.
W: Possible missing firmware /lib/firmware/rtl_nic/rtl8125a-3.fw for module r8169
W: Possible missing firmware /lib/firmware/rtl_nic/rtl8168fp-3.fw for module r8169

I wonder if I really need to install these firmware.
Xubuntu 18.04.5
Kernel 5.4.0-47
Onboard video card
I don't know exactly, it supposedly looks like a debian bug.
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=947356
Thanks!

I had this problem as well, let's run the following commands altogether.
sudo apt-get update &&
sudo apt-get -y install make gcc linux-headers-$(uname -r) build-essential git &&
git clone https://github.com/lwfinger/rtw88.git &&
cd rtw88/ &&
make &&
sudo make install &&
sudo reboot

This will restart if the process is successful. Hopefully, after the restart, you will have the wifi back.
When the kernel is changed, you need to do the following:
cd ~/rtw88
git pull
make
sudo make install

This SHOULD be done whenever you have a new kernel - no exceptions.
Reference:

http://ubuntuhandbook.org/index.php/2018/08/no-wifi-adapter-found-hp-laptops-ubuntu-18-04/
https://github.com/lwfinger/rtw88


Strategy to deal with Canonical's increasingly poor QA? My installed (local or obsolete) category is filling up because Canonical lately has been pushing out updates and then pulling them back. It's happened with two kernels in the recent past and it happened again with cups this morning.  I've been using Ubuntu for about three years now and I do not remember this happening as often as it has this year.

So, how to rationally deal with this?

I thought about only installing updates once per week, but that would not protect against grabbing that bad update that they pushed out right before I checked that week.

Is a good strategy to only install updates on the weekend? It seems that system updates are not often pushed out on weekends. I suppose they could push a bad update on Friday afternoon and pull it on Monday morning.

Or, somehow not install updates until they have been pushed out for a certain time period - like two days?  Is there an automated way to do that?

Edit: One of the affected systems runs Lubuntu 16.04 with the linux-generic kernel, the other runs Lubuntu 16.04 with the linux-generic-hwe-16.04 kernel.  Both were affected by a cups version 2.13-4ubuntu0.2 update that was pushed out and then pulled back on March 27th, 2017. The linux-generic machine received a kernel update version 4.4.0.67.12 that was subsequently pulled back. This update also orphaned snapd version 2.23.1  The linux-generic-hwe-16.04 machine received a kernel version 4.8.0.42.14 that was then orphaned.

The drastic alternative is to switch to Debian Stable, rather than any *buntu or derivative thereof, because Debian Stable has been through its full QA process, whereas Ubuntu is derived from Debian Testing, which has some way to go before it becomes Stable.

Almost all knowledge is directly transferable, but Debian will not give you all the latest cosmetic "bells and whistles". However, it has more packages in its repository...

I switched to Debian,  in my case with KDE, coming from Kubuntu, about 5 years ago, having had similar problems. But it comes down to personal choice.

Your best strategy, like any OS, is to check for updates a minimum of once per day.

From a security point of view, it is unrealistic for a single user to run on delayed updates while they are individually tested and prioritised. And an urgent update is always more important than a pulled one.

Therefore, unless you have the time on your hands to investigate every update, the best strategy is to apply the updates as they are released, even if this results in many pulled updates.  These can always be cleaned up later.

As a backup strategy, you should always... backup!  Backup often, backup everything.  Bad updates is one of the reasons for this.  This is especially handy if you keep your important documents in the cloud.

EDIT: My answer is based on the assumption that you are a single person with at-home personal computers.


Installing Lubuntu 14.04 on an HP Omnibook 6100 I would like to install Lubuntu 14.04 on an HP Omnibook with a Pentium 3 and 384MB of RAM and 10GB HDD, I would like to know if it is possible to install this new versions on old computers or I would have to install an old non-PAE version of Ubuntu, I can install via the alternative Ubuntu install or Core install, thank you.

The Lubuntu documentation recommends minimum memory of 128 MB for operation although they indicate that it might be a little slow


Vostro 3560 sound is not working after upgrade to Ubuntu 13.04? After upgrading to Ubuntu 13.04 the sound is not working anymore, in Ubuntu 12.10 worked fine.

http://www.alsa-project.org/db/?f=70f651a82676b9aab7fef8a8c51b02c5efb9e729

# aplay -l
aplay: device_list:252: no soundcards found...

I've put this:

options snd-hda-intel model=dell-vostro-3560

In the end of "/etc/modprobe.d/alsa-base.conf"

And my sound is working again :)

$ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: PCH [HDA Intel PCH], device 0: CONEXANT Analog [CONEXANT Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 3: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

Yeah,

I get the same after upgrade to 13.04 on an ASUS zenbook UX32A:

$ aplay -l
aplay: device_list:252: no soundcards found...


Unwanted automatic connection to hotspot I have a problem similar to that of this question.

A few days ago, I created a hotspot (MyHotspot) using Create New Wi-Fi Network... in order to share my wired connection with others via wifi, and now my laptop always automatically connects to the hotspot whenever I turn on the wifi.

I have tried to delete the hotspot both from Edit Connections... and by manually going in /etc/NetworkManager/system-connections and removing the hotspot with sudo rm MyHotspot. However, every time I turn on the wifi, for some reason, MyHotspot reappears and the laptop connects to it.

This is very annoying also because, for some reason, it also prevents me to use VPNs whilst connected with the wifi.

Any ideas on how to definitively get rid of the hotspot?

You should be able to delete the MyHotspot from Edit Connections. However, you can also disable the autoconnect by editing the MyHotspot profile, and unchecking the "Automatically connect to this network when it is available".

I’ve changed my hotspot password. I think that would disable any other devices or users that have connected in the past, not allowing connection unless I give them or enter the new password.


Universal USB Installer does not recognize the iso file I downloaded Ubuntu Desktop 12.04 LTS 32-bit.
Used the Universal USB Installer, but it wouldnt recognize the file.
It was a clean download and I'm quite sure that its not damaged.
Any suggestion or any other software you'd recommend?

Try Unetbootin ,select the appropriate installer  file based on your Current OS and also verify the md5sum of ISO before using it.

A suggestion , see screenshot

Don't select the first option Distribution , because it does not lists the current   Ubuntu Precise Pangolin 12.04 edition. So rather ,
Select the Diskimage option , then Browse to the location of the Ubuntu ISO image from the ....  button.
IMPORTANT option , select the Type and Drive Option Very Carefully to avoid data loss . If it is Usb Drive , most probably will be sdbX , sdcX, do a cross check and Proceed with OK option.

The name is probably ubuntu-12.04.4-Alternate-i386, so change alternate to Desktop, the application tells you that is the way it determine it.


How can I change permissions on external drives? I wanted to change permissions on my external drives that are automounted however I have tried by sudo nautilus and then going to gui and permissions and changing it however it does not let me.

I ran the ls -l and get

drwx------ 1 xbmc xbmc

the gui shows below.

owner xbmc
folder access create and delete files
file access ---

Group xbmc
folder access none
file access ---

others
folder access none
file access ---

how can I change it so that everyone has permission to access the drive and ALL folders/files inside of it. I am trying to get plexmedia server running and I cant see my drives via the webpage manage to add it to my source to be able to stream my content.

I want to change the "others" access so that I can access all my drives on the /media path to get read and write for all my folders from anywhere.

you can see my drives that are mounted here (external drives are #18,19,20) http://paste2.org/p/1754386

After I purchased a new computer, I needed to get my thumb drives working on it.
Here's the procedure:

Open "Disk Utility", and look for your device, and click on it.  This will let you be sure you know the correct filesystem type and device name for it.  In my case, it was 'ext4' and '/dev/sdb1' respectively.  Next: Decide what you want to call your thumb drive.  I called mine 'USB16-C', but you choose your own name. Before closing Disk Utility, click unmount. And USER should be your login name.
Then run steps 2 to 4 in a terminal window.

sudo mkdir -p /media/USB16-C

sudo mount -t ext4 -o rw /dev/sdb1 /media/USB16-C

sudo chown -R USER:USER /media/USB16-C

Now my thumb drive is accessible, and it automatically connects when I reboot too.

Simplest one is here you only need to go to the media folder and change permissions. Follow below to commands.

cd /media/
sudo chmod -R a+rX *

And it's done.


messed up my /user directory permissions an now cannot run sudo or gksu while changing the permissions for the /usr folder
of owner to root read and write
of group to root read and write
of other to read and write  i ignoratly checked to
box to propagate to all contained directories/files

now I cannot run sudo or gksu,  how can i fix this?
the error message when trying to run sudo on a command is:

sudo: error in /etc/sudo.conf, line 0 while loading plugin `sudoers_policy'
sudo: /usr/lib/sudo/sudoers.so must be only be writable by owner
sudo: fatal error, unable to load plugins

help!

Boot a Live CD/USB or any other linux distro and change the permission back to what they should be.

See, no need to reinstall.


Hindi Font Problem in Chrome I am using Google Chrome. I am facing problem in using Hindi News. which shows bullets instead of proper hindi text. but this same thing is not happening with Firefox it shows Hindi font .

when i use https://wiki.ubuntu.com/Fonts this in Firefox

Fonts In firefox

Fonts in Chrome

I used this site for solving this problem its tell me to modify .fonts.conf file
I'm currently working on font settings in XML (.fonts.conf). I noticed that after installing msttcorefonts things don't look quite as good in Firefox anymore. Most web pages request Arial which doesn't get hinted and anti-aliased too nicely, especially on LCD screens. I personally prefer the "sharp" non-anti-aliased look. i hate the new look which comes from this conf.

I'm using Ubuntu 11.10 32bit . the Font i am using in this version  of Ubuntu  are the latest . or i have to update my fonts . is there any new font look in Ubuntu

The Hindi font rendering problem in Chrome is already well-documented. There has been a bug report filed against this problem.

A workaround has been suggested in the bug report, but I consider it too drastic as it involves deleting a couple of fonts. Instead, we can achieve the same effect by renaming those fonts.

Enter these commands in a terminal:

sudo mv /usr/share/fonts/truetype/freefont/FreeSerif.ttf /usr/share/fonts/truetype/freefont/FreeSerif.ttf.backup
sudo mv /usr/share/fonts/truetype/freefont/FreeSans.ttf /usr/share/fonts/truetype/freefont/FreeSans.ttf.backup

The Google Chrome page after the above modification:

I was able to solve this problem by adding the Hindi Font Pack extension to Chrome:

Hindi Font Pack, Offered by: knjhaveri

Simply click "Add to Chrome" to install extension.


Sound not working unless starting Pulseaudio from the command line On my system, audio settings show no available sound card. However, as soon as I start pulseaudio from the command line, everything works. Output from pulseaudio:

libudev: udev_device_new_from_syspath: device 0x1e47f30 has devpath '/devices/virtual/sound/timer'
libudev: udev_device_new_from_syspath: device 0x1e47f30 has devpath '/devices/virtual/sound/seq'
libudev: udev_device_new_from_syspath: device 0x1e47f30 has devpath '/devices/pci0000:00/0000:00:1b.0/sound/card0'
libudev: udev_device_new_from_syspath: device 0x1e47f30 has devpath '/devices/pci0000:00/0000:00:1b.0/sound/card0/pcmC0D7p'
libudev: udev_device_new_from_syspath: device 0x1e47f30 has devpath '/devices/pci0000:00/0000:00:1b.0/sound/card0/pcmC0D2c'
libudev: udev_device_new_from_syspath: device 0x1e47f30 has devpath '/devices/pci0000:00/0000:00:1b.0/sound/card0/pcmC0D3p'
libudev: udev_device_new_from_syspath: device 0x1e47f30 has devpath '/devices/pci0000:00/0000:00:1b.0/sound/card0/pcmC0D0p'
libudev: udev_device_new_from_syspath: device 0x1e47f30 has devpath '/devices/pci0000:00/0000:00:1b.0/sound/card0/pcmC0D0c'
libudev: udev_device_new_from_syspath: device 0x1e47f30 has devpath '/devices/pci0000:00/0000:00:1b.0/sound/card0/hwC0D3'
libudev: udev_device_new_from_syspath: device 0x1e47f30 has devpath '/devices/pci0000:00/0000:00:1b.0/sound/card0/hwC0D2'
libudev: udev_device_new_from_syspath: device 0x1e47f30 has devpath '/devices/pci0000:00/0000:00:1b.0/sound/card0/controlC0'
libudev: udev_device_new_from_syspath: device 0x1e37f40 has devpath '/devices/pci0000:00/0000:00:1b.0/sound/card0'
libudev: udev_device_read_db: device 0x1e37f40 filled with db file data
libudev: udev_device_new_from_syspath: device 0x1e39240 has devpath '/devices/pci0000:00/0000:00:1b.0/sound/card0'
libudev: udev_device_new_from_syspath: device 0x1e39570 has devpath '/devices/pci0000:00/0000:00:1b.0/sound/card0'
libudev: udev_device_new_from_syspath: device 0x1e39560 has devpath '/devices/pci0000:00/0000:00:1b.0/sound/card0'
libudev: udev_device_new_from_syspath: device 0x1e39560 has devpath '/devices/pci0000:00/0000:00:1b.0/sound/card0'
libudev: udev_device_new_from_syspath: device 0x1e39560 has devpath '/devices/pci0000:00/0000:00:1b.0/sound/card0'
libudev: udev_device_new_from_syspath: device 0x1e3f270 has devpath '/devices/pci0000:00/0000:00:1b.0/sound/card0'
libudev: udev_device_read_db: device 0x1e3f270 filled with db file data
libudev: udev_device_new_from_syspath: device 0x1e40e70 has devpath '/devices/pci0000:00/0000:00:1b.0/sound/card0'
libudev: udev_device_read_db: device 0x1e40e70 filled with db file data
libudev: udev_device_new_from_syspath: device 0x1e42290 has devpath '/devices/pci0000:00/0000:00:1b.0/sound/card0'
libudev: udev_device_read_db: device 0x1e42290 filled with db file data
libudev: udev_device_new_from_syspath: device 0x1e45a00 has devpath '/devices/pci0000:00/0000:00:1b.0/sound/card0'
libudev: udev_device_read_db: device 0x1e45a00 filled with db file data

Output from lspci:

00:1b.0 Audio device: Intel Corporation 82801JD/DO (ICH10 Family) HD Audio Controller (rev 02)

Ubuntu 12.04 LTS precise, upgraded from Lucid LTS. Worked out of the box on Lucid.

Run 'alsamixer' in termianl and check if master sound is muted.

oo is unmute and mm is for mute.

This is just a guess, but maybe putting pulse audio in your startup applications might solve the issue.


Where is the suspend/hibernate button in GNOME Shell? In 17.04 I could suspend\hibernate from the power off menu button.

I can't find how to do this in Ubuntu 17.10 GNOME Shell.

Option 1

Hold "Alt" when in the menu, this will switch the power off button into suspend button.

Option 2

When in the menu, click and hold on the power off button until it turns into suspend button.

Option 3

Go to settings
Choose Power
At the bottom, choose for the value Suspend for the When the Power Button is pressed

Now you can just click the power button to suspend.

Our house has 3 Ubuntu 18.04 desktop systems and while we often use suspend
we rarely use power off so here is our shortcut.

# Provide desktop shortcut to suspend command.
# A solution for Ubuntu 18.04 gnome somewhat hidden mouse nav to suspend.
# Place file in ~/Desktop/Suspend.desktop
# and chmod a+x ~/Desktop/Suspend.desktop
[Desktop Entry]
Encoding=UTF-8
Type=Application
Terminal=true
Icon=/usr/share/icons/Adwaita/24x24/emotes/face-cool.png
Name=Suspend
Exec=/bin/systemctl suspend
Categories=Utility


Opening an archive as a folder in Nautilus I'd like to open an archive (zip, 7z, rar, etc.) as a subfolder in Nautilus. That is, when I double-click an archive, I'd like it to open in the same Nautilus window instead of starting Archive Manager.

I saw various responses to this question, such as this one, but most are over five years old. There was also an 2016 OMG! UBUNTU! article that says that decompression would be incorporates from Archive Manager into Nautilus and "navigation through the compressed file like a normal folder would be possible". I am wondering what the situation in 2020 is.

I have Ubuntu 19.10 and GNOME 3.34.2.

You should install unrar by the following command:

sudo apt install unrar


I installed a custom .deb file that provided a package named "python" but now need to remove it I think I may have botched my system. I have recently installed Ubuntu 14.04 on my computer.

One of the first things I did was install python 3.3 from source (using make altinstall); but then I realized that python 3.4 is already native in Ubuntu 14.04 and decided to remove the python 3.3 installation. To do that, I followed the instructions on this post.

Unfortunately, only too late did I realize that this resulted in the creation a .deb file containing a package named "python", which was subsequently installed. This had the effect of completely mangling my package system. Any attempt to use apt-get produces many dependency errors like the one below:

mercurial : Depends: python (>= 2.7) but it is not going to be installed
            Depends: python (< 2.8) but it is not going to be installed

I tried to remove the custom package by running dpkg -r python_3.3.5-1_amd64.deb but it says that I need to remove by the name of the package, not the name of the file. And running dpkg -r python also fails:

dpkg: dependency problems prevent removal of python:
 python-ubuntu-sso-client depends on python (>= 2.7).
 python-ubuntu-sso-client depends on python (<< 2.8).
 ...

The first solution I came up with was to completely re-install Ubuntu, but before I go ahead with that drastic solution, is there any way I can undo the effects of installing this custom "python" package?

Can I somehow use the .deb file to remove the package from the system (e.g. by removing the file sit provides and then resolving the dependencies by hand)? Or did this "python"-named package mess up the packages beyond hope of recovery?

I think I have found the answer. I downloaded the real "python" package from Ubuntu Packages and installed it:

cd /tmp
wget http://nl.archive.ubuntu.com/ubuntu/pool/main/p/python-defaults/python_2.7.5-5ubuntu3_amd64.deb
sudo dpkg -i python_2.7.5-5ubuntu3_amd64.deb

To complete the whole process, I ended up recreating my custom .deb file (with python3.3) with a new non-clashing name ("python-to-remove"), and then installed and uninstalled it:

sudo dpkg -i python-to-remove_3.3.5-1_amd64.deb
sudo dpkg -r python-to-remove

This removed all the files from this package, while the files from other packages seem to not have been affected. I ended up deleting a bunch of documentation files as well, but I had never used them before, so I think I'm OK with that.

python is by far one of the most important packages to Ubuntu. DO NOT TRY TO REMOVE IT!!! YOUR COMPUTER WILL NOT RUN PROPERLY AT ALL!!! You must reinstall ubuntu. Besides, you would not need to remove the python package anyway, why would you? It is impossible anyway.


Cant purge nvidia-331-updates Just cant install/purge/update ANYTHING because apt-get tells me it MUST DELETE nvidia-331-updates before that. Purging/installing/deleting nvidia-331-updates fails with a message from dpkg.

Removing nvidia-331-updates (331.113-0ubuntu0.0.4) ...
stop: Unknown instance:
userdel: existing lock file /etc/subuid.lock without a PID
userdel: cannot lock /etc/subuid; try again later.
dpkg: error processing package nvidia-331-updates (--remove):
 subprocess installed post-removal script returned error exit status 16
Errors were encountered while processing:
 nvidia-331-updates
E: Sub-process /usr/bin/dpkg returned an error code (1)

Answer from OPs comment:

  That you guys. Just removed /etc/subuid.lock and
  /etc/subgid.lock and its fine now

You could maybe try this instead, and it might work fine, and enter this command in the terminal:

sudo apt-get remove nvidia-311-updates

and it might work fine this way.


USB 3.0 port does not work on carbon x1 laptop I have carbon x1 second gen and the USB 3.0 port does not recognize any usb device. Where do I start troubleshooting this issue?

I use Ubuntu 14.04.

make sure you have all the necessary packages installed correctly.

do a sudo apt-get dist-upgrade
check for available packages that are ready to be installed
go to Software & Updates, and look what u have "to be installed" from main server
if none of above works... Then either your laptop does not support USB 3.0 or the necessary packages are not installed correctly

don't forget to provide more information about your laptop.


Single user forgot password can't do updates I'm using Ubuntu 14.04 and like it very much but I can't update anything because I forgot my password and authentication is required.  This is a home computer and I am a single user who doesn't even care about passwords.

I've done a lot of research and have tried the routine password changing steps ..  recovery mode .. mount -rw -0 remount / etc.. which got me “authentication token manipulation error password unchanged.  I’ve read the threads and tried the fixes with no luck.

You know in the beginning I might have set my password before I set the time/date and another guy who did that got the same message and claimed that that had caused his problem.  He fixed his by deleting the encrypted password in the /etc/shadow file and then doing thesudo passwd username fix to create a new password.  He never said how he deleted the encrypted password and that is where I am stuck trying his fix. When I look at cat /etc/shadow I can see the encrypted password right next to my user name but I can't get into the field to delete it.

Where and how do I delete this password so that I can create a new one.

Any help would be greatly appreciated.

Thanks

If you cannot find any solution, you could just create a new partition, install Ubuntu on the new partition, and then transfer all your important files from your previous installation. Then format your old partition, then add the unused space to your new partition with your new installation. Here's a rundown

Download a Ubuntu 14.04 LTS ISO from their website here (http://www.ubuntu.com/download/desktop)
"Burn" the ISO to a USB or disk. You can use "Startup Disk Creator", which may come package with Ubuntu, if not you can find it easily in the Software Center. Open that and make a startup disk using the previously downloaded ISO. To select the ISO, you need to click the disk and navigate to it. Also, you'll need to format the USB, so make sure you don’t' have anything important on it.
After it is burned to the USB, restart you're computer and spam F12 while it starts up. It should bring you to the "boot menu" which allows you to choose what to boot off of
Choose your USB device from the menu with the arrow keys and hit enter.
A pink screen will show up, hit down and it will bring up a language menu, choose your language, and then choose install Ubuntu. If you get a black screen after that for longer the a min, restart your computer and redo the previous 2 steps and when you make it back to the pink screen after selecting a language, you'll want to hit F6,a small menu will pop up and navigate to where it says "nomodeset" and hit enter on it. Then try installing again.
When you install, set it up like you normally would until you make it to the menu that asks how you want to install it. You will want to choose "Something else" at the bottom of the menu.
Now, here's where things might get a bit confusing since I don't have much information from you. If you have only a single partition, you need to resize it. Double click the partition and reduce the size (preferably to half of what it is) and click ok.
Now, you want to create a new partition, click on the free space and create and then click on the plus sign button. You want this to be leave the settings alone other than the mount point, which should be the root folder "/". Hit ok and continue. If it says you need swap space, you can ignore it if you laptop was running fine without it previously.
Continue through the installation, its fairly simple at this point, it just asks for you to make a local account, and after that you should be good to go :)
Now, after you log into your new account, click the icon on the top left corner and type in "disks" and click the first link. You will see all your partitions on your hard drive. You want to make sure your old partition is mounted, if not, click on it and mount it.
Now, use Ubuntu's file manager and copy any personal or important files from the old installation of Ubuntu (probably the entire home folder, that's where most of your important files would be).
Now, go back to disks, click on your old partition, and format it. Now, you can readd this empty space to your new partition, and your good as new.

Any questions just ask, I might give you a link to some info that might be more helpful :)


Dell XPS 12 and Ubuntu 13.10 Touchpad/Screen Woes I have read all the links and posts. Slapping 13.10 onto this XPS 12 convertible runs everything fine out of the box, bar some things.

Touchpad (no multitouch/scrolling) - Sputnik only supports up to 12.10 and all changes are supposed to have been integrated. No touchpad option shows up in settings
Touchscreen is supported but only as a pointer, i.e. not able to scroll in chrome etc
Screen rotation (least important, but no switching when the button is pressed).

I am not looking for handouts, or step by steps, but I was wondering if someone has had any experience with these issues?

Thanks!

First make sure your kernel is up to date - I'm on 3.11 at the moment.

Have you installed any multitouch apps? A good one to try is planarity. If that works with multiple touches, you know whether its your setup or a problem with the hardware.

If you want gestures there are 2 options - ginn and touchegg. I'm using touchegg on my XPS12 at the moment, but thats because I'm on Gnome Shell.

Overall it seems like there is relatively little out there about running a touch screen in linux, but the Arch wiki is pretty good for tips. IIRC your laptop will be using an Atmel maXTouch Digitizer. You may have more luck finding stuff relating to the actual hardware component, as opposed to just a laptop model.

https://wiki.archlinux.org/index.php/Lenovo_Thinkpad_Helix

https://wiki.archlinux.org/index.php/Touchscreen

I'm having the same problems, on a Dell XPS 12 9Q33 running Xubuntu 13.10

I installed touchegg using:

$ sudo apt-get install touchegg

but nothing seemed to work in the program.

What was really odd was that when I tried to compile the touchegg gui from source:

https://github.com/Raffarti/Touchegg-gce

it wouldn't work...gave me a weird make error, something to to tune of: `

Make: No rule to make target /usr/lib64/qt-3.3/mkspecs/de Make Stop

Researching more, at least for, looks like it may be an upstream bug...because the system recognizes my touchscreen, the computer also thinks the touch pad is a normal touchpad, not a synaptics one

http://libcoding.wordpress.com/2013/11/02/issue-with-touchpad-in-ubuntu-13-10-in-xps-12/comment-page-1/#comment-22

Apparently the workaround is blacklisting the i2c_hid module , which the dude explains how to do.

But yeah, this is frustrating.

OP, I see you asked this 5 months ago, did you figure anything out?


Trouble changing the APN "MessageCenter" parameters for MMS in Ubuntu Touch I installed Ubuntu Touch on my Nexus 4 (14.10(r133) and I need to change the parameters in the APN contexts list for "MessageCenter" to show the correct MMS settings for my carrier.  I use a sub-carrier for T-Mobile here is the US and there is one bit of text that needs to change in order to use MMS.  I have no issue changing parameters for the APN "Name" or "AccessPointName" to show my carrier using ./set-context-property 0 command, only when trying to use "MessageCenter".

This is what I need to change (or edit):
MessageCenter = http://mms.msg.eng.t-mobile.com/mms/wapenc

This what I used (just need to add smpl to the address):
./set-context-property 0

MessageCenter http://smpl.mms.msg.eng.t-mobile.com/mms/wapenc

Here's the error:

Error setting context /ril_0/context1 property MessageCenter: org.ofono.Error.InvalidArguments: Invalid arguments in method call

So, not sure if this parameter can actually be changed or if it's a different command to just edit the parameter itself.  Hoping it's just something simple.  Thanks.

Follow this link it shows how to create context property. I hope this helps.


How to get back lost capacity after using Gparted? I have a laptop with a single Intel 80GB SSD. I originaly only had W7, but installed Ubuntu on a small partition of this disk. Recently I wanted to expand the partition containing Ubuntu and so booted up from a USB to run Gparted from there. The idea was to resize the W7 partition and use this extra space for my Ubuntu partition. I had:

Windows partition 61GB
Ubuntu partition 9,3GB
Linux-Swap 4GB

Resizing the W7 partition using Gparted went fine, which gave me some unallocated disk space. I now needed to move this unallocated space next to my ubuntu partition. To do this I deleted the swap disk used by Ubuntu in order to expand the Ubuntu partition in to this area of the hard drive. Which means I had:

Windows partition 56,17GB
Unallocated 4,88GB
Ubuntu partition 9,3GB
Unallocated 4GB

I then used then used the unallocated space from the Windows partition as a new swap disk:

Windows partition 56,17GB
Linux-Swap 4,88GB
Ubuntu partition 9,3GB
Unallocated 4GB

And at last I wanted to extend my ubuntu partition to include the now unallocated space from the old swap. This is where I had trouble.

I tried do resize the Ubuntu partition in Gparted, but got an error message that I did not save. The Ubuntu partition did grow however and according to Gparted I now have:

Windows partition 56,17GB
Linux-Swap 4,88GB
Ubuntu partition 13,5GB

The problem is that the additional 4GB in the Ubuntu partition don't show up, it is as if I gained 4GB, but that these 4GB are being used by some file. When running df -h the partition is still being listed as 9,3GB and not 13,5GB as in Gparted.

Filesystem      Size  Used Avail Use% Mounted on
/dev/sda5       9,3G  7,5G  1,3G  86% /
none            4,0K     0  4,0K   0% /sys/fs/cgroup
udev            2,0G   12K  2,0G   1% /dev
tmpfs           393M  864K  392M   1% /run
none            5,0M     0  5,0M   0% /run/lock
none            2,0G  488K  2,0G   1% /run/shm
none            100M   36K  100M   1% /run/user
/dev/sda1        57G   44G   13G  79% /media/OS

I wanted to post an image of Disk Utility, but as this is my first question I'm not allowed. It does show the partition as being 14GB however.

I have tried using fstrim -v /, but this didn't seem to help.

GParted 0.12.1 --enable-libparted-dmraid

Libparted 2.3

Check and repair file system (ext4) on /dev/sda5  00:00:04    ( ERROR )

calibrate /dev/sda5  00:00:00    ( SUCCESS )

path: /dev/sda5
start: 128,047,104
end: 156,301,311
size: 28,254,208 (13.47 GiB)

check file system on /dev/sda5 for errors and (if possible) fix them  00:00:04    ( SUCCESS )

e2fsck -f -y -v /dev/sda5

Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
Pass 4: Checking reference counts
Pass 5: Checking group summary information

 234643 inodes used (37.27%, out of 629552)
 332 non-contiguous files (0.1%)
 596 non-contiguous directories (0.3%)
 # of inodes with ind/dind/tind blocks: 0/0/0
 Extent depth histogram: 185927/200
 1840791 blocks used (73.84%, out of 2492928)
 0 bad blocks
 0 large files

 144531 regular files
 20184 directories
 57 character device files
 25 block device files
 0 fifos
 30 links
 69834 symbolic links (48423 fast symbolic links)
 3 sockets
------------
 234664 files

e2fsck 1.42.5 (29-Jul-2012)

grow file system to fill the partition  00:00:00    ( ERROR )

resize2fs /dev/sda5

resize2fs 1.42.5 (29-Jul-2012)
resize2fs: /dev/sda5: The combination of flex_bg and
    !resize_inode features is not supported by resize2fs.

The problem appears to be with resizing the Ubuntu file system (likely ext2, ext3, or ext4) with resize2fs 1.42.5.

You might try booting from media containing the latest GParted Live (most recent stable version is 0.16.2-1b).  This live image uses a newer version of resize2fs 1.42.8-1.

This newer version of GParted (0.16.2) will also indicate if there is unallocated space within the partition.

Your explanation is a rather hard to follow but when you are dealing with Windows it would have been better to resize the drive with Windows to avoid a lot of troubles. In windows you type this in Run >  diskmgmt.msc  and disk management will pop up. You would want to do all the resizing of windows there.  I definitely think you should run diskmgmt to see what it shows. Windows is able to move its own files when you resize a partition with diskmgmt but Linux will not. also you may well want to run Bleachbit on your Ubuntu install to clean out the junk files. You may be surprised on how much space you will regain if you haven't used it before. You can download Bleachbit from Ubuntu Software Manager. Run Bleachbit both as root and user to remove the move junk.


How to uninstall LibreOffice? Which package should I remove to completely remove libreoffice?  I have no need for office tools.

That's the one gripe I have with package managers like apt, there's no simple way to perform the essential task of removing unwanted software :S

Type the following in terminal to remove libreoffice:

sudo apt-get remove --purge libreoffice*
sudo apt-get clean
sudo apt-get autoremove

This will uninstall ALL libreoffice packages in ubuntu 16.04

sudo apt-get autoremove -y libreoffice-\*


No sound whatsoever. Headphones or Speakers, on an HP Pavilion dv6 I recently (3 days ago) installed ubuntu 11.10 and have spent the entire time looking for ways to activate the sound. I am completely new to ubuntu/linux and would love some help on this. I am running an hp pavilion dv6.

I have the same computer as you. I even had the same problem with the audio playing out of the headphones and the speakers! I looked everywhere for a fix and kept coming up short in my search for an actual solution. I finally found it. Short answer if you have an HP Pavilion dv6-2155dx all you have to do is this.

In terminal type or paste:

gksudo gedit /etc/modprobe.d/alsa-base.conf

Add this line to the very bottom of the alsa-base.conf file:

options snd-hda-intel model=hp-dv5

Save and restart computer.

Enjoy beautiful sound and Ubuntu!

All thanks to a post on this website.

first try looking in  system settings to see if the volume is set to mute! if it is not then keep reading :-)

This link is specific to your problem http://ubuntuforums.org/showthread.php?t=1546959 and aslo this http://ubuntuforums.org/showthread.php?p=9664708 though the first link which is useful the problem was soleved by a fresh install! though the second succeeded with some work! and welcome to the Ubuntu club :-)


Auto-start service on bootup that depend on network I have a particular service (in this case OpenFire) that runs at startup.  When it starts, it attempts to connect to a database at a given hostname.  At startup time it fails to connect to that database because it cannot find the host in DNS.

My best guess is that this service is executing on startup before networking has initialized and DNS servers have been obtained from DHCP.  Is there any way to specify startup service dependencies that must be met before executing the /etc/init.d/ script?

Forget about upstart. There are much easier ways to do this.
Put a script that launches Openfire here:

 /etc/network/if-up.d/

If openfire has to run as your user, so something like:

#!/bin/sh
su -c "openfire" myUserName

Make sure you mark it as executable:

sudo chmod +x /etc/network/if-up.d/openfire

Likewise you can close openfire, when you loose your network connection, by putting a script in /etc/network/if-down.d/ that kills it:

#!/bin/sh
killall openfire

if you don't configure your network using NetworkManager, you can try to configure your upstart conf to depend on networking:

start on starting networking

or

start on starting network-interface

I don't know how it interacts with NetworkingManager, perhaps NM triggers some events which are detectable through upstart.


Shut down computer from keyboard Is there a keyboard shortcut available to shutdown the computer?

I know I can use the Power button, but I would like to be able to it from the keyboard.

If such a shortcut does not exist already, how do I set one?

In older versions of Ubuntu Ctrl + Alt + Del will bring up options for shutdown, restart, suspend and hibernate. These can then be selected with the arrow keys and Enter.

For a single hit solution in later versions you can use this script to create a keyboard shortcut. First you need to download the script and save it on your computer. Next you need to make it executable by right clicking on it and going to properties → Permissions → Allow executing file as a program. Finally go to System Settings → Keyboard → Shortcuts → Custom Shortcuts and click the small plus symbol. For the command type in

/home/toby/power.sh shutdown

or whatever path you saved the script to.

Suspend, hibernate and restart are also available by this method; just replace shutdown in the above command.

The fastest and most reliable thing is Ctrl+Alt+SysRq+o
It's a direct command to the kernel


I want to fully switch to Ubuntu Right now I have windows and Ubuntu on my laptop. I don't use Windows anymore. But it still has the majority of my hard drive space. How do I fully switch to Ubuntu. Also. It is apparently badly corrupted, someone told me.

Here is my screen shot of gparted

Best option to remove windows and expand Ubuntu is, boot to a live Ubuntu DVD/USB, and run

sudo gparted

Now right click your windows partition and delete it so it is empty space (back up anything you need first as it is now gone) and click the green tick to apply.

Now you can right click on the Ubuntu partition and choose resize/move here you can expand Ubuntu in to the rest of the blank space.

Now just click the green tick to apply the partition and wait for it to finish, (could take a while) and Ubuntu will be the only OS with all the space.

You may also need to reinstall grub depending on where you had it installed, from a live DVD/USB open a terminal and run

sudo grub install /dev/sda

Assuming your Ubuntu drive is sda.

In the event you still can't boot, use boot-repair, to fix grub

The easiest approach would be:

Backup your important data from Ubuntu and Windows
Do a complete new installation including Windows disc spaces


Can't install Ubuntu from USB drive on Windows 10 I'm using Windows 10 on a Lenovo ideapad 100S. I've tried to install Ubuntu from a USB stick but the USB drive won't boot and I can't change the boot order. When I try to use BCDEdit I get an access denied message.

If your install disk was made for legacy, or BIOS, boot with MBR and no EFI partition, you will have this issue until you enable legacy boot in your "BIOS" settings. Because you haven't enabled that boot method, it isn't showing you the USB as a valid boot option.


Ubuntu 20.04 no sound out of Bluetooth headphones This is on a machine I upgraded from 18.04 to 20.04 a few days ago. No issues at all getting sound to play out of headphones on 18.04.

The headphones are paired with Bluetooth. I unpaired and repaired them just to be sure. The settings panel for sound has them as an output option and I can select it without issue. However, no sound ever comes out of the headphones. I've even adjusted the volume both in the settings panel, in alsamixer and in pavucontrol. Nothing changes.

I see no errors in the bluetooth service log.

Output of:

{ sudo lshw | grep product | head -n1 && sudo lspci -knn | grep Net -A3 && lsusb -v; } >output.txt 2>&1

https://pastebin.com/VJ5EQcFb

This is a bug (pulseaudio #832, launchpad #1866194) with new version of pulseaudio in Ubuntu 20.04 where old config values have not been cleared and it is not routing to the correct device. The solution is to delete the old config and restart pulseaudio:

Open a terminal (Ctrl+Alt+T) and run the following commands:

mv ~/.config/pulse/ ~/.config/pulse.old
systemctl --user restart pulseaudio

A pulseaudio fix #298 is currently in progress.

After a few reboots, it seems to be working. I'm not sure specifically which thing worked, but here are the things I tried.

Everything in this answer: Ubuntu 18.04: Audio doesn't work unless I switch between outputs
Un-pairing and re-pairing my BlueTooth headphones. I am using blueman-applet.
Muting and unmuting the sound in AlsaMixer across all devices.
Selecting, deselecting and reselecting the headphones output in the configuration panel for sound.


Linux headers update breaking virtualbox folder sharing? I have a virtualbox running ubuntu 13.10 (running on a 13.10 host) that has two shared folders on the host that are mounted at boot. A while ago the guest ran some updates that broke the folder sharing, the guest could no longer see the devices to mount them. I had a hunch from reading around that it might be something to do with the guest additions, as getting the 4.3 release of virtualbox from the oracle repo and updating the guest additions solved the problem. The issue is, today's linux headers update broke the mount again, and there doesn't appear to be an updated guest additions to go to! (re-installing them doesn't work).

Obviously at a basic level, not installing the updates would prevent this problem. However I'd be interested in finding out exactly why it's behaving like this.

I'm a bit out of my depth here but if someone could point me in the right direction of a solution I'd appreciate it.

If there's more useful info I can provide let me know.

Full error message I'm now getting when trying to use the manager to mount the Guest Additions CD Image:

Unable to access "VBOXADDITIONS_4.3.4_91027"

Error mounting /dev/sr0 at /media/ptinkler/VBOXADDITIONS_4.3.4_91027: Command-line 'mount -t "iso9660" -o "uheper=udisks2,nodev,nosuid,uid=100,gid=1000,iocharset=utf8,mode=0400,dmode=0500" "/dev/sr0" "/media/maplecroft/VBOXADDITIONS_4.3.4_91027" exited with non-zero exit stats 32: mount: unknown filesystem type 'iso9660'

Virtual Box shared folders functionality depends on guest additions kernel modules. A kernel update should automatically reload all modules using dkms (which should be installed by default).

Unfortunately this does not always work as expected. Then we have to reinstall the guest additions:

How do I install Guest Additions in a VirtualBox VM?

Guest additions will then be available after a reboot of the guest.

If this fails it is worth to try again as sometimes the installation does not work as expected (without errors or warnings).

It may also worth to try to remove the guest additions before we install them again using the uninstall script (replace x.x.xxx with your version of Virtual Box):

cd /opt/<VirtualBoxAddtions-x.x.xx>/
sudo ./uninstall.sh

Open Ubuntu in VirtualBox.
Open FireFox and go here.

Find your version of Virtualbox and click the link to open it.

Download your version of VBoxGuestAdditions (iso):

Open it in Archive manager and extract files

run:

sudo VBoxLinuxAdditions.run

Reboot.


USB microphone quits working after a few seconds On my Mythbuntu 12.04.2 HTPC, my USB microphone (Logitech AK5370) works for a few seconds, then stops producing signal from audio input.  The system recognizes it there, it just stays mute.  This happens on all USB ports.  It has worked fine for months.

I`m confident it's not the hardware because the microphone works fine with Win7 and also on other computers.

$ uname -a
Linux KISE-066 3.5.0-34-generic #55~precise1-Ubuntu SMP Fri Jun 7 16:25:50 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux

$ lsusb
Bus 001 Device 002: ID 05e3:0608 Genesys Logic, Inc. USB-2.0 4-Port HUB
Bus 005 Device 002: ID 1532:001c Razer USA, Ltd RZ01-0036 Optical Gaming Mouse [Abyssus]
Bus 005 Device 003: ID 0556:0001 Asahi Kasei Microsystems Co., Ltd AK5370 I/F A/D Converter
Bus 006 Device 002: ID 04ca:002a Lite-On Technology Corp.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 003: ID 05e3:0608 Genesys Logic, Inc. USB-2.0 4-Port HUB
Bus 001 Device 004: ID 046d:c525 Logitech, Inc. MX Revolution Cordless Mouse

Re-install of Mythbuntu is impracticable.

I tried the fix in this question (changing gstreamer settings) but it didn't work.

After every change, the mic would work as seen on Pulse Audio Volume Control for a few seconds, then the "level" on the level caught at the few seconds when it stopped working.

I installed Audacity to monitor the microphone's input level.

With the settings  ALSA > default > AK5370:USB Audio (hw:1,0): Line 0 the level meter shows the mic working.

Using a "trick" from the old days, I re-installed the following...

gstreamer0.10-pulseaudio (version 0.10.31-1ubuntu1.2) will be re-installed
libcanberra-pulse (version 0.28-3ubuntu3) will be re-installed
libpulse-mainloop-glib0 (version 1:1.1-0ubuntu15.3) will be re-installed
libpulse-mainloop-glib0:i386 (version 1:1.1-0ubuntu15.3) will be re-installed
libpulse0 (version 1:1.1-0ubuntu15.3) will be re-installed
libpulse0:i386 (version 1:1.1-0ubuntu15.3) will be re-installed
libpulsedsp (version 1:1.1-0ubuntu15.3) will be re-installed
libpulsedsp:i386 (version 1:1.1-0ubuntu15.3) will be re-installed
libusb-0.1-4 (version 2:0.1.12-20) will be re-installed
libusb-0.1-4:i386 (version 2:0.1.12-20) will be re-installed
libusb-1.0-0 (version 2:1.0.9~rc3-2ubuntu1) will be re-installed
paman (version 0.9.4-1ubuntu3) will be re-installed
paprefs (version 0.9.10-0ubuntu1) will be re-installed
pavucontrol (version 0.99.2-1build1) will be re-installed
pavumeter (version 0.9.3-1ubuntu2) will be re-installed
pulseaudio (version 1:1.1-0ubuntu15.3) will be re-installed
pulseaudio-module-gconf (version 1:1.1-0ubuntu15.3) will be re-installed
pulseaudio-module-x11 (version 1:1.1-0ubuntu15.3) will be re-installed
pulseaudio-module-zeroconf (version 1:1.1-0ubuntu15.3) will be re-installed
pulseaudio-utils (version 1:1.1-0ubuntu15.3) will be re-installed
usbutils (version 1:005-1) will be re-installed

...and rebooted.

No help.

I have discovered that after closing and reopening Pulse Audio Volume Control, the microphone volume level will show the microphone working fo a few seconds, then "freezing".

???

Do not let Pulse Audio be open for more than a few seconds.  Then the mic will keep working.  You can close Pulse Audio and then re-open it, as long as you don't let it run for > 5 seconds.


How to rename a file in Terminal? I have:

/home/user/my_static
/home/user/static/

How do I rename my_static to static and remove static(2)?

Use:

mv "old location" "new location"

mv /home/user/my_static /home/user/static

That command is used for moving and renaming files and directories.

A simple way to rename files and folders is with the mv command (shortened from “move”). Its primary purpose is moving files and folders, but it can also rename them since the act of renaming a file is interpreted by the filesystem as moving it from one name to another.

The syntax is:

  mv (option) file1.ext file2.ext

where “file1.ext” is the “old” name of the file, and “file2.ext” the new name.

And to remove, you can use the command:

rm -f filename

Hope that helped.


Weird launcher bar/chrome bug, hard to describe I have Chrome locked to the launcher, but when I click it, it opens another icon on the launcher. When I hover over it, it says the name of one of my bookmarks. I've unlocked and locked to no avail. Screenshot here. The first Chrome icon on launcher just says Google Chrome when hovered over. In the screenshot, it still says the bookmark, so it's not changing according to what page I have open (which is ask ubuntu in the screen) I want to make the Chrome icon launch normally again. Thanks for any help.

I just solved this problem with my Chrome.

Go to ~/.local/share/applications/ there will probably be a file named google-chrome-stable.desktop. If there's not try grep -i 'one world from your bookmark name' and it should return the file containing this false launcher.

Inside this file should be a line with something like Name=Your bookmark. If so, you are safe to delete it (just in case check if you have /usr/share/applications/google-chrome.desktop on your system, otherwise you won't get any icon)

I can't see a screenshot, but I'm on mobile right now so that may not be your fault.

Close and unlock Chrome from the launcher, reboot, then open Chrome and lock it to the launcher again. That may fix your issue.


Installing Ubuntu 14.04 on Dell Inspiron 5548 I recently purchased Dell Inspiron 5548 with a pre-installed Windows 8 OEM on a HDD 1TB with Single Partition. Is it possible to install Ubutnu 14.04 on it? Is there issues related for my model for bluetooth, wifi drivers and working?

How can I partition the disk into multiple partitions so as to install Ubuntu 14.04 on separate disk partition. I don't want to remove Current Windows 8 completely ( as I need it to use softwares like Photoshop etc).

Also my laptop comes with 2GB ATI Graphics Card, will I able to get benefits/ use graphics card in Ubuntu? Do I need to install proprietary drivers in Ubuntu to use graphics card? If Yes, where can I get those drivers for ubuntu?

You can install Ubuntu "beside" your Windows installation. There will be an option to install this way. But before you install Ubuntu make sure that Windows is properly shut down. By default Windows 8 is hibernated instead.

You can use open source or proprietary video drivers. Proprietary drivers can be installed from System Settings -> Software & Updates -> Additional Drivers.

You do not need to look for the drivers elsewhere.

yes u can install it.
simple process of installing : 1) wubi
                               2) install Ubuntu in different BIOS MODE
                                  i.e other than in which windows is     installed(UEFI OR LEGACY are two BIOS MODE)


error:failure reading sector 0x33002 from hd0 I turned on the laptop and that message has shown on display .... it said

failure reading sector 0x33002 from hd0 , entering rescue mode ... grub rescue

What should I do ?
I didn't try anything because I didn't find any solution on-line .

Had an error "reading sector 0x5x220 hd0" after installing xubuntu and rebooting.

Typing "instmod normal"  and then "normal"  worked.

Edit:

After another reboot "reading error" occured...