Given that I'm in an academic environment and our institution uses WebEx, I've keeped at this problem and think I've solved it in an incredibly easy way.

My system
 - System76 galp3-pro (GalagoPro); Intel Core i7-8565U; Mesa Intel UHD Graphics 620 (WHL GT2); 32 GB RAM
 - Running Ubuntu 18.04.4 LTS AMD64 (not Pop_OS)
 - Running the latest Intel Video Drivers from GIT (https://launchpad.net/~oibaf/+archive/ubuntu/graphics-drivers)
 - Using XServer-Xorg for the session, not Wayland
 - Using UNITY 7 as window manager (from the UNITY Maintainers PPA)

Steps to get WebEx working:

Using Firefox 74.0; download USER-AGENT SWITCHER (https://mybrowseraddon.com/useragent-switcher.html) from the FF Add-Ons
Using the UAS; choose "Windows 10" as the Operating System and "Chrome" as the browser.
Navigate to WebEx Test Meeting and join a test meeting.  The WebEx website should permit the automagic downloading of the Chrome Plug-In and you should now be able to use WebEx as a native Windows10/Chrome user would.  Native microphone, sound, webcam worked.

I know it wasn't WAYLAND, but I hope this helps!


You can run the command, at least if you want to remove it completely:

sudo apt-get remove rygel

This worked for me.


I am kind of going through the same thing, but I have a Epson WF-3640. I got the printer to work using Synaptic Package Manage's print-driver-escpr and I used the Simple Scan in Ubuntu and it worked. Give that I try.


Execute command in terminal an don't wait its return

Use

firefox &

It will create firefox process in background and you can work in terminal


What is the lightest KDE I can use on Ubuntu?

I would definitely recommend installing the "kubuntu-low-fat-settings", which removes a lot from the default kubuntu-desktop installation. KDE will be much lighter after that.

However the low-fat-settings may also remove some thing which you need.

Some of which are:

Turns off compositing by default
Reduces the number of Krunner plugins loaded by default
Reduce the amount of effects used in the window decoration
Disables the automatic loading of various system modules – such as
the free space notifier, Nepomuk services, and others

See this article for more info:
http://www.omgubuntu.co.uk/2011/09/kubuntu-low-fat-settings-speed-boost-older-hardware

RAM and CPU/GPU usage will be dramatically reduced by installing this package

To install the package simply run this command:

sudo apt-get install kubuntu-low-fat-settings


Avoid initial full directory commit & rather add file to VCS just before modifying the file?

If I understand you correctly, what you want to do is possible with bazaar (and probably other version control systems). Run:

bzr init /path/to/dir
cd /path/to/dir
bzr ignore "*"
bzr ci -m "Initial commit."

This will put the directory into version control, but none of the actual files will be versionized. Later, when you want to add a specific file to the repo, run bzr add file

This is what I've done with my home directory.


Bluetooth high quality support gone in ubuntu 14.04?

It appears that it is a bug and the device was not properly set up.
After some trial of removing and re-adding the device it worked.

I had to pair the speaker with another device (I used my phone) to properly make ubuntu re-add id. I also explicitly selected that the device was an audio device when adding it.

Now I have high quality support again, it is available in the sound settings.

I don't know exactly what finally fixed the problem.


Does cuda toolkit leave its installation files behind?

Weird way to phrase this question.
apt will leave configuration files if you did not use purge when you removed it and it will also never remove personal created files. So if you created a file it will still be there.
1 dubious part of the installation from the link:
sudo mv cuda-ubuntu2004.pin /etc/apt/preferences.d/cuda-repository-pin-600

apt does not know about this command so do check if that got removed.


Unable to Install Ubuntu 15.10 on an ASUS Vivo PC due to BusyBox issues

I have the same problem. So I installed ubuntu 15.04 and found out that, after all updates, the kernel 3.19.0-43 was installed. Now the vivo doesn't boot again. I changed some boot options in the Bios and changed it again. The next boot brings me to the extended options. There I choose booting with kernel 3.18.0-12. It runs fine. In synaptic I erased all 3.19.0-43-generic. From now my vivo runs perfect. But I think you have to erase the 3.19xx kernel after every system update. There is an other item for me to use ubuntu 15.04: From 15.10 the dolphin file manager doesn't work with samba shares. Maybe it will be fixed with 16.04 or later on.


Ubuntu 12.4.1 failing in vm both Vbox and Vmware on new HP Envy 4t-1000

It sounds like you have autologin selected, and Ubuntu is trying to start Unity 3D.  All the hardware is virtualised, and the graphics does not have the 3D acceleration that Unity 3D requires.  Assuming it is crashing to a usable terminal console:

Login and then edit the lightdm.conf file:

sudo nano /etc/lightdm/lightdm.conf

Change the line ""autologin-user=username" to just "autologin-user=".  Press ctrlo to save and ctrlx to exit nano editor.  Reboot the computer

sudo reboot

and it should boot up to the lightdm login screen.  Click the Ubuntu logo on the panel next to your login name.  Select Unity 2D, then login as per usual.  If you fluff the password you'll have to select 2D again when you try again - it may default back to 3D


How to mount problematic internal hard disk using ubuntu 13.10

I/O errors (input-output) can be simply a small fault in the NTFS filesystem, or the disk itself could be damaged.
The FIRST thing to try, is either use CHKDSK /f using Windows, or try through Ubuntu with sudo ntfsfix /dev/sdXy (similar to CHKDSK but less powerful) - where "sdXy" is the partition name, for example "sdb2". you can know the name of your partition with sudo parted -l

Otherwise, if the disk might be physically damaged, you could try to manually mount the hard drive. If that doesn't work, I can indicate another way (copy the entire drive with dd, mount in loop the image, and extract readable content), which requiers a lot of : time/free space.
Manually mount your hard drive
Step 1 : create the directory
 sudo mkdir /mnt/RESCUE

Step 2 : mount the drive
sudo mount -o loop /dev/sdb2 /mnt/RESCUE

Step 3 : copy the content elsewhere
Step 4 : once you have everything you want, you use gparted to erase the disk and his partition table. I recommend creating a temporary EXT4 or FAT filesystem, and delete that before reusing the disk.


How to install Ubuntu in Microsoft Virtual PC?

From the googling I have done it would appear that Microsoft Virtual PC does not support 64-bit guests. Google: "64bit guest windows virtual machine".

Try using a different virtualization software such as VMWare.


WIFI scan without results Ubuntu 16.04 dualboot on Mac

You and I have the same wifi Card.  It is a BCM4322 pci ID 14e4:432b.

According to this chart, you can try a different driver.  I personally use sudo apt install broadcom-sta-dkms instead of bcmwl-kernel-source even though they both install wl (prop driver).

You can see from this chart our card also is partially supported by b43 which is kernel agnostic.

http://linuxwireless.org/en/users/Drivers/b43/#Supported_devices

If you are not having luck with b43, i'd suggest reinstalling bcmwl kernel source or broadcom-sta-dkms (after purging or blacklisting b43 it).

"
Here is how to switch drivers (copied from linuxwireless.org):

Switching between drivers

If you have few drivers installed, system may auto-load different driver than the one you wanted to use. Manual (un)loading drivers can be done with modprobe tool.

To unload all known drivers (you can pick only one command, if you know which driver is in use) perform:

Toggle line numbers

   1 modprobe -r b43 bcma
   2 modprobe -r brcmsmac bcma
   3 modprobe -r wl

To load specific driver use one of the following commands:

Toggle line numbers

   1 modprobe b43
   2 modprobe brcmsmac
   3 modprobe wl

It is possible to prevent system from auto-loading some drivers by blacklisting them. This can be done with the following command:

Toggle line numbers

   1 echo "blacklist drivername" >> /etc/modprobe.d/blacklist

If you plan to use wl, you should blacklist b43 and brcmsmac as well as bcma. Unfortunately wl does not use bcma bus driver, so this additional step is required. "


Why can't I kill a terminal window with xkill in Wayland?

According to a bug report and response by Jean-Batiste Lallement:

  This is a known issue with wayland documented upstream on
  https://fedoraproject.org/wiki/How_to_debug_Wayland_problems#Many_well-known_X11_utilities_don.27t_work

  Don't hesitate to file any bug you may find.

To quote Fedora documentation:

  Power users are familiar with a large range of X11-related utilities,
  like xkill, xrandr, xdotool, xsel. These tools won’t work under
  Wayland session, or will only work with XWayland applications but not
  Wayland applications. Some tools might have a replacement which allows
  to perform similar tasks.

Thus, it's a well known issue. You may want to submit a bug report (and probably it will be marked a duplicate) or wait until upstream fixes things.

For the time being, you may want to stick with the pkill or kill in terminal


As I wrote here:

For some reason the desktop file for OpenJDK is not installed, even though this file is listed.

$ apt-file list openjdk-8-jre | grep desktop
openjdk-8-jre: /usr/share/applications/openjdk-8-java.desktop
openjdk-8-jre: /usr/share/applications/openjdk-8-policytool.desktop

$ ls -l /usr/share/applications/openjdk-8-java.desktop
ls: cannot access /usr/share/applications/openjdk-8-java.desktop: No such file or directory

$ dpkg --get-selections | grep openjdk-8
openjdk-8-jre:amd64             install

Install Java with these commands, in order to get the required entry:

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

and then

sudo apt-get install oracle-java8-set-default

And in order to do things more easily, use the Minecraft Installer.

sudo add-apt-repository ppa:minecraft-installer-peeps/minecraft-installer
sudo apt-get update
sudo apt-get install minecraft-installer

Then run Minecraft from the Dash.


My Tata Photon Whiz modem is detected as storage device instead of a modem

Don't know if you got your answer, but I got a couple of these devices (was some time ago, do not remember makes/models) working OK in 11.10 and 12.04 via a script called Sakis3G.

Sakis3G knows how to switch dongles' modes (mass storeage to modem).

You can read about and get it here.

It takes care of most dongles by itself (no config needed), has a nice UI and... works. You could/should be asked for your password as some work is done as root in the script.


ClamAV : freshclam hangs and uses 100% CPU

When there is a huge daily.cdiff file, the update process might take a long time to finish.

Sometimes, it is faster to delete the old daily definitions and re-downloading them.

sudo rm /var/lib/clamav/daily.cld
sudo freshclam


Since there was a issue with both versions, I thought the best plan of action was to simply remove all version and install the one I wanted.
But after running sudo apt-get remove cmake , I've noticed the the only version removed was the "bad" version (3.10.2).
And now everything is running as it should.


How do I launch gnome-terminal inside a specified directory?

You should not put spaces before and after the = sign. The correct command is:

gnome-terminal --working-directory="$NAUTILUS_SCRIPT_CURRENT_URI"

For completeness, an alternative format is:

gnome-terminal --working-directory "$NAUTILUS_SCRIPT_CURRENT_URI"

(With a blank space instead of the = sign.)


Virtualbox stopped runnuing after new kernal install

Update Virtualbox version (https://www.virtualbox.org/wiki/Downloads) or downgrade kernel version

https://www.virtualbox.org/wiki/Changelog-6.0

  VirtualBox 6.0.14 (released October 15 2019): support Linux 5.3


LXRandR error when (un-)installing software

As far as I can see, it's just a packaging bug. Somebody munched the debian/menu file and forgot to copy it all over to lxrandr.menu.

The fourth comment gives you a way to fix this with a working menu entry. sudoedit /usr/share/menu/lxrandr and fill it with:

?package(lxrandr):needs="X11" section="Applications/System/Monitoring"\
  title="LXRandR" longtitle="LXDE monitor configuration tool"\
  description="LXRandR is a GUI application for the Lightweight X11 Desktop Environment (LXDE). It's a very basic monitor config tool utilizing the X extension called RandR to change the screen resolution on the fly."\
  command="/usr/bin/lxrandr"


Steam not starting in Ubuntu 12.04 LTS 64bit

Update -- this worked for me.  Is hopefully the interim solution:

remove proprietary video drivers
reboot
run steam, let it update
reinstall drivers
reboot

from:
http://ubuntuforums.org/showthread.php?t=2192756&p=12956602#post12956602

  Re: Starting Steam creates a seg fault
  It is known problem with steam, it happens since some time. Pretty messed thing.

  If you freshly installed steam its first run has to be done on.... gpu open source drivers, not proprietary. If you have proprietary drivers installed remove them, reboot pc, start steam, let steam to update itself, after it you can install proprietary drivers back and have steam running.


How can I use Ubuntu 12.04 server to play a repeating video loop on a connected tv?

Install ubuntu-desktop (or any other way that you are comforatble with, that gives you a working X server).

As for pushing files there is a million different ways, you could use rsync, or CIFS or AFP.

Create a service that runs constantly in the background. (I would use Python and supervisor).

This service can:

Start VLC with the --fullscreen and --loop arguments.
Use inotify to detect newly uploaded files, and restart VLC (or maybe just update a playlist?).


How do I disable Chromium icon in system tray in XFCE?

Follow the steps below.

Launch Chromium.
Go to Settings > Advanced > System (or simply type chrome://settings/system in the address bar).
Toggle the 'Continue running background apps when Chromium is closed' option off.


Login into Ubuntu One with Old email address

Your best bet would be to file a support request at:

https://one.ubuntu.com/help/contact/

Use an email address you do control in the form, but give the deleted email address in the message body so your account can be identified.  If you've got any ways to prove that you are the person who controlled that email address, that would be helpful too.

Once you are sorted out, consider adding a backup email address to your account.  The Ubuntu Single Sign On system lets you register as many email addresses as you want, and this will ensure that you can retain control of your account should one get deleted:

https://login.ubuntu.com/+emails


ubuntu 18.04.1 LTS postgres systemd service

I think I can answer my own question after some: when you create a PG cluster this way, you have to enable the service yourself: sudo systemctl enable postgresql@version-cluster name.
After that, the symlinks are created and you can manage the instance with the service file.


How to get the latest IMDbPY in 10.04 LTS

OP answered the question in a comment

  Luckily I found a 4.8.2.deb from unstable debian and I could install that. It seems to work well so far.


Gparted unalocated space: “Unable to satisfy all the constraints on the partition”

If it can be of some help for any other user:
My problem came from the Swap partition sda6. Too close from the previous one. It became "obvious" using Fixparts because the partition was omitted. So I rewrote the MBR partition without the Swap using Fixparts again. From there Gparted (v0.18.0) was back and allowed to modify the partitions


How to make Evolution mail work with my work email address?

Quoted:

Out of the box Evolution can only connect to Exchange 2000 and Exchange 2003, this is because it uses OWA to connect, when Exchange 2007 was released, the way OWA was presented changed a great deal. So if you try and connect to a newer version of Exchange it will error. (Before you email in, I know in 2010, its now called Web App not OWA).

But there's nothing to stop you connecting to Exchange 2007 and Exchange 2010 via MAPI, you just have to add a few packages first.

For complete instructions See this site

Source: petenetlive.com


Multipass on Windows & macOS only allows LTS images

I have been in contact with the devs on their IRC channel and they have confirmed that Windows and macOS currently only support LTS versions. Support for non LTS is planned for the future.


Ubuntu 16.04 and 17.10 do not perform well for me. What should I install instead?

Wait to Ubuntu 18.04 LTS and try "Minimal Installation" if you don't like it try other Linux distros.

I try diferents versions using VirtualBox, but by the moment Ubuntu is the best for me.


Not simply. UFW doesn't speak hostname, nor do the inbound packets. Everyone at that party speaks (numeric) IP addresses.

You can see one example at https://unix.stackexchange.com/questions/91701 how others taught IPTables/UFW to resolve hostnames. It's an imperfect solution, since it's certain to have periods when the hostname and IP address are out of sync. The more weffort you make to keep the two synchronized in UFW, the kess simple it gets.


IBus Pinying input works incorrectly if non-latin language installed

As a workaround I use M17N for Russian layout:

ibus engine m17n:ru:kbd

But its drawback is absence of Compose key.


How can I make F9 key to compile (in C++) in VIM?

This should be what you are looking for:

:map <F9> :!g++ %

imap is for ignoring the mapping.

Next time you ask a question please provide more details on how exactly it did not work (what output did it have when you pressed F9? did nothing happen?).


You can use AMDGPU-Pro  Driver "Beta" for Ubuntu 16.04.
From this link:

  Installing the AMD GPU-PRO Driver

  There are four simple steps involved in the installation of the AMD
  GPU-Pro Driver: Download, Extract, Install and Configure.  The
  instructions to perform the installation have been simplified and
  should take less than 10 minutes to complete.  Before installing the
  driver, a quick note on how to check if your system already has AMD
  GPU-PRO installed.

  System Check

  The easiest way to find out if you have AMD GPU-Pro already installed
  on your Ubuntu System is to query the Debian package manager.

  Using the following command at a terminal will provide you with the
  version of the AMD GPU-Pro stack on your system, or inform you that
  there are no packages found:

dpkg -l amdgpu-pro

  Download

  A direct link to download the Linux AMDGPU-PRO driver is given below
  and it is also available on the Driver Download Page. This file
  has a tar.xz extension which reflects a more-effective compression
  algorithm that (in most cases) creates a smaller archive than the more
  common gzip format.

  AMD Radeon™ Software AMD GPU-PRO Beta Driver – Linux® for Vulkan™
  Version 16.15.1013 for Ubuntu 14.04.4

  NOTE: This file can also be located via the Driver Download Page
  by locating your card and selecting the Linux Driver link.

  Extract

  After the archive is downloaded, extract the contents to a temporary
  location from which you can install it. The example below assumes you
  have downloaded the archive to /tmp and will extract to the same
  location. If your file was downloaded into the ~/Downloads/ folder
  by default, you can also extract and install from there, and
  afterwards you can remove the install files.

cd /tmp
tar -Jxvf amdgpu-pro_16.15.2-277429.tar.xz

  Install

  Once the archive is expanded on the local machine, run the included
  script (amdgpu-pro-install) to install the graphics stack.  During
  the installation you will be required to provide sudo access, and also
  to provide two confirmations to:

  Install the packages, and
  Allow installation of "unverified" packages from the AMDGPU-PRO archive.   The script will use the package manager to install the
  components of the graphics stack, with a short delay during the DKMS
  (Dynamic Kernel Module Support) installation. From the directory where
  you extracted the archive, issue the following command:

  amdgpu-pro-driver/amdgpu-pro-install

  After this you can restart your machine to launch using the new
  graphics stack.


How to sync files/data between two PCs on a home network?

For a small set of files I'd suggest Dropbox or Ubuntu One, but it seems like you want to sync your music collection between computers, and neither of these are particularly suitable for that for two reasons:

They both synchronise to the internet, meaning that large collections of files will take a long time to down- and upload
They offer a limited amount of space (with the ability to purchase more), meaning that for a large collection of files you may end up having to fork out a lot of money

Unison, which is what I use for local replication, has neither of these limitations (inherently). You can sync over your local network, meaning that it's fast (you can also sync over the internet if you wish), and can sync as much as you want — only limited by your available disc space and bandwidth. Unison has both a GUI and a terminal interface, meaning that you can use it on your desktop and server equally. There is a good guide on the Ubuntu wiki that you may wish to refer to if you choose to use Unison.


Ubuntu 12.04 won't recognize my graphics driver

Just enter

sudo apt-get install mesa-utils

and voila, it shows it as recognized.


How to get Lexmark X2600 printer to work?

For Ubuntu 32 bits

Download this file to a directory.
Unpackage the zip (unzip *.zip )
Execute the script (sudo sh *.rpm.sh)
Fill in your device ( x2600) and name it (whatever order it should be)

For Ubuntu 64 bits

For this you'll need to install the 32-bit CUPS libraries, to match the 32-bit install script.

On a terminal execute:

  sudo apt-get install libcups

Download the file from Lexmark (*.rpm.sh.zip )
Unpackage the zip (unzip *.zip )
Execute the script (sudo sh *.rpm.sh)
Fill in your device ( x2600) and name it (whatever order it should be)
Start the maintenance option when the install was finished and test the printer


Install Ubuntu Touch on Nexus 10 (Manta) Using Ubuntu 14.04

On a Nexus 10, you can use the Ubuntu Dualboot app to install it and keep Android in case something goes wrong. Hope that helped!


Reputable Linux-friendly hardware manufacturers contribute their drivers to the Linux kernel. That equipment is automatically detected and usable. Try to purchase hardware from those manufacturers with good Linux-friendly reputations.

Some manufacturers do not contribute their drivers to the Linux kernel. That equipment does not work well (or at all) in Linux. Other shady manufacturers claim Linux compatibility but require you to compile their drivers. Avoid purchasing equipment from those manufacturers.

Hold your hardware vendor responsible for compatibility. You are their customer. You paid them. Return or exchange hardware that does not work.
Improve Ubuntu by contributing your time and effort. Ubuntu is free. You are a participant, not a customer.


GNOME Ubuntu 15.04 lock screen not present

I had the same issue recently. It seems that ubuntu-gnome doesn't show the lock screen when using lightdm. I suggest that you switch to GDM . The lock screen should be available again. You can use the following command:

sudo apt-get install gdm
sudo dpkg-reconfigure gdm
sudo systemctl restart gdm

Hope this help!

itSp4x


How can I download all my files and folders in one go when using the Ubuntu One Files app for Android?

You can download all your Ubuntu One content in one go using the Android app but you'll have to do a little rearranging because you can't download the default "Ubuntu One" folder all in one go.

To achieve this, on your computer create a new folder within the default Ubuntu One folder, then cut and paste everything you wish to upload into the new folder.

Now when you launch the Android app select your Ubuntu One folder and you should see the new folder within, press and hold on this and a menu will pop-up, select Download from this menu and all of the contents of the folder will be downloaded

Note from developer: Please note that this is currently a flat, non recursive download, so it will download only files within that directory (but not child directories).


I generally also dist-upgrade by default. And when it wants to remove crazy amounts of packages, I either say no repeatedly until it comes up with a sane solution, or I switch to aptitude upgrade.

Aptitude's interactive mode can also be a handy way to get around complex conflict situations (just run aptitude to launch it.)

Sometimes apt-get comes up with better solutions by default (in apt-get one doesn't get the chance to reject solutions).


How can I edit the lightdm.conf file and save it?

You can use gedit or nano (among others) as below

sudo nano /etc/lightdm/lightdm.conf
sudo -H gedit /etc/lightdm/lightdm.conf

Then Ctrl+S for gedit or Ctrl+O for name to save your edits.

Either will do fine, the only difference is that nano is a terminal-based editor while gedit has its own GUI.


Does ubuntu come with little CMS color management system

Ubuntu comes with Little CMS officially supported since at least Ubuntu 10.04. It's installed by default in at least 13.04 (not sure about the other versions).


How do I Force my Wireless Card to use Mode 802.11n?

It's possible your signal quality is too low to support 11n communications.  11g has less throughput but more reliability than 11n.  If you were really far out of range, your machine would switch to 11b.  I have had machines that do this and I love it.  I'd rather have slow network than no network.

To fix, I'd get an external antenna for your router, one with some gain to it.  These can be had cheaply from various online retailers, including Amazon.


Okay, I think I've found the solution. Adding a sudo before rtcwake solves the problem.

I now however have following question: Why does a root's crontab need sudo to run a command. Isn't it already running under root?


The easiest solution is to use scsitools script rescan-scsi-bus.

sudo apt-get install scsitools
sudo rescan-scsi-bus

To do it without installing a utility on 14.04:

echo '1' > /sys/class/scsi_disk/0\:0\:0\:0/device/rescan

IMPORTANT: Be sure to replace the 0:0:0:0 with the appropriate disk for your purposes.


Detect HDMI connection, plugin cable after startup / reinitialize xrandr?

It seems it is easier then expected just running an script every minute with DISPLAY=:0 xrandr --auto is enough to revive it :)


Virtualbox 4.3 causing error on running any guest in 16.10

Secure boot is something new since 16.04. It's a feature to assure that no rogue software gets installed on your computer. It kind of mimics a similar thing from Windows OS. You can safely turn it off in Ubuntu, especially if you have to load custom drivers.

Boot your computer and enter the BIOS by hitting the appropriate function key (F2?) or DEL or ESC. Go to the security tab/section, and find secure boot and disable it. Exit the BIOS and reboot your computer and you should be fine. If not, you may still need to do a sudo /etc/init.d/vboxdrv setup in the terminal application.

Also note that there are newer versions of Virtualbox that you should install... v5.0 and v5.1.


Ubuntu phone, how to get an underscore on keyboard

Click the ?123 button to get the numeric keys and symbols.
Now a 1/2 button appears. Look at the minus-key. When clicking the 1/2 button, the minus-key becomes an underscore-key:


Absolutely can NOT format this sd micro card

sudo dd if=/dev/zero of=/dev/sdb bs=512 seek=1

This will erase the entire sd card. You could create a partition using fdisk

sudo fdisk /dev/sdb

Options n, p, 1 and ENTER twice and finally save the setup using w and q to quit from fdisk

mkfs.ext4 /dev/sdb1
mount /dev/sdb1 /mnt

And you should be able to play around from /mnt as your mount point


Can you try again, but replace the "get.rvm.io" part with raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer ? it's the same script, just takes out some potential DNS problems on rvm's end.


How do I turn off NotifyOSD display of music information? It distracts me from my work

In Exaile: Edit → Preferences → Plugins → Notify-osd notification, just "uncheck" everything in Display section.


x11vnc much slower than Xvnc + how to get a Xubuntu session manually

I managed to answer the Alternative part of my question, i.e. use vnc4server or tightvncserver to start a Xubuntu session instead of a plain XFCE session. This is separate from LightDM, which can then be stopped or put on manual. I'll investigate Nicholas's suggestions later.

This is equivalent to logging in via LightDM with a Xubuntu session, it remains alive if my vnc connection dies or I disconnect, and I get to enjoy the Xubuntu customizations.

To do that, make ~/.vnc/xstartup contain just the following:

#!/bin/sh
export XDG_CONFIG_DIRS=/etc/xdg/xdg-xubuntu:/etc/xdg:/etc/xdg
export XDG_DATA_DIRS=/usr/share/xubuntu:/usr/local/share/:/usr/share/:/usr/share
vncconfig -iconic &
. lightdm-session

You can replace . lightdm-session with exec startxfce4 or startxfce4 &. The former is really what LightDM calls, but it calls xfce4-session in the end.

This then starts a Xubuntu session, rather than a plain XFCE one, and you can stop LightDM altogether if X/keyboard access is not needed.

You can configure a daemon by placing the following in /etc/init/vncserver.conf:

start on runlevel [2345]
stop on runlevel [016]
post-start script
        su USER -c "vncserver :1 -geometry 1280x800 -depth 16 -localhost -SecurityTypes None"
end script
post-stop script
        su USER -c "vncserver -kill :1"
end script

Then start/stop it with start vncserver. The above is for vnc4server and will start Xvnc listening only on 127.0.0.1 and will not require a password. This is handy for me as I use an ssh tunnel anyway:

ssh -L6901:127.0.0.1:5901 USER@HOST.DOMAIN.COM

If you use tightvncserver, then delete the option -SecurityTypes None as it doesn't understand it. Note that tightvncserver always asks for a password (you can't make it passwordless).

NOTE: if USER above is not root, or if you run "vncserver :1 [options]" as non-root, then inside XFCE there will be issues sudo-ing into GUI apps because the underlying sudo-ed app will not find an X display. I haven';t yet found a fix for this. With x11vnc it works because x11vnc connects to an existing X session, including the :0 one.


I am suffering the same problems, while I have not yet solved them yet, I have narrowed down the problem.
I hope this explanation, and the technical keywords provided therein, will help more people identify what is going on.
TL;DR: On some 'modern' hardware, the BIOS no longer reports the classic "S3/suspend-to-ram" power state, in favour of a new Microsoft-only feature "modern suspend" (also known as "S0ix" or "s2idle").
Additionally: there are resume-problems within the AMDGPU graphics driver

For the first problem (missing S3-support), the only proper fix for this is that the laptop manufacturer releases an updated BIOS, that allows one to switch suspend modes between "modern Windows 10" and "classic S3". (The way Microsoft specified the modern suspend is mutually exclusive with classic deep sleep, BIOS can't advertise both at the same time)
The physical symptoms of this problem are that, upon entering suspend, your power-LED never starts blinking, it just stays on.
There are workarounds possible, by providing updated BIOS-tables during boot. However, this is a non-trivial process, that could permanently damage hardware if done wrong. (I am currently debating returning the laptop vs. trying this)

The second problem is that in some/many cases AMDGPU hangs on resume.
If your Laptop enters suspend succesfully (blinking power-LED), but the screen doesn't come back on after waking the machine, you are having this problem.
In this situation, you should still be able to SSH into the machine.
If you can SSH into the machine, the dmesg log will be flooded with dozens of errors similar to
[  746.326429] [drm:amdgpu_job_run [amdgpu]] *ERROR* Error scheduling IBs (-22)
[  746.326444] amdgpu 0000:04:00.0: couldn't schedule ib on ring <sdma0>

You can identify if missing S3-support is the problem with the following commands, which query the kernel which suspend-modes it identified during boot:
dmesg | grep -i acpi | grep supports
[    0.417055] ACPI: (supports S0)

As you can see, on my Envy x360, "S3"/suspend-to-ram is missing. (So is S4/suspend-to-disk)
cat /sys/power/mem_sleep
[s2idle]

What we are hoping for is that the "deep" entry is also present.
The [] indicate which state is default.
More information here, including workarounds that involve force-overriding your ACPI-tables at boot.

Arch forums: HP Envy x360 no S states available
[SOLVED] Lenovo X1C6 / X1Y3 (2018): No deep sleep (S3)? (same problem on ThinkPad, with detailed steps)
kernel sleep state documentation, which explains the different S-levels (S3, S4, S0)


This certainly looks like a bug as SpamapS says. Report the issue:

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

Making note of the fact that it's probably a timing issue and the wifi connection probably needs to make the rest of the networking stack wait.

You might also be interested in using network manager instead of your manual configuration. Network manager would automatically attempt a reconnect and it's what the desktop uses.

http://docs.fedoraproject.org/en-US/Fedora/13/html/User_Guide/sect-User_Guide-Connecting_to_the_Internet-NM_CLI.html


Any way to force files to inherit owner permissions from parent directory?

Linux has something known as Access Control List (ACL). This is a way to extend standard unix permissions and fine tune them. One of the advantages is that it does have inheritance. What could be done, has been referenced by a related post on serverfault, and in your particular case:

sudo setfacl -Rdm g:somegroup:rwx /path/to/parent

As for forcing the files to be owned by the same user, it has been discussed in Getting new files to inherit group permissions on Linux, however forcing the same owner on each file is far more troublesome than having the file to be forced to have same group ownership as done via setfacl. If the group has exactly the same permissions as the owner, there's no point to force the same ownership. Of course, you could always use inotifywait and trigger chown upon file creation, but that's pointless since group ownership already gives you control over the file.

See also:

Getting new files to inherit group permissions on Linux


Scalpel recovers RAR file but the recovered file is very small in size

This may be due to the inability of the recovery software,  scalpel. So its a better idea to use other recovery tools like  r-linux , photorec

R-Linux is a free file recovery utility for the Ext2/Ext3/Ext4 FS file system used in the Linux OS and several Unixes.

Which partition is used for storing recovered data from sda1?
update
It's a bad idea to recover the data to the same partiton. The golden rule is never write to a data lost partition until it is recovered. So boot into a live CD, mount the partition in RO, recover to another storage like a pen drive. If you don't have a external storage and have 1.5+ GB of RAM recover data to RAM. Ubuntu uses RAM for /tmp. If you are not sure mount some portition of the RAM at /mnt using sudo mount -t tmpfs tmpfs /mnt -o size=600M


Fogger can be installed with Launchpad repository ppa:loneowais/fogger

sudo add-apt-repository ppa:loneowais/fogger

sudo apt-get update

sudo apt-get install fogger


As software is being developed, before it is "released", the software in its unreleased or "unfinished" state may still be quite usable at any given moment in time, as devs are making changes to it and either adding features or preparing it for a future release.

A daily build usually means that some machine grabs the unreleased software every night at one particular moment in time, compiles it, and puts it up for developers to test.

Obviously, it may or may not be usable, depending on what stage of development it's at, what the release strategy for that project is, etc.  What you are testing is a snapshot of unfinished software at one moment in time.

Sometimes, the software may well be very nearly ready for release, in which case it'll often work quite well already.  If the developers have declared a "freeze" it means that they minimise changes, only fixing existing bugs.  During that stage, a nightly build of a piece of software is more likely to be quite usable since it's getting close to release time.

If you are talking about daily builds of the Live CD or a Installer CD, then these are builds made of the installation medium based based on snapshots of the current development process.  All the above applies.  These should usually work pretty well due to their release strategy, though it's not uncommon for some things to be broken.

There's no point installing any piece of software from a daily build unless you are testing features that are currently in development and not yet released, and you are willing to put up with it being a bit broken or unfinished.


Update manager won't update, Software Center will not open

OP answered in a comment

  I fixed it by sudo nano /etc/apt/sources.list.d/pmcenery-ppa-oneiric.list via terminal and taking n. out of the text


How to Have Better Intel Graphics Drivers on Macbook?

MarkKirby's proposal in Ubuntu 14.04

sudo apt-get purge linux-generic-lts-utopic xserver-xorg-lts-utopic libqt5gui5 libgles1-mesa-lts-utopic libgles2-mesa-lts-utopic libgl1-mesa-glx-lts-utopic libgl1-mesa-glx-lts-utopic:i386 libglapi-mesa-lts-utopic:i386 libegl1-mesa-drivers-lts-utopic

Attempt in Ubuntu 16.04 where I did not manage to get anything else work

sudo apt-get purge linux-generic-lts-utopic

His proposal about 15.10 drivers in 16.04 described here.


Why does the screen go dead until I press escape every time I boot up?

I don't think this is a disk encryption issue, other than that the disk encryption waits for a key to be typed. Instead, it sounds like a Plymouth (graphical bootsplash part of the system) & Graphics driver bug. Hitting ESC gets you out of the graphical boot screen to the text only one that works better with the graphics driver in use. You may want to see if you can find anything related to your brand & model of graphics card and Plymouth not showing up correctly.


Ubuntu One control panel only shows splash screen

Found the answer myself.  In case someone else gets this the problem was in the "passwords and encryption keys" wallet.

In the wallet under the "Passwords" tab there was an entry (not a folder) labeled "default."  I deleted this.  I had to reenter the key for my keyring and my mail passwords and all was fine.  It did not delete my keys for signing/encrypting mail.

Then when I clicked on the Ubuntu one icon and clicked "I have an account" I was able to enter my Ubuntu one login/password.  All is rosy now!

BTW this probably arose out out my rescuing my system some months ago.  I have the /home folder on one HDD and the rest of the system on an SSD.  I screwed up the system and reloaded it and just used the same home directory.  I cleaned up most of the mess but apparently not this one.  I had stopped using U1 and now just recently restarted using it.


I can't see install Ubuntu alongside windows 10

I have this same issue, but there is a way to do it.

I choose "something else" and manually set up the partitions and mount points, making sure I do not remove windows (If there is no free space, shrink your windows partition but it is important to note that there are some safe practices before shrinking a windows partition! Firstly Disable Hibernation File then Disable the Page File re-enable them AFTER shrinking!)

After I install Ubuntu, I am not able to boot into windows (Which is okay, there's a fix for that!)
I sign in, and run Boot Repair and then it works fine.

This only happens for me on some systems, on one system it only happened when I did not shrink my windows partition to allow space for Ubuntu first.

Good luck!


It seems the behaviour of this has been changed since the release of Maverick 10.10.

In October 2010 Maverick was released with version 0.4.7-0ubuntu2 of the indicator-sound package - this used rounded corners. Updates mean we are now on version 0.5.0.1-0ubuntu2 which doesn't use rounded corners.

So non-rounded corners is now the standard behaviour.

See also this bug report (the new design avoids the bug shown in the image below):


Modify the number of entries in the list to choose from for bookmarking a site in Firefox

I have two answers for you, although I'll admit that both miss the mark slightly.

The first is that you can get complete control by pressing CTRL + B to open the bookmarks sidebar, and the you can simply drag a tab into the folder of your choosing. By its nature this will show you all the bookmark folders you have.

The latter is that the 5 entries is probably hard-coded, after a look around about:config, however you might be able to find a firefox extension that enhances bookmark adding:

https://addons.mozilla.org/en-US/firefox/extensions/bookmarks

Good luck!


Installing Ubuntu as the primary OS on multi-boot system

Download the install file (torrent is most reliable). Then install to a USB or DVD. Finally, during the install process, choose "Install" and then "Replace # with Ubuntu".

You can find full and detail instructions from this link.


Why am I unable to "Test Drive" applications in the Software Center?

Test Drive is currently limited to only the 30 most popular applications in the Software Center (see the bottom of this post on OMG!Ubuntu!).  If you weren't looking at one of those programs in the Software Center, that would explain why there was no "Test Drive" button.


Unable to install anything due to Dependency Problem

Well, this is why you use software center or apt-get to install packages rather then dpkg. dpkg does NOT resolve dependencies.

You should NOT be downloading and installing random .deb from across the internet, use the ubuntu repositories.

See How do I install applications in Ubuntu? and https://help.ubuntu.com/community/InstallingSoftwar

To install the dependencies, run:

sudo apt-get install -f

and you should be good to go.


How to disable the update manager popup?

Disabling the popups in the configuration seems not to be possible, as told by coteyr in the comments on this page (https://askubuntu.com/a/218780/19753: "It's important to note that other then removing update-manager-core you can't really stop the popup. You can just delay it till something else runs apt-get update" – coteyr Nov 18 '12 at 9:14).

I also wanted to get rid of the popups and of the underlying program that would consume the resources of my Ubuntu 12.04 system on a weak Toshiba AC100 (ARM) -- https://answers.launchpad.net/ac100/+question/214505/.

So the simplest working solution must be removing the "update-manager" (as I've mentioned in the comments at https://unix.stackexchange.com/a/46315/4319 ).

I have had no problems after that because I could still use apt-get or synaptic to do package updates.


Not in one go, but with a small workaround:

Select the whole of your spreadsheet (e.g. by clicking in the empty square to the left of the "A" column header).
Turn on Autofilter.
From the drop down list at the top of a column, select "Empty" in each column until you end up with only empty rows.
Select and delete these.
Reset the filter.

Your non-empty lines will reappear.


You can use a tool called GDM Tweaker:

  GDM Tweaker is a very simple application that allows tweaking the GDM login screen look: change the GDM background image, hide the username list, enable Compiz and change the GDM login screen icon or GTK theme.

To install GDM Tweaker in Ubuntu 11.04:

sudo add-apt-repository ppa:madnessmike/madnessmike
sudo apt-get update
sudo apt-get install gdm-tweaker

Note: To be able to change the GDM Background / Theme you must place the images (must be only .png or .jpg) into /usr/share/backgrounds/ and the Themes into /usr/share/themes/ for GTK themes and /usr/share/icons/ for the icons.
To be able to copy the themes / backgrounds to these folders, open Nautilus as root using gksu nautilus .

Source : WebUpd8.


Remap keycodes after adding bluetooth keyboard

I solved it by modifying keyboard layout.

First I checked what symbols were used in current layouts with

$setxkbmap -print -v 10

Then modified /usr/share/X11/xkb/symbols/inet lines

    key <I180> {[XF86HomePage]};
    key <I225> {[XF86Search]};

to lines borrowed from /usr/share/X11/xkb/symbols/altwin

    key <I180> {[Alt_L, Meta_L]}; // was XF86HomePage
    key <I225> {[Alt_R,Meta_R]}; // was XF86Search
    modifier_map Mod1 {<I180>, <I225>}; // removes sticky fake alt problem

and used command

$sudo dpkg-reconfigure xkb-data

which deleted compiled keyboard layouts from /var/lib/xkb/ . same as

$sudo rm /var/lib/xkb/*.xkm

and caused them to recompile on next switch.

PS: I've found links from slm's answer helpful https://unix.stackexchange.com/questions/101410/where-do-find-information-about-xkb-symbols-i-e-dead-acute-kp-1-delete-down


Looking for CAPS LOCK/NUM LOCK and HDD activity indicators

For the caps lock and num lock you can use the Indicator-keylock package. It looks like this:

And instructions for installing are available at: http://www.webupd8.org/2010/07/indicator-keylock-displays-keyboard.html

For the hdd activity monitor you can use the system monitor applet available in the gnome-applets package. Go to preferences and choose to display disk activity.


Bidirectionally synchronize Thunderbird profiles (POP3 mail accounts) between two computers

The best you can do with pop3 for sync is to make sure that both clients don't delete messages from the server, then they can get both messages but this will obviously not change the past.

Not deleting messages will eventually end up with your mailbox being too large to use without big slowdowns and or timeouts, especially if its hosted by a third party who will have a specific resource allocations.

IMAP was invented to solve this problem and there are a variety of import tools depending on the specific servers used. Your service provider should be happier with your using IMAP because above about 6 months worth of email IMAP is more resource efficient and better supports multiple clients. I would ask them for advice as they will almost certainly have an import/export tool they have tested to work with their setup, if they don't then find a new provider that does provide them because without those tools you are effectively locked in.


In what file is the information stored when you share a folder using Locale Network Share

This sounds like a job for find and grep Here's how you can narrow down your search.

Create or modify a share in the usual way. This should look familiar:

Then immediately open a terminal and issue the command

sudo find / -cmin -1 | grep samba

This will provide a list of all the files that have changed in the past minute with the string "samba" which is what the local network share uses.

I tested this by sharing my Music folder and running the above command which resulted in the output shown.

find: `/run/user/1000/gvfs': Permission denied
/run/samba/dbwrap_watchers.tdb
/run/samba/smbXsrv_open_global.tdb
/run/samba/serverid.tdb
/run/samba/smbXsrv_tcon_global.tdb
/run/samba/smbXsrv_session_global.tdb
/run/samba/msg.lock
/var/lib/samba/private/msg.sock
/var/lib/samba/usershares
/var/lib/samba/usershares/music
/var/lib/samba/winbindd_cache.tdb

This narrows it down considerably and allowed me to answer your related question


Mouse Keys can only be disabled for current session

I managed to figure out that Mouse Keys was being re-enabled whenever I used an xset command. In my case, it was "xset led on" to turn the backlight on my keyboard on.

I managed to find a couple of scripts in the answers on this question. Most of the script is unnecessary, so it all boils down to adding the following command to your startup applications to control Mouse Keys:

gsettings set org.gnome.desktop.a11y.keyboard mousekeys-enable false

However, even in the terminal, it seems I needed to enable it first, then disable it. I've created the following startup script to solve the issue:

xset led on
gsettings set org.gnome.desktop.a11y.keyboard mousekeys-enable true
gsettings set org.gnome.desktop.a11y.keyboard mousekeys-enable false

If I need to disconnect and reconnect my keyboard, I also need to turn the backlight on manually. Running this script will set the keyboard up again without Mouse Keys interfering.


Running gradlew produces ": No such file or directory"

Seems like the line endings are not in Unix style (LF).

Open the file in vi and type set fileformat=unix.
Then save :w and try again.


What is the ~/snap folder being used for?

This directory is corresponding to $SNAP_USER_DATA for your snaps. This is where your snaps will be able to write versioned data under your user account. $HOME for your snap will be set to it as well.

You will find there:

~/snaps

<snap name>

<version 1>

data for version 1
<version 2>

data for version 2

and so on…


Where does Network Manager write connection settings for eth0?

Network Manager stores system-wide connection information in the /etc/NetworkManager/system-connections/ directory, with one file for each named connection. For eth0 it may have a default name such as Wired connection 1.


Airplane Mode doesn't turn off and there is no switch

On the Lenovo Z570 there is a switch on the front edge of the keyboard that will toggle the hard block as seen in the picture on Lenovo forums https://forums.lenovo.com/t5/Lenovo-P-Y-and-Z-series/Z570-I-can-t-turn-on-WiFi/m-p/1434903/highlight/true#M86704


Gnome Session Fallback with Compiz -> Alt Click on Panel

Enabling Compiz changes the metacity ALT+Right click option for the gnome-classic panel to a slightly different key combination.

For Gnome-Classic with Compiz the key combination is Win+ALT+Right click where Win is the windows or super key on your keyboard.

Further information can be found in:

How to revert to GNOME Classic Desktop?


The below link helped me for a solution.

https://lists.ubuntu.com/archives/upstart-devel/2009-December/001140.html

  This means that you could just do (as a file in /etc/init):

  start on stopped $JOB RESULT=failed PROCESS=respawn
  exec /sbin/reboot

  You can make that more generic if you like, a job that should cause a
  reboot when respawn fails could have (in its config file):

  env REBOOT_ON_RESPAWN_FAIL=1
  export REBOOT_ON_RESPAWN_FAIL

  Then your reboot job could match it with:

  start on stopped REBOOT_ON_RESPAWN_FAIL=1 \
      RESULT=failed PROCESS=respawn
  exec /sbin/reboot


Wallpaper flickers on external displays on 16.10

I had also the same problem on my Thinkpad x230 and external Dell U2415 monitor. I tried different things, updating drivers, switching some settings but nothing really helps.

Try to install CompizConfig Settings Manager:

sudo apt-get install compizconfig-settings-manager

and play with settings in Workarounds under Unity category. For me was helpful against any flickering - Force full screen redraws (buffer swap) on repaint.


Map your device's mouse buttons to unused mouse buttons, then use your xbindkeys to refer to those.

Use xinput list to find your device's id.
Use xinput set-button-map to remap your buttons to other mouse buttons. For example, if xinput list indicates your device's id is 15, and your device has four buttons, do xinput set-button-map 15 10 11 12 13. You've now set device 15's mouse clicks to be b:10, b:11, b:12, and b:13.
Update your .xbindkeysrc to remap those buttons to your desired shortcuts.


Is there a way to search unofficial repositories in launchpad?

The second link you gave "plasma-widget-stdin" can be found by searching in the main launchpad site by searching by package name(I was able to find it that way). The 3rd link goes to the Ubuntu launchpad website, which only searches Ubuntu packages.  I'm not sure how you ended up on the "official Ubuntu only site" but if you end up there in the future, look in the bottom left of the screen, you will see the Launchpad name and logo, it will get you to the main Launchpad website and you can search for unofficial packages there.  To go there directly, the website is :

launchpad.net

(Which I belive answers your original question, but please read on)

The ppa that you linked to appears to be no longer maintained, so I would use any packages from it with extreme caution.

If you do find a (active) ppa that contains it, you can download it by

clicking the click just above the package list "view package details"
clicking on the package name
clicking on the .deb package that matches you architecture (i386 for 32bit or amd for 64bit)

I would do this with extreme caution as well, often (but not always) the other packages that are added to the ppa are dependencies of that package that you want to add and using the new package with older dependencies can be unpredictable at best;

It may fail to install at all with the error that xx package is needed then you will have to go back to the ppa that you download the individual package from, download the package the was the dependency, try to install it, then go back again download the dependency for the dependency, then install the dependency for the dependency, then install the dependency, then install the package you wanted(this is known in the Linux world as "dependency hell" for obvious reasons, ppa are used to prevent this problem).


The wireless Xbox360 controller works in Linux, you just have to get the Xbox360 Wireless Receiver adapter (sold separately or bundle with the controller, depending on which version you pick). For USB recharging you also need the Play&Charge kit, which is sold separately, normally the controller just runs on AA batteries and can't be charged with a regular cable. Also note that Play&Charge cable is for recharging only, it doesn't transmit input data to the PC, the Wireless Receiver is always required for the wireless controller.

XboxOne controller doesn't yet support wireless communication, but that might come in the future. It can be used with a regular USB cable, but I haven't tested that myself.

PS4 controller might also be worth a look, but I don't have any personal experience with that one either.


Add the following to the configuration file at /etc/network/interfaces or create a new file in /etc/network/interfaces.d/ called eth1

auto eth1
    iface eth1 inet static
        address 10.10.0.2
        netmask 255.255.255.0
        gateway 10.10.0.100

Debian Wiki - Network configuration is a great place to read and understand how to write network configurations


Editing /etc/X11/defualt-display-manager does not work properly as you have discovered, but running the command dpkg-reconfigure gdm3 in 16.04 and later releases will cause gdm to reload its configuration upon the next reboot.

Open the terminal and run sudo dpkg-reconfigure gdm3. This will open up a new window allowing you to select either gdm or lightdm as the default login display manager.


looking at the ppa - although the package is "natty" - its only available to oneiric... looks like the development team havent yet published it for natty.

Maybe an oversight or is it deliberate?

It could be that OMG Ubuntu jumped in too fast announcing this one when the devs havent actually got a natty repo ready.

I'm not going to test this myself, but if you definitely need this version then maybe edit your sources.list for the PPA and change the source distro from natty to oneiric.

Then hit that check button in update-manager one more time.

Confirm the unity version by running

unity --version

Looking at the comments on OMG! Ubuntu - there is a comment from Jorge Castro who said that 3.8.16 is going to be available in Natty Proposed either now or very soon.  Perhaps better to wait until there is an official Repository of the Natty Desktop PPA.


Seems like the bootloader is not working.

To repair it, you can follow the guide on the official wiki
 or How to Ubuntu.


Why should I regularly run 'apt-get update' and similar commands?

On all currently supported versions of Ubuntu, we can use apt instead of apt-get. If you want to capture the output in a file, use apt-get, but otherwise use apt as its output is more readable (and who likes typing?).

sudo apt update

Downloads information from the repositories 1 APT is configured to check, and updates the dpkg database of available, installed, and uninstalled packages to reflect changes in the repositories. This means that when you query the database on your system with commands like

apt policy package-name
apt show package-name
apt search package-name

they will print accurate information, and when you run commands like

sudo apt install package-name

they will fetch the latest available version.

When you run sudo apt update you may see that some packages are upgradable, meaning new versions have been added to the repositories. Newer versions often have bug fixes and security updates, so you should install them. This can be done by upgrading all packages that have new versions available with the command

sudo apt upgrade

If the kernel was upgraded (packages like linux-image-4.15.0-20-generic) you should then run a command to remove old kernel versions (except for the second-newest which is kept as a spare, in case the new one is buggy). You can use this command:

sudo apt autoremove

to do that. This command also removed orphaned packages. These generally only exist when you use a command like

sudo apt remove package-name

and package-name has dependencies that were installed along with it automatically, but are not needed by any other package.

For autoclean, I refer you to man apt-get

autoclean (and the auto-clean alias since 1.1)
       Like clean, autoclean clears out the local repository of retrieved
       package files. The difference is that it only removes package files
       that can no longer be downloaded, and are largely useless.

The other three commands are really important and should generally be run regularly to keep the system secure and updated and avoid filling the disk with old kernel files, but you probably won't see much difference after running autoclean. The few files it might delete occasionally are unlikely to amount to much.

1These repositories are configured by default, so you usually don't need to do anything with them. They are listed in the file /etc/apt/sources.list and in files in /etc/apt/sources.list.d. APT is strict about the format of these files (for security reasons) and will throw errors if they have bad syntax. If your system has a graphical environment, it will have an option to configure repositories in settings. You need root privilege to do that job.


Installing ubuntu percise or ringtail on a toshiba sateillite l45 s4687

The best way to find out if there will be any issues is to use the Try Ubuntu without changing anything option after booting from a Live USB/DVD.

2GB RAM should be OK for Ubuntu. If not, try Lubuntu, which needs less.

The new version of Ubuntu (13.04) will come out tomorrow. It is supposed to be slightly less resource hungry than the previous version. You may want to try that.

Hope this helps


You can add an alias to .bash_profile.  You should specify a path to your client.vpn otherwise you might need to be in that folder when you execute vpn.

alias vpn="openvpn --config /home/user/openvpn/client.ovpn"

You then can create a file that contains your username and password and reference it from your client.ovpn.

First thing, create a file called credentials.txt in the same folder as your client.ovpn.

nano credentials.txt

Inside that file, store your username and password.

username
password

Save the file, then open client.ovpn and add the following directive.

auth-user-pass credentials.txt

Once again, credentials.txt needs to be in the same folder as client.opvn as it's going to look there for that file.


Juju support for Google Compute Engine GCE

(This answer is incomplete and ongoing)

Support for GCE is currently in progress. Right now the target is March during one of the stable releases.

Currently bootstrap and deploy have been successful:

https://lists.ubuntu.com/archives/juju-dev/2015-January/004059.html

If you want to follow along I recommend scanning the mailing list as the developers will keep posting progress:

https://lists.ubuntu.com/archives/juju-dev/


How to force "archive manager" (file-roller) to use all cpu cores?

I've been trying to find an answer to this question myself, and I can report a partial success: p7zip, while not maxing out all cores, seems to make quite a bit of use of more than one, at least while compressing. On my dual-core system, it just about maxes out both cores, and on a family member's quad-core, it maxes out one core and runs the other three at about half load, varying between 30% and 80% or so. Extraction seems not to be multi-threaded at all, though, as it maxes out one core and the rest idle along.

I've tried installing various of the multi-core capable compressors and creating links to them from /usr/bin, but file roller ignored them. All I could find in my research is a hint on some german forum (if the goog's translation is accurate) that there are apparently hard-coded paths in the file-roller source, so it was suggested to replace the original binaries in /bin with links to the (theoretically command-line-compatible) multi-core replacements like pigz, but I haven't felt daring enough to try that yet myself.


I believe it won't work if you home directory is encrypted.

Unencrypt Home Directory

Autologin disabled


How can I delete my older versions of Ubuntu?

The bootloader shows "Older Versions of Ubuntu" this means older Kernel version actually, you can use programs like  Ubuntu Tweak  that let you run a janitor thruought your system and delete innecesary files such as older kernel versions

You can also use Synaptic Package Manager to do that, here  Nixie Pixel  explains it all in a cool little video :)


Wubi does not come as an .iso file but as a windows executable (.exe).

Since you said "It does not download the ISO image file" I presume you did not download wubi but the release file in an .iso to be burnt to a CD or USB. You can download wubi directly from here.

The .exe file will guide you through the installation process and all you will have to do is restart your computer and select Ubuntu from the boot menu. However notice that Wubi installs Ubuntu inside your existing windows partition and not in a separate one. To have more control of your Ubuntu system I recommend installing it directly from the .iso file. In case you do not know how to burn an .iso to a USB or CD, follow these tutorials:

-> 4 ways to create bootable USB drives in Windows, Linux & Mac

-> Burn a CD or DVD from an .iso file

Then all you will have to do is restart your computer and select the USB/CD from the boot process screen.


no gnome-do package for ubuntu(studio) 20.04 LTS. Options?

If you really need this application, then you can grab its packages from 18.04 LTS repository directly:
cd ~/Downloads
wget -c http://archive.ubuntu.com/ubuntu/pool/main/g/glibc/multiarch-support_2.27-3ubuntu1.4_amd64.deb
wget -c http://archive.ubuntu.com/ubuntu/pool/universe/libg/libgnome-keyring/libgnome-keyring-common_3.12.0-1build1_all.deb
wget -c http://archive.ubuntu.com/ubuntu/pool/universe/libg/libgnome-keyring/libgnome-keyring0_3.12.0-1build1_amd64.deb
wget -c http://archive.ubuntu.com/ubuntu/pool/universe/g/gnome-sharp2/libgconf2.0-cil_2.24.2-4_all.deb
wget -c http://archive.ubuntu.com/ubuntu/pool/main/g/gnome-desktop3/libgnome-desktop-3-17_3.28.2-0ubuntu1.5_amd64.deb
wget -c http://archive.ubuntu.com/ubuntu/pool/universe/g/gnome-keyring-sharp/libgnome-keyring1.0-cil_1.0.0-5_amd64.deb
wget -c http://archive.ubuntu.com/ubuntu/pool/universe/g/gnome-do/gnome-do_0.95.3-5ubuntu1_amd64.deb

sudo apt-get install ./gnome-do_0.95.3-5ubuntu1_amd64.deb ./libgconf2.0-cil_2.24.2-4_all.deb ./libgnome-desktop-3-17_3.28.2-0ubuntu1.5_amd64.deb ./libgnome-keyring1.0-cil_1.0.0-5_amd64.deb ./libgnome-keyring0_3.12.0-1build1_amd64.deb ./multiarch-support_2.27-3ubuntu1.4_amd64.deb ./libgnome-keyring-common_3.12.0-1build1_all.deb

and then use GNOME Do.


Grep: The asterisk (*) doesn't always work

An asterisk in regular expressions means "match the preceding element 0 or more times".

In your particular case with grep 'This*String' file.txt, you are trying to say, "hey, grep, match me the word Thi, followed by lowercase s zero or more times, followed by the word String". The lowercase s is nowhere to be found in Example, hence grep ignores ThisExampleString.

In the case of grep '*String' file.txt, you are saying "grep, match me the empty string--literally nothing--preceding the word String". Of course, that's not how ThisExampleString is supposed to be read. (There are other possible meanings--you can try this with and without the -E flag--but none of the meanings are anything like what you really want here.)

Knowing that . means "any single character", we could do this: grep 'This.*String' file.txt. Now the grep command will read it correctly: This followed by any character (think of it as selection of ASCII characters) repeated any number of times, followed by String.


Search for all files with a .sql extension in folders and sub folders

Or...

find $directory_name -name \*.sql

For example

find / -name \*.sql

Or

find ~ \*.sql

(where ~ equates to /home/your_username/), or...

find /usr/local/share/ \*.sql

and so forth.


How to configure setting of phppgadmin with xampp and postgresql 9.5?

uncomment these line in /opt/lampp/etc/php.ini

extension=php_pdo_pgsql.dll

extension=php_pgsql.dll

extension="pgsql.so"

then restart xampp service with

sudo /opt/lampp/lampp restart


How do you Identify apps or procs that create large tmp files?

Some spontaneous ideas how to track the origin of those files:

Look at the names of the temporary files. Many programs choose names that allow you to infer their origin.
Look for processes with open references to them with fuser(1) or lsof(8).
Look for suspicious log entries around the last time of modification of the large temporary files either in the system logs or logs of applications you suspect.


Unstable Wifi on Thinkpad X250, Ubuntu 14.04, Intel Corp. Wireless 7265

It is definitely the driver. It seems it has some issues with keeping a solid connection to wifi  (802.11)

You can check if this solution will help it will reset after a reboot.

Reload the iwlwifi kernel module with option 11n_disable set to 1, in order to disable 802.11N, e.g. by

sudo sh -c 'modprobe -r iwlwifi && modprobe iwlwifi 11n_disable=1'

If this helped your connection you can make it last permanently disabling 802.11N in the driver, add the line

options iwlwifi 11n_disable=1

to

/etc/modprobe.d/iwlwifi.conf

or issue the following bash command, that does the above automatically. You will be asked for your sudo password as we are modifying a system file.

sudo sh -c 'echo "options iwlwifi 11n_disable=1" >> /etc/modprobe.d/iwlwifi.conf'


How to enable fullscreen mode for linux distros in virtualbox?

If you want to add a custom resolution you can use cvt and xrandr to add and select it.
For example:
Get a modeline:
$ cvt 1920 1080
# 1920x1080 59.96 Hz (CVT 2.07M9) hsync: 67.16 kHz; pclk: 173.00 MHz
Modeline "1920x1080_60.00"  173.00  1920 2048 2248 2576  1080 1083 1088 1120 -hsync +vsync

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

Get the correct monitor name:
$ xrandr --listmonitors
Monitors: 1
 0: +*HDMI-1 1280/376x1024/301+0+0  HDMI-1

Add the new mode to the monitor:
$ xrandr --addmode HDMI-1 "1920x1080_60.00"

Select the new mode.
$ xrandr --output HDMI-1 --mode "1920x1080_60.00"

(You can use xrandr -s 1920x1080 too)
(You have to run xrandr --newmode ..., xrandr --addmode ... and xrandr --output ... --mode ... every time you login)
(This doesn't work on Wayland)


FGLRX doesn't show in Additional Drivers

Maybe because they are not installed? I have these drivers in Additional Driver application.

You can just install fglrx package using some package manager or just type in console:

sudo apt-get install fglrx

If you want use the newest version of these driver you have to also add PPA repository:

sudo add-apt-repository ppa:ubuntu-x-swat/x-updates


Login options don't appear on Ubuntu 18.04, instead I get logged in automatically

Open Settings -> Details -> Users -> Press the unlock icon in the title bar (it looks like a padlock) and authenticate with your user password to make changes -> toggle Automatic Login from ON to OFF. If there are multiple users on your system, then you also need to select the User to disable its automatic login.


I would do this...It will block all traffic to a port except from your ip.

iptables -A INPUT -p tcp --dport 8000 -s 192.168.1.1 -j ACCEPT
iptables -A INPUT -p tcp --dport 8000 -j DROP

Where 8000 is the nx port and
192.168.1.1 is your ip address.


Ubuntu LTS 18.04 cannot connect VGA monitor

Got monitors to work finally. Opened a terminal and plugged in second monitor. While both screens were blank, typed the following:

xrandr --output VGA-1 --auto --right-of LVDS-1

Hit enter and both monitors worked.


ubuntu 12.04 does support's drivers for hcl pdc laptop or should need to search and download it from internet

I`m going to out on a limb here, and say that you will be safe installing Ubuntu on your system.  I have installed Ubuntu on many different systems from a PIII system to Core i7, with different hardware configuration, and had no problem whatsoever.  So I say go ahead, and welcome to Ubuntu :)


I removed myself from sudo group while installing xampp after following instructions

Try to switch to TTY by pressing Ctrl+Alt+F1
Apply following commands:
1. logout
2. 'Login as root'
3. Enter your root password
4. Edit the sudoer file with visudo
5. Logout
6. Login as your user
7. Try out if can apply sudo command


Auto-open Newly Saved Image File from Scanner via Terminal Commands

Open the latest file inside a directory with its default application

The script below will open the latest file inside your ~/Pictures directory. Independently to how the file is named, or when the script is run.

Of course you can set any other directory to use, or any application to open the file.

The script

#!/usr/bin/env python3
import subprocess
import os
from operator import itemgetter

dr = os.path.join(os.environ["HOME"], "Pictures")
files = [os.path.join(dr, f) for f in os.listdir(dr)]
latest = sorted([[f, os.path.getmtime(f)] for f in files], key=itemgetter(1))[-1][0]
subprocess.Popen(["xdg-open", latest])

To use

Copy the script into an empty file, save it as open_latest.py
Run it:

python3 /path/to/open_latest.py

and the latest file will be opened by its default application.

Notes

To use another directory, change the line

dr = os.path.join(os.environ["HOME"], "Afbeeldingen")

into e.g.

dr = "/path/to/dir"

but don't use paths like $HOME, which do not work in python
To use a specific application instead of the default one, change the line:

subprocess.Popen(["xdg-open", latest])

into e.g.

subprocess.Popen(["eog", latest])

Explanation

The script:

defines the Pictures directory inside your $HOME directory:

dr = os.path.join(os.environ["HOME"], "Pictures")

lists the files:

files = [os.path.join(dr, f) for f in os.listdir(dr)]

sorts the files by modification date (os.path.getmtime(f)), get the latest:

latest = sorted([[f, os.path.getmtime(f)] for f in files], key=itemgetter(1))[-1][0]

open the file with its default application:

subprocess.Popen(["eog", latest])


Why did all my gedit plugins croak on 13.10 (and how do I fix them)?

Any plug-ins written in Python 2.x for GEdit, will need to be ported to work with Python 3.x, to work in GEdit on Ubuntu 13.10 or newer.

If they are from a package in the Ubuntu archive, you should file a bug against that package. If you are installing them from an upstream source into ~/.local/share/gedit/plugins/ then you should contact the upstream developers of the plug-ins to get them ported to Python 3.x.

I don't know of a specific guide to porting plug-ins for GEdit to Python 3.x, but any general guide to porting from Python 2.x to Python 3.x should help. Ideally, the plug-ins should work with either one, but the design of the plug-ins system used by GEdit and several other GNOME applications does not allow plug-in authors to do that easily. The 2to3 script should give some hints about what to change in the plug-in code, and the python-six library can be used for compatibility between both versions.


How do I install the new Nvidia driver after purging to fix login loop?

Start Software Updater from the Administration section.

Select the settings option.
Select Additional drivers.
Select the appropriate Nvidia driver.
Apply changes.


I have lost my ethernet connection since resetting powerline plugs

You should turn off auto-negotiation on the machine and fix the network speed to the highest level that the Network Interface Card (NIC) can sustain on your powerline adapter.

Start with 10Mbps, half duplex and work upwards to 10Mbps FD, 100Mbps HD, ... until the problem starts.  Then go down one notch and leave it at that speed.

First, install ethtool (if already installed you will just get a warning that the latest version is already installed)

sudo apt-get install ethtool

Now:

Type the following command (and test them one by one)

sudo ethtool --change eth0 speed xxx duplex yyy autoneg off

where xxx = 10, 100 or 1000 and yyy = half or full.

So start with 10 half, 10 full, 100 half, ...
Do an ifconfig to check whether you got an IP address.
Go back to 1 until it stops working and use the previous values that still worked to:
To make the change permanent, execute the following command:

sudo nano /etc/network/interfaces

and type at the pre-up section:

pre-up /usr/sbin/ethtool --change eth0 speed xxx duplex yyy autoneg off


Can I access the originating $USER variable from within a script run with `sudo`?

Use the SUDO_USER environment variable instead of USER.

sudo places the name of the user who ran it in the SUDO_USER environment variable:

ek@Io:~$ sudo sh -c 'echo $USER'
[sudo] password for ek:
root
ek@Io:~$ sudo sh -c 'echo $SUDO_USER'
ek

So you can simply replace $USER with $SUDO_USER in your script:

echo $SUDO_USER

Further Reading

man sudo, in the section on "ENVIRONMENT":

SUDO_USER        Set to the login name of the user who invoked sudo.

The manpage also describes some other related environment variables defined by sudo that may come in handy, such as SUDO_UID and SUDO_GID
Getting $USER inside shell script when running with sudo?


DraftSight is the only application I know of at that level and even then, I'm certain it's not as thorough as some of the features in some of the AutoCad versions.

However, it is monetarily free (on all platforms) so that might be a swaying factor.


command 'gedit' is available in /usr/bin/gedit '

The error message has the answer. Gedit is not in your PATH

Specify the full path:

/usr/bin/gedit ~/.bashrc

or better, add the path to your PATH:

export PATH=$PATH:/usr/bin
gedit ~/.bashrc

or better, for a permanent fix, see How to Add a Directory to my Path

But /usr/bin should be in your path already so your system seems broken... What did you do before this happened?


There is no vim update package yet on distro version you mention. You can disable modeline by doing :set modeline once you open vim also use the securemodeline plugin or download and compile vim from the github repo, this bug was fixed 19 days ago.


I could not spare any more time trying to repair my upgrade so I deja duped my home folder and anything else I needed to a external drive and did a fresh install. Thanks anyway, and I will certainly use the links provided above in the future.


Cannot Dual-boot ubuntu 20.10 on nvme SSD

Sorry dude I can't find specifics on it, But I think it might of been a problem I encountered when trying to format .and partition my windows 10 drive is I remember right. It wasn't allowing me to do it. I remember it taking me like 2 days of ok it failed, oh have to adjust another setting not mentioned. Sorry I'm not more help. I've tried looking it up.


Downgrade to tmux 2.1 on Ubuntu 20.04 LTS

You are trying to install five year old software, that version is in 16.04, it will never work. As has been suggested a virtual machine is your best option for this, either that or run modern versions of the software.
https://packages.ubuntu.com/search?keywords=tmux+&searchon=names&suite=all&section=all


This is because echo $string doesn't simply print the value of string; it first perform a split+glob operation - one of the consequences of which is that leading whitespace is elided:

$ string=$(iwconfig wls1 | grep Signal)
$ echo $string
Link Quality=38/70 Signal level=-72 dBm

whereas

$ echo "$string"
          Link Quality=38/70  Signal level=-72 dBm

We can see that there is a sequence of whitespace characters at the start of $string - in fact there are more than 5, so removing 5 still leaves a string with leading whitespace, which an unquoted substring expansion (${string:5}) also elides:

$ echo "${string:5}"
     Link Quality=38/70  Signal level=-72 dBm
$ echo ${string:5}
Link Quality=38/70 Signal level=-72 dBm

For additional discussion see:

When is double-quoting necessary?
Why does my shell script choke on whitespace or other special characters?


VirtualBox: Ubuntu guest can't connect to Internet

You may need to include your DNS entries, manually.  Try adding this line to your configuration.  Note that these DNS servers are Google's, and will not be able to provide DNS for your local LAN, but will provide DNS for accessing sites on the Internet..

dns-nameservers 8.8.8.8 8.8.4.4

Reference: https://www.swiftstack.com/docs/install/configure_networking.html


Why won't chmod +s allow me to do stuff in root's stead?

I came across this situation some weeks back and found this in the course of my research.  Perhaps it will help you as well.

https://superuser.com/a/636800


Ubuntu+bazaar, update openerp through command line

The following commands can be used:

bzr patch <patch_filename_or_url>
patch <patch_filename_or_url>

First one worked for me.


gedit 3 regex search replace plugin port

The plugin system of gedit changed between version 2 and 3.

You will not be able to install the old version of the plugin, and as long as you don't show your modifications, error messages and all, you will not be able to get a good answer.

If you want to change the plugin yourself, you can look at the plugin-writing-guide for gedit3.


How to set the screen resolution in Ubuntu 16.04 64 bit running under VMware workstation 12 player on a Windows 7 host?

I wrote here before, a clean install of ubuntu has no problem with resolution. But after that I found the solution while I was looking for an answer for another problem.

Follow the steps below and everything will be fixed. If you have the latest VMware Tools and open-vm-tools is not install, the skip to step 3.

1) sudo apt-get autoremove open-vm-tools

2) Install VMware Tools by following the usual method (Virtual Machine --> Reinstall VMWare Tools)

3) Reboot the VM

4) sudo apt-get install open-vm-tools-desktop

5) Reboot the VM.

Hope this helps. I know how frustrating it is to try and fix this.


How to install Yubikey personalization tool on Ubuntu

This is the official PPA, open a terminal and run

sudo add-apt-repository ppa:yubico/stable
sudo apt-get update
sudo apt-get install yubikey-personalization yubikey-personalization-gui

To enable use without sudo (e.g. Google Chrome), update udev rules:

cd /etc/udev/rules.d/
sudo wget https://raw.githubusercontent.com/Yubico/libu2f-host/master/70-u2f.rules
sudo service udev restart


How to download entire shared folder on Ubuntu One

There is no way to download an entire folder that has been shared to you, from the web site. You need to install the client application, and subscribe to the shared folder, so that it is synchronized to your computer.


Copying file seems just fine only to find it's corrupt later

There are a lot of possibilities.

It could be that the USB drive is failing.  This can happen if it's been used a lot.

Removing the USB drive without unmounting it first could also cause data corruption.  To unmount from nautilus, click on the eject button next to the USB drive.  Unmounting ensures that all data has actually been written to the USB disk.

You can verify that the file has been copied successfully using md5sum.  To do this, open a terminal and type in

md5sum path/to/original.file /media/user/disk/copied.file

where path/to/original.file is the file you copied, and /media/user/disk/copied.file is the copy on your USB.  You should see two lines such as

b42a1f78f6cecf01ef8f65c77f5b6006  original.file
b42a1f78f6cecf01ef8f65c77f5b6006  /media/user/disk/copied.file

If the two number on the left match (as in this case), you can be pretty sure that the file has been copied successfully.  Just in case, if it's very important, I would unmount the USB drive, pull it out, then plug it back in, before using md5sum.


I have sound, but volume bar is "inactive" and I can't use volume shortcuts

Try killing and restarting pulseaudio, do some /tmp cleaning too.
Open terminal and type switch to root using "sudo su" and then do the following:

killall pulseaudio -KILL

rm -rf /tmp/pulse-*

Exit root by pressing CTRL+D and restart pulseaudio by typing: pulseaudio -D


Is there a way to turn a VirtualBox image into an .iso?

I think you'd be able to use Remastersys inside of a virtual machine to make an installer for that system.


Snap Firefox can't access to disks in /mnt; Repository Firefox doesn't have bookmark toolbar

Your first issue is a duplicate of this question and you can mark yourself as affected by this bug.

To fix your second issue, run the command sudo snap connect firefox:removable-media, GNOME Software in Ubuntu 18.04 supports doing this from the app, rather than via Terminal, but this will have to do for now!

If you feel this is a feature that users should have by default, you could file an auto-connection request tagging @osomon for confirmation that this is a good idea :)


Installed Ubuntu 14.04 - cannot connect to internet with wired or wireless connection

Going on assumption that you're plugged into a router that gives out IPs automatically (DHCP), try sudo dhclient -r then sudo dhclient eth0 if successful try ping 8.8.8.8 post results if it didn't work


Edit:

Okay, from what you have listed, the problem appears to be your file /etc/NetworkManager/NetworkManager.conf. Open a terminal and execute the following commands:

sudo nano /etc/NetworkManager/NetworkManager.conf

Make sure the file says the following, nothing more and nothing less:

[main]
plugins=ifupdown,keyfile

[ifupdown]
managed=false

Then, press CTRL + o to save the file and press CTRL + x to exit the file.

Also, edit /etc/network/interfaces:

sudo nano /etc/network/interfaces

and make sure that file has only these contents:

auto lo
iface lo inet loopback

Again, press CTRL + o to save the file and press CTRL + x to exit the file.

Finally, execute the following commands and then connect the ethernet cable and it should automatically detect and switch to the wired connection:

sudo service network-manager restart

To explain: You do not want the network as "managed" because you want to use "auto" instead. Also, you had the default device set to wireless for some reason. Both of those together along with the "no-auto-..." flag basically disabled your auto ethernet.

Normally, however, when the system has a wired and a wireless connection, the wired connection will always be favored and used even when they are both connected because eth0 should be the default device by default.

First:

Unplug in your ethernet cable and run the following commands from an open terminal:

sudo mkdir /etc/NetworkManager/connections-backup
sudo mv /etc/NetworkManager/system-connections/* /etc/NetworkManager/connections-backup

sudo service network-manager restart

Plug the ethernet cable in. Click on the network-manager icon on your desktop panel to open the dropdown menu. Then, click on "Auto eth0"

If you see some message similar to "device is not managed" or "device is managed" please let me know and I'll post instructions on how to get around that.

If the network doesn't come up like it's supposed to after plugging in the ethernet cable, run the following command to refresh network-manager:

sudo service network-manager restart

Or, run these commands to unload and reload the driver:

sudo modprobe -r b44
sudo modprobe b44

If it says that b44 is in use, run

lsmod | grep b44

and it should show what module is using b44. Use

sudo modprobe -r

followed by the module name you wish to disable before pressing enter.

Then, use

sudo modprobe b44

to load the driver again.

Make sure your firewall is not blocking ports 67, 68, or 53 (dhcp, dhcp, and dns respectively). If you have not done anything to explicitly block these ports they are most likely not blocked as you would've had to have set a rule yourself to block them.


Error in installing Steam on ubuntu 15.04

Short version:

Start steam in the terminal using:

LD_PRELOAD='/usr/$LIB/libstdc++.so.6' DISPLAY=:0 steam

instead of just steam

Long version:

Steam can’t open nouveau_dri.so, the shared library responsible for communicating with the graphics driver. To check if the driver is OpenGL enabled run:

DISPLAY=:0 glxinfo | grep -i direct

The output should be:

direct rendering: Yes

Running steam in debug mode:

DISPLAY=:0 LIBGL_DEBUG=verbose steam

Gives us the output where the following lines gives us hint:

libGL: OpenDriver: trying /usr/lib/i386-linux-gnu/dri/nouveau_dri.so
libGL: dlopen /usr/lib/i386-linux-gnu/dri/nouveau_dri.so failed (/home/user/.local/share/Steam/ubuntu12_32/steam-runtime/i386/usr/lib/i386-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.20' not found (required by /usr/lib/i386-linux-gnu/dri/nouveau_dri.so))

It seems that steam uses different version of libstdc++.so.6. Lets check which version steam uses:

ls -l ~/.local/share/Steam/ubuntu12_32/steam-runtime/i386/usr/lib/i386-linux-gnu/libstdc++.so.6

lrwxrwxrwx 1 user user 19 Jul 18  2014 /home/user/.local/share/Steam/ubuntu12_32/steam-runtime/i386/usr/lib/i386-linux-gnu/libstdc++.so.6 -> libstdc++.so.6.0.18

So Steam loaded LibC6 with ABI version 18 where driver expects version 20.The solution is to tell OS to preload the proper LibC6 version using
LD_PRELOAD variable:

LD_PRELOAD='/usr/$LIB/libstdc++.so.6' DISPLAY=:0 steam

The somewhat non-intuitive $LIB parameter gets expanded in ld.so to the right path based on the platform of the process being started (man 8 ld.so for details).

You can create script with the following content to run it instead of steam:

#!/bin/bash
# Export so all child processes are affected as well
export LD_PRELOAD='/usr/$LIB/libstdc++.so.6'
export DISPLAY=:0
#export LIBGL_DEBUG=verbose
steam

A better script could check if the global LibC6 version is newer than the one in STEAM_RUNTIME and only then LD_PRELOAD’s.

More details can be found on here. Note that I tested it on Debian and now it has been tested on Ubuntu vivid 15.04 and works fine.


System does not boot after setting Display Name for main root partition

The solution is to do the opposite of what you expect.

The toggle for Auto-mount in Disks is broken. For some reason on is off and off is on. As you can see here is my auto-mount options for an NTFS partition. Note that it's set to OFF

But it appears labelled properly in nautilus under devices with the display name of fubar and is accessible

I've opened a bug that you and other affected users can subscribe to here

A also recommend you change the options in your fstab for your root partition to

/               ext4    errors=remount-ro 0       1

You may also find this helpful.


How should I move / from my HDD to a new SSD and keep /home on the HDD

I will update my answer as this seems to be confusing for both sides.

If I'm getting you right your old system is on HDD and the SSD is empty. If your backup or better yet your home folder is still there, you could simply attach the old rootfs of the hdd as the mount point /home on the new system on the ssd.

This sounds quite odd but should def. work, because the new system sees the full path of the partition to your data or old home like this /home/home/yourolduseraccount

You can then just copy or extract the data from
/home/home/yourolduseraccount to /home/newuser.

The rest of the old system if it is still there can be deleted, all other folders, files etc.

I hope this is understandable.

And this is important, hence I searched for a picture

Here you choose / (root file system) and swap for your ssd and /home for your hdd (which is the old system). the names should be similar to /dev/sda and /dev/sdb. There might be more then one partition on your HDD, make sure to pick the right one. The OLD root / partition should be the largest one on the hdd.

Choose filesystem ext4 for the partitions / and /home and swap for swap.

DO BE CAREFUL - there is an option asking you if the partitions should be formatted. Make sure to look if the checkbox for /home is unchecked or otherwise your HDD will be formated, and that's what you don't want to happen

FRIENDLY ADVICE - even if you don't want to, BACKUP your data or be prepared to loose it.

The bootloader can be kept with root, so choose the sdd as target

And at this point the confusion started with the both of us ^^

Once you have done all this and have your new system, you can reinstall anytime you want and start with a fresh ubuntu, if something goes wrong, because you have /home as an extra mount point and the data is untouched.

I hope this is understandable?


BURG is a one-man fork of GRUB.  GRUB is the primary project with an active development community.  I don't intend to ever switch Ubuntu to BURG; I would rather focus on improving GRUB.

Look at the commit activity of the two projects (quickest way: bzr log lp:burg vs. bzr log lp:grub/grub2).  BURG has only had five commits in the last six months - to all intents and purposes, it's moribund.  Over the same time period, GRUB has had just over five hundred commits.

BURG did some useful things with themes, although GRUB has most of that - it just doesn't ship them by default, which IIRC was due to licensing problems.  BURG supported a different installation mode which helped some people, but now that GRUB has Reed-Solomon encoding and the ability to skip certain sectors in the boot track this shouldn't generally be needed.  There are a handful of other small improvements.  None of them justify losing the fantastic GRUB community.

Incidentally, I'd thoroughly encourage reporting the reasons you feel BURG is superior to GRUB as bugs on GRUB.


How do I produce great quality AAC files under Xenial Xerus?

Under Xenial Xerus the best choice is to use fdkaac:

sudo apt-get install fdkaac

Then the following syntax should be helpful, all examples are for Constant Bitrate Mode (CBR) although I have included a section at the bottom concerning Variable Bitrate Mode (VBR):

1. AAC-LC

For a single file try this:

fdkaac --bitrate 128k --moov-before-mdat --afterburner 1 -o output.m4a input.wav

and for a directory of wav files try the following:

mkdir aac && \
for j in *.wav
do
fdkaac --bitrate 128k --moov-before-mdat --afterburner 1 -o aac/"${j%.wav}.m4a" "$j"
done

Tested and working well on my system.

2. HE-AAC

For a single file try this:

fdkaac -p 5 --bitrate 64k --moov-before-mdat --afterburner 1 -o output.m4a input.wav

and for a directory of wav files try the following:

mkdir aac && \
for j in *.wav
do
fdkaac -p 5 --bitrate 64k --moov-before-mdat --afterburner 1 -o aac/"${j%.wav}.m4a" "$j"
done

Tested and working well on my system.

3. AAC-HEv2

For a single file try this:

fdkaac -p 29 --bitrate 32k --moov-before-mdat --afterburner 1 -o output.m4a input.wav

and for a directory of wav files try the following:

mkdir aac && \
for j in *.wav
do
fdkaac -p 29 --bitrate 32k --moov-before-mdat --afterburner 1 -o aac/"${j%.wav}.m4a" "$j"
done

Tested and working well on my system.

4. VBR Note:

If you wish to use Variable Bitrate (VBR) mode instead of Constant Bitrate (CBR) simply omit the --bitrate setting and use --bitrate-mode instead. bitrate-mode takes a setting from 1 to 5 with a higher value producing a higher bitrate.

Further Reading:

Hydrogen Audio: Fraunhofer FDK AAC
abcde: Encoding with fdkaac
GitHub: fdkaac


Wireless router crashes when connecting from Ubuntu only

I have solved this issue now.

I first installed the WICD Network Manager and uninstalled the Network Manager delivered with Ubuntu. After setting up the connection I haven't had any errors since then (1 Week).


Running script at shutdown and reboot to prevent Chromium session loss

The issue is your script is running later than it should.

By the time the script runs, the display manager has already died and taken Chromium with it.

You need to have your script run at logout vice shutdown.

Edit: On GDM3, you can try /etc/gdm3/PostSession/Default


The main binary will always be in the bin folder (hence the name bin(ary) :P). The program shouldn't need to be installed. Just double-click on the main binary or run

./nameofbinary

in the bin folder.


Does BIOS device whitelist affect Ubuntu?

BIOS whitelists are OS independent.A VM will not change that as it just uses the BIOS you have.


For what it’s worth, running the following seems to fix the issue:
pulseaudio -k

As to why, I have no idea.
From pulseaudio man page:

-k | --kill: Kill an already running PulseAudio daemon of the calling user (Equivalent to sending a SIGTERM).

Edit: This works reliably for me. Whenever this issue comes up, I run this command to fix it.


Do I need to install MAAS in order to install OpenStack on a single server?

The guide you are referring to is for setting up a production or PoC instance. MAAS is only needed if you are going to provision multiple physical servers.

For a single-node scenario, check out Adam's guide at http://astokes.org/ubuntu-openstack-installer/ for a very simple walkthrough of the installation.


This is completely normal. Since you've activated the gnome3-team PPA, you have the latest version of Nautilus which follows GNOME 3 human interface guidelines (more information here and here).

To access the application menu, clic on the application name on the top bar.

You will see the same behaviour with other GNOME 3 software like Epiphany (Web), Empathy or Boxes for example.

I suggest you learn how to use this new version of Nautilus. But if you can't stand it anymore, you can go back to the previous version by purging the gnome3-team PPA (be careful, this will affect every other software provided by the PPA) :

sudo apt-get install ppa-purge
sudo ppa-purge ppa:<nom_du_dépôt>


You cannot add yourself to /etc/sudoers file from your own account if you do not currently have privleges to edit it.
Since you have the root password you can use the following command:
su root

It will prompt your for a password where you should enter the root user's password to login as root. Now you are root user and you should be able to make any changes to the machine you like.
Remember to run
exit
when you are done to prevent yourself from doing any unintentional harm to the computer. This will log you out as root.
EDIT:
Clarification on su usage on Stormlord's comment. By default running su will log you in as root user. su can be used to login as any other user in your system if you provide the name of that user as argument to su


If you have enough extra space, you can combine the files. Either add the second part to the first:

cat < Backup-LUN-backup-backupStorage.001 >> Backup-LUN-backup-backupStorage.000

Or create a new image from both, if you 1290 GB of free space:

cat Backup-LUN-backup-backupStorage.00{0,1} > Backup-LUN-backup-backupStorage

Then it's not very difficult to mount, given the fdisk output in your question:

sudo mount -o offset=$((512*63)) Backup-LUN-backup-backupStorage.000 /some/path

Where:

Replace Backup-LUN-backup-backupStorage.000 with whatever the name of the final image is (Backup-LUN-backup-backupStorage if you made a new image, for example)
63 is the starting sector of the first partition, as seen in the fdisk output
512 is the sector size in bytes, also given in the fdisk output.
You might have to specify the filesystem type using -t, it's not clear from the fdisk output which one it ism exactly.


What program to install for DVD viewing on Ubuntu

I would recommend for VLC Media Player or Totem Media Player.

Please check it out for further analysis:

http://howtoubuntu.org/how-to-play-a-dvd-in-ubuntu


PCI/internal sound card not detected on Dell E7470

Just got the same laptop and immediately upgraded to Zesty and I lost sound.

What finally worked for me (after a long night with tens of cold reboots) is adding the following in /etc/modprobe.d/alsa-base.conf:

options snd-hda-intel model=auto

What didn't work for me was:

# no card: options snd-hda-intel model=dell-headset-multi
# no card: options snd-hda-intel model=dell-m22
# no card: options snd-hda-intel model=dell-laptop
# no sound: options snd-hda-intel model=generic
# no card: options snd-hda-intel model=generic probe_mask=1 power_save=0 power_save_controller=N
# no card: options snd-hda-intel model=generic probe_mask=1 power_save=0
# no card: options snd-hda-intel model=generic probe_mask=1 power_save=0
# no card: options snd-hda-intel model=generic probe_mask=1
# no sound: options snd-hda-intel model=generic power_save=0
# no card: options snd-hda-intel model=generic power_save=0 power_save_controller=N

I'm now left with an annoying inconvenience that pulseaudio is dead when first logging in. After running it, the working option is setting "analog output" in the device selection tab. I hope to sort this out soon too.


After adding a disk ubuntu wont start normally (sdasdb)

What is in your fstab file?
You can check it using

sudo nano /etc/fstab

(you can replace nano with gedit, or any other text editor)

Each line should start with UUID=xxxx and you shouldn't see any reference to /dev/sda or /dev/sdb

If you need to know the UUID, run this command to list them

blkid