Usually those types of files are just "extract and run", but if it's not a GUI program, you may have to use a terminal and see what the files are, maybe run them there.

And it's almost always preferable to install programs from a default repository, or a PPA, if it's available there. apt-get or aptitude or synaptic are excellent ways to install programs available from the repositories.

But, for this .tar.gz, it may only run in a terminal, or may be giving an error message that double-clicking on it isn't revealing.

open a terminal
cd to the extracted files
type ls -la and paste the results into your Q, we're looking for which one is executable (has an x in the permissions)

After seeing the files, all those files are executable apparently, that's a little different. Can try executing the Popcorn-Time one with ./Popcorn-Time (have to type a ./ first, or the shell looks in your path for a filename to run, ignoring the current dir).

I did a web search and found some promising hits:

http://lintut.com/run-popcorn-time-on-linux/ - Has info about your error from the comments, this might be your fix:

If you see Error missing libudev.so.0 enter following command in terminal:

sudo ln -s /lib/x86_64-linux-gnu/libudev.so.1 /lib/x86_64-linux-gnu/libudev.so.0

Install Popcorn Time In Ubuntu Or Debian Via PPA Repository - If the above link didn't work, you could do this. In a terminal, run:

sudo add-apt-repository ppa:webupd8team/popcorntime
sudo apt-get update
sudo apt-get install popcorn-time


Live Ubuntu 12.04 USB Disc not detected in UEFI

Ok, found the problem. The Live USB I created was not EFI compatible (i.e. no files/folders in /boot/grub that have "efi" in the name). So I what I did was simply re-creating the Live USB within Ubuntu on another laptop using the Startup Disk Creator utility. Previously, I made the Live USB using Universal USB Installer (did it with Windows) which does not create the "efi" files at all. Now, my Live USB is detected and I just dual booted Windows 8 and Ubuntu 12.04 (with secure boot disabled of course).


Different Launchers for Different Workspaces?

It took a few years, but now you can have a launcher with diffent pinned applications in different workspaces with Unity LauncherSwitcher. (Thanks to webupd8.org for making me aware of it.)

Run these commands to install it:

sudo add-apt-repository ppa:vlijm/lswitcher
sudo apt-get update
sudo apt-get install lswitcher


Can't get music to play in Doomsday 1.10.2 in Ubuntu Precise

I got the same problem using Linux Mint 16 and Doomsday 1.12 and I searched on doomsday engine forum, found this topic.

I downloaded and installed the addons Doom Classic Music and Doom2 Cmassic Music and now the music works fine.


How can I get my Intel 82945G/GZ video card to support more resolutions?

hey i've just downloaded the latest updates and switched off my PC.when i switched it on in the morning the resolutions are fine and everything looked great.
when i first installed 12.04 there were no updates and after checking for an hour i got them.
i guess it must be with the updates.
heres the screenshot.

thanks a lot :)


Running downloaded Ubuntu on VirtualBox is so very slow? What to do?

First of all  Ubuntu is 100% Free. And latest ubuntu is 14.04 so there is not 15 version.
If you are running ubuntu in virtual-box then check the amount  of RAM Allocated  to ubuntu.
Ubuntu need minimum 1 GB RAM and 700 MHz processor.


I am running 12.04 on usb would now like to install on C: will it overwrite windows XP

I am running Ubuntu 12.04 on a machine with Windows XP, and it works just fine. I used wubi installer  to install Ubuntu inside Windows on a separate partition. No decrease in performance at all for Ubuntu, on the contrary.

If you want to give wubi installer a try, you can choose to install Ubuntu on the same partition where Windows XP is, it would be like installing some new piece of software for windows .. easy to install, and even easier to uninstall.

A better idea would be to choose a different partition (either D: drive or E: drive, whatever) for a fresh Ubuntu installation using wubi installer.

You can allocate up to 30 GB on any NTFS partition for Ubuntu, and allow wubi installer to first create some virtual drives for Ubuntu, and then install the system on the virtual drives after first reboot. It only takes 20 min. or so, and it won't harm your WinXp configuration, it just adds a new entry for Ubuntu in the boot menu without modifying the MBR.

Wubi installer only works with Ubuntu LTS, and you can download the wubi installer and the iso image for Ubuntu LTS, place both files in the same directory, and start wubi.exe after that. Choose Ubuntu as operating system from the drop-down list, then allocate enough space from the next drop-down list, at least 16 gb as a minimum, choose username, choose password, and press next to get things moving.

After first reboot be patient and allow the installer to finish its job, because only after a second reboot you'll be able to boot into your new Ubuntu "virtual" system. Don't forget to write down your username and the password that you decided to use for ubuntu, it would be a shame to not remember them. Le me know how it went. Good luck!

P.S. Wubi installer can give you some unexpected error if trying to download the iso image from the Internet but you should not give up, try again, and if you get the same error then you just download that iso image (Ubuntu 12.04.4 LTS only) place the image in the same directory with wubi installer, and there you go .... Also remember that after each failed attempt to install ubutu with wubi, you'll get a message telling you that you must uninstall previous installation before attempting a new one. Do that, and continue with installing Ubuntu. Never give up, never surrender :)


I can't see external storage device formatting progress

I just found a way to track the formatting progress in Ubuntu:

1) I opened the Terminal;
2) Then I typed: "sudo gnome-disks";
3) An application oppened, and then I selected the external drive in the left list. The progress bar is now appearing in the "Work" section.

How can I tell when Ubuntu 16.04 has finished formatting a USB?


Kernel panic while updating to Ubuntu 16.04 from 14.04

This kernel panic probably suggests that Upstart, SystemD, SysVInit, or whatever initialization program your operating system is running is corrupted.

At this point I'm afraid the easiest option is to reinstall.


Change Unity searcher default from "Computer and online sources" to "Applications" Ubuntu 13.10

You can directly summon the Aplication lens with Super+A

You can see other Unity desktop shorcuts if you keep Super pressed.


How to remove duplicate shared computer entries and the (File Sharing) suffix from Ubuntu 18.04 LTS shared computers?

Any idea how to get rid of the .local share option and the (File
Sharing) suffix?

A modern Samba server will anounce itself to the rest of the network using two different methods:
[1] The old NetBIOS method ( lenovot61 - for example )
[2] The mDNS ( Avahi ) method ( lenovot61.local )
You can on the 18.04 machines disable either one of them or both if you want by adding a line in /etc/samba/smb.conf - under the workgroup = WORKGROUP line.
To disable NetBIOS the line is: disable netbios = yes
To disable mDNS the line is: multicast dns register = no
Then restart smbd on the server: sudo service smbd restart
Sometimes you may need to reboot the server.


There are no download mirrors listed at Download Page for uuid-dev_2.27.1-6ubuntu3_arm64.deb on machines. The uuid-dev package for arm64 architecture appears to be unavailable from the official Ubuntu uuid-dev package download webpages for all currently supported versions of Ubuntu.


You will have to add the file to your software list.

After running

sudo dpkg -i cuda-repo-ubuntu1404-7-0-local_7.0-28_amd64.deb

open Softwares & Updates (search for it in the Dash)

In the Other Software tab, enable the checkbox corresponding to your package. It will be of the form

file:///var/cuda...

Then run the following:

sudo apt-get update
sudo apt-get install cuda

If it complains about any dependencies, add those also to the above command.

For example, I got cuda-7-5 and cuda-runtime-7-5 as unmet dependencies. So my final install command was

sudo apt-get install cuda cuda-7-5 cuda-runtime-7-5


How do I add a notification for process completions

One way to get a popup (a desktop notification) is to install the libnotify-bin package, then add "alert" to your command line, like this:

./configure && make && alert

Note that "alert" is a convenience alias, if you type:

alias alert

you will see that behind the scenes it calls the notify-send command, which has a bunch of interesting options, so you may want to define your own alias to call notify-send in a way that better suits you.


Host VMs on Ubuntu Server and access them remotely?

Absolutely and you have multiple options for doing so.

Personally I use Proxmox, it is Debian based, but has a great web interface.

https://www.proxmox.com/en/

It depends a bit on which virtualization you choose, personally I use KVM. You can manage your KVM machines from windows

See https://serverfault.com/questions/340949/is-there-a-way-to-run-virt-manager-on-windows

For example see http://www.ubuntuboss.com/ubuntu-server-16-04-as-a-hypervisor-using-kvm-and-kimchi-for-vm-management/

A complete list of options is here - https://www.linux-kvm.org/page/Management_Tools

Docker is very popular and has web interfaces as well

https://blog.ouseful.info/2015/08/10/seven-graphical-interfaces-to-docker/

There are other options from virtualbox to Xen to Vmware.

So in a way, your question is too broad and I would suggest you ask a more specific question if you have a problem once you have done some research into  your options.

What virtualization technology ? KVM ? Docker ? Other ?
What interface ? ssh ? web ? VNC ? Spice ? Command line ?


Chromium Won't Play Youtube Videos Past the Ads

Chromium though also Chrome has a builtin flash player called Pepper. It is Adobe Flash bundled within Google Chrome. read this. So your problem may be there.

So, either disable the default flash player and install another one such as adobe flash player, or try Firefox, but you still also need to install another player.

If you just don't like to use Adobe flash player you can have a wide range of alternatives such as:

LightSpark
GNU Gnash
Gnash

sudo apt-get install browser-plugin-gnash

Shumway(you can use the Firefox extension only)

UPDATE:

Thanks for @ dadexix86

  Unlike in Chrome, Flash is not bundled in Chromium, for obvious licensing reasons.

Quoted from https://wiki.ubuntu.com/Chromium/Getting-Flash:

  As of 2015-05, the old "pepperflashplugin-nonfree" is deprecated in
  favor of an official, maintained, one-step package called
  adobe-flashplugin, which works for Firefox and Chromium and
  derivatives. No terminals, no multiverse.

Now how to get flash for Chromium refer to this https://wiki.ubuntu.com/Chromium/Getting-Partner-Flash


Manual for latest Lubuntu 32bit LTS version

Sorry, but the Lubuntu manual was started for the switch to LXQt which became the official desktop of Lubuntu with Lubuntu 18.10.
On the Lubuntu links page is the LXDE website or https://github.com/lxde
I'll provide some alternate links, but they're not exactly what you're looking for

https://wiki.debian.org/LXDE

https://wiki.archlinux.org/index.php/LXDE

https://fedoraproject.org/wiki/LXDE

and of course

https://wiki.ubuntu.com/Lubuntu

and the hundreds of other Lubuntu wiki pages.
You'll note however many of the official Ubuntu pages on LXDE/Lubuntu will have an unmaintained and deprecated warning (put there by me) as the Lubuntu team isn't really updating them anymore. They will mostly apply with Lubuntu 18.04 LTS (which is why I didn't delete them or have them auto-redirect to lubuntu.me wiki pages though that'll likely be done when Lubuntu 18.04 LTS reaches it's EOL).
Any (wiki.ubuntu.com Lubuntu pages) I felt no longer applies to Lubuntu 18.04 LTS already auto-directs to lubuntu.me pages (unless stopped by the reader) so if a page doesn't re-direct, it was because I felt the information on it was valid and applied to Lubuntu 18.04 LTS (even though I put the unmaintained and deprecated warning)


Not a concrete answer, but few pointers that may help.

If the window has a unique title, you can get its window id using

NAUTILUS_WINDOWID=`xwininfo -name <title> |grep 'Window id' |awk '{print $4}'`

Now periodically calling xwininfo -id $NAUTILUS_WINDOWID >/dev/null should do the trick.

It returns 0 if the window exists, and 1 otherwise.


It seems for me you have some package pinnings.

dpkg way

But either way, just download those packages (libg2c0, gcc-3.4-base, gcc-3.4, cpp-3.4) with wget and install them directly with dpkg. With some command line fu:

PACKAGES=(libg2c0 gcc-3.4 gcc-3.4-base cpp-3.4)
for pkg in $PACKAGES; do wget http://archive.ubuntu.com/ubuntu//pool/universe/g/gcc-3.4/${pkg}_3.4.6-6ubuntu5_$(dpkg --print-architecture).deb; done
sudo dpkg -i ${PACKAGES/%/_3.4.6-6ubuntu5_$(dpkg --print-architecture).deb}

There is no need for the hardy package sources with this method.

APT way

An alternate method with the hardy sources enabled would be to set up some package pinnings in /etc/apt/preferences:

Package: libg2c0 gcc-3.4 gcc-3.4-base cpp-3.4
Pin: release a=hardy*
Pin-Priority: 500

Package: *
Pin: release a=hardy*
Pin-Priority: -1


Try a terminal Ctrl+alt+F1
Boot with live CD

And delete files


Running source code from secondary drive in Ubuntu problems

So the solution was adding exec to the fstab config, as @steeldriver pointed out, it was defaulting to noexec

/dev/sdb3 /media/ShareData auto rw,user,exec,auto 0 0

Now it automounts and I can use my workspace again! : )


You probably want Lubuntu.  Lubuntu runs with lower hardware requirements, and therefore it will run faster on an older machine.

Just make an install CD/DVD/USB of it and install it.


Adobe Source Code Pro has two extensions?

In order to install Source Code Pro, you can:

Go to Google Fonts
Type source code in the search box (the only match should be Source Code Pro)
Click "Add to collection"
Click on the text sample (this should present all the font styles)
Tick all the check boxes
Click the download icon (a down arrow on the top right) and download as Zip file

Now you just need to decompress the Zip file into your ~/.fonts folder:

mkdir -p ~/.fonts/Source_Code_Pro
unzip Source_Code_Pro.zip  -d ~/.fonts/Source_Code_Pro

You may need to run

fc-cache -f

to make the fonts available (no need to log out).


Changing Clock Font Colour in GTK 2.0 Theme

I found an answer to the question myself, since I stumbled upon the file ~/.gtkrc-2.0 that was only for the configuration of my panel clock.

  style "panel-clock-custom"
  {
  fg[NORMAL]    = "#585a5c"
  fg[PRELIGHT]    = "#585a5c"
  fg[ACTIVE]    = "#585a5c"
  text[NORMAL]    = "#585a5c"
  text[PRELIGHT]    = "#585a5c"
  text[ACTIVE]    = "#585a5c"
  }
  widget "Xfce*Panel*clock*"    style "panel-clock-custom"

I simply changed all the hex values to my desired color.


Dell Audio Headphone Jack and Line Out playing sound through at the same time

I think you should use hdajackretask to override what each jack does.

You can do so by installing alsa-tools-gui and playing with the functionality of your jacks.

sudo apt-get install alsa-tools-gui
hdajackretask

You can set your pins to do what you want and then click on apply now. If it works they way you want it to, you can then simply click on Install boot override and it will stay that way.


Unable to start logstash service" logstash: unrecognized service"

Assuming config is in /etc/logstash and /etc/logstash/conf.d/ use:

/usr/share/logstash/bin/logstash --path.settings /etc/logstash/ -t -f /etc/logstash/conf.d/

See: https://www.elastic.co/guide/en/logstash/current/logstash-settings-file.html
for more details


I am in group root and cannot use synaptic or sudo

As you do not have root access anymore, you cannot add yourself to the admin group. To do this, you need to boot in recovery mode to get root permissions.

Restart your computer, and hold Shift (for GRUB2) for showing the boot menu
Select "Ubuntu, with Linux 2.6.xx-xx-generic (recovery mode)"
Pick "Root shell" from the recovery menu
Add user abc to the admin group by running: usermod -a -G admin abc. The -a switch causes the group admin be added to current groups, instead of replacing the current groups.
Reboot your system by running reboot


You first install Vista, as you have done it until now.
You then free up some space with your partition manager. (This is what I use, it is free.)
You create a bootable Ubuntu USB or CD (details on how to do that on Ubuntu page).
You install Ubuntu with the option "Install along side Windows."


Since you need Recovery Mode, lets first check your file system for errors.

For 17.10 or older...

boot to the GRUB menu
choose Advanced Options
choose Recovery mode
choose Root access
at the # prompt, type sudo fsck -f /
repeat the fsck command if there were errors
type reboot

For 18.04 or newer...

boot to a Ubuntu Live DVD/USB
open a terminal window
type sudo fdisk -l
identify the /dev/XXXX device name for your "Linux Filesystem"
type sudo fsck -f /dev/XXXX # replacing XXXX with the number you found earlier
repeat the fsck command if there were errors
type reboot

After repairing any errors using fsck, if that doesn't solve the problem, try boot-repair. See...

https://help.ubuntu.com/community/Boot-Repair


.apk extension is android application installation file
cannot lunch on Ubuntu platform


How do I get bonded NICs to use their real MAC addresses?

It depends on the bonding mode. You're probably using mode 4 (802.3ad), which requires a switch that supports IEEE 802.3ad Dynamic link aggregation. Change to bonding mode 6 (balance-alb) or 5 (balance-tlb) and see what happens, those modes don't rely on switch support.

I could expand this answer if you post how you setup the bond and what you're trying to achieve (load balancing? fault tolerance? both?).


How can i get left clicking on my mouse to work again

Try running the following command:

sudo apt-get install --reinstall xserver-xorg-input-mouse xserver-xorg-input-evdev-dev

Restart and test if it works.


No boot option after installing xubuntu 14.04.3-desktop-amd64

As you described in your question you already disabled Fast Boot in Windows ... please re-check !

You have to disable hibernation as well - open command prompt as administrator and execute :

powercfg /h off

Now shutdown the machine completely - do NOT reboot !

Boot into BIOS and select Ubuntu in UEFI settings to be the default operating system to boot.

In case the GRUB boot menu doesn't appear when starting the computer :

Reinstall the GRUB boot loader to your Ubuntu installation  in EFI mode.

Boot from the Ubuntu installation media - open a terminal and execute:

    sudo mount /dev/sd*** /mnt
    sudo mount /dev/sd** /mnt/boot/efi
    for i in /dev /dev/pts /proc /sys /run; do sudo mount -B $i /mnt$i; done
    sudo chroot /mnt
    grub-install /dev/sd*
    update-grub

Note:

sd* = disk | sd** = efi partition | sd*** = system partition

To check and verify the partition numbers use GParted (included in the Ubuntu install media).
Boot into BIOS and select Ubuntu in UEFI settings to be the default operating system to boot.


Can't adjust brightness i find a answer but its say a error

I think you are missing a closing double quote in that line. Please check for that.

If not, this well-written page should help you out. While it is written for HP, the procedure should work for any laptops. It is a common procedure for linux kernel.


Problem with dual-booting Ubuntu 14.04.2 and Windows 7 x64 Ultimate

My computer is custom built so it is NOT UEFI based.

This logic is flawed. Most motherboards introduced since mid-2011 are UEFI-based. Most of these motherboards also provide a Compatibility Support Module (CSM), which is essentially a BIOS emulator -- a CSM enables an EFI-based computer to boot using BIOS-mode boot loaders, much like WINE enables Linux to run Windows binaries. Your system might or might not be using BIOS/CSM/legacy-mode booting for your Windows installation, but if the computer is newer than mid-2011, it almost certainly is UEFI-based.

To determine your Windows boot mode, look at the partition table type. If it uses the Master Boot Record (MBR), the computer is booting in BIOS/CSM/legacy mode; if it uses the newer GUID Partition Table (GPT), it's booting in EFI/UEFI mode. You can check this detail using parted in an Ubuntu installer; open a Terminal and type:

$ sudo parted /dev/sda print | grep Table
Partition Table: gpt

This example shows a GPT disk; an MBR disk will show up as Partition Table: msdos. If parted complains about a missing GPT protective partition (I don't recall the exact wording of this complaint), then you probably have a partition table inconsistency (described later).

As to the main problem, most complaints that the Ubuntu installer "doesn't detect Windows" actually mean that the installer isn't presenting an "install alongside" option. This can happen for any number of reasons, and in most cases you must use the "Something Else" option instead. I recommend you read the following questions and answers:

"Install alongside" option missing. How do I install Ubuntu beside Windows using "Something Else"?
How to use manual partitioning during installation?

Note that you should install Ubuntu in the same boot mode (BIOS vs. EFI) as used by Windows. As the Ghostbusters would say, don't cross the streams! You can check the boot mode of the Ubuntu installer by dropping to a shell and looking for a directory called /sys/firmware/efi. If it's present, you've booted in EFI mode; if it's absent, you've booted in BIOS mode.

Another possibility is that your disk uses to use GPT but was converted to use MBR by the Windows installer or some other GPT-unaware tool. In this case, the disk will appear to be completely unpartitioned to the Ubuntu installer. If this is your problem, you must wipe the stray GPT data. This is most easily done with fixparts, which is part of the gdisk package in Ubuntu:

sudo fixparts /dev/sda

See this question and answers or my official FixParts documentation for more details. (I'm the author of FixParts.)


`Read-only file system` error using tab completion, and terminal window closing randomly

I rebooted in recovery mode and followed the instructions the system gave me.  I ran fsck on /dev/sda2, and that fixed the problem.


See bugs 1173457 and 1366546 for the problem installing in UEFI mode to a second disk. If you put an EFI partition on the USB, just copy everything from the internal disk's EFI to the USB's EFI and it should then be bootable.  The internal disk's EFI needs the USB to run grub because the EFI's stub /ubuntu/grub.cfg has a UUID pointing to the USB's root.  Edit the UUID to be your internal disk's root, and it should work without the USB.


dpkg: error: parsing file '/var/lib/dpkg/updates/0040' near line 0: newline in field name '#padding'

File sounds corrupted run

sudo rm /var/lib/dpkg/updates/0040
sudo apt-get clean
sudo apt-get update
sudo apt-get install -f
sudo dpkg --configure -a

You can remove any other corrupted files in /var/lib/dpkg/updates/ if needed and re-run those commands.

Post any additional errors you may have


You can't from a normal Ubuntu since there is no save session as it is deemed a flawed feature and that is was not fixable. So it got removed in 2011: see this and this. But you can by using an extension. You will need this dependency:
npm install -g linux-window-session-manager

and then install Window Session Manager Gnome Shell extension from the Gnome extensions website. From the link:

An indicator that let's you save and restore your open apps and the window positions and arrangements over multiple real and virtual displays. Requires lwsm and nodejs to be installed (npm install -g linux-window-session-manager).
Extension Homepage


Well, I feel stupid. While going into the bios of my laptop to edit some settings, I noticed that my discrete graphics (the ones that control external displays) was turned off. Before I posted the question, I am 100% positive that option was enabled. Ubuntu must've gone into the bios and disabled them. So, if you have display troubles like me, check the bios.


Since v1.3.0 (came out on 15 Sep 2018), exfatfsck should be able to repair some errors.


Show window icons (disable launcher icons) in new KDE Plasma (16.04) task manager

Yupi! There is solution

Digging into weird behavior seen in comment (window icon being shown for Chrome Task Manager) I've tested properties of regular Chrome window and Tm window. It looks that TM lacks WM_CLASS property. So to just see window icon on taskbar doing either

xprop -id $WIN_HEX_ID -remove WM_CLASS

or:

xprop -id $WIN_HEX_ID -format WM_CLASS 8s -set WM_CLASS "my-own-class"

would be enough. But...

This creates another problem - very often WM_CLASS is being used by window managers or other programs to well - manage windows and their relative behavior. So throwing away this precious information is very counter-productive. Unfortunatelly as seen in:

this SO post: https://stackoverflow.com/questions/11700728/xprop-setting-multiple-fields-of-atom-property
and this xprop bug: https://bugs.freedesktop.org/show_bug.cgi?id=52633

Storing and re-storing full WM_CLASS property is right now not possible with xprop

Checking some possible options I was able to do this with python-xlib module:

from Xlib.display import X, Display
from Xlib.Xatom import STRING

display = Display()
root = display.screen().root

win_hex_id = 0x6a00001 #in my case
win = display.create_resource_object('window', win_hex_id)
saved_prop = win.get_full_property(display.intern_atom('WM_CLASS'),
                       X.AnyPropertyType , 128).value

#to change:
win.change_property(display.intern_atom('WM_CLASS'),
                    STRING, 8, 'my-own-class')

#to go back:
win.change_property(display.intern_atom('WM_CLASS'),
                    STRING, 8, str(saved_prop) )

As a comment - weird behavior either of KDE or pyhon-xlib is that actual icon change happens on another property action (reading/writing) - so adding:

win.get_full_property(display.intern_atom('WM_CLASS'), X.AnyPropertyType , 128).value

won't hurt


How to know version of program in meta-package?

If you're contemplating installing a metapackage and you want to know what all the packages are that will be installed as a consequence, and all their versions, one of the best ways to find this out is to simulate installing the metapackage.

First, update information about what packages and versions are available. (You should do this before installing most packages, especially metapackages that may pull in a lot of other packages. So you may as well do it before your simulation, so the simulation reveals the correct information.)

sudo apt-get update

Then run the simulation. For example, suppose you're contemplating installing the kubuntu-desktop metapackage:

apt-get -s install kubuntu-desktop

Replace kubuntu-desktop with the name of the metapackage you want to install. (This  actually works for any package available from any configured software source, and you can list multiple packages, separated by spaces, too.)

It looks like this (though yours will be different, in part because you have different packages already installed).


That's why you should use sudo very carefully.

Your data are not lost, you can copy them from your existing partition to a USB key with a live CD, but you will have to reinstall your system.


The xfce4-appfinder is part of the Whisker Menu.

To install it, run the following command:

sudo apt install --no-install-recommends xfce4-appfinder

After it is installed simply run xfce4-appfinder from a command prompt or you can assign it to a keyboard shortcut.  In Xfce4 it is assigned to Super+R to bring it up.

Hope this helps!


resolv.conf will be overwritten by network manager. You could edit your connection to set other DNSs servers than what your ISP gives you throw DHCP. For this run nm-connection-editor, choose your DSL connection, then IPv4 Settings tab, then on Additional DNS servers add Google DNS servers: 8.8.8.8, 8.8.4.4, or OpenDNS servers: 208.67.222.222, 208.67.220.220.

On command line you could test a DNS server with:

nslookup sitetotest.com DNSserverIPtotry

Notice that a ping is an ICMP package and DNS is an application protocol, so they live on a different layer of TCP/IP stack of protocols. A server/host could respond to a ping without having any service listening on any port.


How do I split my USB sound card recognized as 5.1 into 3 stereo channels?

After searching and fiddling around some more, I finally found an interesting Archlinux wiki entry, which allowed me to come up with this piece of code to be added at the end of /etc/pulse/default.pa:

load-module module-remap-sink sink_name=KompleteAudio6_12 sink_properties=device.description="Komplete\ Audio\ 6\ Output\ 1/2\ (Main)" remix=no master=alsa_output.usb-Native_Instruments_Komplete_Audio_6_582A9505-00.analog-surround-51 channels=2 master_channel_map=front-left,front-right channel_map=front-left,front-right
load-module module-remap-sink sink_name=KompleteAudio6_34 sink_properties=device.description="Komplete\ Audio\ 6\ Output\ 3/4" remix=no master=alsa_output.usb-Native_Instruments_Komplete_Audio_6_582A9505-00.analog-surround-51 channels=2 master_channel_map=front-center,lfe channel_map=front-left,front-right
load-module module-remap-sink sink_name=KompleteAudio6_56 sink_properties=device.description="Komplete\ Audio\ 6\ Output\ 5/6\ (S/PDIF)" remix=no master=alsa_output.usb-Native_Instruments_Komplete_Audio_6_582A9505-00.analog-surround-51 channels=2 master_channel_map=rear-left,rear-right channel_map=front-left,front-right

set-default-sink KompleteAudio6_12

I now have 3 devices with Stereo output linked to the correct ports on my sound card. I guess this is easily adaptable for any other sound card.


How do I install NVIDIA drivers in Ubuntu GNOME 14.10?

There are a couple of ways.  I realize you've already download proprietary drivers.  However, there is a chance you might be able to download support drivers that are already tested and by the community.

You might first try running Additional Drivers (System Settings -> Software Updates -> Additional Drivers).

You'll most likely conveniently find a number of drivers, one of which might resolve your 800X600 stretched issue.

To run the downloaded driver install, you can stop X11 on ubuntu by hitting CTRLALTF1 then login and run:

$ sudo service lightdm stop

or

$ sudo stop lightdm

Then proceed to run your downloaded install program.


Ubuntu raring 13.04 x64 AMD Radeon HD 7500M/7600M fglrx issue

Have a read through this as it it's very complete

http://wiki.cchtml.com/index.php/Ubuntu_Raring_Installation_Guide

You should be able to get everything working by carefully following the instructions. Though I'd follow all of the un-installation steps first to get your install back to the open source drivers and in a working state before trying again.

Sound probably won't work though as I can't get any audio at all right now and the 'sound card' in my GPU is not detected. Not very happy right now. Should have stuck with 12.10 which worked with no issues.


Wrong resolution for Lightdm/GDM on Ubuntu 13.04 using HDMI

I faced the same problem running Ubuntu Gnome 13.04. My laptop uses a ATI Radeon graphics card. The laptop display runs at 1980x1080 resolution and I have a Dell 1980x1200 screen connected through the HDMI port. This morning, I installed the fglrx proprietary display driver and it solved the issue. I get the full resolution login screen now and the laptop has been running 15o cooler since! You may want to try this, and see if it works for you.


The official ubuntu.com page has information:

For desktop and server editions.
For netbook edition

You can easily upgrade over the network with the following procedure.

Open the Software Sources application from the System -> Administration menu
Select the sub menu Updates from the Software Sources application
Change the Release Update drop down to "Normal Releases" and close the application
Open Update Manager from the System -> Administration menu
Click the Check button to check for new updates.
If there are any updates to install, use the Install Updates button to install them, and press Check again after that is complete.
A message will appear informing you of the availability of the new release.
Click Upgrade.

Follow the on-screen instructions.

Taken from:
https://help.ubuntu.com/community/MaverickUpgrades


How do I partition correctly on a dual-boot Win8.1/Ubuntu sytem?

You can extend your Ubuntu partition this way.

Move left side of /dev/sda2 partition left. This will shrink your Windows partition.
Extend left side of /dev/sda3 partition left.
Move /dev/sda5 left and format it as swap
You will be able to extend /dev/sda6 Ubuntu partition left.
Do not forget to press "Apply" button in gparted.

But after you move Ubuntu boot partition, you will have to re-install grub. It can be done this way. Run from LiveCD

sudo mount /dev/sda6 /mnt
sudo grub-install --root-directory=/mnt /dev/sda
sudo chroot /mnt && sudo update-grub && exit

You will also need to add UUID of your swap partition to /mnt/etc/fstab file like this

UUID=ccd2f497-5d8f-48c7-9102-c339c2689ff8 none swap sw 0 0

You will need to run sudo -H gedit /mnt/etc/fstab and add a line there.

But use UUID of your /dev/sda5 partition. You can find it by clicking it in gparted and selecting properties.


dpkg-buildpackage ignores Vcs-Git in debian/control

Nothing. The VCS-* fields are for source packages, not binary packages. Compare:

$ apt-cache showsrc php5 | grep -i git
Vcs-Browser: http://anonscm.debian.org/gitweb/?p=pkg-php/php.git
Vcs-Git: git://anonscm.debian.org/pkg-php/php.git
$ apt-cache show php5 | grep -i git
$


Run the following command:

winecfg

Then, change into the audio tab, and make sure 'Alsa' is checked. Then click the button a little below to see if the sound is now working.


If you don't need the IDE you can install Visual Studio Code on Ubuntu.

First, click here to visit the download page for Visual Studio. Scroll down and click on the box that says "deb" and "Ubuntu".

Next, assuming you downloaded the file to your ~/Downloads directory, run the following commands:

sudo apt update
sudo apt install gdebi
sudo gdebi ~/Downloads/code*amd64.deb

Alternatively, you can install the vscode from the snap store by running the following commands instead.

Run the following command install the stable version:

sudo snap install code --classic

Alternatively, you can install the unstable version by running the following command instead:

sudo snap install code-insiders --classic

Click here for more info about Visual Studio Code at the snap store.

Click here for more info about Visual Studio Code - Insiders at the snap store.


What is default Password for Live Session User in Ubuntu 18.10?

The live CD/USB default username is 'ubuntu' and the password is just blank.


problem binding arrow keys with xbindkeys

finally I was able to rebind everything I want and even more.

put this in ~/.config/xkb/my:

xkb_keymap {
  xkb_keycodes  { include "evdev+aliases(qwerty)" };
  xkb_types     { include "complete" };
  xkb_compat    { include "complete" };
  xkb_geometry  { include "pc(pc105)" };

  xkb_symbols "my" {
    include "pc+us+ru:2+inet(evdev)"
    include "capslock(swapescape)"
    include "group(alt_shift_toggle)"

    key <TLDE> { [ grave, asciitilde ] };

    key <LALT> { [ISO_Level3_Shift ] };
    modifier_map Mod5 { ISO_Level3_Shift };

    key <AD09> { [o, O, Up, Up] };
    key <AC09> { [l, L, Down, Down] };
    key <AC08> { [k, K, Left, Left] };
    key <AC10> { [colon, semicolon, Right, Right] };
    key <AC10> { [colon, semicolon, Right, Right] };
    key <SPCE> { [space, BackSpace, BackSpace] };
    key <BKSP> { [BackSpace, BackSpace] };
    key <AD08> { [i, I, Delete] };
    key <AB07> { [m, M, Prior] };
    key <AB08> { [ comma,   less, Next] };
  };
};

then restart it with xkbcomp ~/.config/xkb/my $DISPLAY


Search for duplicate file names within folder hierarchy?

find . -mindepth 1 -printf '%h %f\n' | sort -t ' ' -k 2,2 | uniq -f 1 --all-repeated=separate | tr ' ' '/'

As the comment states, this will find folders as well. Here is the command to restrict it to files:

find . -mindepth 1 -type f -printf '%p %f\n' | sort -t ' ' -k 2,2 | uniq -f 1 --all-repeated=separate | cut -d' ' -f1


Ok, so I think I've answered my own question.

I moved the contents of one of my zfs file systems to a new folder

mv /willzpool/MrsWill/* /Willzpool/MrsWillbackup

which emptied the folder. I then created a test file, ran zfs destroy willzpool/MrsWill and the MrsWill folder and its contents were gone.

I mv /willzpool/MrsWillBackup /willzpool/MrsWill and accessed the folder through a laptop via samba and everything works just as it did before except now the top level zfs /willzpool/ now references the total size of the data.

For reference, the reason this was helpful is that I'm using conky & webmin to remotely monitor my hdd usage on the server and neither accurately reflect the overall size of the willzpool volume (comprised of 3 disks) when it's broken down into separate file systems)


Why does wget fail with "503 Service Unavailable" Error?

You seem to have a proxy configured, which wget is attempting to connect through, but which is not available, and so the web server running on that address, is returning an HTTP 503 error response. You should contact the admin of that site, or disable the use of a proxy.


These following steps always work for me:

Get the PPA and install:

sudo add-apt-repository ppa:ginggs/ppa
sudo apt-get update
sudo apt-get install ibdriver-dkms

reboot

(The above comes from https://help.ubuntu.com/community/Iburst)

Roaringpenguin

download and install roaringpenguin:

Download rp-pppoe-3.11.tar.gz from http://www.roaringpenguin.com/products/pppoe
For instructional purposes I will download and save to the desktop.
Right Click and select extract here.
Open up a terminal (Ctrl + Alt + T) and type in the following.

cd Desktop/rp-pppoe-3.11
sudo ./go
Enter your PPPoE user name eg emailaddress@iburst.co.za.
Enter the Ethernet interface -enter ib0.
Do you want the link to come up on demand - enter no.

PS. if you type yes this usually searches for network interfaces when booting into ubuntu a you end up waiting for a while before it boots up. I don't recommend using yes.
Enter the DNS information here: enter server.
Please enter your PPPoE password: enter Your iburst password.
Choose a type of firewall (0-2): Enter 1. This is fine for a single computer
The summary should look something like this:

** Summary of what you entered **

Ethernet Interface: ib0
User name:          youriburstemail@iburst.co.za
Activate-on-demand: No
DNS addresses:      Supplied by ISP's server
Firewalling:        STANDALONE

enter y.

To start up Iburst type:

sudo pppoe-start


Installing ubuntu on a new empty internal hard drive

Some HP systems use F10 to enter boot.  If you see the boot screen logo, it may be too late.  Start pressing even before you see the boot logo.


Why is the size of update manager different from time to time?

Most probably there was broken update that included unnecessary data files. Without more information, it's hard to know what exactly happened.

For example, maintainer could have pushed update for graphics files (say, background images) that only included some trivial changes. Later that was reverted.

Or on the second time, your Ubuntu automatically downloaded part of the update, and thus showed only 100MB for download size.


I don't know if this is particularly helpful, but I've written a little script to scrape together a bunch of feeds into an html document. This has been running on my computers every hour for years now. I've written it when I just started using Python. But it works.

Even though it's quite late in the day, I've somehow managed to put together a README document, it should be very straightforward to use now.

Download (15,4 KB)

It works nicely on Ubuntu 10.10, but it may require that you install python-feedparser (which is actually doing all the work).

I hope it's of some use.


Would you please try this on a terminal:

 sudo alsaconf


It's not possible to grow a partition into space that's not adjacent to it. As such, you need to move the other partitions to make the free space adjacent to it. In your case, this means moving /dev/sda5 to the "right". Once you perform this move, the free space will be adjacent to /dev/sda3 and you'll be able to grow it.


How can I zoom one specific window in KDE?

You can work around it with the resolution switcher as in the answer here: Fix scaling of java-based applications for a high DPI screen

It automatically changes the resolution based on the app in focus


Concurrent Network User Limit for Ubuntu Desktop

There are no software limit. Only hardware(RAM, bandwidth) limit. You can have as many concurrent connections as your server able to process.


share virtualbox os with multiple ubuntu users

By default, the virtual machine will be located in Home > VirtualBox VMs. Find the folder corresponding to your virtual machine inside this folder.

Move(better copy and then delete :p) the entire folder into some other place(a common hard disk partition) where all your user accounts have access.

Just double click the yourVM.vbox file after moving. That will launch the virtual box with VM added to the list.

You may want to remove the Old entry if it is conflicting.


Is Ubuntu Convergence possible on Nexus 5?

The UBports project lists Nexus 5 as an active device (can be used as a daily driver), codenamed hammerhead.


I was also facing the same problem last few days and few minutes ago I got solution from this post and it worked perfectly (if you are ubuntu user).

sudo apt-get update
sudo apt-get upgrade
sudo apt-get dist-upgrade

Edit:

when the installation is complete the prompt for restart will appear do it. If the prompt don't appear then you have to do it manually by

sudo reboot


Make sure you have INTERFACES="eth0" defined in /etc/default/isc-dhcp-server.  Once you define that directive be sure to restart the DHCP daemon.


How can I mount an ejected USB drive without unplugging it?

Check your usb flash name with:

lsusb

my sandisk example:

Bus 003 Device 005: ID 0781:540e SanDisk Corp. Cruzer Contour Flash Drive

Now i know my sandisk is on bus 003 and device 005
Then you have to check your usb bus and port number with:

lsusb -t

Bus 03.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/14p, 480M
|__ Port 5: Dev 5, If 0, Class=Mass Storage, Driver=usb-storage, 480M

Now i know that bus 3 device 5 is on port 5 so we can go to :

/sys/bus/usb/drivers/usb

and disable port:

sudo tee unbind <<< "3-5"

or enable port:

sudo tee bind <<< "3-5"


I think what you saw was Ubuntu for mobiles link, it's not installed on android, bu instead of android.

You can install Ubuntu (arm) on sd card and chroot to it, if you install vnc server then you can use vnc viewer on android and use all the apps Ubuntu has to offer. Easiest way to do that is by installing android app (Complete Linux Installer for example).


Requirements

Ensure you have the universe repositories enabled via

sudo apt edit-sources

or via the UI

Installation

Update the local package information

sudo apt update

Install dillo finally via

sudo apt install dillo


Direct answer

In order to achieve your goal (of running an X-session dependent user-space script when your machine resumes) you must:

run the script as the appropriate user; and
ensure the DISPLAY variable is set.

I would move the line sleep 15 && synclient TapButton2=2 TapButton3=3 to a separate file say /usr/local/sbin/setupTouchpad.sh and replace the line with:

   export DISPLAY=:0
   su -c - <yourusername> /usr/local/sbin/setupTouchpad.sh

Where <yourusername> should be replaced. Note that it is still a good idea to have some sleep time to be sure the system is awake before running the code. Also, be sure to chmod +x that setupTouchpad.sh script.

A better way

The problem with the above is that you have to hard-code your username (or use some hackish way to discover which user is logged in and has the active X session). It's better to set system-wide touchpad settings for X.

These options may be set in /usr/share/X11/xorg.conf.d/

For me, the correct file to edit is 50-synaptics.conf here I've set options, here's a portion of that file:

Section "InputClass"
        Identifier "touchpad catchall"
        Driver "synaptics"
        MatchIsTouchpad "on"

        Option          "TapButton2"              "2"
        Option          "TapButton3"              "3"

        # Etc...
EndSection

As you may already be aware, to see valid options simply run synclient.

Note you must restart X for these changes to take effect. To do so in Ubuntu, for example, you can run sudo /etc/init.d/lightdm restart

To preview your changes you may try running the following line (or some variant). Remove  | bash from the end to see the commands it's issuing.

cat /usr/share/X11/xorg.conf.d/50-synaptics.conf | grep Option | grep -v "^\#" | awk '{print "synclient " $2 "=" $3}' | sed 's/\"//g' | bash

If you Google around for touchpad settings synaptics xorg.conf.d you'll find a few good overviews of options, also.

References

http://ubuntuforums.org/showthread.php?p=10663041
http://ubuntuforums.org/showpost.php?p=11642979&postcount=622


Why Ubuntu is slower on a Atom Dual Core that on a Atom Single Core?

what I can say is that is not the CPU's fault, the system slowdown is because of the HDD that the Netbook came with which is 5200 rpm, I suggest getting an 7200 or above if you want your system to fly as it should. me personally i got a SSD... hope it helps...


How to define multiline long_description in quickly's setup.py?

You can use the + operator to join strings. Here's an extract of how I do it in the setup.py file of my app:

long_description="Qreator enables you to easily create your " +
                 "own QR codes to encode different types of information " +
                 "in an efficient, compact and cool way.",


Update: if you install the newest version of Insync you no longer have to do it. You can find it here: https://forums.insynchq.com/discussion/1964/insync-for-linux-beta-16-0-10-0/p1

The Ubuntu version of Insync does not automatically create a log everytime it runs. To have a log you have to launch Insync from the terminal and "pipe" the app's messages to a text file that you can then share:

insync > insync.log

if you want to go a bit farder or you are having a lot of issues with the app, you can make it run like this each time you start your computer. Just go to the dash and start typing Startup. You will find an app called Startup Applications. Then click on Add and in the new window:

Add Insync as the name
Add this line of code in the Command box: insync > "insync-"date +"%d-%m-%Y-%H-%M".log
If you want a reminder for the future write a comment like "Start Insync and create its log"

You can also run the same command mannually from the command line or add a subfolder to put it in a different location:
insync > folder1/folder2/"insync-"date +"%d-%m-%Y-%H-%M"`.log

The way it is written, the name of the file will change every time you run it to have the date and time it started running. This way you will have a different file each time you run it in case you have crashes or reboot the computer in the same day.

You can change the order and format of the date to suit your preferences. This is what each one of them means:

d = Day
m = Month
Y = Year
H = Hour
M = Minutes


http://ubuntuguide.net/

I tested it.
It's working properly.

Desktop cube, reset or other options available..

Ex:

rm -rf .gconf/apps/compiz*
rm -rf .cache/compizconfig-1/
rm -rf .config/compiz-1/
rm -rf .compiz*


Will all the drives be formatted if I replace Windows 7 with Ubuntu?

Yes, if you choose the Replace Windows 7 with Ubuntu option, all of your hard disk (all of your partitions) will be completely formatted and deleted, and new partitions will be created for Ubuntu.

If you wish to delete only the C drive (where Windows is installed), and install Ubuntu there, you'll need to choose the Something Else option, and give the C drive a mount point of /.

For more information on the Something Else option, see this question: "Install alongside" option missing. How do I install Ubuntu beside Windows using "Something Else"?


How do I change the default font to "Ubuntu" on OpenOffice.org?

Navigate to Tools ➜ Options... ➜ OpenOffice.org Writer ➜ Basic Fonts (Western) and select the Ubuntu font from the combobox.


Using iMac running Ubuntu as monitor for MacMini running OSX

The answer depends on how old the iMac is. If the iMac has Thunderbolt ports there may be a way. If the iMac does not have Thunderbolt ports then the answer is no. There is no way to use that iMac as a monitor for the Mac-Mini running Mac OSX.

You could use VNC to connect to the Mac-Mini over your internal network.


Cannot launch Nautilus due to libunity.so.6 missing

Are you on Oneiric? You could try

sudo apt-get install --reinstall libunity6

How to obtain this answer?

I first used

ldd /usr/bin/nautilus | grep unity

to check that it indeed needs libunity.so.6 on my machine as well. Then i ran

dpkg -S /usr/lib/libunity.so.6

to find out what package contains that file. It turns out that the package is libunity6. So it makes sense to try to reinstall it, which is what the above command does.


Yes, there are limits. Linux now supports 65536 groups but you will need to use ACLs and RPCSEC_GSS and NFS version 4.0 or higher if you need more than 16 since AUTH_SYS historically has a limit of 16 groups.

Besides the NFS<4.0 limit of 16:

Linux Kernel >= 2.6.3: 65536
Linux Kernel < 2.6.3: 32


Can't find driver (Intel UHD Graphics 605)

Intel UHD Graphics drivers are in the OS kernel, so you need not search for them.

However, the Pentium N5000 CPU fails to meet the minimum hardware requirements of Ubuntu 18.04. A less demanding flavour of Ubuntu, such as Lubuntu 18.04 LTS 32-bit,  18.04 LTS 64-bit, or 19.04 64-bit, may work. It seems your CPU may meet the requirements of Lubuntu, even though it does not meet the requirements of Ubuntu.

Please make sure to verify the checksums of what you download before you generate the LiveDVD or LiveUSB used to install it.


Can't open synaptic package manager after installing get deb

You can fix it using this:

gksudo gedit /root/.synaptic/synaptic.conf

searched for 'trusty'  and replaced it with Your Ubuntu codename.

You can get your ubuntu codename by running command:

lsb_release -sc

Once you've done then run the command:

sudo apt-get update

Now synaptic must run again.

Source: https://answers.launchpad.net/ubuntu/+source/synaptic/+question/213406


You are dealing with two different kinds of programs.

The left program in your screenshot is an application that uses GTK3 Client Side Decorations (CSD). This means that the application itself draws its title bar and includes controls in it.
The right programs you show use window manager provided window decorations (some call this 'legacy decorations'. The window manager controls the decoration, and these are the applications that obey your settings.

For applications using CSD, padding still can be controlled through the GTK3 theme. However, a minimum height is needed to accomodate the controls. You would therefore need to set unpleasantly wide "legacy" titlebars to accommodate the minimal width of a CSD title bar.

CSD cannot easily be avoided. Linux Mint adopts the approach of eliminating all CSD and has forked core gnome applications to revert to a traditional header bar and menu. Also the Mate desktop adopts that approach. To eliminate CSD on standard Ubuntu is less obvious. In short, there is no satisfactory solution, but options are:

There used (and still is) is a way to return "legacy" window decorations to CSD programs (note that for more recent Ubuntu versions, gtk3-nocsd is included in the standard software repositories, so no need to add a PPA). This worked better in older days, where traditional menus would neatly be restored. Currently, the effect is that you add a traditional title bar, but the CSD area beneath remains, leading to a less than pleasant appearance.
Alternatively, one can consider avoiding CSD applications, and for example move to the alternative applications of Linux Mint or Mate.


How do I disable global keyboard shortcuts for a specific application?

In KDE you can do this using "Window Rules".

Open System Settings.

Navigate to Window Management > Window Rules.
(Alternatively, you can search for and launch "Window Rules" directly from the Application launcher.)

Click "New..." to create a new window rule.

On the "Window Matching" tab, you will set the conditions for your window rule:

Give your rule an easy to remember name under "Description".
Next to "Window class (application)", change the drop down to "Exact Match" and set the value of the adjacent field to blender.
Under "Window types", make sure that "Normal Window" is selected.

Switch to the "Appearance and Fixes" tab:

Select "Ignore global shortcuts".
In the adjacent fields, change the drop down to "Force" and set the radio button to "Yes".

Click "OK" to save the new rule and click "Apply" to apply the new rule.

Blender should now ignore global shortcuts.
For other applications, replace blender with the name of the application process. (ex. as it appears under KSysGuard)


If you use mkusb to build your stick, it will create a persistent partition with the size you specify and use the remaining space for a NTFS partition that can be used by Linux and Windows.


Problem with Installing Ubuntu 15.10 on MSI

First of all, 3rd party tools are known to often not create the Ubuntu installation media properly.
Use diskpart - this tool is known to create a proper installation media and is included in Windows.

Open command prompt as administrator and execute :

diskpart
list disk
select disk *
clean
create partition primary
active
format fs=fat32 quick
assign letter=**

Note : * = number of USB drive | ** = select a free drive letter

Mount the ISO file - copy the whole content to the USB drive.

Second, the MSI GE60 2PE should have a dedicated NVIDIA GEFORCE GTX 860M graphics adapter.

Boot from Ubuntu installation media. Select Try Ubuntu without installing.
Press the E key and add nouveau.modeset=0 to the end of the linux line.
Press the F10 key to boot into the Live desktop. Perform the installation.

When finished boot the Ubuntu system. Select the Ubuntu boot menu entry.
Press the E key and add nouveau.modeset=0 to the end of the linux line.
Press the F10 key to boot into Ubuntu system. Install the NVIDIA drivers.

Reboot ... from now on you don't have to add the boot parameter anymore.
Do not forget to disable hibernation and fast startup in Windows before ...


You may delete the files

initrd.img-4.2.0-16-generic.old-dkms
initrd.img-4.2.0-34-generic.old-dkms

as explained in this question.

Removing these both files freeing nearly 45 MiB, hoping its enough.

Have a look in subdirectories or post the output of du -h --max-depth=2 /boot/.

If it is not enough you may detect the running kernel with

cat /proc/version

and then you may remove the not used one, either vmlinuz-4.2.0-34-generic (legacy BIOS) or vmlinuz-4.2.0-34-generic.efi.signed (EFI BIOS). This may be a critical step because removing the running kernel will prevent you from booting your system.


How do you make your battery indicator more detailed in GNOME Shell?

You may use some GNOME extensions to achieve your goal. For example

Dynamic Battery

  Makes battery indicator show battery charge level more precisely

Circular Battery Indicator

  Displays a circular battery indicator

Alternatively, you can enable showing the battery percentage next to the battery icon following this Q&A: How do I show battery percentage in GNOME Panel without using any extension?


Alias is not for redirecting but for mapping URLs to file system pathes, usually outside your DocumentRoot.

Alias /static/images /images

tells Apache that if you request localhost/static/images it should look at the folder /images in your filesystem. Quite likely this folder doesn't exist and you get an error.

See the documentation for more about the Alias directive.

If you want to redirect localhost/myweb/static/images to localhost/myweb/images you need to use the Redirect directive instead, for example

Redirect  seeother /myweb/static/images /myweb/images

See the documentation for more about the Redirect directive.


How to change close button icon in a custom distro using LXDE and icewm?

Change your theme, and you change the recurring objects on your screen, such as close buttons. UbuntuThemes provides, free, a vast number of themes, and you can deconstruct them to see which elements come from where for custom themes, and more theme change information is available on this board at at Ubuntu directly.

To summarize the steps:

Make a folder ~/.themes folder (ignore if you already have one -
check with cd ~ & ls -al from a terminal window.
Download your theme of choice; double-click on it in your file
manager to have the archive manager open.
Extract the contents into a folder underneath ~/.themes
Get the Ubuntu tweak tool: Open the .deb you downloaded, then
install using the Software Center.
Launch the Ubuntu tweak tool - go to "Tweaks" and pick your theme.


Shutdown after a running command terminate?

First find the corresponding pid with pgrep,
then run:

while kill -0 pid; do sleep 5; done; shutdown

From man page of kill:

  If signal is 0, then no actual signal is sent, but error checking is still performed.

So the condition of while loop remain true until that command terminate.


TP-Link Archer 4TE drivers - where to get them from?

RTL8812AE wireless chipset is supported by Ubuntu kernel since the 4.4 version. No separate drivers are needed.

If you have any real problems with that chipset, you can ask specific questions.


Install windows in emulator from Windows USB backup

You could could use virtualbox  to run a virtual version of windows 10 within Ubuntu you could store the virtual image in any location you wish including a USB although it should be noted this would not be "emulating" Windows 10, it would simple be running within a virtual machine.

Hope this helps!


ssh ubuntu@192.168.0.21

This will not work with a MAAS node from my experience.  You need to use the FQDN hostname you used to name the MAAS node.  If you are having DNS issues it will make this difficult.

ping OS-baseVM

I am assuming OS-baseVM is the name of the MAAS node you are trying to connect to.  If you start getting replies great hit ctrl-c.  If it errors out you have a DNS issue.

Simple fix to the DNS issue is to add the MAAS node names to your /etc/hosts file.

192.168.0.21  OS-baseVM

This is how I was able to log onto my first nodes.  This allows your MAAS server to see your nodes.  You then have to duplicate this on each node to see the MAAS server.  It is better to fix bind9, but currently I don't know how to do that.

In short, you are on the right track.  Make sure your SSH key is correct.  Make sure DNS is working.  Then ssh ubuntu@OS-baseVM should work.


Why is the version of transmission not the most recent?

It hasn't made it's way into the Official Natty repos yet, because for the release, they need to have things stable.  I believe that Transmission was part of the Debian Import Freeze, however I'm not 100% sure on that. It could have been part of the Feature Freeze back in February, but again, I'm not sure.

Above info is found in the Natty Release Schedule Wiki Page
However, if you're feeling adventurous, you can take a look at this question:

What are PPAs and how do I use them?

The PPA you want to add is this:
ppa:transmissionbt/ppa

from the Transmission site


How can I reinstall my 14.04 Ubuntu from Windows 7

Have a look at this vid here: http://www.youtube.com/watch?v=86KHkeBpsbA though it's for Ubuntu 12.04, the new ones aren't much different.


Unable to connect to CIFS host - Printer setting problem

Try this:
Remove printer added via ---- System Settings--- Printers
Open a terminal.  (Ctrl+Alt+T).
Run it:
$ sudo -i
# apt-get update
# apt-get install --reinstall cups cups-browsed cups-bsd cups-client printer-driver-hpcups printer-driver-hpijs hplip sane-utils xsane libcups2  cups-client python3-dbus python3-notify2 python3-imaging python3-pyqt4 gtk2-engines-pixbuf  python3-lxml libsane
# usermod -a -G lp $USER
# hp-setup

Select the printer connection type.
Select the Printer to be Configured, setup tool will display printers detected.
Select the PPD file or driver to be Used for Your Printer, usually you will want to select the recommended.
Source


The problem has nothing to do with nc or netcat or any of their ilk. You are running two commands here, nc and grep, but only redirecting the output of grep. What you want to do is:

nc -zv 1.2.3.4 55  &>/dev/null

That, of course, would be pointless since if there's no output, you can't grep. That's what grep's -q flag is for:

   -q, --quiet, --silent
          Quiet;   do   not  write  anything  to  standard  output.   Exit
          immediately with zero status if any match is found, even  if  an
          error was detected.  Also see the -s or --no-messages option.

So, what you're after is something like this:

nc -zv 1.2.3.4 55 2>/dev/null | grep -q " open " && start_daemon

Or, if you need to parse stderr as well, this:

nc -zv 1.2.3.4 55  |& grep -q " open " && start_daemon


my laptop is heated and battery drained fast

What Crake said makes a lot of sense. Are you guys sure you weren't running the Intel iGPU under Windows while you're now running that mobile Radeon? Bumblebee would alleviate that, AFAIK.


Can't display two monitors at the same time

It might sound obvious, but did you checked in the bios settings of your laptop if there is not a setting that managed how your graphic adaptor behaves? I have a Thinkpad where I have to define whether the Intel or Nvidia graphic adaptor should be used... Windows might handle it automatically, Ubuntu not..


I am also seeing this issue on Kubuntu 14.04.  It started after the update to kernel 3.13.0-48-generic

You can restart the system without hard resetting it by pressing Ctrl + Alt + F1 (brings you to command prompt)  Login and then type: "sudo shutdown now -r"  this will at least allow you to bring down the system cleanly.

I am going to boot into an earlier kernel until there is a new kernel.   Here is a link to an article on how to do it:  Pressing shift does not get me into any grub menu    Update:  Issue had nothing to do with the kernel revision


I have a Lenovo e420, which has the same wireless chip. I use a variety of different networks (lots of traveling), and while I've experienced the same thing as you in other versions, I do not experience it anymore (maybe once every other month, and reconnecting from the panel is fine). I'm using 14.04, with no wireless fixes or additional drivers.

Here's a gotcha - is it possible that you're hitting the F9 button without holding Fn? This shuts down the wireless hardware, but Ubuntu doesn't seem to notice (other than there being no internet anymore :) )

Alternately, try 14.04.


mouse cursor on ubuntu server minimal install

There special package for this purpose. It is named General Purpose Mouse (gpm) interface. Install it with:
sudo apt-get install software-properties-common
sudo apt-add-repository universe

sudo apt-get update
sudo apt-get install gpm

Also for ncurses-based apps do not forget to use Tab for switching between interface elements.


while installing phpmyadmin i am getting an error

How are you trying to install it. Please specify that. By the way you can try LAMPP or XAMPP.

To install it very easily, you can try this:

Download this: http://www.apachefriends.org/en/xampp-linux.html#374
Go to downloads folder through terminal, or where ever you downloaded it
Then become superuser through command:   su.  And then type in your password

Then, type this:

tar xvfz xampp-linux-1.8.1.tar.gz -C /opt

That's all. XAMPP is now installed below the /opt/lampp directory.

To start XAMPP simply call this command:

/opt/lampp/lampp start

You should now see something like this on your screen:

Starting XAMPP 1.8.1...
LAMPP: Starting Apache...
LAMPP: Starting MySQL...
LAMPP started.

OK, that was easy but how can you check that everything really works? Just type in the following URL at your favourite web browser:

<http://localhost

If everything went right, you will see a orange screen with all the software installed and PHPMYADMIN will be at the bottom.


Can't update system due to "Error in validating some packages."

For the other problems, I would recommend running all of the following commands:

sudo apt-get clean
cd /var/lib/apt
sudo mv lists lists.old
sudo mkdir -p lists/partial
sudo apt-get update


libboost installation per apt-get - where are the files located? how do I link them in eclipse?

If you want to use libboost in eclipse you also need the header files or libboost-something-dev.

Then in CDT project properties->Build->Settings->compiler->include path
Make sure you have the folder containing the headers(probably automatic if you install the via -dev packages and your compile toolchain is set up properly).

Then in CDT project properties->Build->Settings->linker->libraries
Add the library name like you would to your gcc -l line in the top part and the search path(might be automatic if you use the -dev package) in the bottom part.

click->Apply
click->OK
And it should build.

Just a note:  Using the global include and lib directories gets you automatic updates to components on apt-get update && apt-get upgrade + recompile.  I personally like to cherry pick the .h and .a/.o files I need and put the in a project specific ./include and ./lib subfolder within the project.


This is a known problem in Avast. You need to increase the maximum amount of shared memory allowed.

To load it without rebooting sudo sysctl -w kernel.shmmax=128000000
To make it permanent, edit the file /etc/sysctl.conf (gksudo gedit /etc/sysctl.conf), and add this line to the end of the file kernel.shmmax = 128000000


What are the standard Environment variables ($) in Ubuntu?

Run env command on your terminal. It will list all the available environment variables.

See also the Ubuntu wiki on Environment Variables.

Also refer this question to know more about environment variables.


Download Ubuntu. Create a bootable USB drive. Then start from it and it will ask you to start from live or install.

Click on install. When you get to the partition setup select to complete reinstall.

This will reformat your disk and reinstall everything like new.


Make "Additional [keyboard] layout options" in Gnome Tweaks apply to specific keyboard

This can be achieved at hardware level change, So undo the changes you have done via gnome-tweaks. Requires root privileges.
Reference: https://manpages.ubuntu.com/manpages/focal/man7/hwdb.7.html
Note: If any of the packages are found "not installed" while doing this, install them.
Example:
run sudo evtest
[admin@ADMIN ~]$ sudo evtest
[sudo] password for admin:
No device specified, trying to scan all of /dev/input/event*
Available devices:
/dev/input/event0:  Power Button
/dev/input/event1:  Lid Switch
/dev/input/event2:  Power Button
/dev/input/event3:  AT Translated Set 2 keyboard
/dev/input/event4:  Compx 2.4G Receiver
/dev/input/event5:  Compx 2.4G Receiver
/dev/input/event6:  Compx 2.4G Receiver System Control
/dev/input/event7:  Compx 2.4G Receiver Consumer Control
/dev/input/event8:  Toshiba input device
/dev/input/event9:  PC Speaker
/dev/input/event10: Video Bus
/dev/input/event11: Video Bus
/dev/input/event12: ETPS/2 Elantech Touchpad
/dev/input/event13: HDA Intel PCH Mic
/dev/input/event14: HDA Intel PCH Headphone
/dev/input/event15: HDA Intel PCH HDMI/DP,pcm=3
/dev/input/event16: HDA Intel PCH HDMI/DP,pcm=7
/dev/input/event17: HDA Intel PCH HDMI/DP,pcm=8
/dev/input/event18: HDA Intel PCH HDMI/DP,pcm=9
/dev/input/event19: HDA Intel PCH HDMI/DP,pcm=10
Select the device event number [0-19]:

from the above output event3 is my Toshiba Laptops inbuilt keyboard and damaged.
event4 is my wireless keyboard. I am going to configure this wireless keyboard only to swap Left Win and Left Control.
from the above output prompt, Choose 4 as this is my wireless keyboard. and then Press both the Keys, Left Control and Left Windows.. They are identified as below (some of the output only)
Event: time 1604846371.179388, -------------- SYN_REPORT ------------
Event: time 1604846371.269377, type 4 (EV_MSC), code 4 (MSC_SCAN), value 700e0
Event: time 1604846371.269377, type 1 (EV_KEY), code 29 (KEY_LEFTCTRL), value 0
Event: time 1604846371.269377, -------------- SYN_REPORT ------------
Event: time 1604846375.626511, type 4 (EV_MSC), code 4 (MSC_SCAN), value 700e3
Event: time 1604846375.626511, type 1 (EV_KEY), code 125 (KEY_LEFTMETA), value 1
Event: time 1604846375.626511, -------------- SYN_REPORT ------------

Note down the values and Keynames as below
value 700e0, Keyname LEFTCTRL
value 700e3, Keyname LEFTMETA
So for swapping we need 700e0 as leftmeta ( note, small letters are needed against capital letters in above output) and
700e3 as leftctrl
Now Open the file with below command, replace eventX with your keyboard eventNumber.
sudo -H gedit /sys/class/input/event4/device/modalias

Example Contents for my use case,
input:b0003v1D57pFA20e0100-e0,1,4,11,14,k71,72,73,74,75,77,79,7A,7B,7C,7D,7E,7F,80,81,82,83,84,85,86,87,88,89,8A,B7,B8,B9,BA,BB,BC,BD,BE,BF,C0,C1,C2,F0,ram4,l0,1,2,sfw

Note the above text from the modalias file.
Now create the hwdb config file and open it with below command
sudo -H gedit /etc/udev/hwdb.d/10-my-modifiers.hwdb

this file should have below content, based on above workout..
evdev:input:b0003v1D57pFA20e0100-e0,1,4,11,14,k71,72,73,74,75,77,79,7A,7B,7C,7D,7E,7F,80,81,82,83,84,85,86,87,88,89,8A,B7,B8,B9,BA,BB,BC,BD,BE,BF,C0,C1,C2,F0,ram4,l0,1,2,sfw
 KEYBOARD_KEY_700e3=leftctrl
 KEYBOARD_KEY_700e0=leftmeta

Save the File & Close.
We have configured the file. update the hwdb with below command.
sudo systemd-hwdb update

If no errors are shown, good to go. Otherwise we need to look for evdev line to configure properly.
to apply the changes immediately, run the below command.
sudo udevadm trigger

Tested with Two Wireless Keyboards With Different Configs.. Both proved for individuality.
Major Reference: https://wiki.archlinux.org/index.php/Map_scancodes_to_keycodes
A Similar One: How to remap 'Caps_Lock' key to 'w' in Wayland


After removing smart scopes Unity with Active Blur becomes very slow

Have you tried changing the dash blur setting under the unity-tweak-tool?

Try with static and no blur, and see how it goes: if it works, you should notice it right away.


Is there a way to show icons on a git repo folder like tortoiseGit?

RabbitVCS is a set of graphical tools written to provide simple and
   straightforward access to the version control systems SVN (Subversion) and Git.

apt-cache search ^rabbitvcs
rabbitvcs-nautilus-3.0 - Nautilus 3.0 extension for RabbitVCS
rabbitvcs-cli - Command line interface for RabbitVCS
rabbitvcs-gedit - Gedit extension for RabbitVCS
rabbitvcs-nautilus - Nautilus 2 extension for RabbitVCS
rabbitvcs-thunar - Thunar extension for RabbitVCS
rabbitvcs-core - Easy version control
rabbitvcs-nautilus3 - Nautilus 3 extension for RabbitVCS


Can not upgrade An upgrade from 'eon' to 'bionic' is not supported with this tool

I had this problem too. I began to run the upgrade and just when I clicked install upgrade, I lost connection to the net. Then this error above persisted.
Although this option is not tested according to the expert, it worked without any glitches, over the other 'half install' Took roughly 2.5 hours.
I am now on 20.4 and its awesome!
Follow these steps as is- using sudo.
$ sed -i 's/bionic/focal/g' /etc/apt/sources.list
$ apt-get update
$ apt-get upgrade
$ apt-get dist-upgrade
$ reboot


Error printing on network printer hp laserjet4200 in ubuntu 14.10

My problem is solved by selecting cups from the drivers list instead of Postscrip


Shortcut super + t doesn't open the trash anymore

Apparantly not (I didn't even know it existed in earlier versions!), but you can create it in a jiffy:

Choose: System Settings > "Keyboard" > "Shortcuts" > "Custom Shortcuts". Click the "+" and add the command:

nautilus trash:///

Use Super + T as shortcut and you're done :)


How do I display database statistics in Darktable?

I wrote a script for that particular task.
Based upon bash with a bit of sqlite3.

Requirements to query against the darktable-library:

sudo apt-get install sqlite3

Greetings,
Christian


Copying subdirectories with -r option not working

Try:

cp -R maybe that will work, or
cp -rf, you can also try
cp -av origin_folder destiny_folder –
But cp -r /home/hope/files/* /home/hope/backup, should have worked.


Samsung Xpress M2070FW won't print PDF on Ubuntu 17.10 x64

for Samsung's drivers, one would go here https://support.hp.com/nz-en/drivers/selfservice/samsung-xpress-sl-m2070-laser-multifunction-printer-series/16450377 and click to download what seems currently to be  uld_v1.00.37_00.99.tar.gz

then open a terminal; copy each command below line by line; PASTE into the terminal; hit the enter key; move to copy the next line ..

cd Downloads
tar -zxvf uld_v1.00.37_00.99.tar.gz
cd uld
sudo ./install.sh

and that final script runs the install script; .. and all should be good


sudo apt install xfce4 solved the problem, but it`s strange how does disappeared


Ubuntu 20.04 Newb - Screen Flickering in Full-screen Games

I dont know if its the right answer, but here are some things you can try:

Disable composting: How can i disable the compositor (gnome-shell/mutter) on fullscreen windows?

Search for tear free rendering. Eg: https://unix.stackexchange.com/questions/418922/how-to-get-tear-free-rendering-with-nvidia-proprietary


How to know if the running platform is Ubuntu or CentOS with help of a Bash script?

Unfortunately, there is no surefire, simple way of getting the distribution name. Most major distros are moving towards a system where they use /etc/os-release to store this information. Most modern distributions also include the lsb_release tools but these are not always installed by default. So, here are some approaches you can use:

Use /etc/os-release

awk -F= '/^NAME/{print $2}' /etc/os-release

Use the lsb_release tools if available

lsb_release -d | awk -F"\t" '{print $2}'

Use a more complex script that should work for the great majority of distros:

# Determine OS platform
UNAME=$(uname | tr "[:upper:]" "[:lower:]")
# If Linux, try to determine specific distribution
if [ "$UNAME" == "linux" ]; then
    # If available, use LSB to identify distribution
    if [ -f /etc/lsb-release -o -d /etc/lsb-release.d ]; then
        export DISTRO=$(lsb_release -i | cut -d: -f2 | sed s/'^\t'//)
    # Otherwise, use release info file
    else
        export DISTRO=$(ls -d /etc/[A-Za-z]*[_-][rv]e[lr]* | grep -v "lsb" | cut -d'/' -f3 | cut -d'-' -f1 | cut -d'_' -f1)
    fi
fi
# For everything else (or if above failed), just use generic identifier
[ "$DISTRO" == "" ] && export DISTRO=$UNAME
unset UNAME

Parse the version info of gcc if installed:

CentOS 5.x

$ gcc --version
gcc (GCC) 4.1.2 20080704 (Red Hat 4.1.2-54)
Copyright (C) 2006 Free Software Foundation, Inc.

CentOS 6.x

$ gcc --version
gcc (GCC) 4.4.7 20120313 (Red Hat 4.4.7-3)
Copyright (C) 2010 Free Software Foundation, Inc.

Ubuntu 12.04

$ gcc --version
gcc (Ubuntu/Linaro 4.6.3-1ubuntu5) 4.6.3
Copyright (C) 2011 Free Software Foundation, Inc.

Ubuntu 14.04

$ gcc --version
gcc (Ubuntu 4.8.2-19ubuntu1) 4.8.2
Copyright (C) 2013 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

This has basically been directly copied from @slm's great answer to my question here.


The something else allows you to mount things like /home to other drives/partitions. I use it all the time to create a seperate /home partition so if I decide to change distros, I can keep all the stuff I have there.
Help With Partitions


Have you tried this?

How Install NVidia Driver

and this one:

Distorted after installing NVidia

and this one:

Step by Step install NVidia


After much frustration. I have written a guide on how I got my 970 drivers working below. The guide also covers how to fix any general NVIDIA driver if your OS is giving you a black screen of death on bootup, or installation. It is very detailed.

HOW TO FIX THE BLACK SCREEN OF DEATH WITH UBUNTU.

Let’s say you have a new hard drive and you are using a bootable USB with Ubuntu on it in order to install the OS. If you get to the installation page and say you click “Install Ubuntu”, then the screen goes black then it’s probably to do with your GPU. The problem is that modern kernels (the kernel is how software interfaces with hardware) have had the graphics mode settings put into them rather than left on the x driver (the X driver is used to allow an input device to interact with the display; so moving your mouse around your monitor display for example). By dumping the graphics settings into the kernel, it allows a nice looking splash screen to be displayed when your installing the OS and have nice sharp windows when installing the OS. However, if your graphics card settings don’t work with the kernel, then you can’t see the install screens. So you get a lovely black screen that displays no information what so ever. You now have to rely on the BIOS to interact with your GPU instead of the kernel so that you can have a GUI for your installation. To do this, when you boot from the USB, you have to wait for the installation screen and you need to press TAB when you’ve highlighted the “Install Ubuntu” option. When the page loads you will be able to see all the boot options, and you will have to use the arrow keys to navigate to a section that says something along the lines of:

quiet splash $vt_handoff

You need to change it so that it says the line below, then press Enter to boot up using this setting.

quiet splash nomodeset

When your computer reboots, you will then be able to interact with the installation screens and complete the install.Once Ubuntu is installed, you will neep to click reboot as the final menu option, and when you reboot, you will need to remove your USB & break  the boot sequence again. But this time, you have to break the boot sequence by spamming the left shift key (you are trying to get into the GRUB that you just installed this time). The GRUB (GRand Unified Bootloader) is just something that you can use to set boot options or boot into mutiple OS’s that might be installed on your hard drive. If you didn’t get into the GRUB then you have to spam the left shit key faster (some people say to hold shift, but that has never worked for me. If you spam the shit out of shift though, it always works eventually). When the GRUB loads, leave the default highlighted line selected (it will be the one that is the Ubuntu generic option and not the recovery mode) then press e. Within this menu, you will have to look through the boot options and find where it says the “quiet splash $vt_handoff” option again, and change it to say nomodeset (same as before/above).  You will then get your normal Ubuntu login screen, albeit with a terrible resolution, and be able to login. At this point it’s best to just do the following two commands to get your system up to date:

sudo apt-get update
sudo apt-get upgrade

You are now ready to get your Nvidia drivers.  The actual syntax to do this is below (I will explain what the commands do, and how I arrived at these commands below).

sudo add-apt-repository ppa:xorg-edgers/ppa
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install nvidia-[number_of_driver_version]
! for me it was
sudo apt-get install nvidia-352

The xorg-edgers ppa command is used to install a repository of Nvidia drivers. Since your distribution of Ubuntu may not always include the necessary repository to install the latest driver (or your driver at all) for your graphics card, you sometimes have to get the repository manually by using the xorg-edgers ppa.. If you get a black screen on startup, then most likely your Linux distro didn’t have your graphics card driver, or repository for it. So you need to get this bunch of repository files which will later be referenced using the command underneath (to actually install the drivers). The last command is used to install the Nvidia driver, version 352 in my case. To find the version number you have to go to the Nvidia website and go to the download drivers section. You will get a bunch of drop down menus that you can use to identify your OS and your graphics card. Choose the correct items and click search. The website then finds the driver you need, and the key number you are looking for is at the top of the page where it says “version”. For me it said 352.21, meaning the major release is 352. So this is how I found what number to use in order to install the latest driver.

After a reboot, this should be enough to get your Nvidia card working & make automatic updates work for new drivers they release (or any kernal upgrades you might install).
You then just run the command below to remove the ppa repository (since we already have the driver we want installed). The reason for deleting it is because it also has a bunch of other stuff within the repository that could be used for other programs when you update them. So it’s best to make sure you just remove it to reduce an unexpected install of software at a later date when you come to update/upgrade your distro.

sudo add-apt-repository -r ppa:xorg-edgers/ppa


Restoring a single file with deja-dup without scanning the entire backup archive

Per manpage: http://manpages.ubuntu.com/manpages/natty/man1/deja-dup.1.html

SYNTAX: deja-dup --restore FILES
EXAMPLE: deja-dup --restore /usr/lib/cgi-bin/somefile.txt

This will restore the last known copy of this file.  So if your last backup was on 5/15/2014, then only data up to 5/15/2014 will be present in somefile.txt .  I've actually run this command myself and verified it works.  NOTE* even though you're running it from command line, a gui window will popup asking for you to confirm the backup location and password, etc...  Don't worry, it will only restore the file you specified at command line.    Cheers


From the comments...

Most times when you see that it's connecting at less than the optimal speed, it's a cabling issue. Are you using cat 5e or cat 6 cables? Is the switch/hub/router/modem that it connects to gigabit? Otherwise, auto-negotiation can sometimes go wrong... but most times... it's cabling.

Update #1:

It did turn up to be a strange cabling issue. Tried in another part of the building and it works at 1000mbps. I was confused why it worked with windows and not ubuntu. Resolved the mystry


You mentioned in a comment below the original question that you installed Pillow with pip however you have Python 3.5 installed and pip3 install pillow is only supported for versions of Python <= Python 3.4.

Pillow is packaged as python-pil and python3-pil in all currently supported versions of Ubuntu, and it has replaced the discontinued PIL project in the default Ubuntu repositories since Ubuntu 13.04. You should uninstall pillow that you installed with pip and install python-pil and/or python3-pil instead.


Make it a subshell with two cat commands in parentheses:

( cat -b file1 ; cat -E file2 )


Does Ubuntu 10.10 work well on mac mini?

The following two pages may help you:

Mac Mini Intel Core Duo (3,1) on Ubuntu 10.10 (Maverick Meerkat)
Mac Mini 4,1 Ubuntu 10.10 (Maverick Meerkat)


Open Python scripts in text editor rather than try to executes them

In Krusader, you can right-click on a file, then "Open With", then "Other...", and in the menu that opens you can associate the file type with the application you want. Check "Remember application association..." at the bottom so it is persistent.
This will actually associate the MIME type associated to this file to the application system-wide. You should also be able to edit that from the system settings somewhere. I am not sure however how the file type/extension is linked to the MIME type.


Launch Chrome with a very minimal Window manager

Window managers don't start apps.

~/.xinitrc:

#!/bin/sh
sh -c "while true; do google-chrome; done" &
exec metacity


Does the debian-installer install packages from remote repositories?

The only package updates to lucid now are critical updates, security updates, and similar. You want these packages, or you could easily end up with a vulnerable system.

There is very little "package churn" in Lucid apart from this though. If you install from an ISO then update to the latest lucid packages just once after install, you probably won't see more than a couple of new updates a month [1].

[1] wild guess in the dark but I'd be surprised if it was above this ballpark.


Simple image viewer that is using trash rather than permanently deleting files?

gThumb, available from package with this name is able to use Ubuntu trash folder (out of the box, without changing any settings).

It is also possible to stop confirmation before moving to trash using Edit | Preferences - tag General, section Other.

Eye of GNOME is also able to use trash and it is enabled by default, but it is impossible to pernamently disable confirmation before moving file to trash. It resides in package eog.

gwenview also technically fits but is unusable due to horrible effects and animations, without option for disabling them (according to http://kde-bugs-dist.kde.narkive.com/YHb61htK/bug-289213-make-crossfade-animation-optional it should be possible once Ubuntu package is updated). Also, selecting "install plugins" results in installation of programs spamming start menu.


Corrupted default keyboard settings on specified user

Luckily I found solution - bug caused by this gnome extension

Removed, rebooted and all works fine now.


It's minimalistic.

You need to press CTRL+G (by default) to open the URL prompt, then type it in and press Enter. Alternatively, you can press CTRL+P to get the URL from your clipboard.


Unable to run apt-get with proxy even after setting the environment variables

As far as I can see Your Proxy server require Autentification:

407 Proxy Authentication Required ( The ISA Server requires authorization to fulfill the request. Access to the Web Proxy filter is denied. )
E: Failed to fetch http://in.archive.ubuntu.com/ubuntu/pool/universe/h/htop/htop_1.0.3-1_amd64.deb 407 Proxy Authentication Required ( The ISA Server requires authorization to fulfill the request. Access to the Web Proxy filter is denied. )

So You have to use another Proxy settings syntax:

http_proxy="http://username:password@proxyserver:port"
https_proxy="http://username:password@proxyserver:port"
...

Those username and password are Proxy server parameters usually given by network administrators (at our network they are username@domain:password)


Removing Ubuntu without losing Windows XP

I think the fastest way is to use fixmbr from the Windows recovery console, as in this example.

After you manage to use Windows boot loader, just run Windows, and go to My Computer -> Managenent -> Disk Utility and format the linux partition to any file system you want (probably NTFS).

Good luck!


Postfix would not auto-create the Maildir for incoming mails

I just bumped into the same issue migrating Postfix.  In the /etc/postfix/vmailbox file you need to format the target directory of the email address with a trailing slash "/" or it will puke that error:

/etc/postfix/vmailbox Specimen Entry:

terrence@test.com test.com/terrence/

Note the trailing forward-slash at the end of the target path for mail test.com/terrence/

If that's missing, you'll get that error puked that you referenced:

 unable to create lock file /var/mail/vhosts/XXX.net/BLAH-RCVR/mail.lock

After you add the trailing forward slashes on the end of every target path for all your email addresses in /etc/postfix/vmailbox then of course execute:

postmap /etc/postfix/vmailbox

A bit late, but when I bumped into this issue myself I found your post so when I solved the problem, felt it was worth answering your question; bettewr late than never!


After a little more research, I was able to find a set of terminal commands that allowed me to reinstall the driver without incident.


The SeatDefaults section, as expected, set the default values. However, once a user has already logged, the session they used (even if it was the default left unchanged) is taken as their session choice. So changes to SeatDefaults no longer apply to them. They'll have to manually select the session from the menu next to their username (usually a gear icon).


Which kernel version fixes the issue of dell touchpads being recognized as a mouse?

Open a terminal and to the following:

apt-cache search linux-image

Choose the one that you want and then do:

sudo apt-get install linux-image-your_version_choice

or

sudo apt-get update

and then

sudo apt-get upgrade

to perfrom a system update.


can I COMPLETELY erase a USB and SSD hard drive in ubuntu 12.04?

What's happening to you is that you're letting Ubuntu format the disk, and so it's putting a Linux filesystem on it. Linux filesystems tend to have a lost+found directory.

Delete partitions. Don't create any new partitions. Don't reformat. Let the other OS' installer do the formatting.


Wine programs (Steam and Football Manager) don't work after upgrade

Unity completely wrecks the Wine user experience in several important ways.

Compiz (desktop effects) is required, and Compiz often messes with Wine
The Application Lens does not show any subfolders or allow the user to filter by wine apps, making finding them in the big alphabetical mess of a list difficult.
Most Wine apps show the Wine icon rather than their icon in the dock.

This happened because Unity was not designed with Wine users in mind.  At all.  This is partially my fault, as I was a bit busy this cycle and should have been shouting from the rooftops to get Wine users noticed, but I was a bit busy with personal life and barely managed to get the system tray not intentionally broken.

That said, your specific application issue is probably not Unity-related.  I will be putting out a new Wine1.2 release soon and issuing a stable release update for Natty, however in the meantime I would encourage you to try Wine1.3 ("Beta release" in Software Center) or the Wine PPA.


Unable to drag brush tool in Photoshop CS5 in 12.04

I had the similar problem with wine 1.4 and all the older wine versions. Now i installed Photoshop in wine 1.2(!) and it works like a charm. View picture below.

What i did was the following:

First get photoshop.exe from your installation CD.
Then i installed it in Playonlinux. First i installed wine 1.2 in playonlinux. (Settings/Manage Wine Versions) Then i pressed install and in the popup menu press: Install a non listed program. Then go to the setup and install the photoshop.exe
Then it run's like a charm.

Proof of my working brushes:

I haven't tested everything, but i tested most things and they all seem to work.

Greets


The default terminal emulator on Ubuntu is the GNOME Terminal. It's located at /usr/bin/gnome-terminal and can be run with the gnome-terminal command.

What You Really Want

What you probably want is a shell running as root, as though it were produced from a root login (for example, with all the environment variables set for root rather than for your user).

Assuming that's what you want, as steeldriver has suggested, just run:

sudo -i

You'll have a root shell in which commands you enter will be run as root (without having to precede them with sudo).

But if you really want to run the graphical terminal emulator application as root, read on. I present two ways: with gksu/gksdo, and with the sudo command.

With gksu/gksudo

Since you have the gksu  package installed, you can run gnome-terminal as root with either of:

gksu gnome-terminal

gksudo gnome-terminal

(Since gksu is set to sudo-mode in Ubuntu by default, these should be equivalent.)

Running gnome-terminal as root without a controlling non-root terminal:

Virtually every desktop environment provides a facility to run a command without having to open a terminal (which would then, if closed, usually cause the command to be terminated).

This is usually achieved with Alt+F2. A textbox labeled Run command (or similar) will appear and you can enter your command.

For example, it looks like this in Unity:

And like this in MATE (GNOME Flashback/Fallback, Xfce, LXDE are similar):

Note that this works with gksu and gksudo because they use a graphical authentication dialog. If you were to press Alt+F2 and run sudo ..., you would then be unable to interact with the password prompt.

With sudo

If you don't have the gksu package and you won't want to install it, you can use:

sudo -H gnome-terminal

The -H flag is important because it sets the HOME environment variable to /root instead of your own user's home directory. You should not use sudo gnome-terminal as it can break the gnome-terminal configuration belonging to the non-root user. For more information about this, see:

RootSudo on the Ubuntu help wiki
Why should users never use normal sudo to start graphical applications?

(sudo -i gnome-terminal is also okay.)

Getting rid of the controlling non-root terminal:

If you (1) open a graphical terminal, (2) run something like sudo -H gnome-terminal in it, to create a new graphical root terminal, and (3) quit the original non-root graphical terminal ...then the root graphical terminal quits as well.

This is because the root graphical terminal is sent SIGHUP when the terminal that owns it is exited.

To prevent this, you might think you could instead launch the graphical root terminal with:

sudo -H gnome-terminal &

But this will only work if sudo doesn't have to prompt for a password. If it does, you won't see the password prompt.

One way to work around this is to use:

sudo -v
sudo -H gnome-terminal

sudo -v exists for just this purpose. As explained in man sudo, it "update[s] the user's cached credentials, authenticating the user if necessary."

Note that this will still not work if run directly from your desktop environment's Alt+F2 "run command" box, because you still need a terminal to enter your password for sudo -v.

Or you can do it in what might be called the traditional way, by suspending the job after it starts:

Run sudo -H gnome-terminal from the original non-root graphical terminal.
Enter your password as prompted by sudo. The graphical terminal will start.
Still in the non-root terminal, press Ctrl+Z to suspend the root terminal. While the root terminal is suspended, you can't use it; its interface will not respond to your actions.
Quit the controlling non-root terminal with exit. The graphical root terminal job will be both unsuspended and disowned by the non-root terminal, automatically.

In short:

sudo -H gnome-terminal
^Z
exit

But suppose you wanted to keep using the original, non-root terminal too. Then you could run bg N, where N is the graphical root terminal's job number, to resume the job in the background. You can run jobs to find N but you probably won't have to--that number was shown as [N] when you pressed Ctrl+Z. For example:

ek@Ilex:~$ sudo -H gnome-terminal
[sudo] password for ek:
^Z
[1]+  Stopped                 sudo -H gnome-terminal
ek@Ilex:~$


Why does Flash Player need "ttf-mscorefonts" in order for flash player to work?

In Flash IDE, when creating a text field, there are two options in terms of specifying a font:

if a "normal" font is selected (i.e. Ubuntu or Droid or Comic Sans), outlines of the symbols used will be included in the swf file as vector shapes, so the text will be displayed identically on any platform
there are also some special fonts: _sans, _serif and _monospace - when those are chosen, the outlines are not included in the file and Flash Player uses system fonts instead. Which, on Windows, are Times New Roman, Arial and Courier New.

Because Flash movies are authored predominantly on Windows, they're tested with those fonts present. I don't know if there's a hard dependency built into Flash player, but even if not, some/many movies will be displayed incorrectly if those fonts are missing.


How to revert from using an encrypted home partition?

You can recover your encrypted data by issuing the following command:

sudo ecryptfs-recover-private

You will see an output such as this:

INFO: Searching for encrypted private directories (this might take a while)...
INFO: Found [/home/.ecryptfs/USERNAME/.Private].
Try to recover this directory? [Y/n]:

Hit enter, and follow the steps...

INFO: Found your wrapped-passphrase
Do you know your LOGIN passphrase? [Y/n] Y
INFO: Enter your LOGIN passphrase...
Inserted auth tok with sig [xxxxxxxxxxxxxxxx] into the user session keyring
INFO: Success! Private data mounted at [/tmp/ecryptfs.m6OUhFlJ]

You can now access all your data in the folder /tmp/ecryptfs.m6OUhFlJ (or similar, the text after the dot is random). You will need to copy all of that where you want it (e.g., in your home folder), using a file browser or by using something like:

rsync -Cav /tmp/ecryptfs.m6OUhFlJ/ ~

Note that you will need at least as much free space as the size of the encrypted data for this. Otherwise you will have to use an external hard disk or some such to copy your unencrypted data to.

Finally, you can remove the ecryptfs utilities using either the Software Center or a command such as

sudo apt-get remove ecryptfs-utils

...and now, to free space, and only once you've made sure that all your unencrypted data has been copied somewhere safe,  you can remove the encrypted data. Careful! This will irrevocably delete ALL your encrypted data! Use with caution!

sudo rm -r /home/.ecryptfs/USERNAME