I have a laptop with a similar problem. Almost all linux distributions i have used have a problem with the RTL8821AE wireless network card. This repository contains software to help you solve this issue

https://launchpad.net/~hanipouspilot/+archive/ubuntu/rtlwifi

I will not vouch for any software from anywhere including this. I use it despite this.

I cant help with the keyboard though...


You should be able to unmount the DELLUTILITY partition at anytime. Mamually, enter the command:

sudo umount <mount point>

If you want to avoid having the partition always mounting, first get the actual partition name that contains the Dell Utility. To do this, enter the command:

mount

and see which one it is, for example, /dev/sda1 or a long series of digits.

as root (sudo), edit the file /etc/fstab and remove (or comment out) the line that mounts that partition.

This will disablemounting this partition in the future, but will not prevent you from manually mounting it manually.


How to show progress of a rsync backup script in KDE plasma's notification area?

Okay i have found a good solution using zenity. Below i attached some todos for users who are not familiar with all those admin stuff ;)...
What the script is doing:

Check if remote host is reachable
Ask if you want to perform the backup in the GUI (with Zenity)
Using rsync with ssh to backup to remote machine
Backup list of installed packages
Script is made to perform full system backup of / and all its subdirectories
Executed autmatically once a day using anacron/cron

Here is the script:

#!/bin/bash

#preperations...

PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:
export DISPLAY=:0.0
export XAUTHORITY=/home/$USER/.Xauthority

#check if host is reachable

ping -c1 -W1 -q $iptoremotehost &>/dev/null #put in the host adress here
status=$( echo $? )
if [[ $status == 0 ]] ; then

#ask if backup should be performed if the remote host is reachable
 if
    ! zenity --question --text "Grab a coffee and perform backup?"; then exit;
 fi
#backup Packages

 dpkg --get-selections > /pathtoyour/Packages.txt #file needs to be created first

#backup whole machine with some excluded folders (not to produce infinite loops). Take care of -i param in rsync because by default it is not using the right private key for ssh connection (in my case this was a problem).

 rsync --rsync-path="sudo rsync" --delete --exclude-from='/pathtoyour/rsync_exclude.txt' -aAXPv -e 'ssh -i /pathtoyour/privatekey' $yoursourcedirectory rsyncuser@$iptoremotehost:$yourdestinationdirectory |
    awk -f /pathtoyour/rsync.awk | #this file must be created first!
    zenity --progress --title "Full System Backup" \
       --text="In process..." --percentage=0 --auto-kill

else
   exit
fi

TODO to get it working:

Create files rsync.awk, rsync_exclude-txt (content see below)
Put backup script in /etc/cron.daily and make it executable
Setup a ssh connection using a public key, which is replacing the
password when sshing to your host. (See:
https://www.cyberciti.biz/faq/how-to-set-up-ssh-keys-on-linux-unix/)
Create a $rsyncuser on the remote host and create a group where you
add the rsyncuser to and also the normal user. Change the permission
so that the new group can access read and write the $destinationpath
of your backup.Don't forget to install the ssh key to the new user,
so that no password is required when sshing!
As to preserve the right permissions on the backuped files and
directories add you have to allow the $rsyncuser to run sudo rsync
(on the remote machine) without password prombt:sudo visudo and
add rsyncuser ALL = NOPASSWD: /usr/bin/rsync

Grab a beer and perform backup!

rsync.awk:

{
   if (index($0, "to-chk=") > 0)
   {
    split($0, pieces, "to-chk=")
    split(pieces[2], term, ")");
    split(term[1], division, "/");
    print (1-(division[1]/division[2]))*100"%"
   }
   else
   {
    print "#"$0;
   }
   fflush();
}

rsync_exclude.txt:

dev*
proc*
sys*
tmp*
run*
mnt*
lost+found*
home/$USER/.ssh/*

Don't forget to add the directory where the private key of your ssh connection is lying. Otherwise it would be a security issue!

Feedback appreciated!


You don't have to create a partition for GRUB, it was already created from Windows installation process. There already exists an EFI partition to which all the boot loaders have to be installed.
To achieve what you want follow these instructions, they worked in most of the similar cases:

First try to change the boot order in BIOS (UEFI) settings.
Select Ubuntu to be the default operating system to boot.

If this is not possible or the GRUB boot menu does not show up when starting your computer,
boot into Windows and disable hibernation and Fast Boot.

To disable hibernation open command prompt as administrator and execute this command:

powercfg /h off

To disable Fast Boot open Control Panel (the old version - not the modern design),
select the Energy Settings, enable show hidden settings and uncheck Fast Boot.

After having done this shutdown the machine completely - do NOT reboot!

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

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

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

Now you can choose which operating system you want to boot from the GRUB boot loader menu.

Note :

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

To identify the partition numbers use GParted.
The tool is included in the Ubuntu install media.


How to install newest flash player in Opera and Chromium

Here is solution for Opera (Chromium should work too), in shortcut after installation of pepperflashplugin-nonfree, You should do this:

Download newest adobe flash player from here
unpack and select :

libpepflashplayer.so , manifest.json

and paste here :

/usr/lib/pepperflashplugin-nonfree

What I know flash player have many security issues can't be fixed because of basic assumptions. Despite the introduction of video mark in HTML 5 , no one uses this mark as main mark to distribute video stuff. Overwhelming majority of Internet portals uses still buggy flash player where not authorised code could be inject. There is no way to convince people to not use flash player , argument for this is the number of openings of these materials where one movie have over 20 millions views, then ensuring anyone that does not use flash does not matter, people don't allow for change in that way. Many people here advise to use firefox because distribution flash player inside with installation but did they know that this action is against assumptions of security ? I think there are two ways ,  first, allowing flash player to distribution and fighting with buggy flash player,

or second what I prefer is blocking distribution of flash player. You ask why providers of internet sites uses flash player , answer is simple they don't want security of users They want to have an impact on your systems, solution is blocking flash player until owners of www site start change code and management policy of sites, one starts the rest must adjust.


How to automatically reboot my server every 4 hours?

The crontab Method

Open your Terminal or SSH into your server
Type sudo crontab -e and the press ENTER
Use the down arrow key to go to the bottom of the text
Type 0 */4 * * * sudo reboot
Press CTRL+X
Press Y
Press ENTER

If all went well, it should reboot every 4 hours, on the hour.


Get current ssh session's originating IP without being superuser

You can use the SSH_CONNECTION and SSH_CLIENT variables:

$ echo $SSH_CONNECTION
10.0.0.1 42276 10.0.0.2 22
$ echo $SSH_CLIENT
10.0.0.1 42276 22
$ SSH_IP=${SSH_CONNECTION%% *}
$ echo $SSH_IP
10.0.0.1

From man 1 ssh:

 SSH_CONNECTION        Identifies the client and server ends of the
                       connection.  The variable contains four space-
                       separated values: client IP address, client port
                       number, server IP address, and server port number.

You can access each entry in SSH_CONNECTION more easily if you split it into a bash array:

ssh_details=($SSH_CONNECTION)

Then you can get each entry using its index:

$ echo $SSH_CONNECTION
127.0.0.1 55719 127.0.0.1 22
$ ssh_details=($SSH_CONNECTION)
$ echo ${ssh_details[0]}
127.0.0.1
$ echo ${ssh_details[1]}
55719
$ printf "You are logging in from host IP %s from port # %d\n" ${ssh_details[0]} ${ssh_details[1]}
You are logging in from host IP 127.0.0.1 from port # 55719

For some reason, SSH_CLIENT is not documented in the English manpages.


Harddisk makes noise but Disk Utility says its healthy

The Barracudas are known of making noise, this is a normal behavior. (Noise level can be between 28-34 dBA@1m, which is normal.)


I've found that all lines in the sudoers README have to be prefixed with a #.

I don't understand why README is being processed when you run sudo, but uncommented lines seem to break it. I only stumbled on this when an SD card in my raspberry pi started to fail and corrupted a number of files. This is despite the README file not being the only file in the folder.


I have hidden and unreachable workspaces - how do I cancel them?

So this is how I found the solution (thanks to Jacob Vlijm):

open Dash and type "Display", or go to System Settings and from there click "Displays".
Check if "Mirror displays" is ticked (1st line) and/or if it is On or Off (2nd line). Play around with those two until you get to the desired situation. Note that the On/Off button works only when the Mirror Display (1st line) is un-ticked. Good luck!


The things we need to know are:

The Version of Ubuntu you are trying to install --> different Kernels, different setting, different solutions.
The Model number of the Dell computer that you are using --> Helpful to determine the problem.

Nonetheless, this might help:

# modprobe -r psmouse
# modprobe psmouse proto=imps


Ubuntu freeze for 1 second every minute then resumes

I still don't know what the reason was, but after update to 13.10 the behavior stopped.


Open a terminal and type the following commands :

sudo -i

apt-get clean

cd /var/lib/apt

mv lists lists.old

mkdir -p lists/partial

apt-get clean

apt-get update

This will rename your "list" folder to "list.old" for backup purposes and then rebuild.


How do I use dmesg to diagnose slow boot speed?

The number on the left is seconds (and microseconds) since boot. Look for big jumps.

Your USB startup probe (3-18) is taking a really long time. This might be worth investigating.
And USB again, (31-44) under udev is slow
Then there's a 4-second pause at 46.699188, after the USB touchscreen initialises.

Noticing a theme here? Something in your USB setup looks like it's nailing the USB performance. This could be bad Kernel drivers for your USB chipset or a bad device (I've had simple USB devices render a system unbootable until they were removed) or a combination of the two.

I'd start by removing all the USB devices and trying to boot. If it's speedy, add one device at a time until you find a trouble-maker. If it's always slow, start investigating your USB chipset.

It might also be worth creating a bootchart to see how concurrently your services are managing to start up. It could be that the USB is just a coincidence and something is using 100% CPU. A bootchart will show this.

Edit: just re-read the question and see this is a laptop and therefore the touchscreen is probably hard-wired in. If you have a BIOS option to disable it, use that.


Have you tried changing the resolution from NVIDIA's display configuration panel?
Remember to run it as 'sudo' in order to save your settings:

1) Hit alt-F2

2) type gksudo nvidia-settings and hit enter ('gksudo' is the GUI version of the 'sudo' command in the terminal; alternatively you could open a terminal window and type "sudo nvidia-settings").

3) Select the resolution you want then hit apply, and if it looks good, click save to x-config

If nothing happens when you try to run the nvidia-settings program, perhaps you need to download and the latest drivers from NVIDIA's website.

Let us know how that goes.


GNU Toolchain required on Ubuntu 13.04 - for offline PC

There are some tools described on page https://help.ubuntu.com/community/AptGet/Offline which you can use to transfer required packages to your off-line installation.


Empathy fails to show any contacts, accounts say status is set to offline when it isn't

Are you using autologin? Maybe https://bugs.launchpad.net/ubuntu/+source/empathy/+bug/558872
Does quitting and restarting empathy fix the problem? I think that is also a bug.


Application to draw electrical instalations

Check out these options.

LibreCAD is a free Open Source CAD application for Windows, Apple and Linux.

DraftSight is the only native software running on Ubuntu compatible with DWG files - it's 2D only (can view 3D files but not create them), sort of an equivalent to AutoCAD LT.

If you want to spend money then

Bricscad is a lot more powerful, has ACIS modeling just like AutoCAD (Pro version) and its Platinum version has even parametric modeling.


Flash 11.2.202.228 audio choppy/stutters

well, it seems like there is a bug in Flash version 11.2.202.228. [launchpad]

Here I did find some clues.
So I downloaded the previous version (available from Abode as binaries), replaced by existing /usr/lib/flashplugin-installer/libflashplayer.sowith the one from the previous version.

And now sounds is working like a charm again.

Also, when the next flash upgrade comes along, the automatic upgrade should as normal.


Framebuffer Imageviewer on Ubuntu 12.04.2 virtual machine

Taking a look at the manpage for fbi

This program displays images using the Linux framebuffer device.

The proprietary graphics drivers won't use the traditional framebuffer device. There is fbgrab, which allows you to specify the device to capture from, but you'd still need to know the device name e.g. /dev/[device]


A .deb package is available from http://packages.debian.org to solve the jibgnome-bluetooth7 dependency:

http://packages.debian.org/sid/armel/libgnome-bluetooth-dev/download
Download and transfer it to the computer via USB, or SD.
Double click on it to open, or use the terminal to install ( sudo dpkg -i libgnome-bluetooth-dev*.deb )
The version is 3.8.1-2 which will satisfy the required >=2.27.8.

Once the dependency is installed you can then install network-manager from http://packages.ubuntu.com

http://packages.ubuntu.com/lucid/network-manager-gnome
Download and transfer it to the computer via USB, or SD.
double click on it to open, or use the terminal to install ( sudo dpkg -i network-manager-gnome*.deb )
A reboot or relog is required after install to activate the software correctly.

Would you be able to state why the network-manager is absent from your computer?


How do I re-issue OpenSSL snakeoil cert?

You can use this one-liner to regenerate both files in one shot.  You'll need to restart Apache after the cert has been re-created.

openssl req -x509 -nodes -days 3650 -newkey rsa:2048 -keyout /etc/ssl/private/ssl-cert-snakeoil.key -out /etc/ssl/certs/ssl-cert-snakeoil.pem

If you're at all concerned about security (and you should be), then you should regenerate certificates on all affected critical servers, followed by an exhaustive service restart or a system reboot.

If you're just running a play-around box on your LAN that's one thing, but anything you've got on the internet you should definitely reissue.


Trouble with renaming/labelling drives in Ubuntu

Look in /etc/fstab and see where the partitions are mounted. Edit fstab to alter where the partitions are mounted and the name they are mounted under. eg. I have /dev/sdb2 mounted under /archive ..

$df -h

/dev/sdb2       139G   56G   76G  43% /archive

$blkid

/dev/sdb2: LABEL="archive" UUID="d3cf3600-f3d8-4ab8-8537-349dbeab7f1b" TYPE="ext4"

$cat /etc/fstab

UUID=d3cf3600-f3d8-4ab8-8537-349dbeab7f1b /archive  ext4    defaults,noatime 0 1

"Use 'blkid' to print the universally unique identifier for a device; this may be used with UUID= as a more robust way to name devices that works even if disks are added and removed."


Realtek RTL8822CE is unable to detect WiFi networks

The problem is this:

  Direct firmware load for rtw88/rtw8822c_fw.bin failed with error -2

Please install the latest version of linux-firmware which contains it:

wget http://security.ubuntu.com/ubuntu/pool/main/l/linux-firmware/linux-firmware_1.178.3_all.deb
sudo dpkg -i linux*.deb

Reboot.


Mounting a Network Drive from a server with an Older version of SMB

There are several dialects or versions SMB understands, so you might try the following:

sudo mount -t cifs -o username=tyler,vers=1.0 //[SERVER.IP] /media/Data

I neither have a trailing slash on source nor target... vers=1.0 should be used for old servers


WILL Ubuntu 18.10 operate on Toshiba Satellite-L505D

Yes it will. I tested it 2 months ago. Obviously you have to be very patient during the install process (it was a bit slow for me) but other than that you are good to go. And yes it is a 2.1Ghz. Everything worked correctly. From the Ati graphics driver which I thought it would fail but it worked perfectly to the lan connection.


Is it possible to install Gnome3 in Kubuntu 11.04

Yes.

sudo apt-get install gnome3-session

If you want to know if a package is available, search Synaptic (or whatever package manager you want). For the definitive answer, search Apt.

$ apt-cache search --names-only gnome3
gnome3-session - The GNOME Session Manager - GNOME 3 session


Installing Lightning Add-On on Thunderbird

After download .xpi file, open Thunderbird.

Open the Add-ons Manager ( Tools -> Add-ons )

Just drag the .xpi file from nautilus, and drop it in the Add-ons Manager, then it should start installing.


How to downgrade a PPA package (Firefox ESR 60 to ESR 52)?

I suggest to remove Official Mozilla PPA with

sudo apt-get install ppa-purge
sudo ppa-purge ppa:mozillateam/ppa

and install package from JonathonF PPA (ppa:jonathonf/firefox-esr-52) with

sudo add-apt-repository ppa:jonathonf/firefox-esr-52
sudo apt-get update
sudo apt-get install firefox-esr

As the result you will get Firefox ESR 52.9.0, but please note that you will not get security updates as this version is obsolete. The positive moment is that it is the last version supporting LEGACY ADDONS (for example I'm staying on this version to continue to use my addons such as SiteDelta, TableTools2, Show Parent Folder, Manage Folders, Wired Marker and others).


No, I don't think so. You will have to reinstall the entire OS (the root partition, to be precise.). The packages and the kernel will have to switch back to the 32-bit version. At the most, you can keep the same home directory, so you don't lose your settings, bookmarks, Music, Photos, etc.


while installing ubuntu i deleted the windows os but the remaining drive is still there how to include them with ubuntu

If you deleted the partitions, then the space is unallocated.
tell ubuntu to use the free space when you install.

the small partition you deleted was probably the EFI partition so be sure that the installer boots up efi mode not bios mode.


Borg Backup will split your data into encrypted chunks.

https://borgbackup.readthedocs.io/en/stable/

It also can create versioned, deduplicated archives all inside one backup repository. It's a little tricky to get started with (it's a command line tool) but it's included in the Ubuntu repositories. If you use a good password and upload your repository to Dropbox or wherever, then nobody but you knows what's in it. Even the file names are changed to block ID names.

You can install it with:

sudo apt-get install borgbackup


Try to boot Ubuntu from your USB stick. When it reaches to the point to ask whether you want to install Ubuntu or try it choose the option which says Try Ubuntu. Once the desktop shows up open a terminal by pressing Ctrl+Alt+T or by searching Terminal through the Dash. When you open the terminal type the following:

sudo add-apt-repository ppa:yannubuntu/boot-repair
sudo sed 's/trusty/saucy/g' -i /etc/apt/sources.list.d/yannubuntu-boot-repair-trusty.list
sudo apt-get update
sudo apt-get install -y boot-repair && (boot-repair &)

Then open Boot-Repair

Once you open it press the button which says:

Recommended repair (repair most frequent problems)

Please reply with a comment if this worked for you or not. If not please explain again exactly what happens when you are trying to boot to an OS.


How can i get multi touch working in Unity on Ubuntu 19.04 on my Acer Aspire A315-51-3879?

While there may be libinput support for unity in 19.10+ there is none now.
So install xserver-xorg-input-synaptics package and reboot. Then ck. System Settings > Mouse & Touchpad

(- Do not be tempted to remove any libinput packages, needed for greeter..


Has Ubuntu been patched against the KRACK attack?

A fix has been issued as per USN-3455-1 . You should update your system with sudo apt-get update && sudo apt-get upgrade. The relevant versions for currently supported releases:

Ubuntu 17.04:
hostapd 2.4-0ubuntu9.1
wpasupplicant 2.4-0ubuntu9.1
Ubuntu 16.04 LTS:
hostapd 2.4-0ubuntu6.2
wpasupplicant 2.4-0ubuntu6.2
Ubuntu 14.04 LTS:
hostapd 2.1-0ubuntu1.5
wpasupplicant 2.1-0ubuntu1.5

You should see an update of wpasupplicant during the update. More information about the attack is available on the GitHub page.


You can add export PATH=~/bin:"$PATH" to your ~/.profile file. Add it to the bottom, save then reconnect to SSH.

Alternatively, if you want this change to be system wide for any user, you can edit the path in /etc/environment.


setting up ubuntu server 12.04 with SSD/HDDs questions

Yes, as long as the /home partition is mounted, everything in /home is stored on that partition.


For focus follows mouse and "sloppy":

See the answers here.

For the menu bar:

Go to System SettingsAppearanceBehavior and adjust in the section circled below:


You can install Workspaces Indicator to help to identifying which workspace you are in.

To do this, first add this to your PPA:

sudo add-apt-repository ppa:geod/ppa-geod

Then update and install:

sudo apt-get update
sudo apt-get install indicator-workspaces


Unfortunately I can't comment (due to lacking reputation) therefore I am answering.  I believe there is actually a Compiz bug with your version - you would need to install the missing dependencies - I wish I could remember which dependency.

hopefully this will get you one step closer to a solution


Trying to allocate more RAM to Unbound and getting a warning "To fix: start with root permissions"

You can solve this by running the following commands, note that these will not persist across reboot. To make changes across reboot edit /etc/sysctl.conf
$> sudo sysctl -w net.core.rmem_max=4194304
$> sudo sysctl -w net.core.wmem_max=4194304

After this restart unbound and it should solve your problems


Each partition has a part reserved for root. This makes a part of the drive unavailable to normal users. It is usually 5%, which often means many gigabytes, far more than sudo would ever need. You can change it to less than 5% (or even 0) with the tune2fs program.


How to setup jenkins in a ubuntu 12.04 machine?

You can try to use a ssh tunnel.

Run in the server ssh -f user@home_computer -L 80:pkg.jenkins-ci.org:80 -N
Add this line to /etc/hosts file:

127.0.0.1 pkg.jenkins-ci.org

Follow the installation guide.

Hackish, but I think that's what you are looking for.


Windows 8 release preview BSODs in Virtual box

In order to install an operating system with a PAE kernel you need to enable this in the settings for your guest OS:


How do I remove Ubuntu One-synched files from my computer without deleting them on the server?

Ubuntu One keeps things in sync.  This means if you change or delete a file on one system, it is changed or deleted on all of them.  All synchronized folders will always be kept the same.

If you want to put something in Ubuntu One and then remove it from your local system but keep it on Ubuntu One you can do the following:

Select a folder for synchronization in Ubuntu One.
Wait until the synchronization is complete
Open the Ubuntu One control panel. Go to the "Cloud Folders" tab,
find the folder you synchronized and uncheck the "Sync locally"
checkbox.
Delete the files or folder on your local system.

Then your files will be online in Ubuntu One and gone from your local system.


How to enable clickable notifications for pidgin?

Install Guifications via Synaptic Package Manager,

Once Installed go to "Tools/Plugins and choose "Guifications",activate it and click on "Configure Plugin" in order to set your preferences. You can set the position, stack, and other display options, the same as Mouse behavior.

Additionally you can set which notifications you want to be notified about and get themes to enhance your GUI notifications.

Note: You might need to disable current notification popups in order not to receive duplicated notifications.

Good luck!


Exact same issue.  Go into "safe mode" ("Advanced" mode on Ubuntu boot screen) and choose the earlier version (3.13.0-33-generic).

Once you're back on your desktop you can remove the problematic kernel by running these commands:

sudo apt-get purge linux-image-3.13.0-34-generic


Can I use my Ubuntu hdd on other computers?

The short answer is: Yes, Ubuntu usually deals with different hardware really well and it just works.  Make sure that the drive is compatible with the new system, and that you set the boot option to boot from it.


How do I create application launchers in Gnome Panel

From any menu
To add a launcher to a panel from a menu, perform one of the following steps:

Open a menu that contains the launcher. Drag the launcher on to the panel.

Open the menu that contains the launcher and right-click on the title of the launcher. Choose Add this launcher to panel. This method will only work if the launcher is on a sub-menu of the menu that you opened.

From the file manager
To add a launcher to a panel from the file manager, find the .desktop file for the launcher in your file system, then drag the .desktop file to the panel.
i.e. your desktop files will be located in

~/.local/share/applications
/usr/share/applications

source


what should i do if ubuntu 13.04 needs to reboot to fully install but won't?

I've met the same "Shutting Down" problem while installing using PD8 and here's how I solved it. Maybe VM will have some similar steps just like PD.

Solve "Caught signal 15, shutting down..." problem


Do a release upgrade 10.04 to 12.04 LTS in a byobu / screen session

If you are afraid to lose your SSH connection during the process, you can just type a & at the end of your command. E.g.: sudo apt-get dist-upgrade &. This gives you back your prompt. If now the SSH session gets interrupted but the remote machine is still connected to the internet, the upgrade will continue. Using screen (or byobu) won't hurt but won't add extra protection, either.


This should give you the string you want.

MAC=$(ifconfig eth0 | grep -o -E '([[:xdigit:]]{1,2}:){5}[[:xdigit:]]{1,2}'); echo "CM-${MAC//:/_}";

Replace eth0 with whatever the interface is. Output:

CM-d4_85_64_71_58_44

The grep code came from here:

https://stackoverflow.com/questions/245916/best-way-to-extract-mac-address-from-ifconfig-output


Partitioning: Moving an extended partition (containing / and swap) to extend another partition

Considering the fact that your root (/) partition (sda5) is too large and you also intend to reduce its size I think the best method to follow is this:

Increase the size of your Extended Partition (sda4) to the right, i.e. taking in the free space at the end.
Move your swap partition (sda6) to the right (you can make it 4GB as well)
Move your root (/) partition (sda5) to the right and reduce its size to 20-30 GB.
Reduce the size of your Extended Partition (sda4) from the left, leaving a large free space before it.
Finally increase the size of your data partition (sda3) to the right, taking in the whole free space.

You can do this using GParted on a live CD/DVD/USB and you might also need to unmount your swap partition as it will probably be mounted automatically.

Safety? Nothing and nobody is 100% safe ;-)

Normally, all these 5 steps (simply moving and re-sizing partitions) should go well without any problems and your system should be completely unaffected as long as you don't attempt to delete/create partitions.

But, just in case, keep your fingers crossed ;-)

Possible precautions:

Make a backup of your disk or partitions, for example using Clonezilla, Parted Magic, Redo, etc.
Check if your system is intact after performing each step.


To check your Ubuntu file system...

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


What do these numbers mean in apt-get output?

The percentage completed for total task
The percentage of current file being downloaded
Estimated remaining time to complete the whole operation


Can't open any jetbrains products - no obvious errors

I highly suggest you to use JetBrains Toolbox (download) over snap, the issues here are that snap and GUI integration aren't great at all so icons can be broken at any time (and official realeases are 99% of the time more up to date that those on package manager)


End the GUI on TTY7, and start a new one elsewhere

How to restart the display manager

If X is hung, you should be able rejigger it by restarting the display manager. In 11.10, it's lightdm, recent past versions use gdm. Change the following examples as appropriate for your version. You can restart it a few different ways. I prefer the simplicity of the restart:

sudo restart gdm

Or you can use the service command:

sudo service gdm restart

Init script hackers stuck on sysv will prefer invoke-rc.d:

sudo invoke-rc.d gdm restart

If it's really hung..

If restarting the display manager doesn't work, pull out a hammer and kill it dead with one or both of these commands:

sudo pkill -9 X
sudo pkill -9 gdm

Which example should I use? Does it matter?

Use the first one. restart is a link to initctl, which is Upstart, which is Ubuntu's init manager that they are trying to convert everything over to.

The other two commands, service and invoke-rc.d are there only to control the old-style SysV init scripts. SysV exists in modern Ubuntu only for backwards compatibility. Don't rely on it. But if you must..

service is for end-users. It returns a simple exit code. If you're a normal user needing to control a SysV style init script, use this tool.

invoke-rc.d is for init script hackers. It returns a bunch of varied and useful exit codes. There's no reason a normal user should use this tool. There isn't any harm for normal users, it's just more complicated.


How can I install ffmpeg on Lubuntu 14.04?

Answer posted as Question:

There are lots of bits of advice on the web most of which doesn't work because of stale repositories and so on. Eventually,  I found the advice below from elsewhere on stackoverflow.
I used this on Lubuntu 14.04
sudo add-apt-repository ppa:mc3man/trusty-media
sudo apt-get update
sudo apt-get dist-upgrade
sudo apt-get install ffmpeg

I opted not to do the distro-upgrade step,  but it still worked overall for me.


Unable to rename a file, delete, create a new folder, cut, paste in a volume neither by terminal nor by GUI

Try this:

Open a terminal,Press Ctrl+Alt+T

Run it:

exec sudo -i
fdisk -l

fdisk report as they are called partitions mounted in the system.

Suppose /media/shubbh/New Volume is /dev/sdc1

Continue running

umount /media/shubbh/New\ Volume
fsck -y /dev/sdc1
mkdir /media/shubbh/New\ Volume
chmod -Rf 777 /media/shubbh/New\ Volume
mount /dev/sdc1 /media/shubbh/New\ Volume
exit

And try to rename a file, delete, create a new folder, cut, paste in a volume neither by terminal


Such behavior is expected if you have installed special overlay scrollbar packages.

Remove them with

sudo apt purge overlay-scrollbar overlay-scrollbar-gtk2

and then restart the application.

Below is a comparison of look-and-feel:

with overlay-scrollbars

without overlay-scrollbars


“Sorry, ubuntu 13.04 has experienced an internal error”

Reason: Apport is a debugging tool that is used to generate crash reports. This was not enabled by default in previous versions of Ubuntu 12.04. To avoid this annoying pop-up, the Apport can be disabled by force. One drawback of doing it will be that you wont see the crash report but it is safe any ways as there is hardly any actual crash or error.

Solution: If you seem that there isn’t any errors in your system, you may want to disable this error/crash report notification. You can do this by disabling the Apport error report notification tool, following next steps:

Press Ctrl+Alt+T to open a terminal and type the command: sudo -H gedit /etc/default/apport then press Enter to run the command.
From here the text editor apport will show up, change the value from 1 to 0 for enable variable to disable the apport. Save and exit the editor, then restart the system.

You can always re-enable it later on if you want, by changing "enabled" from "0" back to "1", or you can enable Apport temporarily, using the following command in a teminal:

sudo service apport start force_start=1

More resources: Apport - What is this all about?


Ubuntu core not working on any Raspberry PI 3 B or 3B+

I have two ideas (and no comment permissions yet):

Disconnect any external USB storage devices before booting for the first time.
Press enter on a USB-attached keyboard. (you've probably tried this)


Does 'g_thread_join' delete 'gpointer data'?

This gives a clue:

  This will usually cause the GThread struct and associated resources to be freed.

From the manual (g_thread_join()):

  Use g_thread_ref() to obtain an extra reference if you want to keep the GThread alive beyond the g_thread_join() call.

This means that the thread is killed, unless (and that explains the "usually") you keep a reference to it before the call.


The following answer worked for me.  I found it here.  I ran into this problem after trying to upgrade git with sudo apt-get install git-all.

I forcibly remove and then re-install runit like so:

sudo dpkg -r --force-all runit
sudo apt-get -f install runit


Unpluging external disk causes Ubuntu to freeze

I seem to have the same problem. See this debian bugzilla report #914948 for details and this discussion as well.

Maybe if you just unmount the device (not safely remove) and then disconnect it after 10 seconds or so, you'd keep your system up. This seems to work for me for now at the very least.

You may as well experiment with some fresher kernel installations and see whether this fixes your problem or not.


Switching Kubuntu loading screen to Gnome

Okay, it turns out that I needed to switch from sddm to gdm3 using:

sudo dpkg-reconfigure gdm3


Change name in terminal to something shorter

You can change this by changing your hostname as described here.  The hostname is basically the name of your computer, so this will only have to be changed once to affect all users.


Server or Client; it is all about installed packages :)

from your server installation; you can run tasksel and install Desktop componnt(S)

if not installed, Open Terminal and run sudo apt-get install tasksel

This will install tasksel which is a Debian/Ubuntu tool that installs multiple related packages as a co-ordinated "task" onto your system`

you can then run sudo taskseland you will see a list of common installable server and Desktop components e.g

Basic Ubuntu Server
OpenSSH Server
LAMP Server
Mail Server
kubuntu Desktop
Lubuntu Desktop
Ubuntu Desktop
PostgreSQL Database
Samba file server.... and much else

For the switch; there is no actual switch to turn on or off :); but you will usually connect to a Server via a remote SSH terminal (putty for example)

when you want to connect to Desktop (GUI), you may login locally or remotely via VNC (or RDP after installing xrdp package)

For best practice; you don't need to install GUI on a Server.

But if you do need to, here is the simplest words as I see install only what need to have on a Server box, and DON'T install *ubuntu Desktop components as it will install too many packages you don't actually need.

if you need a GUI; install Lubuntu Minimal Installation from tasksel

if you will login locally, you can choose between the Desktop environment (GUI) of shell environment (command line)

simplest way is to press Alt+Ctrl+F1 to bring you to tty1 (ttys 1 through 6 are command line and tty7 is for GUI) and after the first Alt+Ctrl+F1,

you can switch between them with only Alt+F# according to the required terminal #

P.S: tty stands for a terminal

hope this helps you (if so; don't forget an upvote and mark as an answer :D )


The actual path to your shell binary is obviously

/bin/opsh

but you added it in /etc/shells as

/usr/bin/opsh

(You may as well change the name to oopsh... ;-))


Recover files deleted from Eclipse on Ubuntu 12.04 64Bits

Please don't use the disk and don't write any file on the disk you want to recover

Only then make sure that the remainders of the lost files are not overwritten. The less was written in addition on that disk the more chance you have to recover some of your files by data recovery tools such as Testdisk/Photorec (testdisk ).

Testdisk should be installed and run from booting with a live CD. Have another drive at hand where you can store the recovered files.

See also: Is there a way to recover files from a storage device partially overwritten with dd?.


Disable compositing completely ubuntu 16.04

No need to turn off compositing - on my Ubuntu 16.04.5 I just need to start ABAQUS  with setting XLIB_SKIP_ARGB_VISUALS=1 like

$ XLIB_SKIP_ARGB_VISUALS=1 /opt/abaqus/Commands/abaqus cae -mesa -noStartupDialog;


Ubuntu 12.04 Can't Login-Tty Console said: -bash: /usr/bin/byobu/-launch: no such file or directory

Looks like byobu has added some broken code to your .profile file. Try booting into recovery mode to get a root shell. Once you're in a root shell, run the following commands to reset your .profile file back to default: (Replace all occurances of yourusername with your actual username)

cd /home/yourusername
mv .profile .profile.broken
cp /etc/skel/.profile ./
chown yourusername: .profile

Once done, test the change by running:

sudo -u yourusername -i

If that successfully gives you a bash prompt, the problem should be fixed. Run exit, then shutdown -r now to reboot the system.


Can Ubuntu 13.10 be installed on Toshiba C840 (wifi: Realtek RTL8723AE)?

Ubuntu 13.04 or later supports your 8723ae out of the box.  No need to download or compile anything.


Setting keyboard layout for a particular device using xkbcomp

You may wish to employ the technique described here.

Alternatively, create a separate .xkb file for each device (could use method described here for each one) and place shortcuts for each on the desktop. Persistence wouldn't be as important since the expectation is that the key layout (device) would be selected manually.


Your problem isn't actually a problem.

AMD64 is the Jargon term for a 64-bit Operating system (Universally), in the same way that i386 is the term for a 32-bit operating system.
Other terms for 64-bit Operating systems include x64, which most people refer it to as.


Pidgin will not connect to MSN any longer

If I were to guess, I'd say it stopped working slightly more than 6 weeks ago, when the MSN messenger network was closed down, so I don't know what Trillian is connecting to.

Microsoft wants you to move to skype, which is available for ubuntu, and you should be able to log in using the same microsoft account and find all your friends still there.


Preview TXT file with Space key is broken

I use Sushi for space preview, and it works on 14.04.
http://www.ubuntugeek.com/gnome-sushi-quick-previewer-for-nautilus.html


Ubuntu server 20.04 setup network problem

Just figured it out it is asking for a subnet not a subnet mask
instead of the subnet 255.255.255.224/27
i needed to enter the range xxx.xxx.219.128/27
:)


What you are seeing is a different bootloader. When you were using Wubi Ubuntu was installed within Windows and the Windows bootloader was used to choose between which operating system you wished to boot into

Now that you have installed Ubuntu onto a different drive a different bootloader, Grub2, has been installed. There is no need to worry that you have broken anything :)

You now will have a few more options when you start your computer, though they may at first glance seem a bit more complicated than the simple Ubuntu or Windows options.

The items and order of the menu may vary slightly on your system but should be basically the same.

The first option on the list in the picture above is the normal boot
into Ubuntu option
The second is to boot into Ubuntu in recovery mode
The previous Linux versions option allows you to boot into Ubuntu
using an older version of the kernel which can be useful in a rare
occasion in which an update causes problems
The memtest options allow you to check your RAM for errors
And finally you should have an option to boot into Windows (there may
also be a further option to boot into Windows in recovery mode)


How can I know that I have g++ installed in my ubuntu?

To find out what compilers are installed, just press Ctrl+Alt+T on your keyboard to open Terminal. When it opens, run the command(s) below:

dpkg --list | grep compiler


i3wm: Two separate Firefox profiles in rofi + assign each profile to a different workspace

First, locate firefox location on your machine with:

$ which firefox
/usr/bin/firefox

Then you could create two scripts looking like:

#!/usr/bin/env bash

/usr/bin/firefox -P profileA

#!/usr/bin/env bash

/usr/bin/firefox -P profileB

And make them executable: chmod +x firefox-A firefox-B

Then, you just have to put those files somewhere in your PATH (~/.local/bin, or /usr/bin), rofi/dmenu will automatically find them and show them as any other binaries.

If you need specific assignation of each profile into each workspace in i3, you may want to set specific class for each profile like so:

#!/usr/bin/env bash

/usr/bin/firefox -P profileA --no-remote --class firefoxA

#!/usr/bin/env bash

/usr/bin/firefox -P profileA --no-remote --class firefoxA

and then, into your i3 configuration you will have something like:

for_window [class="firefoxA"] move to workspace (your workspace number)


This worked for me after a botched sudo do-release-upgrade from 14.04 to 16.04. The updater's automatic attempt to restore to the previous version failed as well but left me at the terminal where I was able to complete the upgrade as follows.

1) Replace the contents of /etc/apt/sources.list with the following

###### Ubuntu Main Repos
deb http://us.archive.ubuntu.com/ubuntu/ xenial main universe
deb-src http://us.archive.ubuntu.com/ubuntu/ xenial main universe

###### Ubuntu Update Repos
deb http://us.archive.ubuntu.com/ubuntu/ xenial-security main universe
deb http://us.archive.ubuntu.com/ubuntu/ xenial-updates main universe
deb-src http://us.archive.ubuntu.com/ubuntu/ xenial-security main universe
deb-src http://us.archive.ubuntu.com/ubuntu/ xenial-updates main universe

Optional) If you are receiving error insserv: Service mountdevsubfs has to be enabled to start service hwclock1, run the command sudo rm /var/lib/dpkg/info/util-linux.postinst

2) sudo apt-get update -- updates package lists

3) sudo apt-get dist-upgrade -- this will take a while, installs all the updated packages

4) sudo apt-get autoremove -- removes unnecessary packages

5) sudo apt-get autoclean -- cleans old packages from repository

6) sudo update-grub -- updates grub boot config

Now if you run sudo do-release-upgrade, you should get the response No new release found. and you can reboot with sudo shutdown -r now. After reboot, you might want to repeat steps 2 to 5 to be sure all updates are installed.


Upgrade from 12.04 to 12.10 without losing files?

Run this command in the terminal

update-manager -c

This will check for the latest distribution available. This should hopefully show Ubuntu 12,04.

If that does not solve your problem, try running

update-manager -d


Tried to play a full screen game, now system will not boot

I would try moving the file /etc/X11/xorg.conf to /etc/X11/xorg.conf.backup. You can do that in recovery mode or from a LiveCD.

If that doesn't fix the problem, you may have no choice but to reinstall from the LiveCD. If you have to reinstall, I think there is an option to preserve the files and folders of your /home directory.

  As a tip- When systems screw up, it is a good idea to have /home on a different partition.


There is a command for that:

which firefox
/usr/bin/firefox

From the man page for which:

HICH(1)                    General Commands Manual                   WHICH(1)

NAME
   which - locate a command

SYNOPSIS
   which [-a] filename ...

DESCRIPTION
   which returns the pathnames of the files (or links) which would be exe‐
   cuted in the current environment, had its arguments been given as  com‐
   mands  in a strictly POSIX-conformant shell.  It does this by searching
   the PATH for executable files matching the names of the  arguments.  It
   does not follow symbolic links.


How to pipe html to gedit with format/spacing?

You don't create any spacing in your Python code, your output is exactly what your Python code creates.

To get the spacing you want you can for example replace

html5template=doctype+html_start+header_start+meta_data+header_end+body+html_end

with

indent='    '
html5template='\n'.join((doctype,
                        html_start,
                        indent + header_start,
                        indent + indent + meta_data,
                        indent + header_end,
                        indent + body,
                        html_end
                        ))


How can I install the acme editor/shell/user interface on Ubuntu?

The easiest way to install acme on Ubuntu is to install the acme-sac stand alone version.

1) Go to the acme-sac page on Google code and download the latest deb-package for Ubuntu.

2) Double click on the filename to start GDebi and install.


How can I have transmission start automatically when I open my computer?

Open Dash (hit Win/Super key by default). Enter Startup Applications then hit Enter
Click Add, enter name Transmission, enter command transmission-gtk -m, click Add.

You've done it.


New Kubuntu 20.04 user accounts without group memberships

However each additional user (that is created later using the KDE system settings) isn't member of the same groups

This is normal and the default for all Ubuntu flavors. By default regular users do not have permissions to make changes to hardware/configuration files and are given write access only to their own home directories. This is by design.

Is my assumption correct that all users should share the same group memberships after creation?

Not according to the principle of least privilege.

Is there a clean fix? Or at least a workaround? (if possible without manually fixing each user account individually)

If you want a user to have permission to make changes to printer configuration you can add them to the lpadmin group with sudo usermod -aG lpadmin USERNAME.
To add multiple users to a group in a single command (from an answer to this question):
for user in USERNAME1 USERNAME2 USERNAME3; do sudo usermod -aG lpadmin "$user"; done

Or to add multiple users to multiple groups:
for user in USERNAME1 USERNAME2 USERNAME3; do sudo usermod -aG GROUP1,GROUP2,GROUP3,GROUP4 "$user"; done

If you want additional group memberships to be the default for new users, edit /etc/adduser.conf and uncomment the line #ADD_EXTRA_GROUPS=1 and also uncomment and change the line starting with #EXTRA_GROUPS= to EXTRA_GROUPS="lpadmin". You can list multiple groups separated by spaces between the quotes.


Here is my settings on the same computer (model slightly different, but the same processor, also envy x360 13).

Open terminal, then type the following:

sudo apt-get install alsa-tools-gui

After installation finished, do the following:

sudo hdajackretask

You will enter the graphical interface of Jack Retasking for HDA Intel sound cards. It works the same even if we are using AMD processors.

Check the box: show unconnected

Find the 0x14 pin, check the override button, and set it with the option "Internal speaker"

Also find the 0x17 pin, check the override button, and set it with the option "Internal speaker (Back)"

Then click the button Install boot override

Reboot to see changes.

It should work, however, the volume would seem bugged, but it is in the settings menu.

In the AnalogSurround 4.0 Output, move the Fade slider to the right until you think the volume goes with how you feel.

There is a reset bug (unconfirmed), but is surely out of the "enable front audio thing"


How can I start videos/music in my preferred player and not the default one using Dash?

Right click on any video file and select "Properties".

Click on "Open With" tab of "Properties dialog box"

Select "VLC media player" and click on "Set as default"

Do the same for audio files and set "Clementine" as your default player.


i have mannualy installed java 8u162 but when i use apt-get tries to install 8u151

What about just removing the package oracle-java8-installer? since you have installed it manually, you don't need it. sudo apt purge oracle-java8-installer should do the trick.


Default username/password in preinstalled Ubuntu systems

There is no default password in OEM installations.

When you start the system for the first time it suggests to set a password.

If you do not get this prompt, it means that someone used the system and has set a password.

You can always reset the administrator password using this answer.


start my GUI application on ubuntu start up with sudo permission?

Run the command;

visudo

and add end of line;

username ALL=NOPASSWD: <application>

Try to run after the application of sudo or gksudo.


Ubuntu 16.04 and VMWare 14: Unable to change virtual machine power state: Disconnected from virtual machine

I have the same problem with a current Win 10 virtual machine that works fine in version 12 of the player.

Running the following at the command line fixed the problem and allowed the VM to start normally.

sudo /usr/bin/vmware-modconfig --console --install-all


Ubuntu 16.04 LTS - Freeze after out of fullscreen mode (YouTube, Netflix, and others)

For the bug, I have it too, and to close the chrome tab without restarting, here are the steps.

Press Ctrl+Alt+F1
Type this code, ps -aux | grep -inE <your browser name, ie chrome>
Find the pid (process id number) it should be right after your username
Write kill <process id number> for instance if your pid is 24556 then you would run kill 24556
Press Ctrl+Alt+F7

The browser should close without you restarting.


Installing mongodb server on Ubuntu 20.10 and got unmet dependencies error

Mongodb don't work when you install the package in the system.
The best way at this time is to use the docker of mongo.
https://hub.docker.com/_/mongo/


Why does KDE "forget" my multi-monitor settings?

Try saving it as default. You can find that option in the system settings:


Why am I not being able to tar /opt and move it to my USB location in Linux

Use tar -xzvf file.tar.gz "/media/usb-sdb1-1-7-1/" to extract the archive.


manufacturers serial number of the hard drive

Try this command to get the Serial Number only,

sudo hdparm -i /dev/sda | grep -oE 'SerialNo=.*'

Where /dev/sda is my Harddisk.

Example:

$ sudo hdparm -i /dev/sda | grep -oE 'SerialNo=.*'
SerialNo=S2SMJ9CD201346

OR

Try the below command to view the serial number of your Hard-disk (In my case it's /dev/sda).

$ sudo smartctl --all /dev/sda | grep -E 'Serial\ Number'
Serial Number:    S2SMJ9CD201346

Before running the above command, you have to install smartmontools package.

sudo apt-get install smartmontools


How to install newer supertux2 from sources

Installation instructions from github clearly explains what packages or libraries are required before installation in REQUIREMENTS section.

I've installed it the next way on both Ubuntu 19.10 host and 18.04 VirtualBox VM:

sudo apt install libboost-all-dev libsdl2-dev libsdl2-image-dev libglew-dev \
    libalut-dev libopenal-dev libvorbis-dev libphysfs-dev libfribidi-dev \
    libcurl4-openssl-dev libfreetype6-dev libraqm-dev doxygen
git clone https://github.com/SuperTux/supertux.git
cd supertux
git submodule update --init --recursive
rm -fr build (This step is optional. I tried ./configure, so it created a build directory)
mkdir build && cd build
cmake ..
make
sudo make install


Function below is for verbosely checking mv syntax. Note , that it only works for 2 arguments, SOURCE and DESTINATION, and doesn't check for -t flag.

The function is to be placed into ~/.bashrc . To use it immediately , open new terminal or run source ~/.bashrc

mv_check()
{
    # Function for checking syntax of mv command
    # sort of verbose dry run
    # NOTE !!! this doesn't support the -t flag
    # maybe it will in future (?)

    # check number of arguments
    if [ $# -ne 2   ]; then
        echo "<<< ERROR: must have 2 arguments , but $# given "
        return 1
    fi

    # check if source item exist
    if ! readlink -e "$1" > /dev/null
    then
        echo "<<< ERROR: " "$item" " doesn't exist"
        return 1
    fi

    # check where file goes

    if [ -d "$2"  ]
    then
        echo "Moving " "$1" " into " "$2" " directory"
    else
        echo "Renaming "  "$1" " to " "$2"
    fi

}

Here's some test runs:

$> mv_check  TEST_FILE1  bin/python
Moving  TEST_FILE1  into  bin/python  directory
$> mv_check  TEST_FILE1  TEST_FILE2
Renaming  TEST_FILE1  to  TEST_FILE2
$> mv_check  TEST_FILE1  TEST_FILE 2
<<< ERROR: must have 2 arguments , but 3 given
$> mv_check  TEST_FILE1  TEST_FILE\ 2
Renaming  TEST_FILE1  to  TEST_FILE 2
$> mv_check  TEST_FILE1  "TEST_FILE 2"
Renaming  TEST_FILE1  to  TEST_FILE 2
$> mv_check  TEST_FILE1
<<< ERROR: must have 2 arguments , but 1 given


You can create pools, but there are a few things to consider.

The "name" really has to be without a set of special characters, like '/'. If you want to create a /tmp/test pool you might name it "test" (on step 1 of 2) and give it the path "/tmp/test" (on step 2 of 2) and it will work.
apparmor will stop you if you go too uncommon
There is a limited set of paths that are allowed by default, if you go
out of these at some point virt-aa-helper will no more able to access the files. But that would be needed so that it can allow the access for the per-guest custom profile. See the existing rules in /etc/apparmor.d/usr.lib.libvirt.virt-aa-helper and add custom ones via /etc/apparmor.d/local/usr.lib.libvirt.virt-aa-helper
See /etc/apparmor.d/local/README for more on this.
Some pool types are yet unable to be handled by apparmor. The default pool type of virt-manager will be "dir" and that will be fine. But there are more advanced types like "lvm groups", for those types apparmor rules can not be created for the guest on the fly (see bug on this), in these cases you'll need to allow the extra paths you need via changing /etc/apparmor.d/abstractions/libvirt-qemu.


Once you download the file, use Imgburn to burn the ISO image to a DVD or Unetbootin to transfer it to a USB flash drive.


As mentioned in the comment by Khimananda Oli, you can add handyman user to the docker group. However, please mark, that this introduces a vulnerability on your host. I recommend running the script with sudo.


i have a dell precision m3800 which has a similar setup , it works fine with the drivers from
https://launchpad.net/~graphics-drivers/+archive/ubuntu/ppa

i have found that nvidia-358 and nvidia-367 seem to work best with my quadro K1000M , i don't get any tearing on its built it 4k screen or my external one.

Heres my xorg.conf for running with full nvidia acceleration as generated by nvidia-settings

Section "ServerLayout"
    Identifier "layout"
    Screen 0 "nvidia"
    Inactive "intel"
EndSection

Section "Device"
    Identifier "intel"
    Driver "modesetting"
    BusID "PCI:0@0:2:0"
    Option "AccelMethod" "None"
EndSection

Section "Screen"
    Identifier "intel"
    Device "intel"
EndSection

Section "Device"
    Identifier "nvidia"
    Driver "nvidia"
    BusID "PCI:2@0:0:0"
    Option "ConstrainCursor" "off"
EndSection

Section "Screen"
    Identifier "nvidia"
    Device "nvidia"
    Option "AllowEmptyInitialConfiguration" "on"
    Option "IgnoreDisplayDevices" "CRT"
EndSection

my display hardware looks like this :

amias@rome:~$ sudo lshw -class display
[sudo] password for amias:
  *-display
       description: 3D controller
       product: GK107GLM [Quadro K1100M]
       vendor: NVIDIA Corporation
       physical id: 0
       bus info: pci@0000:02:00.0
       version: a1
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi pciexpress bus_master cap_list rom
       configuration: driver=nvidia latency=0
       resources: irq:67 memory:eb000000-ebffffff memory:c0000000-cfffffff memory:d0000000-d1ffffff ioport:e000(size=128) memory:ec000000-ec07ffff
  *-display
       description: VGA compatible controller
       product: 4th Gen Core Processor Integrated Graphics Controller
       vendor: Intel Corporation
       physical id: 2
       bus info: pci@0000:00:02.0
       version: 06
       width: 64 bits
       clock: 33MHz
       capabilities: msi pm vga_controller bus_master cap_list rom
       configuration: driver=i915 latency=0
       resources: irq:56 memory:ec400000-ec7fffff memory:80000000-8fffffff ioport:f000(size=64)


I like doing this in CLI so what I would do is:

sudo apt-get install samba samba-common samba-common-bin cifs-utils

sudo nano /etc/fstab

Add this line at the end:

//IP_address_of_file_server/path/to/your/files /path/to/mount/point    cifs    rw,username=username,password=password,uid=1000,gid=1000    0   0

Set uid and gid numbers to match the ones of your Ubuntu user (you) on your machine. Command id can help with determining what they are. Also change the username and password to match your credentials for Windows share.


bluetooth not working after installing Ubuntu 12.04

I haven't been able to use bluetooth on ubuntu 12.10 I have installed blueman as well and is a no go. I would like to use my jabra earphone bluetooth on skype. But I cannot pair it cause is just not working. When I open blueman it says "resource not ready"
I ran rfkill list all and i get this:
0: hci0: Bluetooth
    Soft blocked: no
    Hard blocked: no
1: phy0: Wireless LAN
    Soft blocked: yes
    Hard blocked: no

which not sure what it means... any advice will be appreciated.


LibreOffice always shows recovery process at startup due to failing recovery items

Great! I tried to recreate this issue and now I can't remove the failed recovery screen.

The way to fix it is to hit cancel on the recovery screen, instead of trying (and failing) the recovery (source). Works for me.


Setting daily backups on laptop with cron/anacron on 16.10

Place you script to /etc/cron.daily and you will get exactly what you wanted.


It's not very clear from you question, but it looks like your are searching for urllib. Note that urllib expects 8 bit strings, so you will need to do some fancy decode/encode. Welcome to python2 somewhat weird unicode support, pythn3 is way better.

# -*- coding: utf-8 -*-
import urllib

url=u'/home/javier/Área'

url2 = url.encode('utf-8') # urllib expects 8-bit string
url3 = urllib.quote_plus(url2)
print url3  # >> %2Fhome%2Fjavier%2F%C3%81rea
url4 = urllib.unquote(url3) # It will return a 8-bit string
print url4  # >> /home/javier/Área
print url4.decode('utf-8')

You can use urllib.qoute instead of *urllib.quote_plus*, it will not quote spaces, + (pluses) and / (slashes). Both functions accept a string as a second parameter, they will keep any character in that string as is (I mean it will not quote it) in the output string. Note that the default value for safe, the name of the second parameter, is '/' for quote and '' for quote_plus. If you don't include a slash in your second parameter quote will change it.

urllib.quote_plus('a/a','/')  # 'a/a'


I lost all my data, but has a back up iso and a livecd. What now?

Thank everyone, after a while of fiddling, I make a liveUSB out of the iso. Now the USB can not be used to install, it just has a live session, but all the data, configuration is all there, just like a real OS.
...So I was thinking rsync
https://wiki.archlinux.org/index.php/full_system_backup_with_rsync
It work.
I move the virtual OS to my empty hard drive. But now, every time I boot up, it went straight into the GNU/GRUB instead, and I have to do this-

insmod linux
root=(hd0,1)
linux /vmlinuz root=/dev/sda1
initrd /initrd.img
boot

Everytime. Oh well. At least I got my system back.


Oh, looks like someone was trying to break into my machine :)

Turned off the port 22 forwarding rule on my route for now and they've gone away.


Those counters are kept by the kernel, so your answer depends on how your network card driver is built. Two possible choices:

Kernel module
Inside the kernel

If it is second, you can not reset counters without restarting the operating system. If it is first, you can do it by unloading the module from the kernel and then loading it back again. If your NIC card use e1000 module, use following commands:

$ ifconfig eth0 down
$ modprobe -r e1000
$ modprobe e1000
$ ifconfig eth0 up

Use ethtool to find out your NIC module:

$ ethtool -i eth0

In front of driver you see your module name:

driver: e1000
version: 7.3.21-k8-NAPI
firmware-version:
...

Use apt-get to install ethtool as follow:

$ apt-get install ethtool


Is there a fast or minimal installation option for Wubi?

You can use server installation instead of desktop, then add packages after. That will significantly cut down initial download.

You add GUI (unity, gnome, lightdm, gdm, etc) later. They will function exactly the same as the desktop installation.

The major difference between Server and Desktop installation is all GUI and desktop related packages.

This post provide a simple tweak to use wubi and install as a server, quote as below

  That said you can edit c:\wubi\install\preseed.cfg and set the package
  to "ubuntu-standard".

  That will install a minimal set of packages, good enough to get a
  useful shell and enable you to install other packages, from there you
  can install any other ubuntu-server specifc package you want


If that's the case make sure you take a look at system settings-> brightness & lock menu, unchecking the dim brightness and setting the brightness through that menu


How can I modify my partitions so I can install Ubuntu and not damage my Windows installation?

Windows cant see your Ubuntu partition as windows cant read the file format ext4, which is normally used for Ubuntu 12.04..

Two ways to tackle the problem:

Firstly just reinstall Ubuntu 12.04. During the installation process both partitions will be shown and you can decide to reinstall Ubuntu on the ext4 partition.

Secondly you can recover the grub boot manager. This will allow you to access both operating systems without reinstalling them.

How to recover grub after window install

Have fun


Configure Linux bash to understand "cd.."


Nano commands are listed at the bottom. the ^ character means ctrl. Thus:

ctrl+o to save
ctrl+x to exit


14.04: Enabling the 2nd NIC on the server

Only one gateway should be assigned to network interface which is looking towards network with Internet access.

$ ip route
default via 192.168.1.1 dev wlx8c882b131d84 proto dhcp metric 600
10.190.25.0/24 dev pan1 proto kernel scope link src 10.190.25.1
169.254.0.0/16 dev wlx8c882b131d84 scope link metric 1000
172.17.0.0/16 dev docker0 proto kernel scope link src 172.17.0.1
192.168.1.0/27 dev wlx8c882b131d84 proto kernel scope link src 192.168.1.4 metric 600
192.168.122.0/24 dev virbr0 proto kernel scope link src 192.168.122.1 linkdown

The second network should be available without additional route adding. It will be recorded automatically in the routing table as it is in my ip route output for every properly configured and active network interface.


What is the difference between cat /etc/services and service --status-all?

The contents of /etc/services do not actually correspond to the services on your system. That file is actually a mapping of ports to the services that usually use them (say, port 22 by SSH). It's used by tools like netstat to give an understandable name in the output (instead of just dumping the port number). So it might, and usually does, have a large number of services listed that are not actually installed on your system.

The output of service --status-all is actually the status of installed services on your system.

See also:

How to read "service --status-all" results
man 5 services
man 8 service


restore, refresh, or reset your PC like Windows 8

Usually running the following command is sufficient:

sudo dpkg-reconfigure -a

Explanation:

Almost all packages that are installed with apt-get, will have your user settings stored in your /home/user folder. And that previous command will not touch your home folder but will reconfigure all the installed packages you have in your system.


After installing gir1.2-gtksource-3.0 and other dependent packages, I finally solved this problem.


Only the wallpaper and cursor show on Ubuntu 12.04

To reset the default settings, you can enter

unity --reset

The problem you may have is to get to a terminal : if you cannot access the dash, you can try Ctrl+Alt+t. And if this does work, type Ctrl+Alt+F1, and log in.


Run bleachbit from terminal as SUDO and clear system cache.  I had the same problem and that resolved it.


Make custom action for thunar to reduce images to 1024x768

The command you found and cited above uses the convert app which is part of the imagemagick package.

To add that to Thunar, launch Thunar, do Edit , then click Configure custom actions… to go to the Custom Actions Manager, where you can create, edit or delete your custom actions. Enter a new custom action of convert -resize 1024X768 %n.jpg %n.jpeg then click OK to save the export to the same filename ending in .JPEG .


What is the purpose of making the screen go "dark" when saving files or printing?

Unfortunately the ability to move a dialog window around is with other features being removed with the present GNOME desktop. They still can be somewhat resized but having them centered appears to be hard coded.

To get the familiar behaviour back we can still install the Unity desktop while it is supported:

How can I make Ubuntu 18.04 / 18.10 desktop use Unity (be like Ubuntu 14.04)?

By this not only the old freely movable save dialogs will be back but also the windows button will be back to the left side:


Install a program for another non-sudo user as a sudo user

Sudo can let you act as another user even if you don't know their password. It can be done as detailed in this answer:

sudo as another user with their environment

Here is an example from the answer (granted on my single user system):

$ whoami
rick

$ sudo -i -u root whoami
root

So in your case use:

sudo -i -u usertofake install_something


How do I get a D-Link DWA-140 usb wlan working?

I have also got an DWA 140 and was affected by the same problem on Natty Beta 2. The reason for the problem is that Ubuntu does not only load the rt2870sta kernel module which is needed by the DWA 140, it also loads some other modules for other ralink chipsets.

First look which ralink-ralated modules you have loaded:

lsmod | grep ^rt

Example output:

rt2870sta             450556  0
rt2800usb              18235  0
rt2800lib              45181  1 rt2800usb
rt2x00usb              20330  1 rt2800usb
rt2x00lib              49235  3 rt2800usb,rt2800lib,rt2x00usb

Now you have have to unload everything that starts with "rt":

sudo modprobe -rf rt2870sta rt2800usb rt2800lib rt2x00usb rt2x00lib

Then re-load the rt2870sta module

sudo modprobe rt2870sta

You should now be able to connect to your network.
If you don't want to load/unload these modules on every reboot, you must blacklist the needless modules in your /etc/modprobe.d/blacklist.conf file, for example add these lines:

blacklist rt2800usb
blacklist rt2800lib
blacklist rt2x00usb
blacklist rt2x00lib


Ubuntu installer stuck at "configuring boot loader..."

Exit and try to reinstall the operating system. If the operating system is damaged as it probably is restarting the installation process will do it no harm. If for some reason you have an option to update the ubuntu system on harddisk when you start up again chose ERASE AND REINSTALL.

If this fails it could be a problem with the copy of Ubuntu try downloading it again.

If the problem is persistent try with a new USB.

Hope you succeed!


The problem with your code is that > mypipe will open the fifo, write to it, then close it. Once it's closed in either end, you have to reopen it in both ends. So instead of reopening the fifo for every echo, keep it open for the entire loop.

for elem in {1..99}; do echo "$elem"; done > mypipe

Btw, in place of that for loop, you could just use a single printf

printf '%s\n' {1..99} > mypipe

If you have a more complex case. You can assign an fd to it instead.

exec 3> mypipe # opens mypipe for writing on fd 3

echo "stuff" >&3
echo "more stuff" >&3
...

exec 3>&-      # closes fd 3

See http://mywiki.wooledge.org/BashFAQ/085 for more.


How do I get an Epson SX235W printer working?

Try to go into your printer settings ( System Setting > Printer ), unplug your printer and delete the printer. After, plug your printer back and go into your printer settings again to see if there's your printer. If not, add it with the button and follow the instruction. If you can see your printer in the printer settings, try to print the ubuntu test page ( System setting > Printer > right click printer > properties > print test page)
If it doesn't work, try to look on epson's website.


Scale 1080p screen to 720p - everything is too small

Yes you can, go in : Parameters > Display and set  “Scale for menu and title bars” to the value that is best suited for you.

It will scale all your desktop while keeping your original 1080p resolution.


my desktop menu is hidden even after reboot

I suppose you're using gnome-classic(?)

Hit Alt-F2, type 'gnome-panel' (maybe you have to tick 'run in terminal', I don't know)

If the panel appears, click on it with Alt/right-click or Win/Alt/right-click and you can start adding indicators


Proper touchpad thumb & palm detection with libinput

For Ubuntu 15.10+ you can install libinput (wily, xenial, yakkety) through apt:

sudo apt install xserver-xorg-input-libinput

I did still have to edit the config file to enable tapping, I assume as Unity absorbs libinput it'll expose this via control panel settings (I used vi here, you can use gedit or whatever you like):

Edit the following file (tested on 16.04 2016-4-14 and 16.10 2016-10-14):

sudo vi /usr/share/X11/xorg.conf.d/90-libinput.conf

Adjust the 'touchpad' section to add Option "tapping" "True" and Option "DisableWhileTyping" "True" if you prefer this behavior:

Section "InputClass"
    Identifier "libinput touchpad catchall"
    MatchIsTouchpad "on"
    MatchDevicePath "/dev/input/event*"
    Driver "libinput"
    Option "Tapping" "True"
    Option "DisableWhileTyping" "True"
EndSection

Log out, log in .. enjoy! :)


Reminds me of tripwire which creates cryptographic checksums of the files you specify.  Install a copy of the system you are checking from known good source (DVD for example), install the same updates of the target system), have tripwire create the checksum file.  Copy tripwire's checksum file to the target system, have tripwire compare checksum file with target system's files.

Out of sync updates / upgrades / installs / system specific configuration files will of course be flagged / marked as changed.

Update 2018-05-06:

I should also add that the target system must be checked offline.  If the target has been compromised, the hardware, boot firmware, os kernel, kernel drivers, system libraries, binaries may have already been compromised and interfere or return false positives.  Even running across a network into the target system might not be safe since the (compromised) target system would be processing the network packets, file system, block device, etc. localy.

The smallest comparable scenario that comes to mind are smart cards (EMV used in credit cards, PIV used by federal government, etc.).  Disregarding wireless interfaces, and all the hw/electrical/rf protections, the contact interface is essentially a serial port, three wire, or two wire.  The API is standardized and white boxed so everyone agrees it is impervious.  Did they protect the data in transit, in runtime memory, at rest in flash memory?

But the implementation is closed source.  A backdoor may exist in the hardware to copy the entire runtime and flash memory out.  Others may manipulate the data in transit between the hardware and the internal memories, Smart Card OS, or I/O from/to the card.  Even if hw/fw/sw/compilers are open source, you would have to audit everything at every step and still you could miss something you/everyone else didn't think of.  The paranoia can send you into a white rubber room.

Sorry for running off on a paranoia tangent.  Seriously, take the target drives out to test.  You only have to worry about the target drive hw/fw then.  Better yet, just take out the HDD platters / SSD flash chips to test (assuming your test system is golden). ;)


After I put my computer on sleep, when I turn it back on, my screen freeze like this. Why?

You mention that you still have computer and mouse, but without a screen I'm not sure how you know this?

One thing to try - press CTRL-ALT-F1 to switch to another terminal.  If you see the terminal output, which is just a few lines of text at the top of a black screen, then this is just an issue with waking your screen up properly after resume, usually fixed by blacklisting certain modules from sleeping when you suspend.


AbiWord document's borders keeps flashing

After my testing and discussion with the OP in chat, it reveals that the problem is actually a theme related bug. There are different reports of this bug and a workaround is changing the default theme. Here is one of the bug report.

But it needed test to check which themes work. Some theme seem to not working and some does work. After further test, I curated this list of themes that fix the issue.

Arc Theme
Arc Flatabulous Theme
Ceti 2 theme
Vertext theme
Menda and Menda Dark theme
Paper theme
Adwaita theme

You can find these themes by searching. Here is a link of Noobslab PPA, who has some good collection of themes

Noobslab Themes Collection

To install themes from the PPA. first add it using this two commands

sudo add-apt-repository ppa:noobslab/themes
sudo apt-get update

Then install it by

sudo apt-get install <theme-name-here>


Installing Server components from Ubuntu Server 12.04.8 CD on Ubuntu Desktop 12.04

Yes you can mount the cdrom to your PC. Open the terminal CTRL + ALT + T and write

sudo mount /dev/cdrom /mnt
cd /mnt
ls

You should see your files in the terminal. You can also open your file manager and orient to the mnt folder (it's located in the root of your hard drive /mnt, / represents root).


How to read .sh_history from thousand of users?

This is Hard. You will have to interpret each user's ~/.bashrc, and all the "Startup Files" for each and every shell to see what "the history file" really is.

For example, mine sets my history file to ~/.history/history.$$, and I currently have 1372 .history files.

My ~/.bashrc fragment:

[[ -d ~/.history ]] || mkdir --mode=0700 ~/.history
[[ -d ~/.history ]] && chmod 0700 ~/.history
HISTFILE=~/.history/history.$$
# close any old history file by zeroing HISTFILESIZE
HISTFILESIZE=0
# then set HISTFILESIZE to a large value
HISTFILESIZE=4096
HISTSIZE=4096

Other users may do other things, may call their .history files something else, use other shells, ...


This command solve the issue:

env LD_PRELOAD='/usr/$LIB/libstdc++.so.6 /usr/$LIB/libgcc_s.so.1 /usr/$LIB/libxcb.so.1' /usr/bin/steam %U


How do I change the icon of a Epiphany web app?

For Gnome-Shell (Ubuntu 12.10), the image is located at ~/.config/epiphany/app-epiphany* (where the * in app-epiphany* is the web app name followed by and some additional numbers/letters)


How will union mounts be possible in 12.04?

The replacement for aufs in 12.04 is overlayfs.

In case you're interested, these sorts of things are decided at the "kernel delta review" and "kernel config review" sessions at each UDS. In this case, notes are at:

https://wiki.ubuntu.com/KernelTeam/Specs/PreciseKernelDeltaReview


I have a file 'xxx.po' in /usr/share/locale/tr_CY/LC_MESSAGES

The files in /usr/share/locale/<LANG>/LC_MESSAGES need to be in a binary format ('.mo' extension).

You achieve that by running msgfmt on the '.po' file:

msgfmt -c -v -o OUTPUT.mo LANG.po

-c checks the po file format,
-v is for detailed output,
-o OUTPUT.mo specifies the output file, where OUTPUT should be the name you used in 'bindtextdomain' and 'textdomain',
LANG.po the translation file.


HPLIP or CUPS cannot Find Network Printers?

I was having the same problem. Then I realized I was connected to a VPN which prevented CUPS from finding my network printer. When I disconnected from the VPN the printer came up in the CUPS prompt.


Apply iconv to all of the files in a directory

cd path-to-source-directory
find . -name "*.srt" -exec iconv -f CP1256 -t UTF-8 {} -o path-to-destination-directory/{} +

Example:

If source-directory is called SOURCE and destination-directory is called DESTINATION and both directories are located on the desktop, then path-to-source-directory is ~/Desktop/SOURCE and path-to-destination-directory is ~/Desktop/DESTINATION


Barcode scanner Honeywell ms5145 only outputting to terminal

Sounds like you've got the device configured in Serial Emulation Mode but you want it in Keyboard Emulation Mode.  The manual says you need to refer to the USB section of the MetroSelect Single-Line Configuration Guide.

Just to clarify, I believe this is a device configuration issue not a Ubuntu issue.


You can disable the nmbd service, though you could also just uninstall samba.
It would also help to know how long 'very slowly' is as this is very relative.
Apart from that - as far as I know most of these services start independently, so even though nmbd takes a long time, it doesn't stop other services.

edit: Other items that you could try to disable/stop: graphical boot screen (plymouth) or ufw (firewall likely not enabled by default anyway)

I think the bigger problem is probably that the laptop is relatively slow in general, with only 2 GB RAM and likely (I suspect) only a slow hdd and not a faster one or an ssd. So a more permanent solution would be to try to get a cheap ssd, this will increase your startup time much more than trying to kill a process here or there.


Why does 'sudo java' change the user home directory to /root?

Because you are dealing with a Java program, you specify the directory it should see as the home directory by setting the system property user.home:

sudo java -Duser.home=$HOME -jar this.jar

It is confusing that this should be necessary. Since sudo by default retains the value of HOME, one would expect Java to set user.home to $HOME. However, the Java API documentation for java.lang.System  states that user.home will be set to User's home directory. It does not state that it will be set to the value of the HOME environment variable -- which indeed may or may not be the user's home directory.

Note, as has been pointed out in the comments, that it is not recommended to run software as root. If you do, then give it a dedicated working directory, i.e. set its user.home to some location reserved for it.


How do I change the color of my bash commands (only) in a terminal?

I'm not sure it can be done more cleanly than you did. After unsuccessfully playing with the bashrc file, I found that other users achieved this using a DEBUG trap.
It's hacky, but it works on my setup.


Genymotion unable to start VirtualBox (ubuntu 16.10)

Got and solved the same problem on Ubuntu 17.10:

Install the latest version of VirtualBox for your Ubuntu release
Fix the "missing headers" error:

  $ sudo apt install virtualbox-5.2
  [...]
  This system is currently not set up to build kernel modules.
  Please install the Linux kernel "header" files matching the current kernel
  for adding new hardware support to the system.
  The distribution packages containing the headers are probably:

    linux-headers-lowlatency linux-headers-4.13.0-16-lowlatency

  There were problems setting up VirtualBox.  To re-start the set-up process, run
  /sbin/vboxconfig
  as root.

by installing the missing headers:

sudo apt install linux-headers-lowlatency linux-headers-4.13.0-16-lowlatency

Rerun the setup process by running:

sudo /sbin/vboxconfig


Try sudo apt-get clean followed by sudo apt-get upgrade.


How to add CDNUM in abcde multi-disk alboms in OUTPUTFORMAT

By looking into abcde script I noticed -W option sets DISCNUMBER variable and -w option does not. Looks like a bug to me. Below is my patch which allowes you to specify CD number by DISCNUMBER variable:
OUTPUTFORMAT='${ARTISTFILE}-${ALBUMFILE}-${DISCNUMBER}-${TRACKNUM}'
abcde_disknum.patch
--- /usr/bin/abcde.v2.7.1   2015-11-02 18:11:01.000000000 -0500
+++ /usr/bin/abcde  2021-02-04 22:05:14.449596473 -0500
@@ -3815,7 +3815,10 @@
        V) EXTRAVERBOSE=$(($EXTRAVERBOSE + 1)) ;;
        x) EJECTCD="y" ;;
        X) CUE2DISCID="$OPTARG" ;;
-       w) COMMENT="$OPTARG" ;;
+       w)
+                   DISCNUMBER="${OPTARG}"
+                   COMMENT="CD${OPTARG}"
+                   ;;
        W) if echo $OPTARG | grep "[[:digit:]]" > /dev/null 2>&1 ; then
             STARTTRACKNUMBER="${OPTARG}$(printf %02d ${STARTTRACKNUMBER:-01})"
             STARTTRACKNUMBERTAG="y"

to apply patch $ sudo patch /usr/bin/abcde abcde_disknum.patch


Ubuntu does not recognize a specific VGA monitor

As this came up quite often, I did a deeper research, and in fact, the mentioned thread contained the answer: I just needed to play a bit around to find a resolution that my monitor supported...

xrandr --addmode HDMI3 800x600
xrandr --output HDMI3 --mode 800x600

So for instance, the 1400x1050 resolution was not supported by the monitor.

The next task was to create a functional thirs desktop, not to mirror the first. The command I used was this:

~$ xrandr --output HDMI3 --mode 1680x1050 --right-of HDMI1 --output HDMI1 --auto --output eDP1 --auto --primary

I wanted to use the VGA monitor as a third one next to my built in (eDP1) and HDMI(HDMI1). It seems that the HDMI3 is in fact the VGA output, which is a converted HDMI after all. This solution works, I can use the 3 screens, but it is not recognized by the display setting tool, and does not have a background etc. but I can move windows to it, which satisfies my needs for now.


Login into XFCE session without display manager

apt-get install nodm

Then edit /etc/defaults/nodm and change this two lines:

NODM_ENABLED=true
NODM_USER=root


When you installed Ubuntu you had to put in a username and password. This would be the password you'll need to use to install your software.

Does this ring any bells?

If you still can't remember, you will need to reset your password. This will be of use in that case: How do I reset a lost administrative password?


Automatically run homebrew tkinter python software upon boot

Startup Applications does not recognize ~ and expand it to /home/kevin so you need to format the command as:

/home/kevin/.todo/todorun.sh


How to reset default window positions and sizes?

I found this answer while doing some research into your problem and I thought that it might be of use as while it wont reset the default permissions it will allow you to choose the size of the window when the program is opened.


Just for the sake of completeness, the problem had nothing to do with KWallet. Instead it was caused by this bug:

https://bugs.kde.org/show_bug.cgi?id=355415

Following the instructions of comment#19 I managed to patch the package. Should not be an issue on Kubuntu 16.04 or newer.


How can I customize the way Kubuntu acts with my keyboard inputs?

Alright, my problem got fixed with this : https://bugs.mojang.com/browse/MC-122421 !
I downloaded the pre-compiled file, made for archlinux but it worked tho.
It was a Minecraft bug !
But the caps lock pb is still here.


It sounds like your system is using mawk to provide awk - you can check with

update-alternatives --display awk

If that is the case, you should be able to install GNU awk (gawk) from the repository either using the Software Center or other GUI package manager, or via the command line using

sudo apt-get update
sudo apt-get install gawk

This should automatically set your default awk to gawk using the update-alternatives mechanism - if you need to set it back to mawk you can do so by running

sudo update-alternatives --config awk

and following the on-screen instructions. The asorti function is a GNU awk extension.


You should have not added anything to /etc/sudoers.d/!
This is simply unnecessary and dangerous (as you see). All admin users (including the default user account that gets created during the installation) are already allowed to use sudo to run commands with root privileges.

Remove the file /etc/sudoers.d/ken again and revert all changes you might have done to /etc/sudoers.d.
You can use pkexec as temporary replacement for sudo to fix the issues while that does not work:

pkexec rm /etc/sudoers.d/ken

Admin users on Ubuntu are defined by their group membership in the sudo (formerly admin) group.

When you add new admin users through the Unity Control Center GUI, it will take care of those group memberships automatically.

When you add a new user from the terminal using sudo adduser USERNAME, it will not be a member of any additional group. In this case, you have to add those two groups manually to make the account an administrator that is allowed to use sudo:

sudo adduser USERNAME sudo

And in the rare case where you really would have to edit /etc/sudoers or a file in /etc/sudoers.d/, never do that manually but **always use sudo visudo to edit it! This command will verify the files and check for errors before applying the changes and prevent leaving you with a ruined sudo command.


Is Ubuntu LVM using some sort of RAID underneath?

No, not so far as I know (although it is possible to configure LVM on top of RAID i.e. with one or more RAID arrays as physical volumes - I assume you didn't do that).

  If not, what would be the reason why the data recovery service would need all of my drives to make the recovery?

Possibly just that the volume group (VG) could not be activated without all of its constituent physical volumes (PVs) - regardless of whether any of their physical extents were actually allocated to a logical volume (LV).

  Can I read the contents of a physical volume that was part of a logical volume (like my failed disk above) independently on a separate machine (like an external HD)?

You would still need to activate the VG I think. I have very limited experience with LVM, however the vgchange manpage mentions a --partial flag that may allow you to activate a VG with one or more of its constituent PVs missing: the option seems to be more fully documented in the lvm (8) manpage man 8 lvm

   -P, --partial
          When set, the tools will do their best to provide access to Vol‐
          ume Groups that are only partially available (one or more Physi‐
          cal  Volumes  belonging to the Volume Group are missing from the
          system).  Where part of a logical volume is missing,  /dev/ioer‐
          ror  will  be  substituted,  and you could use dmsetup(8) to set
          this up to return I/O errors when accessed, or create  it  as  a
          large  block  device of nulls.  Metadata may not be changed with
          this option. To insert a replacement Physical Volume of the same
          or large size use pvcreate -u to set the uuid to match the orig‐
          inal followed by vgcfgrestore(8).

You may also want to look at the vgreduce command, in particular its --removemissing option

   --removemissing
          Removes  all  missing physical volumes from the volume group, if
          there are no logical volumes allocated on  those.  This  resumes
          normal  operation  of  the volume group (new logical volumes may
          again be created, changed and so on).


The suggested actions at the bottom of the Boot-Repair script actually look like the right thing to do here, but you said it got stuck, so we'll need to look for a manual solution.

The Grub boot loader appears to be alive and well, but the boot menu has no entries, so you'll need to follow the instructions of this answer to repopulate it.

Check the output of update-grub, which should contain

1 entry for each Linux kernel of your Ubuntu installation (possibly more),
1 entry for Memtest86+, and
≥1 entries for Windows.

If it doesn't or you still can't boot, please post that output and include the content of <SDA1_MOUNTPOINT>/boot/grub/grub.cfg for further investigation.


Try    sudo fdisk /dev/sda , then "p" and enter this will show you all table then "d" for delete,
select range (1 to 4)
Or you can install gparted by
 sudo apt-get install gparted.


Java Application in snap / snappy / snapd

The dump plugin might help here. It can take a directory (or compressed archive, and many other forms) and literally 'dump' them into the snap, wholesale.

You would still need some wrapping around that, including the necessary jre/jdk and possibly set some environment variables, like JAVA_HOME, but I think the dump plugin is what you're after.

https://snapcraft.io/docs/reference/plugins/dump


There is a separate package for the Python 3 version of the python plugin. If your distribution does not ship it, please complain.

Code completion in Python is unfortunately very hard for some of the shipped modules. Look at os.py -- there's no way to find e.g. the declaration of getcwd() there :/
The re module should work ok though, eventually you have to wait a moment for the background parser to finish analyzing after adding the import.
Completion will work much better for code you write yourself, which is usually the more important part in practice.


Signing into Ubuntu from macos - file sharing

How are you connecting to your Ubuntu machine? Samba? If so, check out this tutorial.
https://tutorials.ubuntu.com/tutorial/install-and-configure-samba

It's pretty straightforward. An important thing to note is that the service doesn't use the system users/passwords as your system.


You should have a look to which programs you installed are running in the background after login, and remove the ones you don't need. The programs would be still installed, but won't run until you need them. In a terminal, type:

gnome-session-properties

You'll see something like this:

Just don't disable any program before knowing is safe (search the names in the web, to see what their function is).

More items you can disable, but this time services. In a terminal:

sudo apt-get install rcconf

sudo rcconf

Again, these are not programs but services (daemons in GNU/Linux) so search the web to see which ones you can disable safely. For instance, I don't have a printer nor a modem so I always disable CUPS and modem-manager.

Another thing, install preload, an utility that loads libraries into memory according to how often you use them:

sudo apt-get install preload

And that's it, the program will run in the background, you don't need to configure it or anything.

Hope it helps!


How to disable systemd-resolved in Ubuntu?

This method works on the Ubuntu releases 17.04 (Zesty), 17.10 (Artful), 18.04 (Bionic), 18.10 (Cosmic), 19.04 (Disco) and 20.04 (Focal):
Disable and stop the systemd-resolved service:
sudo systemctl disable systemd-resolved
sudo systemctl stop systemd-resolved

Then put the following line in the [main] section of your /etc/NetworkManager/NetworkManager.conf:
dns=default

Delete the symlink /etc/resolv.conf
rm /etc/resolv.conf

Restart NetworkManager
sudo systemctl restart NetworkManager

Also be aware that disabling systemd-resolvd might break name resolution in VPN for some users. See this bug on launchpad (Thanks, Vincent).


How can I change my monitor resolution to a higher one?

I followed these instructions to add 1680x1050 to my settings. It was pretty simple to follow:
Open the Terminal with Ctrl-Alt-T and type: xrandr Which will output something similar to this:

Screen 0: minimum 320 x 200, current 1024 x 768, maximum 4096 x 4096
VGA-0 connected 1024x768+0+0 (normal left inverted right x axis y axis) 0mm x 0mm
   1360x768       59.8
   1024x768       60.0*
   800x600        60.3     56.2
   848x480        60.0
   640x480        59.9     59.9
DVI-0 disconnected (normal left inverted right x axis y axis)
S-video disconnected (normal left inverted right x ax

Next you'll add your monitor's resolution. For this example it's 1680x1050 so you would type this next in the terminal: cvt 1680 1050 and press return.

You will use the output of the the step above for the next step. Now past this (change to reflect your actual settings:

1

xrandr --newmode "1680x1050_60.00" 146.25 1680 1784 1960 2240 1050 1053 1059 1089 -hsync +vsync

Next type:

2

xrandr --addmode VGA-0 1680x1050_60.00

be sure to replace the numbers with your own. This is where I had to change it a little from the tutorial I'll link to which goes into more detail. I had to change VGA-0 to VGA1 for it to work for me.

Now you tell the server to display the new size:

3

xrandr --output VGA-0 --mode 1680x1050

To have the code appear in the Monitor settings panel you'll have to edit the gdm defaults by typing:

sudo gedit /etc/gdm/Init/Default The settings will appear using the gedit code editor.

Find these lines in the file:

PATH="/usr/bin:$PATH"

OLD_IFS=$IFS

You'll add the three xrandr commands you've just entered which I've numbered in bold text above after those lines and save the file.

It worked for me. Here is the link to the much more detailed and original post:

The Perpetual Newbie


Where can I find the old GDM2 Ubuntu login theme?

Retro themes
You can download the old GDM themes from the old-releases repositories.
Your example looks like either the 8.04 GDM theme or possibly the 7.04 feisty fawn GDM theme.

Hardy download link
feisty fawn gdm download link
edgy gdm download link

These are debian package files.  Inside the package is the Human GDM theme you are interested in.
To make these themes installable via mdmsetup you'll need to do some command-line work.
First extract the debian package:
dpkg -x [packagename] gdm

Next navigate to the Human theme folder
cd gdm/usr/share/gdm/themes/

Now lets create an archive file:
tar -cvf Human.tar Human
gzip Human.tar

This will create a .tar.gz file in this folder.
Run gksudo mdmsetup and navigate to this folder to locate the new archive file and install the theme.
This is the result in my virtualbox session using the feisty GDM package:

Linked Question:

How can I replace LightDM with MDM?


You can try to boot a live ubuntu and revert the changes.

You provide insufficient information what you changed and happens on boot.


Pass the output of a chained command to grep or append to file

You likely need to redirect the commands' standard error as well e.g. (using bash command grouping, so as to capture both commands error streams with a single redirect)

{ pulseaudio -k && pulseaudio -v ; } 2>&1 | grep 'conf'

or using the shorthand |& operator

{ pulseaudio -k && pulseaudio -v ; } |& grep 'conf'

To redirect to a file

{ pulseaudio -k && pulseaudio -v ; } > aout.txt 2>&1

(note the order of redirections) or its semantic equivalent

{ pulseaudio -k && pulseaudio -v ; } &> aout.txt 2>&1

See the REDIRECTION section of man bash


Upgraded to 13.04, mount.cifs returns "Invalid argument" -22 error

I have found a solution. Add the option sec=ntlm - this works both in a manual mount and from fstab

The fstab entry is now -

# Network USB Drive - ie the USB Flash Drive connected to the Modem
//192.168.0.1/USB /home/user/USB cifs sec=ntlm,uid=1000,gid=1000,guest,_netdev 0 0

Based with Thanks from http://ubuntuforums.org/showthread.php?t=2139090


I think you might have accidentally formatted your Windows partition, I'm afraid. Please open the Dash and search for "Disk Utility" or "Disks". Click on your hard drive in the list on the left hand side, and provide a screenshot. That way we can be a bit more certain as to what has happened.

Also, when you open up the file manager, do you see your Windows partition in the list on the left? When you click on it, do you see the content that's supposed to be there (Documents and settings, Program files, Windows, ...)?


Resolved - Access denied. Trying to install Wordpress theme file

As a normal user you cannot simply copy files to system directories. Only root can do that. You can copy your file using the following command:

sudo cp YOURFILE /var/wordpress/wp-content/themes/

If you insist on using a file browser like Nautilus to do this, you can start Nautilus with super-user privileges, but I would personally avoid this. If at all, use with extreme caution:

gksudo nautilus

Finally, if you only want to install a theme for a single user, it is probably better to install it into your home directory, rather than a system directory.


Well,

The cause was that the file prefs.js was renamed by an application (Ubuntu One, update or may be during a crash) in prefs-1.js.

Each time I launched TB, TB was creating a new empty prefs.js. So that was why every thing looked empty.

+


Remount shared folder: alternative to mount -a

It seems I have misunderstood the meaning of the mount manual:

  it is a bad practice to use mount -a for fstab checking.

Maybe because this is what I was looking for, I took it to mean: checking whether all entries in fstab are correctly mounted.

Instead, the findmnt manual says:

  -x, --verify
  Check mount table content. The default is  to  verify  /etc/fstab  parsability  and usability.

So, it seems findmnt --verify is just meant to check the correctness of /etc/fstab, regardless of the current state of mounted filesystems.