How to let screen time out on sign in screen

The default lightdm display manager runs the login screen under its own system account, so I believe you will need to change the power settings daemon's settings for that account.

Since the lightdm account is not a login account, you can't do that directly (as far as I know), however you can run configuration commands using either the dconf or gsettings utilities by using sudo su. For example, to see what the current power settings are for the login process

$ sudo -H -u lightdm dbus-launch --exit-with-session gsettings list-recursively org.gnome.settings-daemon.plugins.power
No protocol specified
No protocol specified
org.gnome.settings-daemon.plugins.power active true
org.gnome.settings-daemon.plugins.power button-hibernate 'hibernate'
org.gnome.settings-daemon.plugins.power button-power 'interactive'
org.gnome.settings-daemon.plugins.power button-sleep 'suspend'
org.gnome.settings-daemon.plugins.power button-suspend 'suspend'
org.gnome.settings-daemon.plugins.power critical-battery-action 'suspend'
org.gnome.settings-daemon.plugins.power idle-brightness 30
org.gnome.settings-daemon.plugins.power idle-dim-ac false
org.gnome.settings-daemon.plugins.power idle-dim-battery true
org.gnome.settings-daemon.plugins.power idle-dim-time 30
org.gnome.settings-daemon.plugins.power lid-close-ac-action 'suspend'
org.gnome.settings-daemon.plugins.power lid-close-battery-action 'suspend'
org.gnome.settings-daemon.plugins.power notify-perhaps-recall true
org.gnome.settings-daemon.plugins.power percentage-action 2
org.gnome.settings-daemon.plugins.power percentage-critical 3
org.gnome.settings-daemon.plugins.power percentage-low 10
org.gnome.settings-daemon.plugins.power priority 1
org.gnome.settings-daemon.plugins.power sleep-display-ac 600
org.gnome.settings-daemon.plugins.power sleep-display-battery 600
org.gnome.settings-daemon.plugins.power sleep-inactive-ac-timeout 0
org.gnome.settings-daemon.plugins.power sleep-inactive-ac-type 'suspend'
org.gnome.settings-daemon.plugins.power sleep-inactive-battery-timeout 0
org.gnome.settings-daemon.plugins.power sleep-inactive-battery-type 'suspend'
org.gnome.settings-daemon.plugins.power time-action 120
org.gnome.settings-daemon.plugins.power time-critical 300
org.gnome.settings-daemon.plugins.power time-low 1200
org.gnome.settings-daemon.plugins.power use-time-for-policy true

You can compare these against your user account's settings by running the same command as a normal user, without the sudo dbus-launch... part i.e.

$ gsettings list-recursively org.gnome.settings-daemon.plugins.power

It should be possible to set the behaviour as well using gsettings or dconf, for example to set the login screen to sleep after 120 seconds (2 minutes) of inactivity when on battery power

$ sudo -H -u lightdm dbus-launch --exit-with-session gsettings set org.gnome.settings-daemon.plugins.power sleep-display-battery 120

There is an equivalent setting sleep-display-ac for the sleep time when on AC power.


"do-release-upgrade -d" doesn't prompt for update

check /etc/update-manager/release-upgrades maybe prompt value is lts where it should be normal


Firstly you're going to need a Windows installation media. If you don't have one burn Windows manually to a flash drive.
Next you're going to have to boot the Windows installation media in
UEFI mode from your BIOS. Do this by adding a new boot entry for
your flash drive. Locate the bootx64.efi file which should be
inside the boot or EFI folder in your USB flash drive and select it.
Give your new boot entry a name and make sure to add this new entry
to the top of the boot priority list.

Windows installation media will now boot up in UEFI mode.

Select repair your computer
Then troubleshoot
And finally startup repair

Then restart your computer Windows should boot up again.


After automatic upgrade, apt-get update cause `Error in `appstreamcli': double free or corruption`

Just upgrade to 16.04.3 by running apt-get upgrade.
After I did it, the problem had gone.


I use the following settings for a transparent window, that is always displayed and can be covered by other windows.

own_window = true,
own_window_transparent = true,
own_window_type = 'normal',
own_window_hints = 'undecorated,sticky,below,skip_taskbar,skip_pager',
double_buffer = true,


SSH connection refused when connecting remotly

If I am reading your question right, it sounds like you are using putty on windows, to connect to ubuntu. It also sounds like you are giving putty the IP 127.0.0.1. If that is the case, you are telling putty to connect to your windows computer. To find the IP on ubuntu, you could run ip addr show (on the ubuntu computer), then use the IP address for the interface you are using for internet (en0, wlan0, etc) with putty.


Is it safe to remove linux-image with autoremove command?

Normally, yes. As long as you have the linux-image-generic package installed autoremoving linux-image-*-generic packages is safe. This is done to prevent that your /boot directory and your GRUB boot menu don't get cluttered of unused kernel images. If you are not sure check that the package removed isn't the same version as your current kernel, which can be verified with uname -r and that linux-image-generic is manually installed:

sudo apt-get install linux-image-generic


Adding directory to PYTHONPATH causes my home directory to be added as well

The problem is that you are including the existing value of PYTHONPATH. That variable, however, is not set, so it evaluates to the empty string. For some reason, that seems to make python include your $HOME dir. Presumably, that is the default directory:

$ python -c 'import sys; print sys.path'
['', '/usr/lib/python2.7', '/usr/lib/python2.7/plat-x86_64-linux-gnu', '/usr/lib/python2.7/lib-tk', '/usr/lib/python2.7/lib-old', '/usr/lib/python2.7/lib-dynload', '/usr/local/lib/python2.7/dist-packages', '/usr/lib/python2.7/dist-packages', '/usr/lib/python2.7/dist-packages/PILcompat', '/usr/lib/python2.7/dist-packages/gst-0.10', '/usr/lib/python2.7/dist-packages/gtk-2.0', '/usr/lib/pymodules/python2.7', '/usr/lib/python2.7/dist-packages/wx-3.0-gtk2']

However, if I set PYTHONPATH to the empty string, my $HOME is included:

$ PYTHONPATH=""; python -c 'import sys; print sys.path'
['', '/home/terdon', '/usr/lib/python2.7', '/usr/lib/python2.7/plat-x86_64-linux-gnu', '/usr/lib/python2.7/lib-tk', '/usr/lib/python2.7/lib-old', '/usr/lib/python2.7/lib-dynload', '/usr/local/lib/python2.7/dist-packages', '/usr/lib/python2.7/dist-packages', '/usr/lib/python2.7/dist-packages/PILcompat', '/usr/lib/python2.7/dist-packages/gst-0.10', '/usr/lib/python2.7/dist-packages/gtk-2.0', '/usr/lib/pymodules/python2.7', '/usr/lib/python2.7/dist-packages/wx-3.0-gtk2']

So, when you include the current value of PYTHONPATH when setting it, that's the behavior you get:

$ PYTHONPATH="$PYTHONPATH:$HOME/bin" python -c 'import sys; print sys.path'
['', '/home/terdon', '/home/terdon/bin', '/usr/lib/python2.7', '/usr/lib/python2.7/plat-x86_64-linux-gnu', '/usr/lib/python2.7/lib-tk', '/usr/lib/python2.7/lib-old', '/usr/lib/python2.7/lib-dynload', '/usr/local/lib/python2.7/dist-packages', '/usr/lib/python2.7/dist-packages', '/usr/lib/python2.7/dist-packages/PILcompat', '/usr/lib/python2.7/dist-packages/gst-0.10', '/usr/lib/python2.7/dist-packages/gtk-2.0', '/usr/lib/pymodules/python2.7', '/usr/lib/python2.7/dist-packages/wx-3.0-gtk2']

The correct way to set it is by only giving it the directories you want to add:

$ PYTHONPATH="$HOME/bin" python -c 'import sys; print sys.path'
['', '/home/terdon/bin', '/usr/lib/python2.7', '/usr/lib/python2.7/plat-x86_64-linux-gnu', '/usr/lib/python2.7/lib-tk', '/usr/lib/python2.7/lib-old', '/usr/lib/python2.7/lib-dynload', '/usr/local/lib/python2.7/dist-packages', '/usr/lib/python2.7/dist-packages', '/usr/lib/python2.7/dist-packages/PILcompat', '/usr/lib/python2.7/dist-packages/gst-0.10', '/usr/lib/python2.7/dist-packages/gtk-2.0', '/usr/lib/pymodules/python2.7', '/usr/lib/python2.7/dist-packages/wx-3.0-gtk2']

Or, to be on the safe side in case it ever is defined, check whether it is empty and act accordingly:

if [ -d ~/bin ]; then
    [ -z "$PYTHONPATH" ] &&
        export PYTHONPATH="/home/myname/bin" ||
        export PYTHONPATH="$PYTHONPATH:/home/myname/bin"
fi


I was able to resolve this problem by just setting apache2 (www-data) as the "owner" of the /mnt/volume-nyc1-01/api_cms folder and its subfolders, after which it started working normally.


I kept the AppleUSBVideoSupport from the MacOSX 10.5 that was installed originally in my MacBook 4.1 to use it in Ubuntu 11.10 64 bits. I followed the same instructions in the wiki, but got no video as well.

I noticed some facts:

Changing the resolution in Cheese makes the image to appear.
Using 'v4l2src device="/dev/video0" ! videoscale' on gstreamer-properties also makes its test to work.
Skype's webcam doesn't work at all

But yesterday I finally got Skype working!!!

Remember Skype is a 32 bits application, so it depends on the package ia32-libs installed.
Create a file called skype.sh with the following contents:

#!/bin/bash
LD_PRELOAD /usr/lib32/libv4l/v4l2convert.so skype

Make this file an executable. Open the menu-editor (alacarte) and edit the Skype entry to point to this script. Be happy!

I don't know what this library does, but it solved my problem. I haven't tested other applications, but I know we'll have to use the equivalent 64 bits library with 64 bits applications.

UPDATE: Just upgrade to 12.04, follow the same instructions and your iSight will work with Cheese, Skype, Empathy and Google Talk.


ASUS X553M Laptop Has Trouble Booting Live CD/Installing

Try in advanced bios settings changes to "Windows 7" ( default is Windows 8 ). If you have trouble on UEFI, just turn off UEFI. To make sure boot from USB disable XHCI for a while until you got your ubuntu installed.


Libreoffice calc: make search default to 'value' not 'formula'

You don't need to modify the defaults to make LO Calc search in values, too. The option Value means "only values"; Formulas means "values and formulas".

You might restrict the search to values implicitly by enabling case-sensitive search: Formulas are always formatted uppercase, even if entered lower-case. So, if the text you're searching isn't uppercase, you can restrict the search to values this way.


Linksys wireless model WPC 300N V1 network adapter

1) will the network adapater work?
googling I found a solution right away where they used an ndiswrapper, so it should.
2) What version to use?
The specs arn't great but in theory, you should be able to run regular Ubuntu on it. In the real world though, your ram will be just sufficient but i fear your processor will prove too limited. Therefore i would try Lubuntu.
gd luck!


I highly recommend any new Windows Subsystem Linux (WSL) users to read through this great users guide: https://github.com/michaeltreat/Windows-Subsystem-For-Linux-Setup-Guide/
Section 3 dealt with my issue:

Ubuntu Files
Now that you are in your Ubuntu User's root, type ls -a
to show all hidden files. Notice that you have a .profile file. This
is where your terminal's profile settings are stored. This is also an
Ubuntu file because it is on the Ubuntu FS. You can't edit this file
through Windows, or a Windows program or app, as it wouldn't work. You
might see the changes show up in the file, but it will not be read
correctly anymore. In the off chance that you do need to edit a Ubuntu
file then you should use the built in code editor called nano, or use
the CLI to install a different one. Just remember that you cannot use
a GUI here, so you must edit Ubuntu files through the command line.

Good to know:

IMPORTANT: Anytime you uninstall the app and reinstall it you will
lose any data that lives on the Linux Filesystem. This inlcudes
databases, configs, .profile's, and anything else you might have
stored on the NON-Windows Filesystem. Make sure to back this data up!
...while Ubuntu can read and write both Ubuntu and Windows files,
Windows can only read and write Windows files, and read Ubuntu Files,
but it cannot write Ubuntu files. Knowing which files belong to which
FS is important because of this.

In hindsight, to edit ~/.profile, @db429 was right, one should use the nano command.


error loading shared libraries: libssl.so.1.0.0

Reinstall the package libssl1.0.0

sudo apt-get install libssl1.0.0:amd64

The 64 bit shared library should be at

/lib/x86_64-linux-gnu/libssl.so.1.0.0

with a link to it at

/usr/lib/x86_64-linux-gnu/libssl.so

The static library is at

/usr/lib/x86_64-linux-gnu/libssl.a

If it's just the links missing, you can replace them yourself without doing a package reinstall.

Looks like the file was deleted (or moved --see if locate libssl.so.1 finds it).  Of course, the package manager would know nothing about that, so try the -f force on the install, and if that fails, try the apt-get  --reinstall switch.


Is there a way to power on remotely via SSH?

If there is power to the Raspberry Pi then it is on, even if you have gone to "shutdown" in the OS - at which point it merely puts the OS into a state where it is ready to be turned off.  Remember old IBM computers where you'd go to shutdown in Windows and then you'd see this?  There is no way I know of to remotely reboot the device from that state as the OS has unloaded all support for networking, etc.
HDDs can cope with running 24/7.  If you do not like the idea of running it 24/7 though, you can enable auto spindown after a delay using hdparm.  Note the warning about causing increased wear on the drive by spinning it down when it's not in use and spinning it up when it is.  At some point, spinning it down and then up against a certain number of times can be worse for it than the additional time you'd leave it spinning.
You can even manually spin down the HDD at any time with hdparm -y.  There is no need to manually spin it up then, as it will do so when something needs to read or write to it.
Caveat: support for spin down via hdparm can vary, and this is especially true for USB hard drives and enclosures.  Some support it, but there are even some USB hard drives that ignore all spin down commands and have their own in-built idle spindown.


Bluetooth mouse disconnects but only when on battery

Well, to disable this script, disabled the execute bit, using:

chmod -x /usr/lib/pm-utils/power.d/usb_bluetooth.sh


Skylake Intel 530 + 960m equals 100% fan usage on ubuntu 16.04

Same issue here on Asus Zenbook Pro UX501VW (same GPU and CPU, Ubuntu 16.04). After I changed "quiet splash" in grub to
acpi_osi=! acpi_backlight=native idle=nomwait
the fan stopped spinning like mad and integrated GPU seems to work.

But now the system fails to shutdown normally and also hangs on executing glxinfo command.
Actually I don't quite understand what this line in grub means, but it was supposed to fix Fn+f5/f6 brightness buttons, which it does)


Access RAID1 content from other Linux system of a dual boot

Here under the Linux Mint situation:
$ lsblk -o NAME,SIZE,FSTYPE,TYPE,MOUNTPOINT
NAME          SIZE FSTYPE            TYPE MOUNTPOINT
sda           3.7T linux_raid_member disk
sdb           3.7T linux_raid_member disk
nvme0n1     119.2G                   disk
├─nvme0n1p1   512M vfat              part /boot/efi
├─nvme0n1p2    50G ext4              part
└─nvme0n1p3  68.8G ext4              part /

I finally took option 1) above, recreating the RAID1 in Linux Mint, which should be safer actually.
I only had to
$ apt install mdadm
$ reboot

And now I have
$ lsblk -o NAME,SIZE,FSTYPE,TYPE,MOUNTPOINT
NAME          SIZE FSTYPE            TYPE  MOUNTPOINT
sda           3.7T linux_raid_member disk
└─md1         3.7T ext4              raid1
sdb           3.7T linux_raid_member disk
└─md1         3.7T ext4              raid1
nvme0n1     119.2G                   disk
├─nvme0n1p1   512M vfat              part  /boot/efi
├─nvme0n1p2    50G ext4              part
└─nvme0n1p3  68.8G ext4              part  /

Just had to mount it and add it to /etc/fstab to let me access the Raid from Linux Mint.  : )
Both OS have identical mdadm.conf and fstab btw.


To set up VPN proxy on Ubuntu, you need to make sure that some items
are installed.

  Make sure that the Network Manager applet is installed.
  Make sure that the PPTP VPN Connection Manager is installed.
  Once you have those installed, Click on the network icon in the top bar, choose Edit Connections, and aAdd a new VPN and select the type
  PPTP. Click Create.
  Once created click on the network icon in the top bar, and choose VPN Connections1

For complete instructions Read On

1Source:How to set up VPN proxy on Ubuntu


Lubuntu 16.04.2 LTS - Dual monitors, two desktops

Try installing arandr, it's a screen layout editor. A standard install of Lubuntu doesn't have an app for organising multiple monitors (although I'm sure there are command line options).


No effect after editing grub.cfg & updating it

You say that you have located the file grub in /etc/default but the file you have pasted above is /etc/grub/gruf.cfg.

Are you sure that you are editing the right file?  /etc/grub/grub.cfg is an auto-generated file and it will update from configuration in other files whenever you run update-grub. You need to make changes into /etc/default/grub for them to take effect.

What I think is happening at the moment is that you change /etc/grub/grub.cfg and then you run update-grub, which reverts your changes, and then when you reboot you don't get what you want. Please try changing /etc/default/grub and then let us know what the output is.


how to return to the recovery mode menu from shell

You could press Ctrl+D or type "exit" in the root shell, which will bring back recovery menu


How to run an app from the command line and carry on working?

You can put nohup in front of it and & behind it.

Nohup will take care of all the messages created by the command to not show up.
The & will actually fork the command.


Why doesn't the Unity-2D dashboard remain fullscreen after I click the fullscreen button?

My dash, on ubuntu 11.10, do now have any bottom-right expand button. It is in the top left corner, over the launcher, as you can see in this image:

Clicking on full screen button keeps the dash in full screen for any following openings.


First things first: DO NOT write anything to your external hard drive. Any extra data written decreases the chance of recovery.

What I would suggest is this:

Use dd to image your external drive to a different one. That way, you can play around with various recovery software without worrying about it - if you corrupt that 2nd drive you can simply re-image it

You can search online for various NTFS recovery software. As the Ubuntu ISO would have only overwritten the first 1.5GB or so, you still have a chance of getting a decent amount of data back.

But, remember for the future to ALWAYS make backups. How often should you backup? Well, that depends on how much data you can afford to lose.


How can I check the minor version of an nvidia driver that is not yet installed?

I use apt-cache policy (packagename) to see the detailed package version before it is installed but after the PPA is added.

Alternatively just go to the PPA web page and scroll down. The minor version is in the package name.
https://launchpad.net/~graphics-drivers/+archive/ubuntu/ppa


How can i share a partition (without win locking it on hibernite)

For sharing partition in dual boot You should create and NTFS partition and set up it to mount automatically on Ubuntu start. You can edit the file /etc/fstab and include a line like this:

/dev/sda10 /media/Winbugs7/ ntfs-3g defaults,user,rw    0   0

Where /dev/sda10 is the partition and /media/Winbugs7 is the (existing!) directory where the partition will be mounted.

for more details refer this link
 https://help.ubuntu.com/community/MountingWindowsPartitions


If you plan dual boot, definitely leave unpartitioned space. You can shrink Windows partition later but it is far more complicated than leaving free space now.


network managers on Ubuntu 14.04 and Ubuntu Mate 16.04 differ

OK, I blundered around on my Google sleigh and stumbled across this which works in both worlds:

sudo service network-manager stop / start


Uninstall software not listed in Ubuntu Software Center

If it came from apt you can use

sudo apt remove {package-name} or sudo apt purge

If it came from a deb file outside of the repo's.

apt-get remove

works as well.


Procmail with Postfix and virtual mailboxes

WARNING: It should work but I have not tested it myself.
RECOMMENDED IMPROVEMENT: I would advice making both postfix and dovecot use mysql (or another database) to store valid virtual user.

Discussion about procmail script in /etc/procmailrcs/

/etc/postfix/main.cf:

# list of valid/served virtual domains
virtual_mailbox_domains = example.com example.net
# verification of virtual recipient validity
virtual_mailbox_maps = hash:/etc/postfix/virtual
# transport for deliveries to virtual mailboxes
virtual_transport = virtualprocmail:dummy

virtualprocmail_destination_recipient_limit = 1

/etc/postfix/virtual (requires compilation with postmap):

janedoe@example.com Jane Doe
johndoe@example.net John Doe

/etc/postfix/master.cf (replace virtualuser with real OS account name owning the virtual mailboxes):

virtualprocmail unix - n n - - pipe flags=DRXhuq user=virtualuser
  argv=/usr/bin/procmail -m E_SENDER=$sender E_RECIPIENT=$recipient ER_USER=$user ER_DOMAIN=$domain ER_DETAIL=$extension NEXTHOP=$nexthop /etc/procmail.d/default.rc

/etc/procmail.d/default.rc (must be readable by virtualuser):

# You should add some sanity chces of ${ER_DOMAIN} and ${ER_USER}

# Add trailing / if you want to use maildir directory instead of mailbox file
DEFAULT=/home/vmail/${ER_DOMAIN}/${ER_USER}


sudo apt-get install python3-pip

But note that Python2 and Python3 are completely independent of one another; installing a package in one does not install it into the other.


Right now, the best way to recover a deleted folder is to contact Ubuntu One support at https://one.ubuntu.com/support/contact.


Ubuntu 14.04 LTS - Not able to find libmlpack-dev

You can install libmlpack-dev for Ubuntu 14.04 from the PPA at https://launchpad.net/~titas-chanda/+archive/ubuntu/armadillo. In case it is not obvious that the PPA does indeed contain the libmlpack-dev package, see https://launchpad.net/~titas-chanda/+archive/ubuntu/armadillo/+sourcepub/6312138/+listing-archive-extra.

To install libmlpack-dev using this PPA, do:

sudo add-apt-repository ppa:titas-chanda/armadillo
sudo apt-get update
sudo apt-get install libmlpack-dev


What happened?

You've renamed the Desktop directory to *.txt by using the mv command. Unfortunately, the asterisk on the file name will probably be interpreted as a glob pattern, keeping you from repairing the mistake.

Reverting the operation

From the graphical interface

Open the File Manager.
Go to you home folder.
Locate a folder called *.txt.
Rename it to Desktop

From the command line

Running mv "/home/dlundy1/*.txt" /home/dlundy1/Desktop will be enough, as any argument wrapped by simple or double quotes won't be interpreted as glob.


Installation fails when installing 64-bit version of Ubuntu but not 32 bit

Did you md5sum check the downloaded iso?   See
https://help.ubuntu.com/community/HowToMD5SUM   Check the number
against the listing in the link for your release listed at
http://releases.ubuntu.com under the MD5SUMS link.

2) Did you select the media check before trying to install?
    https://help.ubuntu.com/community/Installation/CDIntegrityCheck

3)  Did you ever do a "memory check" (another live-media menu choice) on
    your PC? Doing the above can save you a lot of time struggling with
    a bad install media.


How can a touchscreen be made to disable temporarily while an active digitiser is in use?

I made a script for that, see here: http://ubuntuforums.org/showthread.php?t=2193327
Now I'm on getting the special keys above F[9-12] to work...if you've found something...


Maybe you could find some answers here: How to know when formatting disk has finsihed - Ubuntu 16.04?

Also, you could use dd in command line.

Firstly sudo umount /dev/sd<?>, then:

sudo dd if=/dev/zero of=/dev/sd<?> bs=1M status="progress"

Where <?> is the letter corresponding to your USB drive

NOTE: To find out the name of your USB drive use lsblk.

Another solution can be gparted.


From Launchpad:

  Personal Package Archives (PPA) allow users to upload Ubuntu source
  packages to be built and published as an apt repository by Launchpad

Launchpad is a website developed and maintained by creators of Ubuntu that allows users to develop and maintain open-source software.

If you have found a nice PPA and you want to add it to your repository, this is the general format:

sudo add-apt-repository ppa:user/ppa-name

Every PPA has its own page in Lanuchpad website. For example, the one mentioned in your post has its page here: https://launchpad.net/~jfi/+archive/ubuntu/ppa

If you look at the PPA's overview page, under the heading Adding this PPA to your system, you can see the location of PPA. See the below image:

You can use the location to replace ppa:user/ppa-name in the above command. So, in your case it is:

sudo add-apt-repository ppa:jfi/ppa


Web video (YouTube, etc) doesn't play in Chrome after suspend

Sometimes when you install Ubuntu some packages are not installed out of legal issues. This might fix

sudo apt-get install ubuntu-restricted-extras
sudo apt-get install libdvdread4

And run ,

sudo /usr/share/doc/libdvdread4/install-css.sh


Sync Chromium with a Google account does not work any more … solutions?

There's literally nothing that can be done by users or anyone other than Google to change this.  You will need to use the actual Google Chrome browser if you still want profile sync to work.
Google made the decision that their profile sync APIs are going to be restricted to Google Chrome only, and it's a decision by Google, not by Chromium or users of Chromium, that we can't alter.  Their announcement on that change even said March was the date that this would get yanked, and March 15 would get actual login failure cases.
This is stated perfectly in the comment you linked to in that 'bug' (all 'bold' emphasis is mine):

This is an unfortunate consequence of a decision by Google to restrict access to the sync API to Chrome only (which explains why in comment #3 you're seeing that chrome 89 on linux works fine).

And the quote by the Ubuntu Developer from the Chromium upstream site data:

« What does this mean for my users?
Users of products that are incorrectly using these APIs will notice
that they won't be able to log into their Google Accounts in those
products anymore.
For users who accessed Google features (like Chrome Sync) through a
3rd-party Chromium-based browser, their data will continue to be
available in their Google Account, and data that they have stored
locally will continue to be available locally.

And once again, the developer makes a statement:

I'm afraid (and sorry) there's nothing that can be done from a
packaging perspective to mitigate this regression. Reverting the snap
in the stable channel wouldn't help, because it's not a version
problem. The official announcement states that starting March 15
attempts to log in will fail anyway.
I suppose that users that can't do without the profile sync feature
will need to move on to using the official chrome package distributed
by Google, instead of chromium (which is probably what Google wants,
really).

The section I put here in bold (the emphasis is mine) is the only course of action you have available to you if you want to use the Google profile sync still - stop using Chromium and instead switch to Google Chrome which does have access to the profile sync API bits at Google, and in turn will do Profile Sync.
If you are unwilling to switch to the full Google Chrome browser, then you are out of luck - there's literally nothing that the world or community at large can do on this.


You might want to check if your USB drive is bootable.

From Ubuntu https://help.ubuntu.com/community/Installation/FromUSBStick :

  Notes about bootability

  Most but not all USB pendrives are reliable for booting, even many of
  the slower ones, and they are much cheaper, and should be OK
  particularly for regular read-only live drives (without persistence).

  Some computer hardware and some operating systems have issues with
  certain ports. And some USB pendrives just have issues also. Some of
  them cannot be used for booting. They are made to be mass storage
  devices, and have not exactly the same electronics and firmware.

  Some pendrives that did not work are shown in this link. The brand
  name does seems to make a difference. This user is not the only one
  who likes 32GB Sandisk.

Were you able to boot using 12.04 or from a CD?


why do ubuntu open source packages have gpg key?

It's protecting the package against tampering. The installer verifies that the package signature is valid and made by one of the keys you have configured your system to trust.

When you add a key with apt-key you trust that key to authenticate software. This means that a third party can not supply you a modified package - it validates that the package is made by whoever controls the corresponding private key.

This means that you don't have to trust whoever operates a Ubuntu mirror; you can verify that they are not supplying malware, because they would not be able to sign a package with a key that you trust.


How to install amdgpu -pro in ubuntu 16.04

To install amdgpu-pro, open a terminal and run the following commands one at a time

mkdir /tmp
cd tmp
wget --referer=http://support.amd.com  https://www2.ati.com/drivers/linux/ubuntu/amdgpu-pro-17.40-492261.tar.xz
tar -Jxvf amdgpu-pro-17.40-492261.tar.xz
cd amdgpu-pro-17.40-492261
amdgpu-pro-driver/amdgpu-pro-install

Ensure that your user account is a member of the "video" group prior to using the vulkan driver. You can find which groups you are a member of with the following command:

groups

If not add yourself

sudo usermod -a -G video $LOGNAME

That should be it, to check it installed

dpkg -l amdgpu-pro

To remove it

amdgpu-pro-uninstall


How to manage desktop icon spacing using terminal in Ubuntu 14.04

you can align/save/restore the desktop icons on 14.04 if you are using nautilus as your file manager ... There is a script/app to do this .. Just download Happy Desktop at gnomefiles.org.   The script can align the desktop icons to a grid that you define by setting the number of icons per row and icons per column you would like for your desktop.  The icon positions are then adjusted to the nearest grid points.  It's free!


Touchscreen Unity MT Grab Handles doesn't work after resume

Whilst not a complete answer I did manage to solve this without a full reinstall..... a fake reinstall. I used the Resetter project to roll back and remove all extra packages on my system.

It gave me the option to customise this and by default it will remove your home directory and user account unless you tell it not to. But the end result is pretty close to a fresh install.

I now have my grab handles back!


Tripwire local passphrase doesn't work, how do I reset it?

When I recently installed tripwire I did enter the passphrase wrong, then the dialog below was displayed. Perhaps a hint?

If you have completely forgotten your site passphrase, generate a new site key with a new passphrase by running
   twadmin -m G -S /etc/tripwire/site.key
then run
   dpkg-reconfigure tripwire

(I guess reconfigure is not needed if you just want to reset the passphrase.)


USB headphones get muted when setting volume below a certain threshold

I had a similar problem (albeit with a different headset) and found the solution here:

https://chrisjean.com/fix-for-usb-audio-is-too-loud-and-mutes-at-low-volume-in-ubuntu/

I recommend you follow the advice in the above link but I've copied the relevant sections in case the website or post disappears in the future.

Open a terminal (CTRL + ALT + T) and enter the following to create a backup copy of the original file before editing:

sudo cp /usr/share/pulseaudio/alsa-mixer/paths/analog-output.conf.common /usr/share/pulseaudio/alsa-mixer/paths/analog-output.conf.common_original

Edit the file in the text editor.

gksu gedit /usr/share/pulseaudio/alsa-mixer/paths/analog-output.conf.common

You'll be asked for your password - enter it and you should see a file editor pop up.
Find the section "[Element PCM]"

[Element PCM]
switch = mute
volume = merge
override-map.1 = all
override-map.2 = all-left,all-right

Modify that section so it looks like this:

[Element PCM]
switch = mute
volume = ignore
volume-limit = 0.01
override-map.1 = all
override-map.2 = all-left,all-right

Save the final and enter the following in your terminal to reload the config:

pulseaudio -k

Notes

The number for volume-limit (in this example 0.01) might be too loud or quiet, change the value, save the file, reload the config and repeat until you're happy. Other values tested where 0.05 (too quiet), 0.075 and 0.5 (too loud).
This is not my guide - but it resolved my issue and hopefully will help others.


Command to list all users with their UID?

List all users with a /home folder:

awk -F: '/\/home/ {printf "%s:%s\n",$1,$3}' /etc/passwd

or all users with a UID >= 1000:

awk -F: '($3 >= 1000) {printf "%s:%s\n",$1,$3}' /etc/passwd

a combination

awk -F: '/\/home/ && ($3 >= 1000) {printf "%s:%s\n",$1,$3}' /etc/passwd

or for all entries

awk -F: '{printf "%s:%s\n",$1,$3}' /etc/passwd

More information here


How to route between 2 connections (different network) in 1 PC (wired & wireless card)?

I see both networks have private IPs so I will assume you just want to route traffic between those two; no firewalling, no traffic control of any kind, no network address translation.

Try doing this:

echo "1" | sudo tee /proc/sys/net/ipv4/ip_forward

then ensure your client (10.10.10.2) has its default gateway set to 10.10.10.1 (your Linux box/router).

Once you have this, you should be able to see the other network (192.168.1.0). To test this, try pinging the Linux box's address on that network (192.168.1.1). You should get a response:

$ ping 192.168.1.1
PING 192.168.1.1 (192.168.1.1) 56(84) bytes of data.
64 bytes from 192.168.1.1: icmp_req=1 ttl=64 time=2.30 ms
64 bytes from 192.168.1.1: icmp_req=2 ttl=64 time=1.62 ms

The ip_forward setting tells the Linux kernel to forward packets destined for another network through the appropriate interface. By default it's turned off, meaning that the kernel will discard packets that are asking to be forwarded.

This setting will "reset" itself when you reboot the system, to make it permanent do this:

echo "net.ipv4.ip_forward=1" | sudo tee /etc/sysctl.d/60-ip-forward.conf

This will create a config file with this setting to be loaded when the system boots.

Finally, please read the IP Tables Howto which contains information on how to control how your kernel allows packets to pass through the interfaces, whether it does network address translation, and other things. This is very important if you ever want to have a Linux system sitting between a public network and a private one (and even between two private networks, as forwarding traffic may not always be desired in this case).


Has anyone been successful running the new SimCity through play on Linux?

Yes, according to WineHQ. Have a look at whatever version of SimCity you are interested in running on there, and you will see reports from users who have tried it.


Developing for ubuntu phone: where is the SDK?

Bear in mind that, as stated on the Go mobile page, what is available right now is a developer preview. There are no claims for it to be a full SDK, which it will be at some point, but not yet.

In summary, what is being offered to early adopters at this point is:

A set of components part of the Ubuntu UI toolkit
Online (and local) API documentation for all of the released components

With these, you are already equipped to develop and run Ubuntu phone apps on a desktop host machine, and get familiar with the toolkit in time for the full SDK to be released.


Is there a list of usb 4G modems that work "as is" in Ubuntu?

Ubuntu has this list:

https://wiki.ubuntu.com/NetworkManager/Hardware/3G

However there are other modems working with ubuntu as well, AFAIK.


Change default system font using terminal only in 14.04

gsettings offers a simple commandline interface to GSettings. It lets you get, set or monitor an individual key for changes.

You can set fonts by following commands in terminal :

gsettings set org.gnome.desktop.interface document-font-name 'Sans 10'
gsettings set org.gnome.desktop.interface font-name 'Ubuntu 10'
gsettings set org.gnome.desktop.interface monospace-font-name 'Ubuntu Mono 11'
gsettings set org.gnome.nautilus.desktop font 'Ubuntu 10'

To Know current settings type following commands in terminal :

gsettings get org.gnome.desktop.interface document-font-name
gsettings get org.gnome.desktop.interface font-name
gsettings get org.gnome.desktop.interface monospace-font-name
gsettings get org.gnome.nautilus.desktop font

Additional:

To find all similar keys on schema type following command:

gsettings list-recursively org.gnome.desktop.interface

To reset all valuses of keys run following command in terminal:

gsettings reset-recursively org.gnome.desktop.interface


Problem with creating a PV-ubuntu-guest with Xen on slackware

Nachtrag ich habe mich jetzt genau nach dieser Link gehalten und jetzt funktioniert es prinzipell...

Jedoch habe ich jetzt ein weiteres Problem:
Nachdem alles fertig installiert ist änderte ich die Bootreihenfolge in meiner config und nach erneutem hochfahren sieht meine Ubuntu so aus:
bild


/usr/share/sounds/gnome/default/alerts

would be a good place to find sounds for this purpose.

/usr/share/sounds/ubuntu

is a sound theme. Sound themes can be chosen in sound preferences. 'ubuntu' is the only sound theme installed by default. I would advise against editing files in this folder directly. A better thing to do, if you wanted to edit the sounds in this folder, would be to copy it (perhaps to /usr/share/sounds/ubuntu-modified) and change the index.theme file to have a different name.

sudo cp -R /usr/share/sounds/ubuntu /usr/share/sounds/ubuntu-modified
sudo -H gedit /usr/share/sounds/ubuntu-modified/index.theme

Once this is done, you can safely edit the sounds in /usr/share/sounds/ubuntu-modified.


Fresh install of Ubuntu and remove windows 10

Just boot from the Ubuntu installation USB/DVD, and click the Install button, and follow this guide.
At Installation type, make sure to select "Erase disk and install Ubuntu",

...then proceed according to the guide.

PS: Backup important files before installing, as the process will delete all data on the HDD.


Laptop keyboard not working, how to enable wifi using usb keyboard (or remap the laptops FN key to a key on the usb keyboard)

So, maybe I'll get to delete my answer in deference to someone more knowledgeable, but my understanding...

You can't remap the fn key

open a terminal and run xev
mash on your fn key

My understanding is that fn's signal is never sent to the os. Rather, it modifies the signals that other keys send. I'm wrong if xev shows anything in response to your mashing.

With this premise, I'll guess that fn+wifi sends a signal directly to your hardware to toggle your wifi card off and on. Running windows or linux or whatever isn't ever going to affect this cause and effect relationship.

However, you may be able to remap an fn combo like fn+wifi.

Enable disabled hardware from the OS layer

I don't have a clue on this part of your question. If you could do it windows (mind, without using the keyboard..), then theoretically it's possible in linux. You just need to hope the kernel module supporting your wifi card supports this, and then that someone has written ui software to take advantage of the feature.

If this is the core of your question, then it might be a duplicate of this one: Unblocking hardware switch Wifi


I want to learn how Unity works (documentation/command line tutorials)

I want to learn how unity works. for example, instead of dragging application shortcut from dash to launcher, how do I do it using terminal?

Add and remove launcher icons from command line

  How to make an application shortcut?

How to add programs to the launcher?

  I can lock an application to the launcher by GUI but how to do it from terminal?

Same as 1st question: Add and remove launcher icons from command line

  How can I add a mounted partition icon automatically if I mount it from a folder other than /media?

How to customize/label the hard drive icons in the launcher

Overall technical questions:

Go to the wiki, here. It says:

  The wiki documentation is targeting technical users, if you want to get an overview of Unity you might be interested.

There is also (of course) the Ubuntu Documentation site (please, please upvote Jacob's answer, as that is what reminded me of it), and a google search does give some good results:


You can determine if programs on the server are listening to the ssh and telnet ports (22 and 23, usually), by:

nmap -T4 -A -v -PE -PS22,23 -PA22,23 <ServerIP>

or,

telnet <ServerIP> 22
telnet <ServerIP> 23

If your error message is: telnet: Unable to connect to remote host: Connection refused the problem is on the remote server (no program is listening to that port). It's not running the telnet or ssh daemon,or running them on non-standard ports


Ubuntu 18.04 mouse on Lenovo Thinkpad X240 not working after suspend/hibernate

I know this is an old issue, but it is still relevant today.

I have the same problem Lenovo Thinkpad X240, Ubuntu 20.04

My solution:-

sudo nano /lib/systemd/system-sleep/rmi-driver

Add the following:-

#!/bin/sh

case $1 in
  post)
    rmmod rmi_core
    rmmod rmi_smbus
    modprobe rmi_core
    modprobe rmi_smbus
    ;;
esac

Set executable:-

sudo chmod +x /lib/systemd/system-sleep/rmi-driver

On wake-up the touchpad will be working :)


kubuntu samsung uld driver does not print correctly on samsung clp 320 printer: white page with text "spl-c error please use proper driver ..."

Yeah!
I just managed to fix this old problem:
In cups web-interface, I just set the driver of the printer to
'Samsung CLP-325 Foomatic/foo2qpdl (recommended)'
cups web-interface screenshot
And this made it work...
Interestingly, the printer really is a CLP-320 printer and there is a CLP-320 driver (the driver in the screenshot 'Samsung CLP 320 Series (en)' which does not work).
Anyway, it seems, that printing only works with CLP-325 driver on the ubuntu 32-bit operating system.
I just wonder, why the printer comments the proper (CLP-320) driver with 'spl-c error please use the proper driver' and prints nicely with the not proper (CLP-325) driver ;-)
Is it possible, that CLP-320N (there is no driver for the N modell) is the same as CLP-325 ???
But why does it work with that driver on 64bit, then?


In order to have perf tool working you should have enabled performance counter in your kernel build, then recompile kernel and place new image into proper place (depends on how you boot your system)

I am running it on my Tegra2 Harmony board without any problem after enabling the performance counters in kernel.


USB ports not working on Xubuntu 12.04 LTS

Hope I'm not wasting your time but I had weird problems with my usb ports.
Had to go into bios setup and disable usb 3.0 support.


Why can't I boot after successfully booting ONCE post-upgrade to 20.04 from 18.04?

Solution: copy off your data and do a fresh clean install.
Reason: kernel version post-upgrade:
5.4.0-66
Kernel version post fresh install:
5.8.0-44
Old stuff holds you back.


This is how I can fix it, but I have to re-do these steps after every reboot:
Can anyone edit in the steps to make this stick across reboots?

run sudo nvidia-xconfig
reboot
with sudo, edit the file "/etc/X11/xorg.conf" and replace the two lines ("HorizSync" and "VertRefresh") with the following:

  HorizSync 31.0 - 81.0
  VertRefresh 56.0 - 76.0

Restart
Start "Nvidia X Server Settings" again
Now the "Resolution" dropdown listbox contains many more entries, and 1280x1024 is among them. Select it and press button "Apply" then "OK".


Error found while loading /etc/profile: /etc/profile.d/01-locale-fix.sh: line 2: /usr/bin/locale-check: No such file or directory

You have to reinstall single package which contains missed binary.
Open terminal and execute:
sudo apt-get install --reinstall base-files


You can check out the requirements for openstacks.
Visit https://www.ubuntu.com/openstack/install

Hope you´d install it!


Can't close all programs and continue the upgrade

I could start a terminal using crtl-alt-t though and used

xkill

to close the windows until I could see the update window again. I could thus continue with the upgrade. It restarted correctly and appart from a slight compiz crash it seems like it turned out well in the end.


How do you configure Netplan on Ubuntu to store 802.1x credentials securely?

See https://netplan.io/examples, and the https://netplan.io site in general has good info. Make sure to sudo netplan --debug generate to check .yaml files, and generate config files, and then sudo netplan apply to make them active.

Authentication

Netplan supports advanced authentication settings for ethernet and wifi interfaces, as well as individual wifi networks, by means of the auth block.

auth (mapping)

    Specifies authentication settings for a device of type ethernets:, or an access-points: entry on a wifis: device.

    The auth block supports the following properties:

    key-management (scalar)
        The supported key management modes are none (no key management); psk (WPA with pre-shared key, common for home wifi); eap (WPA with EAP, common for enterprise wifi); and 802.1x (used primarily for wired Ethernet connections).
    password (scalar)
        The password string for EAP, or the pre-shared key for WPA-PSK.

    The following properties can be used if key-management is eap or 802.1x:

    method (scalar)
        The EAP method to use. The supported EAP methods are tls (TLS), peap (Protected EAP), and ttls (Tunneled TLS).
    identity (scalar)
        The identity to use for EAP.
    anonymous-identity (scalar)
        The identity to pass over the unencrypted channel if the chosen EAP method supports passing a different tunnelled identity.
    ca-certificate (scalar)
        Path to a file with one or more trusted certificate authority (CA) certificates.
    client-certificate (scalar)
        Path to a file containing the certificate to be used by the client during authentication.
    client-key (scalar)
        Path to a file containing the private key corresponding to client-certificate.
    client-key-password (scalar)
        Password to use to decrypt the private key specified in client-key if it is encrypted.

Source: https://netplan.io/reference#authentication

Update #1:

Note: make sure there are no TABS in your .yaml file...

Add your certs, restore the IP's, and try this...

network:
  version: 2
  renderer: networkd
  ethernets:
    enp0s31f6:
      auth:
        key-management: 802.1x
        method: peap
        identity: "ghewett@example.com"
        ca-certificate: my_ca.pem
        client-certificate: my_cert.pem
        client-key: my_key.pem
      addresses:
        - 1.2.3.4
      gateway4: 5.6.7.8
      nameservers:
        search: [cisco.com, otherdomain]
        addresses:
          - 1.1.1.1
          - 2.2.2.2


Solution, I had to run the script on my local user instead of root

su jappatel -c <command>

and also run and also specify the display using

DISPLAY=:0

my final script

#!/bin/bash
case $1 in
  pre)
    su jappatel -c "
    DISPLAY=:0 scrot /home/jappatel/tmp/screen.png;
    convert /home/jappatel/tmp/screen.png -scale 10% -scale 1000% /home/jappatel/tmp/screen.png;
    convert /home/jappatel/tmp/screen.png /home/jappatel/Pictures/Icons/lock.png -gravity center -composite -matte /home/jappatel/tmp/screen.png;
    DISPLAY=:0 i3lock -i /home/jappatel/tmp/screen.png;
    rm /home/jappatel/tmp/screen.png"
    ;;
esac


INtel 3956ABG WPA wireless not working on Thinkpad T60

The issue was discussed and solved on on the Ubuntu Forum here.

The problem is with the network manager.

Install wicd using Synaptic or software center.
Remove network manager using: sudo apt-get purge network-manager network-manager-gnome

Then use wicd to connect to your wireless network using WPA2.


Cannot install extensions required for GNOME Shell themes

Use the gnome-shell-extensions package from
gnome's launchpad.


I found a solution to my own question first use

sudo nano /usr/bin/webhttrack

then find the line :

BROWSEREXE=

change it to

BROWSEREXE="firefox" // or the name of the browser you want

then find the line

SRCHBROWSEREXE= ... // a long string of browser names should follow

comment this out should look like the following

#SRCHBROWSEREXE= ... /// string of browser names to follow

exit and save changes and it should run in the browser you want


What's the purpose of the -g flag in "npm install" commands?

The commands:

sudo apt-get install npm
sudo apt-get install nodejs

are for installing npm, and nodejs globally in your Ubuntu, but the -g flag is for installing npm packages globally for your development. That has nothing to do with apt-get command. To install an npm package to only a specific development folder you leave out the -g flag and that means you can only use that package in that dev folder.


Gnome Shell task switcher and Wine applications: only generic icon displayed

EDIT:
There does not seem to be an easy way to fix this.
phoibos found this discussion linking to to Gnome bug report #649087.
We might see this working in a future Gnome version (current is 3.2.1 in Ubuntu 12.04).

Now follows the answer for the initially misunderstood question:

If you have two or more different wine programs running the wine icon should get extended and show a small triangle below it. From there you can switch programs with <`> shortcut. That is  plus the left key of 1, above the  key.

Now if you are not having the triangle then wine is only seeing your program as one single window. In this case I don't think there is an easy way around..


What is the Ubuntu 16.04 package for vim with python3 support?

The best answer I could find was to build vim myself with +python3.


This is just my guess, but I think that when you work for a company, where once everything is compiled (converted to binary data, which computers can execute), nobody can see the source code anymore, you tend to be a lot lazier, as it doesn't matter as long as it works.
Linux is open source, so everyone can see the source code if they would wish to do so. If you are lazy, and write a really crappy piece of code which will really slow down the system or something of the sorts, there goes your reputation, as everyone just saw. Developers and users alike. I think that's one of the reasons why open souyce developers tend to be less lazy.

It's also a fact that the core of the Windows kernel was never written with the intention of becoming what it is today (neither was Linux', but they did the effort to optimize the old bits), and developers have simply always been adding and adding on top of it, until the code was so cryptic that nobody could make something out of it anymore. Two properties of messy code is that there's often a lot of  redundancy, and that you don't see the links between two pieces of code so easily anymore, which makes that you can't even try to start optimizing it. Just an example (not a cryptic one);

for (int i = 0; i < 20; i++)
{
    if (x == y)
    {
        if (z <= u)
        {
            goto banana;
        }
    }
}

The example above could be done much more efficiently;

for (int i = 0; (i < 20) && (x == y) && (z <= u); i++)
{
    banana ();
}


Security Issues from Torrent Downloading

Nothing is hack-proof but you're safer than the average Windows PC.

I assume you are connecting via a router. In that case the router will probably block everything incoming except stuff on the bittorrent ports so unless they have an exploit in transmission (which would be specific to transmission) you are probably safe.

BTW consumer grade windows firewalls won't help you either in this situation. Since you are actually requesting bittorrent traffic, the firewalls aren't going to block it. Some of the smarter windows AV might detect and try to block them after they get in, or might flag some suspicious traffic patterns, but that's a different story ... :-)


Heading in circles trying to install dependencies

Please check here: https://redmine.darktable.org/projects/darktable/wiki/Building_darktable_20#Ubuntu-1604

I suggest that you do:

sudo apt-get update

sudo apt-get install gcc g++ cmake intltool xsltproc libgtk-3-dev libxml2-utils libxml2-dev liblensfun-dev librsvg2-dev libsqlite3-dev libcurl4-gnutls-dev libjpeg-dev libtiff5-dev liblcms2-dev libjson-glib-dev libexiv2-dev libpugixml-dev

sudo apt-get install libgphoto2-dev libsoup2.4-dev libopenexr-dev libwebp-dev libflickcurl-dev libopenjpeg-dev libsecret-1-dev libgraphicsmagick1-dev libcolord-dev libcolord-gtk-dev libcups2-dev libsdl1.2-dev libsdl-image1.2-dev libgl1-mesa-dev libosmgpsmap-1.0-dev git

git clone https://github.com/darktable-org/darktable.git

cd darktable
mkdir build/
cd build/
cmake -DCMAKE_INSTALL_PREFIX=/opt/darktable/ ..
make
sudo make install

It builds for me on my 16.10 system, albeit with some possibly harmless warnings.


It sounds like you may be confused between the 4.4 (normal, or GA) and 4.15 (HWE) kernels, which is a fairly ordinary confusion. Review https://wiki.ubuntu.com/Kernel/RollingLTSEnablementStack for more clarity. Both normal and HWE kernel versions are patched--and both are 16.04 LTS kernels.

Advice to upgrade to a different kernel version is generally for folks who are not using Ubuntu. The Ubuntu Security Team generally patches most packages (including the kernel), without bumping the version. The patched kernel is just as safe as the new version.

To learn more about how the Ubuntu Security Team handles cases like these, check out the Ubuntu Security Podcast.


AppArmor Firefox profile breaks links in e-mails on Thunderbird

Note: This solution originally appeared to work, but it no longer does. I am still looking for a solution.
After hours of fruitless messing around with Firefox's AppArmor profiles, I found an unrelated solution that works.

In Thunderbird, go to Menu > Preferences > General, scroll to the bottom, and click on Config Editor.
Search for network.protocol-handler.warn-external.http, and double-click to change from FALSE to TRUE.
Repeat for network.protocol-handler.warn-external.https.
Close the Config Editor and Preferences.
Click on a link in an e-mail. You will see a popup asking you to select which browser to open the link in. Select Firefox, check the box that says "remember my selection" (or somesuch), and click go.
Your links should now open in Firefox without problem.

What undesirable side-effects this solution will have I cannot say, but it appears to work for me.


Yes, you can eject it after installation is complete.

This can be verified by, for example, rebooting it after ejecting it and then doing something that requires the Guest Additions, like resizing the window and seeing that the size of the desktop changes.


High CPU Usage With Minecraft systemd Service

Adding --noconsole solved my problem. Found the answer here: https://www.spigotmc.org/threads/high-cpu-usage-solved.87634/


Passing a variable to systemd service start doesn't work

The service file should be named foundry-error@.service. Yours is missing the at sign.
Also, make sure it is in the correct directory (usually /etc/systemd/system/).

The first two ways of invoking the service are correct. The last one is invalid.


How do I launch a game for windows that I installed?

Applications installed through wine are placed under Applications->Wine, so look for it in Wine menu

Alternatively, the wine drive C corresponds to /home/$USER/.wine/drive_c, so look for it in

~/.wine/drive_c/Games/Freespace


I am not able to see warning and error pop up messages in Matlab?

A similar question was posted here: http://uk.mathworks.com/matlabcentral/answers/116987-empty-tooltips-in-code-analyzer

It seems that problems occur when you are using multiple monitors. I can confirm that when I put Matlab on my laptop screen I do see tooltips, and on my monitor I don't.


Ubuntu server 18.04 LTS as WIFI access point

After some research and experimentation I found that if you configure the wifi interface as standard ethernet, then netplan will assign it an address but won't interfere with the wireless side of it.

You can then use hostapd to handle the access point. Ensure that wpa_supplicant is not running or hostapd will emit incomprehensible errors about being unable to configure the driver.


Using playonlinux 4.2.2 results in error message

Try to:

sudo apt-get purge playonlinux

And then:

sudo apt-get install playonlinux

Does that work? If not, please post the full console output.


Considering that you know what to edit in the file and you are just stuck at saving your edits, I feel you should use sudo

E.g.: sudo nano /xyz/xyz.cfg and then try saving using Ctrl+X


could you post your installation log, sometimes the error in installation can be small so it wont show as an error message, try examining the log for any errors. also this could actually be because your computer is not capable of running the version of ubuntu, is it possible that you installed a 64x file on a 32x capable processor?


Booting Ubuntu 12.04 from external eSATA disk

That blog post requires that you first install a boot loader to to /dev/sdc5.  The Ubuntu installer always installs grub to an MBR.  If Windows is still coming up at boot, then you must have chosen to install it to one of the other disks.  Go into your bios and tell it to boot from the other disk and you should get the grub menu where you can choose which OS to boot.


If I understand you right, you have upgraded the Nvidia driver from the Xorg-Edgers PPA, is that correct?

  Warning: This is for testing only! Expect to screw up your X if you try this out.

Did you removed this PPA? If not, you should. You can remove the complete PPA with the following command, e.g. type it on tty1 CtrlAltF1 or in a Terminal CtrlAltT. This should downgrade your Nvidia driver to a lower version:

sudo ppa-purge ppa:xorg-edgers/ppa

If ppa-purge is not installed, you can install it with:

sudo apt-get install ppa-purge.

Also, see: "Cannot install Nvidia drivers"


Can I change the position of time in gnome-classic panel from top right to top middle?

@Tim: Can't you just add another clock item to panel? (Alt-right-click on the panel/Add to panel.../Clock) You may have to move the clock (Alt-right-click on the clock/Move/Drag to wanted position) if it shows up in the wrong place (mine ended up to the left). Then I guess you could delete the rightmost clock...or keep it.


I don't know about such command but here a two useful commands that you'll love to use:

You may use a tool called hwinfo Which gives u a great list of your hardware(hdd,usb, monitor ,netwrok ,etc...)

Also it can be used to generate a system overview log which can be later  used  for support.

To install hwinfo

sudo apt-get install hwinfo

To use just type hwinfo in terminal but its better to redirect to a file to read

hwinfo > MYhardware.txt

To know the packages you have in your system you can use dpkg --get-selections

to redirect

dpkg --get-selections > installed-software


File manager detects Android device but gvfs folder is empty. How can I access the MTP device from terminal?

You must have fuse support in gvfs.

For example, under debian, it is the gvfs-fuse package which provides this.

gvfs mounts can then be accessed in /run/user/$UID/gvfs/...


How about a separate partition for home?

This may be a little dated but still applies. Follow the tutorial from Physocats
"Create a separate home partition in Ubuntu". If you have issues, there is a text-only (command-line-driven) guide for this process here

Requirements:

You must use a live CD for this process, for two reasons:

1.In order to resize your existing / partition, it needs to be unmounted. The only way to unmount it is for it not to be in use, which means you can't boot to your regular Ubuntu installation while resizing it... which means you need a live CD. By default, the Ubuntu live CD does not automatically mount internal partitions and drives, but if you happen to notice the drive appear on the desktop, right-click it to unmount it before starting this process.

2 If you screw up your installation by accident, you can use the live CD to restore your old settings and, in the worst situation, at least recover your important files.


How do I fix "Wireless network disabled by hardware switch"?

Your notebook can have a switch on the side with which you can block all outgoing wireless access. Example of a random notebook:

It could also be a Fn + F2 Bottom left has the Fn.

It can also be just the F2


starting a terminal in desktop (ubuntu 14.04)

This link will teach you how to start a terminal irrespective of your desktop environment.

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

Alternatively for a full screen terminal you can type

CTRL+ALT+F1


How do you remove a FPS setting in xrandr --output?

The 60.00 value is an optional refresh rate that is supported by the display device, so there really is no need to "remove" it. That said, if you really wanted to, you could try with something like this:
xrandr --delmode <output> <name>

Based on your output, this would result in a command that looks something like this:
xrandr --delmode eDP-1 1920x1080_60.00

Be sure to replace eDP-1 with the proper output for your machine.


Where can I find a mapping between Ubuntu release and exact Ubuntu kernel version(not just mainline) with which it was released?

Ubuntu 12.04.4 is obsolete. It used kernel 3.11 that is the kernel from 13.10 saucy release. It is not supported.

The supported version is 12.04.5 that has 3.13 kernel from

http://kernel.ubuntu.com/git/ubuntu/ubuntu-trusty.git


Login screen doesn't remember my choice of desktop environment

Edit lightdm.conf with gedit and change the user-session=ubuntu to user-session=gnome

gksudo gedit /etc/lightdm/lightdm.conf

Edit gnome.desktop with gedit and change Exec=gnome-session --session=ubuntu to Exec=gnome-session --session=gnome

gksudo gedit /usr/share/xsessions/gnome.desktop

After this you will login directly to you gnome desktop ;)


I don't know of any permanent fix to this, but if you are running gnome, the usual workaround I had to use on my father's laptop was to run gnome-panel --replace before shutting down.

alt+f2 gnome-panel --replace
Click shutdown from the indicator as usual.


Using Atheros® 802.11b/g wireless with Ubuntu 12.10, connecting but not downloading pages

It looks like you're connecting fine to your WiFi router. So, if possible, try to access your router configuration page (you will find details on how to do this in your router handbook) and check if you have in place restrictions like MAC filtering or some firewall settings for your connection.


.desktop and the Ctrl-Alt-T shortcut all launch x-terminal-emulator , which is a symlink to /etc/alternatives/x-terminal-emulator , which in turn is a symlink to /usr/bin/gnome-terminal.wrapper. In short, gnome-terminal aka Terminal is the default terminal emulator on Ubuntu.

If you want to use xterm for just one .desktop file , follow muru's suggestion in the comments and use use

Exec=xterm -e /path/to/script.sh

If you want to globally change the terminal that the system launches by default, run

sudo update-alternatives --config x-terminal-emulator


Things seem to be different on 13.04, at least in Gnome Shell.

First, this is what env prints when run from user zzyxy's (not root's) cron job:

HOME=/home/zzyxy
LOGNAME=zzyxy
PATH=/usr/bin:/bin
XDG_RUNTIME_DIR=/run/user/zzyxy
LANG=en_US.UTF-8
SHELL=/bin/sh
PWD=/home/zzyxy

To get notify-send to work, it seems to be necessary to set the DBUS_SESSION_BUS_ADDRESS environment variable, as per DahitiF's comment on ubuntuforums.org. Just prepend the following to your actual job description:

eval "export $(egrep -z DBUS_SESSION_BUS_ADDRESS /proc/$(pgrep -u $LOGNAME gnome-session)/environ)";

It doesn't seem to be necessary to set DISPLAY.


I am just curious about the things written on Graphics

Gallium is essentially an API for writing graphics drivers in a largely device-agnostic fashion. It provides several objects which encapsulate the core services of graphics hardware in a straightforward manner.
AMD Cedar GPU is the name of a series of Graphics Processing Units (GPUs) that was launched by AMD in 2010. Two important things to know about this GPU are the launch date (2010) and the processor lithography (40nm). By comparison the latest Intel and AMD CPUs have 14nm processor lithography.
Direct Rendering Manager (DRM) is a subsystem of the Linux kernel, interfaces with the GPUs of modern video cards. DRM exposes an API that user-space programs can use to send commands and data to the GPU, and to perform operations such as configuring the mode setting of the display.Wikipedia
4.10.0-40-generic is the version of the Linux kernel that is currently being used as the default kernel that is selected automatically when Ubuntu is booted.
The Low-Level Virtual Machine (LLVM) is a collection of libraries and
tools that make it easy to build compilers, optimizers, Just-In-Time
code generators, and many other compiler-related programs.


The problem that caused the error message "mount error (112): Host is down" was that I failed to state the Version in the fstab entry, something I didn't have to do in the 64 bit version.
My fstab entry now reads:
//192.168.?.?/sourcelocation home//alan/Documents cifs iocharset=utf8,credentialsfile=/credlocation,uid=1000,gid=1000,vers=1.0  0   2
All is now working fine


Clean Ubuntu 20.04 Installation Failure "Executing 'grub-install/dev/sda' failed."

The below steps helped me fix similar failing Ubuntu-20.4 installation on a MacMini2019.
After grub-install fails try this https://www.linux.com/training-tutorials/how-rescue-non-booting-grub-2-linux/
grub> set root=(hd0,1)   "this can be different for you so search partitions to find correct one"
grub> linux /boot/vmlinuz-X.XX.X-XX-generic root=/dev/sda1 "instead of sda1 per the tutorial I gave nvme0n1p2, for you can be nvme0nXpX or sdaX"
grub> initrd /boot/initrd.img-X.XX.X-XX-generic
grub> boot

This helped me boot but still had to fix grub. After apt update and apt upgrade I did the following:
Change boot order using efibootmgr
sudo su
cd /boot/efi/EFI
mv BOOT BOOT_bak
cp -R ubuntu BOOT
cd BOOT
mv shimx64.efi bootx64.efi


Not all installed packages will have a URL associated with them, of course. However, you could use apt-get dowload:

$ apt-get download --print-uris wget
'http://archive.ubuntu.com/ubuntu/pool/main/w/wget/wget_1.15-1ubuntu1.14.04.2_amd64.deb' wget_1.15-1ubuntu1.14.04.2_amd64.deb 270522 SHA256:a3f3b049ea373402236a804a5a0952c6ef9b356ba8cc19fbc1f257db6e8f3052

This is the candidate version as shown by apt-cache policy, which might not necessarily be the installed version.


How can I view and change the kernel bootargs my Nexus 7 is using at startup?

/proc/cmdline will give you the current boot arguments but also reveal a lot of data that's not technically modifiable.

I would recommend using:  sudo abootimg -i /dev/mmcblk0p2

Which should give you similar output:

ubuntu@nexus7-265143b8:~$ sudo abootimg -i /dev/mmcblk0p2

Android Boot Image Info:

* file name = /dev/mmcblk0p2 [block device]

* image size = 8388608 bytes (8.00 MB)
  page size  = 2048 bytes

* Boot Name = ""

* kernel size       = 4522232 bytes (4.31 MB)
  ramdisk size      = 2182999 bytes (2.08 MB)

* load addresses:
  kernel:       0x10008000
  ramdisk:      0x11000000
  tags:         0x10000100

* cmdline = root=/dev/mmcblk0p9 ro console=tty1 fbcon=rotate:1 quiet

* id = 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000

To modify your cmdline arguments issue the following command:

sudo abootimg -u /dev/mmcblk0p2 -c cmdline ='foo bar baz'


The root partition of my 12.10 Kubuntu distro is full and I don't really understand why, since fileflight shows that 72% of the disk space usage of my root partition is being used by the "home/"My account name"" folder, wich should be in a different partition.

It sounds like either your /home may not actually be a different partition, or fileflight (which I'm not familiar with) is misleading you a bit and including the contents of /home when it shows the contents of /.

At any time you can see your mount points with sudo mount.  There should be one that says on /home - that will tell you which partition is mounted where.  At any rate, it may help us to figure out what the problem may be.

You can also find out what directories in particular are taking up a lot of space with the du tool.  For instance, you could go into / and run sudo du --max-depth=2 to get a summary of where the big files are.


TLP does not drain battery when using thresholds

This is a misunderstanding on your part. The FAQ explains it:

Why does the battery not start to discharge when the stop threshold is
reached during charging?
The task of the stop threshold is to reduce battery wear by limiting
the charge level below 100%. So charging stops at the threshold and
the battery will not be discharged as long as the charger remains
connected.
This is the behaviour defined by Lenovo. It is hard-coded into the EC
firmware (see above) and behaves identically for the pre-loaded OS.
In contrast, repeated discharge of the battery during operation on AC
power would lead to absurdly high wear (i.e. charging cycles) without
any benefit being derived from it.


How to set languages/shortcuts from config files or command line?

The keys

The keys you are looking for are:

for editing the input sources:

org.gnome.desktop.input-sources sources

for editing the keyboard shortcut for switching languages forward:

org.gnome.desktop.wm.keybindings switch-input-source

for switching input source backward:

org.gnome.desktop.wm.keybindings switch-input-source-backward

The commands to edit the settings

Example commands to edit the three from command line:

For editing the input sources, to set the input sources as mentioned in your question:

gsettings set org.gnome.desktop.input-sources sources "[('xkb', 'us'), ('xkb', 'it'), ('xkb', 'de')]"

to set the switch- shortcut key combination to Ctrl+space

gsettings set org.gnome.desktop.wm.keybindings switch-input-source "['<Primary>space']"

to set the switch- shortcut key combination to switch backward Shift+Super+space

gsettings set org.gnome.desktop.wm.keybindings switch-input-source-backward "['<Shift><Super>space']"

The commands to get the current settings

gsettings get org.gnome.desktop.input-sources sources
gsettings get org.gnome.desktop.wm.keybindings switch-input-source
gsettings get org.gnome.desktop.wm.keybindings switch-input-source-backward

How to find these keys

You can search for keywords in the database by listing all keys with the command:

gsettings list-recursively

which will list all existing keys, or (which I regularly do) install dconf-editor and simply find your keyword(s) with Ctrl+F.

Edit

As requested in a comment, I added a small script to walk through the input sources from command line:

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

src = sys.argv[1]
key = "org.gnome.desktop.input-sources"
get = lambda cmd: subprocess.check_output(["/bin/bash", "-c", cmd]).decode("utf-8").strip()

src_list = len(eval(get("gsettings get "+key+" sources")))-1
current = int(get("gsettings get "+key+" current").split()[-1])
if src == "+":
    set_new_value = "gsettings set "+key+" current "+(str(current+1) if current <  src_list else "0")
elif src == "-":
    set_new_value = "gsettings set "+key+" current "+(str(current-1) if current > 0 else str(src_list))
subprocess.Popen(["/bin/bash","-c", set_new_value])

To run it

Save the script, into an empty file, as switch_source.py
Run it by the command:

python3 /path/to/switch_source.py +

to go to the next input source, and

python3 /path/to/switch_source.py -

to go to the previous one


Ubuntu 14.04.3 install: grub-efi-amd64-signed failed (Dualboot, Windows, UEFI)

How you can see in the comments, I solved the problem:
After disableing fast secure and secure boot, I run the Boot-Repair tool on a Ubuntu live-USB stick. After that, I must edit the boot order in my UEFI. This solved my problem! GRUB is starting every time.


I assume that you are trying to start VirtualBox:  press the Super key (also called the Windows key) and type "virtualbox" - the icon for launching will appear.


Download from any of the following links (multiple links in case links go down):
http://bayfiles.com/file/BPXv/rVFA3K/Histacom_1.8.5.zip

http://d01.megashares.com/index.php?d01=afhPyjc

http://www.crocko.com/DA0BB5669485476CAF0C103F5DCE3CFF/Histacom_1.8.5.zip

This game may work on Wine with Ubuntu but requires many dependencies. I am the original Histacom developer in case you are interested. I attempted multiple times to hand development over, but those who attempted working on it were never reliable and instead stole the source code for their own games.

Contact me at 12padams@gmail.com if you wish to have the source code. I want this game to go somewhere... Whether you play to sell it or continue developing it for a free release.


How to provide /dev/sda to already existing file system?

With the command

mount -o loop rootfs.ext3 /media/fuse/

you have already mounted a loop device via the file rootfs.ext3, that contains a file system image. The file system is mounted in /media/fuse.


According to the release notes for 20.04, to upgrade from 18.04 one would need to type
update-manager -c -d

This gives the message saying that the system is up-to-date and at the same time gives you the option to upgrade to 20.04.
For further details check out the release notes on Upgrading from Ubuntu 18.04 LTS or 19.10 - FocalFossa/ReleaseNotes - Ubuntu Wiki.


Dual-boot loads Windows 8.1 first, and Ubuntu occasionally completely crashes

You can select which OS will boot first by changing the boot order -- use efibootmgr from Ubuntu or bcdedit (I think) on the Windows side. Windows does like to keep putting itself first, so expect to have to do this every now and then. Selection at Power on should be available through the use of a function key (varies by machine, but sometimes the vendor splash screen indicates which key it is).  Take a look at the log files to hopefully get a clue why the crash occurred.


See CUDA Inst Guide section 1.2 for the GCC compilers supported for each Ubuntu release.  The latest supported Ubuntu release is 18.04, kernel 4.15 with gcc version 7.3.0 and glibc version 2.27.  If you cannot use a supported distribution, you will need to either downgrade to a supported tool version (probably works), or test the supplied tool version for problems (may work).  Your GPU supports CUDA 10,  with compute capability of 3.0, so that whould not be a problem.


Cannot boot from Ubuntu 16.04 (desktop version) USB startup drive on Lenovo T460p with Windows 10

I experienced the same issue also on a T460p.
1st fix:
I followed the instructions on
https://support.lenovo.com/ch/en/documents/ht103058.
I set boot mode to "Both" and that helped (step 3 of the instructions for Think-branded systems).

2nd fix:
I copied the efi image to usb via

# dd if=ubuntu-16.04.1-server-amd64.iso  of=/dev/sdX

then pressed F12 during boot and opted to boot from my USB drive. I was actually able to boot in UEFI mode. The latter proved crucial for my ubuntu 16.04.1 installation.

--
that's me in the corner,
that's me in the spot light,
shooting my computer ...


Well, piping produces text output from a command or sequence of commands, and sends to consumer - another sequence of commands. So you could do something like { echo foo; echo bar; } | { grep foo; grep bar; } if you see what I did there.

As for actual commands, piping to cd is kinda pointless - cd doesn't consume stdin stream. So if you need to execute yarn in the front-end directory, do that cd command before piping.


Is there a DVD authoring program that will run successfully under Wine?

Have you tried OpenDVDProducer (also available on Ubuntu Store)? It does not generate HD DVDs, but have more options regarding DVD menu than DeVeDe.


Having done some research I believe that Ubuntu will not restart automatically unless a chronjob is created telling it to Here is how to create such a chronjob otherwise I would just do a manual restart. If you don't reboot a server, it can go on for many many months.


How do I connect installed module to python shell?

pip most likely belongs to Python 2. For Python 3, it would normally need to be pip3.

You should usually avoid calling these executables directly though, because it is not well defined which instance of Python they belong to if you have more than one version installed.

The recommended alternative is to call it as module with the exact interpreter you want:

python3 -m pip install numpy


Setting up Apache2 to be accessible from anywhere

It's likely that your ISP is blocking port 80 if you are on a residential line. The vast majority of ISP's will block a set of specific ports for a number of reasons including safety (cut down on unlisted websites that might be doing illegitimate things), convenience (keep bandwidth open for other traffic) and "because they can". This will not affect traffic from within your network, however it will prevent virtually any outside connections from using your public IP address SPECIFICALLY on port 80.

I have a webserver and my solution to this problem is to change the default port. You can do this in a couple of ways.

On your router:
Instead of forwarding port 80 to 80, forward port 60123 to 80, or something similar. This will make your router listen on a non-standard port and forward anything it hears to your raspberry pi on the appropriate port.
On your raspberry pi AND your router:
in /etc/apache2 modify the ports.conf file and change port 80 to something else (preferrably above 1024 to avoid getting blocked). Then update your router to this new port, and you should be fine.

Once changed, you'll need to append the port number to your IP address whenever you type it into your web browser, including using simply localhost

eg: http://localhost:10123, http://192.168.1.3:12345


How to disable expand animation on appearance of cairo dock?

You can easily configure Cairo Dock by right click on the dock and choosing 'Configure'.

From this tutorial you can learn what setting are available. The dock can have several modes of appearance listed under the settings for "Visibility". There you can e.g. choose a static or a panel mode or define how the dock interacts with opened windows. You best try out the several modes to see what meets your needs.

From the icon settings for Animations and Effects a zoom factor of 1.00 also stops sideway expanding animation of the dock.


Dunno if it's the best way, but this is what I do:

Run Thunderbird up once on the new system (but don't create any mailboxes). This will create a directory in ~/.thunderbird with a generated hash and ".default" appended to the end.
Extract the backup into the directory.
Restart Thunderbird. It should find all the restored mailboxes and all the previous settings.


terminal won't launch after installing python 3,7

This way the upgrade to 3.7 is useless. You should edit the gnome-terminal file:

Open a terminal and issue the following commands:

cd /usr/bin
sudo nano gnome-terminal
Change #!/usr/bin/python3 to #!/usr/bin/python3.6.

This way you can still use the power of 3.7 and solve the issue with the terminal.

Reference: Terminal not opening up after upgrading python to 3.7


You could write directly to the file that manages screen brightness.
On my laptop, this is:

/sys/class/backlight/intel_backlight/brightness

and it accepts values up to /sys/class/backlight/intel_backlight/max_brightness

To know the latter, you can: cat /sys/class/backlight/intel_backlight/max_brightness.

To change screen brightness:

sudo echo 4000 | tee /sys/class/backlight/intel_backlight/brightness

Hope that helps.


All keyboards stopped working after login screen

I stumbled upon this answer Why did my keyboard stop working? and it seems that I've accidentally hit some key combination that turned on slowkeys, but it only had an effect after the login screen.

So, to fix this, go to:

System Settings → Universal Access → Typing (tab): switch off "Slow keys"

Also switch off "Enable by Keyboard" if you want to stop it happening again.

It don't know why the login screen ignores this setting, tho.

Update

I just did this again (d'oh!) which brought me back to this answer and gave me the initiative to find out what triggered it.

Apparently, if you have Enable by keyboard on and then you hold down the  Shift key for eight seconds, it will enable/disable slowkeys.

This was a new setup, and I had enabled Enable by keyboard because I wanted a way to flip between touchscreen and keyboard mode easily.  Might not be worth the effort, tho!


Can I log how long resume (un-hibernate) takes?

You can look in /var/log/syslog for a general system log, it will contain messages from the kernel about the hibernate process.

The delta from when processes start being frozen to when there are no more kernel log messages (until it starts at 0.0000000 on reboot) is the time your computer took to hibernate.


How to recover Audio files from a External HDD?

You already tried testdisk which would have been my first idea, too.

If it's a question of life and death ("I cannot survive"), you need to pony up some hard ca$h and take the broken disk to a professional recovery service. Beware, this might cost quite a lot (we're taking several hunderds to thousands here).

Advice (this is free): Always. Make. Backups.


Clearly the fs is un-mounted. It appears as though either autofs or nfs is still holding onto the file system and once they are stopped the check will run.

`service autofs stop`
`service nfs stop`

xfs_check is looking at stale information in /etc/mtab rather than up-to-date information in /proc/mounts.


What does "my.firewall" mean on linux routing table?

my.firewall is the symbolic host name of your gateway. Use route -n if you would prefer just ip addresses. Example:

doug@s15:~/temp-k-git/linux$ route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
default         ns1.smythies.co 0.0.0.0         UG    0      0        0 br0
10.0.3.0        *               255.255.255.0   U     0      0        0 lxcbr0
192.168.111.0   *               255.255.255.0   U     0      0        0 br0
192.168.122.0   *               255.255.255.0   U     0      0        0 virbr0

and now with the -n option:

doug@s15:~/temp-k-git/linux$ route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
0.0.0.0         192.168.111.1   0.0.0.0         UG    0      0        0 br0
10.0.3.0        0.0.0.0         255.255.255.0   U     0      0        0 lxcbr0
192.168.111.0   0.0.0.0         255.255.255.0   U     0      0        0 br0
192.168.122.0   0.0.0.0         255.255.255.0   U     0      0        0 virbr0


"Sorry, installation of this driver failed.  Please have a look at the log file for details: /var/log/jockey.log."

You need to connect your computer with a cable to the Internet, once that is done follow the instructions on this page to install your wireless card drivers

How do I install additional drivers?

That utility will identify your card, download and install the necessary drivers for it. After that you will be able to use your wireless card.

You need an active Internet connection for the utility to work.


How can I update Ubuntu if I "missed my chance"?

If the update manager doesn't work you can use a live usb/cd of Ubuntu 13.04.

You can simply make one using UNetBootin

After creating the live usb/cd boot it and start the installation process.
You'll be prompted if you want to upgrade, install side by side or do a clean install.
Click upgrade.

If you do not have your home folder on a separate partition you may want to back it up before doing this!


A default Ubuntu installation has a command python, which links to python2, which in turn links to the binary of the current version in the 2 branch. python3 does the same for the 3-branch.

It is, therefore, not normal that you do not have a command python. In principle, this can be caused by 1) removal of the python 2 branch, or, 2) incidental removal of the executable (i.e., a symbolic link), or much less likely, 3) removal of the folder where python resides from your path.

Thus, for a start, check whether python is installed, and, if not, reinstall it with

sudo apt install python


copy pasting file from ubuntu guest os to host windows 8.1 os vmware

I was able to solve this problem by installing open-vm-tools-desktop

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

I uninstalled other vmware-tools which I installed with workstation 14 bundled download and open-vm-tools also uninstalled

  sudo apt-get remove open-vm-tools-desktop


How to force active Launcher webpages to be from the Chromium icon?

This is actually a bug in the window matching bamf does that we haven't been able to fix yet.

How do I subscribe to a bug?


How do I sync Tasks and Memos in Evolution using CalDav

I figured this out, at least for Tasks.

The mistake I made was using Type: On Web.

The correct setting is Type: DavCal

This, of course, makes sense but is not what's listed on the official evolution documentation.


Yes, the link in your question is an official Ubuntu webpage where you can find links to download the Ubuntu GNOME 13.10 iso image file for installing Ubuntu GNOME 13.10. The MD5SUMS file found at the top of the list of links on that webpage is a small text file that has the MD5 checksum that is used to verify the Ubuntu GNOME 13.10 iso file after you have downloaded it.


The link to the minimal for 12.04 64bit is:

mini.iso

Other versions can be found from here:

Minimal CD

Not sure if it is possible to encrypt with the minimal.


LibreOffice Impress progress bar with square/circle

Well, may be not so sophisticated. I had looked to start by forking that repository but end up, writing from scratch.

Current state, it is working (LibreOffice v6.0.2.1). However, Setting are not presented in GUI.

Setup

Tools > Macros > Organize Macros > LibreOffice Basic...
My Macros > Standard: New module name it "ProgressLine" or whatever.
Select it then Edit, Copy below code into it

REM  *****  BASIC  *****

Dim iFileNumber As Integer
Dim iSectionCount As Integer
Dim iSectionPage As Integer
Dim iSectionIndex As Integer
Dim iSectionIndexCurrent As Integer

Dim oDocument As Object
Dim oPage As Object
Dim iPageCount As Integer
Dim oPositionPageMark As New com.sun.star.awt.Point
Dim oSizePageMark As New com.sun.star.awt.Size
Dim oSizeSectionTitle As New com.sun.star.awt.Size

Sub ProgressLine

    'Default values
    'sBulletShape = "com.sun.star.drawing.RectangleShape"
    sBulletShape = "com.sun.star.drawing.EllipseShape"
    'Values are fracture of page width
    oSizePageMark_Width = 0.02
    oSizePageMark_Height = 0.02
    oSizeSectionTitle_Width = 0.20
    oSizeSectionTitle_Height = 0.03
    dSeparationRatioSection = 3.0
    dMargin_Start = 0.05
    dMargin_End = 0.10
    dMargin_Side = 0.03

    oFillColorPageMarkActive = RGB(255,0,0)
    oFillColorPageMarkInactive = RGB(240, 200, 200)
    oCharColorSectionTitleActive = RGB(255, 0, 0)
    oCharColorSectionTitleInactive = RGB(150, 150, 150)

    ProgressLineRemove()

    oDocument = ThisComponent
    If oDocument.supportsService("com.sun.star.drawing.GenericDrawingDocument") Then
        'Load index
        sIndexPath = oDocument.URL
        sIndexPath = Mid( Left(sIndexPath, InStr(sIndexPath, ".odp")-1) & ".index",1,Len(sIndexPath)+2)
        iFileNumber = Freefile
        Open sIndexPath For Input As #iFileNumber
        'First line is section total count
        If Not eof(#iFileNumber) Then
            Line Input #iFileNumber, sLine
            If sLine<>"" Then
                iSectionCount = Int(sLine)
            End If
        End If
        'Remaining lines for sections: page, title
        iPageCount = oDocument.DrawPages.Count
        Dim sSectionTitle(iPageCount) As String
        While Not eof(#iFileNumber)
            Line Input #iFileNumber, sLine
            If sLine<>"" Then
                iSectionPage = Int(Left(sLine, InStr(sLine, ",")-1))
                sSectionTitle(iSectionPage-1) = Right(sLine, Len(sLine)-InStr(sLine, ","))
            End If
        Wend

        'loop over pages
        iSectionIndex=-1
        For iPageIndex=0 To iPageCount-1
            If sSectionTitle(iPageIndex)<>"" Then
                iSectionIndex = iSectionIndex+1
            End If
            oPage = oDocument.DrawPages(iPageIndex)
            oSizePageMark.Width = oPage.Width*oSizePageMark_Width
            oSizePageMark.Height = oPage.Width*oSizePageMark_Height
            dSeparation = (oPage.Width*(1-dMargin_Start-dMargin_End)-oSizePageMark.Width*iPageCount)/((iPageCount-iSectionCount)+(iSectionCount-1)*dSeparationRatioSection)

            'Place new shapes, loop over page for progress
            iSectionIndexCurrent=-1
            For iPageIndexCurrent=0 To iPageCount-1
                If sSectionTitle(iPageIndexCurrent)<>"" Then
                    iSectionIndexCurrent = iSectionIndexCurrent+1
                End If
                oShape = oDocument.createInstance(sBulletShape)
                oPositionPageMark.x = (iPageIndexCurrent+iSectionIndexCurrent*(dSeparationRatioSection-1))*dSeparation+iPageIndexCurrent*oSizePageMark.Width+oPage.Width*dMargin_Start
                oPositionPageMark.y = oPage.Height-oPage.Width*dMargin_Side-oSizePageMark.Height
                oShape.Size = oSizePageMark
                oShape.Position = oPositionPageMark
                oShape.LineStyle = none
                If (iPageIndexCurrent=iPageIndex) Then
                    oShape.FillColor = oFillColorPageMarkActive
                Else
                    oShape.FillColor = oFillColorPageMarkInactive
                End If
                oShape.Name = "Progress Line RS_" + (iPageIndex+1)+"_"+(iPageIndexCurrent+1)
                oPage.add(oShape)

                'Section titles, skip dummy title: "_"
                If sSectionTitle(iPageIndexCurrent)<>"" And sSectionTitle(iPageIndexCurrent)<>"_" Then
                    oShape = oDocument.createInstance("com.sun.star.drawing.RectangleShape")
                    oShape.TextVerticalAdjust = com.sun.star.drawing.TextVerticalAdjust.TOP
                    oShape.TextHorizontalAdjust = com.sun.star.drawing.TextHorizontalAdjust.LEFT
                    oShape.TextLeftDistance = 0
                    oSizeSectionTitle.Width = oPage.Width*oSizeSectionTitle_Width
                    oSizeSectionTitle.Height = oPage.Width*oSizeSectionTitle_Height
                    oShape.Size = oSizeSectionTitle
                    oPositionPageMark.y = oPositionPageMark.y-oSizeSectionTitle.Height
                    oShape.Position = oPositionPageMark
                    oShape.LineStyle = none
                    oShape.FillStyle = none
                    oShape.Name = "Progress Line TS_" + (iPageIndex+1)+"_"+(iPageIndexCurrent+1)
                    oPage.add(oShape)
                    oShape.String = sSectionTitle(iPageIndexCurrent)
                    oShape.CharWeight = com.sun.star.awt.FontWeight.BOLD
                    oShape.CharFontName = "Arial" 'todo: doesn't work

                    If iSectionIndexCurrent=iSectionIndex Then
                        oShape.CharColor = oCharColorSectionTitleActive
                    Else
                        oShape.CharColor = oCharColorSectionTitleInactive
                    End If

                End If
            Next iPageIndexCurrent
        Next iPageIndex
        Close #iFileNumber
    End If
End Sub

Sub ProgressLineRemove
    oDocument = ThisComponent
    If oDocument.supportsService("com.sun.star.drawing.GenericDrawingDocument") Then
        'loop over pages
        iSectionIndexCurrent=0
        For iPageIndex=0 To oDocument.DrawPages.Count-1
            oPage = oDocument.DrawPages(iPageIndex)
            'Cleanup old shapes
            iShapeIndex = oPage.getCount-1
            Do While (iShapeIndex>=0)
                oShape = oPage.getByIndex(iShapeIndex)
                If (InStr(oShape.Name, "Progress Line") <> 0) Then
                    oPage.remove(oShape)
                End If
                iShapeIndex = iShapeIndex-1
            Loop
        Next iPageIndex
    End If
End Sub

Save it

Workflow

Add ProgressLine

Create index, a text file, in same folder with same name but with .index extension

5
1,_
2,H2_a
4,H2_b
7,H2_c
10,_

First line is total number of section
Remaining lines in this format: page, section title
_ special for section without title

Open your presentation
Tools > Macros > Organize Macros > LibreOffice Basic...: Run ProgressLine

Remove ProgressLine

Tools > Macros > Organize Macros > LibreOffice Basic...: Run ProgressLineRemove

Notes

Most settings are grouped at the top of the script, so it should be somehow easy to tweak it.


How to get started with Vulkan with AMD Richland [Radeon HD 8610G] Card

based on this reference, your card should be supported.

The group behind Vulkan have put together a beginners guide, I'd suggest starting there.
It should hopefully answer all of your questions.


systemd wont use dockerd configuration file

Follow these steps.

Go to /etc/init.d
Add a file( say example ) and place the script you want to execute in that.
chmod +x /etc/init.d/example. (permissions)
Add # chkconfig: 345 99 10 inside your script
Save it  6  Start the service with — service example start.

This should work as system service/ startup service .

Go into your example,
vi /etc/init.d/example then add -

systemctl daemon-reload
systemctl restart docker

If your commands do the work of over-writing , this will work.

Let me know if you face any challenge as distors do matter.


eufi\secure boot and auto booting into ubuntu after fresh install

Try this:

Boot to Ubuntu using the ubuntu option in your boot menu.
Open a Terminal window.
Type sudo cp -a /boot/efi/EFI/ubuntu /boot/efi/EFI/BOOT
Type sudo mv /boot/efi/EFI/shimx64.efi /boot/efi/EFI/bootx64.efi

If that doesn't work, please edit your question to include the output of the following commands:

sudo efibootmgr -v
sudo find /boot/efi -iname "*.efi"


Is it possible to run multiple Iperf clients simultaneously?

this could be a solution to this problem:
https://sandilands.info/sgordon/multiple-iperf-instances


Language changed to Chinese, how do I change it back?

Exactly the same thing happened to me just now.

English in Chinese is 英語 (Traditional) and 英语 (Simplefied) (thanks - and copied from comment from @titaniumtux)

I was able to change it back using the keyboard layout options in Settings.


Open spelling correction dialog by keyboard shortcut instead of right click

Probably the simplest way is to use your Menu button on your keyboard

i.e.  cursor backwards to the squiggle and press Menu.  Then select the suggested correction.

If you don't have a Menu key, map a keyboard shortcut (search in dash for Keyboard Shortcut) to a key combination (e.g. CTRL+H) to the command

xdotool keydown Menu

N.B. install the package xdotool if you haven't already got it installed

sudo apt-get install xdotool


Add the directory path to the PATH variable by adding the below line to .bashrc file,

export PATH=$PATH:/home/seal/Jpcsp

To open .bashrc file,

gedit ~/.bashrc

Then source the .bashrc file,

source ~/.bashrc

After that you can run the start-linux-x86.sh file directly by simply opening the terminal.


Start Dropbox on System Start (Not Login)

With these instructions dropbox will start at boot (see the section Dropbox Headless Install via command line).

I am using it successfully on my Ubuntu 12.04 machine.

The only downside is that you won't be able to see the dropbox-icon in the indicator area anymore when you do login. This is okay in my situation, but might be a problem for someone else.


POSTFIX+OPENDKIM : How to reject untrusted domains without keeping mails in queue?

I've found how to reject untrusted domains from my local network :

1) In /etc/postfix/main.cf add the line :

smtpd_sender_restrictions = check_sender_access hash:/etc/postfix/sender_access, reject

2) In /etc/postfix create the file sender_access and copy/paste all permitted domains.

3) Execute the command postmap sender_access to create a sender_access.db file.

4) Restart Postfix.

Now if I want to send a mail from my local network with a domain that doesn't exist in the sender_access.db file, Postfix rejects the mail immediately.


Finally I did install with another ISO: ubuntu-12.04-alternate-amd64. However the problem was with my video card and I had to boot in a safe mode and update everything, before I could succeed.

Linux ubtxxxx 3.2.0-29-generic #46-Ubuntu SMP Fri Jul 27 17:03:23 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux.


I experienced this same problem too. It seems this bug is related to Ricoh Co Ltd R5C592 Memory Stick Bus Host Adapter. A possible workaround is blacklisting the module if you don't use the Card Reader a lot.

Create a file in /etc/modprobe.d/ with name blacklist-r592.conf and put this line in that file

blacklist r592

then restart the PC. The error should go away.

Alternatively, you can also use this two line instead (change the filename accordingly if you want) as suggested in this bug report comment

options r592 enable_dma=0
options r852 r852_enable_dma=0

But this is not tested by me.


Without knowing any details about your hardware config, and anything about the programs you have used, I'd recommend trying more programs to make a bootable USB drive. I usually use Universal Usb Installer, which worked flawlessly every time I tried it.

One thing I'd recommend: check the USB drive for partitions. If it's partitioned, the programs you are using might fail to write the files correctly leading to a hang.


Ubuntu re-installing everytime I restart my computer

Every time you reboot and select unetbootin, you are asking to reinstall. Select a different option at boot - hopefully Ubuntu is an option, if it really got installed.