Ubuntu software center opening issue on 16.04 LTS

Try this:

wget -P Downloads/ https://www.thefanclub.co.za/sites/default/files/public/downloads/whatsapp-webapp_1.0_all.deb
sudo dpkg -i ~/Downloads/whatsapp-webapp_1.0_all.deb

The problem cannot access archieve: No such file or directory indicate that the .deb file may not exist on your working directory, above command will download whatsapp-webapp_1.0_all.deb to ~/Downloads, then we'll use dpkg for install whatsapp-webapp_1.0_all.deb.


I fixed the issue by using the boot-repair tool. I found that I needed to add another partition 1M and flag it with a grub flag and boot-repair resolved the issue.


How can I use a 2.6.36 kernel in Maverick?

The backports kernels are only officially available for the previous LTS release; currently this is Lucid (10.04 LTS).  Maverick (10.10) is not an LTS and therefore will not receive backported kernels.

Backports of the as yet unreleased development release are built and made available in the kernel team PPA to allow testing.  Again these are made available for Lucid (10.04 LTS) only.  It is expected that people on a non-LTS release will be able to update to the next release once it is finalised and released formally.


If there is no forwarder, your server queries the DNS root servers directly.

What you want to do is to disable recursive queries so that your server will refuse to answer queries about domains other than the ones it is in charge of. This is the default behaviour in recent versions of BIND, but usually it is overridden with something like

allow-recursion { myservers; myclients; };

to allow trusted clients to perform recursive queries. Just modify it accordingly.


Those two commands will solve your problem, open a terminal (ctrl+alt+t) and copy&paste (ctrl+shift+v to paste in terminal) them in:

mv ~/.local/share/Steam/ubuntu12_32/steam-runtime/amd64/lib/x86_64-linux-gnu/libpcre.so.3{,.disable}
mv ~/.local/share/Steam/ubuntu12_32/steam-runtime/amd64/lib/x86_64-linux-gnu/libpcre.so.3.12.1{,.disable}

As for your dota 2 problem try if those two lines fix it for you:

mv ~/.local/share/Steam/ubuntu12_32/steam-runtime/i386/lib/i386-linux-gnu/libgcc_s.so.1{,.disable}
mv ~/.local/share/Steam/ubuntu12_32/steam-runtime/i386/usr/lib/i386-linux-gnu/libstdc++.so.6{,.disable}


Running crontab -e edits users' crontabs (rather than the system crontab /etc/crontab). If you run sudo crontab -e, this edits the root account's user crontab (which is not the same as /etc/crontab). The root account's user crontab is usable, but is often not what system administrators wish to edit.

When you run crontab -e, the crontab utility copies the particular user-specific crontab file being edited to a temporary file. This is the intended and correct behavior. Assuming you make changes to the temporary file in the editor, crontab then automatically writes those changes back to the crontab file after you finish editing.

Braiam has explained some details as to why and how this is done in "Cron, crontab -e reads the wrong file" on Unix.SE:

  That's the default behavior. crontab -e would copy the crontab
  file to the temporary directory, then use the editor listed in
  VISUAL or EDITOR environment variables to open this file, when saving,
  it would then try to copy the file to the original location. This is
  an atomic operation.

  The reasons behind this are varied, from preventing two users to edit
  the same file at the same time to have a sanity/syntax check before
  writing the original file.

  Ah, the crontab -e also do not trim the file in any way, unless you
  use Debian.

The screenshot in your question shows something very much like this, which is the default commented text of a user crontab in Ubuntu:

# Edit this file to introduce tasks to be run by cron.
#
# Each task to run has to be defined through a single line
# indicating with different fields when the task will be run
# and what command to run for the task
#
# To define the time you can provide concrete values for
# minute (m), hour (h), day of month (dom), month (mon),
# and day of week (dow) or use '*' in these fields (for 'any').#
# Notice that tasks will be started based on the cron's system
# daemon's notion of time and timezones.
#
# Output of the crontab jobs (including errors) is sent through
# email to the user the crontab file belongs to (unless redirected).
#
# For example, you can run a backup of all your user accounts
# at 5 a.m every week with:
# 0 5 * * 1 tar -zcf /var/backups/home.tgz /home/
#
# For more information see the manual pages of crontab(5) and cron(8)
#
# m h  dom mon dow   command

In contrast, a default system crontab (/etc/crontab) in Ubuntu looks like this:

# /etc/crontab: system-wide crontab
# Unlike any other crontab you don't have to run the `crontab'
# command to install the new version when you edit this file
# and files in /etc/cron.d. These files also have username fields,
# that none of the other crontabs do.

SHELL=/bin/sh
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin

# m h dom mon dow user  command
17 *    * * *   root    cd / && run-parts --report /etc/cron.hourly
25 6    * * *   root    test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.daily )
47 6    * * 7   root    test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.weekly )
52 6    1 * *   root    test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.monthly )
#

As siloko explains in "Crontab -e opens new file each time I run it," and as discussed in the default system crontab's leading comments (shown above), one way the systemwide crontab /etc/crontab differs from the per-user crontabs is that each entry contains a field that specifies what user runs the command. The example above has root for each of the three commands, but you can cause commands to be run as other users by specifying their usernames in that field.

Although I cannot be sure, my guess is that your are trying to edit the system crontab rather than root's (or anyone else's) user crontab.

Further reading:

man 5 crontab and CronHowTo describe how to write crontab files.
How do I set up a Cron job? shows several ways to schedule system and user tasks with cron.


take a look on How to configure pxelinux.cfg/default properly in order to install Ubuntu from network?

After change "NBD boot"  for "NFS boot" in pxelinux.cfg/default/ltsp ,  it works for me.

1. Install nfs-kernel-server

 https://www.digitalocean.com/community/tutorials/how-to-set-up-an-nfs-mount-on-ubuntu-16-04

2. Add follow line in /etc/exports:

 /opt/ltsp/i386/ 192.168.0.0/255.255.255.0(ro,no_root_squash)

Note: Change 192.168.0.0/255.255.255.0 by your Network addr

3. Change update-kernels.conf and run "sudo service ltsp-update-kernels" ( the pxe files are regenerated)

On the file /etc/ltsp/update-kernels.conf , change the line BOOT_METHODS for

BOOT_METHODS="NFS"

and the line TIMEOUT for

TIMEOUT=120

4. Configure pxe files

On the /var/liv/tftpboot/ltsp/i386/pxelinux.cfg/ltsp

a)change line "default ltsp-NBD"

default ltsp-NFS

b) on the section "label ltsp-NFS"

change string "boot=nbd" for
   boot=nfs
change the string "root=/dev/nbd0" for "root=/dev/nfs"

and add at the end of line :

nfsroot=192.168.0.1:/opt/ltsp/i386

(Note: change 192.168.0.1 by your server IP addr )

Ref How to configure pxelinux.cfg/default properly in order to install Ubuntu from network?


Updating Nvidia drivers on Casper-RW Partitioned USB prevents boot?

When booting a persistent USB drive, the standard video drivers are loaded before the casper-rw file or folder.

If casper-rw contains Nvidia drivers, they end up in conflict with the video drivers already loaded.

You should do a Full install to USB if you want to use Nvidia drivers.


It's case sensitive.

If your picture is called a.JPG you need to write exactly that in your HTML

<img src="a.JPG" alt = "Al Sheik" width="300px" height="300px" />


There are many recommended solutions. Most of those weren't working for me.

There was one solution which worked. Here are the steps:

You can install ifupdown-extra in Ubuntu.

sudo apt install ifupdown-extra

Then go to /etc/network/network-routes. Here we can add our static route.

The syntax is explained in network-routes file itself. Route added like this will persist on reboots.


My laptop wont boot in either windows 7 or ubuntu 13.04 after dual-boot installation

When I did a dual-boot install of Ubuntu 12.10 it insisted that my options were to
either wipe the XP install and install on the internal drive, or it would set up
the dual-boot install on my USB hard drive, so I let it do the second option.

I then found that (suspect) the grub loader startup was very dependent on the USB
devices enumerating exactly as they were when it installed.  If there was any change
to the USB lineup, e.g. a thumbdrive plugged into the USB hub, the system was dead,
but put it back like it was at install and all was good.

The symptom sounds kinda' like yours, tho' I'm not sure your linux partition is on
a USB device.  I'm thinking not?  Thought I'd toss it out.

Benton 1may30

Epilogue: a month later my XP install became unbootable for reasons unknown, but I
was able to mount the NTFS drive with Linux and copy everything I wanted off to
another drive, then re-ran the install, this time wiping XP.  XP's going EOLife in
a year, didn't seem worth trying to recover it...


How to avoid messages from applications which I ran with a &?

You can redirect the output to a file or to nowhere.

Using output redirection > you can redirect stdout and/or stderr away from the terminal.

To redirect stdout and stderr to a file use &> log.txt.

If you just want output to go way use &> /dev/null.

So you new command would be dolphin . &> /dev/null &

&> redirects all output

use > or 1> to redirect stdout only

use 2> to redirect stderr only

Note: if you want to append to a file rather than overwrite it use >> in place of >.


According to the excerpt below from the default settings.py of papercut (found at http://src.gnu-darwin.org/ports/news/papercut/work/papercut-0.9.13/settings.py.html ), you are likely to find the log file (if any) at /usr/local/share/papercut/logs/papercut.log .

# full path for where Papercut will store the log file
log_path = "/usr/local/share/papercut/logs/"
# the actual log filename
log_file = log_path + "papercut.log"


[OPTION 1]

In Ubuntu 16.04 following trick worked.

Try via ppa:jonathonf/vim

sudo add-apt-repository ppa:jonathonf/vim
sudo apt update
sudo apt install vim

Check vim version with following command.

vim -version

[OPTION 2]

But for 16.10, build from git source will be a solution as your link describe.

[OPTION 3]

Another option. Download binaries and install with dpkg manually. When I install vim, its dependency vim-common, vim-runtime, xxd and vim-tiny are also installed. Following commands will be install vim and those dependencies. Commands should be run one by one.

xxd

wget http://ppa.launchpad.net/jonathonf/vim/ubuntu/pool/main/v/vim/xxd_8.0.0206-0york1~16.04_amd64.deb
sudo dpkg -i xxd_8.0.0206-0york1~16.04_amd64.deb

vim-common

wget http://ppa.launchpad.net/jonathonf/vim/ubuntu/pool/main/v/vim/vim-common_8.0.0206-0york1~16.04_all.deb
sudo dpkg -i vim-common_8.0.0206-0york1~16.04_all.deb

vim-runtime

wget http://ppa.launchpad.net/jonathonf/vim/ubuntu/pool/main/v/vim/vim-runtime_8.0.0206-0york1~16.04_all.deb
sudo dpkg -i vim-runtime_8.0.0206-0york1~16.04_all.deb

vim

wget http://ppa.launchpad.net/jonathonf/vim/ubuntu/pool/main/v/vim/vim_8.0.0206-0york1~16.04_amd64.deb
sudo dpkg -i vim_8.0.0206-0york1~16.04_amd64.deb

vim-tiny

wget http://ppa.launchpad.net/jonathonf/vim/ubuntu/pool/main/v/vim/vim-tiny_8.0.0206-0york1~16.04_amd64.deb
sudo dpkg -i vim-tiny_8.0.0206-0york1~16.04_amd64.deb

[OPTION 4]

As @CelticWarrior's suggestion, we can also try with apt-add-repository.

sudo add-apt-repository "deb http://ppa.launchpad.net/jonathonf/vim/ubuntu xenial main"
sudo add-apt-repository "deb-src http://ppa.launchpad.net/jonathonf/vim/ubuntu xenial main"

After adding repository with xenial source.

sudo apt update
sudo apt install vim


A alternative to install pairtaghighlighter for geany 1.23.21

This has nothing to do with the sed -i 's/1.24/1.23/' wscript.

This is an error message from Git. You start the command git clone https://github.com/geany/geany-plugins.git several times. Then Git complains.

Example:

$ git clone https://github.com/geany/geany-plugins.git

Cloning into 'geany-plugins'...
remote: Counting objects: 15302, done.
remote: Compressing objects: 100% (15/15), done.
remote: Total 15302 (delta 1), reused 0 (delta 0), pack-reused 15287
Receiving objects: 100% (15302/15302), 14.59 MiB | 1.17 MiB/s, done.
Resolving deltas: 100% (8708/8708), done.
Checking connectivity... done.

$ git clone https://github.com/geany/geany-plugins.git

fatal: destination path 'geany-plugins' already exists and is not an empty directory.

Install the gtk2 development library:

sudo apt-get install libgtk2.0-dev

and again:

./waf configure --enable-plugins=pairtaghighlighter


Custom DE. cairo-dock and Pcmanfm reset on logout?

The answer was originally posted in Revision #2 of the question. For more details, see revision history.

Changed the permissions of ~/.config/cairo-dock and for PcManFm, I stopped using it and switched to nautilus


Display application icon in the title bar

I see now it was a metacity related question. I added
<icon x="(width - title_width) / 2 - mini_icon_width - 7" y="(height - title_height) / 2 " width="mini_icon_width" height="mini_icon_height" />
to the <draw_ops> respective tag in the metacity file theme and it did what I wanted.


Looking for a countdown app where I can set value in days

You can use Screenlets:

sudo apt-get install screenlets screenlets-pack-all


Juju bootstrap fails with dns resolution issues

You might probably be running into DNS issues.

Refer the following link:

https://github.com/puppetlabs/puppetlabs-openstack/issues/235

https://github.com/Ubuntu-Solutions-Engineering/openstack-installer/issues/883


Why is Ubuntu running very slowly on my laptop?

Enter the following command into a terminal window

sudo apt-get install hardinfo

This will allow you to at least review your hardware devices, however I'd like to point out that your hardware specs should be more than sufficient to be able to run Ubuntu (pretty much any version) without that kind of delay.  Run hardinfo after installation, as that's a pretty good comparable 'Device Manager' application

Can you update/edit your original question with the version of Ubuntu you've installed, and if you see anything out of the ordinary when you are idle?  Try running top and see if anything is hogging your system's resources.  Alternatively, use the Desktop Search tool for "System Monitor" and observe that at idle for a bit also.

Generally, you're heading in the right direction by wanting to investigate your hardware first.


The desktop environment in that image, which you probably found in this answer, is Unity 5 (which was the Ubuntu 11.04 version) that had a smaller dash icon, as you can see in this image:

The highlight color was changed from the default orange to a light blue with a tool like ccsm or ubuntu-tweak-tool. Both of these can be found on the Ubuntu Software Center.

Also, a metacity (window decoration) metalic-looking theme has been installed. The buttons are the default unity ones.


Mouse double click is not opening data files with the correct application

To set the application that opens by default for a file in Ubuntu 12.04, right-click on the file, choose Properties, click the Open With tab, and select your preferred application. If your preferred application is not listed, click the Show other applications button.

Your question was hard for me to understand. I hope I gave you the information you need.


Wireless not connecting on Ubuntu 13.10, Toshiba Satellite pro L 650

Please try:

sudo apt-get purge bcmwl-kernel-source
sudo modprobe -rv wl
sudo modprobe -v brcmsmac

if there are any errors please continue with the commands then reboot. If you have not installed any other drivers but the wl driver then your wireless should be working.


How do I test the translations I am making for 12.04?

On each translation page you will have a "Download translation" link.

Click that link and you will be asked about the download format.
Choose "MO format" and click "Request Download" button.

A link to the translation file will be send over email in about one or two hours.

For Romanian translations of Jokey, it will look like:
http://launchpadlibrarian.net/37938137/ro_LC_MESSAGES_jockey.mo
Download the file and copy it over the existent Jockey translation file from your system.
The filename will give you a clue about where to copy the new MO file.

sudo cp ro_LC_MESSAGES_jockey.mo /usr/share/locale-langpack/ro/LC_MESSAGES/jockey.mo

Source: https://answers.launchpad.net/ubuntu-translations/+faq/907


How to install Ubuntu on an Acer with preinstalled Windows 10 Home

Detailed steps I used to successfully install:

Create a boot USB with the Ubuntu image file using Rufus as detailed here:
https://www.ubuntu.com/download/desktop/create-a-usb-stick-on-windows

Insert USB in the forward left hand side USB connector
(the USB connector on the right side of the computer will not work)

Reboot the computer and access the BIOS with F2:

Use arrow keys to navigate to BOOT screen
Select Secure Boot and change value to disable
On the Boot priority order move USB-HDD to the top
F10 to save and exit

Proceed with the installation type of choice.

After the installation has completed, and is prompting you to restart:

Remove the USB drive
(on reboot) Access the BIOS again  with F2
On the BIOS page Select an UEFI file as trusted for executing
Navigate to: HDD0 > EFI > 'ubuntu' and select SHIMX64.EFI
(Enter shimx64 as name)
Navigate to the BOOT tab:
Select Secure boot, change value to Enabled
F10 to save and exit

I followed these exact steps, installed without errors, and am using Ubuntu on
my Acer V3 now.


Websites inaccessible due to DNS errors after System Update on 17.10, except with `dnssec=off`

I'm suspecting this may have something to do with your network adapter, or adapter driver. I'm running Ubuntu 17.10 on a number of VMs and also as the main host operating system on my HP Spectre X360 laptop. I also teach cyber security to about 30 students, each of which use a number of Ubuntu virtual machines on VMWare and Virtual Box, as well as a handful who run it natively on their hardware. None of them have encountered this issue either.

If you're using a laptop, sometimes it can be difficult to replace the network adapter, but you may have better luck going back to an older version of the driver.

Sorry, but it seems like it may be a bit of a sticky situation :-/

Edit: adding extra information

I really mean the adapter driver more likely is the culprit and it's just an educated guess. After the OS (along with applications sitting on top of it) packages up a request, it passes it to the TCP-IP stack, which perform the DNS lookup and send it on its way. It sounds like this is where the transaction is breaking down.

It COULD be caused by some software on your system, like a proxy, or even something evil like a keylogger or trojan, but my first guess would be the network adapter driver.

As far as DNSSEC is concerned, I wouldn't turn it off. That prevents DNS cache poisoning attacks. That's what made me think virus or trojan.

It's possible that something wants your DNSSEC turned off, but it's too obtuse of an error to be an effective attack. If it were a virus, then it seems to me that it wuold just turn off DNSSEC itself, rather than creating a weird problem that requires googling in order to determine that disabling DNSSEC in a text file is a valid work-around. Seems like that is expecting way too much from the average user, who is the target of viruses.

Additionally, you said you had performed a clean install and then the problem came back after an update, which points away from a virus, and indicates the network adapter/driver combo.


sudo service transmission-daemon stop is the way to go.


Ubuntu Server 14 MySql php connect problem

To display errors in your PHP environment, enter this line at the top of your config file - preferably before any code is run.

ini_set('display_errors',1);

To hide the errors, like when you go live, change the 1 to 0.

In case of this error Fatal error: Call to undefined function mysql_connect() in /var/www/html/Typit/Login.php just install the php5-mysql module using this command:

sudo apt-get install php5-mysql

Note:

  The mysql_connect() extension is deprecated as of PHP 5.5.0, and will be removed in the future. Instead, the MySQLi or PDO_MySQL extension should be used.

Source: http://www.php.net//manual/en/function.mysql-connect.php


How do I set Ubuntu to unlock screensaver with Yubikey

On ubuntu 18.04 + Unity7 I need to add:

auth       sufficient   pam_u2f.so

before

@include common-auth

in file /etc/pam.d/unity

to be able to unlock screen either by password or yubikey, when my ubikey is inserted - this is not exactly what I expected. I want to insert my ubikey to see authentication query and then do authentication. Also after authentication succeeded I need to click on "Unlock" button which not seems to be neccessary.

Second part is to lock screen after pulling yubikey out. To catch pulling out my yubikey I need to create file /etc/udev/rules.d/95-yubikey-screen-lock.rules with content:

ACTION=="remove", SUBSYSTEM=="usb", ENV{PRODUCT}=="1050/120/502", RUN+="/tmp/test.sh"

and use command to have OS use it:

sudo udevadm control --reload

ENV{PRODUCT} value can be get by running

sudo udevadm monitor --kernel --property --subsystem-match=usb | grep PRODUCT

and pulling yubikey out of USB.

/tmp/test.sh script contains:

su - lmlich -c "gnome-screensaver-command -l"

which will be run as root and it will run command to lock screen in my distro as user lmlich (that's me in OS).

And that will do it.

When combined however, after pulling out yubikey, lock screen show password challenge. When I enter wrong password I can authenticate using yubikey.

It's a solution, but not good solution.


Since you no longer need the windows partition I recomend you first run

sudo apt install gparted -y && sudo gparted

and in this application make sure you no longer have any remnants of windows partitions.

If you find any delete them and then stretch your current ext4 patition to take all of the created space.

(make sure you keep the ~500Mb EFI partition (probably labeled as fat32), this one is the one your ubuntu has it's grub on)

then once you've applied all your changes, you may close out of gparted and run :

sudo add-apt-repository -y ppa:yannubuntu/boot-repair && sudo apt update && sudo apt install -y boot-repair boot-info

this should reconfigure your grub. you may have to alter boot priority one last time although I doubt it.

tell me if this is a detailed enough answer for you or if you need more simple instructions.


There two ways to setup MBlaze USB Modem in Ubuntu:

Using driver software which included in the modem itself.
(Recommended)
And without any driver software.

Using recommended driver software

The modem itself contains the driver software for both RPM and DEB based GNULinux distros, Mac OS and Windows. From these, we Ubuntu users, have to install CrossPlatformUI-V2.1.2-SSTL-i386-ubuntu.deb package. If you are using 32 bit Ubuntu then it is not going to be a big headache. Just install it after connecting the USB Modem. But, if you have 64 bit Ubuntu then this one is not going to work as it is build for 32 bit systems only. For that we need to re-build this 32 bit only into 64 bit also driver software.

For Non-advanced users

If you are not familiar with executing commands in terminal or do not want to spend your valuable time, simply download the package provided below which we had re-built ourselves.

Download CrossPlatformUI-V2.1.2-SSTL-ALL-ubuntu.deb

And install this after connecting the modem. It will work for sure because we are using it right now.

For Advanced users

First we need to install Dpkg. Dpkg is a terminal based application
that help to install, remove, unpack, build the *.deb package files.
To install Dpkg, connect to Internet and execute sudo apt-get
install dpkg in terminal.
Extract CrossPlatformUI-V2.1.2-SSTL-i386-ubuntu.deb file.
Open extracted directory->DEBIAN and open control file in a text
editor.
Now replace the Architecture from i386 to all.
Save the file and close it.
In terminal, execute sudo dpkg -b <extracted directory name> <deb
filename>
For example, sudo dpkg -b CrossPlatformUI-V2.1.2-SSTL-i386-ubuntu CrossPlatformUI-V2.1.2-SSTL-ALL-ubuntu.deb

You may now find a new CrossPlatformUI-V2.1.2-SSTL-All-ubuntu.deb file has built along with the extracted directory. This is the same one which we have provided above to download. Install this driver package after connecting the USB Modem.

And remember, you can also use this package for any other Ubuntu based distros.

Without any driver software

MTS MBlaze USB Modem also can be used without installing driver software since latest version of Ubuntu (or any other GNULinux distro) support this modem by default. It should be at least 10.04 or greater version of Ubuntu.

Connect the modem with the PC. The system will detect the device
automatically.
Look out for the notification saying Device recognized USB Modem,
ONDA Communication S.p.A., then click on the icon of Network
Connections in system tray.
You will find an option New Mobile Broadband (CDMA) Connection,
click on it.
A new window will open to setup a mobile broadband connection. Click
Forward button
Select India as country, then Forward,
Select MTS MBlaze from the providers’ list, Forward,
And then click Apply,
Now Disconnect the connection which is trying to connect
automatically. Because it is not going work until we provide
username and password.
Open Edit Connections->Mobile Broadband (Tab)->Select MTS MBlaze
Connection and click on Edit.
Under Mobile Broadband, type internet@internet.mtsindia.in as
 username and MTS as password.
Check Available to all users and Connect automatically if you want.
Save it and close Network Connections.
Now take off the modem from the port and reconnect it.
After the modem get recognised by the system, try to connect
 Internet.
If everything goes right, you will see that your Internet
 connection will get connected.

Happy Browsing. :)

Source: How to setup MTS MBlaze USB Modem in Ubuntu GNULinux


For some reason I can't seem to access my shared folder created on ubuntu virtualbox

Add user to vboxsf group.

sudo usermod -G vboxsf -a <username>

Make sure to log out. When you log back in

~$ id
... 999(vboxsf)

if you see this, you should have access to your shared folder.


Problem with booting after using boot-repair

You try to repair a broken system that is EFI with a boot from a BIOS disk this never works. In addition the sdb5 is not of the type EFI System Partition thus will never be used as such. It is way to small at 1M to be of any use as the EFI partition, the good news is you have a 500MB + partition where it should be at the start of the drive (sdb1) that can be re-purposed for the use as this partition.
First step is to boot with your windows media and do a repair of the bootloader files for it. Having removed the connection to the useless sda drive so it cannot in any way interfere in the process. You also need to have went into your firmware to make it a EFI only boot by using that setting disabling the CSM.
With your installer disk/usb now booted in EFI mode for certain. You first in Terminal do the following, sudo gdisk /dev/sda as the only disk in the system will be the one we need to work on with no power going to the former sda. When in there t then enter key, 1 then enter key, to select the first partition, next ef00 then enter key, for the new type of partition this will once the w then enter key is used to write the configuration to the disk, changing the partition to what we need. All that is left is a sudo mkfs.vfat /dev/sda1 to format the partition as fat a requirement of the EFI boot specification.
Now when you run the boot-repair it should be in the proper mode and finding the proper setup for an EFI booting machine. If it is still not liking it then a  sudo mount /dev/sda1 /boot/efi before it runs should give it no choice but to find that and use it as the partition needed. If the install disk/usb has that already mounted then umount /boot/efi then the previous command to mount that one in its place.


Ubuntu doesn't come up after installation

It can be caused for two different things:

One is that if you edited partitions, maybe you installed Ubuntu in a non-bootable partition. Then you will need to reinstall Ubuntu and make sure it's installed in a primary partition and that it's able to boot from there.

Other thing that can cause that is currupted .iso file of the Ubuntu Live CD/USB, so you will have to download it again and reinstall Ubuntu from the new .iso you've downloaded.


How do I define Wacom Bamboo P&T area boundaries?

Not sure if any of this will help, anyway here it goes. On my Wacom Intuos 2 I can change some properties such as the usable area via xinput, some examples commands would be (in this case from changing to a 16:10 aspect ratio):

xinput list
xinput list-props "Wacom Intuos2 6x8"
xinput set-int-prop "Wacom Intuos2 6x8" "Wacom Tablet Area" 32 0 1770 20320 14470

Maybe some of those props will help you with your problem.


You can easily create desktop icon for your app. Follow these steps:

Open your terminal and execute:

sudo apt  install --no-install-recommends gnome-panel

gnome-desktop-item-edit ~/Desktop/ --create-new

Enter type, name, path to the application binary executable and optional comment. New desktop shortcut has now been created.

Double-click on the the new shortcut and select Trust and Launch. Set icon by right-click on the new desktop shortcut, selecting Properties. Next, click on the shortcut icon and choose path desired icon.


Nvidia Driver Install Error - "Kernel module failed to build."

With a passmark of 22, you're better off ditching the card entirely and moving to a low-end version of Ubuntu like Lubuntu as you will have virtually no benefits of installing such an old driver with such an old card.

Sorry to be the harbinger of bad news... :-(


How can I install my Lexmark Z25 printer?

From http://www.lexmark.com/publications/pdfs/z25-z35/eng/enoglinx.pdf:

Printing from a software application

From the File menu, choose Print. The Print dialog box opens.
Select your printer from the list of installed printers.
If the software application does not offer a list of printers, but provides a place to enter your printer name, type: lpr -Plexmarkz25-z35.
Click Enter.


You cannot run 2 different drivers at the same time, which is what your system is trying to do. If you have not installed a dedicated graphics card from NVIDIA,you cannot use the NVIDIA driver!  The 2 drivers that you have installed will fight each other. In other words, you have to remove the NVIDIA driver completly using one of these commands in a terminal [sudo apt-get purge nvidia-current] or [sudo apt-get remove nvidia-current-updates] or [sudo apt-get remove --purge nvidia-*] depending on what kind of machine you are using, laptop, desktop,ect., you can copy and paste these commands into a terminal, BUT do not copy the symbol [ or ] in the command line I only used them for seperation. After removing everything to do with NVIDIA, shut down and reboot system. when you restart, your system will be operating using only the INTEL driver:-) If you do have a dedicated NVIDIA graphics card installed, the above commands should still be used, so that you can do a fresh install of NVIDIA driver through (software & updates--additional drivers box) , the UBUNTU recomended driver is not always the driver that will work best, case in point, I am using UBUNTU 14.10 and UBUNTU 15.04 and the driver they recomend is version 340.46, but I have to use version 331.104 for everything to work correctly :-)  If at any time you change driver being used, you need to follow above commands and purge all remains of previous driver, and then install your new driver, once new driver is installed, shutdown and restart. Most but not all systems disables intel driver automaticly when a dedicated graphics card is installed so you might check your BIOS at startup and make sure it is disabled if you are running a dedicated NVIDIA graphics card.  Happy UBUNTUING:-)


Upstart not executing the exec function in upstart.conf

Try removing the expect daemon line from your upstart conf file.

I know it's supposed to be there according to the docs, but from my recent experience with python daemons (I'm currently using this one), the fork count isn't incremented from python and so it will just hang.


Cannot properly boot into Ubuntu after installation of Nvidia driver

I had a similar problem. Solved like this:

Boot as normal and get to login screen
press Ctrl + Alt + F1
Login with your username and password.
type sudo stop lightdm and press enter, stops X11
type sudo apt-get purge nvidia* and press enter -clears all nvidia items
type sudo apt-get install xserver-xorg-video-nouveau and press enter- will install this package or tell you if it is already there.
type sudo reboot

this got me back up and running (although no icons in unity launcher - since need correct graphic drivers) check system settings to search for Additional drivers to see if this cab be addressed - although adding wrong drivers may cause the system to be faulty or freeze after login.


Losing Wireless connection or very slow connection

My wireless bluetooth mouse was causing some kind of interference, when I removed it everything works as expected. Problem solved.


Mysql not working properly in Ubuntu 14.04

Try these commands:

sudo apt-get update
sudo apt-get upgrade
sudo apt-get install mysql-server

If that fails run:

sudo apt-get remove mysql*
sudo apt-get install mysql-server


Same thing happened to me also when I installed Ubuntu 16.04. Solved after updating the driversScreenshot of update page


Calibre library error: No such file or directory

Your Calibre Library database may be corrupted. Calibre has a database repair feature that can repair a corrupted Calibre Library database.

Click the downward arrow next to the Calibre Library button to show a dropdown menu -> select Library Maintenance -> Restore database.
The database restore process has three stages and may take up to one hour. A large progress bar shows the progress of each stage. It is very important to not interrupt the database restoration until it is complete or you may ruin your Calibre Library database, and then you will have to remove all the books in your Calibre Library and add them again to rebuild the Calibre Library database.
The next time that you reboot the computer all the Calibre features should work normally again.

The Check library feature in the screenshot tells you if there are any empty directories, extra unused files or missing book covers, etc. in your Calibre Library. This feature is for cleanup purposes, and it does not, in my experience, solve the problem when Calibre not working properly.


How to change audio bit depth and sampling rate?

To change the sample rate and audio bit depth we need to edit the configuration file for the pulseaudio server /etc/pulse/daemon.conf

  Please backup the original settings to restore the defaults in case som settings break your audio.

Look for the following entries:

; default-sample-format = s16le
; default-sample-rate = 44100

Both are commented out with ;. This means they are not read as the entries given here are the defaults. Uncoment them and replace them with values that suit you better. Always keep in mind that this may be on cost of system performance or stability when choosing extreme values.

Possible entries for the sample format are:  u8, s16le, s16be, s24le, s24be, s24-32le, s24-32be, s32le, s32be float32le, float32be, ulaw, alaw

Possible entries for the sample frequency are anything between 1 and 192000 Hz (choose sensible values!)

Save this file as ~/.pulse/daemon.conf or in it's original location (you need to be root then). In order for changes to take effect pulseaudio needs to be restarted with pulseaudio -k in a terminal, or by log out and log back in.


What is the difference between 12.04 LTS and 14.04 LTS

For the "general" desktop experience - not a lot.

It runs faster, adds new software, needs a 3D card for Unity rather than giving a choice between 2D and 3D Unity. That's about it.

14.04 isn't delivering huge changes, but it is running better than 12.04 IMO.


Press your key combination while tail-ing your /var/log/syslog file. In my case, if I press Alt-SysRq-m (memory dump, see the list here) you should have some message appearing. In my case:

Feb  5 16:04:14 pern kernel: [281437.665719] SysRq : This sysrq operation is disabled.
Feb  5 16:04:22 pern kernel: [281445.815216] SysRq : This sysrq operation is disabled.

So I know that the kernel is receiving the message. If it's authorized, you should have a complete memory statistics in output.


Just remove restricted and add multiverse.

Once you do that, just follow the instructions.


Can you change the directory/mount point to another location

It looks like the best way to do this would be to mount /usr on another hard drive. To do this, you need to

Create an ext4 partition on your hard drive
Copy the entire contents of /usr onto that partition
Edit your /etc/fstab file to mount that hard drive at /usr during boot
Boot from a LiveUSB and delete /usr from the original hard drive
Reboot

This method was discussed here: http://ubuntuforums.org/showthread.php?t=1617196

Another method would be to copy the contents of /usr to another hard drive, and use symlinks, but you would have to automatically mount the hard drive anyway, so it's not much different: How do I change Software Center's default installation path?

As for moving your /home partition, that's pretty well-documented on the Ubuntu wiki, and the steps are pretty much the same as moving /usr to another hard drive: https://help.ubuntu.com/community/Partitioning/Home/Moving

Regarding your concerns on SSD lifespan, they seem to last longer than most people think. However, just like with HDDs, an SSD could last 10 years, or 3 years, depending on how well it was made. http://www.extremetech.com/computing/184619-how-long-do-modern-consumer-ssds-actually-last-longer-than-youd-expect
and http://www.makeuseof.com/tag/hard-drives-ssds-flash-drives-how-long-will-your-storage-media-last/

Did I miss anything?


According to the Orca FAQ on Using Orca, simply run (from a command line)

  nohup orca

If that does not work, I see in the Ubuntu packages that this is named "gnome-orca", so you might try that as a second effort.

The 'nohup' in front lets you close the terminal window after restarting, without killing the process it started.


when use "gsettings set org.gnome.desktop.background picture-uri file_path" from root not working

I found the solution :

export DBUS_SESSION_BUS_ADDRESS=$(pgrep -a dbus-daemon -U USERNAME | grep -o 'unix:abstract.*$')
gsettings set org.gnome.desktop.background picture-uri FILE_ADDRESS

AND into crontab :

@reboot su USERNAME -c 'export DBUS_SESSION_BUS_ADDRESS=$(pgrep -a dbus-daemon -U USERNAME | grep -o "unix:abstract.*$");export DISPLAY=:0;gsettings set org.gnome.desktop.background picture-uri FILE_ADDRESS'

just replace USERNAME by your user AND replace FILE_ADDRESS by your picture Address


Gnote holds its notes in the folder ~/.local/share/gnote

Therefore you could use something like Unison (install unison-gtk from software centre) to sync the gnote folder between the two computers  if they are on the same network.

Unison

Since you are behind a NAT then you can use the concept of reverse ssh connections - rather than duplicate, there is an excellent step-by-step in this AU question and answer. However during my testing, I found that the version of unison in Natty doesnt work with the openssh version in Natty.

So here is a guide to get Unison to work.

On each PC you'll need to install openssh-server to enable you to ssh between each PC at any one time together with unison

sudo apt-get install openssh-server unison unison-gtk

Now open your browser and download the Debian version of unison-gtk - i386 for 32bit and amd64 for 64bit Natty and install it N.B. the version in Natty has a serious SSH bug and does not work.

cd Downloads
sudo dpkg -i unison-gtk_2.32.52-3+b1_i386.deb

Follow the openssh-server guide above to setup a SSH link between your two computers.  Test the link both ways to confirm you can see both computers home directory.

i.e. from desktop pc to NAT pc

ssh -p 6222 localhost

and from NAT pc to desktop pc

ssh username@desktoppc

Now configure a unison configuration on your desktop pc

unison-gtk &

enter the FULL path to your gnote folder as per this picture

Now enter both the NAT pc gnote folder and the socket number 62222

Then click the SSH radiobutton and enter the host name localhost

You will now be able to sync folders either manually or automatically.

To do the same from the NAT pc start unison-gtk, configure the local gnote folder as above, and the desktop pc folder as per this picture


Auto-mount nfs volume on startup fails with "killed by TERM signal"

I had the same problem after upgrading ubuntu gnome from 14.04 to 14.10. The following solved it:

Edit /etc/default/nfs-common and make sure it says:

NEED_STATD=yes

Restart and your nfs mounts should work.


Trying to install xubuntu in MacBook air

I did it, for people with a similar problem this is what I did.
I was trying with the newer version of xubuntu 20.04. I have just tried with xubuntu 12.04 and with this version I didn't had a problem, it even connected to Internet without having to do any additional steps, just like a normal lap


Installation of Lubuntu 14.04 fails on PowerPC iMac G3 "mount: can't find /run in /etc/fstab"

That is bug #1341334 - Installation of Lubuntu 14.04 fails on PowerPC computer.


Bleachbit is the windows equivalent of Ccleaner.

And in case of Disk defragmentation, it is completely unnecessary as ext filesystem doesn't defrag data like NTFS. For more details please visit this wiki:
http://en.wikipedia.org/wiki/Ext3#Defragmentation


What is the difference between Ubuntu for android and Ubuntu touch?

Ubuntu Touch

Ubuntu Touch is a stand-alone OS for mobile devices. It is only in beta and being tested on the Nexus 3 device. Canonical has assured fans that they have 2 major manufacturers ready to ship Ubuntu Touch with their new mobile models. It will not merge with Android or any other device, and it is simply an Ubuntu OS for mobile devices.

The full, official list of compatible devices can be seen here.

Ubuntu for Android

Ubuntu for Android is like a comparability mediator between the Desktop Ubuntu OS and your phone. It acts like a link between your Android quad-core phone and your computer. Ubuntu for Android will sit alongside Android, giving you the original functionality of your handset. Furthermore, 'docking' it will give you an environment where both your computer and phone act as both a phone and computer. It's a bit of a mouthful, and a little hard to grasp, but you can watch this video to learn more: Ubuntu for Android - YouTube


How I can set default cursors theme for current user

I believe this question was partially answered, since the answer only specifies how to install a theme.

Yes, to install additional mouse cursor (x11) themes for the current user, the theme must be placed in the "~/.icons" directory.

Now to set it, "gnome-tweak-tool" should be installed.

sudo apt-get install gnome-tweak-tool

After having installed gnome-tweak-tool, open it and navigate to Theme, and choose your Cursor theme from there. Please note, setting your cursor theme through there will only change it for certain applications.

Now comes the tricky part, setting the theme without modifying the /usr/share/icons/default/index.theme file.

In your ~/.icons directory, create a directory named "default". Then, inside that directory, create an "index.theme" file. Open it with your preferable text editor, and add the following settings to it:

[Icon Theme]
Inherits=<cursor theme name>

Then log out, and log in again, you should see your new cursor theme appear just for that user account. I believe this is what's going on. When loading a cursor theme, the system would first check for a ~/.icons/default/index.theme file, and if it cannot find it, then it will use the system's version (/usr/share/icons/default/index.theme).


Where should I install Xubuntu to boot on grub?

A Windows installation kills the bootloader. At least. You will have to boot with a live system (CD, USB) and repair your grub bootloader. How to do this, depends on a few factors. But it is not very complicated.

You could use a second hdd drive for xubuntu and just plug it off during Windows installations. When the installation is done, boot plug on the xubuntu disk, boot and update grub to reflect the changes.


Reinstall the driver packages:

sudo apt-get --reinstall install build-essential libssl-dev linux-headers-`uname -r` linux-firmware-nonfree


Touchpad not recognized on Asus N550JK - TP500L (FocalTech)

I finally came to this bug report: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1372609

It seems FocalTech touchpad needs a specific driver, and that work is in progress to integrate it into the mainline kernel.

currently, there seem to be a ppa to get a dkms driver for this touchpad : http://ppa.launchpad.net/hanipouspilot/focaltech-dkms

After trying this, I can confirm the following procedure works :

add ppa

sudo add-apt-repository ppa:hanipouspilot/focaltech-dkms

update the packages database

sudo apt-get update

install the dkms driver

sudo apt-get install focaltech-dkms

reboot

The touchpad in now recognized. Two finger scrolling works, for example. Also, the zone where the buttons are won't make the cursor move.

Thanks for the community that retro-engeniered this (Asus just replied "no linux support nor technical information" to a request ! Very bad point to them (see the afore-mentioned bug report)).


Your command syntax is wrong, this is why it is not working, get rid of the empty space between -p and your password.

mysql -u root -p123456


I have a problem with wine: "path not found" when trying to run install.exe

Is this "Prog." an abbreviation for the real directory name? If no: please try in a directory without a dot at the end. If yes: does the real directory name have spaces, like "My Programs"? Then you have to quote these spaces, i.e. use double quotes or apostrophes, like so:

wine 'data/My Programs/Program/install.exe'


Downlaod speed with apt-get is very slow in Ubuntu 18.04 (1kb/s)

This could be for a couple of reasons. Have you set a bandwidth limit in your /etc/apt/apt.conf.d/50unattended-upgrades file? If so, this will affect apt.
Otherwise:

Go to "System Settings" ⇢ "Software & Updates"
From the "Download from" dropdown, choose "Other". This will open another window.
Click the "Select Best Server" button in the upper right corner (this will take a while, as a series of tests will try to find the best server)

Hopefully one of these will resolve your issue.


How to get all the source for my current Ubuntu installation?

As guiverc, the complete source code will be huge to handle its storage.

(You need to build an infrastructure, why there few sites to index free code and for each distribution a site to build/remaster packages and CD/DVD installation images ...)

I would suggest a different approach:

Download the -dbg/dbgsyms packages for compiled tools. See What are -dbg packages for?
For script tools, no need, the source is already in your hand.


What is the propper way to triforce on 4chan in ubuntu?

▲
▲ ▲

CtrlShiftu a0 seems to work fine for me.


Ubuntu Server doesn’t boot when kernel is in RAID 1

I fixed this by putting the entire /boot directory on the usb drive. Afterwards it would boot from the usb drive. I'm still not 100% sure why the Ubuntu live server installer doesn't let you boot off of a software raid, but I'm not too worried about that. The only concern that I have with this is the usb drive failing because it's not redundant in any way.


Usb tethering not working in Ubuntu 18.04

try
sudo apt install macchanger -y

sudo machchanger -r "usb-interface or ens20en22 look {ip a}"

USB DEBUG

for me, Samsung s9 not working


Install Ubuntu in UEFI mode (unable to boot from USB)

In Windows 8, open the settings charms by pressing Windows+I keys. At the bottom, you’ll see the option of Change PC settings. Click on it. Then you need to go to General PC settings and select Advanced startup and then click on Restart now. It actually won’t restart right after it, but it will provide some option that you will see on next boot. You should to choose Use a device. In Use a device menu select EFI USB Device and your computer will start to boot from the flash-drive.


Ubuntu 16.04 Not Booting from USB but works in VM

Perform these steps:

First configure the bios to permitt logging in without loading the drivers with the nomodeset grub parameter.

1) Boot to your Grub menu
2) Hit e to edit.
3) Find the line that begins with `linux`.  Append to this line **nomodeset**
4) Hit `F10` to save and boot.

Update:

To ENTER the grub menu from a legacy LiveUSB boot, press ESC when the computer first start to boot to the stick.  This will skip the GUI and give you a text option.

Select your language (Press ENTER)
Press F6 (Other Options), then hit ESC.
Now use the arrows to add nomodeset as a parameter after the words quiet splash.
Press ENTER to continue boot with the selected options.


How to merge two files' data line by line?

There's usually some elegant way to do a task, but you may spend more time looking for it than just brute force.
Not using sed or paste (just shell builtins):

#!/bin/bash
while read line1
do
  while read line2
  do
    echo ${line1}${line2}
  done <file2.txt
done <file1.txt


Rhythmbox hangs when changing song properties

Okay, I found out what was the problem.
It was my fstab record, just changed to

UUID=3265c492-8ff6-4421-830e-91508d27a020 /mnt/home ext4 defaults,user 0 2

and now everything is fine. Problem was sync option that made that partition awfully slow, so slow, that none of the programs could work normally, also thunderbird.


Folders are stuck on the top left corner behind the launcher (Ubuntu 16.04)

A possible solution needs ccsm (CompizConfig Setting Manager):

Select Window Management
Select the check button "Place Windows"
Open the "Place windows" by clicking on the icon
Choose a "Placement Mode", default should be "Smart"


Ubuntu on Asus laptop doesn't recognise Intel SSD

Place your SSD in a working windows computer. Download and run the current INTEL firmware upgrade on your SSD and try the installation on your laptop again.


No Grub menu after installing 11.10 64b on top of Windows 7 home Pro 64b

Did you try The terminal way? RecoveringGrubMenu

Boot Ubuntu Live-CD
Open Terminal
Type: sudo grub-install /dev/XXX where XXX is the device of your Ubuntu install, in your case sda
Now reboot your system. The usual GRUB boot menu should appear. If it
does not, hold Left Shift while booting. You will be able to choose
between Ubuntu and Windows.


Yes, USB drives have a limited number of times they can be written and this is usually very high if used normally, but if you use it as normal hard disk it becomes a bit low. Look for example this test: How Long Does a Flash Drive Last?
Maybe it will help you understand better.


My mdns address myhost.local mistakenly bound to Docker virtual network, not my wifi network

Reading the man page for the avahi daemon conf file (/etc/avahi/avahi-daemon.conf) it looks like you can specify interfaces that you explicitly want to deny:

deny-interfaces= Set a comma seperated list of network interfaces that should be ignored by avahi-daemon. Other not specified interfaces will be used, unless allow-interfaces is set. This option takes precedence over deny-interfaces.

So maybe try adding the line "deny-interfaces=docker0" to that file (always backup the original!), and then reloading with "avahi-daemon --reload". Change "docker0" to whatever your docker interface is called, though I think that's the default.
https://linux.die.net/man/5/avahi-daemon.conf
http://manpages.ubuntu.com/manpages/bionic/man8/avahi-daemon.8.html


After login a terminal windows appear (Xubuntu 14.04)

In Xubuntu and Ubuntu Studio (which both use the xfce desktop) there is the ability to save the current session state so that when you login again, apps from the previous session will automatically be launched into their previous state with the settings still intact.

You can kill or stop this behaviour by deselecting the option to remember session on your session log out or shutdown dialogue box that appears when your about to shutdown or logout of your computer. Its perfectly normal.

By selecting Save session for future logins you can quickly restore you system to its former state when you login or start a new session.


11.04
(and works for all versions since 11.04)
The use of alacarte in the current version of xubuntu is perhaps not a good choice because of its perceived gnome dependencies - it is actually packaged wrongly, but that's a different story.
Xubuntu / Lubuntu Menu editor
You could try the following java based menu editor which works for both Xubuntu and Lubuntu:

To install, download and extract into your Downloads folder
Then open your terminal:
if you havent already installed java
sudo apt-get install openjdk-6-jre

followed by
cd ~/Downloads/lxmed
chmod +x install.sh

If the folder /opt does not exist then
sudo mkdir /opt

Finally
sudo ./install.sh

You launch the menu editor by Start - Settings - Main Menu Editor


xfce4-power-manager closed when Battery is removed

Do you mean the battery icon turns off? In that case, change the power management settings to always show icon, from show icon only when battery is present.


Ubuntu (18.04) Backup (DejaDup) repeatedly asks for password

Please check if the password set within seahorse matches the one you have set once you configured deja-dup.

If you are using gnome-shell just push the super-key ("Windows-key" or "Command-key" on Apple-keyboard), enter "seahorse" and hit ENTER. This will open up the key and encryption manager. Scroll down and search for an entry like "Password for encryption of data backup" or something similar.


Go to software center, install playonlinux, and then once it's installed and you open it from your menu (or alt+f2), click install

choose games, and find your WoW version to install =).

Then follow the on screen instructions. If you get further problems the best place to look is the forums on winehq.org


I just went through this same trouble with a new laptop with intel 3165 wifi.  I found that installing a kernel version later than 4.2 made the wifi work.  Some advice (learn from my frustrations):

Install the "linux-generic" package that corresponds with the kernel version you want.  This way you will know you are getting a full kernel update, with all the extras that you need.
You might have to try more than one kernel version before you find the one that works best for you (especially if you have intel graphics, which are glitchy in some kernel versions).
Removing the "linux-generic" package will not remove the other packages it brings with it.  If you want to remove a specific kernel version, you will also need to remove the "linux-headers-x.x.x-xx", "linux-headers-x.x.x-xx-generic", "linux-image-x.x.x-xx-generic" and "linux-image-extra-x.x.x-xx-generic" packages.
GRUB will boot to the newest kernel version you have installed by default.
You do need to restart for the new kernel version to take effect.

For reference, I am running Linux Mint 17.3 (Ubuntu 14.04 base) with the "linux-generic-lts-wily" headers package, and everything is working well.


What's the difference between x-www-browser and gnome-www-browser?

Both are scripts that, when configured by update-alternatives, call the default application for internet browsing on a GUI environment.

The script x-www-browser calls the application configured to run on any desktop environment that runs under X Server, while gnome-www-browser application configured specifically calls for GNOME. Similarly, www-browser is a script to call the default browser on a TUI (text-based user interface) environment, such as w3m or elinks, for example.

You can check which browser they are associated with the commands

update-alternatives --display x-www-browser
update-alternatives --display gnome-www-browser

To list all the alternatives to these scripts, use

update-alternatives --list x-www-browser
update-alternatives --list gnome-www-browser

To configure a default browser, use the commands

sudo update-alternatives --config x-www-browser
sudo update-alternatives --config gnome-www-browser

Since these scripts can call different browsers, it may happen that a certain program call a browser other than the default browser. This often causes confusion for some users, but this issue can be fixed by running the command sudo update-alternatives --config as explained in item 3, above.

Sources:

http://www.debian-administration.org/articles/91
http://www.debian.org/doc/manuals/debian-faq/ch-customizing.en.html
http://wiki.debian.org/DebianAlternatives


As @aperson said, Geany is a very good text editor - It is lightweight with lots of features. It also supports vala (you need to install valac first though for full vala features). A lot of its features are IDE like eg. you can build/run with 1 click.

To install, run sudo apt-get install valac geany or search for 'valac' and 'geany' in Ubuntu Software Centre.


Asus fx553vd keyboard led brightness hotkeys not working

Update your Linux kernel version to 4.15.0. It has solved my fn + f3/f4 (keyboard back-light) issue. My Current kernel information is as below

  uname -a

Linux asus-GL553VE 4.15.0-041500rc1-generic #201711262030 SMP Mon Nov 27 01:32:09 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux


My usb stick is not mounting. It shows in 'Disks' though where I am able to format it but even on restarting it doesn't show up normally

Have you removed the drive and re-inserted it after formatting? It might of unmounted after formatting. Or make a temporary folder called usb or something in your home directory and try mounting it there.

mount /dev/sdb/ /home/your-username/usb


Terminal in Cat Mode says -s: command not found

The error message says that your login shell (-bash) had a problem parsing its init file (have you edited ~/.bashrc or equivalent recently?), and failed where you had "[[-s" (you probably wanted "[[ -s", with a space between "[[" and "-s").

You can find it via

  egrep '\[\[-s' .bashrc   .bash_profile .bash_login
  /etc/profile/etc/bash.bashrc /etc/environment

Not all of those files will exist, but, if they do, check them.


Ubuntu 14.10 install boots on my pc, but not any others

Sorry for posting this as an answer, but the comments are too small to say what I need to say...  :(

You had a GPT on your /sda and a MBR on your /sdb... It's not a huge problem, but is the origin of your original problem: effectively, the UEFI boot partitions on the other computers in your lab didn't know about the Ubuntu boot loader as they are missing the necessary information from their boot partitions...  This has nothing to do with Ubuntu but is purely firmware related.

The solution to your original problem would have been something like this...

However, in the mean time, you've run a boot repair which very probably saw a MBR partition and tried to repair that, instead of a GPT one...  So now neither Windows nor Ubuntu boot.

The solution now would be to boot-repair Windows and by now you know more of the Windows 8 boot process (UEFI started with Windows 7 but was optional, with Windows 8 it's recommended and with Windows 10 it will be enforced) so you should have a better shot at re-installing Ubuntu in UEFI mode so it can boot on your machine and all the others in the lab.  ;-)

Last piece of advice: If you're looking for an easy fix, make a BIOS-bootable Ubuntu install on the external HD, turn UEFI off and boot from BIOS whenever you need to clean stuff and turn UEFI back on after you've finished.  For the foreseeable future, BIOS boot will still be available on all machines.


Setup ubuntu 18.04 repository on hard drive

You must do this:

REPO PATH SAMPLE:  /opt/ubuntu
SOURCES LIST CONTENT: (in /etc/sources.list)

deb file:/opt/ubuntu/ bionic main multiverse restricted universe
deb file:/opt/ubuntu/ bionic-backports main multiverse restricted universe
deb file:/opt/ubuntu/ bionic-proposed main multiverse restricted universe
deb file:/opt/ubuntu/ bionic-security main multiverse restricted universe
deb file:/opt/ubuntu/ bionic-updates main multiverse restricted universe

If your repo is x64 only, then use this format

deb [arch=amd64] file:/opt/ubuntu/ bionic-updates main multiverse restricted universe
.......


windows border disappeared in ubuntu 12.04

I have the same problem. It's indeed a Compiz bug. I don't have the real solution (will probably come with an update of Compiz) but the easiest workaround is to launch again the compiz window decorator.

Juste type ALT+F2 and enter :

/usr/bin/compiz-decorator


Problem running Matlab from launcher icon

There are 2 problems with your approach.

you use hardlink instead of symlink explained here
you switched target and link paths. It should be sudo ln -s pathToLink pathToTarget

So this is the corrected command:

sudo ln -s /usr/share/applications/matlab.desktop /usr/share/app-install/desktop/matlab-support:matlab.desktop


How to enable nested virtualization in ubuntu

KVM requires VT-X/AMD-V, but VirtualBox does not pass VT-X/AMD-V to the guest operating system.

Therefore, KVM can't run in VirtualBox (yet). Please track bug ticket #4032.

VT-X and AMD-V (so-called virtualization extensions) run the guest operating system natively in the CPU. Without them, the virtualization software must interpret the operating system opcodes in software, which is very slow.

For now, you can either

run KVM inside a hypervisor which passes virtualization extensions to the guest (e.g. KVM inside VMware Workstation 8), or
run another hypervisor inside VirtualBox (e.g. VirtualBox inside VirtualBox).
This option will be very slow, because the guest will miss VT-X/AMD-V.


Can I install Ubuntu 18.04 and bring data over from another Ubuntu 18.04 installation on the same computer

I would do a backup to the cloud or external media and do a complete new install if you copy your config files from your old install to the new one your more than likely going to bring those problems into the new install. So I recommend against doing that.
Do the Clean install an overwrite the old install completely.
Just MHO.


Why does add-apt-repository fail to add source repositories?

If you want to add your repo as source repo as well you have to put the -s flag in the command line:

sudo add-apt-repository -s 'deb http://dl.ajaxplorer.info/repos/apt squeeze main'

And thats all.

This will add:

deb http://dl.ajax...

and

deb-src http://dl.ajax...

as well.


Getting a "zenity, kdialog, Xdialog missing" Error when trying to run an appimage

There is another error message in the topic of your question and another one in the text.
Regarding the message from topic, looks like application displays dialog boxes using one of the default system tools that provide this feature. These tools are usually pre-installed in various desktop environments: zenity in GNOME or MATE, kdialog in KDE and Xdialog should be probably available in other DEs (I'm not sure about this one). For some reason, none of these utilities is present on your system, so the solution is to install one of them.
Regarding the message from text, libnss3 package seems to be missing, so you have to install it.


Is it possible to run/execute a bash script command from inside a python code?

Python has the os module, which enables you to do just that.

For instance you could call:

import os
os.system("ls -l")

I recommend you create the string and pass it to os.system()

import os
c = "command"
opt = "options"
args = "arguments"
ss = c + opt + args

os.system(ss)

There are ways to bind C/C++ to python which are more involved.  Check the official Python 2 documentation on ctypes to see how to integrate directly.

Edit:
There is contention as whether to use os.system or the subprocesses module.  My answer recommends os.system due to it being in the documentation but you should certainly look into the subprocesses documentation which offers more flexibility.


When I installed Ubuntu 13.10 my ethernet is not connecting

Ok so the issue I had was that I was using a realtek ethernet card which ubuntu has an issue with.

the directions I found here:
http://ubuntuforums.org/showthread.php?t=1661489

they ALMOST worked. Others may have better luck with them.

In the end I just sprung for a usb to ethernet adapter that was compatible with my linux kernal and everything worked well.


freetds ./configure unrecognized option --prefix

You have to use --prefix ("minus minus"), not -–prefix ("minus dash")


How to record user input to a file in a shell script?

I'd suggest starting with something like

#!/bin/bash

read -p "Your question here: "

echo "$REPLY" > somefile

You can read more about bash's read command either from the manual page (man bash) or by typing help read at the shell prompt.


Laptop freezes after wake from suspend when not connected to power

Fixed it by changing adding GRUB_CMDLINE_LINUX_DEFAULT="quiet splash dis_ucode_ldr" in /etc/default/grub and updating GRUB as per:
https://www.dell.com/community/Precision-Mobile-Workstations/Precision-7540-will-only-boot-Linux-if-charger-is-connected/td-p/7449042


Ubuntu 16.04 unstable, freezes/booting problems

try this

sudo apt-get install linux-headers-$(uname -r|sed 's,[^-]*-[^-]*-,,')

AND after that

sudo dpkg --add-architecture i386 && sudo apt-get update && sudo apt-get install bumblebee-nvidia primus primus-libs:i386

and let me know if it works


Ubuntu 14.04 Desktop under Windows 8.1 Hyper-V

The desktop lags because Hyper-V is using software rendering instead of using the GPU:

$ /usr/lib/nux/unity_support_test -p

Not software rendered: no
Unity 3D supported: no

This appears to be because Hyper-V has no 3D GPU acceleration capability. Hyper-V is a server-virtualization techonology that is not meant to be used for virtual desktops:

  It is fact that physical servers usually don't come with powerful
  video adapter cards. Consequently, virtualization technologies limit
  virtual desktops to run only simple 2-D user-interface's applications.
  (source)

-

    Lack of 3D Accelerated Graphics in guest operating systems.
    Hyper-v client does not give the option to add virtual accelerated graphics
    card for guest OSes.

  That is not what Hyper-V was designed to do. If you want improved
  video performance, run over RDP from the host. Hyper-V is not a
  replacement for VMware Player!
  (source)

-

  Hyper-V was being developed solely for server virtualization and therefore is mainly for developers or IT admins looking to test out multiple environments. (source)


Where is the cursor speed for mouse keys configured?

Try adjusting xkbset settings as i.e.:

xkbset ma 60 10 10 5 2

You can find xkbset on the universe repository.

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


There are 2 ways to do things with elevated permissions.

sudo lets you run commands in your own user account with root privileges.

su lets you switch user so that you're actually logged in as root.
But this options is by default disabled on Ubuntu. Instead you can simply start a root shell with sudo -i.

Read What are the differences between "su", "sudo -s", "sudo -i", "sudo su"? for more information.

Use either method only as and when needed, they can cause your system damage if used without caution.


Installed 20.04.1 on my old Vista machine with Intel G45 graphics, can't increase screen resolution beyond 1024 x 768

I added this script to startup applications
#!/bin/sh
xrandr --newmode vista_res 101.25 1280 1360 1488 1696 960 963 967 996
xrandr --addmode VGA-1 vista_res
xrandr --output VGA-1 --mode vista_res

that fixed it


This could happen if you upgraded from 12.10 and kept the /home folder.
To fix it, I had to purge the Nepomuk database and re-index everything.

In my case, I did:

 qdbus org.kde.NepomukServer /nepomukserver quit
 rm -rf $(kde4-config --localprefix)/share/apps/nepomuk/repository/

Then, I re-indexed the PDF files:

 cd; find . -name "*.pdf" | xargs -n1 -I{} nepomukindexer {}

...and ODT files:

 cd; find . -name "*.odt" | xargs -n1 -I{} nepomukindexer {}


It seems you have sources defined in you sources.list file that are not present anymore, cause your mentioned llvm repo gives a:

APT mirror was temporary switched off due to excess load. We are working on bringing it back. Stay tuned!

so you could wait or deactivate the ressource in software-properties-gtk and try the mentioned things again...

after changing the sources or commenting them out in /etc/sources/sources.list or the subdirectories
after that you make an

sudo apt-get update

if this runs cleanly you could fire an

sudo apt-get install -f && sudo apt-get upgrade

perhaps you are than good to go...


Activating virtualenv leads to terminal losing its color

The color of your terminal is defined by some environment variables like  PS1, but each time you start a new bash shell (like when your run sudo -s), the new shell enviroment is initialized by running the .bashrc of the current user (here the user is root whose .bashrc is at /root/.bashrc, and by default root's .bashrc doesn't define colors).
In the same idea virtualenv activation script replace the PS1 enviroment variables in order to add the enviroment name in the prompt and thus may remove the colors at the same time.
Here you seem to restore colors by running your own user .bashrc manually, but if you want a more permanent solution, you need to edit root .bashrc as well as your virtual env activation script to set the PS1 value you want.
This is for the color problem. As for your other errors, the virtualenv binary doesn't seam to be installed correctly, so maybe try reinstalling it.


Ok i overcame my nOObness and can simply mounting the .ext3 filesystem . I copied the .ext3 file to a new m2 directory and then mounted it via the following command:

osboxes@osboxes:~$ sudo mount -t ext3 image-full-galileo-clanton.ext3 /home/osboxes/m2
osboxes@osboxes:~$ cd m2/
osboxes@osboxes:~/m2$ ls
bin  boot  dev  etc  home  lib  lost+found  media  mnt  opt  proc  sbin  sketch  sys  tmp  usr  var


I corrected their official instruction because Ubuntu Xenial 16.04 LTS has newer versions of SWIG and Armadillo (no need to build them from source):

sudo apt-get install libopenblas-base libsuperlu4 libsuperlu-dev \
cmake git python-numpy python-dev libarmadillo-dev swig3.0 clang
# note: for 17.10 (artful) use `libsuperlu5` instead of `libsuperlu4`

git clone --recursive https://github.com/amdj/tasmet.git
cd tasmet
python install_local.py

Then test it:

export PYTHONPATH=/home/$USER/bin/TaSMET
python -c "import TaSMET"


Distribution not supported error when trying to install Intel Graphics Installer on Ubuntu 14.04

Most versions of the Linux operating system include Intel graphics drivers.  Intel recommends checking with your Linux distribution vendor or computer manufacturer for precompiled driver packages.Intel

The Intel Graphics Installer for Linux allows you to easily install the latest graphics and video drivers for your Intel graphics hardware. This allows you to stay current with the latest enhancements, optimizations, and fixes to the Intel® Graphics Stack to ensure the best user experience with your Intel graphics hardware. The Intel Graphics Installer for Linux is available for the latest versions of Ubuntu.

NOTE (updated 18 March 2015 09:15 UTC-7): This release of the Graphics Installer requires Ubuntu 14.10 "utopic". The Graphics Installer will not function on Ubuntu 14.04 "trusty" and support is deprecated (see this forum announcement and this explanation).The Intel Graphics Installer for Linux

You can try using the older driver, but I have no way of verifying that it will work.  Depending on your needs, download the 32bit or 64bit or you can download the file from source: for 32bit or 64bit and then follow the commands below:

wget --no-check-certificate https://download.01.org/gfx/RPM-GPG-KEY-ilg -O - | sudo apt-key add -
sudo apt-get update
For 32 bit:
sudo dpkg -i intel-linux-graphics-installer_1.0.7-0intel1_i386.deb
OR for 64 bit:
sudo dpkg -i intel-linux-graphics-installer_1.0.7-0intel1_amd64.deb

And then just start the installer

sudo intel-linux-graphics-installer

I would recommend you install the file(s) using Gdebi.  To install:

sudo apt-get install gdebi


Is it possible to disable auto hide in the global menu?


How can I detect unknown/unapproved devices with udev?

If you want something like this you need to treat -all- devices as suspicious and at any time any device gets inserted ask for something only the owner of that device can know. You can not skip this for a device you believe has been approved before since the user that inserted it does not have to be the same person.

  Is there a way to detect unknown devices elegantly in udev?

udev does not understand "unknown devices": it either understands all or none USB/firewire devices due to there being a entry in /dev/. Unknown to udev would mean the device does not work in that system. And ID_VENDOR_ID and ID_MODEL_ID do not allow you to see a difference between 2 devices of the same make and model.

A possible method:

See https://wiki.archlinux.org/index.php/Execute_on_USB_insert for a basic script that gets executed on inserting a device. This will force any device to show a menu where the user needs to verify it may have access.

The rule in the link ...

ACTION=="add", RUN+="/usr/bin/exdongle run /media/%k-%E{dir_name}"

will work on any device that tries to mount in /media/ and will start script "exdongle" (the script might need some tweaking since it has a disclaimer).

What you consider "unknown" is a specific device that is known to Linux as USB. So if USB support is present all USB devices are treated equally. Devices have a vendor and product id but those are unique per make/model and not per USB device.

The only USB device that has a unique ID is a dongle ( http://en.wikipedia.org/wiki/Software_protection_dongle ). Those tend to come with software for verification (so also not for headless systems) but you might be able to save the identification to a file and script something like above to test against a known set of id's.


How to warn using nagios if privvmpages value exceeds threshold for an application

After reading many posts, I don't think we can find privvmpage size of individual application. rather we can do this

#!/bin/bash
bean=`cat /proc/user_beancounters`
guar=`echo "$bean" | grep vmguar | awk '{ print $4;}'`
priv=`echo "$bean" | grep privvm | awk '{ print $2;}'`
let totl=guar/256
let used=priv/256
let free=totl-used
let per=used*100/totl
echo "VPS Memory:"
echo "  total: $totl mb   used: $used mb ($per%)   free: $free mb"

Configure this in nagios and compare the threshold values of used/free to alert warnings from nagios

History behind this

cat /proc/user_beancounters

First column tells you your current usage, second column tells max usage, third column tells barrier, fourth column tells limit, final column tells you how many times your VPS has failed in a limit.

To convert pages to MB, divide by 256.


GPU AMD firePro W5130m not working in elementary OS

Your card should be handled by the open source AMD driver, without needing anything to install. The closed one you are trying to install is obsolete.
You can check whether things are working fine by using the command glxinfo|grep OpenGL. It should tell you the Mesa version, OpenGL version and some info about the graphics card.
The model number you see is probably the real chip on the card, without the fancy name.


Found a solution on this github repo, which also contains some other useful resources for Linux on Razer laptops.
Solution is to add button.lid_init_state=open to GRUB_CMDLINE_LINUX_DEFAULT argument in /etc/default/grub and then sudo update-grub.
To get rid of ACPI error, you might also want to add acpi=on or acpi=hybrid to the same boot options. This can solve an issue with touchpad not responding.


When Installing nvidia drivers it doesnt resuming suspend

nvidia drivers in 12.04 provide many stability problems (resume/suspend)... look on https://bugs.launchpad.net/ubuntu/+source/nvidia-graphics-drivers/+bug/1033263

its good to consider switching from propetriary nvidia driver to nouveau


Click the power icon ⏻ in the upper right corner of the desktop on the panel, then click the padlock icon to lock the session. Then closing the lid will suspend the laptop.


Cannot install Ubuntu alongside Windows 10

Is it possible that you have not formatted the 200GB of unused space yet?

Usually, when installing a second OS on a drive, the installer for the second OS will need the space to be formatted.

If this is the case and you are able to boot into and use your Windows 10 OS, I would suggest using the tool MiniTool partition Wizard. I believe you can google and find a download pretty easily. If you open the program and click to use the trial version, you should be able to view the 200GB of free space and format it using the tools default formatting settings. Ubuntu should then be able to view it and work with it from there when you boot using a usb.

NOTE: Be careful and make sure that this is your issue before performing operations with the partition tool, and be careful not to manipulate drives or files that you do not want to, though as changes can be permanent and file loss can result!!!


What is the difference between log on and log on xorg?

Assuming that you're running Ubuntu 17.10 (please edit your questions to include the version of Ubuntu that you're running to make it easier for us to help troubleshoot your issue), the options that you're describing are for the types of display servers that Ubuntu will use when you log in.

X.Org (or just Xorg) is an older display server that recently has been replaced by Wayland--and made the default--as of Ubuntu 17.10. However, because there are still applications that depend on X.Org, the option to use this older display server is still made available to you.

In general, using Wayland (just the "log on" option you describe) should work fine.


Install Desktop Environments or use different distributions

Yes, You can install different desktop environment on the default system. For example, installing kubuntu-desktop package on Ubuntu system.

The difference is --

When you install kubuntu-desktop package on Ubuntu, it will download all the packages of the kubuntu CD. so, more than one web-browser, office software (such as Abiword, Gnumeric installed with XFCE), chat software, partition editor, terminals and etc. So if you want a cleaner system, a clean install with only the preferred Desktop Environment is recommended.
But you should be aware of the fact that you need to install your necessary software on each installed system. So, this method is a bit expensive.
You should also aware of some incompatibility issue of firefox font-rendering between KDE and GNOME system. also exo-utils related workaround which occur with XFCE installation. Search Google and Ubuntu-forum for more information about these issue.

Note about Integration
I recently installed kubuntu-desktop in the default Ubuntu. The first point I noted is, The smooth integration between default Ubuntu and KDE. Also KDE more memory friendly now.

My Suggestion
My Suggestion is Install Ubuntu and Kubuntu as separate system if you prefer smooth Integration. You can install lubuntu-desktop and xubuntu-desktop on the Ubuntu system. Because these use most of the Gnome libraries. But I installed kubuntu-desktop on top of Ubuntu, and I think this is good now.

Note 2
You can try only the Desktop Environment without installing many more extra softwares by using --no-install-recommends switch to apt-get command line. For example

For Kubuntu

sudo apt-get install --no-install-recommends kubuntu-desktop. Kubuntu

For Xubuntu

sudo apt-get install --no-install-recommends xubuntu-desktop. Xubuntu

For Lubuntu

sudo apt-get install --no-install-recommends lubuntu-desktop. Lubuntu


Steam not downloading games on ubuntu 16.04.1?

I had this problem, and it turned out that having the sync option set in /etc/fstab for the hard drive that my steam library is on was causing the problem. If you're installing games on a hard drive separate from your OS, go into /etc/fstab and make sure it isn't mounted with the sync option.


Prevent user from executing history -c command in shell

history command is a bash builtin command (you can find it somewere at the line 4348 in man bash). So you can use something like this in this case.

What you can do is to harden /home/username/.bash_history by making it append-only:

sudo chattr +a /home/username/.bash_history

Also, you have to harden history environment variables by adding the following lines to /home/username/.bashrc:

shopt -s histappend
readonly PROMPT_COMMAND="history -a"
readonly HISTFILE
readonly HISTFILESIZE
readonly HISTSIZE
readonly HISTCMD
readonly HISTCONTROL
readonly HISTIGNORE

Source: https://superuser.com/questions/308882/secured-bash-history-usage.


malfunctioning ubuntu desktop due to installation of gnome desktop

Try this:
At log in screen, hit CTRL+ALt+F1 to enter into command-line log in. Log in using your username and password.

Do sudo dpkg-reconfigure gdm and select lightdm instead of gdm

Do sudo apt-get remove --purge ubuntu-gnome-dekstop to fully remove Gnome and all of it's components/global configuration files

Do sudo reboot now to restart.

If you ever do want to try Gnome again, try sudo apt-get install gnome-shellinstead of ubuntu-gnome-desktop. It's just the DE, none of the additional components. ubuntu-gnome-desktop is meant to be a full replacement, whereas gnome-shell is just an additional work environment.


Setting sublime text as default for all Java files

GUI Way:

Right-click the file.
Go to Properties
Go to the "open with" tab.
Select the program you want, and click Set as Default. (I don't have Sublime, so it's not in the list)

Terminal way:
cd into the directory containing your file and do:
mimeopen -d your-source-code.java

Sample output:
Please choose a default application for files of type text/x-java

    1) notepad  (wine-extension-txt)
    2) LibreOffice Writer  (libreoffice-writer)
    3) gedit  (gedit)
    4) Other...

use application #

Note: credit for the terminal way goes to Ugo Hed's answer here.


The simplest database available is sqlite which comes installed (or can be installed) with any Linux flavour possible, takes virtually no memory,, as little disk space as possible (and if you take care about the number of rows and the amount of tables, as little CPU as well)

If anyone comes up with anything simpler then that in the next week, I'll send them a bottle of real French Champagne!


I had similar problems once in the past and got it to work by pre-formatting the drive to ext4 before installation. You can do this with a tool such as gparted from the Ubuntu live session.

Also, if you don't have much ram, you should not select "try ubuntu" before selecting install as this option eats allot of ram and a certain amount is needed for install. (For Lubuntu, you need at least 200mB of free ram to run the installation and running the desktop eats 700mB. Also, Lubuntu uses less ram compared to regular ubuntu.) Instead, choose "install ubuntu" from the beginning.

Finally, I've found the net install iso to work better as it runs on minimal resources. See here for all PC 64 bit amd or intel processors (14.04).

See here for all PC 32 bit (14.04).

See here for all others, for more info, or for version 14.10.


No input from Logitech K400+ after upgrade Raps 4 to Ubuntu 21.04

Use xorg from the gear menu at the login screen. Select your user name the gear menu is in the bottom right corner.
It's an issue with wayland which is now the default display server. Hopefully the issue will be solved soon.


MAAS - HP Proliant Gen 8 + Smart Array B320i storage not found

this look like "windows based" raid controller. Linux can use it only as independed disk drives. Use normal software raid, instead.


Can't change settings in Ubuntu 18.04 (Screen Lock)

I found the answer at Ubuntu 18.10: Screen lock options grayed out

In short, you can remove the "lockdown" of this setting by using the command

gsettings set org.gnome.desktop.lockdown disable-lock-screen false


`shutdown -r now` command completely shutting down instead of restarting

Restart using init:

sudo init 6

The init 6 command gracefully reboots the system running all the K* shutdown scripts first, before rebooting.  The reboot command does a very quick reboot.  It doesn’t execute any kill scripts, but just unmounts filesystems and restarts the system.


Steam install can erase my home. How to prevent it?

The problem starts around line 19 in the script "steam.sh.":

STEAMROOT="$(cd "${0%/*}" && echo $PWD)"
STEAMDATA="$STEAMROOT"

$STEAMROOT can become empty here effectively making the rm -rf "$STEAMROOT/"* further into the script the same as  rm -rf "/"*.

There are patches showing up and there is a lot wrong with this script. Easiest to change and at least prevent deleting files it should not ...

rm -rf "$STEAMROOT/"*

to ...

[[ -n $STEAMROOT && $STEAMROOT =~ 'steam' ]] && rm -rf $STEAMROOT

Also possible to add an exit just after STEAMDATA is set:

STEAMROOT="$(cd "${0%/*}" && echo $PWD)"
STEAMDATA="$STEAMROOT"
if [ -z "$STEAMROOT" ]; then
    echo "stop script otherwise files are deleted from /."
    exit 1
fi

If anyone out there installed steam as root be warned: it will delete your WHOLE disk.


What (and Where will I find) the best simple text editor for my Ubuntu phone

You have edit and uwriter (html format) in the official apps store.


Working around encoding issues on Windows with .m3u files

The problem is that your music player on windows is opening the .m3u in something other than UTF-8. From searching around a little, it seems that if the extension is .m3u8, things will just work.

What's more, the Wikipedia article on M3U says that the encoding has to be Latin-1 if the extension is .m3u, and that you have to use .m3u8 for UTF-8 encoded filenames.

Also, as you lool pointed out "[c]reating a .wpl file with the playlist worked; I copy-pasted the model from: http://en.wikipedia.org/wiki/Windows_Media_Player_Playlist and it worked with UTF-8 encoded filenames (since encoding of XML is well defined). Another option is to use more tolerant software such as VLC."


You can add samba users with the smbpasswd command:

sudo smbpasswd samba_username

That should ask you for your admin password, and then for the samba_user password.

You can also install and use gadmin-samba, check out the howto.


Installation of gnome-core on Ubuntu 14.04 LTS (Trusty Tahr)

Install the correct version of libpython3.4-stdlib

sudo apt-get update
sudo apt-get install libpython3.4-stdlib=3.4.0-2ubuntu1.1 libpython3.4-minimal=3.4.0-2ubuntu1.1

because libpython3.4-stdlib needs exact version 3.4.0-2ubuntu1.1 and not your installed version 3.4.3-1ubuntu1~14.04.1.

After that install gnome-core via

sudo apt-get install gnome-core

and install some uninstalled packages again

sudo apt-get install lsb-release python3 update-notifier-common

And at the end

sudo apt-mark auto libpython3.4-stdlib libpython3.4-minimal


have you tried to install the driver using WINE? Wine has more applications than just installing programs. I have tried using WINE to install drivers for a graphics card that i was having issues with. i just downloaded the driver and then ran it in WINE. When i was done, i just moved the newly installed/ Converted files to the drivers directory in the C drive.


After wasting loads more time including setting the computer back to default I attempted another install from the disk.  Still ended up with a black screen.

I tried pressing buttons starting with the F buttons.  It turned out that the display just needed the brightness button increasing.  By default the HP had gone to a low brightness setting when I was installing Ubuntu.  Once I saw purple I knew I had won.  I have been using Ubuntu for years with no problems.  I test drove Ubuntu on the disk then went for a full install.


/usr/sbin/grub-mkconfig: 34: /etc/default/grub: Syntax error: EOF in backquote substitution

The quoting is wrong in this line:
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash" pci=nommconf pcie_aspm=off"

It should be:
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash pci=nommconf pcie_aspm=off"


Confusion while installing Modem driver for ZTE MF100

You can fix it this way. Run in terminal

sudo -H gedit /etc/udev/rules.d/15-zte-MF100.rules

Editor will open. Paste there this text

SUBSYSTEM=="usb",SYSFS{idProduct}=="0039",SYSFS{idVendor}=="19d2",RUN+="/lib/udev/modem-modeswitch --vendor 0x12d1 --product 0x1446 --type option-zerocd"

Save the file, reboot the computer and plugin the modem.
It should work.


16.04 Asus Zenbook UX305UA freezes with HDMI

I was experiencing exactly the same problem with my Zenbook UX305UA...until today. This was a very annoying problem since it only has mini-HDMI output.
The external monitor/tv/projector was only working if the laptop was turned on with the cable already plugged, but was freezing if connecting the cable once the system was running. Only hard power off could restart the system.

I'm using Ubuntu 14.04 (64bits). (could not update to 16.04 for compatibility issues at work). I've tried different kernels... (http://kernel.ubuntu.com/~kernel-ppa/mainline/)

In the end, installing the latest kernel v4.6-rc7-wily has finally solved the problem.
Check also my previous answer in (https://askubuntu.com/a/750218/523046) to solve graphics issues on this laptop.

Hope it helps.


apt-get update command results in 404 Not Found error

sudo nautilus /etc/apt/sources.list.d
Delete the upubuntu-com-office-saucy.list file
Then run sudo apt-get update

The 404 Not Found will never comes for this PPA.

How can I fix a 404 Error when using a PPA or updating my package lists?


how to enable wifi in ubuntu 16.04 on dell latitude with broadcom limited bcm4313 adapter?

Your wireless adapter is hardware blocked according to your rfkill list output.

As far as I know Dell computers have a hardware switch that is off. You need to turn it on. Depending on the model it could be a Fn+some Fx key combination.

You can also check the BIOS to see if wireless is enabled there.

If you really can't find the hardware switch you can stop the dell_wmi by

sudo modprobe -r dell_wmi


How to create live backup of hard drive.

You should see this Comparison of backup tools

recommendations of backup tools and explanations

You could also take a drive image with clonezilla  http://clonezilla.org/


Remove 'Activities' folders: "Sundry" and "suse-yast.directory"

Launch Terminal and run

gsettings get org.gnome.desktop.app-folders folder-children

This should list all the app-folders currently in use.

Run

gsettings set org.gnome.desktop.app-folders folder-children []

to remove them all.

You may have to restart GNOME shell by pressing Alt+F2 and then typing r and pressing Enter or re-login to see the effect.


How to transfer files between my Android device and my laptop via WiFi?

I have never used zapya and don't recommend it
When I tried to download the Zapya for PC, I got a warning from Chrome that the page may contain malware. In any case, their web page said nothing about a Linux/Ubuntu download.
Here is an alternate solution
From Google Play store install Web PC Suit app into your android device.
Open the App. You will see something like this:

Note there are two web addresses shown. The first will need internet connection and show a qrcode, that you can scan using the app. You don't need to do this if you are concerned that contents of your Android device will be exposed to the Internet!
Use the local IP address, the second line with http://. The second line looks like a bunch of numbers: 192.168.0.7:8080. Yours will be different. Don't copy the number (also known as IP address) from this answer.
Type the IP address shown in the app, into your PC's web browser such as Firefox. Make sure the dots .s and the : are in the right places.
You will see a notice in the android app telling your someone is trying to connect to your android device. That someone is you! touch the Accept button.
The rest should be easy.
What is going on?
The Android app is basically a small web server that exposes the content of your Android device in a web page via a local IP address. You access the web page by typing the IP address in your browser.
The same content is forwarded to the App maker's external web server when you scan the QRCode, as this allows the app to communicate to the external server.
Is it safe?
It has some safeguards, such as if anyone tries to connect to the App (the web server in your Android device) then the app asks you to accept or reject. You should not accept the connection if you did not initiate it from your own PC.
Beyond this, I can't say how safe it is. If you don't trust the App maker and Google's system of vetting apps, you should not use it.
There are other similar tools like AirDroid that do file transfers the same way as above, and more.
Hope this helps


Gnome-terminal and Xfce4-terminal with ISO-encoding needs special-character keys to be pressed twice

The easiest way to get ISO-Latin encoded input and output in my bash shell running in a full UTF-8 environment (as usual with Ubuntu) is to use the workaround which has been mentioned in a related but not identical question here: "Switch encoding of terminal with a command"

When in my UTF-8 xfce-terminal or gnome-terminal I run my old ISO-Latin encoded programs like this:

luit -encoding iso-8859-15 gawk -f script.awk

… then the luit tool converts the ISO-Latin encoded input and output of my program (an Awk script in that case) to the UTF-8 encoded terminal.

This workaround works fine (so far).


Open a file manager and click on the partition to mount it. Then, run the following command to gain full ownership of the partition and all contained files:

sudo chown -R $USER:$USER /media/$USER/*

or,

sudo chown -R gsamaras:gsamaras "/media/gsamaras/a6cd1464-abf1-4a7b-b4a2-61f584d4cb32"


Differences between OvS with DPDK and without DPDK

IMHO DPDK is mostly used, tested and tuned for packet processing & forwarding. So a common simple network benchmark is somewhat on the edge of what this kind of racing car is optimized for.

Due to that specialized nature e.g. apps that do routing + special features - many tests often go for complex setups and include e.g. expensive traffic generators.

I must admit, that sometimes I wanted a simpler test as well and to some extend you can do it. I've for example compared a (most simple) Openvswitch setup with two KVM guests to the same setup with Openvswitch-DPDK.

In that case you can run Traffic East/West (Guest to Guest) or North/South (External to Guest). It can depend a lot on mimimal tuning, but I was able to show improvements with the following "normal" benchmarks:
Netperf - very small packets
Netper - 8k packets
Uperf - very small packets
Uperf - 8k packets
Uperf - very small packets, many connections

But for example no improvement as it was good before with:
Uperf - 8k packets, many connections
Iperf - single or multiple conenctions

The amount is different, but to some extend that was true for E-W and N-S connections. But be careful Host-Guest seems to be special and at least had issues in my cases.

The TL;DR to take away is: if the normal networking stack already is fast, you can't win a lot - and in fact you loose some due to being less efficient, so try cases where the normal Linux stack is slow.

All this is opensource and so is the work we do on it, so while my Tests are totally WIP (and atm not my prio1 to maintain) and might change a lot you might get some inspiration or even base your test on mine. I've uploaded some results generated by that in September on Yakkety for you => http://paste.ubuntu.com/23547387/. One release earlier I used an older version of it to create the numbers for my blog

P.S. as you can expect there are also degradations so as with all tuning - know your workload!


Wired connection drops out after a while

if you already have created a pppoe connection, then just run the following command

pppoe-start

it will start your default pppoe-connection.

to stop a pppoe-connection, run

pppoe-stop


MY solution goes with the link https://wiki.ubuntu.com/Bumblebee#Installation


How to store evolution's folders on a usb disk

Looks like you should have got an error-message while creating the links.
You tried to create the links in directories which didn't exist any more, because you moved them to your USB stick. This should work:

ln -s /media/user/evolution-backup/config/evolution/ /home/user/.config/
ln -s /media/user/evolution-backup/local/share/evolution/ /home/user/.local/share/
ln -s /media/user/evolution-backup/cache/evolution/ /home/user/.cache/

or

ln -s /media/user/evolution-backup/config/evolution/ /home/user/.config/evolution
ln -s /media/user/evolution-backup/local/share/evolution/ /home/user/.local/share/evolution
ln -s /media/user/evolution-backup/cache/evolution/ /home/user/.cache/evolution

Take a look at man ln.

You have to make sure that the USB-stick is mounted at the same location as it was mounted while creating the links.


Missing Gnome after Upgrade: Open /dev/fb0: Permission denied

To work around the permissions issue, you can use a Xorg.wrap config file to pass root rights, using:

needs_root_rights=yes

See man Xorg.wrap for the details.


How Disk size in "System settings -> Details -> Disk" is calculated

GB an GiB are two different units of measurement. 1 GB=1000 MB, but 1 GiB=1024 MiB, the same with MB vs MiB. That being said, some of the disk space is reserved for file system metadata. Some programs/utilities include this reserved space, some don't, also some (might) round up when transforming bits to GiB, some (might) round down, etc,