If Rockbox Utility fails to detect the mount point of your iPod, it is no big deal. I had the exact same issue with my Sansa Clip Zip. Simply:

Mount the iPod with your file manager (e.g. Thunar)
In Configuration > Select your device in the FS select the appropriate mount point
In Configuration > Select your audio player select iPod Video 5th gen

Do make sure that this is indeed the device that you have, and that this very Apple device is actually supported by Rockbox!

Hit OK

To be able to install Rockbox on your music player, Rockbox utility only needs to know the mount point and the correctly specified device (and that the device be supported!). In any case, before performing the installation read the manual for your device (which you can download from the Manual tab).


E: Unable to locate package usb_modeswitch

The package is called usb-modeswitch (with - instead of _).

The lines you have added are for Ubuntu 10.10 "Maverick Meerkat". They do not work on Ubuntu 12.04 "Precise Pangolin"


Can't find my app in a dash, something is wrong with .desktop file?

Well the problem was the path:

  /root/springsource/sts-3.5.1.RELEASE/STS

I moved it to my user folder and it started to work

  /home/max/springsource/sts-3.5.1.RELEASE/STS


Ubuntu boot failed after trying to repair boot

Try restarting your windows by hold SHIFT key to enter UEFI screen (maybe differ with others laptop/computer), then see if there are another ubuntu option in your uefi (because it was happen to me), choose the right option that can makes you logon to ubuntu, then try to reorder uefi boot menu. Otherwise, you can do it by easyuefi from windows. hope that will solve your problem.


This repository does not exist anymore. You should delete it.

sudo ppa-purge ppa:noskcaj/indicator-gtk3

Sorry to be the harbinger of bad news!


Does running a console emulator will make the laptop hotter?

Any application that utilizes a lot of processing power will make your laptop hotter. Emulators usually use a lot of CPU power and it may result in making laptop hotter. Observe your CPU usage (use top or any other tool) while running emulation. Use lm-sensors to observe heat. Results may vary depending on emulator and your hardware.


Keyboard and mouse failure after update 18.04

@AFC

Hi there, I'm suffering the same issue in an Ubuntu environment. Gnome 3.28.2 is installed, but I do not get access to any input. Mouse movement will be captured but no clicks and no keyboard entry.

Here is my fix:

sudo apt-get install ubuntu-gnome-desktop

which actually installed gnome 3.28.3 and now I can access my GUI again.


Unity unresponsive after login; restarting Unity from tty works

I had a similar problem a couple of months ago and here is how i solved it, I hope it works for you too:

First try to reset unity:

unity --reset

If this fail then do the following:

sudo apt-get update
sudo apt-get install --reinstall ubuntu-desktop
sudo apt-get install unity

Then I did the what is suggested by @SiddharthaRT here:


With fstab, how do I automatically mount an NTFS partition with full permissions for every user?

You should add this line to your fstab:

/dev/sda3 /Acer ntfs-3g defaults,user,rw,umask=000 0 0


Move space from one partition to another partition

Remember: Backup any data, before you begin messing with partitions!

Warning: I don't know about dual-booting on Mac!

But if you right-click the /sda4 partition you should be able to find a menu called "Resize/Move".
You need to move that partition "to the right".
That will bring your free space next to the sda3 partition.
Then you can move sda3, and then finally expand sda2 into the free space.

Also notice that you can't do this while your system is running off any of these partitions. Booting from a usb, and running gparted through there is usually the way to go.

Warning: (again) I don't know about dual-booting on Mac! If the Mac OS can find the partition after it has been resized / moved is not sure. Someone else perhaps can help with that.


Multiple screen after Ubuntu 12.04 LTS updated - VMware Player

I think it is might because of the VMware Player is not working properly with the new update.

Here is a possible sulution:  Disable vmwgfx fbdev in ubuntu.

BE SURE TO BACKUP YOUR VM, BE IT USING SNAPSHOTS OR A COPY
Edit the VM file /etc/modprobe.d/vmwgfx-fbdev.conf to set
options vmwgfx enable_fbdev=0
Run
sudo update-initramfs -u
Reboot

Then issue should be resolved.


Wget command error (Error parsing proxy URL http://localhost:4001 : Bad port number.)

wget can ignore your jondo proxy settings using the --no-proxy option:

   --no-proxy
       Don't use proxies, even if the appropriate *_proxy environment
       variable is defined.


If you're using Lubuntu 18.04, the file manager is PCManFM. Lubuntu's applications in 18.04 are mostly gtk2- and gtk3-based.

Run apt search theme | grep -i gtk+. There's a long list for you to choose from. Ensure that the theme you test supports both gtk2 and gtk3. Some themes only support one: in such cases, you'll get ugly looking applications.

Then there are external sources as well but you need to choose wisely because a particular theme may not be suitable for your current system: this mainly affects applications using gtk3 because gtk3 is evolving rapidly.

I'll also note that you refer to LXDE and not to Lubuntu which makes me guess that you did not install lubuntu-desktop but something else, more limited.

I suggest you install lubuntu-desktop which will provide you with decent appearances for your applications. To do so, run sudo apt update, sudo apt full-upgrade, sudo apt install lubuntu-desktop, in that order, and then log out and log back in making sure to choose Lubuntu at your login screen.


Why are there 2 routes in this table instead of one?

The second line is actually the exact information (as pertaining to routing) you stated in the device configuration.

It would not be sensible to have the kernel always look up infos from the device database for every routing decision if we can put that info into the routing table itself.

Imagine the same situation on a router with several attached networks. The technique seen here applies there as well and simplifies routing decisions by a great deal (Only one line more in the routing table vs. 5 interfaces to scan).


The error shows that its not able to bind or use port 80. It happens when port 80 is being used by another process.
Hence, please try changing the Apache port and the service should start.
Note: If you have any firewall installed open this port in firewall as well.

A 403 status code indicates that the client cannot access the requested resource. It can also happen when no default directory index page is present or a .htaccess file is preventing access.

I'd suggest to check the Apache error logs to get the correct idea about the error which you are facing.


ERR_SSL_VERSION_INTERFERENCE error when using fiddler with mono on ubuntu

The article OP given lists some limitations and problems

  TLS 1.1 and 1.2 Not Supported This is a hard limitation introduced by
  the current state of TLS implementation in the Mono framework. So
  Fiddler for Linux cannot use these protocols at present.

We conclude that mono-fiddler only support tls1.0, which means when curl connect to server directly, it will be like this:

* Connected to pi.com (127.0.0.1) port 443 (#0)
* ALPN, offering h2
* ALPN, offering http/1.1
* successfully set certificate verify locations:
*   CAfile: /etc/ssl/certs/ca-certificates.crt
  CApath: /etc/ssl/certs
* TLSv1.2 (OUT), TLS handshake, Client hello (1):
* TLSv1.2 (IN), TLS handshake, Server hello (2):
* TLSv1.2 (IN), TLS handshake, Certificate (11):
* TLSv1.2 (IN), TLS handshake, Server key exchange (12):
* TLSv1.2 (IN), TLS handshake, Server finished (14):
* TLSv1.2 (OUT), TLS handshake, Client key exchange (16):
* TLSv1.2 (OUT), TLS change cipher, Client hello (1):
* TLSv1.2 (OUT), TLS handshake, Finished (20):
* TLSv1.2 (IN), TLS handshake, Finished (20):
* SSL connection using TLSv1.2 / ECDHE-RSA-AES256-GCM-SHA384
* ALPN, server accepted to use http/1.1

Obviously, they use tls1.2 and http1.1 as negotiation result.
However, When curl use mono-fiddler as proxy, the result will be different:

* Connected to 127.0.0.1 (127.0.0.1) port 8888 (#0)
* allocate connect buffer!
* Establish HTTP proxy tunnel to pi.com:443
> CONNECT pi.com:443 HTTP/1.1
> Host: pi.com:443
> User-Agent: curl/7.58.0
> Proxy-Connection: Keep-Alive
>
< HTTP/1.1 200 Connection Established
< FiddlerGateway: Direct
< StartTime: 18:08:06.731
< Connection: close
<
* Proxy replied 200 to CONNECT request
* CONNECT phase completed!
* ALPN, offering h2
* ALPN, offering http/1.1
* successfully set certificate verify locations:
*   CAfile: /etc/ssl/certs/ca-certificates.crt
  CApath: /etc/ssl/certs
* TLSv1.2 (OUT), TLS handshake, Client hello (1):
* CONNECT phase completed!
* CONNECT phase completed!
* TLSv1.2 (IN), TLS handshake, Server hello (2):
* TLSv1.0 (IN), TLS handshake, Certificate (11):
* TLSv1.0 (IN), TLS handshake, Server finished (14):
* TLSv1.0 (OUT), TLS handshake, Client key exchange (16):
* TLSv1.0 (OUT), TLS change cipher, Client hello (1):
* TLSv1.0 (OUT), TLS handshake, Finished (20):
* TLSv1.0 (IN), TLS handshake, Finished (20):
* SSL connection using TLSv1.0 / AES256-SHA
* ALPN, server did not agree to a protocol

They use tls1.0, even worse http1.0. The most awful thing is Chrome deprecated tls1.0 and tls1.1 since v72.0.xxx for some security stratege. So Chrome reports ssl version mismatching.

  SSL/TLS Handshake Properties Not Available Fiddler for Linux cannot
  display these at present. This is a work in progress.

This will result in SSL_ERROR_RX_MALFORMED_SERVER_HELLO when Firefox use mono-fiddler as proxy.


Error importing iTunes Media into Banshee Media Player - Unable to map iTunes URI to local URI

Follow these directions to copy and convert a Windows iTunes library including music and playlists to Ubuntu linux for use with Banshee.

Copy the C:/Users/<yourName>/Music/iTunes/iTunes Media/Music directory from Windows to Ubuntu /home/<yourName>/Music directory.
Copy the Windows iTunes Library.xml file to the same directory in Linux.
Open a Linux terminal window and execute the following changing  with your user name (it converts all the Windows paths to Linux paths and allows you to import not only music but playlists as well.):

cd /home/<yourName>/Music

sed -i 's/C:\/Users\/<yourName>\/Music\/iTunes\/iTunes%20Media/home\/<yourName>\/Music/g' ./*Library.xml

Run Banshee, right click Music and Import Media. Choose the /home/<yourName>/Music folder and import.

You should see your music as well as your playlists imported.


Doesn't detect usb modem after kernel update

Maybe the Port has a new name nowadays...

Maybe ls /dev/ttyUSB* shows the new name... If you can't find a new port name post your dmesg output (type dmesg > kernel.log in a terminal) and paste that content to the Ubuntu Pastebin service.


How to troubleshoot Ubuntu One in Maverick beta?

The Ubuntu One team welcome any testing support that you can provide. If you encounter a problem during an Ubuntu alpha or beta phase, please file bugs at our Launchpad site.
https://bugs.launchpad.net/ubuntuone-client

Before filing a bug, though, it would be helpful if you search/scan over the existing bugs in order to reduce duplicates.

The issues that you point out have already been reported so we're working on them ;) They should be revolved very soon.

Thanks!


To see Unity shortcuts press and hold the Super key.

To customize shortcuts open System settings (gnome-control-center), go to keyboard and select Shortcuts tab. Explore all the categories to find what you're interested in changing and click on it to change. Then press the keys for your new shortcut.

To change keyboard layout shortcut, in the system settings go to Text Entry and change the shortcuts there.


Sounds like you've changed your desktop session to XBMC.

Log out (via XBMC's power menu), or the S key) and then pick another session type at the login screen.


How to install pdftk on Ubuntu 18.04 Bionic?

pdftk is missing from the official repository right now. That's an issue for many people.

There's a workaround here: How can I install pdftk in Ubuntu 18.04 Bionic?

However some might prefer a GTK approach and/or use a standard installation instead of one relying on OpenJDK. Those more acquainted with the terminal can download  and install from there.

You'll need:

gdebi (highly recommended over GNOME Software/Software Center), install it from the software center or $ sudo apt install gdebi
a few dependencies from the artful repositories (.deb files):

libgcj-common (download: https://packages.ubuntu.com/artful/libgcj-common)
libgcj17 (download: https://packages.ubuntu.com/artful/libgcj17)

pdftk, also from artful repo (download: https://packages.ubuntu.com/artful/pdftk)

Basically the process is opening and installing the .deb files - preferably on gdebi - in the order below. It might be interesting to open pdftk first on gdebi just to see the "impossible dependency" warning. We're basically installing the dependencies from an older repository, so it'll run like it did in 17.10. The order is:

libgcj-common
libgcj17
pdftk

After that you might want to check the status of pdftk at the software center - it might say it is not installed; install there or maybe just let it be.

Go to the terminal and check pdftk:

$ pdftk

It should now be installed.


How to reload Nvidia driver, (Nvidia Optimus/multiscreen: How to restart optirun after hibernation/suspend)

The following works for me on a Thinkpad T520 under arch:

Before suspending:

killall Xorg
sudo rmmod nvidia
sudo modprobe bbswitch
sudo tee /proc/acpi/bbswitch <<< OFF
sudo systemctl stop bumblebeed

After resume:

sudo rmmod nvidia
sudo modprobe nvidia
sudo modprobe bbswitch
sudo systemctl start bumblebeed
sudo tee /proc/acpi/bbswitch <<< ON
optirun true
intel-virtual-output

Especially reloading the nvidia kernel module seems to do the trick for me here.


Enabling Mic Mute button and light on Lenovo Thinkpads

This solution should work for all Thinkpads with a mute button which also has a built-in light. It may also work for other Thinkpads.

Apart from the notification bubbles:

There are two possible "hardware" indicators (to show that mute is on or off):

The Power button light (green) will blink to show when mute is on
The Mic mute button light (orange) will be on or off to show mute status (just like in Windows)

Solution 2 requires a patched thinkpad_acpi kernel module, and is only recommended for advanced users who know what they are doing. This is because the patch is not included by the thinkpad_acpi developers by default, (See this discussion for more details).

Common Steps

a. Determining the Mic-Mute hotkey code and Mic input device

Open terminal with Ctrl+Alt+T
Run acpi_listen, and press the mute key
Note the result, which should be something like:
ibm/hotkey HKEY 00000080 0000101b
Then run amixer scontrols, you should see one of the following in the output:

Simple mixer control 'Internal Mic',0

or

Simple mixer control 'Capture',0

Depending on what you see, "Internal Mic" or "Capture" is your input device.

b. Create the Mic-Mute ACPI event handler

Open terminal, type gksudo gedit /etc/acpi/events/lenovo-mutemic to open the editor.
In the editor, paste in the following, where the first line should be the code shown in the previous section by acpi_listen:

event=ibm/hotkey HKEY 00000080 0000101b
action=/etc/acpi/lenovo-mutemic.sh

Save and exit the editor.

Choosing either the Power Light or Mic Mute indicators

  c-1. Mic-Mute script with Power Button indicator

Do this if you want an easy solution and do not want to use the patched kernel module (see C-2).
Open terminal, type gksudo gedit /etc/acpi/lenovo-mutemic.sh
In the editor, paste:

#!/bin/bash
INPUT_DEVICE="'Internal Mic'"
YOUR_USERNAME="place_your_username_here"
if amixer sget $INPUT_DEVICE,0 | grep '\[on\]' ; then
    amixer sset $INPUT_DEVICE,0 toggle
    echo "0 blink" > /proc/acpi/ibm/led
    su $YOUR_USERNAME -c 'DISPLAY=":0.0" notify-send -t 50 \
            -i microphone-sensitivity-muted-symbolic "Mic MUTED"'
else
    amixer sset $INPUT_DEVICE,0 toggle
    su $YOUR_USERNAME -c 'DISPLAY=":0.0" notify-send -t 50 \
            -i microphone-sensitivity-high-symbolic "Mic ON"'
    echo "0 on" > /proc/acpi/ibm/led
fi

Replace value of INPUT_DEVICE variable with Capture if that is your input device name (leave all the ticks intact).
Replace value of YOUR_USERNAME variable with the account name of the user you want to send notifications to
Save and exit the editor.
Now run the following (from the terminal):

sudo chmod +x /etc/acpi/lenovo-mutemic.sh
sudo service acpid restart

Jump to the Testing section (d) to confirm that it works.

c-2. Mic-mute with official Mic-mute Indicator Light

Setting up the script

Please do not use this method if you are not familiar with the terminal/shell.
This will require compiling a patched thinkpad_acpi module and has been verified to work with Ubuntu Precise 12.04 and Quantal 12.10, kernels 3.2.0-23 and 3.2.0-24 and 3.5.0-21.
Let's create the script first: /etc/acpi/lenovo-mutemic.sh should be as in section c-1, with the following additions:
Insert this line after the header (#!/bin/bash):

MICMUTE=/sys/devices/platform/thinkpad_acpi/leds/tpacpi::micmute/brightness

After the first echo... line, insert:

echo 1 > $MICMUTE

And after the second echo... line, insert:

echo 0 > $MICMUTE

You can find an example of what the full script should look like in this paste
Then:

sudo chmod +x /etc/acpi/lenovo-mutemic.sh
sudo service acpid restart

Confirm that pressing the mute button results in a blinking power light; pressing again gives a steady power light.

Building, testing and installing the kernel module

Install (or ensure) you have the headers and built tools for your currently running kernel with:

sudo apt-get install linux-headers-$(uname -r) build-essential

Make a temporary directory and change to it:

mkdir ~/tpacpi && cd ~/tpacpi

Download the source file thinkpad_acpi.c from the Ubuntu Kernel git repository:

wget -Othinkpad_acpi.c "http://kernel.ubuntu.com/git?p=ubuntu/ubuntu-$(lsb_release -sc).git;\
a=blob_plain;f=drivers/platform/x86/thinkpad_acpi.c;hb=HEAD"

Patch it with (copy and paste the full line):

sed -i -e 's/"tpacpi::thinkvantage",/"tpacpi::thinkvantage",\n\t"tpacpi::unknown_led4",\n\t"tpacpi::micmute",/g' -e 's/0x1081U/0x5081U/g' -e 's/0x1fffU/0x5fffU/g' thinkpad_acpi.c

In the same folder where thinkpad_acpi.c has been downloaded, you will need a "Makefile". You can download it directly from this Pastebin, using:

wget -OMakefile http://pastebin.com/raw.php?i=ybpnxeUT

OR paste the below into a file called Makefile:

obj-m += thinkpad_acpi.o
all:
	make -C /lib/modules/$(shell uname -r)/build M=$(PWD) modules
clean:
	make -C /lib/modules/$(shell uname -r)/build M=$(PWD) clean

Now type make to create the module; you will see a thinkpad_acpi.ko file in the folder when done.
Test the patched module after loading it with:

sudo rmmod thinkpad_acpi && sudo insmod thinkpad_acpi.ko

Now confirm that pressing the mic button will turn the orange mic light on/off AND the power light blinking/steady.
If confirmed, do the following to replace your current thinkpad_acpi module:

TPDIR=/lib/modules/$(uname -r)/kernel/drivers/platform/x86
sudo mv $TPDIR/thinkpad_acpi.ko $TPDIR/thinkpad_acpi.ko.stock
sudo mv /where/you/built/it/tpacpi_micmute/thinkpad_acpi.ko $TPDIR/thinkpad_acpi.ko

Comment out or delete the power led lines in lenovo-micmute.sh

d. Testing

Apart from your choice of indicator, you can also confirm mute via the following:

Click on the volume icon on the top right, and sound settings at the bottom:
Switch to the "Input" tab.
Now have fun pressing the Mic Mute button, you should see it reflected in:

The Mute checkbox in the window
Notification bubbles (won't appear instantly if you press the Mic Mute more than once every few seconds!)
Your chosen indicator: the blinking power button light or the built-in Mic Mute light.


What does "Separate X Screen" mean on my nvidia settings?

An X Screen is basically a whole different "instance" of X. In other words, you can run Gnome on one X screen and KDE on another. What happens when you switch X screens (by pressing CTL ALT F[7-12])?

By the way, you may get more help on the forums for this complicated of an issue.


How to configure UEFI Bootable FreeDOS USB stick?

The FreeDOS wiki page wiki.freedos.org/wiki/index.php/UEFI tells us that it does not work:

UEFI is an acronym for Unified Extensible Firmware Interface.
Note that many new (2010 and later) computers boot using UEFI, which
is not compatible with BIOS. FreeDOS assumes a BIOS, and does not work
with UEFI.
Many motherboard manufacturers are replacing BIOS+MBR with UEFI+GPT.
UEFI uses a GPT table instead of the MBR. UEFI handles large-sectored
hard disks. Hard disk manufacturers are already (2010 and later)
coming out with hard disks with large sectors, which BIOS does not
handle (they are hard-coded to 512-byte sectors).

A workaround would be to install FreeDOS in a virtual machine and set this virtual machine to boot in BIOS mode alias CSM alias legacy mode. You can use VirtualBox for that purpose.
Edit:
I found this link, that might be helpful:
wiki.archlinux.org/index.php/Flashing_BIOS_from_Linux

Flashing BIOS from Linux
This article aims on providing information on flashing your system
BIOS under Linux. Most manufacturers provide a Windows executable or a
BIOS executable that can only be run under Windows. However, there are
a few utilities that allow you to upgrade your system BIOS under
Linux. Warning: Flashing motherboard BIOS is a dangerous activity that
can render your motherboard inoperable! While the author of this
article has successfully run this procedure many times, your mileage
may vary. Be careful! You may want to consider updating microcode
instead if it is supported by your system. Note:
...
For users with Dell computers, Dell recommends Linux users flash their BIOS following information located here (in short, put the .EXE
on a USB stick and use the F12 boot menu to access the firmware's
flash utility).


I've switched from upstart to systemd, and now I can install it without any problems.


how to recover when /etc has been deleted on ubuntu 12.04?

In leiu of restoring from backup, the easiest way is going to be to just back up /home and reinstall. Next time you can just job the entire VirtualBox file to back it up.


Though this is not the "clean" answer, I managed to launch it. This is how I did it:

I moved the ~/.netbeans/7.1.2/ folder somewhere else. For example mv .netbeans/7.1.2/ .netbeans/7.1.2x/.
I launched the NetBeans, the program asked me, if I want to import my old settings (I've had older versions of netbeans on my computer).

All my settings were as well on the older version, so I didn't lose my settings and the app is working!


My question is about read,write and execute permissions of a file in Linux:

This is working as intended. Ext4 and NTFS use completely different permission model - POSIX-style permissions are not supported there.

When you copy the file between different types of filesystems which don't comply with the same standards, the metadata that's not supported by the target FS is lost.

That would work the same way if you set NTFS permissions for a file and then copied it to, say ext4 partition.


What code is executed when headphones are disconnected?

In most systems if not all, ACPI can handle this event. To test that:

Run acpi_listen
Unplug & replug headphones, example output: (mic/ears share in same jack on my laptop)

jack/headphone HEADPHONE unplug
jack/microphone MICROPHONE unplug
jack/headphone HEADPHONE plug
jack/microphone MICROPHONE plug

Put your-script.sh in /etc/acpi/
Add an event trigger file for your script in /etc/acpi/events/

event=jack/headphone HEADPHONE unplug
action=/etc/acpi/your-script.sh

Check the other files there to learn from.
You may need to restart acpid service to reload changed rules in /etc/acpi/events/

sudo service acpid restart

Reference: man acpid


That strongly depends on what kind of file was extracted. You should not try to install software from tar.gz since there is no standard way to do that. It is better to try to find the same software in the software center and install it automatically from there.

Having said that, here is what most often works more or less, given that the extracted file is called "install.sh":

tar -xf somefile.tgz
chmod +x install.sh
./install.sh


Root partition: make primary partition larger

you can't resize/move the root partition when booted from the partition itself.
if you see a key icon on the Linux partition, boot from the Ubuntu LiveCD and resize the root partition.
also can you tell what partition is the root one? i can't see "Mount Point" on the screenshot.


Ubuntu 19.10 on Razer Blade - After wake up laptop automatically suspends

Editing the grub boot parameters as suggested here fixed this for me (on 20.04)

Open a terminal and run

sudo nano /etc/default/grub

update GRUB_CMDLINE_LINUX_DEFAULT = ""

GRUB_CMDLINE_LINUX_DEFAULT="button.lid_init_state=open"

update grub with the following command in the terminal

sudo update-grub

Restart


How do I replicate my current manual internet configurations in 12.04?

Try editing /etc/network/interfaces to add a section like.

auto eth0
iface eth0 inet static
        address 192.168.1.134
        gateway 192.168.1.1
        netmask 255.255.255.0
        dns-nameservers 192.168.1.1


How to install the Web Apps in Ubuntu 16.04

You should remove the lock file. After that try again what you wanted to do.

sudo rm /var/lib/dpkg/lock


Wrote udev rule to run script, but nothing happens

A couple of things to test:

Is your script running but just doing something wrong? People accidentally make all sorts environment assumptions so just make sure there's something bulletproof in the script at the start, eg:

echo running >> /home/z37/screenrun.log

If it turns out to be running, that's something you can fix. Use full paths. Never use substitutions like ~. The script is going to be run from a very raw context.
Is your UDEV rule correct? Watch the log as you plug it in:

sudo apt-get install expect-dev
sudo unbuffer udevadm monitor --environment

Check your vendor, product and serials.
Try a slightly looser search, ignoring KERNEL and SERIAL:

SUBSYSTEM=="usb", ATTRS{idVendor}=="2341", ATTRS{idProduct}=="0043", RUN+="/home/z37/screenrun.sh


How to identify the name of the package?

To get the package name of a Software that you see it in Ubuntu Software Center (in this case "Full GNOME Desktop Environment"), you can use the following command in terminal:

$ apt-cache search "Full GNOME Desktop Environment"
gnome - Full GNOME Desktop Environment, with extra components

So, the package name in this case is gnome.

To install it on a machine where you don't have an internet connection, you can use one method from this answer.


Ghosh... how did I take so long in discovering that I didn't have an entry for the swap partition in my /etc/fstab file?

The problem was, I had deleted my swap partition and then  re-created it some days later, but did not realize that /etc/fstab had the old entry and the newer one was never added to it.

Adding the entry and rebooting my laptop now gives me the option to hibernate.


Simulated secondary click doesn't work | Ubuntu 12.04

This works for me:
System settings... -> Universal Access -> Pointing and Clicking.
Turn on Simulated Secondary Click.

Then, when you hold down your left mouse button for some time and release it, right mouse button click will be triggered.

If you hold your mouse over text, a "progress bar" is drawn under your cursor.


You can use lxc-start-ephemeral. It creates an overlayfs (and by default backs it with a tmpfs so it's in memory and crazy fast). Once you shut down the container, the overlayfs goes away (unless you specified --keep-data, in which case the overlay is kept around).

A downside versus arkose (which I never used, though, so I don't know) is that you have to create the "base" container, so that will take a bit of time, the first time it's created. So the sequence goes:

lxc-create -n trusty-base -t ubuntu -- -r trusty  # This will take a bit of time
lxc-start-ephemeral -d -n trusty-working -o trusty-base # This will be nearly instant
lxc-destroy -n trusty-working # No trace of the container will be left
lxc-destroy -n trusty-base
lxc-create -n trusty-base -t ubuntu -- -r trusty # This will be faster than the first time due to local caching of required files


what it is equivalent to rpm -qf /path/file ?

I believe that you are looking for dpkg -S <package name>.

Example:

~$ dpkg -S /boot/vmlinuz-4.13.0-38-generic
linux-image-4.13.0-38-generic: /boot/vmlinuz-4.13.0-38-generic

Hope this helps!


How to change the metric of an OpenVPN client default route

It looks like Option 2; preventing the default route from being created, can be achieved using the route-nopull option.

--route-nopull

When used with --client or --pull, accept options pushed by server EXCEPT for routes, block-outside-dns and dhcp options like DNS servers.

When used on the client, this option effectively bars the server from adding routes to the client's routing table, however note that this option still allows the server to set the TCP/IP properties of the client's TUN/TAP interface.


Beyond disabling baloo, the solution to fixing baloo on my machine was to increase the inotify folder watch limit, as described on the Arch wiki.

sudo nano /etc/sysctl.d/40-max-user-watches.conf

Add the line:

fs.inotify.max_user_watches=524288

Save, then re-enable baloo (assuming it had already been disabled):

sudo balooctl enable; sudo balooctl start

I came across this solution by looking through journalctl --since "1 day ago" and repeatedly finding the line KDE Baloo File Indexer has reached the inotify folder watch limit. File changes will be ignored. A web search of that pointed the way to the solution. Baloo now runs quietly in the background.

Hope that helps anyone else who experiences the same issue.


Can I make my wallpaper a fully functioning terminal on Ubuntu 20.04?

I am not sure whether this solution will suit you, but you could install a drop-down terminal. I personally use Guake (sudo apt-get install guake). If you configure the Guake terminal to take up the whole screen, you have something close to* what you want. If you add the toggle command guake-toggle to the startup applications (put it after starting up Guake itself), following the instructions in Crighton's answer, the terminal should not only start up in the background but also appear on startup.
*I know it's not 100% what you asked, but I thought I'd give my 2 cents on it anyway.


World of Warcraft Stopped Downloading Ubuntu 13.10

I got the same issue. Just remove your current wine version and install the last one 1.7. This should do the trick.


Very slow boot on Ubuntu 18.04 (no changes made prior to this)

Had this exact issue on kernel 4.15.0-24 ... It started immediatelly after the update and reboot, so I guess there is something wrong with the kernel. Reverting to the previous kernel (4.15.0-23) fixed it for me.


How can I keep ssh (or another command) alive on the terminal app of my Ubuntu phone?

This post is focusing on the server-side - ignoring the client

Option 1 - screen

I would recommend running those commands via screen.

Some details about the terminal multiplexer screen can be found here.

In short:

install screen on server
ssh to server
start screen and run your command inside the screen session
... imagine disconnect from mobile to server for whatever reason
reconnect from mobile to server
re-attach to this screen session and enjoy the ongoing process

Option 2 - tmux

tmux is another terminal multiplexer, you can check some details via its man-page.

Option 3 - byobu

byobu is a wrapper that provides various improvements over screen. It uses screen or tmux as a backend. More info on the web page.


I'm not sure if this will work for you, but it worked for me when I had the same issue.

First, go to your BIOS settings, and go to System Configuration. From there, select Boot Options.

Under Boot Options, you should have a list called UEFI boot order or boot sequence or something similar. The first option in that list will probably be OS Boot Manager. Highlight that option using your arrow keys, and press Enter.

If I'm right, a dialog box like thing will pop up, and it'll display two options. Windows Boot Manager as the first option, and Ubuntu as the second. Press F5 to move Windows Boot Manager to the bottom, below Ubuntu, and then press F10, and then F10 again to save and exit.

After all these steps, your system will reboot, and hopefully, the GRUB menu should appear again. :)


This should be on [AskUbuntu.SE] or [SU] likely.

Anyways, to see what gets linked, do a ldd on your program

ldd a.out

To see where the libraries belonging to a package ended up:

dpkg --listfiles libboost-filesystem1.48.0

To find out which package owns the file you see:

dpkg --search /usr/lib/x86_64-linux-gnu/libboost_filesystem.so.1.48.0


I remember something like that

sudo apt-get purge cinnamon


Does adding a folder to your classpath add sub-folders?

The answer depends on the content of the folder.

class files in folder

The hierarchy below the folder is a one-to-one mapping to the package structure of your classes.

E.g. the file ./org/example/MyClass.class will be used for the class org.example.MyClass.

jar files in folder

These files will be ignored, because a jar file has to be explicitly added to the classpath.

E.g. CLASSPATH=${CLASSPATH}:${SERVICE_HOME}/mylib.jar

some notes

A classpath should normally only appended. With the addition of an element on the beginning you may incidentally overwrite another class.
In bash you may also use this shorter construct for appending:  CLASSPATH+="$SERVICE_HOME/../config"


Kubuntu 14.04: Font rendering on KDE Issues (Rendering Ubuntu fonts as Debian default)

I fixed it by installing Ubuntu instead of Kubuntu


Ubuntu is gone after reinstalling Windows 7

You can use the Ubuntu install media to boot and use fdisk to check the partition (ID is 83).
Then mount it to /mnt and try installing grub to MBR. grub-install --root-directory=/mnt /dev/sda.

When it finished without error, reboot the system and you can see grub during start and can enter Ubuntu, but not Win7. After you enter Ubuntu, you can run sudo update-grub2 to update such as:

grub.cfg ...
Found Debian background: moreblue-orbit-grub.png
Found linux image: /boot/vmlinuz-2.6.31-15-generic
Found initrd image: /boot/initrd.img-2.6.31-15-generic
Found memtest86+ image: /boot/memtest86+.bin
Found Windows 7 (loader) on /dev/sda1
done


The systemd-notify tool is specifically meant to be used by a shell that runs as a systemd service using Type=notify.

If you set up a service using Type=notify, systemd will automatically set up a communication socket back to systemd and will export its path to the service under $NOTIFY_SOCKET.

It will also listen for special messages in that socket, such as whether the service is ready (in which case systemd will transition it to status started, since initialization is completed) and also the self-reported status of the service, which will also be reported in the output of systemctl status mytest.service (assuming a service called mytest.)

You can read the man page of systemd-notify for all the details, even though there's a lot of complexity there... Perhaps the example at the end is useful in illustrating how it works.

Let's use that example for a hands-on experiment!

Create a script like the one below somewhere in your system, such as /usr/local/bin/mytest.sh:

#!/bin/bash

mkfifo /tmp/waldo
sleep 10
systemd-notify --ready --status="Waiting for data…"

while : ; do
        read a < /tmp/waldo
        systemd-notify --status="Processing $a"

        # Do something with $a …
        sleep 10

        systemd-notify --status="Waiting for data…"
done

I added some sleep 10s so you can see what's happen, when watching the systemctl status mytest.service output.

Make the script executable:

$ sudo chmod +x /usr/local/bin/mytest.sh

Then create /etc/systemd/system/mytest.service, with contents:

[Unit]
Description=My Test

[Service]
Type=notify
ExecStart=/usr/local/bin/mytest.sh

[Install]
WantedBy=multi-user.target

Then reload systemd (so it learns about the unit) and start it:

$ sudo systemctl daemon-reload
$ sudo systemctl start mytest.service

Then watch status output, every so often:

$ systemctl status mytest.service

You'll see it's starting for the first 10 seconds, after which it will be started and its status will be "Waiting for data…".

Now write some data into the FIFO (you'll need to use tee to run it as root):

$ echo somedata | sudo tee /tmp/waldo

And watch the status:

$ systemctl status mytest.service

It will show the status of the service as "Processing somedata" for 10 seconds, then back to "Waiting for data…".

If you were to write this code in C or another language that supports systemd bindings, you would use the sd_notify() function for this purpose. If you're familiar with C, you might want to take a look at the sd_notify(3) man page.


Trouble when Installing Ubuntu 16.1 from USB

I've had this issue before, and without determining the cause, was able to fix it with using Win32 Disk Imager which can be downloaded from here https://sourceforge.net/projects/win32diskimager/

I think of this piece of software almost as if dd were ported to windows and a simple GUI was laid on top. Someone who has more experience in bootable media may be able to tell you why this piece of software is more likely to work than other bootable USB drive software is.


I have been using the Dell XPS 15 9560 in a dual boot configuration for a few weeks now. I am running Windows 10 and Ubuntu 16.04. It all works fine, except the finger print reader under Ubuntu, which I didn't manage to have detected.

I mainly use it for programming, and for machine learning I use Tensorflow and the laptop GPU. I haven't yet run battery intensive applications (e.g. games) while under battery, but I can say that, under Ubuntu, switching from NVIDIA to the integrated graphics (under NVIDIA X Server Settings) and lowering the display brightness, I would get an estimated battery life of 6-8 hours. With NVIDIA GPU and display brightness maxed out, 2-3 hours.

Installing Ubuntu Desktop from USB was quite easy, just had to disable the RAID support under BIOS (the provided SSD is anyway not a RAID). I had tried installing Ubuntu Server, that usually detects and handles RAID at installation time, but with this laptop it didn't.

Under Ubuntu I am running the latest NVIDIA drivers automatically installed by Ubuntu updates, 375-51; under Windows, the latest NVIDIA drivers available.


How do I partition my Windows hard drive?

If you want to install Ubuntu on a Windows computer, you will need to create an individual partition for Ubuntu. When you load your live CD, there will be choices that you can chose when it comes to partitioning your Hard drive, you will need to shrink you windows partition in order to created un-allocated space. Its very easy to do, the GUI in the installer package essentially walks you through every step. Good luck!


How do I keep track of failed SSH log-in attempts?

All login attempts are logged to /var/log/auth.log.

1. Filter for brute-force interactive SSH logins

Open a terminal, and type the below; if it's longer than 1 page you will be able to scroll up and down; type q to exit:

grep sshd.\*Failed /var/log/auth.log | less

Here's a real example from one of my VPSs:

Aug 18 11:00:57 izxvps sshd[5657]: Failed password for root from 95.58.255.62 port 38980 ssh2
Aug 18 23:08:26 izxvps sshd[5768]: Failed password for root from 91.205.189.15 port 38156 ssh2
Aug 18 23:08:30 izxvps sshd[5770]: Failed password for nobody from 91.205.189.15 port 38556 ssh2
Aug 18 23:08:34 izxvps sshd[5772]: Failed password for invalid user asterisk from 91.205.189.15 port 38864 ssh2
Aug 18 23:08:38 izxvps sshd[5774]: Failed password for invalid user sjobeck from 91.205.189.15 port 39157 ssh2
Aug 18 23:08:42 izxvps sshd[5776]: Failed password for root from 91.205.189.15 port 39467 ssh2

2. Look for failed connections (i.e. no login attempted, could be a port scanner, etc.):

Use this command:

grep sshd.*Did /var/log/auth.log | less

Example:

Aug  5 22:19:10 izxvps sshd[7748]: Did not receive identification string from 70.91.222.121
Aug 10 19:39:49 izxvps sshd[1919]: Did not receive identification string from 50.57.168.154
Aug 13 23:08:04 izxvps sshd[3562]: Did not receive identification string from 87.216.241.19
Aug 17 15:49:07 izxvps sshd[5350]: Did not receive identification string from 211.22.67.238
Aug 19 06:28:43 izxvps sshd[5838]: Did not receive identification string from 59.151.37.10

How to reduce failed/brute-force login attempts

Try switching your SSH to a non-standard port from the default 22
Or install an auto-ban script such as fail2ban.


SD Card reader stopped working: cannot even mount it

Try this, your machine is now on, then:

Pop slowly out and then slowly in sd-card.
Type this into terminal

sudo apt-get install --reinstall udev*

Then when finish then repeat with 1. and then after this reboot your machine or shut completely down and boot up again without being online.

(the latter two lines are meant as in case sd-card would still not be recognized somehow you should not be sudo in the moment you are online).


As mentioned in my comment, I have just been looking for this myself (at your prompting) and the best I've come up with at this stage is a 20x2 LCD display (likely HD44780 or compatible unit) which would have some micro-controller behind it. On that page I saw that someone had already mentioned LCD Smartie (a site I frequented year ago)which could be used to control it. But it's MS Windows only, and so it got me to searching.
There doesn't seem to be too much out there aimed in our market, but this would be a relatively easy project to undertake.
Adafruit has a project on a Raspberry Pi based LCD Display version (The Raspberry Pi runs Raspian which is another Debian derivative as is Ubuntu). They have details for getting a python script up and running for it.
I also found the man page for LCD Daemon on ubuntu.com which purports LCDproc was up and running in Natty and should be apt-get install-able in current versions. edit: it is Ubuntu lcdproc package
tldr;
I personally think the first one I linked above is a little pricey and it would be a fun project to do yourself, and I'm actually now thinking of doing this myself. the 16x2, 20x2 LCDs are cheap and readily available everywhere, although I'd probably go a nicer OLED screen (or screens, possibly go two!) like the 1.3" OLEDs from adafruit.
Hopefully one of the links above will whet your appetite and inspire you to create your own.


installing ubuntu 18.04 on Microsoft surface pro 5

If you want to keep (some) of your Windows Data:

BitLocker encrypts your data on the Windows partition. I recommend you to enable secure boot, so that BitLocker makes the file readable for windows. Then you can disable BitLocker.

Then you can anagin disable Secureboot. Then you wont get a message from BitLocker.

Boot from USB

Windows 10 gives you an option to boot into an USB-device. Please leave a comment if you get somewhere a problem.

In short: Settings > Update & security > Recovery > Advanced startup > Restart Now


I actually did just have this exact same thing.  Yes, @RobertRiedl comment about where the gallium_drv_video.so is correct.  However, it is not listed as that as it is only a link to another file.

To fix it I did the following:

cd /usr/lib/x86_64-linux-gnu/dri/
sudo rm gallium_drv_video.so
sudo apt install mesa_va_drivers
sudo ln -s radeonsi_drv_video.so gallium_drv_video.so

After running the above, then checking the vainfo worked fine:

To correct the can't connect to the X server run:

export DISPLAY=:0
xhost +

Running vainfo to make sure it is working:

:~$ vainfo
libva info: VA-API version 0.39.2
libva info: va_getDriverName() returns 0
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/r600_drv_video.so
libva info: Found init function __vaDriverInit_0_39
libva info: va_openDriver() returns 0
vainfo: VA-API version: 0.39 (libva 1.7.1)
vainfo: Driver version: Mesa Gallium driver 18.1.0-devel for AMD RS880 (DRM 2.50.0 / 4.13.0-36-generic, LLVM 6.0.0)
vainfo: Supported profile and entrypoints
      VAProfileMPEG2Simple            : VAEntrypointVLD
      VAProfileMPEG2Main              : VAEntrypointVLD
      VAProfileVC1Simple              : VAEntrypointVLD
      VAProfileVC1Main                : VAEntrypointVLD
      VAProfileVC1Advanced            : VAEntrypointVLD
      VAProfileH264ConstrainedBaseline: VAEntrypointVLD
      VAProfileH264Main               : VAEntrypointVLD
      VAProfileH264High               : VAEntrypointVLD
      VAProfileNone                   : VAEntrypointVideoProc

Hope this helps!


I usually set my displays to mirror mode. Start displays from Unity, it should show you both displays, and click on the "mirror displays":


Let's update the driver and see if we can get it working. Download the driver from here make sure to download the driver for your system, i386 for a 32bit system or amd64 for 64bit system.  Download it to your download folder then run:

sudo dpkg -i ~/Downloads/bcmwl-kernel-source_6.20.155.1+bdcom-0ubuntu6_amd64.deb
sudo modprobe -rv wl
sudo modprobe wl

Edit:

gksudo gedit /etc/pm/power.d/wireless

(this will create or edit a configuration file that will override the default power management behavior) and enter the following:

#!/bin/sh
/sbin/iwconfig wlan0 power off

above exit0, then save gedit, close and reboot.


Why does't the export command work on PS1

When you initialize a (bash) (sub)shell several files are sourced.
For me (and I think that is default in Ubuntu) PS1 will be overwritten by /etc/bash.bashrc and ~/.bashrc.
Also, /etc/profile sets $PS1, but only when it is empty.

Best would be to add this at the end of your .bashrc:
PS1="KeepPrompt: "


Can't extend root partition even after booting from LiveUSB

First of all you need to understand that sda5, sda6, sda7 and sda8 are inside sda3.

After that it looks simpler.

Boot from LiveCD. Do not mount any partitions by clicking them.
Run sudo swapoff -a
Expand sda3 left.
Move sda5, sda6, sda7 left.
Expand sda8 left.

Do not forget to press "Apply" button.

After you do it you also need to update grub this way.

sudo mount /dev/sda8 /mnt
sudo chroot /mnt
sudo update-grub
exit


It just sounds like you need to install grub to the 4TB disk, or set in your BIOS to boot the 2TB disk first since the bootloader is installed there. Your 2TB disk is probably not sda anymore since you replaced it, and not the first disk that is being checked for a bootloader.

To Install grub:

Boot from an ubuntu live usb
Mount your drives under the /mnt directory
Chroot into that directory with chroot /mnt
Then run grub install /dev/sda to install grub.


"Disk drive is not ready yet or not present" after renaming partition

Make backup:

sudo cp /etc/fstab /etc/fstab_backup

Then remove just that line of /media/natkoui/New\040Volume

sudo gedit /etc/fstab


What is the "Dirty COW" bug, and how can I secure my system against it?

The Ancient Dirty COW Bug
This bug has been around since Kernel version 2.6.22. It allows a local user with read access to gain administrative privileges. A warning has been issued (Softpedia: Linux Kernels 4.8.3, 4.7.9 & 4.4.26 LTS Out to Patch "Dirty COW" Security Flaw) and users are urged to upgrade to Kernel Linux kernel 4.8.3, Linux kernel 4.7.9, and Linux kernel 4.4.26 LTS. THIS LINK IS MISLEADING because these Kernel versions are not supported by Ubuntu.
This answer is tailored for Ubuntu users and tells you:

Recommended Kernel Versions for Ubuntu users
How to display your current Kernel Version
How to apply fix for Ubuntu Supported Kernels
How to apply fix for Non-Supported Ubuntu Kernels

Ubuntu users "Dirty COW" recommended Kernels
Ubuntu released security updates on October 20, 2016 to patch the Kernel used by all supported Ubuntu versions: Softpedia: Canonical Patches Ancient "Dirty COW" Kernel Bug in All Supported Ubuntu OSes
Canonical is urging all users to patch their systems immediately by installing:

linux-image-4.8.0-26 (4.8.0-26.28) for Ubuntu 16.10
linux-image-4.4.0-45 (4.4.0-45.66) for Ubuntu 16.04 LTS
linux-image-3.13.0-100 (3.13.0-100.147) for Ubuntu 14.04 LTS
linux-image-3.2.0-113 (3.2.0-113.155) for Ubuntu 12.04 LTS
linux-image-4.4.0-1029-raspi2 (4.4.0-1029.36)

The Xenial HWE kernel for Ubuntu 14.04 LTS was updated as well, to version linux-image-4.4.0-45 (4.4.0-45.66~14.04.1), and the Trusty HWE kernel for Ubuntu 12.04 LTS to version linux-image-3.13.0-100 (3.13.0-100.147~precise1).
Please update your Ubuntu installations immediately by following the instructions provided by Canonical at: https://wiki.ubuntu.com/Security/Upgrades .
Display your current Kernel Version
To display your current running Kernel version open the terminal with Ctrl+Alt+T and then type:
uname -a

The kernel version you booted with is then displayed like this:
Linux dell 4.8.1-040801-generic #201610071031 SMP Fri Oct 7 14:34:10 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux

Remember after you install the new kernel with the patches, you can still boot older kernel versions from Grub. Older versions will not have the patch applied, which is the case of this kernel version 4.8.1.
Once again remember kernel version 4.8.1 is not supported by Ubuntu.
How to fix for Ubuntu supported Kernels
Since Ubuntu has released the fix of the bug, All users need to do is upgrade their system. If daily security updates are enabled the kernel upgrade has already been done. Check your kernel version to the list of kernels above.
If Ubuntu has not automatically upgraded your kernel version then run:
sudo apt-get update
sudo apt-get dist-upgrade
sudo reboot

After rebooting check your current kernel version by repeating the previous section instructions.
How to fix for Non-supported Ubuntu Kernels
Some installations with newer hardware may be using an unsupported Kernel such as 4.8.1 or greater. If so you will need to manually upgrade the Kernel. Although the bug report link above says to use Kernel 4.8.3, As of October 30, 2016, 4.8.5 is the most recent and this is how to install it:
cd /tmp
wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.8.5/linux-headers-4.8.5-040805_4.8.5-040805.201610280434_all.deb
wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.8.5/linux-headers-4.8.5-040805-generic_4.8.5-040805.201610280434_amd64.deb
wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.8.5/linux-image-4.8.5-040805-generic_4.8.5-040805.201610280434_amd64.deb
sudo dpkg -i *.deb
sudo reboot

After rebooting check your current kernel version by repeating the instructions two sections back.


How to "delete" in a laptop without "Del" key?

Pos1 (Home) and End keys are accessible through Fn + ←/→ keys.

For example, see this product picture from Amazon.


As per @devav2:

  Use dash. To open dash press 'Super key/Windows key'. For Documents - Libreoffice, Evince. For Music - Rhythmbox . For video- Totem . Surf the net - Chrome/Firefox. For Email- Thunderbird/Evolution . These apps come by default on Ubuntu. Other than this there good apps which can be found on Ubuntu Software Center

Libreoffice is like Microsoft Office and supports most of its formats.

To listen to music, you can use Rhythmbox. Video can be played with Totem.

TO surf the web, you can use Firefox, or Chromium if you install it in the Ubuntu Software Center.

To read email on your computer, use Thunderbird or Evince. You can open any of these by clicking the top left button in the launcher(dock-like thing at the left with all the buttons) and typing the name of a program. You can install many more useful things with the Ubuntu Software Center. Many applications there are free, and can be installed as easily as clicking the Install button and giving your password.


My Linux book has many references to xinetd but I can't find it?

It's just not installed by default. Install it by running:

sudo apt-get install xinetd


Try with going to BIOS

Advance -> Advance \ Systems Agent (SA) Configuration -> Configuration graphics > Multi-GPU Monitor

And changing this option


Not really an answer, but try navigate to http://localhost:631/ on a web browser, as this is the cups utility for your printing system. You can define new settings/add printer on this page.

To add printer, go to http://localhost:631/admin, click Add Printer button on Printers section.

However, if the page fail to load or return with error, it could be the cups service is not running. In that case, run:

sudo /etc/init.d/cups start


Apparently these errors can be ignored. I had the same issue but was able to get it to work again by re-installing (in my case from snap):

snap remove spotify
snap install spotify

Afterwards I still see these messages when starting spotify from the command line (terminal). But the client starts nevertheless.


1. How do make 2 finger scrolling work + 2 fingers zoom in & zoom out work

there is an application called Touchegg but it is having issues with 12.04 and need to be fixed. So at this time, it won't do the job you want.

Touchegg is designed to bring multi-touch (touchpad) functionality to Linux based operating systems. In layman’s term, it is an open source multi-touch gesture recognizer for GNU/Linux which is backed by C++, Qt and uTouch-geis library. With TouchEgg, you can define what type of actions are to be initiated for a specific multi-touch gesture.

for more info have a look at my answer. I have guided through whole process.

2. How to Fn + f3 To lock touchpad?

Use application named AutoKey.

You can bind any key to any script or abbreviation.

  AutoKey is a desktop automation utility for Linux and X11. It allows
  you to manage collection of scripts and phrases, and assign
  abbreviations and hotkeys to these. This allows you to execute a
  script or insert text on demand in whatever program you are using.

Latest version is v0.90.

Where to get this? it is in the ubuntu's repository!

Open software center > search for autokey > install AutoKey(GTK)

How to use this?

Open AutoKey.

Step 1 : Press Ctrl+Shift+N or from File > Create.. > New Script. Rename with whatever you like.

paste below code as shown,

import os
os.system("synclient TouchpadOff=$(if [ $(expr `synclient -l | grep TouchpadOff | cut -f2 -d =`) -eq 0 ]; then echo 1; else echo 0; fi)")

Then in bottom-right corner there is three Set buttons to set for Abbreviation or Hotkey or Window Filter. Click second Set button (because we want to set hotkey).

Click Press to Set and hit a key you want to assign(in your case fn+f3. I'm hitting fn+f1).

Click OK.

Click Save in bottom-right corner.

Now you will see your hotkey in left panel in HotKey column (in my case there is weird key like I because I have assigned fn+f1).

you have set hotkey for touchpad to enable/disable ( I have coded to make it toggle rather than just use to lock it. Perhaps you'd like it :-)  ).

3.1 For Ubuntu Software Center

==> Go to Step 1 described above.

just use this code when you paste.

import os
os.system("/usr/bin/software-center %u")

and set hotkey for 1 you have shown in screenshot.

thats it you have bound 1 for Software Center.

3.2 For System Settings

==> Go to Step 1 described above.

just use this code when you paste.

import os
os.system("gnome-control-center")

and set hotkey for 2 you have shown in screenshot.

thats it you have bound 2 for System Settings.

3.3 For Screen Off

==> Go to Step 1 described above.

just use this code when you paste.

import os
os.system("xset dpms force off")

and set hotkey for 3 you have shown in screenshot.

thats it you have bound 3 for Monitor off.


The problem is that when you use wifite it disables network manager and puts your wifi device down.
Try running sudo service network-manager restart
And -depending on the name of your wireless card- run sudo ifconfig wlan0 up
Now you have to run sudo lshw -C network in order to see what your wifi card's name is. It will look like
*-network
description: Wireless interface
       product: RTL8723AE PCIe Wireless Network Adapter
       vendor: Realtek Semiconductor Co., Ltd.
       physical id: 0
       bus info: pci@0000:08:00.0
       logical name: wlan0
       version: 00
       serial: 24:ec:99:21:c9:29
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi pciexpress bus_master cap_list ethernet physical wireless
       configuration: broadcast=yes driver=rtl8723ae driverversion=3.8.0-27-generic firmware=N/A ip=192.168.1.74 latency=0 link=yes multicast=yes wireless=IEEE 802.11bgn
       resources: irq:17 ioport:3000(size=256) memory:c3000000-c3003fff

What you want to look at is logical name and when you run sudo ifconfig wlan0 up replace wlan0 with whatever the logical name of your wireless card is


The above answer wasn't quite correct. The file to edit is /usr/share/lightdm/lightdm.conf.d/60-ubuntustudio.conf.

I added the following to the file as Mook765 sugested:

[Seat:*]
autologin-guest=false
autologin-user=yourusername
autologin-user-timeout=0

I had to use sudo nautilus to gain root privileges.
Now working as I'd like.


Yes you can install and use kernel 4.4 in Ubuntu 14.04. I am using that kernel on my Ubuntu 14.04.

The problem is that DKMS modules, like Nvidia or VirtualBox will not build for kernel 4.4 without gcc-4.9.

But that is a bit tricky. You will need to install about 20 packages from Ubuntu 15.10 or 16.04.

There are some answers at AU about how to install gcc-4.9.
If you do that, the system should run well.

Much easier is to install Ubuntu 15.10. In that case kernels 4.4 can be installed without this kind of problems.

Another option is to wait for about a month and install Ubuntu 16.04.


Or above all, is there an even faster way to transfer (such huge) files over a network?

You can speed up scp with

scp -p -C -o 'CompressionLevel 9' -o 'IPQoS throughput'  -c arcfour machine:file .

I saw up to 5 times better speed using scp but of course external factors play a big role here.


You should have an entry smt like this in your routing table.
Destination     Gateway         Genmask         Flags   MSS Window  irtt Iface
0.0.0.0      [your gateway]    255.255.255.0     U       0    0       0 iface

this is a sample netplan conf
network:
version: 2
renderer: networkd
ethernets:
    enp3s0:
        addresses:
            - 10.10.10.2/24
        gateway4: 10.10.10.1
        nameservers:
            search: [mydomain, otherdomain]
            addresses: [10.10.10.1, 1.1.1.1]

try adding gateway to your netplan conf and netplan apply.


Wifi not working after update on 14.04.4 LTS

The actual reason is during the upgrade it removes some packages in ubuntu. One of the package might be the WiFi driver of the system. So, what I did in this situation is I visited the Ubuntu community documentation page which details all about WiFi drivers.

Follow the documentation guide if this did not work

This instruction is for Broadcom only

To identify the wifi driver type the following command

If it's an Internal card

lspci -vvnn | grep -A 9 Networ
If it's an USB card

usb-devices

Now you have to download the driver from the documentation page and extract  the folder inside the package to the desktop. Then open the folder. In the folder right click on the window showing the WiFi driver content and click "Open in terminal". Then you have to type the following command below in order.

sudo apt-get update
sudo apt-get --reinstall install bcmwl-kernel-source

Now you're done. Check if the WiFi works.


first find the syndaemon executable

which syndaemon

then find which package owns it

dpkg -S /usr/bin/syndaemon

then list the contents of the package that owns it

dpkg -L xserver-xorg-input-synaptics

have a look at the .conf files listed and you will see
the settings you can change.

If you can't find the options you want in there try reading the manual
pages listed , these are anything in /usr/share/man and you can view them as follows

man 4 synaptics

This was tested on ubuntu 16.04 and shouldn't be different for other versions


PowerPoint fullscreen crashes with PlayonLinux

This may be a bug of your currently used wine version. So try a different version of wine. Playonlinux has an option that will allow install many version of wine. So install the latest version and associate it with powerpoint.


Upgrading from 14.04 to 15.10 fails - can not calculate the upgrade

Even if there is way to do a manual upgrade, if you don't know what exactly are you tweaking, you will end up with a broken system, which happens quite often.

I would recommend you to use your 14.04 for a bit longer, I myself use 14.04 and I only use LTS versions, packages are more stable and more relevant tutorials that way.

14.04 has 5 years of support, 16.04 will come out this year. So, wait a bit, and upgrade from 14.04 LTS to 16.04 LTS which is possible.


How to get Google Drive (Docs) search to work in Unity Dash?

Looking at my own installation, you can open the Dash, then click the 'files' lens and type in the name of your document that's on Google Drive. This works for me


The clipboard is provided by the X server. It doesn't matter whether the server is headless or not, what matters is that your local graphical session is available to programs running on the remote machine. Thanks to X's network-transparent design, this is possible.

I assume that you're connecting to the remote server with SSH from a machine running Linux. Make sure that X11 forwarding is enabled both in the client configuration and in the server configuration. In the client configuration, you need to have the line ForwardX11 yes in ~/.ssh/config to have it on by default, or pass the option -X to the ssh command just for that session. In the server configuration, you need to have the line X11Forwarding yes in /etc/ssh/sshd_config (it is present by default on Ubuntu).

To check whether X11 forwarding is enabled, look at the value of the DISPLAY environment variable: echo $DISPLAY. You should see a value like localhost:10 (applications running on the remote machine are told to connect to a display running on the same machine, but that display connection is in fact forwarded by SSH to your client-side display). Note that if DISPLAY isn't set, it's no use setting it manually: the environment variable is always set correctly if the forwarding is in place. If you need to diagnose SSH connection issues, pass the option -vvv to ssh to get a detailed trace of what's happening.

If you're connecting through some other means, you may or may not be able to achieve X11 forwarding. If your client is running Windows, PuTTY supports X11 forwarding; you'll have to run an X server on the Windows machine such as Xming.


how to configure BIOS settings while installing ps2 emulator

AFAIK, you need to find a valid BIOS image of a PS2 on the Internet. It has nothing to do with your computer's BIOS image, however, it looks like there is a file here for download that should work. Just follow its instructions to extract it and you should be ready to go.


dpkg: error processing package postgresql-9.3 (--configure) /etc/os-release: OS: not found

I also had this problem. It seems like the OS was not recognised

Check the content of /etc/os-release

sudo nano /etc/os-release

A simple hack for me was to edit it to

NAME="Ubuntu"
VERSION="16.04 (Xenial Xerus)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 16.04"
VERSION_ID="16.04"
HOME_URL="http://www.ubuntu.com/"
SUPPORT_URL="http://help.ubuntu.com/"
BUG_REPORT_URL="http://bugs.launchpad.net/ubuntu/"
UBUNTU_CODENAME=xenial

Apparently since Zorin is based on Ubuntu, I didn't get any errors.


This is a very good guide page for me and if you follow it you will get Matlab installed. They are discussing the Java problem there too.

My understanding is that the Matlab version you are using is old and that you have installed java but not the java development kit (jdk). Probably you will need to either install a newer Matlab version or install an older java (java 6),

To see the version of java installed use the command:

java -version

or

file /etc/alternatives/java /etc/alternatives/javac

Here and here you can find how to install java.

To get a more verbose output from Matlab add -v to the installation command.

sudo /<matlab_directory>/install -v

Hope this helps you.


Can Synaptic install application from a .tar.gz file downloaded from outside the repositories?

If you are looking to control your source-code-installation through Synaptic Manager or Ubuntu Software Center (to ease the process of uninstall), you can try

./configure
make
sudo checkinstall

which creates a .deb package. This is can be installed using Ubuntu Software Center.


How to raise two windows in one Alt + Tab?

As Terrance said, the idea of Alt+Tab is to switch between applications.

Theoretically, you could create some solution and add a key binding. The catch is, how does the app know how to address the individual window sets? So, I suggest using WORKSPACES! They are available in most window managers and desktop environments. If you place 2 windows on one workspace and 2 on another workspace, switching between workspaces does the trick!


Recursively find every first file at each branch of a directory tree

Another solution - should work with spaces in the paths

find . -type d -exec sh -c 'find "{}" -maxdepth 1 -type f | sort | head -n 1' ";"

On a side note, I discovered that ls lacks the options to output the full paths, and to list just files (not dirs) :(


Identification of HDD by SATA port number

lsscsi --verbose will provide output similar to this:

[0:0:0:0]    disk    ATA      TOSHIBA THNSNH12 HTRA  /dev/sda
  dir: /sys/bus/scsi/devices/0:0:0:0  [/sys/devices/pci0000:00/0000:00:1f.2/ata1/host0/target0:0:0/0:0:0:0]
[1:0:0:0]    disk    ATA      WDC WD2003FZEX-0 01.0  /dev/sdb
  dir: /sys/bus/scsi/devices/1:0:0:0  [/sys/devices/pci0000:00/0000:00:1f.2/ata2/host1/target1:0:0/1:0:0:0]
[2:0:0:0]    disk    ATA      WDC WD3001FAEX-0 01.0  /dev/sdc
  dir: /sys/bus/scsi/devices/2:0:0:0  [/sys/devices/pci0000:00/0000:00:1f.2/ata3/host2/target2:0:0/2:0:0:0]
[3:0:0:0]    cd/dvd  Optiarc  DVD RW AD-7280S  1.01  /dev/sr0
  dir: /sys/bus/scsi/devices/3:0:0:0  [/sys/devices/pci0000:00/0000:00:1f.2/ata4/host3/target3:0:0/3:0:0:0]

which provides the ataN port which can matchup with information found in the syslog. Useful if you are trying to determine where an error is coming from .

Edit: If which lsscsi provides no output you need to install it:

sudo apt-get install lsscsi

Further Edit:

This probably goes without saying, but of course you can filter the output with grep to locate what you are interested in for instance if you find an error like ata4: status: { DRDY ERR } you could simple issue the command

  lsscsi --verbose | grep -P1 -A1 ata4
  Which would produce output like this:

[3:0:0:0]    cd/dvd  Optiarc  DVD RW AD-7280S  1.01  /dev/sr0
  dir: /sys/bus/scsi/devices/3:0:0:0  [/sys/devices/pci0000:00/0000:00:1f.2/ata4/host3/target3:0:0/3:0:0:0]

Which would indicate that the device (Optiarc  DVD RW AD-7280S on ata4) wasn't ready when called upon.

This should be enough information to allow you to locate the troubled device.


Create the home directory while creating a user

Find and open Users and Groups. Delete that user, and create a new one

There is more on using it here.

For command line, these should work:

useradd -m USERNAME

You have to use -m, otherwise no home directory will be created. If you want to specify the path of the home directory, use -d and specify the path:

useradd -m -d /PATH/TO/FOLDER USERNAME

You can then set the password with:

passwd USERNAME

All of the above need to be run as root, or with the sudo command beforehand. For more info, run man adduser.

Hope this helps


Installing packages that require system restart, from a Juju charm

The correct way to start an Upstart service is  start service-name  like:

start svscan

The Juju charm can execute this command in the install hook (or any other appropriate hook).


How do I setup another monitor with Ubuntu VM (virtualbox)?

It is very easy.
Shutdown Virtual machine. Next go to virtual machine settings->Display.
You should simply make Video RAM in virtual more than 64MB and make display count 2.

After this changes you should start VM and open Widows 7 change display resolution(Tool than configure display and its resolutions).

Here is video  with WinXP but it would be very similar in Win7

UPD

Sorry.
Here almost the same situation like by you:
Host Ubuntu, Guest Ubuntu, VM Virtualbox.

Sorry that it all in Russian(in English this settings have same places) but you can see that i have Guest Ubuntu with mirrored screens and Display settings. If i try to resize one of the screens other screen will be automatic resized.


If you are following that guide it tells you to open gedit. gedit needs a GUI environment to work. So you have two options (personally I don't see why you go to Ctrl+Alt+F2 to get to the terminal, but anyway)

Stay in GUI and run the commands via the gnome-terminal (just press the Windows-key and type terminal)
After pressing Ctrl+Alt+F2, replace "gksu gedit" with "sudo vim" or "sudo nano"


No Grub menu after Ubuntu 18.04.3 installation

Finally I did it. I opened ubuntu using the USB drive then in the terminal I installed the boot-repair using :

sudo add-apt-repository ppa:yannubuntu/boot-repair

sudo apt-get update

sudo apt-get install -y boot-repair && boot-repair

Run the program and clicked Recommended repair then I followed the instructions. Hope it helps. Cheers!


Open up your terminal and type:

java -version

You will have to install it if your program is not found. Take a look at these instructions:

How to Install Oracle Java JRE on Ubuntu Linux


only have 6gb of storage of 500gb after installing with unetbootin

1- Do you already remove the installation media or other media (flash drive or cd)? An volume with 6gb seems to me be the size of a media that was unintentionally chosen to boot at installation.

2- If this is not the first case, you would need to know more about system to help. To this, open a terminal with ctrl + alt + t and run the command fdisk -l which will list all media on the computer.

Sorry for my english, I used the internet translator


How to change the button color in Yaru theme?

Workaround

OS: Ubuntu 19.10
GTK-Theme: Yaru
Icon-Theme: Yaru

open the file gtk.css from /usr/share/themes/Yaru/gtk-3.20/ with below command

sudo -H gedit /usr/share/themes/Yaru/gtk-3.20/gtk.css

paste the below code under the existing text and change the colors as per your wish.

  headerbar button.titlebutton:not(.appmenu).close,
  .titlebar button.titlebutton:not(.appmenu).close,
  headerbar.selection-mode button.titlebutton:not(.appmenu).close, button.titlebutton:not(.appmenu).close {
    color: #ffffff;
    background-image: -gtk-gradient(radial, center center, 0, center center, 0.35714, to(#E95420), to(transparent)); }
    headerbar button.titlebutton:not(.appmenu).close:hover,
    .titlebar button.titlebutton:not(.appmenu).close:hover,
    headerbar.selection-mode button.titlebutton:not(.appmenu).close:hover, button.titlebutton:not(.appmenu).close:hover {
      background-image: -gtk-gradient(radial, center center, 0, center center, 0.35714, to(#E95420), to(transparent));
      background-image: -gtk-gradient(radial, center center, 0, center center, 0.35714, to(#eb6637), to(transparent)); }
    headerbar button.titlebutton:not(.appmenu).close:active,
    .titlebar button.titlebutton:not(.appmenu).close:active,
    headerbar.selection-mode button.titlebutton:not(.appmenu).close:active, button.titlebutton:not(.appmenu).close:active {
      background-image: -gtk-gradient(radial, center center, 0, center center, 0.35714, to(#E95420), to(transparent));
      background-image: -gtk-gradient(radial, center center, 0, center center, 0.35714, to(#da4816), to(transparent)); }
    headerbar button.titlebutton:not(.appmenu).close:backdrop,
    .titlebar button.titlebutton:not(.appmenu).close:backdrop,
    headerbar.selection-mode button.titlebutton:not(.appmenu).close:backdrop, button.titlebutton:not(.appmenu).close:backdrop {
      background-image: -gtk-gradient(radial, center center, 0, center center, 0.35714, to(#636363), to(transparent)); }
      headerbar button.titlebutton:not(.appmenu).close:backdrop:hover,
      .titlebar button.titlebutton:not(.appmenu).close:backdrop:hover,
      headerbar.selection-mode button.titlebutton:not(.appmenu).close:backdrop:hover, button.titlebutton:not(.appmenu).close:backdrop:hover {
        background-image: -gtk-gradient(radial, center center, 0, center center, 0.35714, to(#707070), to(transparent)); }

Here is my Customized file content of the file /usr/share/themes/Yaru/gtk-3.20/gtk.css

@import url("resource:///com/ubuntu/themes/Yaru/3.20/gtk.css");

      headerbar button.titlebutton:not(.appmenu).close,
      .titlebar button.titlebutton:not(.appmenu).close,
      headerbar.selection-mode button.titlebutton:not(.appmenu).close, button.titlebutton:not(.appmenu).close {
        color: red;
        background-image: -gtk-gradient(radial, center center, 0, center center, 0.35714, to(green), to(transparent)); }
        headerbar button.titlebutton:not(.appmenu).close:hover,
        .titlebar button.titlebutton:not(.appmenu).close:hover,
        headerbar.selection-mode button.titlebutton:not(.appmenu).close:hover, button.titlebutton:not(.appmenu).close:hover {
          background-image: -gtk-gradient(radial, center center, 0, center center, 0.35714, to(gold), to(transparent));
          background-image: -gtk-gradient(radial, center center, 0, center center, 0.35714, to(cyan, to(transparent)); }
        headerbar button.titlebutton:not(.appmenu).close:active,
        .titlebar button.titlebutton:not(.appmenu).close:active,
        headerbar.selection-mode button.titlebutton:not(.appmenu).close:active, button.titlebutton:not(.appmenu).close:active {
          background-image: -gtk-gradient(radial, center center, 0, center center, 0.35714, to(magenta), to(transparent));
          background-image: -gtk-gradient(radial, center center, 0, center center, 0.35714, to(orange), to(transparent)); }
        headerbar button.titlebutton:not(.appmenu).close:backdrop,
        .titlebar button.titlebutton:not(.appmenu).close:backdrop,
        headerbar.selection-mode button.titlebutton:not(.appmenu).close:backdrop, button.titlebutton:not(.appmenu).close:backdrop {
          background-image: -gtk-gradient(radial, center center, 0, center center, 0.35714, to(blue), to(transparent)); }
          headerbar button.titlebutton:not(.appmenu).close:backdrop:hover,
          .titlebar button.titlebutton:not(.appmenu).close:backdrop:hover,
          headerbar.selection-mode button.titlebutton:not(.appmenu).close:backdrop:hover, button.titlebutton:not(.appmenu).close:backdrop:hover {
            background-image: -gtk-gradient(radial, center center, 0, center center, 0.35714, to(yellow), to(transparent)); }

Optionally you can change the icon. Below pic is a self explanatory..


curl: (5) Couldn't resolve proxy 'hproxy.iitm.ac.in'

From the comments and your output of env, you still have some proxy variables set. Execute the following commands to unset them:

unset http_proxy
unset ftp_proxy
unset https_proxy

Double check that they've been removed by:

env | grep -i proxy

Now try your curl command.


Want to uninstall Ubuntu but can not boot into Ubuntu, only windows

you need to restore the MBR of you're hard drive so he can boot directly on Windows, to do that use you're windows xp cd copy . When he asking you , press R to recovery console.
When you're in the recovery console type

  fixmbr

then

  exit

to reboot the computer

Once this done , simple erase the ubuntu partition using windows xp tools
(configuration panel > administrative tools> computer)

by the way this is not directly related to ubunu


Well, seems like mrxt needs some packages, too. You need to install them first.

Please try this

aptitude update && aptitude upgrade
aptitude install -y libqtcore4:i386 libqtgui4:i386

You also need libopencv-highgui2.3 which doesn't seem to be in the lucid repositories. But it's listed in precise.


From the command line, try

unity-control-center

From there you want the "Display" options. From there you should be able to set up mirrored display, extended display, whatever you like.

This launches the usual system settings dialog. Usually this is easy to get to via the Unity launcher in the top left, or from the Super key. Then you would search "Settings" or "Display."


They are stored in GSettings, like many settings in Ubuntu.  You can use the following command to see the list.

gsettings get org.gnome.DejaDup exclude-list


Installing Ubuntu on separate SSD on a FreeDOS laptop

If you only need to try Ubuntu, you don't need to install it on your PC. You can use a bootable USB stick with Ubuntu.

You can find here the instruction on how to make a bootable Ubuntu USB stick if you don't have one already.

Hope it helps.
Cheers,
Peter


This is most likely a hardware problem. VGA cables carry the red, green, and blue color signals on separate wires. If the wire for the blue signal is damaged or poorly connected, the image on the monitor will appear yellow:

Things to try:

Make sure both ends of the cable are firmly connected.
Check for dirt in the connectors on the monitor and laptop.
Watch the screen while wiggling the cable to check for internal breaks.
Test with a different monitor, cable, and/or laptop to determine where the problem is occurring.


How to get OpenCL support for navi10 GPUs from AMD?

So, I couldn't manage amdgpu/amdgpu-pro driver to install on Ubuntu 18.04 with all permutations of:

  kernels 5.0,5.2,5.3,5.4,5.5

  gcc 7,8,9 (every version was giving different errors which I was fixing to just get other errors)

  amdgpu and amdgpu-pro versions 19.30,19.50

But I did manage to get OpenCL working ;) What eventually succeeded for me:

fresh Ubuntu 18.04.3 installation
update kernel to version 5.4 with ukuu (next (mesa) step fails on kernel version 5.5)
reboot
install mesa 19.3:

  sudo add-apt-repository ppa:kisak/kisak-mesa

  sudo apt-get dist-upgrade

  sudo apt-get update

reboot
install OpenCL:

  sudo apt install opencl-headers ocl-icd-libopencl1 clinfo

  sudo ln -s /usr/lib/x86_64-linux-gnu/libOpenCL.so.1 /usr/lib/libOpenCL.so

P.S. Exploring and learning about amdgpu-pro sources while trying to fix compilation errors I discovered that AMD devs implement forthcoming GPUs directly within mesa open-source drivers and Linux kernel - months before GPUs even released. So, to jusfify AMD devs a bit, that's where the development focus is - not on amdgpu-pro.


One way you can try to solved the problem is open or search startup applications preferences. Unchecked and disable unnecessary startup app.

.

It's quite general and it has lot of possibilities and reason for slow boot up. This usually happen to me and it help. Maybe it help you too.


Ubuntu 16.04 doesn't support PEAP authentication without CA certificate

Please use nmcli to add the password.

Edit /etc/NetworkManager/system-connections/CONNECTION_NAME:

[connection]
id=CONNECTION_NAME

[802-1x]
password=YOUR_8021X_PASSWORD

Restart your network

systemctl restart NetworkManager

You may need to bring the interface down and up to test the new changes:

nmcli con down CONNECTION_NAME
nmcli con up CONNECTION_NAME

All the thanks are for this source.


bluetooth not detect others device hp mini 110-3000

Try with installing following Bluetooth tools Which are in Main Ubuntu Repository.

sudo apt-get install bluez bluez-tools bluez-dbg bluewho indicator-bluetooth libbluetooth-dev  libgnome-bluetooth11 libbluetooth3


I installed supertuxcart and can't figure out how to launch it

Pressing Alt-F2 and starting to type "supertux..." should show it in the search results.

Alternatively, you can right-click on the Applications button (a magnifying glass icon, third from the bottom), select Games category and click on Show all results.


Pair Apple Wireless Keyboard 3rd gen with Ubuntu 16.04?

I was able to work around this issue by using the "blueman" package to pair the keyboard.


Xubuntu on an old laptop can't connect to internet

Lubuntu, Xubuntu, Kubuntu, Cubuntu, etc ... it's more a matter of eyecandy and personal taste. They all are sharing the same base (same Ubuntu underneath).
Install Lubuntu back (because it worked) and install the 'xubuntu-desktop' in it by using the Software Center. Log out and log back in, this time using xubuntu desktop. Check out your internet connection.

After xubuntu-desktop is installed, you can uninstall 'lubuntu-desktop' by using Software Center. Make sure you always have at least one desktop environment installed at any given time, otherwise you'll be presented with just a black screen with simple text in it, namely a command-line (CLI) environment.


i just upgraded to ubuntu 15.04 but i cant launch the terminal

You can use ALT + F2 and enter gnome-terminal.


How to install Pantheon on Ubuntu 15.04?

Okay, for this answer, I'll follow the advice of Guss who managed to successfully install pantheon on Ubuntu 15.04.

First of all, rebuild ubuntu-extras-keyring locally following these commands:

mkdir ubuntu-keyring && cd ubuntu-keyring
sudo apt-get install -y debhelper
wget http://archive.ubuntu.com/ubuntu/pool/main/u/ubuntu-extras-keyring/ubuntu-extras-keyring_2010.09.27.{tar.gz,dsc}
tar -xf *.tar.gz
cd ubuntu-extras-keyring-2010.09.17
debuild -i -us -uc -b
sudo dpkg -i ../ubuntu-extras-keyring_2010.09.27_all.deb

Guss then goes on to mention: "After that, elementary-desktop will install, but will error out at the end because it depends on systemd-shim which is no longer needed nor wanted with 15.04 having a full SystemD implementation.
" --------- Once you get this error, do the following:

sudo dpkg --force-depends -r indicator-datetime
sudo apt-get purge unity-control-center unity-control-center-signon

Pantheon should now be installed on your system.


The way to achieve this is to configure your NS appropriately - your clients know only about your (own) default NS.

Every name server can be configured to "forward" inquiries it cannot answer to some other NS. For example (taken from http://www.akadia.com/services/howto_forward_dns.html), I omitted the forward first statement, as you don't want that.

options {
  ...

  forwarders {
    193.247.122.26;
  };
  ...


Ubuntu 14.04.1 installation DVD cannot detect Win7, but the USB stick can

Instead of using such methods, try using the manual method. Its hard to understand first, but allows a lot more configurability like setting a custom space for a separate swap space(Which is important if you run out of RAM, and if you plan for using Hibernation).

Plus, mount points for specific folders can also be defined.

Additionally, the point of your question is kind of unclear, ie. its hard to understand what you are asking. Please be precise at what you want.


Error After Installing Oibaf's Drivers on Yakkety Yak

It's a video driver problem. In Cinnamon, it will force the system to use Cinnamon safe mode. In xfce, vlc or any other video players, it won't start. We currently have to wait for a patch.


Is there a way of making Banshee use FreeDB?

Currently no freedb extensions for banshee. Here is a list from freedb.org that may help you determine another app to assist your needs.

FREEDB applications


how to remove a service that not be enabled after reboot?

I do not recommend you to disable services you don't know of, to disable services that ship with the system you have to have deeper knowledge of the system. You could likely end up with a broken system.

Since it seems you do not know about SysV-init scripts or Upstart jobs, i would suggest you get in touch with them first.

Take a look at this tutorial.


pxe-e61 media test failure Ubuntu Dual boot Win

That message means there is no network cable connected. It also means it's trying to boot from the Network, so either -

The network card is listed before the hard drive in the boot order in the BIOS (Check boot order)
The hard drive is dead/has a bad cable. (Replace the cable and/or hard drive and try again)
The hard drive is disabled in the BIOS. (Enable it)


Okay..

Here is a method that should NOT be tried unless nothing else works...

At first wait and see if you get any other answer here...only if you dont,use this method..

In this method,we are going to delete the status entry of GIMP 2.8(Thus bypassing  dpkg)

    NOTE:The status file is an utterly importatnt file.In the steps given below,first we will be making a backup of the original file b4 editing for safety so that if anything goes wrong,your status file can be recovered.

Enter these commands in the terminal-

  sudo cp /var/lib/dpkg/status /var/lib/dpkg/status.orig

now enter the following command to open the status file as a superuser in gedit

  gksudo gedit /var/lib/dpkg/status

In the file search for a block that will start with something like this:(you may use CLTR+F to find it.just put gimp in that search box.)

Package: gimp

Status:

....

....

....

Original-Maintainer: Ari Pollak <ari@debian.org>

After you find it,select that complete block(Not even a single space or line more than that) and delete it.

Save the file and close it.

Then go in software sources and remove the repository.

You have successfully removed Gimp.

you can confirm it by typing in the terminal

  sudo apt-get remove gimp

You should get an error saying Package not found or No such package installed

NOTE1:FOLLOW ONLY THE GIVEN INSTRUCTIONS.NOTHING EXTRA IF YOU DO NOT WANT TO SCREW UP SOMETHING ELSE.DELETING EVEN ONE LINE EXTRA IN THE STATUS FILE WILL BREAK IT AND WILL  NOT LET YOU UPDATE ANYTHING AFTER THAT(Though we have created a backup file its best to take care)

NOTE2:WHEN YOU OPEN THE STATUS FILE IN GEDIT,ALONG WITH IT YOU WILL FIND ANOTHER FILE OPENING UP IN THE BACKGROUND Untitled DocumentIGNORE IT.YOU MAY JUST CLOSE IT


Why is time taken in hibernation included in system uptime?

shouldn't uptime be resetting to zero if the 'the system is fully powered off'

suspend/hibernate are not considered "off". The last "wake up time" is stored in /var/log/pm-suspend.log.

  or pausing because the system is hibernated

now that would be odd. How would one then know what the actual uptime is?

  or is this a bug?

Uptime is the time since last (re)boot. Basically the system stores at boot time what the time is and "now" -/- that time is the uptime. So in that regard: no, not a bug.
The command predates notebooks and hibernate/suspend so maybe if you create a feature request someone decides it is a good feature to have. It  probably is a very easy addition:just update the time stored on disk. And I can not imagine it is a lot more than adding a call to the hibernation/suspend script. But it will also be difficult to get it happen :)


Lock Gsettings Schemas for Only Members of a Certain Group

Well, I managed to figure it out, though, the way I've used to solve this problem can look a bit complicated at first.

Firstly, you have to go to /etc/dconf/profile as Root, and copy user to whatever you want the DCONF Profile (works like groups) to be called (e.g: student), and then edit the inside of it, to make sure the system-db setting is that same name as the file. From here on, any places in the answer that say FILENAME are to be replaced with that file's name
Then, you simply have to make sure all the locks you wanted are in place at /etc/dconf/db/FILENAME.d/locks, and run a sudo dconf update in Terminal
Now, for every Home Account of who you want to restrict, you'll have to go into their .profile file (CTRL+H to show hidden files), and write into it export DCONF_PROFILE="FILENAME"

Source: https://www.murrayc.com/permalink/2015/01/30/locking-down-a-gnome-setting/ (use this if my steps are hard to follow)


Radeon Graphics Card not working in 16.04

To start with, let's make sure you have a AMD CPU. Run this in a terminal:

cat /proc/cpuinfo  | grep 'name'| uniq

If this shows AMD, then you need to correct the drivers.

To get the correct drivers, first, select "Do not use this device" option. Then, from a terminal, run:

sudo apt-get remove intel-microcode iucode-tool

Now, run:

sudo apt-get install amd64-microcode

Then, go again to the "Additional Drivers" tab, and select proprietary option.

NOTE: In case you are not aware, proprietary driver for AMD graphic cards (fglrx) are not longer supported in Ubuntu 16.04. Open-source drivers are then used by default. That is why you do not see any propeietary driver in that window, as you probably saw in your previous Ubuntu (14.04?). See here and here for more information.


I need help reinstalling or deleting GRUB

From your comment you only have Windows 10 installed on your computer at this time.

It's my understanding that the grub configuration files reside on a Linux install.

Your question said you previously had Ubuntu installed on your computer.  You can reinstall Ubuntu on your computer (over your previous install, which you are suggesting isn't working).

When you install Ubuntu, the install process automatically installs a working Grub boot manager.  During this install (of Grub) it will automatically detect all installed versions of Linux and Windows and add them to your boot menu.

After you complete the install you'll have a menu option of booting either to Windows or Linux.

By the way, since you said you previously had Ubuntu installed, when you perform your new Ubuntu install if you choose the option not to reformat your install partition, it will preserve the personal data you had from your previous Linux install.

After your new install of Ubuntu you can configure grub to default to booting to your preferred OS (Windows or Linux).  This can be done via the configuration files that resides on your Linux installed partition.

You can do this by editing /etc/default/grub... then running sudo update-grub.


X Server Starting Window Manager (Compiz-Standalone) Cursor is Black X

Figured it out, for some reason this system is requiring me to set the cursor name in my .xinitrc. So I added this line to my .xinitrc.

 xsetroot -cursor_name left_ptr

Whats weird is my other system does not have this line in it's .xinitrc and the cursor is behaving normally. Both are running compiz as the WM.


zfs, encrypted home and subfolder file systems

I suggest you to decrypt data and create zfs pool using LUKS encryption disks. You can move data to encypted ZFS pools.
You can check out following sources.

https://www.ubuntu-user.com/Magazine/Archive/2013/16/Encrypted-ZFS-with-Ubuntu

https://www.makethenmakeinstall.com/2014/10/zfs-on-linux-with-luks-encrypted-disks/

http://www.fyzix.net/index.php?title=Setting_up_an_Encrypted_RAID_with_Ubuntu-ZFS%2BLUKS


Dualshock 3 controller LEDs constantly flashing - Xubuntu 19.10

Playstation controllers are actually supported fully in kernel. But I have found same issues when using controllers on most desktop environments, because you have to allow pair & trust the device for it to connect with bluetooth automatically. I had no luck doing it through bluetoothctl and only way I could do it, was using KDE desktop and pairing it there(a pop up shows where you can click pair and trust device), then relogging to the other desktop environment. Every time you will want to use the controller, it will automatically connect unless you pair it back to your playstation.


BleachBit Command Line To Clean All Options

The command bleachbit --clean *.* is generally not recommended, so it is not implemented in BleachBit. However, power users can get the same effect with the following mini-script:

bleachbit --list | grep -E "[a-z0-9_\-]+\.[a-z0-9_\-]+" | xargs bleachbit --clean

Please note this command ignores all warnings!

You can filter options by adding another grep before xargs. For example, this may save you a few hours:

bleachbit --list | grep -E "[a-z0-9_\-]+\.[a-z0-9_\-]+" | grep -v system.free_disk_space | xargs bleachbit --clean

Reference: BleachBit forum: Command line: delete everything


Run This command in terminal bellow.
find $HOME/.steam/root/ubuntu12_32/steam-runtime/*/usr/lib/ \( -name "libstdc++.so.6" -o -name "libgpg-error.so.0"  -o -name "libxcb.so.1" -o -name "libgcc_s.so.1" \) -exec mv "{}" "{}.bak" \; -print

This an issue with the mesa drivers.
source higuita answer


The issue is the snap-store is unable to load it's database for the first time. You need to remove then reinstall the snap:
sudo snap remove snap-store
sudo snap install snap-store


Ubuntu 16.04 doesn't let me to uninstall applications

I ran into a similar problem. I would click the "Remove" button in the software center, but the applications would re-appear after a short period. I did this for the Aisle Riot Solitaire program, for example, and it kept coming back. When I went to remove it with the command line, however, it said it was not installed:

$ sudo apt-get purge aisleriot
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package 'aisleriot' is not installed, so not removed
0 upgraded, 0 newly installed, 0 to remove and 87 not upgraded.

After more investigation (read: blind clicking), I discovered that clicking the refresh icon on the Updates tab actually seemed to refresh the Installed tab as well (even though the refresh icon is not available on the Installed tab). After this, Solitaire stopped showing up.

By "refresh icon", I mean the circular arrow in the upper left corner.


Mount cifs share with different machine users

If the server is set up such that it doesn't restrict what a user can do once he passes the right credentials then one option is to do this in reverse: Limit who can access the mounted share on the client.

Let's say the servers host name is machx:

** Create a group called machx

sudo groupadd machx

** Add all the users who have access to the server to that group:

sudo gpasswd -a morbius machx

** Create a credentials file owned / accessible only to root:

sudo touch /media/.machxcred
sudo chmod 0600 /media/.machxcred

** Within that file add the username and password of one of the expected users in this form:

username=serveruser1
password=serveruser1password

** Then mount the share specifying access only to users in the "machx" group:

sudo mount -t cifs -o credentials=/media/.machxcred,gid=machx,dir_mode=0770,file_mode=0660,nounix //machx/folder /mount/path_on_ubuntu


Doug Smythies comment contains the link to the workaround that solves the problem.
I leave you a summary:

sudo mv /usr/lib/gnome-settings-daemon/gsd-housekeeping /usr/lib/gnome-settings-daemon/gsd-housekeeping.off

logout and login

More info on the link, follow it if this workaround doesn't work for you!


You do not provide a lot of details about your configuration. are you running Ubuntu 16.04, 16.10, 17.04 ?  Are you using Unity Desktop or Gnome or LXDE ?

Each Ubuntu version and flavors needs to be configured a little bit differently to have xRDP working.....

You could try the following to get started (see http://c-nergy.be/blog/?p=8952). In this procedure, you will need to install a alternate desktop (mate desktop) and you should have access remotely to your system...

To summarize,

Install xrdp

sudo apt-get install xrdp

Install mate desktop

sudo apt-get install mate-core mate-desktop-environment mate-notification-daemon

Configure your .xsession file by issuing the following command

echo mate-session >~/.xsession

Configure your Keyboard layout

Please review the post for this configuration aspect

and give it a try

If you want to use the default Unity Desktop, let us know and we could provide necessary information....

Hope this help

Till next time
See ya


How to remove grub without access to Windows

I have Surface Pro 1 with Windows 8.1. I resized the Windows partition and installed Ubuntu 13.10, but, like the person who posted the question (Steffen Christensen) I found the driver support very bad and WiFi always freeze my tablet .

So, I just formatted the Ubuntu partition, and could not remove Grub 2 boot loader. I did some research online and made this solution myself and fixed my tablet with it, and it is working great:

When tablet is powered off, put the Windows 8.1 Recovery USB drive in the USB port, hold down volume down and power for some seconds till it powers on. You'll see the Surface logo. It will take few minutes till the bios / UEFI menu starts.

Choose language and keyboard as English. Go to Troubleshoot->Advanced Options->Command Prompt. Enter these commands:

diskpart
list disk

(If you have more than one physical disk, choose the disk with Windows installation on it. In my case, only one disk was in the list: disk 0.)

select disk 0
list partition
select partition  x

(Where x is the number of the partition listed by the list partition command. You must choose the partition with type marked as the System ( EFI partition ), which in my case was number 2.)

assign letter=u

(U is the drive letter you wish to assign to the EFI partition.)

exit

(This will exit the diskpart command. You will still be on the command prompt window.)

u:

(Take you to the U: drive.)

dir

(Shows list of directories in drive U: - you must see a directory named efi.)

cd efi
dir

(Shows list of directories in folder efi - you must see a directory named ubuntu.)
Now we must delete GRUB in its official/proper location EFI/ubuntu/grubx64.efi for Ubuntu. If Secure Boot was active, deleting EFI/ubuntu/shimx64.efi would be necessary instead. In fact, deleting the whole EFI/ubuntu directory, or at least renaming it, would do the job in any case. We will delete the entire directory:

rd /s /q  u:\efi\ubuntu
cd c:\windows\system32
Bootrec/fixmbr
Bootrec/fixboot
exit

Done. Now the command prompt window is closed. Now choose 'Turn off your PC'
and then restart. It should be back normal.


Volume Control keys duplicating on key press

I had the same problem, sound would go crazy if I clicked volume up,down or mute button.

The solution that worked for me is rather simple. Just go to System settings -> Keyboard -> Shortcuts -> Sound and Media and edit volume up,down and mute settings again to FN + up,down and mute keys on your keyboard. Hope this helps.


You should:

sudo apt-get install -f mysql-workbench

I use in such cases aptitude

sudo apt-get install aptitude

and then:

sudo aptitude install mysql-workbench

Suggestions are made that can help solve your problem.