Took me a year, but I now finally understood the issue. The server I was working on  is situated in an internal network that restrict to only certain NTP servers.

Here's a list of useful steps to troubleshoot for Ubuntu 14.04 headless server

How to fix system clock drift

How to check current datetime

timedatectl status

you should see

# timedatectl status
      Local time: Mon 2018-09-17 10:49:04 +08
  Universal time: Mon 2018-09-17 02:49:04 UTC
        Timezone: Asia/Singapore (+08, +0800)
     NTP enabled: yes
NTP synchronized: yes
 RTC in local TZ: no
      DST active: n/a

How to see whether can access NTP servers

ntpq -p

# ntpq -p
     remote           refid      st t when poll reach   delay   offset  jitter
==============================================================================
 ns1.ericsson.se 194.58.202.148   2 u    3   64    1  237.716  1217396   0.000
 sesblx50.mgmt.e 194.58.202.148   2 u    2   64    1  242.759  1217391   0.000
 chilipepper.can .INIT.          16 u    -   64    0    0.000    0.000   0.000

If you see all showing .INIT. in refid means NOT connected to NTP server. Ask your network admin for NTP servers. This was my issue initially. If you see refid correctly pointing to some IP address, your NTP service is correctly connecting to the NTP servers.

How to update NTP servers

As root, go to vim /etc/ntp.conf

# Use servers from the NTP Pool Project. Approved by Ubuntu Technical Board
# on 2011-02-08 (LP: #104525). See http://www.pool.ntp.org/join.html for
# more information.
#server 0.ubuntu.pool.ntp.org
#server 1.ubuntu.pool.ntp.org
#server 2.ubuntu.pool.ntp.org
#server 3.ubuntu.pool.ntp.org

server time1.suppliedbyadmin.com
server time2.suppliedbyadmin.com

Change this then service ntp restart

How to force ntp system time update

Even if you update to the correct ntp server, the system clock might still be wrong. So you need to force the NTP update.

Stop the ntp service
Force the update with ntpd -gq
Then start the ntp service again

It should look like this:

 # service ntp stop
 # ntpd -gq
 ntpd: time set +1217.437601s
 # service ntp start

This should work

How to check if ntp service is running

Use service ntp status

 # service ntp status
 * NTP server is running

Even if you get that the service is running, that does not mean that the NTP service is correctly connecting to the NTP servers. Check ntpq -p command to be sure


upgrading to 18.04. How to continue after reboot?

From this ArchLinux forum, you appear to be missing fontconfig. Try this command and you should see similar output:

$ apt list | grep fontconfig

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

fontconfig/now 2.11.94-0ubuntu1.1 amd64 [installed,local]
fontconfig-config/now 2.11.94-0ubuntu1.1 all [installed,local]
libfontconfig1/now 2.11.94-0ubuntu1.1 amd64 [installed,local]
libfontconfig1-dbg/xenial 2.11.94-0ubuntu1 amd64
libfontconfig1-dev/xenial 2.11.94-0ubuntu1 amd64
python-fontconfig/xenial 0.5.1-1build3 amd64
python-fontconfig-dbg/xenial 0.5.1-1build3 amd64
python3-fontconfig/xenial 0.5.1-1build3 amd64
python3-fontconfig-dbg/xenial 0.5.1-1build3 amd64

When I tested the 16.04 to 18.04 upgrade, 233 packages were removed. Some of the removals were anticipated such as gksu but others were not. This may be your case. Hopefully if it's missing you can simply add it with:

sudo apt install fontconfig

Additionally you should not have been prompted to update until 18.04.1 is released on July 26,2018. Normally 18.04 can only be installed by manually running sudo do-release-upgrade -d.


How does Ubuntu Touch work when "docked" with keyboard/mouse/monitor?

The Touch Developer Preview published on 21 February gives a very good and deep impression of the current status of the project. The first focus was clearly put on the set up of kernel and basic services like networking, video, sound and other hardware support. Also important focus was put on the new user interface and the new application handling for qml-based apps.

What you are adressing, the docking feature that allows to establish a PC-like desktop behaviour from the mobile device was clearly anounced by Mark Shuttleworth but not much of that has been yet put into available code.

So up till now it's more a design goal, an idea supported by the fact that:

ubuntu is already a usable desktop OS,
ubuntu is able to be targeted to mobile cpus like arm
modern mobile cpus are powerful enough to take over the job for desktop OS.

And this finally makes the first step into the marketing statements before it is actually brought to life by the coding guys.

All this shows that your questions cannot be answered clearly at this point of time. In the Developer Preview we can see new applications in a new user interface. These new applications can also run on a desktop version. Also it is clearly possible to have a conventional Ubuntu running on a mobile device. This project https://wiki.ubuntu.com/Nexus7 shows its feasibility.


I manage to fix this issue following the instructions at https://github.com/linuxmint/cinnamon/issues/7664
sudo add-apt-repository ppa:nrbrtx/xorg-hotkeys
sudo apt-get update
sudo apt-get dist-upgrade


How to restore downloads folder from de ja dup backup

OK, so you have configured DejaDup correctly, because you were able to restore the other folders.

If that is the case, I have probably bad news to you. The default configuration of Deja Dup explicitly excludes the folders Trash and Downloads, as you can see on the following picture:


When do things in the new Unity Panel turn blue?

When an application alerts you or requires focus,a blue triangle would appear on the top-left of the Ubuntu button and an icon would also pop out and wiggle briefly.

The envelope will turn blue whenever you receive a new email or instant message.

When the system volume is muted and audio starts playing , the sound icon would turn blue for a brief period.


You need to use $HOME instead of ~ (tilde).

Tilde is bash specific. In bash tilde automatically expands to the $HOME value.

It has no special meaning, except for bash. See the bash manual for further details about tilde expansion.

Your launcher Exec command should be:

Exec=bash -c "qmlscene $HOME/file/path/main.qml"

Edit: My test launcher

[Desktop Entry]
Name=Myapp
Comment=Myapp
Exec=bash -c "qmlscene $HOME/foo.qml"
Terminal=false
Type=Application
Categories=Qt;
TargetEnvironment=Unity
StartupWMClass=do-not-directly-run-firestorm-bin
StartupNotify=true


unallocated space added under sda3, how to add it to sda5 now (gparted)

Remove the swap partition (/dev/sda6), resize your root partition (/dev/sda5) by 13 Gb, create a new swap partition in the remaining space on /dev/sda3.


How are packages suggested and what is the difference between extra and new packages?

There are three basic ways an Ubuntu package can depend or pull in other packages:

Depends - this is a hard dependency, the program you are installing requires this other package to run. If you try to uninstall one of these packages, your program will be uninstalled with it.
Recommends - this is a package the is needed or recommended for normal use of the program you are installing, but the program will work without it. By default Ubuntu will install these (unless disabled with --no-install-recommends) but it won't complain if you remove them later on.
Suggests - this is a package that can enhance the program you are installing but is not considered a part of normal use. These packages are not installed by default (unless enabled with --install-suggests) and would be considered like a "hey, you might find these interesting" from the package developer.

By default, Ubuntu installs packages marked as depends and recommends, and all these will be listed as extra packages, unless you specified some of them explicitly on the command line.

Packages marked as NEW are all the packages that are about to be installed, i.e. the packages specified on the command line and all extra packages.


I am going to get laughed off the planet. I was getting this error also; I had forgotten the all important sudo
sudo service apache2 restart


About execute "sudo python3 program" at ubuntu 1604

If you are using smartctl with subprocess.Popen()  and nothing else needs sudo privilege except subprocess.Popen() you can just add sudo to that part. For example,

subprocess.Popen(['sudo','smartctl','-i','/dev/sda'])

Since you're mentioning Qt in your question, you probably want to save user's password via a dialog and pass the password to subprocess via stdin. For instance,

proc = subprocess.Popen(['sudo','-S','smartctl','-i','/dev/sda',stdin=subprocess.PIPE])
smartctl_output  = proc.communicate(input=user_password_variable)

Depending on your purpose, you also might consider adding your username to disk group so that you shouldn't need to use sudo with smartctl at all


Background color of kate's search/replace input fields

There is the Gnome Color Chooser app that allows you to customize the desktop. Install by issuing the following command.

sudo apt-get install gnome-color-chooser

If will then show up in the System Tools | Preferences menu. Can also type gnome-color-chooser from terminal.

In the "Global Colors" tab there is a "Entry Field" section. I'd experiment by adjusting those colors to see if you get a better result.


You can try disabling the kernel module that is responsible for creating the beeps. Just edit the file /etc/modprobe.d/blacklist.conf and add the lines

blacklist pcspkr
blacklist snd_pcsp

If you save the file and reboot your PC should not beep any more. Consider that your PC doesn't beep any more at all. This might be what you want, but if not, this is not the right way for you.


How do I make my volume indicator operate in decibels instead of percentage?

According to pulseaudio's volume control page:

http://0pointer.de/lennart/projects/pulseaudio/doxygen/volume.html

The first problem might be the software doing some log calculations it's not supposed to do. (if it is then we need a bug report for that)

The second problem is impossible to fix, and that's the fact that the software can't know for sure what effect changing the volume by one degree will have in the real world. It can't know because of all sorts of factors.


This is likely to be because the update is currently being run automatically, or you are running it somewhere else (you would know about this). You can change how often it is run automatically, and also stop it being run automatically by running the following:

sudo dpkg-reconfigure clamav-freshclam

After completing the setup you will be able to run sudo freshclam without error (unless you set it to cron and you happen to execute the command at the time it automatically checks).


Not enough space in /var/cache/apt/archives/

sudo apt-get autoclean

This will delete all packages not currently installed. If that doesn't free up enough space, then use sudo apt-get clean. This clears out all .debs downloaded and/or installed.

But it looks like your harddisc is out of space. Seriously out of space. 61Mb is not enough for a good working systen. I found 2 alternatives that can circumvent space related problems though both might be hard to pull of when using a virtual machine.
A more permanent sollution would be to increase the size of your virtual machine (and I would also advice to use the method that allows the machine to dynamically to increase in size; VirtualBox has such a setting).

  Alternative if you have a partition or external storage.

With this method you re-route the location where .debs are stored:

sudo mv -i /var/cache/apt /media/{dir_of_mounted_disc}
sudo ln -s /media/{dir_of_mounted_disc}/apt /var/cache/apt

Run the upgrade and install. After you are done you can switch back to normal with:

sudo apt-get clean
sudo unlink /var/cache/apt
sudo mv /media/{dir_of_mounted_disc}/apt /var/cache

Ofcourse {dir_of_mounted_disc} needs to be change to the name of your mounted disc.

  Another alternative

This way you create a RAM disc:

sudo mkdir /media/{directory}
sudo mount -t tmpfs tmpfs /media/{directory}
sudo ln -s /media/{directory}/apt /var/cache/apt

Clean up as with the 1st alternative.

Warning this requires a large amount of RAM so may not be useable when using a virtual system.


DNS_ERROR_BAD_PACKET During Join Ubuntu to Domain

This issue occurs when /etc/resolv.conf is not setup properly.

Here is a sample resolv.conf:

domain     domain.tld
search     domain.tld
nameserver <ip address of domain DNS server>
nameserver <ip address of domain DNS server>


How can I fix a GTK 3 theme window border looking wrong?

The white line appears because the text does not fit into the window border. Making the text smaller should fix it. You can do that by changing the widow title font size in gnome-tweak-tool.


Cannot access the Internet even though ethernet is connected? DHCP problem

Your whole NetworkManager configurations are stored in the folder /etc/NetworkManager.
If you look around in the files in there there will be a file called /etc/NetworkManager/NetworkManager.conf this file is for you general configurations.
The default content of that file is

[main]
plugins=ifupdown,keyfile
[ifupdown]
managed=true

If that doesn't help. You could always try using the /etc/network/interfaces directly instead of using the networkmanager. See here for a manuel.


top command on ubuntu multicore cpu shows cpu usage >100%

By default, top displays CPU usage as a percentage of a single CPU. On multi-core systems, you can see percentages of CPU usage are greater than 100%. You can toggle this behavior by hitting Shift + i while top is running to show the overall percentage of available CPUs in use.

htop is a better alternative of top. In htop, you can see how your programs consuming all of the 32 cores.


What is "grub" command/program? Does it tweak GRUB2 as well or only GRUB legacy

GRUB (package name: grub), also known as GRand Unified Bootloader (Legacy version) is the predecessor of GRUB2 (package name: grub-pc), also known as GRand Unified Bootloader, version 2 (PC/BIOS version). So, grub it doesn't tweak with nothing GRUB2, but replaces GRUB2:

$ sudo apt-get install grub
Reading package lists... Done
Building dependency tree
Reading state information... Done
Suggested packages:
  grub-legacy-doc mdadm
The following packages will be REMOVED:
  grub-gfxpayload-lists grub-pc grub2-common
The following NEW packages will be installed:
  grub
0 upgraded, 1 newly installed, 3 to remove and 0 not upgraded.

Since with version 9.10 of Ubuntu, this has used GRUB 2 as the default boot loader for clean installs (prior to this it was GRUB).

See which are some differences here:

Differences between GRUB, GRUB2 and BURG
GRUB vs GRUB 2


Unable to use autohide launcher in 12.10

Solved adding

Option     "ConstrainCursor" "no"

to Section "Device" of xorg.conf (if xorg.conf is not present, create it with "nvidia settings") as described here.


I think there is not much difference. I had more Software issues with 64-bit, so I switched to 32-bit. My feeling was it is a little slower. With PAE you will have your 6GB RAM and you have it with the I3.

So, if you don't have software issues - use 64-bit, but maybe 12.10...


"ubuntu" shows up in boot menu, but my laptop keep telling me that "No OS detected"

That photograph is from your BIOS boot media menu. It detects some device - USB stick, another hard disk, or something - with name "ubuntu" on it. It says No OS detected, as that is not your hard disk.

You should choose "HDD 0: WDC..." option, if you installed the Ubuntu to your hard disk.


How can I get pictures from Shotwell on the notebook to the desktop?

You may wish to give a chance to a syncing between machines service, such as Ubuntu One (Which comes pre-installed in 12.04 and easy to install in other versions).

This way you can sync your pictures folders from the laptop to your desktop and vice-versa.

Shotwell is going to read the files/folders from the same place in both libraries which allow you to also include Shotwell's information folder/database which is going to be in use for both the desktop and laptop's software. This way, whatever your father do in the laptop when traveling is going to be synced in the desktop and vice-versa. This solution is -however- limited to the available storage in Ubuntu one (starting from 5GB free) of which you can increase by choosing a storage plan (paid) and you may experience an issue or so if you try to make changes simultaneously in both the desktop and laptop, this will force you to use just one Shotwell at once.

There are some other syncing solutions like Dropbox but Ubuntu One provides certain useful services that may adjust what you need.

Good luck!


Need to mount a HDD out of a crashed windows 10 laptop to recover files. Error message below:

The system is most likely trying to protect itself because the HDD is corrupt or etc (which may solve your issue with your Windows 10 computer). You should try what bussbar said to do and mount the volume read-only. This question is also probably off-topic and does not have really anything to do with Ubuntu if this is the case.


Ubuntu and Samsung printer, printing strange code

I had the same problem with my  Samsung printer (Xpress C460w).
The following solved for me:
I went to printers -> additional printer settings-> add
new window opens: go to network printer wait for a few seconds until your printer will be found, and click on it. On the right bottom as connection chose:
LPD network printer via DNS-SD

(for me Appsocket/HP Jetdirect also worked only the "Driverless IP" one made that code by printing)
Click on forward, wait a sec until the driver will be added, and print the test page to see if it worked


primus: fatal: Bumblebee daemon reported: error: Could not load GPU driver

I had the same problem.

I solved changing some lines in file /etc/bumblebee/bumblebee.conf: (In my case I'm using the version 352 of nvidia driver, change this value by your driver version)

KernelDriver=nvidia-current to KernelDriver=nvidia-352
LibraryPath=/usr/lib/nvidia-current:/usr/lib32/nvidia-current to LibraryPath=/usr/lib/nvidia-352:/usr/lib32/nvidia-352
XorgModulePath=/usr/lib/nvidia-current/xorg,/usr/lib/xorg/modules to XorgModulePath=/usr/lib/nvidia-352/xorg,/usr/lib/xorg/modules

After that restart the system or restart the bumblebee service with:

sudo systemctl restart bumblebeed.service

To check the service status:

sudo systemctl status bumblebeed.service

and you can check the log in /var/log/syslog file for any error.

Regards


How to install ubuntu from iso on hard disk itself?

Theoretically, if you create a separate partition and place Ubuntu Live CD contents in it, it should be bootable, but I dont think a simple sudo update-grub would be enough to add an entry to GRUB. You would have to manually create the entry in GRUB's configuration file. In this page you should have the necessary information to do that.


File Manager won't display folder contents within same window after upgrade to 14.04

Do you mean Folder View? There are 3 types of Folder Views in Nautilus:

Icons (Ctrl+1)
Lists (Ctrl+2)
Compact (Ctrl+3)

And I think you mean Lists view. Just try the shortcut keys given above.


'nohup' command is not working with 'watch' command

You could just run it in a tmux or screen session and leave it there. Or write a small upstart script fx

description "main"
author ""
start on filesystem and net-device-up IFACE!=lo

exec python3 main.py

and let the main.py handle the iteration.


Updating Nvidia drivers 11.10 (nvidia 290.xxx.xxx)

To update, to the latest Nvidia drivers run these commands:

sudo add-apt-repository ppa:ubuntu-x-swat/x-updates
sudo apt-get update
sudo apt-get dist-upgrade


How can I tell if I'm affected by "The 11.10 Battery Power Drain"?

AFAIK the easiest way is to install Windows, let the computer run while browsing some files and register average temperatures and fan speed. Then install Linux (don't use LiveCD) and do the same using the terminal command: sensors
There is no real fix to the problem. Only partial solutions that will never let you come even close to what you'd have on Windows.
http://ubuntuforums.org/showthread.php?t=1865820

I've never read about people killing their install testing those "fixes". You can easily add, during boot, the parameters for one session only by holding Shift key to bring up the GRUB and hitting E key to enter the appropriate menu. You can test whatever power related parameters you want this way and after successful testing - add them permanently to GRUB (see the link above)

Another way to verify the potential risk of your system being affected is to refer to Motherboards With Broken ASPM On Linux Posted by Michael Larabel on October 10, 2011

Remember, desktops and servers are affected as well!

Generally Phoronix seems like best resource to read about the subject.

EDIT:
Re the point #2 - that's why you should vote "it affects me" here https://bugs.launchpad.net/ubuntu/+source/linux/+bug/760131
Second - the question title is a little bit misleading as the "power drain" started since kernel version 2.6.35 (source) and subsequent kernel releases added even more power-related regressions without solving the old ones (source: Phoronix).


How can I prevent wine from disabling/shutting off my "secondary" monitor?

This is what worked for me:

http://laviefrugale.blogspot.com/2011/08/re-enable-second-monitor-in-linux-after.html

xrandr --auto didn't work, it reenabled the second monitor but it was a clone of the first. But I used the command xrandr --auto --output DFP2 --right-of DFP1 and the other monitor was enabled properly (single desktop spanned across monitors). Might have to swap the two if your second logical monitor is on the left.


I'm assuming you're right-clicking in the File manager's window. If that is correct and if your file manager is PCManFM,

If you choose Detailed List View

ensure that no file or folder is highlighted (or selected)
then position your mouse cursor in any column other than the one titled "Name" in the main pane (not in the side-pane "Places") and then right-click.

Or, you can right-click anywhere in an empty area below the list of folders and files if such area is available.

If you choose Icon Mode,

things are simpler. Just don't have your mouse pointer over an icon or its title when you right-click!


First, your wlan0 interface is DHCP, so you have to look if it requests, and gets, a DNS server IP with its lease. You can do this by simply testing lookups from the router computer to see if they work. More precisely look at the request and the granted lease.
If you are using the default /etc/dhcp/dhclient.conf file then you should see something like this:

request subnet-mask, broadcast-address, time-offset, routers,
       domain-name, domain-name-servers, domain-search, host-name,
       netbios-name-servers, netbios-scope, interface-mtu,
       rfc3442-classless-static-routes, ntp-servers;

where you can see part of the request of for domain-name-servers. You can modify the request and/or override things in this file. The granted lease should be in /var/lib/dhcp/dhclient.wlan0.leases and you should see a DNS line therein.

Second, your client computers are using static IP addresses so you have to tell them what to use as a DNS. You need to add that to their `/etc/network/interface files, i.e. (I am not familiar with "allow-hotplug", but have left it):

allow-hotplug
iface eth0 net static
     address 10.0.0.2 (changed for each client)
     netmask 255.255.255.0
     broadcast 10.0.0.255
     gateway 10.0.0.1 (Ubuntu Router IP)
     dns-nameservers 192.168.0.1

Third remove the dns-nameservers stanza from the router interfaces file. It doesn't belong there.


How can I use Rofi to insert boilerplate text snippets into browser windows in an Xorg session?

Requirements: rofi, xclip, and xdotool in an Xorg session

According to apt show rofi, Rofi is a

  window switcher, run dialog and dmenu replacement

I searched the internet and came across User scripts. One of the scripts listed there, Kaomoji Rofi is described as "a simple kaomoji picker". I took its code (which I don't fully understand) and modified it:

#!/bin/bash

selection=$(rofi -i -width 1000 -theme solarized -dmenu $@ < /home/dkb/Documents/snippets.txt)
kaomoji=$(echo $selection)
echo -n "$kaomoji" | xclip -selection clipboard
sleep 0.1
xdotool key shift+Insert

Rofi doesn't feature word wrap and so having -width 1000 or more is useful to see as much of the snippet contents because only one line is allotted to per snippet. Anything exceeding the width is represented by …
if -theme isn't used, the default theme or the theme last chosen by using rofi-theme-selector as described here will be used.
The snippets are in a plain text file, one snippet per line. (Running sort -u -o $HOME/Documents/snippets.txt $HOME/Documents/snippets.txt once in a while keeps them sorted though it isn't really necessary.)
sleep 0.1 and xdotool key shift+Insert are not essential. Users can use their preferred method to paste clipboard text.

I saved the script as rofi-snippets.sh in $HOME/bin, made it executable, and bound it to Ctrl+` as the keyboard shortcut to launch it.

Users can rapidly select the snippet of their choice by typing in one or a few characters to highlight just the one snippet and then pressing Enter.

Here's an animation illustrating the script in action:


BY blackout I guess you mean Power Outage?
Just to be sure
From a terminal do

sudo touch /forcefsc

then reboot


This ui-toolkit PPA is deprecated, you need to edit it, either manually in the /etc/apt/sources.list file or in the gnome control center - software sources menu, changing the appropriate entries from

http://ppa.launchpad.net/ui-toolkit/ppa/ubuntu

to:

http://ppa.launchpad.net/ubuntu-sdk-team/ppa/ubuntu

So, change ui-toolkit to ubuntu-sdk-team.


First, change directory

cd ~/.local/share/applications

Then, open nano editor:

nano JabRef.desktop

Add the following to the file:

[Desktop Entry]
Type=Application
Terminal=false
Icon=PATH TO YOUR ICON
Exec=java -jar /path/to/your/JabRef-3.2.jar
Name=NAME YOUR DESKTOP ICON

Then, Ctrl + X --> Y --> Enter.

It should create an icon for you to launch, just search for it in Menu.


Cairo Dock is uninstalled but the entry is still there in the Ubuntu login screen

You need to remove the package cairo-dock-data


Copy entire filesystem in a folder where a raid-1 array is mounted

Ignore the warning, this is a longstanding bug.  The .gvfs directory is a virtual filesystem used to map things like network connections you make with nautilus.  It can not be accessed by root, even enough to see that it is a virtual filesystem and thus, should be skipped.


Deleted /usr/share/perl/5.26 because I had /usr/share/perl/5.26.1 folder

You have to simply use the power of APT to restore folder contents:
sudo apt-get install --reinstall \
$(dpkg -S /usr/share/perl/5.26 | sed "s/,//g" | sed "s|: /usr/share/perl/5.26||")

or more wider by
sudo apt-get install --reinstall \
$(dpkg -S /usr/share/perl/ | sed "s/,//g" | sed "s|: /usr/share/perl/||")


How can I reduce the time taken to login by postponing/delaying some startup applications?

The number of seconds needed to wait for your desktop to load is arbitrary and can change depending on the situation. Instead of sleep, try using the following to run startup applications as soon as the system load has declined:

(Edit: Added koushik's suggestion.)

#!/bin/bash
#
# Delays running an application until the system load has declined.
#
# Usage:
#   run-when-load-low 'your command here'

echo "export DISPLAY=$DISPLAY; $1 &" | batch

exit 0

Save it as ~/bin/run-when-load-low and add run-when-load-low 'COMMAND' in Startup Applications Preferences.

Notes on this method:

The script above is what has worked for me. It passes only the DISPLAY environment variable to the application. For most desktop applications this will be all you need. With that said, be sure to consider any special cases and keep this fact in mind when troubleshooting anything that isn't behaving correctly. A good place to start if you think an application might need other environment variables passed is printenv and the application's documentation, though I personally haven't run into this problem yet.
My understanding of the system "load" value is that it does take into account IO waits, so delayed applications should not accidentally start too soon during the CPU usage lulls caused by desktop processes waiting on IO. This is not an area I know much about though, so please correct me if I am wrong here.
batch only affects when applications are run; it does not alter their priority/niceness.
This should go without saying, but if your system always has a high load, applications scheduled using this method might never run.
If you need to run an application with a parameter that contains spaces, you can escape them using the backslash: run-when-load-low 'gedit My\ Notes.txt'. If you really need to pass single-quoted parameters to your application, you'll have to use double quotes in the startup command: run-when-load-low "gedit 'My Notes.txt'". For anything more complicated than this, you're probably best off just modifying a copy of the script with your command hard-coded.


Screen brightness and touchpad issues on Dell XPS13 - Ubuntu 12.04 LTS

I don't have real answers but:

I installed Linux Mint 13 on the same Dell XPS 13 with full HD screen and everything works fine.
Including the brightness and the touchpadspeed, but I think this speed is good for the laptop with normal resolution and for full HD we need double that speed, I'll try to find out how to alter this.
After some searching I found that there is a PPA for this machine:

Will I need a PPA for my Dell XPS 13 "Sputnik" laptop?

In this link you can find the PPA:

http://www.calazan.com/how-to-install-the-ubuntu-12-04-sputnik-image-on-your-dell-xps-13-ultrabook/

To add the ppa: sudo add-apt-repository ppa:canonical-hwe-team/sputnik-kernel

Edit: I also found that the kernel since 3.9 should support everything out-of-the-box, but only the brightness controls still are not reliable.
A procedure to update the kernel can be found at http://www.upubuntu.com/

It worked for me until my last apt-get dist-upgrade, so I advise against that, it stopped my touchpad doubleclick and sidescroll.
You can try Linux Mint 13-64 bit from a Unetbootin live USB after disabling Secure boot and UEFI.
I still have Windows8 on the machine under Secure boot and UEFI but only see it after I change my bios settings.
I did some partitioning from Windows before installing Mint.
Love the machine :-)

Please let me know if you want some more information.
Good luck.
Kees , the Netherlands.


I think there is an error in that you should not really be offered the online upgrade as I believe that you can only upgrade in this way from the previous version (11.10) or the previous LTS version (10.04).

You will have to do  fresh installation of 12.04 but if you have a separate partition for /home your data and configuration will be retained. I assume from your recent multiple reinstallations that that is the case and that you are familiar with the partitioning bit (ie making sure you don't wipe out the /home data!) but if not come back.

You will need to bear in mind also that since 10.10 (3 versions ago) the ubuntu desktop environment has dramatically changed and there must be a risk that you can experience issues due to configuration conflicts. I therefore strongly recommend that you backup all your data before you begin as you cannot rule out the possibility of having to start from scratch and restoring your data from the backup medium.

Hope this helps

Ian


OK,

Press Ctrl + T to open a terminal
Add repository of Faenza (ppa:tiheum/equinox) by running following command:

sudo apt-add-repository ppa:tiheum/equinox

Update available software information by running following command:

sudo apt-get update

Run sudo apt-get install faenza-icon-theme to install the icon sets
You need a tool for changing icon set. You can use Gnome Tweak Tool:

sudo apt-get install gnome-tweak-tool

Launch Advanced Settings
Select Theme from the right list and then change Icon theme: to any Faenza theme


If you used the repository to install. The package name is vivaldi-stable
Hence,
sudo apt-get --purge remove vivaldi-stable

If you installed the deb package directly, follow the instructions on their site:

While using Vivaldi, open Vivaldi menu button Vivaldi menu > Help > About. Or type vivaldi://about to the address field.

Make a note of the Profile Path, minus Default.

Open Files and search for the Vivaldi folder following the path you noted above.

Quit Vivaldi.

Delete the entire Vivaldi folder.


Some dialog boxes are bigger than screen/display

I had this problem with Ubuntu 12.04 on my netbook (1024x600 screen).  I "solved it" (really worked around it) by making sure that all windows start out maximized. This helps, because maximized windows that are bigger than the screen, show the scroll bars.  And, if you can access the scroll bars, you can thereby reach all parts of the window.

To do this, install CompizConfig Settings Manager, (which is kind of a scary program), and in Windows Rules, set the Maximized rule to class=.  This forces all new windows to come up maximized.

I didn't figure this out myself... I think this may be where I got the answer from.  I am not sure why I used the 4th answer there - I was very new to Ubuntu then! But, perhaps just knowing that starting all windows maximized is a workaround can help you google up more info if you need it.


Change the default shell to run .sh files

As the very first line of your scripts add in a shebang line for the interpreter.  That way you don't have to specify the shell before you run the script.

Examples:

For bash add in

#!/bin/bash

For sh add in

#!/bin/sh

etc.

With Linux file extensions are ignored to tell the kernel what type of file it is.  Instead it is best to add it as the very first line in the script to tell it what it is.  As a test here is the same file but with a different interpreter as the first line.

~$ file a.txt
a.txt: ASCII text
~$ cat a.txt

11
22
33
44
55
11

Now I will add a shebang line as outlined above as the very first line in that file and run the test again:

~$ file a.txt
a.txt: Bourne-Again shell script, ASCII text executable
~$ cat a.txt
#!/bin/bash
11
22
33
44
55
11

Hope this helps!


This is the default behavior.

You may want to take a look at the package iptables-persistent to automatically set iptables rules at startup from a configuration file.


How do I remove icons for other drives on the unity bar?

I think this is something we should support. Please could you file a bug on Unity, I'll get it considered and a design for the various workflows worked out.


Copy Ubuntu distro with all settings from one computer to a different one

Your best shot is imaging software like Clonezilla or FSArchiver. They'll make sure you get the exact copy of the source OS.

Another neat way is TAR Backup, but you'll have to fix UUIDs are reinstall Grub.

In case you prefer the manual way, as outlined in the question, then copying the home folder will take care of dconf and gconf.


Okay, open a terminal and run these commands: or cd into the unzipped directory and then run sudo openvpn --config "TunnelBear Germany.ovpn":

wget https://s3.amazonaws.com/tunnelbear/linux/openvpn.zip

unzip openvpn.zip

cd openvpn

sudo openvpn --config "TunnelBear Germany.ovpn"

Enter your password for sudo, then vpn username and vpn password. Keep the terminal open and do not close it until you are ready to stop the VPN; closing the terminal closes the VPN session. Also, the terminal will output realtime status and error messages so you can keep tabs on the tunnel status.

I guess you have to run the command from the directory that contains all the files (cert key etc), otherwise the config file won't know where to find them. That is not typical of openvpn client files but they all (different vpn providers) seem to have their own (slight) unique differences.

These commands replace the "tb-downloader.sh" script from github in case you tried using that as the original script fails to rename the files as country.ovpn.

wget https://s3.amazonaws.com/tunnelbear/linux/openvpn.zip; unzip openvpn.zip

mv openvpn tunnelbear.d; cd tunnelbear.d

for f in *.ovpn; do mv "$f" `echo $f | sed 's/ //g;s/TunnelBear//g'`; done

cd ..; chmod 600 tunnelbear.d/*; sudo chown root:root tunnelbear.d/*


The latest Midori and WebKit should give you what you want via the PPA. Run the following commands to make it work.

sudo add-apt-repository ppa:webkit-team
sudo add-apt-repository ppa:midori
sudo aptitude update
sudo aptitude upgrade

Otherwise try to start midori via the command line and paste the output here from what it shows when you go to Youtube.


A router & maybe a switch or two (depending on how many ports are on the router) and lots of ethernet cables will be needed to get packets moving.  A print server (I use a Trendnet TE100 to link my non-network-capable printer into my home network) or a network-capable printer would also be easier than "everybody email Bob because he's the only one with a printer."

Yes, you'll want a server to store files centrally.  Probably the easiest way to force employees to store everything on the server instead of hoping they remember to drop copies on the server (which you will want to backup daily, so have a spare hard disk or two, in which case they can alternate being local/remote nightly) is to make their home folders be mounted over NFS, which would mean configuring /etc/fstab on each and setting their UID/GID in /etc/passwd & /etc/group to match their NFS UID.

If you want centralised login (which would let you have 1 user/pass for each employee -- handy if you want to be able to login to any computer, a VPN, email, or whatever other network services you'll be running internally), look at LDAP
https://help.ubuntu.com/community/AutofsLDAP

If you want to be able to force update installation and go around adding software to them all, you'll want to install openssh-server on each system to let you ssh in.  There are a few ways to send the same command to lots of systems, particularly in the clustering arena.  I use Terminator for my terminal emulator, so I'd find it easy to just open ssh connections to all of them and use the "broadcast command" feature.


Firefox no longer recognizes that Javascript is enabled?

I factory-reset Firefox, and the problem was fixed. Even after reinstalling all my extensions, the problem has not reappeared. I have no idea what was going on.

If anyone has my problem in the future, I advise factory-reseting Firefox. Just go to Help > Troubleshooting Information, and then hit "Refresh Firefox". That's what I did.


Completely Factory Reset my computer help!

If you did indeed overwrite it, then you will need to get a hold of a windows install disc, or use an .iso to make a usb install drive.

Microsoft actually provides a tool for this. http://www.microsoftstore.com/store/msusa/html/pbPage.Help_Win7_usbdvd_dwnTool


Even if you boot in GNOME 3 in fallback mode (what you call GNOME Classic) it would look like GNOME 2 but it won't be GNOME 2 and you won't be able to add applets and there is no right click on panels (nothing happen if you do a right click on panels) but you can do a Alt+RightClick on it to access it's properties dialog.

I suggest you try using GNOME shell, it's hard to use at first but you'll get used to it in no time.


Here are some things you can do to get a desktop similar to the one in the screenshot.

Move Ubuntu dock to bottom from left: follow this Q&A
Make the dock flexible instead of fixed-length: Run the following command in Terminal

gsettings set org.gnome.shell.extensions.dash-to-dock extend-height false

(source)
Install and use Arc theme: The application theme in the screenshot looks like the popular Arc theme. Install it first by running

sudo apt install arc-theme

Then install (GNOME) Tweaks by running

sudo apt install gnome-tweak-tool

Finally, launch Tweaks and select Arc for application theme in Appearance section.


You can not get back the contents. There is no mercy.

But search for backup files. If you are lucky enough there will be a file named hello.txt~ for hello.txt in the same directory. Those files are usually created by text editors like gedit or emacs when you edit a file.

If you have such backup file you can get the contents back (you may get back only a part also). Use the following in the terminal,

mv hello.txt~ hello.txt

It is better to have even a part than losing it completely.


From this site http://www.subnet-calculator.com/cidr.php you can determine what your CIDR Address would be for your subnet.  Remember that a /24 is what you set your Mask Bits to.

Your subnet line for your subnet should be 10.1.1.0/24 (which is your Net: CIDR Notation) for your network with a gateway of 10.1.1.1 and your IP address of 10.1.1.169


How can I pin the toolbar so that it remains revealed?

I think there is a bug in the Ubuntu UI toolkit discussing whether this should be implemented by default. However, it currently must be done manually.

This is what I use:

onActiveChanged: tools.opened = showToolbar

tools: ToolbarItems {
    locked: showToolbar
    opened: showToolbar
}

Unfortunately, there is a bug in the SDK that causes a  2gu margin above the toolbar. I fix that by adding this to my MainView:

states: [
    State {
        when: showToolbar

        PropertyChanges {
            target: taskViewPage.parent
            anchors.bottomMargin: -root.toolbar.triggerSize
        }
    }
]


Is there a grub- reboot equivalent to do a one-time boot into ubuntu from windows?

I do not think that changing Grub bootloader is possible via Windows. However you can set the grub to default to Windows as a default choice, instead of Ubuntu.

I will not recommend timeout set to 0 (unless you have some serious ninja skills). Its best to keep a short duration like 5 seconds if you do not wish to stay too long at the grub menu, or suppose if you wish to open Ubuntu sometimes.

Here is how to change the boot order in Grub:

To change the default loading entry, you need to change the GRUB_DEFAULT as given below.

you need to edit /etc/default/grub . To do that,

Execute : sudo gedit /etc/default/grub

Now change the GRUB_DEFAULT=0 to any entry you wish.

The first entry is 0 , second Entry is 1 and so on..

Source: How to change the order to choose os during boot?


PDF exploit has included JS code, it can only be run if you are viewing the infected document, you can enable Noscript plugin to block websites to redirect to such document, such backdoor could be on any Website, it's recommended to read HTML code before you visiting to a Webisite, read info here: http://zneweasy.com/2015/07/05/how-to-read-website-content-without-browserno-hacking-tutorial/, as for PDF exploit, they can be executed only when you open such file, read more here: http://zneweasy.com/2015/07/09/is-pdf-file-backdoor/


ATI graphics card overriding onboard Intel graphics

All I can recommend is: Check your BIOS.

If it's not showing up in lspci, the problem is way above X's jurisdiction. It could be kernel related but logically speaking, this sounds like a power-saving "feature" on the motherboard.

Check through the settings in the BIOS and see if you can see anything to do with the onboard graphics. If it's set to something fuzzy like "Auto", change it to something more assertive like "Enabled".

Or buy a new card with both outputs on the one card. As AGP is dying out, they're quire easy to pick up second hand, dirt cheap. Leave it much longer and they'll start going up as they get rarer.


You should not be using spaces before the backtick. Additionally, use $( .. ) instead of backticks and quote it:

var="$(grep '<a href="http://www.blabla.cc' file.txt)"


You can install it from the texinfo-doc-nonfree package:

sudo apt install texinfo-doc-nonfree

Quoted from /usr/share/doc/info/README.Debian:

This package does not contain the info documentation of info and texinfo,
as they are licensed under the GNU Free Document License with Cover Texts,
which is considered as non-free in Debian.


WiFi working sporadically on Ubuntu 14.04

First, I recommend that you install 14.04, unless you have a specific reason to stay with 12.04.  This problem may be caused by a wireless driver, which is often fixed with newer versions of the Linux kernel.

I've heard of issues with this laptop's graphics not playing nicely with Ubuntu, but I could not find any information on wifi problems.  Are you experiencing any other issues?  It may be a problem on the hardware side of things.

Here's what you should do: install 14.04 LTS unless you really need to stay with 12.04.  If that doesn't help, make sure nothing is wrong with the hardware itself.  Finally, if your laptop is in great condition, but the problem persists, run the program "additional drivers" It will search for available drivers for your hardware, and may fix the problem.


Cannot install mysql server 5.5 on ubuntu 14.04

dpkg --get-selections | grep "mysql"(It list all installed mysql in your system)

If still mysql installed In Your System remove it first by using following commands.

    sudo apt-get --purge remove mysql
    sudo apt-get autoremove mysql
    sudo apt-get autoclean mysql

check for /etc/mysql/my.cnf and /var/lib/mysql files. If these files still exist then remove them by using

  sudo rm -rf /etc/mysql/
  sudo rm -rf /var/lib/mysql/

Above two commands completely removes your MySQL data directory and configuration file.please sure before removing it.

Once update your system:

sudo apt-get update

After update install MySQL server

sudo apt-get install mysql-client mysql-server


Create separate primary partition to install linux

The small partition before Windows partition is probably needed to boot your windows partition and you mustn't touch it.

You can try to follow these steps to install Ubuntu:

Move the content of /dev/sda4 (1.39GiB) in a secure place (like Windows partition or an external USB);
Now reboot your PC from Ubuntu live drive (DVD or USB) and delete /dev/sda4 partition: select the partition, right-click on it and choose delete;
right-click on the unallocated space (grey box) and choose new. Now select the wished partition size, format it as ext4 and be sure to make it as primary partition.
Note: keep a small unallocated space as big as your RAM. This is needed for swap area.
Once you have created a primary partition repeat the previous step
and create swap area choosing linux-swap instead of ext4 as file system.
Apply the changes and wait for the end of work.
When you are ready, start Ubuntu installation and when you reach section Installation type choose Something Else.
You should see a similar screen as GParted. Right-click on ext4 partition and select Ext4 journaling file system instead Do not use partition and select as mount point /. After this do the same for swap partition and select Swap area instead Do not use partition.
In the end, choose /dev/sda drive (default) to install GRUB bootloader. When you go ahead with installation check that it will use the correct partitions.

Following these steps you should be able to install Ubuntu.

Edit partition through Windows

If you can't edit your partition in Ubuntu, you can try to do this in Windows. So right-click on This PC and choose Manage. Now from the list on the left select Disk managent. After this you should see something like GParted (similar image here). Then select the 387GB partition, right-click and choose Delete volume. Now you can come back to Ubuntu and you should be able to edit that partition as you want.

I hope this could help you.


About powering USB device on Linux: Android camera app recognizes USB camera but Ubuntu doesn't

This device (1e4e:0102) should show up as: Etron Technologies, 'USB 2.0 Camera'

see: Linux UVC driver and tools

The site suggested that this should be fully supported, and yet it is not ..

You haven't yet identified hat version of Ubuntu you are using.


Printing problem: How to install a printer profile in darktable

In case this problem has not been solved:

Create the following directory path:

mkdir -p ~/.config/darktable/color/out

-p is for creating a path of directories; if the parent directory doesn't exist, it will be created;

~ is a shell function for the path to your home directory ($HOME).
Finally, you should copy the printer profile to the out directory.


You can append the --assume-yes and --force-yes flags to automatically say yes to all.

sudo apt-get --assume-yes --force-yes install <packagename(s)>

To make these changes permanent, edit /etc/apt/apt.conf and add the lines

APT::Get::Assume-Yes "true";
APT::Get::force-yes "true";

This is what the man page of apt-get says -

   -y, --yes, --assume-yes
       Automatic yes to prompts; assume "yes" as answer to all prompts and
       run non-interactively. If an undesirable situation, such as
       changing a held package, trying to install a unauthenticated
       package or removing an essential package occurs then apt-get will
       abort. Configuration Item: APT::Get::Assume-Yes.

   --force-yes
       Force yes; this is a dangerous option that will cause apt to
       continue without prompting if it is doing something potentially
       harmful. It should not be used except in very special situations.
       Using force-yes can potentially destroy your system! Configuration
       Item: APT::Get::force-yes.


Change font used in the tab-bar of TreeStyleTab

Install Stylish extension:

https://addons.mozilla.org/en-US/firefox/addon/2108/

Then add this script:

@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");

.tabbrowser-tabs .tab-text {
 font-size: 4mm !important;
 font-family: Condensed DejaVu Sans !important;
 font-weight: bold !important;
 color: #ffffff !important;
 text-shadow: 0 0px 2px rgba(0,0,0,2),
        0 0 1px rgba(0, 0, 0,1) !important;
}

Change options to your linking.

It will look like this:


How the installer can find my preseed.cfg file?

Currently, Ubuntu just support a subset of Aliases (https://help.ubuntu.com/12.04/installation-guide/i386/preseed-using.html)

You don't need:

preseed/file=/hd-media/preseed.cfg

You should try:

file=/hd-media/preseed.seed

Please consider to rename your preseed to .seed !


Check the permissions of your X11 related files, in your home directory. They should belong to you completely.

Use a virtual terminal (CtrlAltF2 /3/4/5/...) to login, and make sure your ~/.Xauthority file has a you:yourgroup ownership. You can use the following command once logged-in :

ls ~/.Xauthority -l

If the permissions are incorrect, use :

sudo chown you:yourgroup ~/.Xauthority

(you must be a sudoer)


Where can I download some default ubuntu icons

There are a lot of icons on your system. A directory like /usr/share/unity/icons/ has a lot of them dedicated to Unity. So has /usr/share/icons/ (that one also has specific icons for gEdit per theme installed). Be careful: icons can be copyrighted so don't just copy them into your own software. Or they are "free-to-use if credits given to the author". It might be better to create your own if you want to avoid that.

There are 3 main locations on the web for icons (not specifically for gEdit; you tend to get sets of icons with a matching theme). I listed some examples from both sites. These icon sets also can have copyright.

Deviant Art. Captiva icon (PPA below the image).

sudo add-apt-repository ppa:captiva/ppa
sudo apt-get update && sudo apt-get install captiva-icon-theme

Gnome looks. Square Beam (no PPA). Compass (PPA below the images).

Installation:

sudo add-apt-repository ppa:nitrux/nitrux-artwork
sudo apt-get update && sudo apt-get install compass-icon-theme

Ubuntu art.org. Vibrancy

The Ravefinity PPA has TONS of them. Source files.

deb http://ppa.launchpad.net/ravefinity-project/ppa/ubuntu utopic main
deb-src http://ppa.launchpad.net/ravefinity-project/ppa/ubuntu utopic main

Signing key: 1024R/E2D0EBE9
Fingerprint: AB3C11871E5ADDD637F8BAA89B0BBF00E2D0EBE9

Going a little bit off topic: icons do not need to be Ubuntu specific to be used in Ubuntu.

Flaticon has a lot of Vector icons and in categories but not specific to computers but all for free. Networking, Multimedia.

And to close this of a generic search on color icon sets on google.


How does the installer know what machines are on my network?

Based on a launchpad entry it appears that avahi may perform a scan of the network.
http://bit.ly/1eqBSRr

If I was going to do it as a user, I'd be using nslookup to confirm the local name server didn't have an entry for the host.


I found a solution months ago on an OBS forum for the same problem which involved reinstalling OBS from ppa.
sudo apt update
flatpak remove com.obsproject.Studio
sudo add-apt-repository ppa:obsproject/obs-studio
sudo apt install obs-studio v4l-utils v4l2loopback-utils v4l2loopback-dkms

I also added some packages at the end to be sure no v4l2loopback package is left behind.
In the case you don't have OBS installed with flatpak, just make sure these packages are installed and up to date:
sudo apt update
sudo apt install v4l-utils v4l2loopback-utils


What happened to system-config-samba in 19.04?

It went where all unsupported software goes: https://bugs.launchpad.net/ubuntu/+source/system-config-samba/+bug/1740419

In addition the logic of the application also has not been updated for years -- it has an option ( setting security to "share" ) that actually disables samba from running. It should have either been updated or removed years ago.

Speaking of packages that should have been removed years ago I see that gadmin-samba is still in the repository. I would suggest not installing it. It was state of the art at Version 2 of samba but now that we are at Version 4 it's actually destructive. If you run it and have problems no one will help you debug it because no one remembers how V2 of Samba works any more.

You can use nautilus-share which allows you to create a share from your file manager or use a text editor and modify /etc/samba/smb.conf directly.


Ubuntu 16.04: apache2.service start failed, segmentation fault (core dumped)

Finally found an answer here! https://stackoverflow.com/questions/39310952/upgraded-ubuntu-from-14-04-lts-to-16-04-lts-and-bugzilla-stopped-working/43438371#43438371

I had decided to disable all apache config and enable one by one. And apache2 reload failed when I enabled the Bugzilla-specific config.  Looks like it's perl modules were conflicting with Ubuntu 16.04.  I used CPAN to update perl modules, renamed bugzilla/lib to bugzilla/lib.old and ran bugzilla/checksetup.pl.

The script recreated the bugzilla/lib contents, and apache2 reload was successful.


From examining the ppa itself 1:2.32.0-0ubuntu5~ppa140 looks to be the right version.

Did you try apt-cache policy nautilus to see if the ppa is correctly listed in package sources ?


I had a similar problem and solved it that way:
Used Alternate CD (text mode installation - for more information pls look ubuntuusers wiki = alternate cd)
=> reboot
=> login and install desktop (f.e.: sudo install ubuntu-desktop)
=> reboot
=> select "save graphic mode" or something similar
=> install proprietary nvidia driver
=> reboot
..with me it worked

Good Luck!
jvbuxtown


Why a service in init.d and not in rc*.d started?

According to update-rc.d manual:

  When  invoked  with the remove option, update-rc.d removes any links
  in  the /etc/rcrunlevel.d directories to the script /etc/init.d/name.
  The  script  must have been deleted already.  If the script is still
  present  then update-rc.d aborts with an error message.

So you should remove your script in /ect/init.d before you run update-rc.d command.


VMplayer doesn't show installed virtual machine

Thats not exactly an ubuntu question ..

VMWare Player on ubuntu seems not to remember the VMs from one session to the next one. So just "Open a VM" from the GUI.


From within Ubuntu, it gets real hairy. Not recommended. Follow this lengthy forum topic. The hacks can be found here


Download aborted when computer went to sleep

Yeah I had this problem too. The only way to fix it is to not let the computer go to sleep (even if the screen is off, can't remember how to, sorry) , or get a browser that supports suspended downloads. Vivaldi worked for me last time.


Files in /etc are config files and are kept around when you remove a package in case you reinstall it in the future.  If you want to get rid of them, you have to purge the package:

sudo apt-get remove --purge iptables-persistent


I cannot wirelessly connect my HP Pavillion DV6000 to the Internet

You probably have the Broadcom 4311 wireless chip, so the b43 driver, supplied by default will work just fine.  All you needed to do was supply the firmware for it by installing package linux-firmware-nonfree.  You may install the packge now, but if things don't work, then you really have to clean out all the STA stuff which is interfering.  Search for 4311 wireless, and you should find numerous detailed solutions.


If you use a normal live installation you can't save files.

But if you create yourself a persistent ubuntu Installation you can. That's the point of a persistent ubuntu. It allows you to save files and therefore config files as well.

Your system might not be as fast as a dual boot or even in a virtual box, but if you don't have any other chance, it is still usable


Windows 7 installed on a separate drive won't boot from GRUB

The solution editing the grub entry for windows 7, by pressing e on it in the menu.

I added:

insmod ntldr

to the top.

I removed:

chainloader +1

from the bottom

Finally I added:

ntldr ($root)/bootmgr

to the bottom.

I still got the grey and black screen but hitting esc on this brought up a blinking cursor and then the Windows boot menu! hurrah!

I got my information from this post on the Ubuntu Forums

Thought it might help others.

The strange part is: changes to the GRUB entry don't persist between boots. BUT now whenever I click on the Windows 7 entry, I go straight into the Windows 7 bootloader, without having to edit the entry again??? This is one of those "i don't know why it's not working", "now its working and i don't know why it is working" things haha


Mounting a MyCloud share to ubuntu 16.04

After a few days of gnashing my teeth, I figured it out. Such a stupid mistake. In the NAS setup under the NFS options, there is a field to set the IP address of the computer you want to have access. I THOUGHT my PC was set to a static IP address, 192.168.1.103, however after setting the option to *(allow all ip's) it worked. Turns out for whatever reason, my PC decided to go with DHCP. Its Ip address was 192.168.1.101. The access denied was based on the IP address..not the user name


What is this error? ctrl+Alt+t is also not working

Technically speaking your dbus which can be thought as an service talking to different programs simultaneoulsy and syncing them whenever necessary.You can get more information here d-bus wiki.

An simple example could be your usb modem connecting itself to your system via USB serial mode, then d-bus tells your serial mode aka ttyUSB0 to make yourself available to modem-manager.Thus now modem-manager is now able to communicate to your USB modem via d-bus. So after this you can connect to internet via modem-manager. You can easily see there is a co-operation between serial process controller(to manage serial connections),ip host controller(to control ppp0),udev rules(to mount your device as a network card),D-bus(desktop-bus),modem-manager(network-manager applet to control modems).

Your d-bus happens to be fork for GNOME i.e GDBus.
Now based on the error it actually means that there is no process/sub-process associate it with,So simply it had to terminate. or there could be the parent process terminated before the child process began.

In your case the terminal is not able to be called due to error establishing a connection.So could you instead try some another terminal like Xterm,terminology,etc to see wheter those are able to work or not. Then try launching your main terminal from the menu.If your main menu launches then there may be a key binding issue so upgrading might help.

Think it this way. You dialled a number using your phone.Your telecom operator established a connection via the BASE_station (BTS) exchange mechanism.Then it forwarded to your called number.While doing so the BTS failed in your area due to some reason.You got network issue and the call was disconnected. During the same time your destination number got a ring (forwarded by your exchange) and got dissconnected.


when you have a partition of some size then formatting it might a) drop some non-useable fractions at the end of the partition due to the granularity of the file system, and b) use up some space for managing the data this new volume including the journaling (crash fail safe feature) and similar things (like wear reduction methods). this is natural and specific to the selected file system. selecting (or designing) a different file system can change this. sometimes there are configuration options to the file system at creation time that can alter this memory consumption footprint as well. some file systems might even be able to re-configure an existing volume.

when your system is running you might have running applications that have used up some space, released it again but have not yet closed those files (via their file handles). there might be further aspects in this scope, e.g. the special case handling for hard-links. closing applications selectively might free and thus unveil the originator. just cleaning up the state should happen when the machine is rebooted next time. there should be tools for monitoring file handles and file usage of applications - e.g. the 'strace' tool shows some basic capabilities. (there are some more advanced approaches out there for such sort of monitoring, some of them are still based on the stock 'strace' binary.) just monitoring the list-able files in the system is probably less likely to unveil the root cause for those specific case.


Found an error in font in Ubuntu, where and how should I report it?

run command:

ubuntu-bug ttf-dejavu-core

and follow instructions.


Wifi Problems with Intel Centrino Wireless-N 2230 on Ubuntu 12.04

I have a Toshiba Portege z935 which had the same or similar issue. I believe there is a bug that won't allow Bluetooth and WLAN to operate at the same time on this card. To solve it, reboot into BIOS and disable Bluetooth in the Advanced settings (may be different on your model of computer).

Once Bluetooth was disabled, my WLAN worked fine.


Quickly package/submitubuntu fails because of debhelper dependency

Solved by upgrading, it was indeed this bug:

https://bugs.launchpad.net/ubuntu/+source/quickly/+bug/1022514


How to stop maximizing windows in Unity 2d?

I had exactly the problem described and setting /apps/metacity/general/auto_maximize_windows to false worked for me!  (11.10 [Oneiric] with Unity2D)


14.10 upgrade left me with an unbootable system

I'll link to the blog/wiki page I found this solution on when I find it, because I really don't entirely understand what was going on.

The UEFI boot mechanism, as I understand it, is supposed to interpret the layout of the EFI filesystem and provide the person booting the computer with a choice of which boot loader to use. In the EFI filesystem on my machine after the upgrade, I had an "ubuntu" directory with a "grubx64.efi" file in it. The Thinkpad, however, did not seem to pay any attention to that, and that's why it treated the SSD as being unbootable.

This mystery blog post I found suggested that a way to work around the bad behavior of some stupid UEFI BIOS implementations is to create a "boot" subdirectory in the EFI file system, and to copy the GRUB loader to a file called "bootx64.efi" there. That is:

mkdir /mnt/efi
mount /dev/sda1 /mnt/efi
mkdir /mnt/efi/EFI/boot
cp /mnt/efi/EFI/ubuntu/grubx64.efi /mnt/efi/EFI/boot/bootx64.efi

I did that from the Live CD (well, Live DVD) and rebooted. To my absolute amazement, that was all it took. Apparently the "boot" EFI subdirectory is the default, so even dumb BIOS implementations will find that.

I don't know what will happen as I go forward updating the 14.10 environment. I guess that whenever I do an apt-get upgrade I'll check to see if the grub boot file has been update, and copy it over into the "boot" fake directory.

This is probably a per-BIOS weirdness.


how fix the issue that so that ubi-usersetup crash doesn't happen when I try to install ubuntu

This could just be a corrupted installation media.
You can try to burn a new installation cd / rewrite the installation stick.
If you want more input please post your syslog.


Wired net not working after upgrading to ubuntu 13.04

I had the same problem. I have Toshiba Portege. Surprisingly in my case I found that it starts working when the power chord is connected. After getting the connection I can remove the power chord. But after rebooting same has to done.


Is there something like batch file in Ubuntu?

Yes there is. It goes by many names. It is shell-scripts. BASH,Shell,BOURNE scripts, etc. In Linux, these scripts are in .sh format.

There are plenty of resources on learning more about shell scripting, hence google, Ask Ubuntu., even Youtube. There are books you can read as well on it. I recommend getting Classic Shell Scripting by O'Rielly. It is a great beginners book.


Password is required every time I open Laptop Lid - Ubuntu 16.04

Under the Settings (Gear Icon in launcher), click on the Brightness and Lock icon and at the bottom of it's window, uncheck the "Require a password when coming back from suspend".


Upload more than one file using the Web interface

This has already been requested and added to the wishlist.

Thanks.


If you have installed Ubuntu on a new partition and you are able to boot in windows successfully. Follow these steps for a new installation (as you are new to Ubuntu, this will make every thing easy for you).

  You don't need to create any partition for Ubuntu installation. So,
  if you already have created one just delete that partition and merge
  it with your windows c:/ partition to make it big for Ubuntu.
  Now just extract/mount .ISO of Ubuntu downloaded and copy 'wubi.exe'
  file to a folder on any drive you want.
  Also place the .ISO image file in the same folder as it is without
  extracting. Double click 'wubi.exe' file.
  Next, allocate some space for Ubuntu installation (~18 GB will be
  automatically by default allocated). Better if you allocate same
  memory you have parteted earlier for Ubuntu installation.
  Enter 'Password' and click 'Next'.
  When it asks to 'reboot', just reboot and when system restarts you
  will see Ubuntu installing. Just follow the steps and you are done.
  Now whenever you boot to your computer, you will see 'Ubuntu' and
  'windows', choose what you want to boot.

It will work same as dual boot only difference is it will use windows boot loader to boot from.

It is also easy to uninstall Ubuntu if you don't like it and want to.
Just uninstall as same as how you uninstall programs from windows. Just uninstall 'wubi' and 'Ubuntu' from windows.
Thats all.


Provided information (in readable formats):

  IPv4:
  (Pending or not provided)

  IPv6:
  Address: 2a03:6f00:4::bce1:224d
  Network mask: /64
  Gateway: 2a03:6f00:4::1

    These assumptions were added by the answerer, because these are not provided by OP:
    DNS Nameservers (Google DNS, IPv4): 8.8.8.8, 8.8.4.4
    DNS Nameservers (Google DNS, IPv6): 2001:4860:4860::8888, 2001:4860:4860::8844

Taking this from one of my other VPSes, not necessarily from the same provider, I am going to be using my /etc/network/interfaces as a guide.  You will need to reboot your VPS after these settings are changed.

Using this page on Debian wiki as a guide (which works for Ubuntu in most cases), and your information from your VPS provider, something like this is what you're going to be looking to have in /etc/network/interfaces:

# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

source /etc/network/interfaces.d/*

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
auto eth0
iface eth0 inet dhcp
iface eth0 inet6 static
    address 2a03:6f00:4::bce1:224d
    netmask 64
    gateway 2a03:6f00:4::1
    dns-nameservers 2001:4860:4860::8888 2001:4860:4860::8844

Once rebooted, you should have IPv6 then mapped to your system and usable.  You can try and test this by running ping6 2001:4860:4860::8888 to make sure you can go out to the 'net on v6; if it returns pings and doesn't error out, then you should be ready-to-go.  Otherwise, we'll have to do some complex debugging.


Ubuntu 13.10 display driver totally broken by NVIDIA driver

Problem solved - i just had to delete the /etc/modprobe.d/nvidia-installer-disable-nouveau.conf file.


When will kernel 3.14 be available in the repositories?

It never will. New kernels arrive at repositories of LTS versions when point releases come out. This is part of the Hardware Enablement Stack.

According to the 14.04.x Ubuntu Kernel Support Schedule, kernel 3.16 (from Ubuntu 14.10) will be available in Ubuntu 14.04.2 (due in Feb, 2015). But you don't have to reinstall your system, once 14.04.2 is out (and probably a few days before) just run the following to install kernel 3.16:

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


I was also using Qtranslate when i was on Windows and missed it after switching to Linux. So i made a simple application for my own need. Hope it can help you too: https://github.com/yasirtug/ni-translate


Flashplugin-installer fails to install (unable to download the .tar..gz file)

I was having the same problem. I searched for an apt-cache query and went for a sudo apt install
apt-cache search adobe-flash

The query returned with a row about adobe flash plugin 11

so I went ahead and

sudo apt-get install <relevant row>

Worked fine for me.


Steam: Downloaded game in Windows—want to play in Ubuntu

You cannot just copy installed files from Program files and start playing with wine. It wont work, wine will not be able to load all files and play.
I try this on NFS:most wanted and counter strike 1.6. since these games of less size and graphics and didnt play well, new games of bigger size will also have same problem.

If you can install the game using setup with PlayonLinux you may be able to play it. what I mean is, you have to install the game again in ubuntu using playonlinux.

Steam on the other hand is installable on linux since valve have made it available so


Does Ubuntu 13.10 still encounter issues with UEFI and Windows 8?

UEFI and Windows 8 is not a problem in itself. I'm running Windows 8 and Ubuntu 13.10 on my Asus Zenbook. I don't have Secure Boot enabled though.

I think this question and the answer can help you further: Installing Ubuntu Alongside a Pre-Installed Windows with UEFI


Matlab 2012a installation ubuntu 12.02 issue

If you still get the Permission denied message when you try to run something while you are root, this means that the program you are trying to run doesn't have the executable bit, and thus it isn't allowed to run as program, it is consider as a simple file by the system.

The gksu you gave there while you were root wouldn't solve any problem, you were root, and root is allowed to do anything.

So, in order to give it the executable bit:

chmod +x install

Now, the system recognizes that the file 'install' is not a simple file, but it is actually a program. After that, you can successfully run:

./install

And you should be OK :)

PS: I myself remember, when I was not used to Linux as well, to be very confused by this Permission denied message while I was root. I mean, I was root, who denies me to do anything ? I am the lord of this land :P


Cloning a dual boot system from HDD to SSD

Since you are moving from a large HD to a smaller SSD, you will need to copy partitions rather than "clone" the original hard drive.

Regarding the use of Clonezilla and "the documentation for it quite frankly seems a bit like a foreign language", have you seen the following two references?  Both indicate how to resize the HD partitions, and copy the reduced-size partitions to the smaller SSD.

How to Clone Hard Drive to Smaller Drive
http://geekyprojects.com/storage/how-to-clone-hard-drive-to-smaller-drive/

Replacing A Disk With A Smaller One Using Clonezilla Live
http://preview.tinyurl.com/cnjm6yg

For me, the "foreign language" came in the form of Clonezilla's interface.  I have never seen so many error/warning messages and had to fight my way through multiple text-based menu screens.  However, the good news is that, once you have prevailed with the setup procedures, Clonezilla actually works flawlessly.

Finally, be prepared to use a Windows Recovery Disk to reset the MBR (since Windows seems to object to partitions being moved around) and perhaps also Rescatux (http://www.supergrubdisk.org/rescatux/) to re-establish the GRUB menu after Windows "thinks" it is back in control.


changes to /etc/bash.bashrc not permanent

source isn't an executable command, it's a bash builtin. It seems that your login shell isn't bash (it might be sh).

You can change your shell with

chsh

Enter /bin/bash there. You should be able to use source afterwards.


Keyboard Shortcut not Appearing in Keyboard

Here is some background info that could help.

Check out the section on replacing shortcut keys. It's near the bottom. You can use xbindkeys to set hot-keys.  Here's how:

Install xbindkeys with:
sudo apt-get install xbindkeys.

Create a default config file with:
xbindkeys --defaults > /home/your-user-name/.xbindkeysrc

Install the GUI for xbindkeys with:
sudo apt-get install xbindkeys-config

The xvkbd utility must also be installed:
sudo apt-get install xvkbd

Next, bring up "Run Application" and type
xbindkeys and xbindkeys-config

If you want to override the system hot-keys already in effect, you need to install xmacro:
sudo apt-get install xmacro

Start xmacro with xmacroec :0.0
After giving a key that will allow you to quit xmacro, you can press the key(s) you want to know the code for.  You can then use xbindkeys to override the system hot-keys that are bothering you.

Here is the home page for xbindkeys.

This may help as well :
Here is a tutorial for turning off a shortcut.


It's saying you have don't have curl application installed, install it. Then you can continue your installation

sudo apt-get install curl

then continue.


Cannot Access previous Windows Shares with LTS 18.04.01

You appear to have 2 problems:

  When the update finished the Files icon shows "Windows Network" and
  "No Files Found".

Edit /etc/samba/smb.conf and right under the "workgroup = WORKGROUP" line add this one then save the file:

client max protocol = NT1

Just remember that once that is done you will no longer be able to connect to a Win10 machine or any other system that has disabled NT1 ( aka SMB1 ) -- at least not through the file manager.

  I've tried "Connect to server" and it fails (correct IP verified);

If you are trying to connect via an ip address and it fails that is an entirely different problem and is unrelated to the first. How does it fail? What error message?


Can software (Steam) or system updates modify BIOS?

Theoretically anything that has root on your machine can update firmware (BIOS/EFI).  Theoretically.  Practically, it is a bad idea to do.  That's why in the past you needed DOS diskettes (DOS gives 100% access without any constraints to the hardware) to update firmware.  Nowadays, BIOS/EFI often have integrated procedures, that either are in the menu or can be triggered by a program.

However, keep in mind that the chip that contains the configuration or even the program code of the firmware can be flashed.  Flashing is erasing + reprogramming.  It follows that it is indeed possible to damage your BIOS/EFI.  It is sufficient that a cell (the storage unit in firmware) got corrupted and that stops it from booting.  My theory: the overheating of the machine caused just that.  Something corrupted either the firmware configuration or the BIOS/EFI itself.

I had it happen on a Zotac Nano ID61.  When I tried upgrading to Windows 10, it was bricked after that.  Black screen on boot.  I was baffled.  While I wasn't sure, I bought a new BIOS/EFI chip (there are specialized shops that can make you one for something like 15$).  I took the defective chip out, plugged the new one in, and the machine booted at once.

I do not know whether laptops have exchangeable BIOS/EFI chips, though.  They might be soldered on.


game-data-packager is in the 17.04 repos.

user@pcname:~$ apt-cache policy game-data-packager
game-data-packager:
  Installed: (none)
  Candidate: 49
  Version table:
     49 500
        500 http://us.archive.ubuntu.com/ubuntu zesty/multiverse amd64 Packages
        500 http://us.archive.ubuntu.com/ubuntu zesty/multiverse i386 Packages


I was fiddling with aircrack-ng, trying to learn it mistakenly killing wpa_suplicant process

To those who had similar problems to mine, you can fix it by starting NetworkManager again via the terminal command sudo /etc/init.d/network-manager start.


How to change Ubuntu 18 name and logo in details?

In Ubuntu 18.04 and 18.10, the logo is located at /usr/share/icons/hicolor/256x256/apps/ubuntu-logo-icon.png

and the text under that logo or "Ubuntu version" is from the file /usr/lib/os-release under "PRETTY_NAME"

NAME="Ubuntu"
VERSION="18.10 (Cosmic Cuttlefish)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 18.10"
VERSION_ID="18.10"

After customizing here is the "About" section:


windows like clipboard manager for linux?

Won't say about windows like but, did you checked ClipIt? ctrl+alt+h will give you a list and a systray icon for more options and configurations.

Update: ClipIt on Ubuntu 20.04 is broken. Patch is now merged to master branch and it was tagged as 1.4.5. Now it need to be packaged for Debian and Ubuntu.
Until then use 1.4.2 version (from 18.04) or patched version from my ppa:
https://launchpad.net/~afelinczak/+archive/ubuntu/ppa


Hopefully by now this error has subsided. If not, I have a few suggestions for you.

First - If you haven't already, update Ubuntu.

  sudo apt-get update && sudo apt-get upgrade

If that doesn't help, this guy had a problem with Unity, which was fixed by renaming the compiz config folder here: /home/username/.config/compiz-1

You will have to restart your PC after you do this. If Unity doesn't start you will have to start it up manually.
If that doesn't work you can reset Unity.
To Reset Unity and Compiz

  dconf reset -f /org/compiz/

And if that doesn't work you can restart Unity.
To Reset Unity and Compiz

  setsid unity

If Unity is still failing you, you can try your luck with GNOME 3.10
A full installation guide can be found here.

If all else fails, you can format your HDD again and do a fresh install of Ubuntu 13.10. If you used a Live CD the first time I suggest you burn a new copy in case your files were corrupted during the first burn. Good luck.


Banshee 14.04 duplicate song detector extension

I have tried installing it several times without any success. I think the extension is badly outdated and no longer works. I would love to be proven wrong on this point, but it has never worked for me.


How to install and configure appium in ubuntu?

To install appium in Ubuntu follow these commands

First install the required dependencies

sudo apt-get install build-essential curl git m4 ruby texinfo libbz2-dev libcurl4-openssl-dev libexpat-dev libncurses-dev zlib1g-dev

Now install linux brew with ruby

ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/linuxbrew/go/install)"

Set up $PATH for linux brew

gksu gedit ~/.bashrc

Now add these lines to the end of the file and save it

export PATH="$HOME/.linuxbrew/bin:$PATH"
export MANPATH="$HOME/.linuxbrew/share/man:$MANPATH"
export INFOPATH="$HOME/.linuxbrew/share/info:$INFOPATH"

Now use linux brew to install node

brew update
brew install node
brew link node

Now we can install appium

npm install -g appium
npm install wd

To run appium, just use

appium

I appropriated this guide from an Ubuntu blog post by Dharma Krish, credit to them.


How to show hidden files in Nautilus 3.20.3 Ubuntu 16.10?

You can either use the keyboard shortcut provided in @cl-netbox's answer below (not copying that, because he was faster and also deserves your appreciation), or you can again set it with two mouse clicks.

Gnome devs just decided to move the menus into some toolbar buttons. Here is where you can find the setting now:

Just click on the second toolbar button from the right (right next to that pestilential hamburger button we already got in Gedit with the last release) and a checkbox Show hidden files should appear.


Untested, but you can do something like:

printf "%s\n" *.jpg | cut -d_ -f1 | sort -u | while IFS= read -r prefix; do
    files=( "$prefix"*.jpg )
    if [[ "${#files[@]}" -ne 15 ]]; then
        echo rm "$prefix"*
    fi
done

That finds the list of unique prefixes and, for each one, put the list of files into an array: if the size of the array is not 15 then remove.


How about doing this in a terminal:

mimeopen -d filename.mobi

then select Other... from the menu.


How to add mysql-8.0 repository from archive.ubuntu.com/ubuntu/pool/main/m/mysql-8.0/

The first method:

wget https://repo.mysql.com/mysql-apt-config_0.8.9-1_all.deb
sudo dpkg -i mysql-apt-config_0.8.9-1_all.deb

Text window will appear:

Select Xenial as most recent and hit Enter
Select MySQL Server & Cluster (Currently selected: mysql-5.7) and hit Enter
Select mysql-8.0 preview and hit Enter
Select OK and press

But you could get the following errors during sudo apt update:

Err:3 http://repo.mysql.com/apt/ubuntu xenial InRelease
  The following signatures were invalid: EXPKEYSIG 8C718D3B5072E1F5 MySQL Release Engineering <mysql-build@oss.oracle.com>
Reading package lists... Done
W: GPG error: http://repo.mysql.com/apt/ubuntu xenial InRelease: The following signatures were invalid: EXPKEYSIG 8C718D3B5072E1F5 MySQL Release Engineering <mysql-build@oss.oracle.com>
E: The repository 'http://repo.mysql.com/apt/ubuntu xenial InRelease' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.

To get rid of those errors, remove newly added repository file:

sudo rm /etc/apt/sources.list.d/mysql.list

So try the second method.

The second method if the first did not go:

Your /etc/apt/sources.list should look like this for that:

deb http://us.archive.ubuntu.com/ubuntu/ bionic main restricted
deb http://us.archive.ubuntu.com/ubuntu/ bionic-updates main restricted
deb http://us.archive.ubuntu.com/ubuntu/ bionic universe
deb http://us.archive.ubuntu.com/ubuntu/ bionic-updates universe
deb http://us.archive.ubuntu.com/ubuntu/ bionic multiverse
deb http://us.archive.ubuntu.com/ubuntu/ bionic-updates multiverse
deb http://security.ubuntu.com/ubuntu bionic-security main restricted
deb http://security.ubuntu.com/ubuntu bionic-security universe
deb http://security.ubuntu.com/ubuntu bionic-security multiverse

If your server is used for learning and testing purposes, OS dependencies issues and system breaking are accessible, then you could try to add the next to your sources.list:

deb http://ru.archive.ubuntu.com/ubuntu/ eoan main restricted

Then sudo apt update && sudo apt install mysql-server-8.0

During mysql-server-8.0 package installation copy installed packages information somewhere to have the ability to remove them and install supported versions instead after eoan's repository commenting. It could remove other packages, required for stable system processing. So be prepared to recover or reinstall your system.

After mysql-server installation

Comment out eoan repository record
sudo apt clean && sudo apt update

To roll back to normal configuration:

sudo apt purge mysql-server-8.0 && sudo apt autoremove
Comment or remove eoan record in sources.list
sudo apt update && sudo apt install -f && sudo apt upgrade


It turns out that the reason dpkg-reconfigure failed was that it was necessary to run sudo apt upgrade first. Doing this solved everything.


How can I delete and ARP cache entry on Ubuntu 14.04LTS via command-line?

Your command is correct that you're using.  The incomplete status means that they are removed.  If you give them time, they will disappear.  If something on the network pings them or tries to access them, they will appear in the table again.

Another explanation can be found here.


How can I make Unity always show Filter Results?

This is currently not possible in Unity. Your best bet is to report a bug about it or to suggest it on the Ubuntu Brainstorm site.


Error, pkgProblemResolver when trying to install PCSX2 emulator - Unmet Dependencies?

Try using

$sudo apt-get autoremove

$sudo apt-get update

$sudo apt-get upgrade

$sudo apt-get -f install

This will use apt-get to try to find and fix any unmet dependencies this works in most cases. If apt-get still can not get the needed dependencies you might have to go and find them manually.

Also you always need to run a sudo apt-get update and upgrade after adding a ppa. Did you do this? Let me know if this still doesn't fix it. I can try it out in a virtual machine later.


Is it possible to export citation fields when saving a Writer document (.odt) as a .doc(x)?

From Mastering Zotero found at https://zotero-manual.github.io/zotero-manual/citations

  Bookmarks and Fields(Word)/Reference Marks(LibreOffice). By default,
  Zotero includes citations in Word Fields and LibreOffice Reference
  Marks. These formats are particularly versatile and all but impossible
  to corrupt. Unfortunately, they are not supported across-applications:
  Neither does Word read Reference Marks in .odt documents, nor does
  LibreOffice read Fields in .doc or .docx documents. Worse still,
  saving a document with Reference Marks as .doc(x) in LibreOffice
  removes all Zotero informations, effectively working like “Remove
  Field Codes”. In order for Word and LibreOffice users to collaborate,
  they should switch the format to “Bookmarks” and save files as .doc.
  Bookmarks do not allow for note-based styles in LibreOffice. They are
  also somewhat easier to corrupt, so you should keep careful back-ups
  for various versions of your files.


What does '(:0)' in the output of the command 'who' mean?

From the info page (info coreutils 'who invocation')

  If given no non-option arguments, ‘who’ prints the following
  information for each user currently logged on: login name, terminal
  line, login time, and remote hostname or X display.

So (:0) simply means X display number 0 on the localhost.

If there are remote users (for example SSH sessions) as well, you may see something like

$ who
steeldriver tty7         2016-12-15 13:57 (:0)
steeldriver pts/4        2017-01-12 09:32 (192.168.1.4)


OP solved issue by comment here

ok, so I finally have an excuse not to delay moving /home to a separate partition. If you write this as a proper answer I'd be glad to mark it as the good one – gumbo Sep 3 '11 at 22:01


How to move Thunderbird profile from Windows to Ubuntu?

Copying and renaming did not work at all for me as well. It's kind of a regression of Thunderbird I'd say.
I finally managed to import all my Thunderbird profiles successfully in one go using the Addon ImportExportTools NG.
You can add it under Addons in Thunderbird:

Under Windows Thunderbird export your profiles under Tools ->  ImportExportTools NG -> Export Profile -> to a folder you can access from Ubuntu.

In Ubuntu Thunderbird import it from Tools ->  ImportExportTools NG -> Import Profile -> select the folder and follow the instructions. In case there is no menu by default like in my case, hit Alt key and it will show.


Error with ttf-mscorefonts-installer when installing Skype on Ubuntu 14.04

Run the following command in a terminal:

sudo apt-get install --reinstall ttf-mscorefonts-installer

If it can't be found, you have to enable the multiverse repository in your System Settings → Software & Updates first.

Running the command will probably prompt you to accept the Microsoft Licence (EULA). You have to do this, or the installation will abort. This is also the reason why this package can't be installed non-interactively.

After that, try installing skype again.


Can't run a .sh file even when changing directory

You have to install expect. In a terminal window, run:

sudo apt-get install expect


What does $DISPLAY environment variable mean

From man X:

From the user's perspective, every X server has a display name of the form:

  hostname:displaynumber.screennumber

This information is used by the application to determine how it should connect to the server and which screen it should use by default (on displays
with multiple monitors):

hostname
   The  hostname specifies the name of the machine to which the display is physically connected.  If the hostname is not given, the most effi‐
   cient way of communicating to a server on the same machine will be used.

displaynumber
   The phrase "display" is usually used to refer to a collection of monitors that share a  common  set  of  input  devices  (keyboard,  mouse,
   tablet,  etc.).  Most workstations tend to only have one display.  Larger, multi-user systems, however, frequently have several displays so
   that more than one person can be doing graphics work at once.  To avoid confusion, each display on a machine is assigned a  display  number
   (beginning at 0) when the X server for that display is started.  The display number must always be given in a display name.

...

ENVIRONMENT
 DISPLAY
   This is the only mandatory environment variable. It must point to an X server. See section "Display Names" above.


Sound volume icon (volume control widget) disappears from tray and Fn-F11/Fn-F12 keys do not work

It seems that the issue was that plasma-pa package was missing.
I guess it got uninstalled for some reason.

Reinstalling it and restarting plasmashell fixes the problem:

sudo apt-get install plasma-pa
killall plasmashell
plasmashell &


How to make Start up script for Making Application run on startup

Use the following:

java -jar /home/$USER/VISDashboard2014/VISDashboard.jar


UEFI hybrid mode win7 and ubuntu installation issue

For Windows 7 you need to enable legacy BIOS mode. After that boot from the Windows 7 installation disk and delete all partitions while installing so that entire disk is empty. Then add a new partition and it will automatically create a new partition table. Install windows 7 and then boot Ubuntu IN BIOS MODE (explore the boot optons) and install it alongside windows 7.


There's no way to tell what the underlying problem might be from just that message. Try tracing the process, and see what happens:

strace -f ./h_affine.ln -haraff -i img1.ppm -o img1.haraff -thres 1000

Capture the output, search for "exec", and see if there are any clues about what the problem was. Basically, strace just lists all the kernel calls a program uses as it runs. This is very handy because all the things you imagine a program doing (messing with data, etc.) is just internal detail - strace captures everything it actually does.


Middle Mouse Button Paste not working Ubuntu - Logitech G602 wireless mouse

I was able to restore middle-click functionality by switching the G602's power-consumption switch up and down.


Windows 8 comes with secure boot turned on, which means the firmware on a motherboard will check, at boot time, to see if the operating system that is trying to boot is genuine; this check is done by means of cryptographic keys. It is ostensibly meant to prevent boot-time malware from infecting Windows 8; coincidentally, it also serves to make it pretty hard for a user to boot any other operating system on said machine.

Press F8 or F9 while the system boots to bring up the boot options. from here you can choose Ubuntu.


Ubuntu 12.04 changing permissions External Hard Drive from Terminal

Try to mount your drive manually with write permission

mount -t FSTYPE -o uid=X,gid=Y,umask=022 /dev/sdbX /path/to/mount/point

For your uid and gid run the following command

id your_user_name

To find out the file-system type

sudo file -s /dev/sdbX


18.04 GNOME3 Shell bug: Dash doesn't return when waking up screen saver or unlocking the screen?

Try different configuration options.

sudo apt install gnome-shell-extension-dashtodock

Open gnome-tweaks and enable Dash to dock:

Open Dash to dock settings by gear icon clicking and change them.

It is also interesting what will happen when you will not close this settings window while locking/unlocking your screen and changing settings with dock being absent.

Another workaround is to use budgie-desktop. You could also try lightdm instead of gdm3.


Its a known bug, already reported
https://bugs.launchpad.net/ubuntu/+source/network-manager/+bug/1542733


Skype making high pitched noises - Ubuntu 13.10

user1039704's answer did not work for me but this command did:

sudo sed -i 's/^Exec=.*/Exec=env PULSE_LATENCY_MSEC=30 skype %U/' /usr/share/applications/skype.desktop

source: webupd8.org


System not booting with nVidia graphics card and NOMODESET in grub

if you have an internal graphics card in addition to your nvidea graphics card you can try to temporarily remove the nvidea card (or disable it in BIOS/UEFI), install ubuntu, then the nvidea drivers and finally reactivate the nvidea card: see also this answer: https://askubuntu.com/a/755667/538840

or you can try to use ubuntu 16.04, which may already include the relevant drivers.


A lot of io after boot/login: gnome-software --gapplication-service

the classic way to reduce its impact would be to use nice , this allows you to configure the application to be more or less of a resource hog.

nice is for cpu usage, you run it with a privelege number and a command e.g.

nice 10 /usr/loca/bin/my-service

numbers range from minus 19 which is almost never run to positive 20 which is almost exclusive. The default is 0.

ionice does similar but for I/O resources (e.g. disks) and can be run in a similar way but has more options

to choose the scheduling algorithm

-c  0: none, 1: realtime, 2: best-effort, 3: idle

to choose the priority

-p 1-7 (realtime or best-effort classes only)

you can either start the process through it like nice or effect a running process by specifying its PID with -P. Nice has renice for altering running processes.

I would experiment with values for ionice by running it against an already running PID, then when you have the right values edit the script that starts gnome-software to do so via ionice and or nice if required.

To re-ionice your gnome-software process to priority 4 copy and run the following command line: (note the ` backtick is not a quote, its to the left of the one)

ionice -p `ps ax | grep gnome-software | cut -f2 -d' ' | cut -f1 -d$'\n' ` -n 4

if you want to see what your priority is just run the same command but remove the -n 4 and it will tell you. Everything in the backticks is executed and the result is dropped into the ionice command in its place just before its run , its fetching the process id of the first gnome-software process it can find.


You can use a simple systemd service to autostart it:

Create a service file:

sudo nano /etc/systemd/system/mycompton.service

Add the following configurations:

[Unit]
Description=compton autostart script
After=network.target

[Service]
Type=forking
ExecStart=/usr/bin/compton -b --vsync opengl
Restart=always

[Install]
WantedBy=multi-user.target

Start and enable the compton service:

sudo systemctl start mycompton
sudo systemctl enable mycompton

Check the status:

systemctl status mycompton

Stop it with:

sudo systemctl stop mycompton

Note:

Replace the line /usr/bin/coompton with the result of which compton, if different from my own entry.


If the current "Dropbox" item in your menu does not work anymore, then delete it and recreate a new entry.

Remove the current "Dropbox" bookmark by right-clicking and selecting "Remove".
Create a new item by navigating into your current "Dropbox" folder. Then hit Ctrl+d. This shortcut will automatically add an updated bookmark to the left bar. Alternatively, pull down the folder menu in the top bar and select "Add to bookmarks".


Problem in installing dual boot Ubuntu 14.04 on Windows

You can run the following command which will search all the attached drives and partitions and add them to the grub menu:

$ sudo update-grub

After running the command from the console reboot the computer.

If you don't see the menu after rebooting run this command and show us the output.  It would be easier to read a copy and paste of the output to your question (not a link to an image).  You can select the text and click on the "{}" icon on the editor to give the proper format.

$ egrep "^menuentry"  /boot/grub/grub.cfg

For example the output of this command on my computer is:

menuentry 'Ubuntu' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-3ebc689f-aa43-4ea1-a9b9-5e8d9e6d92af' {
menuentry 'Memory test (memtest86+)' {
menuentry 'Memory test (memtest86+, serial console 115200)' {
menuentry 'Ubuntu 15.10 (15.10) (on /dev/sda1)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-simple-a13034ce-00a0-4bd2-8188-f780137413d7' {

There isn't a Windows entry on my system because Windows isn't installed.  If you have windows installed on your system we will see it in the automatically created grub.cfg file.