Ubuntu 18.04 failed to resolve VPN DNS when select "Use this connection only for resources on this network"

Try reimporting your original .ovpn file if you haven't already. I experienced a similar issue where my VPN's DNS server would not show in systemd-resolve --status, but once I reimported my .ovpn file in Network Manager, the problem was resolved.


I think it does not work as this Canon driver uses some kernel modules which are blacklisted (i.e. prevented from loading) by default.

I suggest you uninstall the current Canon driver and follow the instructions here: CanonCaptDrv190 (make sure to read the README file before proceeding).


Restore partition table changed by accident while disk in use

Thanks to testdisk I solved the problem. I ran it with sudo testdisk.

After this I ran

sudo grub-install /dev/sda
sudo update-grub

After reboot everything was OK.


Resize / partition at beginning of drive?

This particular partition reconfigure is especially tricky, and there are a number of ways to do it, and a number of ways to muck it up. I make no guarantees on success!

Warning... have good backups in case something goes wrong! You've been warned!

As per our discussion in chat...

You'll need:

a Windows install/repair DVD/USB
a Ubuntu Live DVD/USB

The short answer is...

Using Windows Disk Manager application...

you'll need to shrink the left side of partition 3, if possible

otherwise shrink the right side of partition 3 and then move partition 3 right

Windows will probably not boot now
use Windows install/repair DVD/USB to fix Windows boot problem
move partition 2 to the far right, leaving unallocated space to its left
Windows may not boot again
use Windows install/repair DVD/USB to fix Windows boot problem

Using Ubuntu Live DVD/USB...

start gparted
right-click on sda1 (partition 1) and choose resize
drag the right-side of sda1 to the far right
click OK, then the Accept icon
GRUB may need to be reinstalled, because of the Windows repairs


The best way to create a root filesystem, split between read only and writable

aufs ( eventually UnionFS) is old and overlayfs in new solution for this in Ubuntu.
This script for overlayfs worked fluently for me with 14.04.1

So you need to copy the script to /etc/initramfs-tools/scripts/init-bottom/root-ro,
then

#make the script executable
cmdod 755 /etc/initramfs-tools/scripts/init-bottom/root-ro

#add the module overlayfs to initramfs
echo overlayfs >> /etc/initramfs-tools/modules

#update initramfs
update-initramfs -u
update-grub

Reboot to give it a try. Then issue mount, you should have output:

  overlayfs-root on / type overlayfs (rw)

You'll find /mnt/root-rw and /mnt/root-ro directories for the "lower" and "upper" layers of your overlayfs.

You can also add to grub menu ability to load without overlayfs:

echo overlayfs >> /etc/initramfs-tools/modules
cp root-ro /etc/initramfs-tools/scripts/init-bottom/root-ro
chmod 755 cp /etc/initramfs-tools/scripts/init-bottom/root-ro

#########################GRUB#########################
cat /etc/grub.d/10_linux|sed  s/'linux_entry "${OS}" "${version}" simple'/'linux_entry "RW: ${OS}" "${version}" simple'/ |sed  s/'"${GRUB_CMDLINE_LINUX} ${GRUB_CMDLINE_LINUX_DEFAULT}"'/'"${GRUB_CMDLINE_LINUX} ${GRUB_CMDLINE_LINUX_DEFAULT} disable-root-ro=true"'/ >/etc/grub.d/11_custom

sed -i.orig -e \
"/{GRUB_DISABLE_RECOVERY}\" != \"xtrue\" ]; then/s/^.*$/    \
if [ 0 ]; then/" \
/etc/grub.d/11_custom

sed -i.orig -e \
"/in_submenu=:/s/^.*$/    \
/" \
/etc/grub.d/11_custom

sed -i.orig -e \
"/\"Previous Linux versions/s/^.*$/    \
if [ 0 ]; then/" \
/etc/grub.d/11_custom

rm /etc/grub.d/11_custom.orig
#########################GRUB#########################

chmod 777 /etc/grub.d/11_custom


What is the difference between Indicator Plugin and Notification Area?

Is it normal? Yes. Why? For the exact reason you've described: some things don't support IA.

Notification Area is the older of the two projects and it's been around since the crack of doom. Indicator Applet sprung up a few years ago to address some design concerns Canonical were having.

They work in fairly different ways so it's not a drop-in replacement and never really can be. For something to work on one or the other, it needs code to accomplish this.


It is difficult to tell from the information you posted. It could be anything from a firewall issue to misconfigured samba shares.

I suggest you start by turning your firewall off on all 3 computers.

Then if the shares do not show, debug your network using ping.

If ping is working, then manually mount the shares on the command line and post any error message.

smbclient -L //server -U user

sudo mount -t cifs //myserver_ip_address/myshare ~/mnt -o username=samb_user,noexec

You have to change "server" to your server name or ip address, "user" to your actual user on the server, "myshare" to the actual share name, etc.

For details see

Ubuntu shares not visible on the network

How to turn on Network Discovery and Share between computers with Samba

https://help.ubuntu.com/community/Samba/SambaClientGuide


Where does one set the extent of the Desktop in Ubuntu?

I have tried a setup like yours and the problem seems to be the fact that the screens are not "aligned". Probably because the 17' one is under a little Unity/Nautilus treats it as more space.

I don't know if this is normal or is a bug in either Unity or Nautilus, but to me it seems a normal behavior. To fix it just align both displays as in the following picture:

So just drag the second monitor on "Display" settings until they are somehow aligned. Also note that the disposition of both screens seems to matter, so if you put 27' screen on top of the 17' one the icons that do not fit on the first go to the second one. If that's what you want keep them aligned but with this disposition:

After applying the new setup you need to order the icons again in Nautilus.


Unable to load dynamic library '/usr/lib/php/20151012/php_xmlrpc.dll'

You have 2 issues with what you described.

First, you installed a module (simplexml), while you are trying to enable a different one (xmlrpc).

To fix that, you need to install the xmlrpc module with:

sudo apt install php-xmlrpc

The second issue is the fact that you are trying to enable a .dll which is somewhat exclusive to Windows systems. On *nix systems, PHP extensions are usually .so.

But in either case, when you need to enable PHP packages in Ubuntu, you should use the phpenmod command (Available after 14.04).

So you should revert your changes by commenting that line, and run the following command:

sudo phpenmod xmlrpc


how to resolve wifi disconnects and can't reconnect until disable and re-enable networking?

First of all find out the name of the driver you are using then open a terminal with ctrl-alt-t the type this
This worked Here is a technique that sometimes works:

gksudo gedit /etc/pm/config.d/config Add a single line:

SUSPEND_MODULES="your network driver name" Proofread, save and close gedit. Reboot


No, currently there exists no to-do-applet for Unity.

However, there are softwares for doing the same. For example, you can have a look at Nitro.

From apps.ubuntu.com:

  Nitro makes tasks management super easy and awesome. It's super fast,
  simple and offline and can be used without an internet connection.
  Nitro also packs Dropbox and Ubuntu one sync.


Logon fail trying to connect to shared folders on Xubuntu 20.04 from Seagate GoFlex media player

I found the answer to my problem in this article: Broken samba shares


How can I improve Eclipse's user Interface to get rid of the excessive padding and spacing?

Eclipse uses the SWT toolkit which uses GTK, so if you can apply some theme which reduces padding, you'll see that improved on Eclipse.

I made the following test: created a small .gtkrc-2.0 file on my Home folder with the following contents:

style "eclipse" {
  xthickness = 0
  ythickness = 0
}

class "GtkWidget" style "eclipse"

So, the results are (upper screenshot is before, bottom is after):

... not as impressive as the second screenshot, from the New Java Class... dialog (left is before the changes, right is after):

The clues were from the Eclipse SWT FAQ and the GnomeArt Tutorial on themes.

Cheers!


How can I set a task to wake my computer up, after shutdown?

After shutdown, your computer is off. So nothing can happen with it, unless you press the power button manually.

Of course, they may be some alternative like Wake-on-LAN capabilities if supported by your BIOS. This is a mechanism by which specific packets are sent to a powered off computer (but of course still connected to a power source and an Ethernet network) to power it on.

Obviously, this has to be done from a source external to your computer.

Unfortunately, not all BIOS and network adapters support Wake-on-LAN

More info about Wake-on-LAN at Wikipedia.


Can I revert back to 14+ from 15 on an old machine?

There is no officially supported way to downgrade. Anyway, it would be buggy. You will eventually spend less time to reinstall.


Yes, there are different flavors and there are a few things you can do. First, install gnome-tweaks so you can easily select different themes and icons:
sudo apt update
sudo apt install gnome-tweaks

Search for "tweaks" in your applications and the app is pretty self explanatory. You can change themes and icons from there.
It's also possible that you have regular gnome shell installed as well as the standard Ubuntu desktop.
If this is the case, you should be able to select one of the two from your login screen before you sign in (look for a gear icon or something to click on that will offer a selection of different desktop environments or flavors).

As for the extra icon for you mounted volumes, you can disable this feature by running the following command:
gsettings set org.gnome.shell.extensions.dash-to-dock show-mounts false

Supposedly, the feature is there to offer easy access to the mounted partition or device and to also provide an easy way to unmount the volume. Also, you can re-enable the feature at any time by running the following command instead:
gsettings set org.gnome.shell.extensions.dash-to-dock show-mounts true

You can read more about the mounted drive issue here on OMG!ubuntu.


Problem occured when install numpy for python3.4 on ubuntu

Have you tried doing what it says. Installing dependencies?

sudo apt-get install python-dev liblapack3


Can't resize partition to unallocated ubuntu

The lock icon next to /dev/sda7 shows that it's mounted, therefore un-modifiable. Since /dev/sda7 is mounted at /, you won't be able to umount it from your current system. You'll have to boot from a "Live USB/Live CD" distribution, then you can use gparted to extend /dev/sda7 (which won't be mounted),


X doesn't find nvidia module when installing developer driver

I've written about it on the Ubuntu Forums: HOWTO: install or uninstall nVidia drivers.


It is a good question, and I have just been working through this too. As far as I know /dev/dvd is history, and dvds are now read directly from /dev/sr0 (as /dev/dvd is a symbolic link).

To fix this for 13.10, you can install the "trusty" 14.04 version of the Liborc 0.4 package, found here.

Download the package from this site, making sure to choose the right one (amd64, i386) for your architecture
Install the package:

dpkg -i package-name-here.deb

Restart your computer


Change a string keeping some text as it is using sed

sed 's/\./\0<\/b>/g' < FileName

It finds all occurances of "." and replaces it with "."

sed 's/\.$/\0<\/b>/' < FileName

It finds the occurances of "." at the end of line and replaces it with "."

(sed 's/\.$/\0<\/b>/' | sed 's/^/\0<b>/') < FileName

It finds the occurances of "." at the end of line and replaces it with "." and appends "" at the beginning


There is a PPA for Canon printers

PPA description - Canon printer driver daily
Official drivers of Canon printers and multifunction devices, included versions 2.20 and newer

deb http://ppa.launchpad.net/michael-gruz/canon-trunk/ubuntu quantal main
deb-src http://ppa.launchpad.net/michael-gruz/canon-trunk/ubuntu quantal main

If you use 12.04 alter quantal in precise
If you have question on how to use a PPA (or not know what they are) see
What are PPAs and how do I use them?


Overriding a kernel module blacklisting that's reinstated during apt full-upgrade

From ServerFault:

Automatically keep current version of config files when apt-get install

This answer:

apt-get install -o Dpkg::Options::="--force-confold" --force-yes -y udev

Read the comments below the answer though. It suggests --force-yes is sometimes an extreme option although it's not explained clearly.

An even better ServerFault answer is found here:

Prevent update-manager from overwriting my Configs

This Answer:

  You can pass options to dpkg from apt. Interesting for you would be
  the option --force-confold. The command looks like this:

apt-get -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" upgrade

  Setting --force-confdef as well makes apt-get still update the
  config file if it hasn't been edited, while --force-confold will
  keep edited configuration files without asking.

  To make this permanent, you can also set these options in your
  apt.conf file:

Dpkg::Options {
   "--force-confdef";
   "--force-confold";
}

  Check e.g.
  http://debian-handbook.info/browse/wheezy/sect.package-meta-information.html#sidebar.questions-conffiles


How to read ubuntu installed on the hard drive from the USB device (no recover GRUB)

To recover Windows 7, you can follow the instructions at Ubuntu boots to grub rescue : Use the Windows Repair Disk to boot into a command prompt on Windows 7 and then run the following commands:

bootrec.exe /FixMbr

Then, to recover Ubuntu, you can follow the instructions at Ubuntu boots to grub rescue :

Boot from a liveCD or a LiveUSB.

Confirm the partition number of your main partition. GParted can help you here. I'm going to assume in this answer that it's /dev/sda2, but make sure you use the correct partition number for your system!

Mount your partition after making sure your hard drive IS /dev/sda2:

sudo mount /dev/sda2 /mnt  # make sure that sda2 is correct!

Bind mount some other necessary stuff:

for i in /sys/proc/run/dev; do sudo mount --bind "$i" "/mnt$i"; done

chroot into your Ubuntu install:

sudo chroot /mnt

At this point, you're in your install, not the live CD, and running as root. Update grub:

update-grub

If you get errors, go to step 7. (Otherwise, 7 is optional.)

Depending on your situation, you might have to reinstall grub:

grub-install /dev/sda
update-grub

I'm not sure if this is necessary, but it doesn't hurt.
If everything worked without errors, then you're all set:

exit
sudo reboot

At this point, you should be able to boot normally.


Can a guest share the same network connection as its host?

Is your proxy configured in the browser ?
If so you can use Bridge mode and configure the proxy on the browser. If not you can use the NAT mode that will make the traffic goes from your VM to your Windows machine then to the internet.
Here there's a link of how to do it:

https://www.pythian.com/blog/test-lab-using-virtualbox-nat-networking/


Missing libxmlrpc-c3 dependency while installing Boxee

Looking at the forums, this is a known issue with the version of Boxee which you have downloaded from the vendor's website.

The consensus is that the vendor does update the version of boxee when a new distribution such as Natty is released, but you may have to wait a few days/weeks

Assuming that you are unwilling to wait :-)

There is a workaround to "correct" the dependency that can no longer be satisfied in Natty (i.e. that library in your screenshot).

Open you text editor and save the contents of the the following (thanks to this forum post):

#!/bin/bash

EDITOR=gedit

if [[ -z "$1" ]]; then
  echo "Syntax: $0 debfile"
  exit 1
fi

DEBFILE="$1"
TMPDIR=`mktemp -d /tmp/deb.XXXXXXXXXX` || exit 1
OUTPUT=`basename "$DEBFILE" .deb`.modfied.deb

if [[ -e "$OUTPUT" ]]; then
  echo "$OUTPUT exists."
  rm -r "$TMPDIR"
  exit 1
fi

dpkg-deb -x "$DEBFILE" "$TMPDIR"
dpkg-deb --control "$DEBFILE" "$TMPDIR"/DEBIAN

if [[ ! -e "$TMPDIR"/DEBIAN/control ]]; then
  echo DEBIAN/control not found.

  rm -r "$TMPDIR"
  exit 1
fi

CONTROL="$TMPDIR"/DEBIAN/control

MOD=`stat -c "%y" "$CONTROL"`
$EDITOR "$CONTROL"

if [[ "$MOD" == `stat -c "%y" "$CONTROL"` ]]; then
  echo Not modfied.
else
  echo Building new deb...
  dpkg -b "$TMPDIR" "$OUTPUT"
fi

rm -r "$TMPDIR"

Save the file as "edit-deb-control.sh" into your Downloads directory.

Open a terminal and type the following

cd Downloads

sh edit-deb-control.sh boxee<tab>

N.B. press the  key will autocomplete the full file name

This will open a text editor with the contents similar to the screen-shot below

change the value of libxmlrpc-3 found in the file to the value shown in the screenshot:

Save the file in the text editor and close the file.

This will create (after a while) a new .deb file in the Downloads folder.  You will see the name as boxee...modified.deb

Double click that file in File Manager (nautilus) - it should open the software-center, but this time, the dependencies error should no longer be there.


How to fix vscode icon in numix icon circle theme?

Here's a one liner that will achieve what these guys are saying for you. I've aliased this in bash because I have to execute this every FREAKING time vscode updates...

sudo sed -i "s/Icon=code/Icon=vscode/g" /usr/share/applications/code.desktop


How do I show a message with username and date at login?

If you want to see the message when you open the terminal or after you are login in tty1-6, just put this line at the end of ~/.bashrc file (open it from terminal with gedit ~/.bashrc):

echo "Hello $USER, today's date is $(date +"%A, %d-%m-%y")"

If you want to see the message after you are login in GUI, do the following:

Create a new file name_and_date.sh:

gedit ~/bin/name_and_date.sh

If you want to get a desktop notification, put next 2 lines inside:

#!/bin/bash
notify-send "Hello" "Hello $USER, today's date is $(date +"%A, %d-%m-%y")"

Alternatively, if you want a popup (message box) to show up, put next 2 lines inside:

#!/bin/bash
zenity --info --title "Hello" --text "Hello $USER, today's date is $(date +"%A, %d-%m-%y")"

Save the file and close it.
Make the file exacutable:

chmod +x ~/bin/name_and_date.sh

Search in Dash for Startup Applications, open it and click Add.
Under name type "Show my name and date" or something you will recognise.
Under command type: /home/$USER/bin/name_and_date.sh (change $USER with your user name).
Under comment (if you want), type a brief description.


Unable to access facebook via Firefox when IPv6 is enabled

Facebook uses IPv6 a lot, so it should definitely work. Their datacenters are completely IPv6 internally.

What you might be seeing are problems with MTU handling. The initial page might be smaller than the lowest MTU, or maybe that server uses different packet sizes. If the other requests have different sizes, or their servers handle path MTU discovery differently, then you might see something like this. It's a guess though.

Are you using an IPv6 tunnel by any chance? That might explain part of it. I'll update the answer when you provide more information.


nVidia graphic card seems not revelead by ubuntu 12.04

In my honest opinion no, it's not normal.
I have a ASUS K53 with Nvidia geoforce GT 540 and that is my result (2 lines):

00:02.0 VGA compatible controller: Intel Corporation 2nd Generation Core Processor Family Integrated Graphics Controller (rev 09)
01:00.0 VGA compatible controller: NVIDIA Corporation GF108M [GeForce GT 540M] (rev a1)


skype install on ubuntu 14.04 dependency hell

Don't make it too much complex. Just download skype from its official website. Click here to download and choose your distribution (for you, its Ubuntu 12.04 (multiarch) ). A debian file will be downloaded and your just a double-click away from installing skype. Enjoy!


How do I increase the font size in all Uxterm windows in Ubuntu 18.04 with LXDE?

I just found a solution on the following link:
How to change the default font size of XTerm?
I had to edit the file
/home/username/.Xresources

and replace
UXTerm*faceSize: 10

with
UXTerm*faceSize: 25

and launch
xrdb -merge ~/.Xresources

This solution worked great!


How Can I Fix This Race Condition Problem with my .sh Startup Script?

In scripts when you're using gnome-terminal -e command to run commands in the gnome-terminal, the commands need to be on the same line as gnome-terminal.

Examples:

gnome-terminal -e './vert/vertcoin-qt'
gnome-terminal -e 'killall ./vert/vertcoin-qt'

The above commands will open a gnome-terminal window and run the killall and ./vert/vertcoin-qt within them.

Hope this helps!


Indentation problem with python3 and vim

You have most likely mixed tabs and spaces in your python file, you must use only one of them.

In order to find the problem you can use the command :set list to have vim list all non-printable characters and see where the problem is. Tabs will be shown as ^I spaces will be shown as normal.


In Chrome their is an extension that adds back and forward animations called SwipeGesture


Can I copy my wubi install between machines?

Yes - I've done it. It's not totally straightforward though. For instance if you had a custom graphics driver on one machine, but not the new machine, you'll have display problems. And the second thing is that the grub bootloader remembers the partition and uuid of the current machine and these will have to be modified.

Make sure you haven't got custom drivers installed (or remove them if you have)
Make sure you installed the same Ubuntu release on the new machine
Load the install on the new machine, when you see the grub menu press 'e' on the first entry and note xxx and yyy:

set root=(xxx) e.g. (hd0,msdos2)

linux /boot/vmlinuz.... root=yyy e.g. /dev/sda2 or UUID=nnnnnnn
Copy the root.disk over to the new machine
Boot into Ubuntu but only as far as the grub menu

Press 'e' on it's first entry and change the values you see with the xxx and yyy from your new install. Also delete the line starting search --no-floppy .... Then press Ctrl X to boot.
After it boots, drop to a terminal (Ctrl Alt T) and run sudo update-grub to fix the grub menu.

That's all there is to it.

PS if you're familiar with partitions, you don't need to 'complete' the reboot and 2nd phase of the install on the new machine. Just finish the windows part of the install, and copy the root.disk and swap.disk into the \ubuntu\disks folder, and then reboot, modifying the partition values. But if you're not sure what these are, just complete the install (make it 5GB in size since you'll be trashing it). In that case you can ignore the swap.disk.

EDIT: another neat thing you can do with a root.disk file... migrate it to a normal Ubuntu install on the same or another machine (same caveats on custom drivers applies).


Why won't chromium load a PDF file but firefox will?


You (and all of us) do not have an eth0 for years now. Ubuntu uses predictive names.  ifconfig -a shows you the name you need to feed ifconfig.
Example from my machines:
$ ifconfig -a
...
wlo1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.178.19  netmask 255.255.255.0  broadcast 192.168.178.255
        inet6 fe80::b971:f72f:c416:2a96  prefixlen 64  scopeid 0x20<link>
        ether fc:77:74:bc:87:43  txqueuelen 1000  (Ethernet)
        RX packets 2733275  bytes 3448410896 (3.4 GB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 1070857  bytes 381490320 (381.4 MB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

So for me ifconfig wlo1 will show what you are asking the system with eth0.


I've got a 68gb thumb drive with 52gb of stuff on it

No, you likely purchased a 64GB thumb drive.  USB thumb drives are typically issued in powers of 2... (so 2, 4, 8, 16, 32, 64, etc.).  How you get to 67GB volume is likely a larger drive that's damaged.

Secondly, you probably have hidden files and folders and such in the dot-hidden folders - those take up space too.

Thirdly, gparted gives you the more accurate file usage statistics, so you've got extra files in there, likely stuff you deleted previously.

  Does anyone have any ideas what is going on here?

There's several confusions you're making.  First, the size of a thumb drive is theoretical.  That is, a 64GB thumb drive may actually have only usable space of 62ish GB.  They can't guarantee you the full space.  Secondly, as stated in comments, you may have damage that reduces the actual usable space.  Thirdly, the filesystem takes up space too - a 60GB NTFS partition may really  be 59-ish GB usable.

Ultimately I think this is a case of an odd-size USB stick having only 62GB usable space, not 68GB that's being advertised.  Which means you really don't have the amount of space you think you do available.


Lubuntu minimize all show desktop keyboard shortcut?

In 13.04, "show desktop (also known as minimize all)" is found in ~/.config/openbox/lubuntu-rc.xml:

<keybind key="W-d">
  <action name="ToggleShowDesktop"/>
</keybind>

Try changing W-d to some other combination.  Only you know which combinations are free on your system.
W = window/super
C = control
S = shift
A = alt


Computer running very slowly under 13.04

I think you could have too much swap RAM configured. At a certain point, more swap RAM slows down the computer considerably. Maybe try keeping the RAM+swap to a reasonable level (not 64GB), except if you really need it.
A good alternative would be to change the swappiness (how much the computer uses SWAP) to a lower level. The following command checks your swappiness.

cat /proc/sys/vm/swappiness

Swappiness is default at 60, meaning it will use your slower hard drive instead of your faster RAM a lot of the time.
You can modify the swappiness with the next command, you will have to try around with the value a bit, maybe even set it to 0 (having 32GB of RAM is plenty):

sudo sysctl vm.swappiness=[enter value here]

However this works only for the current session. To change the swappiness on startup (when it really matters), you will have to edit a config file

gksudo gedit /etc/sysctl.conf

Find the vm.swappiness line; if none exists, add it.

vm.swappiness = [enter value here]

To use the settings without rebooting, toggle swapping

  sudo swapoff -a; sudo swapon -a

source: http://www.n00bsonubuntu.net/content/change-swappiness-settings/


Cisco Packet tracer not logging in on Ubuntu 18.04

For users who dual boot Windows, I was able to login after symlink-ing the Windows fonts to /usr/share/fonts. In my case, I did the below:

ln -s /media/bjorn/Windows/Windows/Fonts /usr/share/fonts/windowsfonts

And to re-cache the fonts:

fc-cache

Before this, I did try sudo apt install ttf-mscorefonts-installer but it didn't work and perhaps packet tracer is using some extra fonts not included by ttf-mscorefonts-installer. So I have to resort to the solution above.

I found out about this from the arch linux forums, which involved installing ttf-ms-fonts. That package is for Arch Linux however, for Ubuntu it is ttf-mscorefonts-installer (which didn't work for me).


ACL permissions on Ubuntu Server 14.04.2 LTS

As you can see, /home/owner has absolutely no permissions for any other user. At least give execute permissions so that other users can traverse it to reach subdirectories within:

chmod o+x /home/owner


How can I start up an application with a pre-defined window size and position?

What you will run into

If you want to first call an application and, subsequently, place its window on a specific position and size, the time between calling the application and the moment the window actually appears, is unpredictable. If your system is occupied, it can be significantly longer than if it is idle.

You need a "smart" way to make sure the positioning/resizing is done (immediately) after the window appears.

Script to call an application, wait for it to appear and position it on the screen

With the script below, you can call an application and set the position and size it should appear on with the command:

<script> <application> <x-position> <y-position> <h-size> <v-size>

An few examples:

To call gnome-terminal and resize its window to 50% and place it on the right half:

<script> gnome-terminal 840 0 50 100

To call gedit, place its window on the left and call gnome-terminal, place it on the right (setting its v-size 46% to give it a little space between the windows):

<script> gedit 0 0 46 100&&<script> gnome-terminal 860 0 46 100

To call Inkscape, place its window in the left/upper quarter of the screen:

<script> inkscape 0 0 50 50

The script and how to use it

install both xdotool and wmctrl. I used both since resizing with wmctrl can cause some peculiarities on (specifically) Unity.

sudo apt-get install wmctrl
sudo apt-get install xdotool

Copy the script below into an empty file, save it as setwindow (no extension) in ~/bin; create the directory if necessary.
Make the script executable (!)
If you just created ~bin, run: source ~/.profile
Test-run the script with the command (e.g.)

setwindow gnome-terminal 0 0 50 100

In other words:

setwindow <application> <horizontal-position> <vertical-position> <horizontal-size (%)> <vertical-size (%)>

If all works fine, use the command wherever you need it.

The script

#!/usr/bin/env python3
import subprocess
import time
import sys

app = sys.argv[1]

get = lambda x: subprocess.check_output(["/bin/bash", "-c", x]).decode("utf-8")
ws1 = get("wmctrl -lp"); t = 0
subprocess.Popen(["/bin/bash", "-c", app])

while t < 30:
    ws2 = [w.split()[0:3] for w in get("wmctrl -lp").splitlines() if not w in ws1]
    procs = [[(p, w[0]) for p in get("ps -e ww").splitlines() \
              if app in p and w[2] in p] for w in ws2]
    if len(procs) > 0:
        w_id = procs[0][0][1]
        cmd1 = "wmctrl -ir "+w_id+" -b remove,maximized_horz"
        cmd2 = "wmctrl -ir "+w_id+" -b remove,maximized_vert"
        cmd3 = "xdotool windowsize --sync "+procs[0][0][1]+" "+sys.argv[4]+"% "+sys.argv[5]+"%"
        cmd4 = "xdotool windowmove "+procs[0][0][1]+" "+sys.argv[2]+" "+sys.argv[3]
        for cmd in [cmd1, cmd2, cmd3, cmd4]:
            subprocess.call(["/bin/bash", "-c", cmd])
        break
    time.sleep(0.5)
    t = t+1

What it does

When the script is called, it:

starts up the application
keeps an eye on the window list (usingwmctrl -lp)
if a new window appears, it checks if the new window belongs to the called application (using ps -ef ww, comparing the pid of the window to the pid of the application)
if so, it sets the size and position, according to your arguments.
In case an application does not "show up" within appr. 15 seconds, the script assumes the application will not run due to an error. The script then terminates to prevent waiting for the new window infinitely.

Minor issue

In Unity, when you (re-)position and (re-)size a window with either wmctrl or xdotool, the window will always keep a small marge to the borders of your screen, unless you set it to 100%. You can see that in the image (3) above; while the inkscape window was placed on x position 0, you can still see a minor marge between the Unity Launcher and the inkscape window.


How can I show all non-minimized windows?

I solved this by editing the window matching field in the CompizConfig Settings Manager. I don't think it's installed by default, but it's easy to find in Software Center. Once you have the Settings Manager, go to:

Window Management > Scale > Behaviour > Scale Windows

This field accepts a string that conforms to Compiz's WindowMatching syntax. You can edit it to declare which windows should be included when the Scale plugin activates. Here's the string I used to exclude minimized windows:

(Toolbar | Utility | Dialog | Normal | Unknown) & !state=hidden


Could not open lock file /var/lib/dpkg/lock

Your error says that /var/lib/dpkg/lock is a directory. It's supposed to either be a regular file or not exist at all. See if sudo rmdir /var/lib/dpkg/lock works. (If it fails because there's stuff in it, move the stuff somewhere else then delete the directory.)


How does tr translate one word to another?

tr is for translating characters, not for complete words. It can translate sets. In your example you have "nik-pc" as first collection chars, and "root" is another. In fact, k-p is a range, so it includes all chars from k to p. It will match chars one by one, so n will translate to r, i to o, k to o, and whatever else beyond 4th char will be t. That's why you have "Desktop" translated to "Desottt"

You can see it more clearly in this example:

$ echo "ABCDEF" | tr "ABCDEF"  "12"
122222

Here you can see tr  set 1 have D in position 4. But set 2 has no position 4, so it will use last position set 2 has to translate.

What you are doing is translating one word into another. What you want to do is use more advanced tool like sed or awk.

For instance,

$ ls -l /etc/passwd | awk '{gsub(/root/,"TEST");print}'
-rw-r--r-- 1 TEST TEST 2575 Feb 29 12:30 /etc/passwd


Several online media players don't work in Firefox but they do in Chrome

It was actually the add-on HTTPS Everywhere that was the culprit. I could listen to the Free Music Archive after disabling it.

The Zapping website ended up working fine after a while, without any particular action.

I might add that streams using mp4, like this one, because of licensing issues (they will support it when a third-party decoder is available).


KDE hangs after login if rebooting from Windows in a dual-boot computer

You probably have "UTC=yes" on the file /etc/default/rcS.

When you log in to KDE, it sets the KDE time to the correct local time, and changes the BIOS time to the UTC time. When you log in to Windows, it sets Windows time to the correct local time, and changes the BIOS time to the local time.

For some reason, the first time you log in to KDE, having the local time (instead of the UTC time) on the BIOS make KDE hang. However, this boot on Ubuntu (and/or log in to KDE) is enough to change the BIOS time back to the local time. Then, if you restart the computer and try to log in to KDE again, you don't have the problem anymore.

I can't tell why having the BIOS time set to local time make KDE hang, but here is a solution:

make Ubuntu/KDE interpret BIOS time the same way that Windows does: it should be set to local time. To do this, edit the file  /etc/default/rcS and replace "UTC=yes" by "UTC=no".

This solution worked for me (in fact, the question was just a way of sharing the solution found), but bear in mind that I have tried it during Daylight Saving Time (DST) from a place where the local time is UTC+0 when we are not in DST. Since I have not tried it outside the DST period, I am not sure I did correctly by interpreting the times as "local" and "UTC". Maybe they should be interpreted as "local with DST" and "local without DST". In this case, the solution would not be valid all around the world in every moment of the year. Please comment about it if you can.


How to setup my machine to run as a web proxy?

May be done by two steps:

You should use some proxy service installed to serve your clients.
I recomend Squid, for more information to install and configure on site https://help.ubuntu.com/13.04/serverguide/squid.html.
You must configure your clients to use your Squid by configure their gateway IP (on IP configuration) directing to you machine.

Any problems, please let us know.
Take care!


how make terminal full screen permanently?

if you are using gnome-terminal. you can do this from the settings.

1) Open a Terminal

2) Select  profile preferences  from the  Edit Menu .

3) Tick Use  custom default terminal size  or in some it is initial terminal size and enter a default size that is too large for the screen e.g. 250 columns and 100 rows.


How to rename multiple files by year to year basis in bash

Update after OP's comment

After the OP's comment that not all files have the format DOWN_1981_1.31.nc, but there are also files formatted as G_DOM_WC_m3_1981.nc the awk solution I gave before doesn't seem to fit for the job.

The following script that uses sed is a bit more complex but seems to work fine (first cd into the directory containing the files):

for file in *;do mv $file $(echo $file | sed -r 's/(.*)([0-9]{4})(.*)/echo "\1$(echo "\2 + 59" | bc)\3"/e');done

This script uses regex to capture and change only the year, that has exactly 4 digits (([0-9]{4})), in the filename of all files in a directory, leaving the rest of the filename as is.

Old solution

The following simple script can do this for you (first cd into the directory containing the files):

for file in *;do mv $file $(echo $file | awk -F "_" '/DOWN/{print $1"_"$2 + 59"_"$3}');done


I am not sure if Okular has support for this plugin as it is written for Adobe reader. I was able to download the old Adobe Reader 8 for linux and install the plugin from the FileOpen site. To get the plugin working just untar the archive and copy the FileOpen.AR8.api file to the Adobe Reader 8 plugins folder normally: /opt/Adobe/Reader8/Reader/intellinux/plug_ins/


I think you need a samba version higher than 4.2
Use Ubuntu Xenial.

http://manpages.ubuntu.com/manpages/xenial/en/man8/vfs_ceph.8.html

Regards,
Erik


If you don't specify a user it will default to the local user's name. If you run with sudo it thinks you're root, that's why you get that behavior.

Try being explicit:

sudo rsync -a your-user@serverA:/var/www target-user@serverB:/var/


Grub Installation Problem using Ubuntu Mini ISO

If you haven't installed Ubuntu yet, You could also use the advanced option during the installation process and select the target device for the bootloader as /dev/sdb (which is your hard disk). You will have to configure the other options too, but I don't think you will have a problem in configuring them. A simple google search for each option will present you with adequate information to install properly. Tip: Keep swap at 2gb. More than enough.


It's been reported that on NVIDIA cars, you need to have the 375.27.10 "Developer Beta Driver", and for Ubuntu there's a PPA here that has packages for Artful, Zesty, Xenial, and Trusty. You can add this untrusted PPA with the following:

sudo add-apt-repository ppa:mamarley/nvidia-dev
sudo apt-get update

and install with

sudo apt-get install nvidia-graphics-drivers-381

NOTE: This answer is based on research as I do not have the gear necessary for testing.

Sources:

https://www.gamingonlinux.com/articles/steamvr-for-linux-is-now-officially-in-beta.9156

https://devtalk.nvidia.com/default/topic/819624/can-you-provide-a-repository-for-the-latest-nvidia-drivers-on-ubuntu/?offset=6


I didn't have any trouble installing RStudio on 19.04 just a few days ago. I downloaded the .deb from https://www.rstudio.com/products/rstudio/download/#download and installed it using the following commands.

sudo apt install gdebi-core
sudo gdebi rstudio-1.2.1335-amd64.deb

I elected to use this route based on instructions from https://linuxconfig.org/rstudio-on-ubuntu-18-04-bionic-beaver-linux and reading the notes on https://community.rstudio.com/t/rstudio-does-not-install-on-debian-10-or-ubuntu-19-04-depends-on-old-libssl/24883. Unfortunately, I can't find the link that lead me to the exact commands I used above.


It looks like you need to define a catalog so that glade can find your custom
widget:

http://www.pygtk.org/articles/custom-widgets-glade/Custom_PyGTK_Widgets_in_Glade3.html
 http://developer.gnome.org/gladeui/3.6/catalogintro.html

Thanks,

James


Transfer all file and programs and settings to iso file

I recommend you Systemback on your condition

The Systemback tool allows you to create restore points, backups, and live images of a running system.

Installation

You won't find Systemback in the standard repositories, so you must first add the repo with the command:

sudo add-apt-repository -y ppa:nemh/systemback

Now, update apt with the command:

sudo apt-get update

Finally, install Systemback with the command:

sudo apt-get install systemback

You'll have to okay the dependencies before the install will begin. The dependencies will vary, based on what you have installed.

At this point, you should be able to start Systemback from the Unity Dash or your desktop start menu. You can also start Systemback from the command line with:

sudo systemback

You are now ready to create a live ISO.

Usage

Using Systemback is quite easy. From the main window (Figure A), select the location to house the ISO image (by clicking the ... button under Storage Location).

Figure A

Figure A

The Systemback main window.

Click the Live system create button and, in the new window (Figure B), give the live system a name, change the storage location (this location will need to have more than 4 GB of available space), and click Create new. You can optionally include user data files by checking the associated box.

Figure B

Figure B

Creating the live ISO image.

Note: If your .sblive file is larger than 4 GB, the conversion to a ISO is not possible. This is a file system limitation.

Depending on the size of your installation, the process will take some time to complete, so grab a cup of coffee or administer a server or two. After it's installed, you should find an .sblive image in the defined storage location ready to convert to ISO. This image can either be written to a USB device or used to create a live ISO image. From the Created Live images window, select the image you want to convert, and then click Convert to ISO. When this process is completed, you'll find the .iso file in the storage location ready to be written to disk. With that disk, you can then install the live image on other machines.

The best time to use Systemback is on a close-to-newly installed system. This is simply because of the file system size limitation. If you've installed too many applications on the system, the size will reach beyond 4 GB, and you won't be able to convert it. You can, however, still create restore points for a system. To create a restore point, first make sure you've selected a Storage directory, and then click the Create New button.

Once you've created a restore point, you can then go back to that restore point by simply selecting it from the left side of the window (Figure C) and then clicking System Restore on the right side.

Figure C

Figure C

Restoring from a restore point.

In the resulting window (Figure D), select the type of restore you want to do, if you want to include user configuration files, and click Next. This will begin the restore process.

Figure D

Figure D

Restore point options.

Systemback is a great way to create live images based on a pre-existing system and restore points in case you need to roll a Linux machine backward.

Source


Is a 3 GB USB enough for installing Ubuntu?

Yes and potentially No.
A netboot or mini.iso will fit on a 384MB thumb-drive/install media (possibly smaller depending on release should you have a thumb-drive that small still lying around).
The last Ubuntu desktop ISO I downloaded (groovy yesterday) was 2.5GB and I used a 4GB thumb-drive to write that onto.
But the size varies on release, and that was a groovy desktop ISO will be larger than older ISOs that contain less or no closed-source drivers, plus released (non-development) ISOs include less diagnostic/development libraries useful in crash reporting which exist only on development ISOs.
However my most common thumb-drives I use are still 2GB as many ISOs will fit on them.
The thumb-drive size required will depend on

the release you want (closed source blobs aren't included all releases)
the version you want server? desktop? or other?
the flavor you want?  (some don't include closed source blobs)
plus the ISO you choose (options exist)

We have no specifics, so cannot provide a specific answer.


What checks should be used when installling non-repository or offline software?

Virus checker - run the code through Avast,  AVG, BitDefender (must select "Evaluation version"), Comodo, and, of course, ClamTK (install from Synaptic).

How long has it been out there? How long has the maintainer been out there?  Do a web search for complaints or bug reports. Old bug reports are a good sign... it's been around a while.

Download the source and recompile it. If the compilation matches the download, chances are low that it contains malware.

You may wish to enable SELinux, see more, see home page.

Best of all, review the code or ask a Linux guru to look at it.


Yes, it's a bit to big for a CD but you could also use a USB device to install ubuntu using uNetBootin.


How to give feedback to an immutable page at wiki.ubuntu.com

A page will pretend to be Immutable until

your Launchpad/Ubuntu account has been added to the ''ubuntu-etherpad'' group (which requires approval by a team admin), and
you have logged in with that account and the option Team membership: ubuntu-etherpad enabled.

IRC channel #ubuntu-doc on freenode helped me out.


Why do my AVI files display with funky colors?

This seems to be related to this question. Since you are using vlc, did you try the steps mentioned in this answer ?


I had the same problem. For me it was the ~/.xsession file missing. To fix that, create or modify the file as following:

#!/bin/bash

dunst & \
startxfce4

source


How to execute sudo command every time I open terminal


EIMNETZFREIGABE-DER-FRITZBOX is the name (and workgroup) you gave the router.

From your link:


After setting password for utorrent on Ubuntu 17.04 at localhost:8080/gui I can't use it

If this is the first time you are opening the web UI, enter admin as username and leave the password field empty.
After logging in to web UI, you can change the password by clicking on the gear icon and opening settings tab. In settings, click on Web UI on the left side and change the password then click on Save settings on top right. Now you can log in with your new username and password.

In case of forgotten password:
Close utserver using system monitor or by running sudo killall utserver in terminal.
Go to your utorrent folder and delete settings.dat file. Run utserver. Now you can log in to Web UI using default admin username and leaving password field empty.


Setting environment variables when executing Eclipse via Unity launcher icon

My recommendation is to create a shell script that will run eclipse the same way that you want it to be launched (with presetting the environment variables, etc) and have the launcher icon call this script instead of Eclipse.

Your other option is to add the environment variables to the eclipse.ini file.


Unknown Partition Table Error on Boot Randomly after Reboot: Conflicting Device Mode

Your problem is basically that you're using motherboard-based software RAID (aka "fake RAID"). For whatever reason, your installation isn't recognizing that software RAID format, which is causing your problems.

I don't have a step-by-step solution to your problem (I avoid this type of RAID like the plague), but I recommend you start by reading the Ubuntu Fake RAID HOWTO. If that doesn't help, then perhaps somebody with more experience with this type of RAID will be able to comment.

One more point, though: Your RAID uses the GUID Partition Table (GPT), which means that fdisk is useless on that disk; you must use either GPT fdisk (gdisk) or something based on libparted (parted or GParted, for instance). The kernel's unknown partition table message is a manifestation of lack of support for your RAID configuration, but fdisk's failure to display partitions is a manifestation of its lack of GPT support; you've got two different causes that happen to show similar symptoms. Furthermore, use of GPT means that Windows must be booting in EFI/UEFI mode. I don't know how you booted your computer, but you must be sure to install Ubuntu in EFI/UEFI mode; booting in BIOS/CSM/legacy mode will create new problems for yourself. The Ubuntu Community wiki on UEFI installations, although somewhat disorganized, does a tolerable job with this subject; and my own Linux on UEFI page covers the pitfalls and procedures, too. Neither of these pages covers RAID explicitly, but if the RAID tools are set up properly, the RAID should be pretty transparent to the installation and boot mode.


Open Containing Folder become Choose Appication in Firefox in Kubuntu

In Kubuntu if you want to open the downloaded file's directory, you would choose Dolphin, as it is the File Manager for KDE, and therefore for Kubuntu (think Windows Explorer on Windows). If you would like to open the downloaded program directly, then it would depend entirely on what type of file was downloaded.

Once Dolphin is chosen as the desired action, you can choose to have Firefox remember the association with Dolphin so that you do not encounter the Choose Application dialogue again.

Alternatively, you can always open Dolphin from the Kickoff menu and browse to the Downloads folder in your Home directory, which will get you to the same place.


"an error occurred while mounting /home/aljobory/drive"

This can be caused for several issues:

Bad/damaged partition. You should from a Live system check the partition for issues.
Bad/damaged disk. Start considering buying a new disk, also do a backup of all your information.
Bad syntax in the fstab file. You should verify all entries in fstab are valid
Not existent drive at the moment of booting. This is common when you have NFS or removable media in your fstab file.

In summary, there are several causes that can cause the problem, each of them with the way to fix them. Investigate them.


Ubuntu 19.04 only recognizes 8GB RAM out of 16GB

Major update! The max RAM on this machine is 8G, as per https://support.hp.com/us-en/document/c04605376

It appears that you've installed memory that exceeds the maximum RAM specs for this computer. See Update #1 for how to check/upgrade your BIOS for a possible fix.

description: SODIMM **DDR** Synchronous 1600 MHz (0,6 ns) [**empty**]

description: SODIMM **DDR3** Synchronous 1600 MHz (0,6 ns)

Note: the user's BIOS only sees the original 8G RAM

Update #1:

Make sure that memory XMP is disabled in the BIOS, and that the CPU is not overclocked.
Check your BIOS version with sudo dmidecode -s bios-version, and if it's not version F.29 Rev.A from June 21, 2019, go to https://support.hp.com/us-en/drivers/selfservice/hp-250-g4-notebook-pc/7609933 and get the new version and install it.
To test the memory, go to https://www.memtest86.com/ and download/run their free memtest. Get at least one complete pass of all the 4/4 tests to confirm good memory.

Update #2:

user currently has BIOS F.1E


kubuntu: wine is not get removed after removing PPA , still showing up

Those desktop entries aren't actually part of the Wine package but of the per-user profile configuration which is never altered during package (un-)installation.

The desktop entries are created when an application run through Wine adds an entry to the (emulated) Windows start menu. The underlying files reside in ~/.local/share/applications/wine/ where you can delete them if you want.

There's (usually) a default per-user Wine environment in ~/.wine/ too if you want to get rid of all per-user resources related to Wine. If you used PlayOnLinux there's also ~/.PlayOnLinux/wineprefix/.


Download the .deb file from the official steam website.
( https://store.steampowered.com/about/ )

After you download it, right click -> properties -> permissions -> Allow executing file as program. You have to put tick there.

Close the properties, then double click the icon. It should open in the software center ready for install.


How do I show output from a script or program in Ubuntu 17.10 top-bar the way BitBar does for Mac OS X?

There is something similar to BitBar for GNOME shell, an extension called Argos.

  Argos is a GNOME Shell extension that turns executables' standard output into panel dropdown menus. It is inspired by, and fully compatible with, the BitBar app for macOS. Argos supports many BitBar plugins without modifications, giving you access to a large library of well-tested scripts in addition to being able to write your own.

You can get this extension from extensions.gnome.org or its GitHub page.


Web Traffic blocked to specific IP address

I was able to fix the problem after turning off the power on the UVerse router and keeping it off for more than an hour.  When it came back on I was able to connect to the webserver again with no problem.  Called and told client to do the same as he was still having problems after I reset.  He did the same and was able to connect shortly after.  Mystery solved? dunno.. but working now.. THanks everyone.


Configuring Apache 2.4 with FastCGI on Ubuntu 16.04 - What do I do with php7.0-fpm.conf?

I hit the same confusion, I feel your pain. After a lot of reading it's become clear to me that most articles are out of date and referring to previous methods (or sometimes combinations).

Using PHP-FPM with Ubuntu 16.04's built-in config, you only need to do this:

sudo a2enconf php7.0-fpm
sudo a2enmod proxy proxy_fcgi

I did most of what you did, then removed it all, when that custom config didn't make sense.

  What is the existing php7.0-fpm.conf for?

The config you found installed by the package is for using mod_proxy_fcgi. It binds .php files via  mod_proxy_fcgi to PHP FPM, using mod_proxy, via a Unix Domain Socket. As far I know this is the most up-to-date "recipe" (of the six now available!)

You do not need to install libapache2-mod-fastcgi that's a different, older method. You do not need to write that configuration - that's for using mod_fastcgi directly. You do not need to install actions fastcgi alias as they are to configure mod_fastcgi.

I do find it odd that none of the articles - even those for Ubuntu 16 - mention the new recipe is all set up for you!

This comment clarified the history for me:

  The preferred method is now fastcgi, using either of those recipes:

  (mod_fastcgi, httpd 2.2)
  http://wiki.apache.org/httpd/php-fastcgi

  (mod_fcgid, httpd 2.2)
  http://wiki.apache.org/httpd/php-fcgid

  (mod_proxy_fcgi, httpd 2.4)
  http://wiki.apache.org/httpd/PHP-FPM

  http://php.net/manual/en/install.unix.debian.php#112544 (2013)

Furthermore this article from Apache, details the three sub-options for configuring mod_proxy_fcgi to connect to FPM, using either ProxyPassMatch or SetHandler + UDS. Note that UDS is since Apache 2.4.10 per https://httpd.apache.org/docs/2.4/mod/mod_proxy_fcgi.html so one needs trusty-backports or newer.

https://wiki.apache.org/httpd/PHP-FPM

So I've come to visualise there are now six ways to configure it:

In roughly historical order:

Apache PHP module: mod_php (the old way)
Via FastCGI - using Handler/Action/Alias/FastCgiExternalServer config

a. mod_fastcgi

b. mod_fcgid
Using PHP-FPM via mod_proxy_fcgi, configured via either:

a. TCP socket (IP and port) ProxyPassMatch ... fcgi://127.0.0.1:9000/path/

b. Unix domain socket (UDS) ProxyPassMatch … unix:/path/to/socket

c. (UDS) via SetHandler "proxy:unix: OR SetHandler "proxy:fcgi:

Disclaimer: this is all new to me, so I've probably still got five things wrong and ten things to learn.


problems with video playback speed and sound in 14.04?

i too had the same problem and i got rid of it in this way just type this command in terminal
you can open your terminal by pressing ctrl+alt+t

and then just type the terminal or copy paste it

sudo apt-get install pavucontrol


Any Way to make Canon LBP2900B Printer work on Ubuntu 17.04 Zesty?

so there are 4 steps:
1) install drivers
2) Register the printer (PPD) with the print spooler
3) Register the printer in the ccpd daemon setup file.
4) Start ccpd daemon

I wonder if you did all those; would you like detailed instructions? and what does dpkg -l cndrvcups* give in a terminal please; if you can copy and paste back what you get in the terminal please

1) if we assume the drivers got installed ... then ..if you copy this next command and paste into a terminal: open the terminal with three keys control, alt and t held down ... and to paste, right-click at the text prompt and look for PASTE in the menu that appears .....

2)Register the printer sudo /usr/sbin/lpadmin -p LBP2900 -P /usr/share/cups/model/CNCUPSLBP2900CAPTK.ppd -v ccp://localhost:59787 -E

3) Register the printer in the ccpd daemon setup file .. this assumes you have only one printer; the LBP2900 connected by usb cable ..sudo /usr/sbin/ccpdadmin -p LBP2900 -o /dev/usb/lp0

4) Start ccpd daemon  sudo /etc/init.d/ccpd start

...... you should now be able to print ........


16.04 not recognizing SD card -- Need Specific Help

Revisited this issue again today when I couldn't put my hands on the USB adapter I've been using, and I came on this post: https://pank.eu/blog/w530-sdcard-reader-fix.html

In short, the sdhci module needs a particular debug setting flag to work... apparently this affects a lot of Thinkpads, including my L560, and the W530. To see if this might work, use lspci -v, and if you see that sdhci-pci is the kernel driver in use go ahead and try it.

With SU:

rmmod sdhci_pci
rmmod sdhci
modprobe sdhci debug_quirks2="0x2"
modprobe sdhci_pci

If you do this with an SD Card in the slot, you should immediately get the pop-up that detects the card and asks you how to handle it.

For an automated long-term solution, it's suggested to make a conf file called  /etc/modprobe.d/sdhci-pci.conf  with the line

  options sdhci debug_quirks2=0x2

That's unverified -- it failed to work for me with a reboot, but I'm not sure I got all the permissions and stuff right or if it's in the right place.

This is the kind of thing why 85% of the kids at my kid's school are on Macs!  If I can't fix something like this on my own PC, what chance does a power user's kid -- the future of Linux users -- have of fixing it when they take their laptop to photography class and, sorry, no way to get the photos onto your PC without wasting lots of time (and battery/WiFi) via "the cloud".


Sudo apt install doesn't work.My packages is broken

Try the following workflow

sudo apt-get clean

sudo apt-get update

sudo apt-get -f install

sudo dpkg --configure -a


I can't really tell from your description if it's what you really want...
But xev will give you the coordinates of the position of your mouse on the designated popup window.
You can pass a specific window id to xev like xev -id 0x3200002 and it will provide the same information for the window that you tell it to watch...
You can get the window id for any window on your screen by using xwininfo and selecting the window you want to watch... xwininfo also provides a lot of info about the windows that you may find useful for your problem....
There may be some parameters that you can pass to those commands to help you get what you want.... Check their man pages.


Module hfspllus not found in directory /lib/modules/5.3.0-42-generic

HFS Plus or hfs+ is a journaling file system developed by Apple. It serves as the primary file system of macOS and OS X. Instead of sudo modprobe hfspllus the correct command to use is sudo modprobe hfsplus


20.04 LTS and B550 motherboard - ethernet problem

Final update for anyone reading this: could not get 20.04 LTS to work, and as a last-ditch effort tried 21.04 and it worked!! Clean install, no fiddling with drivers whatsoever, and the ethernet worked out of the box.


Dual boot (Win7+Ubuntu14) fails for Win 7 after adding SSD with Ubuntu 16

Many thanks for the hints, @oldfred !

I started digging into the chain entries and discovered that /boot/grub/grub.cfg files differ on sda and sdb. The original grub.cfg from HDD (sda) contained the menu entry I used to boot into Win7, while the grub.cfg of sdb didn't have it. I don't remember if the custom menu entries were created by me or by grub upon installing Ubuntu 12 next to Win7. This and this could be helpful to others to create the custom menu entry manually.

Here are the 2 steps I did to make Win7 boot again:

Copy missing /etc/grub.d/25_custom over to sdb from sda.

The contents of /etc/grub.d/25_custom:

#!/bin/sh
exec tail -n +3 $0

menuentry "Windows UEFI bkpbootmgfw.efi" {
search --fs-uuid --no-floppy --set=root 40BE-2040
chainloader (${root})/EFI/Microsoft/Boot/bkpbootmgfw.efi
}

menuentry "Windows Boot UEFI loader" {
search --fs-uuid --no-floppy --set=root 40BE-2040
chainloader (${root})/EFI/Boot/bkpbootx64.efi
}

menuentry "efi/EFI/Boot/bkpbootx64.efi" {
search --fs-uuid --no-floppy --set=root 84ba8463-a7a4-4a32-a429-f28e606435f2
chainloader (${root})/efi/EFI/Boot/bkpbootx64.efi
}

where 40BE-2040 and 84ba8463-a7a4-4a32-a429-f28e606435f2 are EFI partition and /boot partition of Ubuntu 14 on HDD, respectively:

/dev/sda1: LABEL="SYSTEM" UUID="40BE-2040" TYPE="vfat" PARTLABEL="EFI system partition" PARTUUID="41d1ad3d-8c17-44cd-9e4f-e6554d3c532b"
/dev/sda6: UUID="84ba8463-a7a4-4a32-a429-f28e606435f2" TYPE="ext4" PARTUUID="7f61e2e3-7b36-49a0-a357-90032497db30"

sudo update-grub then updates the grub.cfg.

To boot Win7 I'm using the 2nd menu entry: Windows Boot UEFI loader.

If your encrypted swap partition got broken, recover it by following these steps:
punygeek.blogspot.com.ee/2012/10/ubuntu-1204-how-to-solve-disk-drive-for.html

The swap got broken in my case probably because of changing the name & label of EFI partition on sdb while investigating if non-unique partition name/label could be the cause for Win7 not booting. The swap partition started asking for password on Ubuntu 16 booting. I couldn't fix it by updating UUID in /etc/fstab, /etc/crypttab and /etc/initramfs-tools/conf.d/resume. Only the above link helped to fix the encrypted swap partition. Running sudo ecryptfs-setup-swap did fail, but after rebooting the swap got encrypted properly:

> lsblk
├─sdb3           8:19   0     8G  0 part
│ └─cryptswap1 253:0    0     8G  0 crypt [SWAP]

And the output of swapon -s differs from shown in the above link:

Filename                Type        Size    Used    Priority
/dev/dm-0                               partition   8388092 0   -1

But it seems it is the correct swap partition:

> ls -l /dev/mapper/cryptswap1
lrwxrwxrwx 1 root root 7 sept  25 14:02 /dev/mapper/cryptswap1 -> ../dm-0


How do I enable zsh package suggestions as in Ubuntu bash?

For apt package suggestions we may do it with following:

$ sudo apt install command-not-found
$ echo "source /etc/zsh_command_not_found" >> ~/.zshrc
$ exec zsh


“bash: warning” every time starting a terminal

Step 1: Symptom

The initial symptom was the error message:

bash: warning: here-document at line 119 delimited by end-of-file (wanted `EOF')

This tells us that the problem is on line 119 but unfortunately does not tell us which file was running when the problem occurred.  Depending on system configuration, an interactive bash may run any of a large number of start up files.

Step 2: Diagnostic

To find out which lines of which bash start-up files are causing a problem, one can run:

PS4='+ $BASH_SOURCE:$LINENO:' bash -xlic ""

This starts an interactive (-i) bash login (-l) shell in diagnostic mode (-x) and runs an empty command (-c "").  The bash prompt PS4 is set to prefix each line of output with the file and line which caused it.

Step 3: Identifying the problem

Running the above diagnostic command, we found:

+++ /usr/share/bash-completion/bash_completion:1993:unset BASH_COMPLETION_ORIGINAL_V_VALUE
bash: warning: here-document at line 119 delimited by end-of-file (wanted `EOF')
++ /home/peaks/.bashrc:119:cat
+ /home/peaks/.profile:20:PATH=/home/peaks/bin:/home/peaks/.local/bin:/home/peaks/bin:/home/peaks/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin

This indicates that the here-document problem comes from line 119 of the file /home/peaks/.bashrc

The relevant section of .bashrc is:

cat >> ~/.bashrc <<EOF

export PATH="$HOME/.cabal/bin:/opt/cabal/1.22/bin:/opt/ghc/7.10.3/bin:$PATH"

export PATH="/home/peaks/.cabal/bin:/opt/cabal/1.22/bin:/opt/ghc/7.10.3/bin:/home/peaks/bin:/home/peaks/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin"

Line 119 cat >> ~/.bashrc <<EOF is a problem.  It attempts to modify the .bashrc file while the file is being executed.  In this case, it had the effect of appending a new PATH definitions onto the end of .bashrc.  Apparently, the file ended up with a large enough number of such PATH statements to significantly delay bash's initialization.

Step 4: Remedy

The problem could be fixed by opening an editor and deleting the unwanted lines.  Linux offers a choice of editors.  The editor vi is guaranteed to be present on POSIX systems but it has a steep learning curve.  nano is widely available and good for newcomers because it is easy to use.  So, to solve the problem, we could run:

nano ~/.bashrc

And then go to the problem lines and delete them and save the file.

Alternatively, we can avoid having to learn a new editor by running the following command:

sed -i.bak '119d; 130,$d' ~/.bashrc

This command updates ~/.bashrc in place, deleting line 119 and deleting from line 130 the end of the file.  For safety, a backup copy of the original ~/bashrc is saved as ~/.bashrc.bak.


I recently installed Ubuntu 12.04 on my dell inspiron 1545 and I can't get the wireless internet connection to work?

A workaround that I am currently using for a wifi problem with a Dell Inspiron 9300 running 14.04.  (see my issue)

I have a wifi 'repeater/range extender' that provides an ethernet output (engenius erb9250).   I have that ethernet cable plugged into my Dell and that gets me to the internet.  But it tethers me to either the repeater location or the main wifi transmitter.

The repeater was configured when I had a functional wifi connection (different PC).

I have not tried connecting to a non-secured wifi -- the issue MIGHT be related to WPA type security.

My issue has not yet had a response.


Cannot install Handbrake in 64-bit Ubuntu 12.10

What I did was the following:
Since using any of the 2 PPAs in: https://launchpad.net/~stebbins was actually not working for 64 bit systems, I just went and downloaded the package. In my case I did the following:

Used the Handbrake Snapshot PPA found here

Click on View Package Details

Select the Ubuntu version you are using, then click on Filter

Click on the most updated Package available there. In this case there is only one. It should expand to show everything related to that package.

Go down until you get to where all packages for each Architecture are shown. Download the ones that are for your version. In this case, the ones that say amd64 are for 64 Bit systems.

After downloading both (The CLI and GUI Versions), simply double click them. Software Center will take care of the rest.

The end result should be something like this:

This is what I did on 12.04, 12.10 and even on 13.04 using the 12.10 package. All cases with 64 Bit PCs.


How to stop fan running always on Asus P8P67LE motherboard with ATI Radeon HD6900

I'm answering this myself because I couldn't find any other answers to this in Ask Ubuntu although a work around is mentioned in at least several Ubuntu bug reports.

Refer Bug 748080 + Bug 563156

Unfortunately bug 748080 has now been marked as Won't Fix as it was for Ubuntu 11.04.

First I tried setting power_method to  dynpm (dynamic):

sudo echo dynpm > /sys/class/drm/card0/device/power_method

dynpm seems to keep temperature around 64C but there is screen flickering when video card works hard
(eg scrolling fast thru a document) and you can hear fan rev'ing up & down. Very annoying...

The best work around for me so far is to set power_method back to profile, then set power_profile to low

sudo echo profile > /sys/class/drm/card0/device/power_method
sudo echo low > /sys/class/drm/card0/device/power_profile

Fan is much quieter now (still makes small noise) and no flickering or fan rev'ing.
'sensors' says temperature is 51C although I've got no confidence this is accurate.

To make permanent put into the /etc/rc.local :

echo low > /sys/class/drm/card0/device/power_profile

NOTE:
BEWARE It's possible that forcing power_profile to low could be allowing the display adaptor to overheat. Time will tell...


Fingerprint Reader only works to log in Thinkpad T440p Ubuntu 20.04

You will need to update the Pluggable Authentication Modules package. Fortunately, it's not too difficult.

Open a terminal and type: sudo pam-auth-update
Use the spacebar to enable "Fingerprint authentication"
Use Tab to highlight <OK>, then press Enter
Reboot

You should now be able to use your biometric device in a lot more places.


Sanity check on users created via apt-get install

It looks like user creation is performed in the preinst or postinst files for the package, so a simple grep helped.

For packages which are already installed:

grep adduser /var/lib/dpkg/info/PACKAGE.*inst*

For packages which still need to be installed, download a copy and verify:

apt source PACKAGE
grep adduser PACKAGE*/debian/*inst*


Figured this out:
My /etc/resolve.conf was linked to /run/systemd/resolve/stub-resolv.conf
ls -la /etc/resolv.conf
lrwxrwxrwx 1 root root 39 Jul 31  2020 resolv.conf -> ../run/systemd/resolve/stub-resolv.conf

which was screwed because /resolve/stub-resolv.conf did not existed.
to resolve this I had to run:
sudo mkdir /run/systemd/resolve and later create stub-resolv.conf and add nameserver to it.


Install one distribution of your choice (e.g. Kali Linux) in order to install basic files, GRUB etc.

Then, install the other distribution of your choice (e.g. Zorin).

It maybe boot Kali Linux only. If it does, let Kali start up. Then, open a terminal window, and runsudo update-grub in order to make GRUB notice that there is another OS.

If it does not boot Kali only and displays you a screen like the one below, leave GRUB intact. Do not execute the command above in neither of the two OSes.

Make sure to modify the UEFI settings in your motherboard in order to boot the OSes.

Hope this works!


Partition/boot issues - is there boot tool who can re-set partitions or format laptop hard drive clean?

The Ubuntu installer normaly gives you the option to "Use whole disk" or something similar. Also "Something else" which will let you do the partitioning manually.


Application menu with root owned windows?

I reported this issue almost a year ago. It's a design/engineering problem that hasn't been solved yet, partly because of the security issues involved.


The problem is, as far as I can tell, that another user is not allowed to access your X window system. Otherwise any user on the system would be able to open popup-windows on your desktop ad libitem. You will likely have to solve the problem by providing an appropriate X authorization via XAUTHORITY environmental variable.

When you run sudo -u app_restricted -l /usr/bin/gedit it only means that you list the programs that the user is allowed to run. Since you tell what the program you are asking about, it only lists that one. Yes, user app_restricted is allowed to run the program... in this users X session, but not in your X session.


Error when trying to install mysql server in ubuntu server 12.04 LTS

You seem to have a permissions error, try completely removing and then reinstalling

sudo apt-get remove --purge mysql-server

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

Here is the documentation for mysql on ubuntu LINK


You have not only a list of installed programs, but every single package that was on your computer. Some of the packages are not in the repository any more, since they are replaced. You should be able to ignore these errors.


As muru points out, it looks like you're using the vim-tiny package. A more featureful Vim without a GUI can be found in either:

the vim package, with which you can't script Vim itself with external scripting languages
the vim-nox package, with which you can script Vim itself with external scripting languages

To install one, use either:

sudo apt install vim

Or:

sudo apt install vim-nox


PlayOnLinux won't install anything (17.10)

It seems this version (Ubuntu 17.10) isn't supported any more.
Please see Ubuntu release cycle schedules here.

I suggest to do a clean install of 18.04 or upgrade your system to 18.04 LTS. Because this is a long term supported version, it will serve you well until the end of Q3 2020.

Consider to back up your system and data, things may go wrong during install/upgrade.

You can download the installer of 18.04 LTS from here.

Also try to avoid 18.10, because the support for ubuntu 18.10 will also end within a year, leaving you in a similar situation like 17.10.


Run the below commands on terminal to extract tar.gz file,

cd /path/to/the/directory/which/contains/filename.tar.gz
tar -xzvf filename.tar.gz


Try the following:

sudo apt-get install libvirt-dev xsltproc libxml2-dev libxml2
cd ~
git clone git://libvirt.org/libvirt-php.git libvirt-php
cd libvirt-php
sudo sh autogen.sh
sudo ./configure
sudo make
sudo make install
sudo service apache2 restart

To verify it's installed run the following command

php -m | grep libvirt

You should see libvirt in the output.


How to change the background to use built-in theme from gnome-terminal profile preferences --> Color using dconf or gsettings?

There are no schemas designed for "Built-in-schemes:"

what is "Built-in-schemes:" doing is, it has pre-configured colors..

for the foreground-color with description "Default color of text in terminal"

for the background-color with description "Default color of terminal background"

So find out the two colors (first choose the Buili-in-schems) for the "Built-in-schems:" with the below commands

note: change the UUID in below commands with your UUID

pratap@pratap:~$ gsettings get org.gnome.Terminal.Legacy.Profile:/org/gnome/terminal/legacy/profiles:/:dec6f19d-ac6e-438a-8a48-122429c5c909/ foreground-color
'rgb(131,148,150)'
pratap@pratap:~$ gsettings get org.gnome.Terminal.Legacy.Profile:/org/gnome/terminal/legacy/profiles:/:dec6f19d-ac6e-438a-8a48-122429c5c909/ background-color
'rgb(0,43,54)'
pratap@pratap:~$

This means when ever you provide these two rgb colors.. the "Built-in-schemes:" will be changed to "Solarized-dark"

For Example:
If you want to have "Tango-Dark" as the "Built-in-schemes:"

Run the below commands.. Change the UUID with your profile ID.

gsettings set org.gnome.Terminal.Legacy.Profile:/org/gnome/terminal/legacy/profiles:/:dec6f19d-ac6e-438a-8a48-122429c5c909/ foreground-color 'rgb(211,215,207)'

gsettings set org.gnome.Terminal.Legacy.Profile:/org/gnome/terminal/legacy/profiles:/:dec6f19d-ac6e-438a-8a48-122429c5c909/ background-color 'rgb(46,52,54)'

In the below GIF, I have two terminals open. The left one is the profile with ID starting with "dec6" and the commands I gave in other Terminal with different profile..


Script to open vlc with local ip and port

Because hostname -i lists all IP addresses of the host, this can be more than one. The IP addresses are separated by spaces. The function is just a bit "lazy" and puts a space after every IP address, even if it's only one.

You could remove the space at the end, but if your host has more than one IP address this script will still fail.

It's better to use this instead (as explained here):

/sbin/ifconfig eth0 | grep 'inet addr:' | cut -d: -f2 | awk '{ print $1}'

You should replace eth0 by the interface you want the IP address of.

So your script becomes (I also made it a bit shorter as you can see):

#!/bin/bash

IP=`/sbin/ifconfig eth0 | grep 'inet addr:' | cut -d: -f2 | awk '{ print $1}'`

vlc "http://${IP}:8888/"


How to login to Ubuntu 18.04 without a password

I do exactly this myself, and upgraded the box from 16.04 to 18.04 a few weeks ago - with zero ill effects.

Run sudo passwd -d username to delete the password for this user.

That should allow you to login without entering a password, and works fine for me on 18.04

If this is your only account on the machine, you should probably either configure passwordless sudo, or add a second account with administrative privileges.


Currently there is no Unity scope installed by default that will search your contacts.

There is a prototype scope that could fill that role if it is completed here:

https://launchpad.net/unity-lens-people

It isn't really ready for prime time yet though, so is not in the Ubuntu archive.


How do you write a script that alerts you in the Terminal like mail's "You have mail"

You can use the special PROMPT_COMMAND variable, look it up in man bash.

$ PROMPT_COMMAND='echo hello'
hello
$
hello
$

Set it at the end of ~/.bashrc. I suggest you write a function and call that function in the PROMPT_COMMAND.


Keyboard layouts are not automatically changed when you start using a new keyboard, there is a chance that the key mappings are different, specially if we are talking about a Apple keyboard.

To change the mappings of the keyboard used in your system you need to:

Open the system settings

Select Keyboard

Select Layout Settings

Right bellow the list of keyboard mappings active there is a little + button, press it and you will be able to add and select a new keyboard mapping

When selecting a new keyboard mapping from the list you will be able to press the Preview button to have a look at the look and key distribution of the keyboard that will be a in use, try to match as close as you can to yours.


The problem was solved by using -nojoy in launch options.


Can not click checkboxes in preferences in gedit

When starting a GUI application, like gedit, using sudo, you must use sudo -H, like so:
sudo -H gedit /path_to/filename


PulseAudio high CPU load and sound gets interrupted

So, when everything fails try to remove and re-install. I did this and it worked for me...

sudo apt-get --purge remove pulseaudio

Which removed also some dependant packages (confirmation asked), which had to be re-installed altogether with the following command

sudo apt-get install indicator-sound* libcanberra-pulse* pulseaudio* pulseaudio-module-bluetooth*


You may achieve the result by editing the /usr/share/X11/xkb/symbols/pc file.
Find the line starting with key <ALT> and replace Alt_R to Control_R.
If you want to swap right control with right alt, you need also find the line starting with key <RCTL> and do analogically. Then relogin to the system.
Works on Ubuntu 18.10 gnome-shell 3.30


How to prevent Ubuntu from throwing error after removing the USB keyboard?

It looks like a kernel message. I would lower the kernel log level in the console:

From https://superuser.com/questions/351387/how-to-stop-kernel-messages-from-flooding-my-console

In the file /etc/sysctl.conf

# Uncomment the following to stop low-level messages on console
kernel.printk = 3 4 1 3


Grub2 just cycles the startup splash screen

Following these instructions fixed my problem:
Unable to install Ubuntu on Acer Aspire ES1-533
This helped me get rid of all the extra boot files:
https://www.linuxbabe.com/command-line/how-to-use-linux-efibootmgr-examples
I basically copied and pasted the delete command in a text editor, then pasted it into the terminal window. I was able to delete dozens of the entries at a time! Just be careful when you type in the hex codes cuz this will do some damage if you get things wrong.
Thanks again to @oldfred for the help!


Possible missing frmware /lib/firmware/i915

May 20, 2019 Update
To answer your question you don't need to update drivers for a processor you aren't running but it is nice to see the warnings disappear when you do.
Today I received these warning:
update-initramfs: Generating /boot/initrd.img-5.0.1-050001-generic
W: Possible missing firmware /lib/firmware/i915/skl_dmc_ver1_27.bin for module i915
W: Possible missing firmware /lib/firmware/i915/kbl_dmc_ver1_04.bin for module i915
W: Possible missing firmware /lib/firmware/i915/cnl_dmc_ver1_07.bin for module i915
W: Possible missing firmware /lib/firmware/i915/icl_dmc_ver1_07.bin for module i915
W: Possible missing firmware /lib/firmware/i915/kbl_guc_ver9_39.bin for module i915
W: Possible missing firmware /lib/firmware/i915/bxt_guc_ver9_29.bin for module i915
W: Possible missing firmware /lib/firmware/i915/skl_guc_ver9_33.bin for module i915

I downloaded the blobs (described in next section) and then used:
$ sudo cp ~/Downloads/*.bin /lib/firmware/i915/

$ sudo update-initramfs -u
update-initramfs: Generating /boot/initrd.img-5.0.1-050001-generic

Now my Sky Lake (skl) drivers are up to date and I can try out latest kernel parameters recommended on the internet. Warning messages for future processors Kaby Lake (kbl), Cannon Lake (cnl) and Ice Lake (icl) are gone making life less stressful.

May 26, 2018 Update
Minor revision August 6, 2018.
New download screen of "blobs"
Recently Intel has created a new download page and new web page layout:

The download files are now called firmware blobs which is new-speak for firmware drivers. It stands for Binary Large OBject (BLOB).
Drivers are sorted by processor:

bxt Broxton, Canceled in 2016, successor to Cherry Trail processors
kbl Kabylake, 7th generation, eg i7-7700
skl Skylake, 6th generation, eg i7-6700

Then drivers are organized by subgroup (full explanation here):

GUC - GuC is designed to perform graphics workload scheduling on the various graphics parallel engines.
DMC - DMC provides additional graphics low-power idle states.
HUC - HuC is designed to offload some of the media functions from the CPU to GPU.

Match error message to driver needed
Compare the error message you are receiving by update-initramfs or update-grub to find the missing driver. In your example the message was "/lib/firmware/i915/kbl_guc_ver9_14.bin" so you are missing the Kabylake GuC called: kbl_guc_ver9_14.bin in the web page shown above. You don't want the newer one: kbl_guc_ver9_39.bin
Download driver needed
There is no more installation script as in past versions. Simply highlight the missing driver (blob) and click on it. This screen appears:

Initially you only see the "hex dump" but after clicking the link titled plain a download window appears as illustrated above.
Click "Save File"
Install driver with simple sudo cp (copy command)

After downloading, installation is a simple sudo cp (copy command) and there are no complicated tar commands, or ./script_name installation steps.
Quick Install
cd ~/Downloads
sudo cp kbl_guc_ver9_14.bin /lib/firmware/i915
sudo cp bxt_guc_ver8_7.bin /lib/firmware/i915

IMPORTANT: Replace kbl_guc_ver9_14.bin and bxt_guc_ver8_7.bin above with the missing driver names you downloaded.
VOILA! New driver is installed. Much simpler than previous installation methods for missing Intel i915 drivers!
TL;DR Exploratory Installation
I already had the driver installed. This lengthy installation method gives you an idea of before and after effects of copying the BLOB:
$ sudo updatedb
$ llocate kbl_guc_ver9_14.bin
ACCESS      OWNER  GROUP  SIZE    MODIFIED    NAME (updatdb last ran: 2018-05-26 12:07:57)
-rw-rw-r--  rick   rick   142656  2018-05-26  /home/rick/Downloads/kbl_guc_ver9_14.bin
-rw-rw-r--  rick   rick   142656  2017-02-24  /home/rick/Downloads/kbl_guc_ver9_14/kbl_guc_ver9_14.bin
-rw-r--r--  root   root   142656  2017-10-26  /lib/firmware/i915/kbl_guc_ver9_14.bin
$ diff /home/rick/Downloads/kbl_guc_ver9_14/kbl_guc_ver9_14.bin /lib/firmware/i915/kbl_guc_ver9_14.bin
# Blank line appears here signifying no differences from previous version
$ sudo cp /home/rick/Downloads/kbl_guc_ver9_14/kbl_guc_ver9_14.bin /lib/firmware/i915
$ llocate kbl_guc_ver9_14.bin
ACCESS      OWNER  GROUP  SIZE    MODIFIED    NAME (updatdb last ran: 2018-05-26 12:07:57)
-rw-rw-r--  rick   rick   142656  2018-05-26  /home/rick/Downloads/kbl_guc_ver9_14.bin
-rw-rw-r--  rick   rick   142656  2017-02-24  /home/rick/Downloads/kbl_guc_ver9_14/kbl_guc_ver9_14.bin
-rw-r--r--  root   root   142656  2018-05-26  /lib/firmware/i915/kbl_guc_ver9_14.bin

Use the locate command below in place of llocate.

February 14, 2017 - Intel has released drivers
As per this bug report today (W: Possible missing firmware /lib/firmware/i915/kbl_guc_ver9_14.bin for module i915) Intel has released the required Kabylake and Broxton drivers on their (https://01.org/linuxgraphics/downloads/firmware) web page:

Download the missing drivers for Kabylake (GuC - Ver 9.14) and (DMC - Ver 1.01) and Broxton (GuC - Ver 8.7). These are in .tar.gz and .tar.bz2 format.
Install drivers in "tar" format
Although you can run the install.sh scripts these instructions are the easiest.
Change to the download directory and verify files are there:
:~$ cd Downloads

:~/Downloads$ ll *tar*
-rw-rw-r-- 1 rick rick 69329 Feb 14 21:05 bxtgucver87.tar.gz
-rw-rw-r-- 1 rick rick  4338 Feb 14 21:06 kbldmcver101.tar.bz2
-rw-rw-r-- 1 rick rick 70402 Feb 14 21:06 kblgucver914.tar.gz

Extract the compressed tar files:
:~/Downloads$ tar -zxvf bxtgucver87.tar.gz
firmware/bxt/guc/bxt_guc_ver8_7/
firmware/bxt/guc/bxt_guc_ver8_7/install.sh
firmware/bxt/guc/bxt_guc_ver8_7/ReleaseNotes.txt
firmware/bxt/guc/bxt_guc_ver8_7/bxt_guc_ver8_7.bin

:~/Downloads$ tar -xjvf kbldmcver101.tar.bz2
kbl_dmc_ver1_01/
kbl_dmc_ver1_01/kbl_dmc_ver1_01.bin
kbl_dmc_ver1_01/install.sh
kbl_dmc_ver1_01/ReleaseNotes.txt

:~/Downloads$ tar -zxvf kblgucver914.tar.gz
firmware/kbl/guc/kbl_guc_ver9_14/
firmware/kbl/guc/kbl_guc_ver9_14/install.sh
firmware/kbl/guc/kbl_guc_ver9_14/kbl_guc_ver9_14.bin
firmware/kbl/guc/kbl_guc_ver9_14/ReleaseNotes.txt

Copy the files and update initramfs
:~/Downloads$ sudo cp -t /lib/firmware/i915/ firmware/bxt/guc/bxt_guc_ver8_7/bxt_guc_ver8_7.bin kbl_dmc_ver1_01/kbl_dmc_ver1_01.bin firmware/kbl/guc/kbl_guc_ver9_14/kbl_guc_ver9_14.bin
:~/Downloads$ sudo update-initramfs -u
update-initramfs: Generating /boot/initrd.img-4.9.9-040909-generic

Notice the error (warning) messages are gone!
Remove work files
:~/Downloads$ rm -r firmware kbl_dmc_ver1_01 *.tar.*

Historical (Original) Post for reference
I've had two warning messages on missing i915 drivers for Kernel's 4.6.3, 4.7.1, 4.7.2, 4.7.3 and 4.7.5. I've ignored them and things have been fine with my HD4000 Intel Integrated Graphics. I wish the same thing could be said about Nvidia and Nouvaeu.
As one answer in your link stated you can go to Intel's website to get most up-to-date Linux Graphics drivers at: intel-linux-graphics-firmwares. However when I read that site a few weeks ago I was concerned with all the possible things that can go wrong under different scenarios so I opted out.
Did you install 4.8 release candidate 6 from September 24th? That's the most current in Ubuntu I believe. You don't have to answer but I'm curious why you went with 4.8 instead of 4.7.5, ie what the differences are you need to fix things.
Edit - October 19, 2016
Now using kernel version 4.8.1 (real version and not release candidate) for over a week and things are working nicely. This is under Ubuntu 16.04 though. Ubuntu 16.10 was released October 13th and it is using Kernel version 4.8.0 I believe.
It's not my plan to keep updating this answer but I wanted to lay to rest the inference that 4.8 release candidates might have problems. The real version does not.
Edit - February 2, 2017
Now running Kernel version 4.9.5 mainline version which at this time Ubuntu 16.04 has updated it's kernel to 4.4.0-59. Intel changed it's link for Intel Graphics for Linux drivers and I updated the new link above.
Questions still remain about the warning messages generated by sudo update-initramfs -u when Kernel version > 4.8 (Ubuntu 16.10 and Ubuntu 17.04):
W: Possible missing firmware /lib/firmware/i915/kbl_dmc_ver1_01.bin for module i915
W: Possible missing firmware /lib/firmware/i915/kbl_guc_ver9_14.bin for module i915
W: Possible missing firmware /lib/firmware/i915/bxt_guc_ver8_7.bin for module i915

As stated in the bug report (bugs.launchpad.net - linux firmware bug) the drivers simply do not exist and will not until a future chip called "kaby lake" is released.
Make the warning messages go away
To make the warning message go away I did the following:
$ sudo cp assembly/hello /lib/firmware/i915/kbl_dmc_ver1_01.bin
$ sudo cp assembly/hello /lib/firmware/i915/kbl_guc_ver9_14.bin
$ sudo cp assembly/hello /lib/firmware/i915/bxt_guc_ver8_7.bin
$ sudo update-initramfs -u
update-initramfs: Generating /boot/initrd.img-4.9.5-040905-generic

Voila! No more warning messages.
The program "hello" is a 504 byte assembler program that says "Hello World!". You can copy any small executable to the firmware binaries given in the error messages. When Intel eventually releases them the software updater will replace them with the real versions.
How to navigate Intel Graphics for Linux website
It was asked via comments how to navigate within the the new Intel website (01.org - Linux Graphics Downloads) which presents this screen:

Type Ubuntu 16.04 into the search field and click the Filter button.
For Ubuntu 16.10 select the first result. In our case Ubuntu 16.04 select the second result INTEL GRAPHICS UPDATE TOOL FOR LINUX* OS V2.0.2 and this screen appears:

In my case I selected Ubuntu 16.04 64-bit which downloaded the file intel-graphics-update-tool_2.0.2_amd64.deb to my ~/Downloads directory.
The next step is to open the terminal and use:
cd Downloads
sudo dpkg -i intel*.deb

NOTE: Intel uses the ancients ttf font and your installation will fail if it's not on your system. At this point you need to use:
sudo apt -f install
sudo apt update
sudo apt upgrade

Now you can run the Intel Graphics for Linux Updater tool as this screen shows:

Add Intel signatures for Ubuntu
During apt-get update you can see warning / error messages like this:
W: GPG error: https://download.01.org/gfx/ubuntu/16.04/main xenial InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 56A3DEF863961D39
E: The repository 'https://download.01.org/gfx/ubuntu/16.04/main 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.

You'll need to add Intel's signatures using:
wget --no-check-certificate https://download.01.org/gfx/RPM-GPG-KEY-ilg-4 -O - | \
sudo apt-key add -

Then update in Ubuntu:
sudo apt update
sudo apt upgrade


Adding write permission to SFTP folder stops ability to connect using Filezilla

Ok, so this was actually easy to solve. I made a sub folder in Files and changed ownership to root:mygroup then added write permission for the group


How do I include a dependency package in a snap?

List the packages whose contents you want bundled in your snap under stage-packages too. For https://github.com/ubuntu/snappy-playpen/blob/master/2048/snapcraft.yaml this is for example:

stage-packages:
  - qml-module-qtquick2
  - qmlscene


Restart of apache2 fails on Ubuntu 12.04

The line

webserver localhost

is invalid. You have to remove it.

Use ServerName if you want to set the FQDN:

ServerName localhost


How to add widgets on GUI developed with Glade?

Yes, you can. If you haven't already loaded the glade file the load it with:

builder = gtk.Builder()
builder.add_from_file("/path/to/file")

Replace "/path/to/file" with the path to the glade file. You can then get the container like the viewport:

viewport = builder.get_object("nameOfViewport")

Replace "nameOfViewport" with what you named it in glade. You can then add the widget using the view ports add() method:

viewport.add(nameOfWidget)

Replace "nameOfWidget" with the name of the widget you want to add.

Edit: Make sure you initialize the widget with something like

nameOfWidget = gtk.Label()

for a label widget.


You're missing the development libraries for libnl-genl-3. Issue this command:

sudo apt-get install libnl-genl-3-dev

That should fix it.


You can try fontforge. It is available in the standard repository. Though the GUI is somewhat messy, but it's powerful and I've used it to change names of fonts.

Click the button to install:

Or with this command:

sudo apt-get install fontforge

There is another front-end to fontforge. it is mensis. Install it with

sudo apt-get install mensis

Or using this link:

If apt-get says, no such packages, use this command to refresh package database

sudo apt-get update

See this excellent FAQ in the fontforge site at sourceforge.net . And If you like reading good writings and have time to read the history of fontforge, I recommend you to read this excellent article too!


To apply your setting in /etc/default/grub you need to run

sudo update-grub


Quick fix
Enable virtualization technology in BIOS.

Details

What this message means?

This message means actually what it says: VMX is disabled in BIOS.
VMX stands for Virtual Machine Extensions and it is a virtualization technology. More info here.

How can I remove it?

There is one quick way (workaround) to remove the message: Go to your BIOS settings and enable the virtualization technology. This article has some screenshots of how to do it in an Asus BIOS for both Intel and AMD processors.

More about the issue
The reason you probably didn't see this message up until now is that the logging of it got into a quite recent Linux kernel and it is an 'error' in journal.
Apparently this annoys other people as well, there is a bug report on it already:
I found the solution for you here
If you feel that enabling a processor feature that you don't use just to make an error message go away is wrong then read on.

The reason why this issue is happening
Based on the discussion on the above mentioned SUSE thread and my other findings, it seems that this virtualization technology is used by the so called KVM (Kernel-based Virtual Machine) which is built into the Linux kernel.
Upon boot, this generates an error in the logs that it cannot be initialized because the hardware capabilities are disabled in BIOS.
These are the actual commits that introduce this change:
https://github.com/torvalds/linux/commit/ef4d3bf19855641fc8a1f621eaf06e2a2bb872b
https://github.com/torvalds/linux/commit/bb02e2cb715a3f3552dbe765ea4a07799e4dff43

Proper (not yet known) solution
Now if KVM itself is disabled in some way than I think that would also make this error message go away because the kernel would not even bother trying to load it. (Second commit above and mailing list discussion about it
I really did my homework and searched how to disable this kernel feature yet I could not find any relevant information how to do it and I am really not sure that it is a good idea to disable "ad hoc" kernel features just because they are unable to load themselves because of disabled hardware features.


ubuntu will run but wont install from disk

You could also boot the disk and choose install Ubuntu to kick off ubiquity without the live environment and see if it will install that way.


I'm not an expert, but are both from the same Manufacturer? check the prod ID etc via lsusb. If two usb dev have same ID then that might mess up the mounting system tree. Instead of two dongles use one via tethering to a portable device. This will express in Linux as "usb0" so it might work that way.

Also, what you are trying to do, which I also would like to achieve, is called "bonding" see wikipedia page here https://en.wikipedia.org/wiki/Link_aggregation.

Problem with dongles per se is that they use PPP as the protocol which is verrry goofy in that the link can "go down" w/o warning or detection and come up again (cell phone companies). This is very difficult to bypass using the bond protocols which assume at the least a steady link.

Nonetheless, there's a co called teradek (http://www.dvc.uk.com/acatalog/BOND.html)  in UK which sells a GBP2,000 (!) "box" which allows you to connect multiple dongles to stream live video out of Syria for example! Yes, i know, too expensive unless some news channel handles your expenses.

Pls  update me someone if htis can be done in s/w on my Tux box?

EDIT:
Actually I came to this below solution backwards: There is a company called "Connectify" and they sell s/w for $100 for windoze which has prob reverse engineered a standard linux solution of "bonding" module in the kernel!! they claim in their advertising how "hard" it is in linux: ie. load kernel module enable script etc.

so reverse engineering connectify's statement I stumbled on following procedure
install ifenslave:
sudo apt-get install ifenslave

then
modprobe bonding

ifconfig bond0 192.168.0.0 netmask 255.255.255.0

ifenslave bond0 eth0 ppp0 usb0

ifconfig bond0 up

in addition to implementing straight "bonding" above, you can install a local reverse proxy like HAProxy, so apparently there are MANY MANY ways to do Link Aggregation in Linux only we have to learn about it.


Remove trash icon from GNOME desktop and add to Ubuntu dock

Removing the Trash icon from desktop
Up to Ubuntu 18.10
Launch Terminal and run
gsettings set org.gnome.nautilus.desktop trash-icon-visible false

You may alternatively use GUI tools like dconf-Editor or (GNOME) Tweaks (see this for reference).
Ubuntu 19.04 and later
Disable the trash icon option from Extensions > Desktop Icon in Tweaks:

Alternatively, run the following command
gsettings set org.gnome.shell.extensions.desktop-icons show-trash false

Adding a Trash icon to the Ubuntu dock
Up to Ubuntu 19.04
Follow the steps below.

First install the trash-cli package by running
sudo apt install trash-cli

Create a .desktop file (say trash-in-dock.desktop) in your ~/.local/share/applications/ directory.

Open the file with a text editor and add the following lines
[Desktop Entry]
Comment=Trash icon for Ubuntu dock
Terminal=false
Name=Trash for Dock
Exec=nautilus trash:///
Type=Application
Icon=user-trash
NoDisplay=false
Actions=empty-trash;

[Desktop Action empty-trash]
Name=Empty Trash
Exec=trash-empty

Save the file and re-login if needed.

Click "Activities" or press Super and search for Trash for Dock. It should appear in the results.

Right click the icon and select "Add to Favourites".

What you will get

A Trash icon in your dock, clicking which will open the Trash folder.

Right clicking the Trash icon in the dock will show an "Empty Trash" option which should work as intended.

What you won't get

The Trash icon in the dock would be like other app icons, it won't be conveniently placed at the bottom like in Unity Launcher.

The Trash icon in the dock would be a 'static' one, i.e. won't show two different icons depending on whether the Trash is empty or not.

Ubuntu 19.10 and later
Simply run the following command
gsettings set org.gnome.shell.extensions.dash-to-dock show-trash true


Problems with MAILTO setting: server doesn't sent cron's e-mail

Oh, I found the answer!

I should have used big -O to mean "output file", but instead I used small -o which means "output log", so, no log for cron, nothing to send - no emails!


Unfortunately, this is a common problem found in linux modules enabling support for various audio hardware. The most sensible thing to do in this case is writing a bug report. The exact same issue has been fixed a short while ago for most creative based sound cards.