Take a look into the folders that bother you, to see if there is anything of value in there, and - if you're happy with losing the data - just delete them (just in case, you might choose to leave them in the trash for a few weeks).

In the future, you can instruct your package manager to remove the application as well as associated system-wide configuration files by doing a purge.

In synaptic,
right click the package and select
Mark for complete removal.
On the command line, if you prefer,
type sudo apt-get purge
packagename.

This will delete any configuration and application data that the application has created system-wide, it will - of course - leave intact all the data that you have saved from within the application (i.e. NetBeans' project directory), this includes all the user-specific configuration that is saved in your home directory. Manual deletion is the only way to get rid of those.

If you want to find out what folders take up much space, there's the Disk Usage Analyser (Applications → Accessories → Disk Usage Analyser), select the "scan home" option to get a listing of everything in home, including hidden files.

Also, use the Computer Janitor (System → Administration → Computer Janitor) to clean up any rubbish that has been left behind by the package manager. In terms of the command line, this would be equivalent to doing sudo apt-get autoremove && sudo apt-get autoclean.

Some applications, like NetBeans and AmaroK, may leave behind quite a bit of data. But there is no way for the system to automatically delete them without the risk of deleting something somebody actually wanted to keep. For the users' sake, there's no such feature; a good job considering you might have used netbeans for a few years before removing it - i'd be really annoying if apt deleted all your work to free 500 kilobytes. :-)


The answer is most unpredictable I've encountered. Changing back Hyper-V processors to 1 from 4 resolves the problem. Change it back to 2,4,6 or anything else makes the network stop working. Most likely due to no Integration Services installed yet. That I wouldn't expect...


The discussion in comments clarified that the packages ibus-gtk and ibus-gtk3 were not installed. They are important for making IBus work properly with Gtk applications.

In Ubuntu, where IBus is installed by default, these packages are always present (since they are recommended by the ubuntu-desktop package):

ibus
ibus-gtk
ibus-gtk3
ibus-table

So in short: Install at least ibus-gtk and ibus-gtk3.


If all the hidden files start with a dot (.), then you can do

cp .?* /path/to/directory

from the directory the hidden files are in.
This command says copy all the files starting with a dot (.?*) to the directory specified. '*' is a wildcard.

.?* requires at least one character after the dot '.'


Why didn't my user get assigned to the group I had added myself to?

You don't need to reboot to assign the additional group to your user. In the running shell the group assignment doesn't change, but it does in a new shell:

jean@myLinux:~$ sudo groupadd tester
[sudo] password for jean:
jean@myLinux:~$ sudo usermod -a -G tester jean
jean@myLinux:~$ id
uid=1000(jean) gid=1000(jean) groups=1000(jean),4(adm),24(cdrom),27(sudo),30(dip),46(plugdev),118(lpadmin),128(sambashare),129(vboxusers)
jean@myLinux:~$ su - jean
Password:
jean@myLinux:~$ id
uid=1000(jean) gid=1000(jean) groups=1000(jean),4(adm),24(cdrom),27(sudo),30(dip),46(plugdev),118(lpadmin),128(sambashare),129(vboxusers),1003(tester)


There is an repo. To add it, open a terminal and entersudo touch /etc/apt/sources.list.d/pgdg.list
sudo echo "deb http://apt.postgresql.org/pub/repos/apt/ precise-pgdg main" | sudo tee /etc/apt/sources.list.d/pgdg.list

Then import the repository signing key:
wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -
sudo apt-get update


How to connect to my computer using my friends hotspot

Assuming your computer has working Wi-Fi, you shouldn't have to do anything in a terminal.

(If you do not have a Wi-Fi adapter in your computer, please add that information to your question, so someone can help you connect your computer to the iPhone's network using the lightning USB cable).

On your iPhone...

Tap the Settings icon
Tap Personal Hotspot
Turn on the Personal Hotspot switch by sliding it to the right
Tap Wi-Fi Password
Note the password, or enter a new password, if you want
Tap Done
Note the name of the phone's Wi-Fi network in the "CONNECT USING
WI-FI" instructions section; it will say "1 Choose ..."

On your Ubuntu computer...

Click the top right corner of your screen
Click Wi-Fi Not Connected, to expand this section
Click Select Network
A dialog will appear on your screen, listing available Wi-Fi networks
Click on the phone's Wi-Fi network from step #7 above
Enter the password from step #5 above
Click the Connect button
Your computer will connect to the phone's Wi-Fi Hotspot


Airplay mirroring from Ubuntu 16.04 to Apple TV

You will need several things:

IP address for Apple TV
Airplay.jar from https://github.com/jamesdlow/open-airplay/releases
Properly installed java (to execute jar file from your terminal)

Here is one way you can tell if you're Apple TV is detectable by your computer on the network:

ping appletv.local

Ok, next step is to execute airplay.jar from a terminal (do this from a directory which contains jar):

java -jar airplay.jar -h 172.18.129.223 -d

If your appleTV device has some credentials you can use

java -jar airplay.jar -h hostname[:port] [-a password] -d

The most important thing to note is that it is not true airplay screen sharing, it is emulated through taking screenshots of your desktop each second and sending it to AppleTV as a photo. However, it is the best way I know to deal with screen sharing to AppleTV from a non-apple device. (Proprietary sucks!)

You can also find a list of other libraries to work with AppleTV here:
https://github.com/jamesdlow/open-airplay

That's it! Now you should see your screen on the AppleTV.

Credit to Vadim Kirilchuk's blogspot


Inconsistent message while upgrading from 20.04 to 20.10 and installer stuck

In order to clean my 20.04, I have tried sudo apt update and sudo apt upgrade.  Indeed I have
Errors were encountered while processing:
/tmp/apt-dpkg-install-sERPT9/0950-ubuntustudio-menu_0.49_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

I removed ubuntustudio-dektop and ubuntustudio-menu. Now sudo apt upgrade exits nicely.
Rebooting I see 20.10.


This is a Windows RT (ARM) tablet, there is no Ubuntu for this type of device, it is very restricted, you can't even have Android, Windows RT only.

Related questions on Stackoverflow and Ubuintu forums


How to automatically update burg after a kernel update

Another method for you is to edit /etc/kernel-img.conf

do_symlinks = yes
relative_links = yes
do_bootloader = no
do_bootfloppy = no
do_initrd = yes
link_in_boot = no
postinst_hook = update-burg
postrm_hook = update-burg

From: https://bugs.launchpad.net/burg/+bug/594431 (a bug report echos your experience)

This can similarly be wiped out by updates but as it's in /etc/ you should (I think) get a prompt to keep your existing configuration when an update does hit.

As people in the bug go on to say, this still isn't ideal as there's every possibility that somebody might want to run both burg and grub or at the very least keep the two synced.

You could go one further and write a new script like this:

#!/bin/sh
set -e
exec update-grub "$@"
exec update-burg "$@"

Save it as /usr/sbin/update-bootloaders, chmod +x it, and then stick update-bootloaders in /etc/kernel-img.conf in place of update-grub or update-burg.

I guess in the long term, an alternatives system needs to be set up for various bootloaders as exists for java, audio and other interchangeable subsystems.


It looks like you installed another Display Manager somehow (it can happen with a lot of package installations, including other desktop environments). Judging by your background, you installed the default version of Ubuntu. Here's how to get lightdm (the default login screen/Display Manager) back:

Open a terminal (Ctrl+Alt+T) and run sudo dpkg-reconfigure lightdm. A window will come up in the terminal. Use your arrow keys to scroll to the lightdm option and hit Enter. Log out, and you should have the login screen back.

Like David Cole said, the burn-in you see is most likely screenburn, which is hardware related and can't really be controlled by Ubuntu. Follow his link for more info on that. (I'm also pasting it here in case the comment gets removed for some reason: http://lifehacker.com/146469/remove-lcd-image-burn-in)


I had the same problem myself. In my case there was some problem with configuration files.
To check if that is a issue for you too, create a new user or use guest account. GUI should display as intended.

To fix it for your account:

Navigate to your home folder, delete any .gnome, .compiz folder you can find there. After that go to .config folder and repeat procedure with gnome and compiz folder there. Do not worry, Ubuntu will replace them with default files. Log out.

I'm sorry that i cannot provide you with more precise answer. This one may look a little dirty but it works.


How to run a Brother embroidery machine with "PE - Design Ver.7"?

"PE - Design version 7" is Windows only. Your best bet would be to install virtualbox/vmware, install Windows and then go from there.

You could ask Brother if they might support Linux in the future, but since they don't even support Macs I have a feeling this won't happen in a long time.


To get the necessary development files, you need to install libgusb-dev, libgtk-3-dev, and libwebkit2gtk-3.0-dev. Running sudo apt-get install libgusb-dev libgtk-3-dev libwebkit2gtk-3.0-dev will install the necessary packages for you.


How do I get my USB to work in windows xp guest. Ubuntu 16.04 host

You need to add your user account to the vboxusers group of your Ubuntu 16.04 installation.

To add your user to the vboxusers group, run the following command from a terminal:

sudo usermod -a -G vboxusers <username>

It is recommended after the command that you reboot your system, and after the reboot you should be able to add your USB devices to VirtualBox.

After you reboot, go to your main VirtualBox screen and select your VM and click Settings above:

Perform this step before you start any VMs.  Once in your settings, choose USB and select USB 2.0 (EHCI) Controller, then on the right you can add the filter for your USB drives that you're going to use with the VM.  Your USB device has to be plugged in so you can add your USB filter.

Use the second icon down on the right with the + on it to add your USB filter.

Before reboot:

After reboot:

Hope this helps!


Why is BubbleUPnP not connecting to my minidlna server?

To be able to access your miniDLNA sever we need the following in addition

Make sure the ports for traffic are open (firewall and router).
We may want to open SSDP traffic on port 1900 UDP for multicast service announcement. In addition we may need to also open port 8200 TCP for trivnet1.
If in the same network we may not need to define a listening_ip.

Note for 14.04: MiniDLNA was removed upstream from the repositories but is available through the backports repository.


What nfs export settings do I need to boot the Ubuntu live discs over a network?

After lots of crying, I found the solution from a random guess.

In the past, i have done a very similar setup to this with perfect success.

In the past, I used Ubuntu 12.04. In this, I am using 12.04.3.

Went to the old releases, got the old .iso and did the same process to get my folder structure the way it should be.

Now everything is perfectly fine.

hope this helps!


Sure. Make a script that:

invokes the user's shell, which allows them to do whatever they want as usual; and then
runs whatever program you want to run once the shell is finished (the user is "logging out").

Set that script to the the user's login shell. That should do what you want.


Trying to overwrite ... which is different from other instances of package

Removing the change-log file helped me out here. (If you want you can do a backup, but it is only a change-log file.)

sudo rm /usr/share/doc/libcairo2/changelog.Debian.gz

And then trying again to update. I did it via;

sudo apt-get update

and then

sudo apt-get upgrade

You could try it again with the intel update tool.


Using Remmina between two Ubuntu 14.04 Systems

you have two options here

usin

using xRDP software (but you need to install and additional desktop environment such as mate,xfce,....).  This alternate desktop will be used by xRDP software as xRDP on Ubuntu does not work with gnome or Unity
Configure your system to have the vncserver started at boot up so the service will be available to be used for you

To have a detailed step by step process, you can have a look at the following posts x11vnc at startup


Failed to suspend system via logind: Sleep verb not supported (16.04)

I had another look at the grub configuration and found
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash acpi=off"

had somehow made its way back into /etc/default/grub. After removing the acpi=off setting, sudo update-grub, and rebooting, the suspend option is back and works.
(Unrelated to this particular problem but probably useful in general for this type of problem is this guide on "Best practice to debug Linux* suspend/hibernate issues".)


How to command "Ping" display time and date of ping

Use:

ping www.google.fr | while read pong; do echo "$(date): $pong"; done

You will get the result like this:


Installation of Broadcom driver has failed on a Dell Inspiron 1545

Some user's are having problem after and upgrade to ubuntu 11.10 so try this

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

if this doesn't work try this :

Enter Software Center;
wrote "bcm", and found all the broadcomm related things and checked to erase them;
restart;
went again to "hardware instalation" and checked the broadcom to install.
restart;


404 Not Found [IP: 193.1.193.69 80] when running sudo apt-get dist-upgrade

libgtk-3-0 i386 has been updated from 3.10.8-0ubuntu1.2 to 3.10.8-0ubuntu1.3. Running the sudo apt-get install libgtk-3-0:i386 command may succeed in fetching the libgtk-3-0_3.10.8-0ubuntu1_i386.deb file from your default repositories.

If that doesn't work, you can find the download page for the updated version of libgtk-3-0:i386 here. After you have downloaded the libgtk-3-0_3.10.8-0ubuntu1_i386.deb file, double click on it to open it for installation in the Ubuntu Software Center.


Add external library to Ubuntu App in Ubuntu SDK

I use QuaZip in the Epub module of Beru.  But I've taken a different approach and just compile QuaZip as part of my module.  This CMakeLists.txt shows how I did it.

I'm not sure if the QuaZip .so is included in the Touch image, or if the apparmor restrictions allow you to use it if it is, so this seemed the safest approach.


It looks as though it's only made for windows, but you could try running it within Wine.

Wine is software which lets you run programs designed for Windows within Operating Systems such as Ubuntu and Mac OSX.

There's some support for it within the Ubuntu Community Documentation section. See Here.


I encountered this bug several times with different Acer models (mostly Travelmate).

The information here has some good information how to fix this (if it is really this bug):
https://launchpad.net/~kamalmostafa/+archive/linux-kamal-mjgbacklight

It deals with editing /etc/default/grub and /etc/rc.local but you should follow these steps after you have installed Ubuntu.

For the installation I found the following workarounds (only one or a combination of both is perhaps needed):

When the BIOS messages are displayed, just press the key combination
FN + Brightness_Key to turn your screen a little bit darker or
brighter. After that the install GUI should show up as expected.
Add acpi_osi=Linux acpi_backlight=vendor to the the kernel command
line when booting the installer.


The solution I found was to boot from the bootable USB I used to install the system, find all files whose names contain pcre. At this point, I mounted the existing installations partition to /home/user/tmp/ installed sublime text (easier to create commands to run en-mass from that), then for each file in the list (except those in the man / docs directories) ran sudo cp /path/to/current/file /home/user/mounteddirectory/path/to/current/file which copied the required files and let me boot. Boot then proceeded.

After that, I found that apt gave me some errors but at the very least it ran. I ran sudo apt update which prompted me that some stuff wasn't installed properly, so I tried the suggested sudo apt -f install which gave me an error about some links. To resolve this, I eventually copied the .deb file which sudo apt -f install dumped the name of and path to (should contain libpcre3, in this case), to cwd (user root) and ran sudo dpkg --force-all -i libpcre~~~~~.deb which fixed all the other problems.


Prevent LiveCD using existing swap partition

If you're using an Ubuntu Live CD, you can disable the use of the swap partition trough the Partition Editor (GParted) by right-clicking the swap partition, and selecting swapoff.

This should allow to to resize the partition.


This is not a problem with playonlinux, as the package is working perfectly on Ubuntu 16.04. The problem rests in your game's update. Try reinstalling your game and running it again.


from terminal ... nothing happens

What were you expecting?

Typically speaking if you run something from the terminal and you don't get some sort of error (segmentation fault, core dump, etc, etc) the executable did everything it was supposed to.

You could run echo $? in your terminal (straight after executing your binary) and that might tell you what the exit code was. 0 is "everything went well" and anything else traditionally  means "something else". There is no strict standard here though. An exit code of 17 could mean anything. That's up to the application.


Issue with SSH key for Ubuntu Server 18.04

The issue was I had encryption enabled on my home folder on the server, which meant it could not read the authorized_keys file before I logged in. Resolved by removing the encryption on the home folder.


Can I install Ubuntu on my phone (Sony Ericsson w8)?

Sony Xperia S and Sony Xperia T are working at the moment, so if you want to install Ubuntu you'll have to port it yourself, or have it ported

https://wiki.ubuntu.com/Touch/Devices are the devices that are currently supported
https://wiki.ubuntu.com/Touch/Porting if you want to try to port it to your phone.

You also could request the port at xda-developers

Good luck!


mate-terminal always opens maximized, want open at size specified by defined default profile (not install default)

The fix is to proceed as follows:

Open "MATE Tweak".
Click on the "Windows" icon in the left column.
Click to place a checkmark in the box next to "do not auto-maximize new windows".  This is seen in the image below.

That makes the change permanent and fixes the problem!


i have dual booted my hp laptop by intsalling ubuntu 18.04. my wi-fi is not working it shows wifi adapter not found . Please help me to fix this

The secure boot will block unauthorized kernel modules to load. To install the proprietary driver, you need to turn off the secure boot during the installation. This is what your screenshot is talking about. Regarding how to walk through the whole process, please follow the steps in this Ubuntu wiki https://wiki.ubuntu.com/UEFI/SecureBoot/DKMS (in your case, the term DKMS mentioned in the wiki page is equivalent to your wifi driver.)

In the meantime, you may need the command ubuntu-drivers to help you to select the driver you need automatically and install it for you, e.g. sudo ubuntu-drivers autoinstall.


USB barcode scanner reading incorrect values

I have faced similar problem with barcode reader. I ended up buying a wireless barcode reader from ebay which acts like a wireless keyboard. As such, the ubuntu doesnt have to have any special driver to interpret the barcode signal, instead, the barcode reader decipher the code and send it as text to the computer.

Here is a link to the barcode reader I bought:
ebay wireless barcode scanner

Anyhow, I am still looking for ways for ubuntu to support a wired barcode scanner, it will be much more desirable (no need for charging) and more reliable (no wireless signal interference)


Cannot add partitions when installing Ubuntu 16.04

Have you tried shrinking your C or D drives?
To do this:

Right-click the drive you want to shrink
Choose Shrink
Set the amount to how big you want your new partition to be

Once you've shrunk it, right-click on the black "Unallocated" area and press Create simple volume.

Alternatively the Ubuntu installer (if booted from CD or USB) should offer you the option to install Ubuntu alongside Windows and you can set how much space you'd like to allocate to each from there.


GPU fans not spinning on a headless ubuntu server 18.04

Do gedit admin:///etc/X11/xorg.conf

After that, go to the line that says Option         "Coolbits" "4" and ensure it says that. My issue was that it said 28 instead of 4.


Perl check internet connection for 30 seconds if stable, not stable and no internet connection

Your script seems quite close to working.  Here is what I ended up with after a little tweaking:

#!/usr/bin/perl

use warnings;
use strict;
use Net::Ping;

my $ping = Net::Ping->new("tcp");
$ping->port_number("80");
if ( $ping->ping( 'www.google.com', '10' ) ) {
    print "You are connected to the internet.\n";
} else {
    print "You are not connected to the internet.\n";
}
$ping->close();

Notes:

icmp ping requires root privs and could be blocked by google or somebody in between someday so stick with tcp ping.  Nobody is going to block that.
use strict and use warnings are good Perl habits to be in
you need to use the module


All the usual things to confirm before digging into weird install errors:

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

2) If using a CD/DVD, did you burn the disc as slowly as possible?
  See https://help.ubuntu.com/community/BurningIsoHowto

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

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


I used fsck and now I can't change the favourites?

Solution found:
The issue was that an important file got corrupted, so it couldn't save changes from the default settings. To fix the issue, I opened the terminal and typed in: "nautilus .config" and then navigated to dconf and deleted the user file.
This will not restore previous settings, but will enable the user to save changes to settings. You do not even need to reboot. Source:
https://bbs.archlinux.org/viewtopic.php?id=165485


How do you obtain an @ubuntu.com email address?

You need to be an Ubuntu member, check https://wiki.ubuntu.com/Membership .


xampp vs lampp and how to tell the difference

From the official website:

  XAMPP is a completely free, easy to install Apache distribution containing MariaDB, PHP, and Perl. The XAMPP open source package has been set up to be incredibly easy to install and to use.

As you can see, AMPP stands for Apache, MariaDB, PHP and Perl. It's a slight variation of the common LAMP (Linux, Apache, MySQL, PHP) stack.

XAMPP is a suite of software that is available for Linux, Windows and macOS. The "X" is a generic placeholder for the platform.

The Linux version of XAMPP is also known as LAMPP. I think you can guess what WAMPP and MAMPP are, as well.


How to set the default document reader in Ubuntu 16.04?

In my knowledge you can set a default app through xdg-mime.

xdg-mime default okular.desktop application/pdf

To check if it worked:

xdg-mime query default application/pdf


How to remove systemd from Ubuntu 16.04 and prevent its usage

Found that Debian - style pinning works perfectly. After the command above, this resolve the situation:

apt-get remove --purge --auto-remove systemd systemd:i386 -y
echo -e 'Package: systemd\nPin: release *\nPin-Priority: -1' > /etc/apt/preferences.d/systemd
echo -e '\n\nPackage: *systemd*\nPin: release *\nPin-Priority: -1' >> /etc/apt/preferences.d/systemd
echo -e '\nPackage: systemd:amd64\nPin: release *\nPin-Priority: -1' >> /etc/apt/preferences.d/systemd
echo -e '\nPackage: systemd:i386\nPin: release *\nPin-Priority: -1' >> /etc/apt/preferences.d/systemd


I can't see anything I am installing, can't find installed programs

Sometimes installed packages won't show up on your desktop until you log out and log back in.

Log out and back in or reboot to refresh your desktop.

Now, to list all installed applications, you can run dpkg with the -l or --list option:

dpkg -l

To narrow down the results, you can pipe dpkg to grep to search for a keyword like this:

dpkg -l | grep libreoffice

and you can use the which command to find out where the libreoffice command is installed:

which libreoffice

If you don't know the exact command to use, but you do know the first few letters of the command, like libre for example, you can press the TAB key to automatically finish the command for you. This feature is called "tab completion". If more than one command matches, a list of matching commands will print in the terminal after you press TAB two times.

Also, to list the location of all files installed for a package, you can use the -L or --listfiles option like in this example:

dpkg -L vlc

Commands are usually installed under a bin directory but you don't need to know the location of the command file to run the command, you just need to know the name.

Additionally, if you don't want to keep the terminal open after you run a command, you can use an ampersand after the command like this:

vlc &

and then press ENTER a couple of times. If you see some output in the terminal, you can ignore it.

Finally, here are some similar commands.

First:

apt list

will list all installable packages.

apt --installed list

will list all installed packages.

The following example will search for and list available packages related to the search term gimp. Again, use grep to narrow down the results if you need to.

apt-cache search gimp

Similarly,

apt search gimp

will do almost the same thing.

Also,

apt show gimp

will show details about the package.

One last thing.


I cannot access the BIOS after installing Ubuntu on Sony vaio e11 with Windows 8

These issues are due to UEFI that comes with Windows 8 devices. Removing Windows will not remove UEFI.


That is the normal behaviour for about as long as I have used Wine (~4 years). Wine does not do anything by itself, it is always used for running something else:

$ wine
Usage: wine PROGRAM [ARGUMENTS...]   Run the specified program
       wine --help                   Display this help and exit
       wine --version                Output version information and exit

Programs installed in Wine usually get their own launchers.


Where are cursor icons stored on Ubuntu 16.04?

The cursors are indeed installed in the /usr/share/icons folder. User specific cursor themes can be installed in ~/.local/share/icons folder. You might have got confused because of all those icon themes there.

Ubuntu treats icon themes and cursor themes similarly. However, the cursor theme folder includes an index.theme file and cursors folder. This differentiates them from regular icon themes.

Creating a custom cursor theme

Creating a custom cursor theme involves basically these three steps

First Create a directory naming it as the Cursor theme name. For example, Clear.
Create a folder named cursors that folder. You'll put your cursors files in this folder. The cursors should be named following specific naming guide line (Check the linked Ubuntu forum page for the guideline). You can also find the names from the default cursor theme DMZ-White.
Create a file named index.theme in the same level as cursors folder. The content of the file should be like these.

[Icon Theme]
Name=Clear
Comment=Clear Cursor Theme

The Name field's value is cursor theme name. It is cAsE-SenSitiVe. So, make sure this is exactly same as the folder name. The Comment field can contain any line of text.

Tools:

You may find xcursorgen helpful. It converts a PNG image to Xcursor format file which can be used as a cursor. It comes with x11-apps package.

Additionally, Check these links for further help

Cursor themes - ArchWiki
Making a custom mouse cursor in ubuntu 12.04
How to create your own mouse-pointer (Ubuntu forum)


It’s possible through Dconf Editor (installed by default since 12.10) or any other tweak application which enables font configuration.

In Dconf Editor:

Go to org > gnome > desktop > applications > interface,

Change document-font-name to Ubuntu 11 – 11 is the default size of texts in Unity.

The result:

You can also use gsettings in Terminal, simply by the command:

gsettings set org.gnome.desktop.interface document-font-name 'Ubuntu 11'


Battery being guzzled, and drained faster than Windows OS, by alot

The most likely answer for your power consumption is that your ATI card isn't being powered off.  By default, both GPUs will be powered on and, on the hybrid laptop I've tested, this approximately doubles the idle power consumption.

It's likely that your laptop is supported by vga_switcheroo. If so, you can run

echo OFF | sudo tee /sys/kernel/debug/vgaswitcheroo/switch

to turn off the unused ATI card.

I'm looking into automatically powering off the unused GPUs on boot in Ubuntu 12.04.


Try to change the line in /etc/default/grub

Type this command on your terminal

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash acpi=off"

and then just update your grub settings by typing

sudo grub-update

You won't see the results right away because even after updating the grub configuration this is reloaded only on a new restart so the first time you shut down it will behave exactly as before.


How do I format an external HDD for Ubuntu and Windows7?

You can also use NTFS, it's a wiser solution for an external disk on most cases. But Windows 7 should be able to read FAT partitions right, usually usb sticks are just formated in FAT. It's quite strange that you are seeing this issue.


Open a terminal and try this:

sudo apt-get update

sudo apt-get clean

sudo apt-get autoremove

sudo apt-get update && sudo apt-get upgrade

sudo dpkg --configure -a

sudo apt-get install -f


What process created the /var/lib/dpkg/lock-frontend file in Ubuntu?

As was recommended in comments - I have checked the owner of the file

$ sudo fuser -v /var/lib/dpkg/lock-frontend
                     USER        PID ACCESS COMMAND
/var/lib/dpkg/lock-frontend:
                     root       2112 F.... unattended-upgr

$ ps aux | grep 2112
root      2112 66.5  8.1 366108 113508 ?       Sl   13:03   0:28 /usr/bin/python3 /usr/bin/unattended-upgrade --download-only

$ dpkg -S /usr/bin/unattended-upgrade
unattended-upgrades: /usr/bin/unattended-upgrade

So this file was created by /usr/bin/unattended-upgrade from unattended-upgrades package. I can kill it with:

sudo kill -KILL 2112

and take control with

sudo apt install -f
sudo dpkg --configure -a
sudo apt-purge unattended-upgrades

as I forgot to purge it on this VM.

Note: do not purge unattended upgrades on your system if unsure. It needs some time to finish (depends on internet connection speed and disk speed) and then you can use APT as usual.


splash screen customisation on ubuntu 14.04

Go under the Image menu and choose scale. Key in the required numbers, keep the ratio intact. If you don’t get the exact numbers, go for slightly larger values but keep the ratio intact. I suggest you back up all the images in /usr/share/images/xsplash into another folder on your hard drive just in case things go wrong. Then put the required file(s) into /usr/share/images/xsplash.


I had not mentioned that I also had simple-vhost and ssl enabled, the latter of which kills lighty completely.
after disabling any module, apparently force-reload does not seem to really work. I guess that there is a cleaner way, but rebooting was the only thing that worked for me today.
just wonder why, in the previous attempts, html files did work but not php scripts.


You can not do that with the live CD and installing with unetbootin. You would have to remaster the live CD. You would extract the file system, do the updates, install the drivers, then repackage the iso.

Using persistence, with the / , works if you install or upgrade a few packages, but with a large update I find it often fails (as has been your experience). Better to use a persistent /home (make a file on the usb called home-rw ).

See:

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

https://help.ubuntu.com/community/LiveCD/Persistence

If all that is too much hassle, do a standard install to the flash drive (not unetbootin, install ubuntu to the flash drive).


Start LXDE with Lubuntu configuration using command

I connect to Lubuntu using NoMachine's client under Windows  7.  Under your NX client connection under the Desktop area, select "Custom", then click on settings. Just be sure the settings look like this:

Now connect and you're ready to go.


How do I install on an encrypted disk now that there is no alternate CD?

I've just done it with the old command line installer mini CD at https://help.ubuntu.com/community/Installation/MinimalCD

In searching for a fix, I notice a bunch of bugs in encrypted installs. Maybe they disabled it rather than take chances. But, they should have mentioned it in the release notes.

BTW, I also tried creating the LVM crypt disk setup before starting the installer. It did see it, but when I tried to boot, I just got the intrmfs prompt. So don't waste your time on it.


git is not installed in Ubuntu by default, so install git if it isn't installed already. Open the terminal and type:

sudo apt install git
cd ~/Downloads
git clone --recursive https://github.com/citra-emu/citra

The third command will create a new folder named citra in your Downloads directory which has 95.3MB of files in it. It will take a while to download, so wait until the download is completed and the terminal returns to the terminal prompt.

Then change directories to ~/Downloads/citra and try to install Citra again. Building Citra in debug mode using the gcc >= version 5 is recommended. The default gcc in Ubuntu 18.04 is gcc version 7.3.0.


Run this. Open terminal and enter this command.

sudo update-grub

It should find your Windows, reboot and check the Grub menu options for your Windows selection.


Is it "OK" to install Ubuntu on one laptop and put the SSD into another?

You can, I have done it myself without any issues.

Though as the comment says, you need to remove the 3rd party drivers before moving the SSD to the other.


Same trouble for me. After spending some hours searching for a solution I find out that the command php is associated with an old version of php as against of the php5 command on my development mashine:
php -v
PHP 5.3.18 (cli) (built: Nov 20 2012 19:34:35)

php5 -v
PHP 5.5.3-1ubuntu2.1 (cli) (built: Dec 12 2013 04:24:35)

So I reinstalled composer with the following command and now it works for me:
curl -sS https://getcomposer.org/installer | php5

Best regards!


You could make your own grub entry if you know where the kernel, etc is. Basically edit /etc/grub.d/40_custom by copying another section and specify the different kernel/file locations, then run 'update-grub2', using this link for reference: https://help.ubuntu.com/community/Grub2/Setup


Distorted sound unless PAVUCONTROL is open?

Okay, I seem to have found a solution. It comes from here.

The gist of it is this:

In the /etc/pulse directory are the following files:

client.conf daemon.conf default.pa system.pa

Step 1: sudo nano default.pa

Look for the following lines:

*Automatically load driver modules depending on the hardware available
Ugly hack for Nexus 10
.ifexists /system/lib/hw/audio.primary.manta.so
load-module module-udev-detect tsched=0
.else
load-module module-udev-detect
.endif*

Step 2: Hash them all out, and put in the line:

load-module module-udev-detect tsched=0

So, we're eliminating the if/then statement and invoking the "ugly hack" that worked for the NEXUS 10, which just happens to work for my armhf Cubox-i (and might work in other systems).


ubuntu 14.10 Utopic has both gstreamer 1.0 and 0.10 packages. Why?

1.0 and 0.10 versions are parallel installable, you can have both on your system and they don't interfere with each other.

Applications, however, can only link and use one of those versions. So, having 0.10 and/or 1.0 in your system depend on the applications you want to run and what version they were made to use. I repeat: there is no problem in having both versions installed if you have some applications that depend on 0.10 and others that depend on 1.0.

Any new code should be written for the 1.0 series, 0.10 is unmantained and obsolete for years now.


I think your keyboard layout is not fix all keys and select perfect layout.


Plain text editor that supports shared file editing like in LibreOffice

You should try Gobby. It's specifically designed for this task.


Switching between nVidia and Intel GPU

To activate your Intel iGPU use:

sudo prime-select intel
reboot

To turn your nVidia GPU back use:

sudo prime-select nvidia
reboot

If you forget which one is running use:

prime-select query

Skylake (i7-6700) and newer processors

The Intel iGPU driver is already built into the Linux kernel. Normally you don't have to do anything special unless you have extremely new hardware, or very old hardware. There are configuration files you may have to setup for issues such as screen tearing. If you have a Skylake or newer processor you will get warning(s) that there are additional drivers you can install: Updated kernel to 4.8 now missing firmware warnings :


gpu passthrough problem on adding dumped rom

If this error because of AppArmor, just move ROM file to /usr/share/vgabios (make this dir if it not exists). This path is allowed to be read from kvm-qemu by default apparmor profile.

Some other allowed by default paths:

  # access to firmware's etc
  /usr/share/kvm/** r,
  /usr/share/qemu/** r,
  /usr/share/qemu-kvm/** r,
  /usr/share/bochs/** r,
  /usr/share/openbios/** r,
  /usr/share/openhackware/** r,
  /usr/share/proll/** r,
  /usr/share/vgabios/** r,
  /usr/share/seabios/** r,
  /usr/share/misc/sgabios.bin r,
  /usr/share/ovmf/** r,
  /usr/share/OVMF/** r,
  /usr/share/AAVMF/** r,
  /usr/share/qemu-efi/** r,
  /usr/share/slof/** r,


How to share internet over WiFi from wvdial in 12.04?

Hi you need to configure hostapd

I have configure following in hostapd /etc/hostapd/hostapd.conf with WPA authentication options for wireless users

01 interface=wlan0

02 driver=nl80211

03 ssid=dontMessWithVincentValentine

04 hw_mode=g

05 channel=6

06 macaddr_acl=0

07 auth_algs=1

08 ignore_broadcast_ssid=0

09 wpa=3

10 wpa_passphrase=KeePGuessinG

11 wpa_key_mgmt=WPA-PSK

12 wpa_pairwise=TKIP

13 rsn_pairwise=CCMP

sudo hostapd /etc/hostapd/hostapd.conf


Cannot launch Webcamoid after successful installation

In my case, some dependencies were missing. To confirm you can type webcamoid in terminal:

I got the following output:

  QQmlApplicationEngine failed to load component
  qrc:/Webcamoid/share/qml/main.qml:22 module "QtQuick.Dialogs" is not installed
  qrc:/Webcamoid/share/qml/main.qml:24 module "QtQuick.Controls" is not installed
  qrc:/Webcamoid/share/qml/main.qml:22 module "QtQuick.Dialogs" is not installed
  qrc:/Webcamoid/share/qml/main.qml:24 module "QtQuick.Controls" is not installed

To install the dependencies run:

sudo apt install qml-module-qtquick-controls
sudo apt install qml-module-qtquick-dialogs

Hope it helps!!


Answer:
Modify linux-source-3.13.0/arch/x86/boot/compressed/head_32.S file content:

    .data
efi32_config:
    .fill 11,8,0
    .long efi_call_phys
    .long 0
    .byte 0

As below:

#ifdef CONFIG_EFI_STUB
    .data
efi32_config:
    .fill 11,8,0
    .long efi_call_phys
    .long 0
    .byte 0
#endif

you can also find solution on:
https://kernel.opensuse.org/cgit/kernel/commit/?h=stable&id=3db4cafdfd05717dc939780134e53023a3c1f15f


Three monitor alignment with xrandr - I want one monitor left of *both* others

I have a similar setup. You can see yours with System Settings, but I have a python program that does it for me graphically (plus a lot more of course):

There are three monitors:

HDMI-0 (1920x1080, upper left)
DP-1-1 (3840x2160, upper right)
eDP-1-1 (1920x1080, lower right)

The light-grey area of the canvas is where the mouse pointer cannot go. You can move portions of a window into the no-go area as you can see on HDMI-0. Sometimes the entire window can move to no-go area due to a bug in which case you can only recover with Alt+Tab (switch window) followed by Alt+F7 (move window) followed by mouse movement until it appears on a monitor.

Indeed if you were to put the icons on the top left monitor and select "Align Icons" many would paint down into the no-go area and you won't be able to select them. Unless you used the answer in the link.


CPU usage gets to 100% whenever openning an application

You could try unity 2d a go to see if that helps.

Log out of your current user and click on the Ubuntu logo next to your name on the login screen, next choose Unity 2d and then type your password and log in.

If this does not solve your issue you could try installing "Gnome" from the Ubuntu software Center and log into "Gnome Classic" using the same method as above (Although selecting Gnome Classic instead of Unity 2d)

Hope this helps.


If your looking to install the Ubuntu OS, a great tutorial (depending on your Windows) would be  here. Your question was unclear to me, so maybe you just want to copy your work to Windows from the portable boot. Just simply copy the file into the folder "Windows" on the file explorer.


Unable to connect wifi ubuntu 14.04 LTS HP Pavilion Network driver rtl8723be

You need to install the driver using dkms. If you build it from the lwfinger git, it stops working after kernel upgrades.

I packed the same driver as DKMS and added it to a ppa. Install it this way:

sudo add-apt-repository ppa:hanipouspilot/rtlwifi
sudo apt-get update
sudo apt-get install rtlwifi-new-dkms linux-firmware

and reboot.


Wubi downloads ISO even though it's already there

Most possibly you have downloaded (the default downlaod) a 32 bit ISO where as your machine support 64bit. So wubi detects it and tries to download 64bit ubuntu ISO.

To force using 32bit, open the folder where you stored wubi.exe and ISO. Now right click while pressing Shift, click on Open a command window here

Now execute Wubi.exe with parameter --32bit, the command should be like Wubi.exe --32bit

Few more points for troubleshooting:

Make sure you are not using dvd/ alternative ISO. Those are not supported by wubi.
ISO not corrupt.
Download wubi from http://releases.ubuntu.com/precise/wubi.exe
5GB free space is required.

More FAQs and details : https://wiki.ubuntu.com/WubiGuide


Wubi install on AMD64 - won't boot to Ubuntu 12.04 LTS

Turian64 won't run the PAE kernel.  There's a non PAE version of 12.04 out there.  Use it.


Can't boot into Ubuntu 12.04 LTS “Try (hd0,0): EXT2: I/O error _ " Message

well I checked this error and it seems to be because you tried to "install inside windows"? if so, please check this thread, might me a solution there: http://ubuntuforums.org/showthread.php?t=1413634


You should try to copy a file on the disk and then you should type

free -m

in your terminal. You will be able to see the amount of used cache space and the amount of free cache space.

Page with info.


I also had compiz constantly taking around 10-12% CPU. I installed ccsm using

sudo apt-get install compizconfig-settings-manager

launched CCSM and under the OpenGL unticked sync to vblank. Now compiz is only taking up 2-4% CPU.

This website also suggests setting Texture Filter to fast.


Why is this .sh script run on CentOS but not on Ubuntu?

If your script doesn't start with a shebang line like
#!/bin/bash

it may be run by /bin/sh (see "Which shell interpreter runs a script with no shebang?" for details).
Ubuntu uses dash for /bin/sh and dash doesn't support Bash-specific syntax like [[...]] so you get an error.
CentOS may use Bash for /bin/sh so this works there.
Add
#!/bin/bash

as the first line of your script to make sure it is run by Bash.


How to disable Ubuntu Software Centre for user?

If "user" is not an administrator they will not be able to install software without the administrator password.

Go to System Settings > User Accounts, click unlock at the top and change "user" to standard if needed.


rc.local is not restored after initscripts reinstall

Here you go:

#! /bin/sh
### BEGIN INIT INFO
# Provides:          rc.local
# Required-Start:    $all
# Required-Stop:
# Default-Start:     2 3 4 5
# Default-Stop:
# Short-Description: Run /etc/rc.local if it exist
### END INIT INFO

PATH=/sbin:/usr/sbin:/bin:/usr/bin

. /lib/init/vars.sh
. /lib/lsb/init-functions

do_start() {
    if [ -x /etc/rc.local ]; then
            [ "$VERBOSE" != no ] && log_begin_msg "Running local boot scripts (/etc/rc.local)"
        /etc/rc.local
        ES=$?
        [ "$VERBOSE" != no ] && log_end_msg $ES
        return $ES
    fi
}

case "$1" in
    start)
    do_start
        ;;
    restart|reload|force-reload)
        echo "Error: argument '$1' not supported" >&2
        exit 3
        ;;
    stop)
        ;;
    *)
        echo "Usage: $0 start|stop" >&2
        exit 3
        ;;
esac

Permissions are 0755:

-rwxr-xr-x 1 root root 782 Mar 13  2014 /etc/init.d/rc.local


Diagnosing the problem when Canon printer fails to print under Ubuntu

This is not simply a "me too" post.  I have been researching for a year and a half, in detail, how to make my Canon ImageClass D420 laserjet all-in-one work with Linux.  Bottom line -   Try the latest drivers (2.7 - June 2013) from Canon then sell your Canon and buy something that works!  If time is money, and you value either one, sell it sooner rather than later.

I started out with Ubuntu 12.04 (64-bit) only to find that almost no one had succeeded in getting many of the Canon Laserjets to work.  I kept at it with countless hours of research and eventually got the printer to work on a very marginal basis.  I apologize that much of that 64-bit knowledge was "dumped" or became dated with semi-annual upgrades as I ventured into Mint Mate (Xfce desktop) with 12.10 and Xubuntu (Xfce desktop) for 13.04.  But the same issues with Canon drivers persisted.  During June '13, Canon released their 2.7 drivers.  I was pleased that my LaserJet worked right off the bat (as well as it ever did).  However, I still needed to shut off the power to the printer between print jobs to get it to work.

Since so many users encountered most of their problems with 64-bit versions, I decided to go with 32-bit Xubuntu (excellent!) for 13.10. This download from Canon (look for your specific model) includes .deb files for:
cndrvcups-ufr2-us_2.70-1_i386.deb and
cndrvcups-common_2.70-1_i386.deb

I think the common file needs to be installed before the ufr2 (if it doesn't work one way try the other).  Next, printer settings have to be set to recognize both your printer and the connection, not as easy as one would think.
My settings:

Description: Canon D400-450 (UFRII LT)

Connection:  usb://Canon/D400-450%20(UFRII%20LT)?serial=SJ3026

Device URI:  Canon D400-450 ver.2.7

After a lot of tinkering, sweat, cursing and time, the Canon doesn't work any better than it did with my first frustrating experience a year and a half ago and three separate Ubuntu installations later.  Yes, I can print some of the time - if I shut it off between print jobs.  I have great difficulty printing .pdf files from my browser or email.  I can work around this (most of the time) by printing to file first - then printing the .pdf from my local file.  However, just today, I printed a 30 page .pdf document. It printed 30 pages of solid black!  Never did get it to print correctly using all my tricks.  After giving up on it and trying to print a USPS mailing lable, I noticed my CPU indicator was PEGGED and task manager told me 'C3pldrv' was using 90% of the CPU capacity.  After closing all programs and rebooting everything was fine - and the printer spit out my mailing label without being prompted.

The bottom line of four installations and tons of research is that the Canon LaserJets and all-in-ones should be avoided like the plague.  But then, you wouldn't be reading this had you bought something else.  And that is just the printer portion of this Canon.  I have had absolutely NO success with the scanner.  The Canon scanner tool does not work with this machine.  "No devices recognized"  I have tried so many SANE front ends back ends and upgrade tricks it has driven me in-SANE.  The one ray of hope for the scanner is to use VueScan ( a fantastic (low-riced) scanning application which was developed with Ubuntu ) with their recommendations.  I am going to try that again as I found it at a critical moment when I actually had to get some work done other than trouble shooting the Canon.  Good luck - I'll follow up with more info as I get it.


How to install “desktop sharing” in Ubuntu 18.04?

Go to settings > sharing > screen sharing:


"E:Malformed line 1 in source list /etc/apt/sources.list.d/medibuntu.list (type),"

Just remove the /etc/apt/sources.list.d/medibuntu.list file. Medibuntu is a dead project anyways:

sudo rm /etc/apt/sources.list.d/medibuntu.list


How to Detect Security Mode of Wifi Access Point? (WEP/WPA/WPA2)

You can use the iwlist tool to print out all details of access points nearby. Assuming your wireless device is called wlan0:

sudo iwlist wlan0 scan

The output from iwlist will show each 'Cell' (or access point) that it finds, including the following details about the encryption type:

                    IE: IEEE 802.11i/WPA2 Version 1
                    Group Cipher : TKIP
                    Pairwise Ciphers (2) : CCMP TKIP
                    Authentication Suites (1) : PSK

This indicates that a network near me is using WPA2, using a pre-shared key (PSK).


Wikipedia and Ubuntu websites will provide you useful information about maintained versus end of life ubuntu versions.
For example this graph (from Wikipedia) shows that 15.04 is indeed not maintained since 2016:

With 1GB RAM and depending on your processor and disk space, you might consider the following flavours of ubuntu 18.04 (the latest Long Term Support version):

Lubuntu, that is the lightest flavour,
Xubuntu, a bit heavier than Lubuntu,
Ubuntu Mate and Ubuntu Budgie, a bit heavier than Xubuntu. If so you would probably meet the minimal system requirements, but not the recommended system requirements. So it's up to you to give them a try or not. And if you do, try with a live USB first to check it works properly.

Also, I recommend you to use light applications to make your experience smoothier e.g. avoid Libre Office and prefer Abiword and Gnumeric, use Midori or Falkon rather than Chrome (more ideas on Wikipedia)...


Setting a default profile for bluetooth (plantronics) headset

There is a chance of detecting the connection event via dbus.
This is an answer on another topic that also performs checking dbus to detect events.
There is no need to reproduce here the contents, as they are in SE or ubuntu.com


Sometimes, kinks are introduced when upgrading like that (straight from one version to another, in this case trusty (14.04) to utopic (14.10)).

What I would suggest as a permanent solution is:

Backup whatever data you want/need to keep.
Obtain the ISO of Ubuntu Utopic (14.10) and do a fresh install via a CD or bootable USB.
OPTIONAL: Zero (wipe out your drive with zeros) before installing a fresh copy.


Hibernation does not work in 11.04, used to work in 10.10, but suspend/resume works fine on a Dell Inspiron N5010

Ok I have solved this problem. The solution is to use tuxonice patched kernel. Its very simple, just follow these steps.

sudo add-apt-repository ppa:tuxonice/ppa
sudo apt-get update
sudo apt-get install tuxonice-userui linux-generic-tuxonice linux-headers-generic-tuxonice

Restart your system. Thats it.


Need help getting on windows and uninstalling ubuntu

Do you really need to? Better solve the problem with Firefox, because it is not normal.
Your documents are residing on your Windows partition, unless you removed it during installation. In latter case your documents are in backup. Just copy them manually. You can access Windows partitions from Files, there is a list of devices on the left.

You do not need to "uninstall Ubuntu" unless you've done strange things to your disk like LVM encryption. Just repair Windows bootloader and you will have it back again. Or install Windows anew.


Press F6 before show logo and add command line to install -> xforcevesa and bypass  display VGA driver and install Ubuntu good.


What tool can I use to manage upstart services?

yup! you have a tool , of course GUI .

Open your terminal and type this

sudo apt-get install bum

Type as BootUP Manager in unity dash , that will open .


It seems Gnome-shell stucks the upgrade. You shall try to uninstall the packet and re-install it when the upgrade is done (gnome-shell is available in the repository in oneiric).


How to install libtorrent-rasterbar 0.14.10 on Ubuntu 12.04

Did you already try the package libtorrent-rasterbar6? It is available in the Ubuntu repository and it packages libtorrent-rasterbar 0.15.10 in Ubuntu 12.04.

sudo apt-get install libtorrent-rasterbar6

Any reason for versions other than 0.14.10 don't work?


How to disable touchscreen, but not the pen?

To turn on/off pointer devices, like touch screen, i made a script. Step by step instruction:

In console:

$ xinput

⎡ Virtual core pointer                      id=2    [master pointer  (3)]
⎜   ↳ Virtual core XTEST pointer                id=4    [slave  pointer  (2)]
⎜   ↳ Logitech M705                             id=10   [slave  pointer  (2)]
⎜   ↳ ImPS/2 Elantech Touchpad                  id=15   [slave  pointer  (2)]
⎜   ↳ DLL06FD:01 04F3:300F UNKNOWN              id=13   [slave  pointer  (2)]
⎜   ↳ ELAN Touchscreen                          id=12   [slave  pointer  (2)]
⎣ Virtual core keyboard                     id=3    [master keyboard (2)]
    ↳ Virtual core XTEST keyboard               id=5    [slave  keyboard (3)]
    ↳ Power Button                              id=6    [slave  keyboard (3)]
    ↳ Video Bus                                 id=7    [slave  keyboard (3)]
    ↳ Power Button                              id=8    [slave  keyboard (3)]
    ↳ Sleep Button                              id=9    [slave  keyboard (3)]
    ↳ Integrated_Webcam_HD                      id=11   [slave  keyboard (3)]
    ↳ AT Translated Set 2 keyboard              id=14   [slave  keyboard (3)]
    ↳ Dell WMI hotkeys                          id=16   [slave  keyboard (3)]

$ xinput disable 12
$ xinput disable 13

I found my devices with ID 12 and 13. It's time to make script that turns them on/off. Create a file /usr/bin/touch-toggle

#!/bin/sh
# This shell script is PUBLIC DOMAIN. You may do whatever you want with it.

TOGGLE=$HOME/.touch-toggle

if [ ! -e $TOGGLE ]; then
    touch $TOGGLE
    xinput disable 12
    xinput disable 13
    notify-send -i /usr/share/icons/HighContrast/256x256/status/touchpad-disabled.png "Touch toggle" "Disabled Touchpad and Touchscreen"
else
    rm $TOGGLE
    xinput enable 12
    xinput enable 13
    notify-send -i /usr/share/icons/HighContrast/24x24/devices/input-touchpad.png "Touch toggle" "Enabled Touchpad and Touchscreen"
fi

Don't forget to change device IDs to yours. Add execute permission and run script in console

chmod a+x /usr/bin/touch-toggle
touch-toggle
touch-toggle

Works okay? Create shortcut on desktop or add to hotkey.

More info and pictures on https://blackcrystal.net/en/uncategorized/turn-on-off-touch-devices-in-ubuntu-14-04/ it works fine in 14.04 and 16.04


I know I have the exact same problem!!! I think you have to delete and re-download ubuntu entirely. Cause what caused it for me was that I downloaded Steam on ubuntu and used up almost the entire memory, then i got the error screen and i checked my files and it said "some files may have been temporarily or permanently deleted to conserve space" or somehting like that. So I deleted Steam From Chrome to make space but i still got the error, i even entered the chroot to delete steam and it still didnt work which means i did delete steam but I still Have the error. So I assume for both of us it Permanently disabled/deleted the crouton file. So Unless I find a soulution im gonna delete and re-download ubuntu. you should too.


error calling startservicebyname for org.xfce.filemanager: timeout reached

I had the same problem under XUbuntu 19.10.
My solution was to uninstall the "thunar-archive-plugin".
These files are affected:

thunar-archive-plugin 0.4.0-2
thunar 1.8.9-1
thunar-data 1.8.9-1


Installing Ubuntu on customers' computers

Yes it is. You can install it without a problem. If you have more questions you can read this article http://www.ubuntu.com/ubuntu/why-is-it-free


How to turn off wifi-hotspot in Ubuntu 16.04 (Gnome)

I would use terminal to remove the hotspot

sudo rm /etc/NetworkManager/system-connections/Hotspot
Then reboot


After upgrading ubuntu 14.10 to 15.04 I am no longer able to open Matlab 2013a

I was having the same problem, I guess from the error messages that it was due to the the old libc libraries used by Matlab.

I installed the packages matlab-support and matlab-support-dev and things started to work.

One more thing: Chose to rename the old GCC libraries form MATLAB and use the new ones from Ubuntu when asked!!!


First, stop using and delete the old swap file:
sudo swapoff /swapfile
sudo rm /swapfile

Secondly, create the new swapfile:
sudo dd if=/dev/zero of=/swapfile bs=1G count=4
sudo chmod 600 /swapfile

Thirdy, configure the file for use as a swapfile:
sudo mkswap /swapfile

Finally, utilize the new 4G swapfile:
sudo swapon /swapfile

Please note that you can but should not use fallocate to create your swapfile.  Notes in man swapon indicate that it should work, if the underlying disk structure is XFS, but that problem may occur otherwise.


open a terminal and run:

sudo apt-get remove --purge libglapi-mesa:i386 libcheese-gtk23 libcheese7
sudo apt-get update
sudo apt-get dist-upgrade
sudo apt-get install libglapi-mesa:i386 libcheese-gtk23 libcheese7
sudo apt-get install steam


Why can't I restart cron daemon in 12.04 LTS?

What am I doing wrong please?

You should run service with root permissions:

:~$ sudo service cron restart
cron stop/waiting
cron start/running, process 6325


Fix bad encoding in Firefox in Kubuntu 14.04

There is a preferences setting you may need to get the fonts to work.

Go to 'Preferences' > 'Content', then under 'Fonts & Colours' click 'Advanced' - enable 'Allow pages to pick their own fonts', close the settings and reload the page.

With it disabled:

With it enabled:


It can be a browser graphical glitch. I recommend re-installing Firefox. There can be mismanaged files. Or updating to the latest version (that's version 29 as of now), if you haven't.

If that's not the problem, please provide an image/screenshot of the problem.


snap store node js not let me install angular cli

The problem here is, that snap does not allow installed snap packages to write to /usr/local. Unfortunately this is the default location from global installed npm packages.
You can solve this issue in 3 simple steps by changing the default location from global installed npm packages to one directory, where the snap (in this case node) is allowed to write.
At first we createthe new directory for our future global installed npm packages:
mkdir ~/.local/npm

Now we need to add the new created folder to our PATH. For this open or create a ~/.bashrc file and add this line:
export PATH=~/.local/npm/bin:$PATH

Do you noticed the new /bin folder and wonder why this one is here? Npm will create it and it will contain the executeables/syslinks for global installed packages. Without it, you would not be able to run ng in your terminal.
The last step is to override the default npm global location (npm calls this "prefix"):
npm config set prefix '~/.local/npm'

Now you can install npm packages global. npm install -g @angular/cli should now work.
To test if everything is working correctly, run ng version after you installed it globally with npm.
I used the following source for my answer: https://github.com/mixonic/docs.npmjs.com/blob/master/content/getting-started/fixing-npm-permissions.md


Why does my computer turn off and reboot every half hour?

This is a very only post, but since the question is still active, I'll leave my recommendation to future users with this/similar problem:

Taking into account the print-screen provided, hardware failure is what's causing Ubuntu to restart "just like that":

Memory errors may lead to an unstable system, thus rebooting it when accessing bad memory blocks.

When you used Memtest 86+, the application was giving you that error, saying that you have bad memory blocks at that address.

I've written an answer with a solution to mark does address to prevent the system from using them: Exclude bad ram bytes.

Like this you can continue to use you memory modules even with damage addresses. The alternative is to acquire a new memory module.
CPU temperature, if it gets over the fail-safe limit, then the motherboard sends the kill signal to shutdown the computer immediately. This is done to prevent hardware meltdown.

A side effect for a defected cooling system is the overheating of you CPU, what in turn leads to other hardware problems. (very unlikely, but under certain circumstances, may justify your memory issues).

Here, the solution is as simple as to clean up your fans and place some new thermal paste on your CPU.


Unity launcher shows blacklisted unmounted partitions forever

At least I found what the trigger for this is:
   Gnome disk utility /usr/bin/gnome-disks.

If a standby timeout or APM is activated for any drive, it causes the launchers for all unmounted partitions to be shown. This misbehavior was recently introduced.

I fixed it by turning off APM.


how to merge specific text files in a folder?

ways of using wildcards for cat

cat test[1-2].txt>out.txt  //matches any character in the set
cat test[!34].txt>out.txt  //matches any character not in the set
cat test?.txt>out.txt  //for a single character
cat test*>out.txt    // for any strings


You should change the user permissions over the files when doing this:

cp /home/firstuser/.* /home/seconduser/
sudo chown -R seconduser:seconduser /home/seconduser/

otherwise, they will not be read and you will stay with stocks.


18.04 on Aero runs great until reboot. GTX 1070 GPU Issue?

After waiting an hour or more I was able to boot up and log in normally.  I then installed the Nvidia driver via 'Additional Drivers' in the 'Software & Updates' app.  It seems to be working normally now, with the bonus of having my dGPU working.


How to run a new app that didn't get added to the launcher

Type Alt+F2 and after write the name of the application that you want to search (VMware Player in your case). After this your application will suddenly should appear.


Can I install Ubuntu on a new laptop HDD.

Yes, definitely. There are a lot of good and easy tutorials like this one:
http://www.ubuntu.com/download/desktop/install-desktop-latest

  Can I then run programs like Adobe Photoshop for Windows 7 without having to install Windows

That depends on the program itself. For many major programs, Linux/Ubuntu builds are available. Afaik Photoshop is not available yet, even though there are ways in which you can still run windows programs in ubuntu. Also, for every major program (office, photoshop, etc.) there's usually an feature-similar or even -equal open source version available for free (in this case you could use libre-/open-office and gimp/inkscape...).

  Any info on installing from 'scratch' would be helpful, and also is Ubuntu suitable for the casual user. How will the various Drivers be affected.

I'd recommend you read one of many transition guides like this one: https://help.ubuntu.com/community/SwitchingToUbuntu/FromWindows


How do I change the font size / zoom level in the project/package explorer in Eclipse version: 2019-12 (4.14.0)?

Although I'm running Mac OS and Eclipse 4.15, this thread regarding the Eclipse theme CSS helped me change the project explorer font size:
https://stackoverflow.com/questions/47731327/change-project-explorer-tree-view-font-size-in-eclipse-oxygen
The key part is to find the path to the theme css you're using. In my case, the path was /Users/myuser/.p2/pool/plugins/org.eclipse.ui.themes_X.X.X.vXXXXXXXX-XXXX/css/dark and the file I needed to change was e4-dark_mac.css. On an Ubuntu system the path is more likely to resemble /home/myuser/.p2/pool/plugins/org.eclipse.ui.themes_X.X.X.vXXXXXXXX-XXXX/css/dark.
I then added the following rule:
.MPart Tree {
    font-size-adjust: none;
    font-size: 14px;
}


Unable to add or delete to internal hard disk (Not a file permission issue)

Your filesysystem is mounted read-only.  Any write attempt will fail.  You need to mount the filesystem in write mode, but first, determine why the filesystem is read-only -- the most likely explanation is that there are errors on it.  Run

sudo fsck -text4 /dev/sdb5

That should fix the errors, and allow a reboot to mount the filesystem in write mode, fixing your problem.


How can I sync my home folder over network and internet?

If you can only connect to your office server via SSH, then your best
choice is to use rsync: it can use SSH
as a transport protocol and uses a smart algorithm to speedup the
transfer of large files, by sending only the changed blocks.

Since you only need one-way synchronization, just set up passwordless
SSH authentication from your laptop to the office server, and then you
can start with a command as simple as:

rsync -e ssh -a $HOME/ myuser@officeserv:

adding --include and --exclude options to refine the list of
files/directory that you want to synchronize. For instance,
transferring program settings ("dot files") can be risky if the two
computers do not run the same OS (same version).  My suggestion is to
start by excluding all "dot files" (so, use
--exclude="$HOME/.[a-z]*") and then selectively add the
configuration directories of programs that can safely be shared (this
has to be seen on a program by program basis).  In addition, web
browser cache and $HOME/.cache can always be excluded.  See the
"FILTER RULES" section in the rsync man page for a detailed
discussion of the include/exclude rules syntax.

However, rsync does not have a "continuous-operations" mode, so you
will have to run it periodically from your
crontab.


Touch pad not working on Lenovo ThinkBook 14-IML

I installed Ubuntu on my Lenovo Thinkbook 15 IML and experienced exactly the same problem. Lenovo did not provide a solution for this "simple" task. As you mentioned, it is not rocket science and solution should have been provided by Lenovo Support Team since it is a basic functionality that should be guaranteed to work on any OS.
Anyway, Ubuntu community and its helpers are pretty amazing. After a few months struggling with the problem, Kai Heng-Feng found a solution and provided a test kernel which solved the issue. Now my Touchpad is working.
You can apply the test kernel published in comment #88 in https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1853277
To apply this kernel you should download it and then go to Download folder and write the following sentence on a terminal:
sudo dpkg -i linux-image-5.9.0-rc4+_5.9.0-rc4+-4_amd64.deb

Restart your computer, and enjoy your working Touchpad!
P.S.: I believe this solution works for a Lenovo Thinkbook IIL series as well. Maybe the permanent solution will be published in a future Ubuntu official kernel.


Can I run a small web server from a custom directory?

As I understand , You want to start php built-in server so you can easily do that:

 cd /path/to/your/app
 php -S localhost:8000

As output you'll get :

Listening on localhost:8000
Document root is /path/to/your/app


There are special files for that purpose (i.e. IPC) called named pipes. You can create them using the mkfifo command. The following is a very basic example based on your code. dealer.sh has to be executed first since it is responsible for creating and removing the named pipes.

dealer.sh:

#!/bin/bash

dealerResponse=dealerResponse
playerResponse=playerResponse

mkfifo $dealerResponse
mkfifo $playerResponse

# delete the named pipes on exit
trap "rm $playerResponse $dealerResponse" EXIT

guess=1
n1=$(( ( RANDOM % 100 ) +1 ))

# this blocks until the player has read from the pipe
echo -n "Please make a guess: " > $dealerResponse

while read n2 < $playerResponse; do
    if [[ $n2 -eq $n1 ]]; then
        echo You win! > $dealerResponse
        break
    else
        if [[ $n2 -gt $n1 ]]; then
            echo -n "Sorry, your guess is too high. Guess again: " > $dealerResponse
        elif [[ $n2 -lt $n1 ]]; then
            echo -n "Sorry, your guess is too low. Guess again: " > $dealerResponse
        fi
    fi
    guess=$(( $guess + 1 ))
done

player.sh

#!/bin/bash

dealerResponse=dealerResponse
playerResponse=playerResponse

while true; do
    read line < $dealerResponse
    echo -n "$line "
    read guess
    echo $guess > $playerResponse
done


You need to use #winetricks  and install the VC++ packages :).


Please go to the directory where you have placed the python file and check the following parameters, If you have not already tried with this.

Make sure the first line of your file has #!/usr/bin/env python.

Make it executable -

chmod +x <filename>.py

And run it as

./<filename>.py


Ubuntu Machine sharing internet, but won't show up on network

How to fix Double Nat

Double NAT is a scenario where multiple routers on network are doing
network address translation. Common example is a Cable or DSL modem,
to which a Wi-Fi router is connected. Both modem and router have NAT
enabled. Computers on the network are connected to Wi-Fi router

Example: Turn off NAT on AirPort Base Station.
If you use an AirPort Base Station, follow these steps to turn off NAT:
Choose Go > Utilities from the menu bar, then open AirPort Utility.
Select your base station and click Edit in the pop-up menu.
Click the Network tab, then choose "Off (Bridge mode)" from the Router menu.
Click Update to restart the base station.
Alternatively you may use console and command lines to turn off your NAT.
Possible Solutions:
Setup a PPPoE Connection Between Your Wireless Router & Modem
PPPoE can be usually setup in your wireless router's WAN settings.
If your wireless router support PPPoE, you will find multiple options to configure the WAN connection of wireless router, such as:

DHCP
PPPoE

DHCP
If you are still reading, the chance that you are using DHCP to connect to internet from your router is about 95+%.  There's nothing bad with that, but not the best option.

Dynamic Host Configuration Protocol (DHCP) is a protocol for assigning
dynamic IP addresses to devices on a network. With dynamic addressing,
a device can have a different IP address every time it connects to the
network.

DHCP is the best option because it results in private IP address assigned to the WiFi router.
PPPoE

PPPoE stands for Point-to-Point Protocol over Ethernet, a network
protocol for encapsulating Point-to-Point Protocol (PPP) frames inside
Ethernet frames. It is used mainly with DSL services where individual
users connect to a DSL modem over Ethernet

PPPoE is a better choice, because it bypasses the NAT settings in the modem and connect directly to your Internet Service Provider (ISP).
Setup
Login into your router using your router gateway IP Address e.g 192.168.0.1. (IP Address and procedures below may vary slightly)

Login into your router
Goto Connection/Network Settings
Goto WAN Setting
Choose PPPoE.
Save

Bridge

When referring to computers, a bridge is a device that connects two
local-area networks (LANs), or two segments of the same LAN. Unlike a
router, bridges are protocol -independent. They forward packets
without analyzing and re-routing messages.

Set Your Wireless router bridged mode ON.
Bridged mode on wireless router means that NAT and DHCP functions on it will be disabled.

Goto Connection/Network Setup
Switch BRIDGE MODE to ON
Save

NOTE: Not all routers support Bridge Mode, some routers be may referring to Bridge Mode as Disable DHCP in the router configuration
Hope this helps.


It looks like Firefox can't find some files for the integration of Webapps into Unity. On my machine (Ubuntu 12.10 64 Bit as well), those scripts are located at /usr/share/unity-webapps/userscripts, your installation is looking for them at /usr/local/share/unity-webapps/userscripts. In other places I also read about paths like /usr/share/gnome/unity-webapps/userscripts. My assumption is that in the course of development those path has been changed, and your installation is not using the same version of the path in all places.

The package responsible for the integration is xul-ext-websites-integration. Maybe this package, for one reason or another, is not at the correct version in relation to your Firefox package and needs to be updated? The version on my machine is 2.3.5-0ubuntu1. It might help if you reinstall that package.

Another chance might be to uninstall that package. But it is a dependenceny of xul-ext-unity, so you would need to uninstall that, too, and you would probably loose all of Firefox' integration into Unity. So I would do that only as a last resort.


Why does Ubuntu keep asking for my gmail password?

I was facing the same issue and got rid of it by just removing the evolution and goa-1.0 folders from my ~/.config.


I hope someone has a better solution, but here's what I would do:

In the directory in which the file resides, do ls -li and get the inode number of the file -- it shall be listed in the first column of the output.
In the same directory, execute: find . -maxdepth 1 -inum 1234567 -exec mv {} new-name-of-file.blah \; substituting the 1234567 for your file's inode number, and the new-name-of-file.blah with the new name that you want to give.

Note that the \; part of the find command is necessary to signify the end of the command.


Android Studio how to get “OpenJDK shows intermittent performance and UI issues.” warning message *back*!

Go to file -> Project Structure -> SDK Location and make sure your JDK is pointing to the directory where the Oracle JDK is located instead of the OpenJDK.

Default paths for the OpenJDK

/usr/lib/jvm/java-7-openjdk-amd64
/usr/lib/jvm/java-8-openjdk-amd64

If you have used webupd8team's PPA to install Oracle Java, then the JDK path should be set to /usr/lib/jvm/java-8-oracle


Unable to install Google Earth on Ubuntu 16.04 64bit

You can try this I managed to do this in gnome Ubuntu LTS 16.04

wget -O google-earth.sh http://drive.noobslab.com/data/apps/google-earth/google-earth.sh
chmod +x google-earth.sh;sudo ./google-earth.sh

If the font in Google Earth Ugly, we can add msttcorefonts using the following command:

sudo apt-get install msttcorefonts


I had this same problem more recently, when upgrading from 16.04 LTS to 16.04.5. That was a bad idea, the screen began freezing at the session login. So when your new to ubuntu like I am, don't upgrade to a version that isn't stable (LTS) unless you've got time on your hands !

Option 1 : upgrade from 16.04.5 to 18.04 LTS, the latest stable version.

Option 2 : Change your display manager (gdm3, lightDM)
=> sudo dpkg-reconfigure MANAGER

Option 3: If you have random freezing, then make sure you have the right drivers for your graphics card => sudo ubuntu-drivers autoinstall

To upgrade despite the login freeze, do it either as root (which you can do by booting into a root shell in recovery mode) or by entering Ctrl + Shift + F2/F3 when at the login interface and, connecting to your session without the graphical interface (I found that connecting to the WIFI to get the update was easier using this last option).

Hope this helps anyone else that makes the same mistake !


Chrome not upgrading, netflix not working

Please follow below steps:

Go to the URL and download the libnss3 file
https://packages.ubuntu.com/xenial/amd64/libnss3/download
Click on the downloaded file, Ubuntu Software Center will open a dialog to repair. Click OK and authenticate yourself.

Note: It will update the 'libnss3' library to latest version
Download latest Chrome from https://www.google.com/chrome/
Repeat step 2 and latest Google Chrome will be installed on your system.

Believe me it has speed up my browsing experience.


The process of full disk encryption during installation and manual partitioning

Take a look at Dual Ubuntu Installations with Whole Disk Encryption. It describes how to add a secondary installation into the LUKS container created by an initial Ubuntu installation, but you'll find the necessary details in there for your scenario.

(I would have added this as a comment but don't have enough of reputation yet).


How to add two IPv6 dns-nameservers into /etc/network/interfaces?

I was initially thinking this was a bug, but I'm going to assume @Sander's answer is correct here.  I'm not sure if resolvconf uses resolv.h or something else for the maximum nameserver value, though.

Generally, instead of using resolv.conf, Here are a couple things to try:

You could try editing dhclient.conf as suggested in the Google dev docs :

prepend domain-name-servers 2001:4860:4860::8888, 2001:4860:4860::8844;

For this method on Ubuntu, I believe the current path is /etc/dhcp/dhclient.conf.

The same document gives instructions for using NetworkManager.  If you use that, you can right-click on your network icon, find your connection then select "Edit", then go to the IPv6 tab.  You can set "additional DNS servers" there.


Functionality is very limited for iPhone users on Ubuntu, But there are some workarounds.

For your images I would suggest syncing them with dropbox, you can set your phone up to do this automagically, (when the app is open), thus automagically syncing them to your computer.

For Music: This directions are for the iPod but I imagine the steps will be the same for iPhone.

Connect the iPod to your computer using the iPod's USB cable. It may take a few seconds for the computer to recognize the iPod. Note than Ubuntu distributions prior to 10.04 do not recognize the iPod as an MP3 player, but rather, as a storage device.

2
Ubuntu automatically loads the Music Player application.

3
Click on "Music" in the Music Player window. Select "Import File" from the drop-down menu to import music into your library.

4
Click the music on your computer that you want to add to your iPod and drag it to the iPod’s icon. This icon has your iPod’s name on it under the Devices heading. Each time you drag and drop music on the icon, your iPod will update.

5
Close out of Music Player when you are finished loading music on your iPod. Right-click the iPod icon on your desktop and click "Eject." Wait for Ubuntu to tell you that the iPod has been disconnected. Unplug the iPod from the computer and enjoy your music.

Read more: How to Put Music on Your iPod Using Ubuntu | eHow.com http://www.ehow.com/how_2113536_put-music-ipod-using-ubuntu.html#ixzz2NL0wOiAR


Ubuntu 16.04: How to update YubiKey Personalization Tool (GUI) with latest library?

I got it solved. Here's the answer:

https://forum.yubico.com/viewtopic.php?f=35&t=2746


command not running in rc.local but works in terminal

Avoid the ~ in the script, use your full directory path.  Not only is another script interpreter running (dash instead of bash) which doesn't understand the ~ convention, the script is running as root, so even if ~ was understood, it would be the wrong home directory.


For Ubuntu 11.10, please use "gnome-session --session=ubuntu-2d".

For "NX Client for Windows"

Press "Configure..." button
At "Desktop", select "Unix" and "Custom", press "Settings..."
Choose "Run the following command", fill in "gnome-session --session=ubuntu-2d"


Is it possible to use Ubuntu from a USB without installing or editing the boot menu?

I have successfully done this with both Portable VirtualBox and Qemu for Windows.

The pro for Portable VirtualBox is that it gives you the full power of VirtualBox. (It's a modified version of VirtualBox.) The con is that it's very slow from a usb drive. If you use this, definitely go for Lubuntu and maybe even use openbox or fluxbox alone instead of the full Lubuntu session.

Portable VirtualBox has also had some problems with bugs on Windows 7. The developer has stated that it doesn't seem to affect everyone, so it may be related to some arcane Win settings. I had it work fine on one computer, but to get it to work on another Win 7 computer I had to download an older version of the binary. (And it took some trial and error to find one that worked right.)

Another downside is that setting up Portable Vbox in Windows seems to mess up any pre-existing standard VBox install on the same the machine (just the app, not the VM's you may have already created).

LinuxLiveUsb uses Portable Vbox for it's Virtualize this Key option, but the last time I tried it the Win7 bug prevented it from working; plus that option (unlike a standalone Portable Vbox) does not allow persistence.
Qemu also works well. See Qemu for Windows for the binaries and Qemu main site Qemu documentation.

Getting a virtual machine up and running is a little more hands on than in Vbox. But it's not really difficult. This slightly dated page originally intended for Qemu on the OLAP project is helpful for getting started, but it doesn't tell you everything you need to know.

Qemu is arguably a little faster than Vbox since it's somewhat lighter. You may find some older pages saying it's too slow to use in Windows, but my experience is that is no longer true with the newer binaries. Still, you will want to make your install as light as possible with Lubuntu or similar.


Cannot make work Java 8 Plugin in chrome 39 in ubuntu

Google Chrome 35 onwards does not support java plugin.
If you want to use java on browser either use Mozilla Firefox or downgrade Chrome to 34 version - not recommended(backup your bookmarks and settings).


You have the option to upgrade your Ubuntu to v.11.04 and it will be fixed automatically !! I fixed a laptop and a desktop using this solution !!! They say it's a bug !!!


How do I enable nvidia-persistenced.service?

I may be a little late, but I hope this helps others with this.

From what I understand, you do NOT have a POWER9 system, not unless your system is a supercomputer.

According to this link and that.

Being a Linux rookie, I too was stuck on this for a long time.

Hope I helped.


Ubuntu won't reboot after resizing my Windows partition

Bonjour Antoine,

The reason your Ubuntu is going black after boot is probably due to lack of disk space as you have mentioned. I don't think it has to do with your defragmentation nor removing 20 Gb from your windows paritions because you haven't physically allocated it to Ubuntu partition yet, reading from your GParted screenshot.

I believe your Ubuntu will be running normally after properly allocating that 20 Gb.

From your live usb, do the following:

Right click sda6 and select Swapoff
Right click sda6 again and select Resize/Move
Drag (do not resize) the block all the way to the left, then click Resize/Move
Right click sda7 and select Resize/Move
Resize to include the unallocated 20 Gb into the sda7 partition, then click Resize/Move
Click on apply all operations (check mark)

Restart Ubuntu and let us know!


Xubuntu panel disappears every time I restart

I don't have much experience in this area, but you could try creating a script to run those commands in that order and setting it up to run a startup. You could also try going into your panel settings and unchecking the box labeled "Automatically show and hide the panel".


Wireless headphones not working on 18.04

This is most likely not a problem with your headphones but the app.

Go to Settings > Sound > Applications > check the sound level for Firefox

Also try other apps like Rhythmbox or something, see if that works. If it does then you've narrowed down the problem specifically to your browser.


Try Right-Click->Input Methods-> (Simple or IBus or X Input Method). Seemed to work for me. Hope it helped :)


How to install KDE plasma 5.2 on ubuntu 15.04?

Plasma 5.2 is the default on Kubuntu 15.04 .

I highly suggest you boot a kubuntu live usb to test it . If you like it, then you can either do a fresh install of Kubuntu or install it on your 15.04 install.

To install it on your existing install run

sudo apt-get update && sudo apt-get install kubuntu-desktop

See https://help.ubuntu.com/community/InstallingKDE for additional information.


I suggest you following command than yours.

sudo apt-get build-dep gimp

Ubuntu repository has also gimp source.

Although repository's gimp version is not same gimp tarball, it's build dependencies is almost same.


Problem with Wifi Usb dongle Netgear WNA1000Mv2 on ubuntu 15.10

You can install a driver this way

sudo apt-get install git dkms
git clone https://github.com/lwfinger/rtl8192cu.git
sudo dkms add ./rtl8192cu
sudo dkms install rtl8192cu/0.1


Is there Ubuntu Server for 32bit systems?

The Ubuntu 14.04 32-bit server can be download via Torrent: http://releases.ubuntu.com/14.04/ubuntu-14.04-server-i386.iso.torrent

Or can be downloaded directly: http://de.releases.ubuntu.com/14.04/ubuntu-14.04-server-i386.iso

Any other ways of doing it are mentioned in the Alternative Downloads in http://www.ubuntu.com/download/alternative-downloads

I know it is tough to find the 32-bit version but that is because it is becoming less a less recommended (and used). With the amount of default RAM some laptops already have and all current CPU supporting 64-bit, 32-bit is becoming less of a server architecture (and soon less of a desktop one).


How to change ip address in ubuntu desktop through command line

By default, Ubuntu (or Network Manager to be specific) ignores the /etc/network/interfaces file. To make the changes you made take effect, execute the following commands:

sudo ifdown wlan0
sudo ifup wlan0

Assuming that wlan0 is the interface you are editing. Once you do that, wlan0 will come up with the settings you have under its stanza in /etc/network/interfaces.

Edit: since you're connected through SSH. You can try the following:

Edit /etc/NetworkManager/NetworkManager.conf and change ifdown managed to false:

[ifupdown]
managed=false

Then, try:

How to restart the networking service?


12.04, multi screen - Dialogs opening on the wrong screen

You can set it with xrandr. The command is: xrandr --output <your output> --primary

To get what you will put at <your output> you can run just xrandr to show your options.  See this example:

~$ xrandr
Screen 0: minimum 320 x 200, current 2880 x 1200, maximum 8192 x 8192
VGA1 disconnected (normal left inverted right x axis y axis)
LVDS1 connected 1280x800+0+0 (normal left inverted right x axis y axis) 261mm x 163mm
   1280x800       60.0*+
   1024x768       60.0
   800x600        60.3     56.2
   640x480        59.9
HDMI1 connected 1600x1200+1280+0 (normal left inverted right x axis y axis) 367mm x 275mm
   1600x1200      60.0*+
   1280x1024      75.0     60.0
   1152x864       75.0
   1024x768       75.1     60.0
   800x600        75.0     60.3
   640x480        75.0     60.0
   720x400        70.1
DP1 disconnected (normal left inverted right x axis y axis)

He sets the HDMI1 as primary with this command: xrandr --output HDMI1 --primary

Reference: 1.


How to composite videos and make animations in Ubuntu?

You can use Blender to composite videos and make animations. There are many tutorials on YouTube for doing so, including using particles.

There are also several video editors available, including NovaCut.


For those coming across this still, check your kernel version with uname -a. If the version is 5.1 or greater, it should support your hardware without needing the iwlwifi driver.

Remove the iwlwifi driver (cautiously if you don't have an ethernet backup):

apt search ilwwifi. You should see something like:

Sorting... Done
Full Text Search... Done
backport-iwlwifi-dkms/focal,focal 8324-0ubuntu1 all iwlwifi driver backport in DKMS format

oem-wifi-iwlwifi-mainline-5.1rc1-dkms/now 6 amd64 [residual-config] (none)

Remove each that is installed on your machine. For example apt remove backport-iwlwifi-dkms oem-wifi-iwlwifi-mainline-5.1rc1-dkms
Reboot if needed.


Want to install pre existing ubuntu OS into parallels on windows 7

Windows and Ubuntu have to reside on two different disk partitions, since their file systems work on different file formatting :

Windows on FAT32 or NTFS
Ubuntu on ext3 / ext4 or such formatting standard.

If I understand your question correctly, you would like to switch between Windows and Ubuntu OS without having to restart your PC. I am afraid, this is not possible since both will have to reside on two different partitions and only one of them can be booted at a time.

Note : Best possible solution for you could be to use Oracle VM VirtualBox and install Windows as a virtual machine. You can then easily power up that machine without having to shut down Ubuntu.


How can I see which VLAN a virtual network interface is assigned to

found the following solution:

cat /proc/net/vlan/eth0.2011
eth0.2011 VID: 2011 REORDER_HDR: 1 dev->priv_flags: 1 total frames received 1129 total bytes received 55318 Broadcast/Multicast Rcvd 0

total frames transmitted            8
total bytes transmitted          648

Device: eth0 INGRESS priority mappings: 0:0 1:0 2:0 3:0 4:0 5:0 6:0 7:0
EGRESS priority mappings:


Upgrade from 18.10 to 19.04 - showed kernel error, but rebooted and seems to be fine. Anything to be done?

Looks as known bug 1825420.

I have seen it during upgrade of my Ubuntu 18.10 to 19.04. It showed the following warning message:

  Could not install 'linux-image-5.0.0-13-generic'

  The upgrade will continue but the 'linux-image-5.0.0-13-generic' package may not be in a working state. Please consider submitting a bug report about it.

  triggers looping, abandoned

I ran dpkg --configure -a as it was recommended in warning window and do not have any issues.


How to access your Samba Server from an iPad?

I use one of two Documents by Readdle (Free) or File Explorer (Free) then I go to add, and WINDOWS - on File Explorer scroll down and you'll see your server and on documents put in your Hostname - default is UBUNTU.

Hope this help fo anyone like me!


Unable to update because of bind issue on Ubuntu 12.04 LTS

Below is an apparently radical way of possibly sorting out this error.

I saw this on Ubuntu Forums and a reference to:
https://help.ubuntu.com/community/Pa...otingProcedure

I tried this on my system (server11) and it did not work but I'm putting the solution here anyway. On my system I could already see at apt-get clean it already gave the same error as before.

sudo mv /var/lib/dpkg/status /var/lib/dpkg/status-bad
sudo cp /var/lib/dpkg/status-old /var/lib/dpkg/status
sudo mv /var/lib/dpkg/available /var/lib/dpkg/available-bad
sudo cp /var/lib/dpkg/available-old /var/lib/dpkg/available
sudo rm -rf /var/lib/dpkg/updates/*
sudo rm -rf /var/lib/apt/lists/*
sudo mkdir /var/lib/apt/lists/partial
sudo rm /var/cache/apt/*.bin
sudo apt-get clean
sudo apt-get autoremove
sudo apt-get update
sudo dpkg --configure -a
sudo apt-get install -f

Original reference:
http://ubuntuforums.org/showthread.php?t=2068352&page=2


I had this happen yesterday to a friend's laptop.

If you had installed apache or related software using any unsupported PPAs,
remove them using ppa-purge:

sudo apt install ppa-purge
sudo ppa-purge ppa:whatever/ppa

Remove apache2 and unused dependencies:

sudo apt autoremove apache2

Remove residual configuration files:

dpkg -l | grep '^rc' | awk '{print $2}' | xargs sudo apt-get purge

(Source: https://askubuntu.com/a/376281)

Now install apache again:

sudo apt install apache2

This worked in bionic.


The most major apps are available like Twitter, Facebook or Google Maps.
The average battery lifetime are 2-3 days.
Network functions (WLAN) running fine including daily updates (depends on your image).
But remember, everything is in a developing state.


Zoph is in beta and only available in source code, so not through the standard Ubuntu Software center.

So you have two possibilities:

If you know what source code, compiling and linking is, build it from source
If you're not very technical: wait until version 1.0 has been released. (No, really! If you've never programmed before: forget about 1. above)


It's simple in Ubuntu, insert the modem, next go to network manager icon on top panel, click on it, select "Edit Connections" below drop down menu, select "Mobile Broadband" tab, click "Add" then "Continue" Select Country "India", here U find Tata Indicom, selec appropriate device of Your's,


Making a Bootable USB flash drive which will boot in EFI

Go in your BIOS settings and disable secure boot. There must be an option somewhere.


You can download .tar.gz (source) and .zip (complete font, see Paul's remark below) packages of the Ubuntu font family at font.ubuntu.com.

In most distros you can install fonts per user by copying them into ~/.fonts (or you can use a font manager).  To install them system-wide, it might be useful to check the documentation of your distro.


Left ctrl key not working in Ubuntu 13.04

I had a similar problem. I would press Ctrl+Alt and the computer would restart (with a message that Ctrl+Alt+Del was pressed). Then I noticed that the problem is with the Ctrl key - in the terminal, when I pressed just the left Ctrl key it would output sometimes e.g. "5~;5~" other times it would keep printing "-----------" or "vvvvvvvvvvvvvvvvvv". The output in the terminal without X was different and also a bit erratic.

This started happening after I upgraded to 13.04. I also had the "locate mouse pointer" feature enabled from one of the earlier versions of Ubuntu and Gnome - it would render red/brown circles around the mouse pointer when you press the left Ctrl key. After disabling this feature [1], the problem seems to have gone away.

[1] Where is "Show position of the mouse when the Control key is pressed"


Try echo 1 > /sys/block/<disk>/device/delete. You'll need to be root to do this.

On my system, this powers off the eSATA disk and deallocates its block device. The disk stays powered off and I can disconnect it at my leisure.

Note: make sure you have unmounted any filesystems first to prevent data loss!


GRUB / os-prober doesn't see Windows 8.1 partition

You should use boot-repair. It will in most cases be able to help fix the problem.

Boot-Repair is a simple tool to repair frequent boot issues you may encounter in Ubuntu like when you can't boot Ubuntu after installing Windows or another Linux distribution, or when you can't boot Windows after installing Ubuntu, or when GRUB is not displayed anymore, some upgrade breaks GRUB, etc.


14.04 alt key conflict after changing HUD and Window menu shortcuts

Found the solution: Need to install CompizConfig Settings Manager and then on the "Unity Ubuntu Plugin" tab general you can change the key for "Key to show the menu bar while pressed".


How can I undo changes made in HDA Analyzer?

Running this  commands in a terminal should be ok:

sudo rm /etc/modprobe.d/hda-jack-retask.conf
sudo rm /lib/firmware/hda-jack-retask.fw

Then reboot.


xorg.conf keyboard layout lost when window manager starts

From your comments to the other answers I can see that you might are not be running a settings daemon.
Most DesktopEnvironments (like Gnome, KDE etc.) runs a service for keeping track of every little setting for you! But WindowManagers (like WindowMaker, i3, awesome etc.) usually don't have this feature.

If you are starting a WindowManager from ~/.xsession or other homemade script, then you should set your keyboard settings for that specific session. Setting the keyboard layout can be done with setxkbmap from your Xsession script before the line where you start the WindowManager.

setxkbmap -model sun_type7_usb -layout gb -option ctrl:swapcaps

As a bonus info, you can get all the available models, layouts etc. from these commands:

localectl list-x11-keymap-models
localectl list-x11-keymap-layouts
localectl list-x11-keymap-variants [layout]
localectl list-x11-keymap-options

These informations were primarily found at ArchWiki, where there is some more information about keyboards in general though it may differ a bit from Ubuntu.


reprepro: Signature by key uses weak digest algorithm (SHA1)

You can fix this by modifying the ~/.gnupg/gpg.conf file of the user account which will be running reprepro and adding this line to the file digest-algo sha256. All signatures made with GPG by this user will use the SHA256 digest algorithm by default, thus, signatures made by reprepro will be sha256, as well.

If you want to learn more about GPG, APT, and Debian packages, I wrote a comprehensive blog post about signing and verifying Debian packages and APT repositories that may be helpful.


Open the terminal and type:

sudo update-alternatives --config default.plymouth

Select the original default and then

sudo update-initramfs -u

Reboot.

If it still doesn't appear then open a terminal and type the following command:

sudo -H gedit /etc/initramfs-tools/conf.d/splash

or this command by Alt+F2

gksu gedit /etc/initramfs-tools/conf.d/splash

This file may not exist, so you may be creating it from scratch now.
Enter the following content on the file you opened on the previous step:

FRAMEBUFFER=y

Close and save the file.
Now, run the following command to commit the change:

sudo update-initramfs -u

Reboot and enjoy your Plymouth splash screen.