Information provided here: https://askubuntu.com/a/31417/9598 can be useful for erasing all the information in your hard disk drive, which can be done via Live Session.

Reproduced  here for your convenience:

  Take a look at this:
  How to clean a hard drive before reinstall

  Placed here for your convenience:

    If you refer to a fresh reinstall,
    when reinstalling you will find
    several options for the usage of your
    hard disk drive, which includes but
    not limits to:

    "Side by Side" install, which will
    install your new OS sharing the hard
    disk drive but without losing your
    current installation. This way, GRUB
    will be updated or installed as
    required.

    "Use the entire disk" which will
    physically erase the whole disk in
    order to use all its space for the new
    OS install.

    If what you wish is to use the hard
    disk drive for a data tasks such as
    BackUp or other data handling, you can

      achieve that by first erasing the
      whole partition and do it from
      scratch. Formatting the disk will also
      do the trick.

    Several tools will help you to achieve
    this task in Linux and other OS's.

    In Maverick, under
    "system/administration" you will find
    a "Disk Utility", inside of which you
    will find a disk drive and other
    devices tree on the left and its
    characteristics and tool list in the
    right side, where you can find both
    "Delete Partition" and "Format Drive"
    options.

    You can do this from a Live Session.

    A screenshot is placed here for your convenience.

  Addittionally, take in consideration that some wireless devices has
  stopped working as a part of an update from Maverick. That's my case
  with a Compaq Presario V3000 (V3617LA) which wireless isn't working
  anymore even with all my efforts and all the web/forums tricks.

  Good Luck!

Be aware that this procedure will delete ALL the data, including operating system and everything, so if you don't have an operating system installed, your computer won't boot anymore.

Additionally, if you wish to reinstall the Windows 7 OS in your computer, the Install process offers Advanced options for deleting, formatting and creating new partitions in your hard drive at the very moment that you are installing.

For that purpose you will find a screen like this:

On which you can click on the "Drive options (advanced)" link in order to see this:

Note that both images are from different sources, the last one shows you several partitions, which can be erased by using the tools provided.

You may wish to look for an install step-by-step process/manual for Windows 7 if that's what you wish. Take in consideration that if you wish to install Ubuntu again, you will have several options in the partitioner when installing, which includes but not limits to "Use the entire disk", as shown in this partitioning tool screenshot:

Please let us know if you require further information on what you wish to do.

Good luck!

All images from the net.


I suggest you use the CPU frequency control indicator to change the operating frequency of the CPU. Set it to powersave or ondemand or some specific low value.

In a terminal window:

sudo apt-get install indicator-cpufreq

Now just logout and log in.


Question about installing Ubuntu 12.10 on laptop

I don't know about (1), so I'm just going to answer the second question.

Yes, you can! As a matter of fact you can even install Ubuntu directly onto the USB hard drive. (Just make sure you select the correct drive during installation.) The boot loader will then be installed onto the same drive as Ubuntu.

If you are able to boot off you hard drive without using tricks (like the Plop Boot Manager: http://www.plop.at/en/bootmanagers.html, or similar) entirely depends on your BIOS. Try pressing F12 during BIOS initialization to enter the boot menu and check if your USB drive is being displayed.


The touchpad is affected by hardware which is controlled by GNOME shell.
Try to reset all keys and touchpad settings using
gsettings reset-recursively org.gnome.desktop.peripherals.touchpad

or
gsettings reset-recursively org.gnome.settings-daemon.peripherals.touchpad

You can also use dconf to reset touchpad settings to default settings
dconf reset -f /org/gnome/desktop/peripherals/touchpad/

For more details prefer the manual which can be obtained using
man gsettings


The following I found while looking at this ...

VistaDB is an Embedded SQL Database Engine for .Net and mono.
It uses Blowfish encryption to encrypt the database content.
Anyone with a license that has the database can open it and use their own program to connect but I only saw Windows software that can do this.

The only mentioning of Linux in regards to vistaDB is this reply, though the full reply is more about android:

VistaDB may work under Mono, but we do not have the resources to test and validate it for Mono, so such use is considered "experimental". In theory, it can work in Mono--such as under Linux on a PC.
When we took over VistaDB we had to focus our efforts on the core product for standard machines and operating systems (ie. various versions of Windows).

When we have alternatives like MySQL, SQLite and Firebird not a lot of Linux users will be tempted to buy a license and install Windows to use it. So you are probably on your own here (not saying it is not possible in Linux with mono but you would need to do a lot of experimenting yourself).


I think it has to do with how you run the script.

If you do:

sh ./script.sh

Or

./script.sh

Then it invokes a new shell, runs the script, then returns you to the current one. So the cd is done in the new shell and your current one is untouched.

Try this instead:

. ./script.sh

Which will run script.sh in your current shell, and you'll keep the results after it finishes.


You can mount the XP partition within Ubuntu, using a bit of command line magic, and back up your Windows files to a USB disk, without booting into XP if you like.

Bring up a terminal, and run the following command to start with:

sudo fdisk -l

It should display a list of partitions available on your system. One of these is likely to be your Windows XP partition. It might look a little like this:

/dev/sda1               1        1959    15735636    c  W95 FAT32 (LBA)

See that /dev/sda1? That's the think we're interested in. It could be hda1 or sda2 or sda5 - but it should have W95 at the end there somewhere (or potentially NTFS as Danatela points out below - depending on what installation options you chose for Windows).

Next we need to mount it. Run the following:

cd /tmp
mkdir Windows
sudo mount /dev/sda1 Windows

(Where /dev/sda1 is the W95 partition mentioned above). Although there are plenty of other arguments you could supply to the 'mount' command, ubuntu is smart enough to work out what you're after in this instance.

Ok, you now have your Windows files available in /tmp/Windows. Bring up your file manager, point it there, slot in a USB disk, and copy off the files you need. You won't be able to delete the files with your normal user account, since we mounted the drive as 'root' (via sudo), but the permissions should be adequate to give you read-only access to the files.

Once you're done, you can reboot your computer, and reinstall Ubuntu completely.


Ok, I've just found a solution. Firstly, enter this command:

mv ~/.config/monitors.xml ~/.config/monitors.xml.backup

You also need to edit your Xorg config and make the virtual desktop 4096 by 4096:

gksudo gedit /etc/X11/xorg.conf

Afterwards it should look like this

 SubSection "Display"
        Virtual         4096 4096
        Viewport   0 0
        Depth     24
EndSubSection

Once you reboot you should be able to use the default display tool or amdcccle to configure it.


Some Applications don't open in Ubuntu 12.04 LTS (64 bit)

Let's try another video application on your list: CreBS. Open the terminal and type: crebs. If CreBS opens with this command, you will want to add it to the Dash so that you can open Video 4 Linux by searching for it in the Dash and then clicking on its icon.

If you want to be able to see CreBS in the Unity Dash you should create a .desktop file using Gedit. Open Gedit and type:

[Desktop Entry]
Name=CreBS
Comment=Create Background Slideshow
TryExec=path-to-CreBS-application
Exec=path-to-CreBS-application %U
StartupNotify=true
Terminal=false
Type=Application
Icon=path-to-CreBS-icon

Save this file with the name CreBS.desktop to the ~/.local/share/applications folder. Replace path-to-CreBS-application and path-to-CreBS-icon with the paths from your system.


How can I return from a new release to an older-release?

If it's the GUI that you don't like about 11.04, then you can just revert to the classic GNOME interface (instead of the new Unity interface), rather than downgrading.

To do that, before you enter your password on the login screen, select 'Ubuntu Classic' as the session type.


From wikipedia:

  The name Wine initially was an acronym for Windows emulator.  Its meaning later shifted to the recursive backronym, Wine is not an emulator in order to differentiate the software from CPU emulators

From WineHQ

  Wine (originally an acronym for "Wine Is Not an Emulator")


Configuring Evolution from .evolution and .local/share/evolution folders

There was one more directory to copy: .gconf/apps/evolution. This did the trick.


Backing up or mirroring my existing hard drive

If the spare drive is larger than the (supposedly) failing, than you can simply copy the entire disk by using the dd command:

dd if=/dev/sda of=/dev/sdb bs=1M

(Of course replace the device file names according to your configuration.)

None of these disks should be mounted, so use an Ubuntu LiveCD for running dd.

If the disk is indeed failing than you must use additional options so that bad sectors are replaced with 0 bytes.

If the disk has a GPT partition table, than you have to prevent to attach disks with identical partition GUIDs.

It is not a good idea to mirror a failing disk for obvious reasons. It seems you need a proper backup system. A mirror is not backup! It also mirrors bad data, like the result of rm -rf /. Backup is multiple snapshots taken at different times.


USB stick appears as "read-only file". How can I make it writable?

just ran into this issue, found this solution for msdos-formatted drives at least.

1: Find out the name and partition name of the drive:

df -Th

2: unmount the drive:

umount /media/<your name>/<your drive>

3: fix the drive:

sudo dosfsck -a /dev/<your partition>

4: remove the drive and put it back in.

5: you're done!

NOTE: This will NOT delete your files assuming they are undamaged in the first place.


Try to check with a Live-Ubuntu stick whether the partition still exists. if it does:
Look at the following thread:
How do I run update-grub from a LiveCD?


Yes, you have to create it yourself, or put that line in:

/etc/apt/apt.conf

that would do the work too.

just for note: files within /etc/apt/apt.conf.d/ with XX_some_name will be looked at in order of their numbers, we use them to separate configurations from each other to be more organized, otherwise we can put all of them in: /etc/apt/apt.conf.


How to install a Brother MFC-5890CN network printer?

Brother have a fantastic compatibility linux drivers:

you have three ways to install a printer :

Local Printer

in the principal page you can see a how to :

Instruction

Printer (CUPS) :   Driver Install  |  Print Command  |  More Information  |

Printer (LPR) :    Driver Install  |  Print Command  |  More Information  |

go to this page :

http://welcome.solutions.brother.com/bsc/public_s/id/linux/en/download_prn.html#MFC-5890CN

download LPR and cupswrapper driver all available in .DEB format and install it, follow the brother instruction..

Setup a Standalone Network Printer or
Setup a Shared Windows Printer

Follow this guide


How do I install Backtrack applications in Ubuntu?

Moderator note:
This question is more or less an exact duplicate of this one, and as such you need to be extremely careful with how you do things. It is not recommend to do this. For more reasoning, see the question linked to above.
Although this might be off topic but I wont care about that as the question is too straightforward and simple.
Short answer: YES, You Can.
Long answer: You can add backtrack repository in your source file and install whatever software you want. here is the repository.
deb http://all.repository.backtrack-linux.org revolution main microverse non-free testing
deb http://32.repository.backtrack-linux.org revolution main microverse non-free testing
deb http://source.repository.backtrack-linux.org revolution main microverse non-free testing

append those lines to /etc/apt/sources.list file and run
wget http://all.repository.backtrack-linux.org/backtrack.gpg -O – | sudo apt-key add -

to add backtrack gpg key, then run
sudo apt-get update

Then you can install any software from backtrack repo.


Try this:

Open terminal.
Type alsamixer and take all of the controls to max level.
Press Esc key, and close terminal with exit.
Check whether sound works.


How to switch off automatic kernel updates?

There is no need to do that, because you can switch back to the older kernel 3.5.0.22 in the Grub menu. At boot you can show the Grub menu by holding the shift key. If you want you can select the desired kernel as default kernel.

See:

Show Grub boot menu on 10.10 system
Set “older” kernel as default grub entry [duplicate]


SSH: Could not resolve hostname user@host: Name or service not known with my connection

Ok, things are working now.

It seems it was a problem of connection. I reboot everything, and now it's solved!


Bluetooth connection doesn't work with my Nokia 2760 due to a dbus error

It appears that your phone is detected but rejecting the connection.  Try settting up the device through the phone and then the computer.  You may need to enter an alpha numeric code to complete the connection.


Go to software center, edit menu, sources and in the very first tab disable the CD/DVD every.


running two commands from a single terminal

You could type these commands after the $ prompt:

$ sudo apt update &
[1] 24966

$ firefox

[1]+  Stopped                 sudo apt update

The first command followed by & tells it to start in a second terminal (background session). The terminal immediately displays the process ID (24966) of the background session and prompts for another command. When the first command finishes you are notified in the terminal by:

[1]+  Stopped                 sudo apt update


Is it possible to convert only audio in video file using avconv?

After playing with avconv myself, I found a possible solution.

avconv -i inputfile.avi -strict experimental -c:a aac -c:v copy outputfile.mp4

However I tested the file and it worked on iOS 8.1, I have not played it in full to be sure. I will update later.


How do I use a different maven version for a snapcraft build?

I think you want a patch to the relevant snapcraft plugin, adding a field to the parameters that tells the plugin to use a different version of Maven. I suspect the best way to do that will be to point to the download location of the maven you want to use (PPA etc).


How can I stop mongodb from starting on system boot

I can't test it at the moment, but I think this should work

 sudo update-rc.d mongodb disable

If this is not enough try this

 sudo update-rc.d -f mongodb remove


Firefox 46 switched to using GTK3 for Linux desktop builds and this is the reason for the change in background color.

Source: http://www.omgubuntu.co.uk/2016/04/firefox-46-now-available-download


My personal preference is filezilla.

You can install it from the repositories by typing sudo apt-get install filezilla.

It's quite stable and with plenty of features.

Alternatively, if you want to download by using a shell FTP client (no GUI), you could try to use wget or ncftp.

Some examples:

ncftpget –R –v –u "username" <ftp_site> <local_dir> <remote_dir>, (where "R" = recursive, "v" = verbose)

wget -r ftp://username:password@<ftp_site>/

wget provides many options, i've used it many times myself and i think that you should really try it (read it's 'man page', it's worth it)


I couldn't find anything, so I guess the shutdown script was corrupted. To fix it I did the following

# which shutdown
/sbin/shutdown
#  dpkg-query -S /sbin/shutdown
upstart: /sbin/shutdown
# apt-get install --reinstall upstart

and now it works again.

I guess the next thing is to find out, why those files get corrupted. Thx for the help


Black screen + "Please wait while we install a system update"

You're describing a Thinkpad firmware update. To confirm this, run fwupdmgr get-history, check the firmware date, and search for the checksum (SHA1 hash) via your favorite search engine. You should see your update package within the Linux Vendor Firmware Service list. The blog post you found was on the right track.


Windows 7 won't boot after installing Ubuntu 12.04

As a temporary solution, you can always select the Windows entry, hit e, then find /dev/sdb1 and change it to /dev/sdb2. If you want the modification to become permanent, look for example at How do I change the GRUB boot order? or, better, at Grub points to recovery partition instead of install partition.


Port 111/tcp open and rpcbind running on NFS server but invisible on NFS client

You are allowing all incoming packets to the localhost interface but not on other interfaces.

Therefore you can see the open port locally but not from another machine.

You have to allow all incoming packets to port 111 like this:

iptables -A INPUT -p tcp --dport 111 -j ACCEPT

This will explain iptables really well.


This page has an explanation on how to setup shortcuts Lubuntu/Keboard

Relevant section says:

  There is no automatic way to create new keyboard shortcuts or hotkeys
  in lubuntu. You will either have to edit Lubuntu's openbox
  configuration file (~/.config/openbox/lubuntu-rc.xml) and edit, or
  alternatively install xbindkeys.

  Obkey will edit the keyboard parts of your Openbox configuration file
  for you. Download the .tar.gz and unarchive it. After unpacking the
  tar.gz, open a command line in the new folder and run obkey like this:
  ./obkey ~/.config/openbox/lubuntu-rc.xml  Hint: back up your config
  file. After saving the config file, you will need to run this command
  to have openbox use the changed config: openbox --reconfigure

  For more information on the syntax of the configuration file, please
  check out the official Openbox documentation on bindings. Note that
  Super_R and Super_L are the two "Windows" keys when you just want to
  use those keys. If you want to couple them with something else, use W-
  plus whatever key you want to use.


sudo add-apt-repository ppa:garhuy/pamusb
  sudo apt-get update && sudo apt-get install libpam-usb pamusb-common pamusb-tools

This is patched pamusb by garhuy "https://launchpad.net/~garhuy/+archive/pamusb" which enables sdcard support.

I know its been 7 months after you posted it but it appears very high in google so it might be very handy for someone looking for it.


Broadcom bluetooth adapter is not recongnized (0a5c:2045)

There is an issue with the BCM2045 that was recently fixed upstream, I have applied a patch to the kernel source

sudo apt-get install build-essential linux-headers-$(uname -r)
wget https://www.dropbox.com/s/y4c8nm8fr1f2amx/bluetooth-4.2.tar.gz
tar -zxvf bluetooth-4.2.tar.gz
cd bluetooth
make -C /lib/modules/$(uname -r)/build M=$PWD modules
sudo mv /lib/modules/$(uname -r)/kernel/drivers/bluetooth/btusb.ko /lib/modules/(uname -r)/kernel/drivers/bluetooth/btusb.ko.bak
sudo cp btusb.ko /lib/modules/4.2.0-18-generic/kernel/drivers/bluetooth/btusb.ko

Reboot and see if it corrects the issue with the bluetooth, if it is confirmed to work, I can make a DKMS version that will not have to be recompiled when you update to a newer kernel

The patch I used originated from here


What is happening with stdout inside function?

There is no stdout in your example: wrapping a shell function definition in a script file and then calling the script does not execute the function. You need to either source the script so that the function becomes available in the current shell

. Sourced/getFileSystemInfo
getFileSystemInfo $(pwd) fstype,source

or modify the script so that it calls the function and passes its own arguments into it by adding a line such as

 getFileSystemInfo "$@"

Right now, you are simply calling a script that does nothing, with positional parameters that are ignored.


Why is there no posix_spawn manpage on my system (14.04) & how do I get it installed?

You need to install the package manpages-posix-dev


Try

apt-get --reinstall install mongodb

This will pretend that mongodb isn't installed already and overwrite the old files.

Afterwards you should be able to remove it like usual.


Keyboard command for gnome-control-center ubuntu 13.10

You can add custom shortcut for gnome-control-center by opening Keyboard-->shortcuts-->custom shortcuts--> +,
A new dialog box will be opened.Type settings in the name field and type gnome-control-center in the command filed.
By default it was disabled,right-click on the disabled shows a new accelerator.Now press the key combinations in the keyboard.
Now pressed key combinations will be assigned.
Logout and login back to take effect.


Dual boot with windows 7 (UEFI) on separate disk devices

Turned out my windows ISO was a piece of sh!t. Got a proper x64 ISO and everything is fine.


egrep command usage to find lines starting with one character that also contain some string

You have to write it like:

egrep "^w.*\.pdf$" filename

Means started with w followed by any character and ended to .pdf.

for a logical "or" you can use -e switch:

egrep -e pattern1 -e pattern2

means all lines with pattern1 or pattern2.

or as @steeldriver suggested, use extended regex "or":

egrep "(pattern1|pattern2)"

and as you know for extended regular expressions you have to use egrep and not grep, e.g:

egrep '(bbb|ccc)' # works fine for your file
grep '(bbb|ccc)' # doens't have any result

For an "and" you have to pipe it to another egrep:

grep pattern1 | grep pattern2

means all lines with both pattern1 and pattern2.

or use another tools like awk:

awk '/pattern1/ && /pattern2/` filename


Awesome question!  It took me a while to figure this out.  I know linked answers aren't preferred but this blog post is the only thing I've found with correct answer.  I'm posting this using my AE1000 right now.  :-)

Compiling drivers for the Cisco AE1000


How to remove user "PostgreSQL" in Ubuntu 17.04

People says that isnt ans answer xD

  can u give us the output of this?
      cat /etc/passwd | grep -i postgre

Edited and reformulated

cat /etc/passwd | grep -i postgre
postgres:x:111:118:PostgreSQL administrator,,,:/var/lib/postgresql:/bin/bash

Login Name and User Name are not the same the graphical login tool its showing you the Login Name. Try:

sudo deluser postgres

Also read

man 5 passwd


nokogiri installation error - mkmf.rb can't find header files


It seems maybe someone activated some zoom option of the "Universal Access Preferences" available in the lower left part or lower right of the GDM login screen that transforms the left part of the screen in a magnifier lens.

You can try setting it up such that it doesn't start on login using:

sudo -u gdm gconftool-2 /desktop/gnome/applications/at/screen_magnifier_enabled --type bool --set false

or purging that package (not recommended) using:

sudo aptitude purge gnome-mag

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


You can use perlbrew:

sudo apt-get install perlbrew

Then:

perlbrew init
perlbrew install perl-5.20.1


PRITUNL - Error after setup-key (No web access)

There is a new version who seems to fix the inital setup bug. I'm going to update and tell you about the results.

pritunel new release v1.28.1578.26


virtualbox client ubuntu 15.10 has a small window and will not expand

The error is clear. The output says The headers for the current running kernel were not found. You have two options. You can either install the VirtualBox Guest Additions using the official Ubuntu package (what I recommend), or you can install the kernel headers and try again. I'm going to provide directions for installing the package. Since the VirtualBox Guest Additions have already been packaged, building them from source yourself is just wasted effort.

Anyway, make sure you have all of the standard repositories for Ubuntu 15.10 enabled in your guest, and then run sudo apt-get install virtualbox-guest-dkms linux-headers-generic. This will install the VirtualBox Guest Additions using DKMS, which means that the modules will automatically be rebuilt whenever you get a kernel upgrade.


How to reinstall unity desktop on Ubuntu 14.04

Type the following in a Terminal:

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

Now reboot and you should have the Unity desktop environment installed.


Kubuntu: Show programs only on their workspace

This can be configured in both the Task Manager and Icons-only Task Manager.

Right-click on the Task Manager and select Task Manager Settings...:

In the General tab, scroll down and tick the checkbox next to Show only tasks from the current desktop:


Admin password authenticates to log in, but not to install apps or change user accounts

I had the same issue. Changing, just a bit, Robin's answer solved the problem...

I've changed a little the steps suggested on: http://www.psychocats.net/ubuntu/fixsudo

Boot in recovery mode as root
Enter the command: mount -o rw,remount /
Enter the command: groupadd admin
Enter the command: adduser username admin
Enter the command: sudo nano /etc/sudoers
Right below root   ALL=(ALL:ALL) ALL add this line username  ALL=(ALL:ALL) ALL
Press Ctrl+X and answer 'y' to save the changes
Enter the command: passwd username
Enter your user's password
Enter the command: exit
Resume normal boot
You 've made it!!!!

*where username is your actual username.


App that shows Access point wireless security (Extended information for AP)

An alternate to networkmanager is wicd, I use wicd in gentoo and it will show this type of information. It is in the Ubuntu repositories.

sudo apt-get install wicd-gtk


TP-LINK TL-WN751ND not detecting networks (most of the time)

We are changing the country code first, do:

sudo sed -i 's/^REG.*=$/&UK/' /etc/default/crda

Then do:

echo "options ath9k nohwcrypt=1" | sudo tee /etc/modprobe.d/ath9k.conf
sudo modprobe -rfv ath9k
sudo modprobe -v ath9k

In the router set your encryption to WPA2 not mixed mode.
Change the channel to 1 or 11 they usually work best.
Save the router configuration, then reboot router and computer and unplug wired connection.

Set your wireless settings in network manager to match the screenshots. Then reboot.


Can netplan configured nameservers supersede (not merge with) the DHCP nameservers?

This has been fixed in the netplan repository on github, and will presumably make its way into Ubuntu at some point.

Two new options have been added, dhcp4-overrides and dhcp6-overrides.  To ignore DNS servers from DHCP you would do something like:

dhcp4: yes
dhcp4-overrides:
  use-dns: no


First of all, it okay that you have 4 GB of RAM and a 500 GB of hard drive space, but for gaming these two parameters are not the main for running a game with a good framerate and no lag. The poor performance can be caused by the central processing unit (CPU) and the graphics card. Your graphics card is not good enough to run smoothly new games, because most of the integrated graphics cards by Intel are not designed for running games on high resolution and high settings. It has a 64-bit memory bus, low gpu and memory frequencies, etc.

You can try to turn off some graphics effects and low down some settings. And, of course, running a game under Linux may cause some lag, because the game is optimized for Windows.


Is it possible to install Ubuntu from an Ubuntu host machine onto a partition without needing to boot to install media?

Not sure what you want to do.

I guess you want to install in a Windows machine with Wubi that don't have internet access ?

And that you don't want to burn a CD ?

Then just copy the iso and mount it in Windows , you will launch th Wubi on the iso  and it will install without internet.


How can I delete an image with Eye of Gnome / EOG?

The documentation says:

  To delete a picture that you don't want any more, right-click the picture and select Move to Trash.

https://help.gnome.org/users/eog/stable/edit.html.en


What to do after changing the dual-boot OS?

For dual booting issue, you can replace Vista with 7. Windows 7 will replace boot menu without entry for Ubuntu. To make ubuntu entry in boot menu, you can use EasyBCD which can be downloaded from here.


Ubuntu on Windows 10 (from Microsoft Store) installed but failed on Launch

You should enable window subsystem Linux.
Open PowerShell as Administrator and run:

Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux

restart your computer when prompted.
then Ubuntu on Windows 10 from Microsoft Store


How do I control the volume in KDE from the command line?

You can use qdbus to access the graphical kmix from the command line. These are the commands to increase and decrease the volume:

qdbus org.kde.kmix /kmix/KMixWindow/actions/increase_volume com.trolltech.Qt.QAction.trigger

qdbus org.kde.kmix /kmix/KMixWindow/actions/decrease_volume com.trolltech.Qt.QAction.trigger

for reference, man qdbus  shows the syntax is qdbus <service> <path> <method> <args>, and you can see a list of available options at each stage by running a shorter command - e.g, running qdbus org.kde.kmix will show a list of available paths, and qdbus org.kde.kmix /kmix/KMixWindow/actions/decrease_volume will show a list of available methods for that path, etc. Note that the methods marked as being read or readwrite can be called with no argument to get their current value - this may be useful to you for automation.

Alternatively, you can access the volume control directly - i.e. not via the graphical kmixer - with the /Mixers option.

Just call qdbus org.kde.kmix /Mixers org.kde.KMix.MixSet.currentMasterControl to find out the current master control (in my case, alsa_output.pci-0000_00_1b.0.analog-stereo). Then use the mixer matching that name, i.e. /Mixers/0/alsa_output_pci_0000_00_1b_0_analog_stereo, with the method org.kde.KMix.Control.increaseVolume or org.kde.KMix.Control.decreaseVolume.

So, the direct access to the volume control will be something like this:

qdbus org.kde.kmix /Mixers/0/alsa_output_pci_0000_00_1b_0_analog_stereo org.kde.KMix.Control.increaseVolume

qdbus org.kde.kmix /Mixers/0/alsa_output_pci_0000_00_1b_0_analog_stereo org.kde.KMix.Control.decreaseVolume

Which will change the volume, without doing anything graphical.


How to turn off laptop screen when lid is closed and connected to external monitor

A simple way (which I use) is to use Fn key on your laptop keyboard, that manages external displays and switch to "external monitor only" before you close the lid.
A complex way (which I do not use) is to create a script.
How to run a script when the lid is closed?
Shortcut to switch displays


How To Run An Application On Startup Automatically?

You should add your script to the runlevel defaults:

sudo touch /etc/init.d/noip2
sudo chmod 755 /etc/init.d/noip2
sudo update-rc.d noip2 defaults

Then add this into /etc/init.d/noip2

#######################################################
#! /bin/sh
# . /etc/rc.d/init.d/functions  # uncomment/modify for your killproc
case "$1" in
start)
echo "Starting noip2."
/usr/local/bin/noip2
;;
stop)
echo -n "Shutting down noip2."
killproc -TERM /usr/local/bin/noip2
;;
*)
echo "Usage: $0 {start|stop}"
exit 1
esac
exit 0
#######################################################

Then restart and your script will be running.


Can confirm that I've encountered similar problem.
In the grub menu, select the advanced option (which is just below Ubuntu option in Grub menu) and press "Enter" and then run Ubuntu in recovery mode. Then there you will find a menu and select the update grub option. It will find and fix the problem. This worked for me.


Dim inactive compiz ( set speed of the effect)

I used the Fading Windows section in Compwiz to adjust the fading speed.

The options there are similar to gconf-editor which was suggested by @nicolas. However, for some reason, gconf-editor adjustment doesn't work for me.


After Upgrade + 2 days later. No Bios, no Grub

No Bios..?

Check that first. When you boot, hit

DEL
F1
F2
ESC
F10

It should be one of those (HP reference).

Assuming you still have a BIOS, next step would be to boot from LiveCD and most likely fix something with GRUB.


Launching Ubuntu18.04 on wsl in is very slow

You mention you are using WSL1. In general, performance of WSL2 should be better for operations on the root filesystem (i.e. not-NTFS/Windows drives). Conversely, WSL1 has much better performance when working with files on NTFS drives.
Also, for WSL1, I recommend adding an exclusion to Windows Security.  Start Menu -> Windows Security -> Virus & Threat Protection -> Manage Settings -> Add or Remove Exclusions, and add the %userprofile%\AppData\Local\Packages\<distro> folder.  That can make a pretty big difference with WSL1 performance, in my experience.


First install pavucontrol:

sudo apt-get install pavucontrol

Launch PulseAudio Volume Control (from the dash or a terminal):

pavucontrol

On Input devices tab, see that you have "Monitor of Built-in Analog Stereo"
this is a virtual recording device with which you can record whatever's coming out of your speakers.

Now we just need to route your microphone to your speakers too.
Do this by typing the following command in a terminal:

pactl load-module module-loopback latency_msec=1

If you now record with audacity, or recordmydesktop, from the "Monitor of Built-in Analogy Stereo" (see Recording tab of pavucontrol after you start recording)
you'll get your microphone as well as whatever's coming out of the speakers.

This means that you can now easily record Skype meetings or private Google+ Hangouts.


Equinox theme widgets in Unity don't appear in the GTK+ theme dropdown list

Equinox is not available in ubuntu 11.10 because the equinox engine hasn't been ported to gtk3 as explained in this question How can I install the Equinox theme?.
So it won't appear in the gtk theme menu of gnome-tweak-tool


You can use cli to networkmanager called cnetworkmanager or wicd which also has command line utility and gtk is just optional. I think wicd uses wpa_supplicant.


Recover data because I wiped out GPT data structure on the wrong disk

I solved the problem using testdisk to find the missing partition thank to the MBR partition table, then I saved the partition structure.
Then I converted the MBR into GPT.

Here is a 'step by step' tutorial : https://www.cgsecurity.org/wiki/TestDisk_Step_By_Step


How to plot on log-type axis with LibreOffice Calc

The option to use a logarithmic scale depends on the chart type: you won't see that option for the x scale if, e.g., you've selected "column" or "line". You need to select "XY (Scatter)" and then select "logarithmic scale" in the X axis properties:


Yes, Kodi should work just fine on Xubuntu or any Ubuntu flavor - I use it most often on Lubuntu myself. The desktop doesn't matter.

It sounds like maybe Kodi didn't quite install. You can check to verify whether it's installed by trying to launch it from the terminal. If you open up a terminal, you might be able to launch the program using the command kodi. Try that and see if the app will start.

I don't usually recommend adding software from third-party sources, but Team Kodi recommends installing from their PPA directly, which they maintain and update outside the normal Ubuntu software channels. If you can't get the one in the official repos to work on your device, you could try their method: http://kodi.wiki/view/HOW-TO:Install_Kodi_for_Linux#Installing_Kodi_on_Ubuntu-based_distributions


kernel 3.2.0-30-generic, doesn't support raedon ati drivers, Why?

Ati drivers works fine on my pc. Try purge drivers to default ones

sudo apt-get purge fglrx*

Then try use this steps http://www.upubuntu.com/2012/08/install-amd-catalyst-128-on-ubuntu.html. That worked for me fine. I had also some problems with the way of installing you linked here.


Where can I find a high-res PNG with transparency or a vector version of the new Ubuntu GNOME logo?

You can find the SVG and PNG (24x24, 32x32, 48x48, 64x64, 96x96, 128x128, and 256x256) files of the Ubuntu GNOME logo at https://wiki.ubuntu.com/UbuntuGNOME/Artwork/Graphics. Specifically:

SVG (cannot be uploaded to Ask Ubuntu unfortunately): https://wiki.ubuntu.com/UbuntuGNOME/Artwork/Graphics?action=AttachFile&do=get&target=roundel.svg

24x24:

48x48:

96x96:

128x128:

256x256:


How to check which Disk and Partition I am using to boot this system?

The designation (hd0,0) is from GRUB, the boot loader. In your example, above, hd0 refers to /dev/sda, and the ,0 refers to the first partition - making the boot device /dev/sda1.

There is a complete manual on GRUB from the GNU project.


It's easy to solve, but you need some tools before you can do it:

A Linux system with GRUB. A Live media should do it;
A spare USB drive (backup the data from it).

First, boot into the Linux system (it must have GRUB installed!). Use a tool such as GParted to format your USB drive as ext2. It must be ext2*!

When using GParted you should get your USB drive's device file path (should be something like /dev/sdb1). Take note of it, we'll use it.

Open a terminal window and run:

sudo umount -l /dev/sdb1

Replacing /dev/sdb1 with whatever you took note of. If the above command throws you an error such as "device is not mounted" just ignore it.

sudo mount /dev/sdb1 /mnt

sudo grub-install --root-partition=/mnt /dev/sdb

Replace /dev/sdb with what you took note of, but do not put the number (which is probably 1) in the end of the path. Also note the space between /mnt and /dev/sdb.

sudo umount /dev/sdb1

Remove the USB drive from the Linux box and plug it in your computer. Turn it on. When you see the grub rescue prompt, run

ls

That should show you all your drives/partitions. You'll have to find your USB drive. It will probably be (hd1,msdos1). Run ls (hd1,msdos1)/ (don't forget the /). If the output is boot/ then this is the correct partition. If you don't get this output, repeat with all the "msdoses" until you get it. Take note of the right one. I'll use (hd1,msdos1) as the example. Run:

set prefix=(hd1,msdos1)/boot/grub

then

insmod chainload

insmod ntfs

set root=(hdX,Y)

Here, replace (hdX,Y) with your Windows partition (you should know its name already).

chainloader +1

boot

That should boot you into Windows. My mission ends here; you'll have to repair Windows' bootloader but that's none of this forum's business. Hint: look for EasyBCD.

If you can't repair Windows' bootloader for some reason, plug in your USB drive and repeat the last six commands in the grub rescue prompt to boot Windows.


fail2ban: Creating a custom action that gives parameters to script

I found it. The solution was really simple: The url for the wget call has to go between quotes.

So
actionban = wget -q -O /dev/null server.de/fail2ban/ajax.php?action=ban&jail=<name>&ip=<ip>&failures=<failures>&time=<time>&logpath=<logpath>
becomes
actionban = wget -q -O /dev/null "server.de/fail2ban/ajax.php?action=ban&jail=<name>&ip=<ip>&failures=<failures>&time=<time>&logpath=<logpath>"


Menu and other theme elements displaying weird in applications (e.g. Terminal, Settings) on upgrade to Ubuntu 17.10

It seems the GTK+ theme you are using somehow got corrupted or is unsupported by the newer version.

To change the theme first install (GNOME) Tweaks by running

sudo apt install gnome-tweak-tool

Then open Tweaks and go to "Appearance" section. Select a different theme for "Applications" under Themes.


How to receive/read raw file sent using Gtkterm thru serial?

If you have a serial login from one ubuntu workstation (local) to another ubuntu machine (remote), you can send a raw file over gtkterm with the following:

First, check the md5sum of the file so that we can be confident we transferred it successfully. If the file you wish to send is binary (contains non-ascii text) then I recommend that you first base64 encode the data. For example

[local]:

user@local:~$ md5sum my_file.bin
9426054eb507e98605d7a6b94189168b  my_file.bin
user@local:~$ base64 my_file.bin > my_file.bin.base64
user@local:~$ gtkterm --port /dev/ttyUSB1 --speed 115200 &

[remote]:

user@remote:~$ cat > my_file.bin.base64

Now use the gtkterm menu to "send raw file" and select your file. You'll see every byte of the file echo'ed on the gtkterm window. When the file is finished sending press Ctrl+D in the gtkterm window to send a EOF to cat. You'll see a new terminal prompt pop up. Then base64 decode the file. Finally it's a good idea to check the integrity of the data.

[remote]:

user@remote:~$ base64 -d my_file.bin.base64 > my_file.bin
user@remote:~$ md5sum my_file.bin
9426054eb507e98605d7a6b94189168b  my_file.bin

Notes
Note that the file transfer will proceed at the rate of the serial connection. You can't feasibly send very large files this way. Furthermore (and especially if the serial connection doesn't support flow control) there's always the possibility of some dropped bytes.

*BONUS:

Once you've started cat > my_file.bin.base64 on the remote machine through gtkterm, you can bypass gtkterm to do the actual file transfer. For instance you can use plain ole cat:

[local]:

user@local:~$ cat my_file.bin > /dev/ttyUSB1

Or if you want a fancy progress bar give pv a try:

[local]:

user@local:~$ pv my_file.bin | cat > /dev/ttyUSB1

This technique will work with other serial terminal clients, including terminal based clients (i.e. creen, minicom, etc).


Change "power-button-action" comand for "hibernate" option in GNOME 3.18

This functionality was intentionally removed in commit 50564cde49ca2 (for bug 753713). After some discussion, it's returned in gnome-settings-daemon
3.20.

Unfortunately, 3.20 is not in the 16.04 ubuntu repos (however you can see that there is a 3.20 release for Yakkety 16.10).

gnome3-staging ppa contains an appropriate package (3.20.1-2ubuntu1~ubuntu16.04.1), but I believe that requires updating your entire gnome installation to the staging stream (which is like a beta).

I don't know if you can grab a deb of the right package and install that somehow.

This question has alternative instructions for how to modify the code and compile a working version.

I'm sorry there isn't a better answer for this and that these disruptive changes were introduced in a LTS release. You can vote on this bug to get 3.20 released in Xenial.


Is there any app like virtual drive of farstone?

You can create ISOs of disks  with

dd if=/dev/cdrom of=~/disk.iso

You will likely have to adjust the path of the cdrom drive to meet your system (I have seen them named all kinds of things.

To mount an existing ISO

mount -o loop ~/disk.iso /media/path

Where media path is the spot you wish to mount it.


How to set Dolphin selected entry active?

The reason this happens is because there is an option in KDE that tells it to change the color when it loses the selection. Since the list view on the left is a different part of the window than the view on the right, the color changes when you move between them. You can see the same thing in other applications, such as in the system settings lists, and more.

To change this, open up system settings (ALT+F2 -> "systemsettings", or the [K] menu -> system settings), then go to "Application appearance" and select "Colors". In the "Options" tab, uncheck the "Inactive selection changes color" setting, and click apply. You should notice that the color in the system settings list view on the left will change to "normal" coloring instantly when you apply this setting. The same setting will then apply across all KDE applications.


Ubuntu 18.04.4 LTS stuck on black screen 2 days after OS being installed (won't start GDM or lightdm)

For anyone having similar problems, after trying a lot of stuff, running these commands solved it:
sudo dpkg --configure -a
sudo apt -f install
sudo apt update
sudo apt dist-upgrade

As this was probably caused by unattended upgrades, I disabled unattended upgrades after that.


Importing Google contacts to kaddressbook?

To transfer your contacts over simply do the following:

Go to your gmail account and export you contact list as .csv. After this, simply go to your e-mail program and select File > Import. Contacts should be somewhere in this list.

Note: I may not have all of the specific detail correct. If someone else sees that I have misinformed in this post, please edit it. Thank you!


Cannot add proxy exceptions on Ubuntu 15.04

The option is available via gconf-editor

or with dconf-editor

sudo apt-get install dconf-editor

or via your Network sessings


Strange root cronjob - I've never set it

Yes, it's normal.

From man run-parts

NAME
       run-parts - run scripts or programs in a directory

In your case, run-parts run all scripts in the folder /etc/cron.hourly

My /etc/cron.hourly is empty therefore /etc/cron.daily

% ls -og /etc/cron.daily
total 88
-rwxr-xr-x 1   311 Dez 29 00:15 0anacron
-rwxr-xr-x 1   625 Mär  9 12:55 apache2
-rwxr-xr-x 1   376 Mär  2 10:50 apport
-rwxr-xr-x 1 15481 Nov  3  2014 apt
-rwxr-xr-x 1   314 Feb 10 11:23 aptitude
-rwxr-xr-x 1   355 Dez 10  2014 bsdmainutils
-rwxr-xr-x 1   384 Okt 24  2014 cracklib-runtime
-rwxr-xr-x 1   532 Mär 23 16:31 debsums
-rwxr-xr-x 1  1597 Jan 17 02:10 dpkg
lrwxrwxrwx 1    47 Jun  8 22:59 google-chrome-beta -> /opt/google/chrome-beta/cron/google-chrome-beta
-rwxr-xr-x 1   372 Jan 22  2014 logrotate
-rwxr-xr-x 1  1293 Jan  1 00:16 man-db
-rwxr-xr-x 1   435 Nov 18  2014 mlocate
-rwxr-xr-x 1   249 Dez  2  2014 passwd
-rwxr-xr-x 1  2417 Mai 13  2013 popularity-contest
-rwxr-xr-x 1   982 Nov 30  2014 rkhunter
-rwxr-xr-x 1  2798 Feb  2 05:26 spamassassin
-rwxr-xr-x 1   441 Okt 25  2014 sysstat
-rwxr-xr-x 1   728 Mär 27 03:07 tomcat7
-rwxr-xr-x 1   214 Jan 20 10:39 update-notifier-common

The script starts with the default definitions in /etc/crontab

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

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

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


Lenovo Ideapad 720S and Ubuntu 17.10 does not see rtlwifi NIC rtl8821CE

I purchased a Lenovo Ideapad 720S equipped with an AMD Ryzen 7 processor and a 520Gb SSD and other features.  It was delivered with Windows 10.

There is a very useful disk manager in Windows that allowed me to reduce the size of the Windows partition, maintain the Windows 10 installation and create a dual boot Windows 10 / Ubuntu system. Here is a good link that explains how to set this up: https://www.tecmint.com/install-ubuntu-16-04-alongside-with-windows-10-or-8-in-dual-boot/

I downloaded Ubuntu 17.10.1 and created a bootable ISO thumb drive.  Booting the Lenovo 720S with this thumb drive installed took a bit of work.  I may try to list the details here but there are a number of youtube videos on how to get the usb drive to show up on the boot menu in the UEFI bios menu.

Once I installed Ubuntu on the new partition there was no network connectivity and the setup menu showed no network interface card installed.  The Realtek drivers are not built into the Ubuntu kernel.

To correct this problem I downloaded the rtl8821ce source code from github.com and manually downloaded the debian packages from the packages.ubuntu.com artful AMD64 repositories and used dpkg to install them.

Following this post is the list of packages that I downloaded to enable the build of the rtl8821ce kernel module.  I changed the TopDIR line in the Makefile to point to the rtl8821ce directory where the Makefile resides.  After that I ran:

make all
sudo make install
sudo modprobe -a 8821ce

That's it, it works fine.  However, once I was online and updated Ubuntu, the system built a new kernel and I had to rerun the above commands after the system rebooted.

build-essential required packages for 17.10.1:

binutils-aarch64-linux-gnu_2.29.1-4ubuntu1_amd64.deb
binutils-arm-linux-gnueabihf_2.29.1-4ubuntu1_amd64.deb
binutils-common_2.29.1-4ubuntu1_amd64.deb
binutils-x86-64-linux-gnu_2.29.1-4ubuntu1_amd64.deb
binutils_2.29.1-4ubuntu1_amd64.deb
build-essential_12.4ubuntu1_amd64.deb
bzip2_1.0.6-8.1_amd64.deb
cpp-7_7.2.0-8ubuntu3.2_amd64.deb
cpp_7.2.0-1ubuntu1_amd64.deb
dpkg-dev_1.18.24ubuntu1_all.deb
g++-7_7.2.0-8ubuntu3.2_amd64.deb
g++_7.2.0-1ubuntu1_amd64.deb
gcc-7-base_7.2.0-8ubuntu3.2_amd64.deb
gcc-7_7.2.0-8ubuntu3.2_amd64.deb
gcc_7.2.0-1ubuntu1_amd64.deb
libacl1_2.2.52-3build1_amd64.deb
libasan4_7.2.0-8ubuntu3.2_amd64.deb
libatomic1_7.2.0-8ubuntu3.2_amd64.deb
libattr1_2.4.47-2build1_amd64.deb
libbinutils_2.29.1-4ubuntu1_amd64.deb
libbz2-1.0_1.0.6-8.1_amd64.deb
libc-dev-bin_2.26-0ubuntu2.1_amd64.deb
libc6-dev_2.26-0ubuntu2.1_amd64.deb
libc6_2.26-0ubuntu2.1_amd64.deb
libcc1-0_7.2.0-8ubuntu3.2_amd64.deb
libcilkrts5_7.2.0-8ubuntu3.2_amd64.deb
libdb5.3_5.3.28-13.1_amd64.deb
libdpkg-perl_1.18.24ubuntu1_all.deb
libgcc-7-dev_7.2.0-8ubuntu3.2_amd64.deb
libgcc1_7.2.0-8ubuntu3.2_amd64.deb
libgdbm3_1.8.3-14_amd64.deb
libgmp10_6.1.2+dfsg-1_amd64.deb
libgomp1_7.2.0-8ubuntu3.2_amd64.deb
libisl15_0.18-1_amd64.deb
libitm1_7.2.0-8ubuntu3.2_amd64.deb
liblsan0_7.2.0-8ubuntu3.2_amd64.deb
liblzma5_5.2.2-1.3_amd64.deb
libmpc3_1.0.3-2_amd64.deb
libmpfr4_3.1.6-1_amd64.deb
libmpx2_7.2.0-8ubuntu3.2_amd64.deb
libpcre3_8.39-5ubuntu3_amd64.deb
libperl5.26_5.26.0-8ubuntu1_amd64.deb
libquadmath0_7.2.0-8ubuntu3.2_amd64.deb
libselinux1_2.7-1_amd64.deb
libstdc++-7-dev_7.2.0-8ubuntu3.2_amd64.deb
libstdc++6_7.2.0-8ubuntu3.2_amd64.deb
libtsan0_7.2.0-8ubuntu3.2_amd64.deb
libubsan0_7.2.0-8ubuntu3.2_amd64.deb
linux-libc-dev_4.13.0-37.42_amd64.deb
make-guile_4.1-9.1_amd64.deb
make_4.1-9.1_amd64.deb
patch_2.7.5-1build1_amd64.deb
perl-base_5.26.0-8ubuntu1_amd64.deb
perl-modules-5.26_5.26.0-8ubuntu1_all.deb
perl_5.26.0-8ubuntu1_amd64.deb
tar_1.29b-2_amd64.deb
xz-utils_5.2.2-1.3_amd64.deb
zlib1g_1.2.11.dfsg-0ubuntu2_amd64.deb


Create keyboard shortcuts for certain symbols (like logical operators)

The closest I have come to this so far is to use (on lubuntu 14.04.1) <ctrl><shift>U then type the code say 00ac for ¬ which I found by using the character map.
This is pretty quick way of doing it, if you know the code and remember each one. If I find another way I will update.


Why are applications closing in GNOME Classic when I minimise them?

Well, if you're clicking on the wrong button, then you can correct it by clicking the right one. Literally. In Windows, the close-button is to the right and the minimize button is to the left. Since Ubuntu has those controls on the left side of the window, the close button is to the left and the minimize-button is to the right.

Is it possible you're just clicking the wrong button? It's the only immediate explanation I can think of.


How can I install the module gateways and find the adress of my routeur

The gateway() is only available since netifaces 0.10.0. Try instead to call the route command from a subprocess:

$ python -c 'import subprocess; print subprocess.check_output(["route", "-n"]).splitlines()[2].split()[1]'
192.168.1.1


How to automatically mount swap partition?

This is your previous /etc/fstab:

# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
# / was on /dev/sda2 during installation
UUID=33a0fc77-06b0-406c-95fd-15bf7033b619 /               ext4    errors=remount-ro 0       1
# a swapfile is not a swap partition, no line here
#   use  dphys-swapfile swap[on|off]  for that

Now, to add your swap partition to it, do the following:

Open Gparted.

Right-click on the swap partition and click on Information.

Note down your UUID.

Now, modify your previous /etc/fstab, by doing the following:

Open the file by typing the command:

sudo -H gedit /etc/fstab

Then, add this line,

UUID=THE UUID YOU OBTAINED FROM ABOVE none       swap   sw         0     0

after the line

# a swapfile is not a swap partition, no line here

Save the file and restart your computer. Everything should be working now.


External USB drive won't stop after shutdown

Also, I re-read again before posting, and I think I mis-interpereted your question. By
after shutdown, do you mean after the PC shuts down, or the process of shutting down, before the PC turns itself off?

I am assuming you have a PC, not a laptop. When you shut down your PC, there s still some power flowing through the SMPS (also called the PSU). Thats the reason you can see the hub lit. As for the HDD, it might be connected to the same spike-strip/board as the PSU. After you shut-down the PC, turn off the wall socket too, and see if that works.


How would I create an alias to run a game? (Minecraft)

The reason why your code is not working is because you have got an extra space in the wrong place, try changing your code to this, saving, and then launching a new Terminal session and trying again:

alias runmc="java -jar /root/.minecraft/launcher.jar"

Although it is recommended that instead of declaring aliases in the .bashrc file that you instead create them in a file called .bash_aliases, if this file does not already exist you should then create it in your home directory where .bashrc is located.

And to make sure that the aliases which you put into the .bash_aliases file are actually picked up by the system, make sure that this code is not commented out in the .bashrc file:

if [ -f ~/.bash_aliases ]; then
    . ~/.bash_aliases
fi


Play, Pause, Next, Stop on keyboard - how to set which app use it?

use keytouch-editor

  KeyTouch Editor should be used to create configuration files for
  KeyTouch, a program to configure extra function keys in multimedia
  keyboards, in case your keyboard is not yet supported.


Is it worthy upgrading to 12.10 from 12.04 for a web developer?

The support means that canonical will still be providing security updates to the software, that means that packages such as apache2, php, and every package you have installed will still be receiving security updates. Note that security updates means fixes and paches for software malfunction, but it will not update a package to a new version, for example, if a new version of apache comes out, you will not get that installed unless you upgrade your ubuntu version.

This is actually good for servers, because if for example you make a web app that works great with a certain version of php, and a certain version of apache and mysql, you dont want those to be upgraded at anytime and possibly break something and give you a hard time trying to find the problem. But that doesnt meen that you will not get security updates for a long time (if you dont update) because if you use a LTS version, you will still be getting those security updates for 5 years without the need of updating.

From what i can say of the other side of the coin is that the upgrade from 12.04 to 12.10 is NORMALLY seamless (except if for example, some of your apps are not compatible with new versions of software as mentioned above). It appears it's not because here in askubuntu and most forums you will only hear the bad stories of people whose upgrade went bad and they'r seeking for help, because people who succeed normally dont make threads saying they succeed.

So to conclude, i'd recommend to stick with LTS version if your computer is a dedicated server which cannot afford to go down a few hours. If that server is also a desktop computer which you use for other desktop apps and you turn it off once in a while, and you always want to have the most newest possible versions of software, you might be good updating.


configure: error: Can't find Tk configuration definitions

The APT will help you as gtkwave is packaged (so we have both source-code and binary packages in the repositories):

sudo apt-get build-dep gtkwave

and then retry. You can read more about build-dep sub-command in man apt-get.

Also consider to use Checkinstall by sudo checkinstall make install instead of sudo make install on the last stage.


This looks like the typical problem where the server does not send the complete certificate chain, as explained here.

But this time it has an additional and interesting twist: if you check out the site with SSLLabs it does not report any chain issues. If you use openssl s_client... to connect to the site it also shows that the site sends the full chain (including the root certificate, which it should not). But if you take other tools to check you might fail instead because the site sends only the lead certificate and misses the necessary chain certificates.

It took me a while to figure it out, but at the end it turned out to be a misconfigured server: As long as you use IPv4 the server returns the full certificate chain, but if you use IPv6 the server returns only the leaf certificate. This means that all the successful tools used IPv4, all the tools with errors used IPv6. As for the browsers: the failed browser must have used IPv6, the other might have used it too, but might have this certificate cached from visiting other sites using the same chain certificate.


Create a bridged interface on separate NIC but same subnet as host gateway

In the end I just replaced the eth1 config with

auto eth1
iface eth1 inet manual

... crossed my fingers and ran reboot. The system came back up with the eth0 and br0 interfaces correct though the "solution" isn't one I was at all comfortable with and I'm sure a better answer exists.


Change size of LibreCalc scrollbars Version: 6.2.2.2

I was lucky as the files suggested already existed (gtk.css) in the location, otherwise follow as below.  So, I just edited the value to 20px

$ mkdir -p ~/.config/gtk-3.0/
$ touch ~/.config/gtk-3.0/gtk.css

scrollbar {
    min-width: 15px;
    min-height: 15px;
}

I opened my home folder
changed to view hidden files
opened .config directory
opened gtk-3.0 directory
saw the file gtk.css and double clicked it.
A text editor opened and I changed the values to 20px
save and exit.

If you don't have that file you can create one by opening any text editor and type exactly as it is above starting with....  scrollbar {  and then save the file as gtk.css in that location in the gtk-3.0 directory.

Or, follow the mkdir directions.

d


What you installed is the package containing documentation of the plugin
ublock-origin-doc
'doc' for documentation

To install the plugin, use this:

- For firefox
sudo apt install webext-ublock-origin

- For Chromium
sudo apt install chromium-ublock-origin

More information:
https://packages.ubuntu.com/search?suite=all&section=all&arch=any&keywords=ublock-origin&searchon=names


using diff to compare a file and a directory

You're nearly right.

/tmp is better practice:

#!/bin/bash

while:                                            # Go forever.
    ls /media/<USERNAME>/ > /tmp/media.diff
    sleep 10
    ls /media/<USERNAME>/ > /tmp/mediacompare.diff
    diff /tmp/media.diff /tmp/mediacompare.diff
done


This is rumored to be a known issue with the AWS AMI of ubuntu 14.04 (~May 2017). The fix is to restart until you get lucky or manually assign the IP address via something like: ifup lo; ip addr add 127.0.0.1/8 dev lo when it happens.


Problem forcing GNOME Terminal to stretch across multiple monitors

This sounds like a bug and you should report the bug.

At first glance it looks like a design bug, something somewhere should allow you to make a window go over multiple monitors. Like F11 does for a single one.

But the second point is the corruption. Which looks very much like an error which should be fixed.


I was able to work around this by installing redshift, and using the command line to set my screen temperature:
sudo apt-get install redshift
redshift -P -O [temperature value between 1000 and 25000]

Redshift also has commands for setting the temperature based on longitude & latitude and time of day. A good tool if you're using lightdm!


All right. I've managed to recover what seems to be all of the information from the encrypted portion of my hard drive. I was able to use information from this page and this page to do so. I will describe the process below.

First, I booted my machine, with the problem hard drive in place, using Sytem Rescue CD. I was able to use # cat /proc/partitions to find the encrypted portion was sda5, which I confirmed with # cryptsetup -v luksDump /dev/sda5.

I then opened the encrypted disk using # cryptsetup -v luksOpen /dev/sda5 sda5_crypt and entered my password to unlock the volume. # lvdisplay now revealed /dev/ubuntu-vg/root and /dev/ubuntu-vg/swap1. I change the volume groups for these with # vgchange -a y ubuntu-vg, and then made a mount point with # mkdir /tmp/disk and # mount /dev/ubuntu-vg/root /tmp/disk.

This allowed me to get into the drive, but not my private information in my profile. In /tmp/disk/home/USERNAME/ I can see a /.Private, which is where all of my information is hiding. # ecryptfs-recover-private prompted me for my password, then created a new /tmp/ directory.
At this point, I mounted an external hard drive:
# mkdir /tmp/disk2
# mount /dev/sdc2 /tmp/disk2
# cd /tmp/disk2
# mkdir restore

It was then a simple case of using # cp -r /tmp/ecrypt.N1something /tmp/disk2/restore. I believe I might have been able to just remove the encryption from the disk using my specific variations of this, but I just wanted a backup of everything (which I know I should have done before, anyway) and I was able to use my profiles and files in a fresh intall.


Why do Thunderbird emails to a particular type of addresses consistently bounce?

In Thunderbird open the Tools menu and then go to Options -> Advanced -> General -> Advanced Configuration -> Config Editor. Confirm the warning that you will be careful and then press the keyboard combination Ctrl + F. This opens a search window. Fill in the window: mail.strictly_mime. Press Enter, and you come out with that preference. Adjust it to true.Source


There could be a number of reasons for a double click, sometimes it's hardware failure and sometimes it's software. If you tend to get a double click every time then it's more likely to be software.

You can check your mouse configuration from the command line by typing in:

xinput list

This should give you a list of mice connected to your system, one might be your dell touchpad. If you see two entries that seem to be the same device, then that might be the issue. Of course it's hard to know without your showing the results of the above command in your original post.

Either way you should certainly report the issue if it remains by typing in the following command:

ubuntu-bug xorg

Explain in the bug your problems.


restart network interface after editing /etc/network/interfaces

After editing /etc/network/interfaces, the usual way to get the system to re-read the file and use the changes is to do:

sudo ifdown wlan0 && sudo ifup wlan0

Of course, substitute the relevant interface if it's not wlan0.

I assume Network Manager is not present on this system. If it is, you are better off to make your changes there rather than /etc/network/interfaces.


Ubuntu 11.10 fresh install in VirtualBox won't boot

Probably your system is not enough to install ubuntu in vm

burn  iso file into cd or usbstick
and try it

if you want to install ubuntu as vm you  may need to upgrade your system and provide enough ram and other settings


It will only blacklist per cd.
So if you insert another cd/dvd it will show up again.

To remove the blacklisting see this answer:

How can I remove launcher drive icons?

The section on dconf-edtor is the easiets.
Just set the blacklist on the device to ''


Xorg: Number of created screens does not match number of detected devices

Ok, for some reason, deleting the .Xauthority file did the trick (I can't find the thread again which said that, but it was here on askubuntu.com), and I was able to log in again. Unfortunately I already did remove and reinstall so many different components, that I had some strange behaviours (for example new system sounds), that I decided to reinstall.

Edit: This was the thread.


How can I search for files by file size using Nautilus?

I'm not sure how using nautilus, usually when you need a more sophisticated file finding capabilites, most people use  the shell program find.
this command finds all files bigger than 100Megabytes and prints what each files size is

find <the dir you want to look in> -size +100M -exec ls -lh {} \;

obviously replace <the dir you want to look in> with the path to the dir you want to search in.


Using USB stick to save and access steam games

I wish you could turn a flash drive into a hard drive :P

But however you could use a usb for steam games (I think), all you have to do is create a soft link. Run this command replacing {YOUR_USERNAME} with your username and {YOUR_USB_PATH} with where your usb is mounted:

ln -s {YOUR_USB_PATH}/Steam /home/{YOUR_USERNAME}/.local/share/Steam

WARNING: This command is not tested, use at your own risk...

NOTE: How to find where your usb is mounted:

Click on your USB in the sidebar.
In the new window that opens, press CTRL+L
The text at the top is where your usb is mounted, copy it and replace {YOUR_USB_PATH} in the command with it...


LAN connection does not work after upgrade to 18.04

I start from the principle that your computer is connect to your home LAN network with an ISP Box. You don't have any IP address on your Ethernet interface but the interface link seems to be up.

Please run the command sudo dhclient -v enp0s31f6 in a terminal (this command will try to get an IP address from a DHCP server: your box).
Then check if you receive an IP address (command ip address or ifconfig). If you doesn't get an address, please copy & paste the output of the command dhclient.
If you correctly get an IP, then test your internet connectivity:

ping 8.8.8.8 -I enp0s31f6

8.8.8.8 is the address of Google’s DNS.
If your not able to ping this address, then check the routes with the command ip route. Ensure that the IP of your box is the default gateway of your computer.

Please check the configuration of the network manager. Go to Parameters → Network → Default → click on the gearwheel → IPv4, select Automatic (DHCP) and apply the change.


graphicsmagick : Depends: libgraphicsmagick-q16-3

The package I was looking for is located in the universe repo, quoted in bold here:

  Package: libgraphicsmagick-q16-3 (1.3.23-1build1) [universe]

This adds not just the universe repo but the main, restricted and multiverse and for which ever version of Ubuntu you have.

sudo add-apt-repository "deb http://archive.ubuntu.com/ubuntu $(lsb_release -sc) main universe restricted multiverse"


When I'm Using "sudo apt update" I'm getting

I'm not sure if you removed the actual repository and replaced it with a custom one, but the first one (assuming that's what you have set up) is not a real repository.

You can remove the repository in one of the following ways:

software sources
removing the line for the repository from /etc/apt/sources.list
if it's not in the above file, look in /etc/apt/sources.list.d directory for the ppa and remove the appropriate file (you could use the rm command to remove a specific file, but be careful not to delete something you don't want to delete... if you're new, create a test directory and try using the rm command to delete files from it to verify you don't delete the wrong thing, also avoid using sudo when practicing the command to avoid removing important files)

As for the security related issue, I'll need to know which version of ubuntu you have (I'll edit the answer accordingly)


New Ubuntu installation, dual OSX boot, MISSING OPERATING SYSTEM

The partition that you installed Linux into was apparently not set as bootable. You need to make the partition active and bootable first, it's a flag that you set for the partition.

If you can start an Ubuntu Live system from USB or CD, then start the Disk utility, select the partition that you installed Ubuntu on, click on the gears button/icon and then "Edit partition". There's a checkbox to make it bootable. If the partition is set to be bootable, it will have a star attached to it in the graphic representation.


Theorically when I create data in /tmp/foo/ it doesn't have to be listed on /mnt/tmp/.

False.

Private mounts do not propagate filesystem mount events. That is, if you mount something within an entry in a private mount, it won't be reflected in the original.

The four related types of mounts (shared, slave, private, unbindable) deal only with how mount events related to the mounts propagate.

Have a look at the kernel documentation (in Documentation/filesystems/sharedsubtree.txt). The examples should make it clear.


How do I fix Kubuntu Bluetooth problem (by fixing source code)?

I have experienced a similar issue on Ubuntu 14.04.

The following worked for me

Turn on bluetooth on your machine, but don't connect your device
Run sudo pactl load-module module-bluetooth-discover from the command line. It should return a positive integer.
Connect to your headphones.

If the above steps alone do not resolve your problem, you can try using blueman instead of the default KDE utility.

sudo apt-get install blueman
blueman-applet
Pair your device
Connect to Audio Sink


Need help installing ubuntu and I can't figure out how to stop live-booting

Have you tried booting off the Live USB and choosing "Install Ubuntu" at the wecome screen yet?

There are quite a few good guides on how to install Ubuntu around, for example this one.


Ubuntu no longer utilizes the /etc/resolv.conf. Your guess is as good as mine as to why. So, to set up DNS correctly, try setting your DNS settings inside of the Network Manager GUI. You can get to this by clicking the networking icon in the upper right and going to Network Settings. From here, select your DSL connection (I'm assuming it's ethernet, but it could be WiFi) and then go to "Options..." and go to the IPv4 settings.

Just a side thought, I don't believe you should have to configure PPPoE client side. Shouldn't your modem take care of that for you? It's been a while since I dealt width direct-to-modem computers, so I could be wrong.


Ubuntu One Music app for Android not displaying artwork

Our service does not yet support sending the artwork. We've not implemented the needed bits on the server for this (we only implement a subset of the subsonic API).


Custom keyboard shortcut doesn't work with Calculator + modifier

If you know the command to open the calculator, you should set the keyboard shortcut in compiz.

You should probably not use the generic method offered by unity as this method is unreliable and the compiz method is very reliable.

First, install ccsm:

sudo apt-get update
sudo apt-get install compizconfig-settings-manager

Now, press ALT + F2 type ccsm and then press ENTER.

Enable the "commands" plugin and then click on the "commands" plugin to set the settings.

In the category for "command line 0" type the custom command.

Click on the "key bindings" tab and on the row for "run command 0", click where it says "disabled" to set the keys you want to use to run your custom command.

Click the box for "enabled" on the popup window that appears. Click on "grab key combination" to set the keys and then click "OK" when you are done.


/var/cache/apt dir filling with daily pkgcache.bin.xxxyyy files

I have been doing some research on this.
It appears that this may be a recognized bug should clean pkgcache.bin.* and srcpkgcache.bin.*

There are differences.

It appears that running apt-get creates pkgcache.bin.[random]  files
but I don't run apt-get everyday.

This problem started spontaneously.

I can't find a command that will allow me to identify the program that is creating these files, but it can only be apt-get.  I don't know what is triggering apt-get to run.

I am going to fix this problem by running apt-get clean as a daily cron jog.  It is a bit like asking the burglar to guard the house. It is not a good answer because it doesn't fix the root cause.


What password do you use when your installing or delleting app?

To play multimedia files you need to install the codecs. In Ubuntu its as easy as:

sudo apt-get install ubuntu-restricted-extras

Next, it prompts for a password. This password is the same password you used to login into your Ubuntu with.


Ubuntu uses different runlevels than other Linux distros.

It also uses rc*.d instead of inittab ( * going from 0 to 6). Open /etc/rcS.d/README & /etc/init.d/README to know more.


How do I disable the 'open' command, knowing that it is just a link to the 'openvt' binary?

The reason that /bin/open takes precedence over /usr/bin/open on your system is presumably that /bin comes before /usr/bin in your PATH. To examine your PATH, you can run echo $PATH. The elements are separated with colons.

You got the command you wanted when you used (I assume) sudo to run open or to start a root shell in which you ran it, because sudo uses its own PATH, defined in /etc/sudoers as secure_path, which on my system is

/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin

As you can see, /usr/bin comes before /bin.

I think your finding is odd, because as far as I know, /usr/bin usually comes before /bin. Your users may not have the same problem as you.

However, to be safe, you could have your program be installed in /usr/local/bin, which should always come before /usr/bin and /bin in a user's PATH so that software built locally takes precedence over other commands with the same name.

Even safer, as steeldriver suggested, have your users (or your installation script) define an alias for your tool in a shell configuration file such as ~/.bashrc. Aliases always take precedence over other commands. By putting an alias in your ~/.bashrc you ensure that it will only be known to interactive shells, and will not interfere with other programs.

Deleting the symlink could cause problems if programs try to execute /bin/open expecting openvt, and may be unreliable, as pointed out by steeldriver, because the symlink might be recreated when the package that provides it is updated or reinstalled (i.e. fairly unpredictably).


Try going into "recovery mode" from the GRUB boot. Then, run the following commands:

sudo apt-get update
sudo apt-get upgrade

and see if that gets you any more progress. If not, let us know what error output messages you get.


What 2D/3D engines and game SDKs are available?

SDL

Simple DirectMedia Layer is a cross-platform multimedia library designed to provide low level access to audio, keyboard, mouse, joystick, 3D hardware via OpenGL, and 2D video framebuffer. It is used by MPEG playback software, emulators, and many popular games, including the award winning Linux port of "Civilization: Call To Power."

SDL supports Linux, Windows, Windows CE, BeOS, MacOS, Mac OS X, FreeBSD, NetBSD, OpenBSD, BSD/OS, Solaris, IRIX, and QNX. The code contains support for AmigaOS, Dreamcast, Atari, AIX, OSF/Tru64, RISC OS, SymbianOS, and OS/2, but these are not officially supported.

SDL is written in C, but works with C++ natively, and has bindings to several other languages, including Ada, C#, D, Eiffel, Erlang, Euphoria, Go, Guile, Haskell, Java, Lisp, Lua, ML, Objective C, Pascal, Perl, PHP, Pike, Pliant, Python, Ruby, Smalltalk, and Tcl.

SDL is distributed under GNU LGPL version 2. This license allows you to use SDL freely in commercial programs as long as you link with the dynamic library.

Installing sdl library in ubuntu

Install bulild essentials

sudo apt-get install build-essential
Install sdl libraries

sudo apt-get install libsdl1.2-dev libsdl1.2debian


Cannot Connect to Internet after first Disconnect

I finally figured it out. A few days prior to the issues, I had configured a VPN using OpenVpn. I realized I had only been using it interactively through the terminal, but when I rebooted my laptop, it ran in the background as a daemon. The first time I disconnected, it never recovered and I was left in the state that I described.

I just turned the autoconnect in init.d to false, restarted, and everything works now.


The Package for gnome-power-preferences is gnome-power-manager.
The Package for gnome-control-center is gnome-control-center

 $dpkg -S /usr/bin/gnome-control-center
 gnome-control-center: /usr/bin/gnome-control-center

 $dpkg -S /usr/bin/gnome-power-preferences
 gnome-power-manager: /usr/bin/gnome-power-preferences


How do I rotate my logs despite having running processes?

The running process most probably prevents the logs from being rotated. You have two options. Either restart the process (sidekiq) in the postrotate section or use the copytruncate option to truncate the original file in-place instead of deleting it.


How to fix ahead disk mounting / ahead of time problem

(Solution taken from question body)

  On boot I pressed Shift after I saw "GRUB starting", in the grub menu I selected the second entry. I could see from the messages that the problem was on the /boot partition, I ran fsck and fixed it.


Network bridge, 'Waiting for network configuration', Ubuntu 14.04

I found the solution here: https://help.ubuntu.com/lts/serverguide/network-configuration.html#bridging

I needed the package:

sudo apt-get install bridge-utils

and the /etc/network/interfaces had to be:

auto lo
iface lo inet loopback

auto br0
iface br0 inet static
        address 192.168.0.10
        network 192.168.0.0
        netmask 255.255.255.0
        broadcast 192.168.0.255
        gateway 192.168.0.1
        bridge_ports eth0 eth1
        bridge_fd 9
        bridge_hello 2
        bridge_maxage 12
        bridge_stp off

and the br0 interrface needed to be brought up using:

sudo ifup br0


Can Grub boot multiple Ubuntu desktops - Unity, Mate, Xfce, Gnome x.xx, etc?

Yes, you can have multiple desktop environments, as they are called. You'll need to get the package names for the ones you want to install, but switching between them is rather easy.

After installing a new DE, logout, and click the Gear icon near the password box. Choose the new DE and login.

You may have issues with incorrectly applied themes, but that's the risk of multiple DEs.


Make fan speed change permanent with aticonfig

I wrote a little ruby script which exactly does that. Maybe you want to translate it into plain bash, though. You can execute it on startup but my purpose was to have a continuous temperature based fan speed adjustment so I call it every 2 minutes with cron.


How to recover data from an encrypted hard drive on a dead laptop?

I am assuming that you used the "Encrypt the new Ubuntu installation" or its manual equivalent; that is, your hard disk is encrypted by LUKS and in the encrypted container you have an LVM volume group.

Before starting, make sure that you have cryptsetup and lvm2 installed; if not, install them:

sudo apt-get install cryptsetup-bin lvm2

Take the drive out and put it into a USB enclosure.
Connect it to a working computer running Ubuntu or any other Debian derivative; you can even use a live DVD or USB flash drive for this. Say that the disk is seen by the system as /dev/sdb.
Find out which partition on the disk is the LUKS container:

for p in /dev/sdb*; do
  sudo cryptsetup isLuks $p && echo $p is a LUKS container
done

For example, suppose that you found out that /dev/sdb2 is a LUKS container. Open it:

sudo crypsetup luksOpen /dev/sdb2 old-hard-disk

LVM should automatically detect the logical volumes; see if it did so with

sudo lvs -o full_name,size,seg_pe_ranges

If not, you may have to trigger LVM recognition with sudo vgchange -aay.
Now you have the logical volumes in /dev/mapper. Mount them onto some directories.


Not able to fully download Timeshift in Ubuntu 18.04.3 LTS

Timeshift is already installed. Now go ahead and use it.


Touchpad track speed increases in dual monitor setup

You're not the only one to experience this and unfortunately there is no fix. Users have reported this behaviour since 2010 and it has been an open bug since 2011.

Having explored the various suggestions in those links, until this bug is fixed, I think the only way is to adjust the speed manually each time


How do I sort folders by actual size, instead of amount of sub-folders or files

At least there is a GUI tool called baobab which you pretty sure have to install. I am sure there are more GUI tools out there. Just use your favorite search engine to find others.

On the command line, there is ncdu which does the job you want. Otherwise you could use plain command line tools like follows.

du -h --max-depth=1 <folder-to-check> | sort -h
du -h --max-depth=1 /etc/ | sort -h

I think all of them will output files and directories.


Hot Corners Musical Sequence Command Script

I used eval to execute the command and:

var=$(${commands["$s"]}) got changed to

var=$(${commands["$pattern"]}) because I was refering the file content instead of the actual pattern.


I found a fix for anyone else who is having this issue.

First get into terminal and type gksudo gedit etc/default/grub.
Next, the grub.cfg file should pop up. Find GRUB_CMDLINE_LINUX="" and within the quotes type in i8042.reset i8042.nomux i8042.nopnp i8042.noloop.

So it should look like this:

GRUB_CMDLINE_LINUX="i8042.reset i8042.nomux i8042.nopnp i8042.noloop"

Hit save.
Next, you need to open up another terminal window and update grub by typing in sudo update-grub and finally restart.

This worked for me on Ubuntu 16.04 daily with 4.5 RC7. Credit goes to MrZackehhSoul.


Ubuntu misindentifies external monitor - how do create a new monitor definition with a correctly sized viewport?

You can either set it in some GUI app but I'm not sure about the level of customization or using a command-line tool xrandr:
http://manpages.ubuntu.com/manpages/wily/man1/xrandr.1.html
https://wiki.ubuntu.com/X/Config/Resolution


How to capture output from a command and pass it on to a variable in csh scripting?

The syntax for variable assignment in csh is set variable = value, so
set root_part_id = `gpart show | grep zfs | awk '{print $3}'`

Note that awk is quite capable of pattern matching so you could omit the grep and use awk '/zfs/{print $3}' instead.


Add shopt -s autocd to your ~/.bashrc.
Also, you might want to run man shopt in terminal for more useful options.


Why am I getting the error E: Package php5-gd has no installation candidate when trying to install php5-gd?

My reputation isn't big enough to comment, but here is what I wanted to say:
Did you try adding another mirror to your sources? Example:
create a new file called /etc/apt/sources.list.d/alternative_Repo.list containing this:

deb http://us.archive.ubuntu.com/ubuntu/ lucid main restricted
deb-src http://us.archive.ubuntu.com/ubuntu/ lucid main restricted

This will make sure that your package manager has access to an up-to-date official mirror in case your main mirror is lagging behind.

I looked at https://launchpad.net/ubuntu/+archivemirrors and kernel.org is quite behind in many countries. Due to how mirrors works, they can't be up to date all the time.
In the netherlands, as example, it's pretty bad:
Kernel.org http ftp rsync  1 Gbps  Last update unknown

I hope it helps!


LLVM-3.1 libLLVMSupport.a undefined reference to `dladdr'

I asked (and answered) a similar question on Stack Overflow. Adapting my answer from that question to yours:

The library requiring the symbols is included by -lLLVMSupport, so -ldl must come after -lLLVMSupport. See Why does the order of '-l' option in gcc matter? on Stack Overflow. You need to change this:

`llvm-config --cppflags --ldflags --libs core jit native`

To this:

`llvm-config --cppflags --libs core jit native` `llvm-config --ldflags`

And the linker should be successful. Let me know if you find a better solution to fix the order of --ldflags.


You need to run apt-get -f install with root rights. So execute:

sudo apt-get -f install

This fixes your broken dependencies.

Afterwards, do

sudo apt update
sudo apt upgrade
sudo apt-get check
sudo apt install git

The first command updates your package list, the second one upgrades your packages, the 3rd one will either output something like

Reading package lists... Done
Building dependency tree
Reading state information... Done

to tell you your dependencies are fine now or it will tell you there are still problems. The last command will install git. You need git to do a git clone.

Then execute the git clone command again and it should work.


To see what key combo's are assigned:
System Settings > Shortcuts > Global Shortcuts
You can also check/edit standard or custom Shortcuts.

"win" key will be listed as meta or super.

I'm running Kubuntu, so your system settings may look different.


Fail to upgrade the Ubuntu 12.04 kernel to 3.5

try updating grub

sudo update-grub

edit:
did you try reinstalling?

sudo apt-get install --reinstall linux-image-generic-lts-quantal
grub-mkconfig -o /boot/grub/grub.cfg

i googled and found that two os may cause this problem so if ubuntu 12.04 is not your default OS, change your default OS to ubuntu 12.04.


Windows tablet, installed ubuntu 17.10. Keeps suspending after few seconds. Tried everything

It seems I have to be ashamed of myself.

For some reason when changing the "HandleLidSwitch=ignore" option in "/etc/systemd/logind.conf" I did not notice that the options were COMMENTED OUT by default. So that was my mistake. So many hours wasted. I hope my answer will make people check twice, if they maybe forgot to do the same as I did.


Severe under performance of CUDA vs Windows, make intel primary GPU?

After much hunting, searching.. coallescing .. I successfully found the problem and fixed it!  Yes, the Intel GPU in windows was getting used while in Linux it was going unutilized... forcing the NVIDIA GPU to draw the screen and lose resources.

I reinstalled a fresh Ubuntu 16.04 USB Stick on top of my previous system..

During reinstallation choose updates, but don't use 3rd party libraries

Once installed, you should verify you're in the intel nouveau driver mode.. instead of Nvidia's proprietary driver.

Now came the weird part(s)

A User here had pointed out the same problem.. but for desktop deployments

https://devtalk.nvidia.com/default/topic/991849/cuda-setup-and-installation/-solved-run-cuda-on-dedicated-nvidia-gpu-while-connecting-monitors-to-intel-hd-graphics-is-this-possible-/

basically...

In summary, in order to make this to work, you need to

1. make sure you have enabled onboard graphics in the BIOS settings (or set it as primary)

I did hybrid mode.. since there's no intel only option

2. install both xorg intel driver and nvidia/cuda drivers

here, you need to pass the flags

--no-opengl-files //for the driver install I choose latest (384)

--no-openfl-libs // cuda 8.0 + patch here ..

be sure to disable nouveau .. and all the steps outlined in the instructions..

main way to know you're good.. install glmark2 and always assure that it's outputting intel

3. start nvidia-settings, and go to the PRIME settings page, set Intel (Power Saving Mode) as default
4. modify your .bashrc and set LD_LIBRARY_PATH to at least contain /usr/local/cuda/lib64:/usr/lib/nvidia-XXX where XXX in my case is 375.

this folder didn't exist for me at all. I still added the default LD_LIBRARY_PATH and PATH outlined in the post install cuda instructions

4. logout to restart X or reboot
5. run glmark2 to confirm GL status

since you should have installed without installing opengl files.. this is perhaps unneeded

<strike>6. (update) if the libGL printed from step 5 points to nvidia's driver folder, you need to remove/rename the libGL.so*/libGLX.so*/libGLdispatch.so* under nvidia driver folder so that your OS can pick up the mesa libGL library.</strike>

7. run nvidia-smi to list your dedicated NVIDIA GPU, and run your CUDA program, you should not see any errors.

this didn't work for me until I ran nvidia-modprobe once.. then suddenly it all worked.

update : saddly a reboot broke the config.  not sure how to fix yet...


Location of .desktop file of "Application lens" of Unity

This quicklist is coded into Unity, and it is not editable without changing the code of Unity itself.


localhost is just a name for the local host. If you look into /etc/hosts you will find a line

127.0.0.1   localhost

Connections to localhost don't use the real network - you won't see anything on the wire from them.

If you want to connect to your server from another machine on your network, you must know the IP address of your server (you can get it with ip address show) (e.g. 192.168.13.45) and then type telnet 192.168.13.45 [portnumber].


How can I continue having two fingers on the trackpad?

This article:

How to Get MacBook-Style Finger Gestures on Ubuntu Linux

... may not give you exactly what you want, but it should help make the transition a little bit nicer. I do not have this installed myself so I cannot test for the specific scenario you outlined. If it does work please report back here.


It seems that is this extension which create this problem https://extensions.gnome.org/extension/1276/night-light-slider/
And so https://codeberg.org/kiyui/gnome-shell-night-light-slider-extension/issues/83


GNOME (GDM) equivalent to LightDM's "dm-tool"

You can go to the GDM greeter by pressing Ctrl+Alt+F1 without logging out the current user. From there it's quite intuitive to login as another user.

To mimic this from the command-line you can use xdotool. First install it by running

sudo apt install xdotool

Then the following would mimic the aforementioned key-combination

xdotool key ctrl+alt+F1

You can assign this command to the F1 key in the 'keyboard shortcuts' option in Settings.


Problem in boot is very slow! unknown process! what to do?

I guess you've already solved the problem, but in case someone else comes across this thread, I recently had the very same issue and the solution was quite quick and simple all in all.

After installing Debian in a new partition, booting Ubuntu took too long compared to before.

So, I pressed E key on GRUB, removed the "quiet splash" option and pressed F10 key to resume, which let me see all the verbose going on during the boot process.

Indeed, it stuck at:

* a start job is running for dev-disk-by x2duuid ...  [xx seconds/ 1m 30s]

The unknown UUID referred to the swap partition I had within the Ubuntu partition.

Debian had taken it as its own swap and assigned to it a brand new UUID in its /etc/fstab configuration file.

I checked this by starting on Debian and verifying the UUID not found by Ubuntu was the one that timed out in 1m 30s.

Back to Ubuntu as superuser I commented out the original UUID line for the swap partition and inserted the same line with the new UUID set by Debian, and that was it.

Now it boots quick and mounts the same swap in both Linuxes.

Hope it helps someone.


How do I know if a certain blueprint will be discussed at UDS?

That list of blueprints are ones that have been proposed for "Oneiric" the series in general. You want this list, as it's the approved list of topics for UDS:

https://blueprints.launchpad.net/sprints/uds-o

Prior to UDS this list grows, so I bookmark the page. You can subscribe to the specific blueprint if you want to follow along, and check the schedule to see when it's actually going to happen if you want to participate remotely.


Qt can't find GL/gl.h but libGL.so exists

Regarding to for Qt doc:

The Qt installers for Linux assume that a C++ compiler, debugger, make, and other development tools are provided by the host operating system. In addition, building graphical Qt applications requires OpenGL libraries and headers installed. Most Linux distributions do not install all of these by default, but setting up a development environment is still straightforward.

Use the following commands to install the basic requirements for building Qt applications:

sudo apt-get install build-essential libgl1-mesa-dev


How to enable guest account automatic login?

Edit /etc/lightdm/lightdm.conf with your favourite editor like gksu gedit /etc/lightdm/lightdm.conf
  and under the section [SeatDefaults] add

allow-guest=true
autologin-guest=true
autologin-user-timeout=0
autologin-session=lightdm-autologin
user-session=ubuntu


with 20.04 I cannot now use the software updater, without it hanging on 'Preconfiguring packages'

Much as I dislike people answering their own questions,as it is often a vehicle for showing off, I'll make an exception here, as I was genuinely stuck.
After a lot of googling for 'Ubuntu' + 'Preconfiguring packages' + 'stuck',
the answer by ostrokach to this question:
enter link description here
12.04 update is stuck on preconfiguring packages
Killing the leaf process which was listed as being apt-mysql-config (or something titled very similar) that was blocking the dpkg configure,fixed most of the problem for me. I had to do this a couple of times. I'm not sure if mysql is still OK but at least the other applications get upgraded.
As I did nothing unusual, I think other users of 20.04 and mysql/maria may well run into the same problem.


Is an application in Ubuntu allowed to open other applications if it does not have elevated privileges?

Yes, any process running with the privileges of one user is allowed do anything that user is allowed to do herself.

As you correctly state, this is less of a problem, if that user doesn't have super-user privileges, which would allow him and any of her processes to modify the system configuration. Installing system-wide packages through a front-end like Software Center still requires super-user privileges.

For that reason, one should carefully choose which programs to run at elevated privileges.


Kick off all other users who are logged in?

You can kill'm all with:

who | awk '$1 !~ /root/{ cmd="/sbin/pkill -KILL -u " $1; system(cmd)}'

You need to be root or use sudo.

Mind that killing all users can be dangerous and damage your file system. Plus annoy your users; what do you expect to happen if one of them is doing something like mysql maintenance when you kill them?

You really should use ps -ef | grep "user" or something similar to inspect their processes.

Why not warn them instead?

shutdown -h +10 "Server is going down 10 minutes. Save your work and logout."


Ubuntu size, and applying it as well as I can

You mean 32-bit, which has nothing to do with file size or hard drives. 32-bit with PAE only allows programs to use up to 4GB of RAM, and only 32-bits of memory access at a time. 64-bit allows you to use an amount of RAM so great that for the hardware of the foreseeable future, it might as well be infinite. There's no limit to how much hard drive space you can use. I have mine installed with a total of 7000GB combined hard drive space.


How do I find and use `--object-path` with `udisksctl`?

I was looking for the answer to the same question, but there isn't a clear answer because the object seems to be the internal D-Bus object that is created by udisksd (see: https://askubuntu.com/a/633045/49873).  This is even more annoying when you have multiple disks mounted and you want to unmount one of them.
My workaround to this is to continue to use the --block-device (or -b) option, but by disk label, e.g. my external backup drive has the label xbackup, so I can mount it as:
$ udisksctl mount -b /dev/disk/by-label/xbackup

Note that this can be confusing if you have multiple drives with the same label.  I believe in that scenario the first drive attached to the system retains the label as is, and subsequent devices get a numeric suffix, like xbackup1 (unverified, trying to recall from memory).


Click the Network icon in the upper-right corner. Click 'Edit connections'.
Now click add and chose a DSL connection. Provide your username and password and click save. You can also enable 'connect automatically' and 'available to all users'. Now click on the network icon again and you will see "DSL connection 1" listed. Click on it and your computer will be conected to internet.


Unattended install of Ubuntu 18.04 minimal desktop?

The available options are documented in the Ubuntu installation guide, section B.4.10 which reads:

You can choose to install any combination of tasks that are available. Available tasks as of this writing include:

standard (standard tools)
ubuntu-desktop
kubuntu-desktop
edubuntu-desktop
lubuntu-desktop
ubuntu-gnome-desktop
xubuntu-desktop
ubuntu-mate-desktop
lamp-server
print-server (print server)

However, minimal install is not a d-i key, but an ubiquity one. Add this to the preseed:

ubiquity ubiquity/minimal_install boolean true

(Obtained by reading the Ubiquity source code).


How do I connect to available networks from the command-line?

ifconfig -a

lists all the network interfaces, so you can run

ifconfig -a | grep --only-matching -i "^\w\+" | xargs -l1 sudo dhclient

whenever you want to connect to a network.

If you would like it to happen when you log in, simply append it to the file ~/.bashrc (for you only) or /etc/bash.bashrc (globally).


Cannot run a c program which includes makemat.c

It seems you do not have Read permission on file /usr/include/makemat.c

Check your permission using

ls -l /usr/include/makemat.c

If so, change it's permission using

sudo chmod 644 /usr/include/makemat.c

Now you can include this file in your program.


Touchpad permanently disabled after using ambient light sensor button

I think that problem is because Fn + F11 button has code 0xB3 which is mapped to button "disable touchpad".  The solution is, to remap that code to another button. You can use the program showkey to verify key code.

I had same problem with my HP EliteBook 8460p and I created a path for udev which fixed it:

Step 1
Step 2

Maybe you should contact ubuntu/udev developers that your notebook (with DMI info) needs similar udev hook too.