How can I add *my own* desktop picture to 19.04?

To add your own pictures to the dialog that you are revealing in the screen print, add the files to the folder .local/share/backgrounds in your home folder. .local can by default not be seen, because all files and folders where the name starts with a . are hidden folders. Set the option to reveal hidden files in your file manager (usually, you can also set that with the shortcut Ctrl+h). Create the backgrounds folder if it does not exist. Background images in the user's .local/share/backgrounds folder will be available to the current user only.

If you want the pictures to be available for all users of the system, then indeed copy them to /usr/share/backgrounds. Of course, because this is a system folder, you need to have root privileges in order to be able to copy files into that directory.


Problem detecting wireless networks on a Dell Inspiron 1420

Ubuntu has a program called "Restircted Drivers". If you have a Broadcom Wireless card (many Dell notebooks have Broadcom), you can found the needed drivers there. You only have to activate it; Ubuntu will download it and install it.

Try this possible fix. Sorry for my poor english.


The first screenshot is the standard UI that comes with the wacom-tablet driver. I think it's saying you need kernel 3.2+ for the Pen & Touch (CTH-680) support. (For reference, the next LTS version, 14.04, has the correct drivers out of the box)

If you're having trouble with the wacom-tablet driver, a great resource for configuration of the tablet is The thread here

To your more specific question, you can install the second KDE UI with apt: sudo apt-get install kde-config-tablet
However, I think that is only for KDE desktops (see the Ask Ubuntu question here or the KDE Wikipedia Page.


Chinese characters rendered as squares in snap

sudo apt-get install fonts-wqy-zenhei

This provides the required Chinese fonts.

Or you can download from here

And install from the GUI based font installed in Ubuntu.


Touchpad stopped working properly after system update

Edit the /usr/share/X11/xorg.conf.d/90-libinput.conf

And add to the touchpad section after Driver "libinput"

Option "Tapping" "True"
Option "NaturalScrolling" "True"

Then log off and on. This will enable tapping and reverse scrolling.


How to transfer files between my Nexus 7 and my PC using a USB cable?

One possible solution is using the usbip package. Following link is a tutorial

http://blog.bravi.org/?p=866#more-866

If that works then file on Nexus can be access via scp or even samba.


As of now it looks impossible to build without CM10.1

Ubuntu touch uses following parts from android,

Linux Kernel (stock Android kernel provided by the vendor, with a few changes to support some extra features needed by Ubuntu)
OpenGL ES2.0 HAL and drivers
Audio/Media HAL and services, to re-use the hardware video decoders
RILD for modem support

If you get hold of these then you can start working on it. Here is the complete guide

Later point of time, it will be possible to run ubuntu without android. It may get easy (or difficult) for your device later.


This is always the best driver I had ever use to print with cups: http://gimp-print.sourceforge.net/p_Supported_Printers.php

In a couple of occasion this driver works better then driver provided from vendor.


Can you not use psensor? Install and configure lm-sensors, then install psensor from the software center. It will let you set alarms on any sensor it can find.


How do I share ethernet ports with router based DHCP?

You could allow communication across all NICs by enabling IP Forwarding and setting up some iptables rules:
$ sudo net.ipv4.ip_forward = 1
$ sudo vim /etc/sysctl.conf

net.ipv4.ip_forward = 1

$ sudo vim /etc/iptables/rules.v4

*nat
-A POSTROUTING -o eth0 -j MASQUERADE
-A POSTROUTING -o eth1 -j MASQUERADE
-A POSTROUTING -o eth2 -j MASQUERADE
-A POSTROUTING -o eth3 -j MASQUERADE

*filter
-A FORWARD -i eth0 -j ACCEPT
-A FORWARD -i eth1 -j ACCEPT
-A FORWARD -i eth2 -j ACCEPT
-A FORWARD -i eth3 -j ACCEPT

$ sudo iptables --flush && sudo iptables-restore < /etc/iptables/rules.v4


It is already in the official repositories: http://packages.ubuntu.com/maverick/python2.7

sudo apt-get install python2.7

You then execute python2.7

P.S. Support for ubuntu 10.10 ends in April 2012: https://wiki.ubuntu.com/Releases


There is more information on how to do this on the developers page - see
link

  History can also be saved so that if you're interested in having the
  list of words you learnt newly and to revisit them. Both clearing and
  aving history data can be done by right-clicking on the query box and
  selecting the appropriate option.


After tests including the onesposted by @chili555 failed to show any sign of hardware availability, I opened the Computer and tried to tighten all connections going to Wireless card (two actually)and switched on the machine.
The Card was recognized and I'm using it to type this answer.

I appreciate everyone that helped me getting to the answer. As always community around here is great!


I want to keep browsing

is incompatible with

  disable uploading files to internet

Here is why:

Any website you browse involves two-way traffic: your computer sends data to the website, and the website sends data back to your computer.
A user who is "just browsing" a website could type in anything they want. they could, if they wanted, run base64 to encode any arbitrary file (image, video, etc.) into ASCII text, and paste that on any website that isn't blocked.
You can install a web filter that attempts to block out many sites where it is possible to upload stuff, but for every site that your filter blocks, I can create a new website or virtual machine somewhere that lets me upload files, and upload any file by copy and paste, base64, or any other method.
You can install a whitelist that only lets you access a pre-defined list of websites, but this has several problems. Firstly, there are many sites that you might not think of when you create the whitelist that you DO want to browse to, and you'll have to add them to the whitelist manually as you discover these sites. Secondly, even if you whitelist a certain site, that site may have some feature or section you are not aware of, which lets you upload stuff still. They might even introduce this as a "new" feature after you add it to the whitelist.

It is not possible in the general case to absolutely prevent any file on your system from being uploaded to the internet, without disconnecting entirely from the internet.


In the settings for your TouchPad, disable "Tap to Click". This worked for me.


Ubuntu no longer provides pre-built images of new Ubuntu versions for armel. It only provides images for armhf (Hard Float, instead of floating-point emulation).

What Single Board Computer (SBC) are you using? The only popular SBC that requires armel is the Raspberry Pi. All other work with armhf.

For the Raspberry Pi, there was an effort to re-build the Ubuntu repositories to support the Raspberry Pi at http://www.theopensourcerer.com/2013/11/building-ubuntu-for-the-raspberry-pi/ Not sure whether the project was successful.


unable to delete file - rm: cannot remove Input/output error

The same circumstance I met. I am pretty sure I am going to delete the directory. So I try to use rm -rf XXX and also Shift + Delete to remove but both failed because of the same error. Interestingly, I fixed it by right clicking the directory Move to Trash and then Empty Trash. Hope works for you too.


m4 preprocessor "ERROR: end of file in string"

To others who have made it here, OP's error may also present as the result of a missing closing square bracket (likely, any unpaired bracketing character).


I am installing Ubuntu for the first time, i want it to be my main OS

It depends on how you did the installation.

Dualboot

If you are running ubuntu as a second os alongside windows, there is nothing to worry about since the the two OSes are not running at the same time.
Windows cannot watch and monitor your files while ubuntu is running, however, you can access your windows content from the ubuntu. To achieve this, you have to mount your windows partition so that you can read and write to it. This guide would be useful.
https://linuxconfig.org/how-to-mount-partition-with-ntfs-file-system-and-read-write-access

Windows removed completely,

Like I said, if you install wiping the whole disk, then the windows is no longer there. which case the contents on the windows cannot be access unless with some data recovery tool.

NB. Provide a link to the installation guide. And don't be worried about your limited knowledge. Google is your friend.

EDIT:
Use the installation guide from techmint for the dual booting.
https://www.tecmint.com/install-ubuntu-16-04-alongside-with-windows-10-or-8-in-dual-boot/


Save the result of find as a variable in a shell script

First, your find command is incorrect. If you want to look for all files that end in -gcc in the current directory it should be:

$ find . -type f -name "*-gcc"

To save output of find to GCC_VERSION use process substitution:

$ GCC_VERSION=$(find . -type f -name "*-gcc")

Notice that you may have more than one file that ends in -gcc so enclose a variable name in a double quote:

$ echo "$GCC_VERSION"
./mipsel-linux-gnu-gcc
./aarch64-linux-gnu-gcc
./mips-linux-gnu-gcc
./arm-linux-gnueabihf-gcc


You could install it via snap
Snap is the easiest and fastest way to do it
Run the following command
sudo snap install eclipse --classic

Or you could open software center and search for eclipse and the install it from there.


How to solve blank screen issue on ubuntu 16.04 start up?

The issue was solved by booting from a USB flash drive containing ubuntu 16.04 operating system on it (via entering BIOS and to choose USB drive option). And accessing the hard drive from the USB drive. The issue came from an incomplete update of 16.04.

From there I followed:

How to fix black screen after login in Ubuntu 14.04?

to complete the update with:

sudo dpkg --configure -a
sudo apt-get update
sudo apt-get upgrade -f


How do you change from icon to list view in 20.4

Ctrl+1 for list view, Ctrl+2 for icon view.
There is also the "Toggle view" icon (left from the down-pointing arrow "View options" in the top row), in case you prefer the mouse.


What seems to have happened:

Your / was full, then Ubuntu created a new partition, in RAM memory, to use temporarily.

Now, this 1MB partition is not big enough for the job, either.

What we can do:

1) increase the size of this partition just to do the upgrade

2) actually delete enough files in the HD that this partition is no longer needed.

To do 1:

open a terminal and run

sudo umount /tmp
sudo mount -t tmpfs -o size=1048576,mode=1777 overflow /tmp

This should give you an 1MB partition (just like the one you had =P).

Now, to increase the size, you increase the size in that line, so that, with size=10485760, you'd get 10 MB.

Your goal is to find a number that is enough for the job, but leaves enough ram too

Comments on 1

You may want to try sudo umount -l /tmp, if you get some variation of "the file system is busy and cannot be unmounted"

Another possible solution to "the file system s busy(...)" is to do fuser -m /tmp to find pids (process numbers) that are using /tmp, then ps -elf <pids>, stop or kill processes

You may want to try sudo mount -t tmpfs -o size=1MB,mode=1777 overflow /tmp or even sudo mount -t tmpfs -o size=1G,mode=1777 overflow /tmp (for 1 megabyte or 1 gigabyte, respectively) - that is, units are available so that you dont have to type a huge number

To do 2:

Open a terminal and run sudo umount /tmp or, if that fails, sudo umount -l /tmp.

Then clean up!

Delete files in /tmp (now /tmp is the thing actually in your HD, rather than a virtual ram disk), uninstall unused packages, delete files in your home folder and so on.


You would need to get your music into the store at 7-Digital (https://www.7digital.com/), for all the countries which Ubuntu One has store fronts for, to have your music appear in the Ubuntu One Music Store. You cannot directly upload music to the store, for sale, such as you can with applications.


Is there a way to install Benq pointwrite on Ubuntu 16.04?

I tried to install the Linux drivers package from http://benq.ph/product/accessory/pw02/downloads - which was developed for an earlier version of our pens an for Ubuntu 14.04. My installation on Ubuntu 16.04 didn't work, although I followed exactly the instruction sheet given in the drivers package.

Here's a screenshot that shows the installation process of the pointwrite deb package in the terminal - the installation of the qwrite package worked as described in the instruction sheet without any errors:

installation process of the Pointwrite drivers

Another screenshot shows the error message I'm getting when starting the QWrite software:

error message after starting qwrite software

May it be that it's a problem with the newer Ubuntu version?

Thanks a lot for your help!


16.04 Ubuntu server Screen flickers, unavailable to use the System

It seems that the old hardware needed a nomodeset.

To edit existing system to add nomodeset follow these steps

Press shift after Bios splash.
Select which kernel to boot and press e.
find the line which contains linux /boot etc
add nomodeset at the end
CTRL + X to reboot and the problem was solved

Somehow shift didn't do anything for me, but it made it possible to boot once with 'nomodeset' and then I set it myself in /boot/grub/grub.cfg


Hades Canyon NUC8i7HVK can install but can't boot

Go into the GRUB menu and select Advanced options for Ubuntu.
We will edit the startup options, so press e.
On the end of the line starting with linux     /boot  add a word: nomodeset

I have no idea why this works but it does. Can anyone explain it?


Right-click on Dell Precision 5520 touchpad, with 18.04, not working

Try a two-fingered double-tap to get the right-click menu.  Works for me on Ubuntu 18.04 on Precision 5530.  See this thread.


Add custom button to launcher which activates Super+W shortcut?

I use this method on Ubuntu 12.04 LTS.

Install "Compiz Config Settings Manager."
Scale > Bind > Window Picker

I believe this may be the easiest/best way.


Error while firing up wubi installer on Windows XP

Review this bug. It has workarounds, like removing MMC readers, any peripheral devices not required etc. Or you can also just click cancel multiple times to get past the issue.


grub2 not appearing and PC directly boots in windows 10

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 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/sda7 /mnt
sudo mount /dev/sda2 /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/sda
update-grub

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

Note :

sda = disk | sda2 = efi partition | sda7 = system partition
disk and partition numbers taken from your pastebin output

Check the partition numbers, you can identify them with GParted.
The (GUI) tool is already included in the Ubuntu installation media.


Can't mount an IDE HDD - "can't read superblock" error message

Test this:

Connect your Hdd.

Open a terminal,Press Ctrl+Alt+T

Run it:

sudo -i
fdisk -l

Suppose that fdisk reports that the partition hdd is /dev/sdb1, continue running:

fsck -y /dev/sdb1


Screen stays black after closing and reopening the lid

It sounds like you're having trouble with hibernation, which is invoked by closing (and opening) the lid. Look at /var/log/pm-*.log, man pm-hibernate and the files in the pm-utils package (do dpkg -L pm-utils). When my Ubuntu 11.10 hibernates, it also locks the screen (I think this is good). Could your system be trying to lock the screen and getting confused?


[SOLVED]
My problem was that linux instalations force the best resolution for monitor not for the video card, so when he try to run installation video card die becouse can`t take the high resolution of the monitor, so i change the monitor with smaller and :) TA-DA


How to stop huge consumption of internet data by Ubuntu 20.04?

You have to find out which process use your bandwidth, you should install and use nethogs to check how much which process use:

sudo apt-get install nethogs

https://manpages.ubuntu.com/manpages/trusty/man8/nethogs.8.html


Keyboard repeat/delay is reset when plugging in usb keyboard in Ubuntu 12.10 xfce

I know this is a dated problem, but it STILL exists till today. See e.g.

https://bugs.launchpad.net/ubuntu/+source/xfce4-settings/+bug/1180120

Until the xfce guys can get this straight, here are some sample scripts that could be used to fix the problem. It applies to a single-xfce4-session kind of situations (which covers the majority of user case), i.e. no two or three simultaneous X sessions.

The first is file /etc/udev/rules.d/50-external-keyboard.rules, which invokes another script upon insertion of a particular USB keyboard (you'll need to adjust your idVendor and idProduct numbers):

SUBSYSTEM=="usb", ATTR{idVendor}=="045e", ATTR{idProduct}=="071d", RUN+="/etc/udev/_Actions/x-keyboard-rates-launcher.sh"

The launcher script is a proxy launcher which drops the privilege to the user level for security reasons. Save this as /etc/udev/_Actions/x-keyboard-rates-launcher.sh and adjust X_USER to your name:

#!/bin/sh
# Adapted from http://unix.stackexchange.com/questions/65891/how-to-execute-a-shellscript-when-i-plug-in-a-usb-device

# Set DEBUG to something non-null string if we want to debug the script.
DEBUG=
X_USER=wirawan
export DISPLAY=:0
export XAUTHORITY="/home/$X_USER/.Xauthority"

Log () {
  if [ -n "$DEBUG" ]; then
    echo "$*" >> /tmp/udev_test_action.log
  fi
}

Log "$ACTION : $(date)"

if [ "${ACTION}" = "add" ]
then
  if [ -n "$DEBUG" ]; then
    export
    su -c "/bin/sh /etc/udev/_Actions/x-keyboard-rates-user.sh $DISPLAY $X_USER >> /tmp/udev_test_action.$X_USER.log 2> /tmp/udev_test_action.$X_USER.err" $X_USER &
  else
    su -c "/bin/sh /etc/udev/_Actions/x-keyboard-rates-user.sh $DISPLAY $X_USER > /dev/null 2>&1" $X_USER &
  fi
fi

Then this is the real script that reapply your keyboard parameters based on your own xfce settings. Save this as /etc/udev/_Actions/x-keyboard-rates-user.sh:

#!/bin/sh
# 20150318
# This script is supposed to run on the user level, not as the root.

if [ -n "$DEBUG" ]; then
  set -x
fi

X_USER=${2:-wirawan}
export DISPLAY=${1:-:0}
export XAUTHORITY=${3:-/home/$X_USER/.Xauthority}

is_x_running () {
# Detects whether the X server is up and running on the
# given display
  xdpyinfo > /dev/null 2>&1
}

is_user_session_up () {
# Detects whether the X session of interest is up
  pgrep xfce4-session -u $X_USER  > /dev/null 2>&1
}

get_keyboard_settings () {
  /usr/bin/xfconf-query -c keyboards -p /Default/KeyRepeat/Delay  \
    && /usr/bin/xfconf-query -c keyboards -p /Default/KeyRepeat/Rate
}

apply_keyboard_settings () {
  if [ $# -eq 2 ]; then
    /usr/bin/xset r rate $1 $2
  else
    return 2
  fi
}

Log () {
  if [ -n "$DEBUG" ]; then
    echo "$*"
  fi
}

Log "$ACTION :user: $(date)"

if [ "${ACTION}" = "add" ]
then
  sleep 1s
  if is_x_running; then
    if is_user_session_up; then
      KB_SETTINGS=$(get_keyboard_settings) || {
        Log "Error: cannot get keyboard settings"
        exit 1
      }
      apply_keyboard_settings $KB_SETTINGS || {
        Log "Error: cannot apply keyboard settings"
        exit 1
      }
    else
      Log "Warning: target user session is not up; quitting"
    fi
  else
    Log "Warning: X is not running; quitting"
  fi
fi

Good luck!

Wirawan


If you have GRUB2 on boot hold Shift on boot. Then press c.
Now enter:

set isofile="/boot/myiso.iso"
loopback loop (hd0,1)$isofile
linux (loop)/casper/vmlinuz boot=casper iso-scan/filename=$isofile noprompt noeject initrd (loop)/casper/initrd.lz

In this example the device it is stored on is /dev/sda1 and the ISO is /boot/myiso.iso.


Windows 10 on one drive, and Ubuntu on another

You can, I have only done it with 1 SSD and 1 HDD in the past, but it does work. Go ahead and boot Ubuntu from a USB, go through the install and make sure you click "Something Else" when picking a drive to install it on. Select the drive you want Ubuntu installed on, then for the grub boot loader, I recommend you install it on your main drive (The SSD or the other Hard drive, whichever one is primary/ First in the boot order). Grub will automatically detect the other windows installations on the other 2 drives and it will let you pick which one to boot from. If you don't want Ubuntu to be the default when it boots, you can modify the default option in "nano /etc/default/grub"
https://www.howtogeek.com/196655/how-to-configure-the-grub2-boot-loaders-settings/


Difference between Live Session and Full Installation.

You are running in fact Ubuntu.

There are few differences, most importantly, whenever you need to start a program, the liveCD needs to run it from the CD, which is slower. Also, you cannot save anything permanently (unless you specifically attach ie. mount your hard disk).

Finally, an installed system will be better tuned to your hardware, faster, and more up-to-date (packages on the LiveCD may be obsolete).

One caveat are proprietary drivers, notably Nvidia drivers. Nvidia drivers (which have 3D support) cannot be installed automatically by the Ubuntu installer, so if you have Nvidia, after the installation instead of the eye-candy of a 3D desktop you will have a much less eye-catching 2D desktop. However, Ubuntu will then tell you that you should install the Nvidia drivers from the Nvidia site, and you will be able to do so with a single mouse click, after which you will have your nice desktop back.

Otherwise it's pretty much the same stuff.


How to co-install libpython3.5 with libpython3.6 and libpython3.7

I had the exact same issue. I managed to solve this by building and installing Python 3.5.7 from source:

First, download and unpack python 3.5.7:

$ wget https://www.python.org/ftp/python/3.5.7/Python-3.5.7.tgz
$ tar zxvf Python-3.5.7.tgz
$ cd Python-3.5.7

Next, configure the package with --enable-shared option which installs the needed shared library file, including libpython3.5m.so.1.0 and other necessary files. --enable-optimizations is optional.

$ ./configure --enable-shared --enable-optimizations

Then make with altinstall option which ensures 3.5.7 won't overwrite your main python installation.

$ make
$ sudo make altinstall

The final step is to load the shared library:

$ ldconfig

Full commands:

$ wget https://www.python.org/ftp/python/3.5.7/Python-3.5.7.tgz
$ tar zxvf Python-3.5.7.tgz
$ cd Python-3.5.7
$ ./configure --enable-shared --enable-optimizations
$ make
$ sudo make altinstall
$ sudo ldconfig


execute script when network interface is up

Try doing this :

#!/bin/bash

PATH+=/sbin
adapter=eth0
internal=""

until [[ $internal =~ [0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3} ]]; do
    sleep 1
    internal=$(
        ifconfig "$adapter" |
        awk -F'(inet add?r:| +|:)' '/inet add?r/{print $3}'
    )
done

# send sms

As you can see, I use only one pipe : | with awk, no need more, awk can do the whole processing.


NetworkManager via D-Bus: Add a network bridge

nmcli con add does not use AddAndActivate API. It also does not (itself) create the device. What happens is only that it adds a new connection profile with autoconnect enabled, which the NetworkManager will automatically activate, and thereby creating the device.

You should understand what a profile is: it's a bunch of settings for configuring a network device. And that profile may be "activated", which means to actually use the settings (and create the device). You can always manually activate a profile, or Networkmanager may do it automatically, if the conditions are right. The API to "create" a device is activating a profile. In case of a software device (eg. bridge), NetworkManager automatically creates it when you activate the profile.

AddAndActivate is called (in some cases) by nmcli device connect and nmcli device wifi connect. It's different in that it does two steps in one and it does one additional thing: the user may pass an incomplete connection profile that NetworkManager tries to fill out before adding it. As such, it's more than AddConnection + Activate connection alone. Usually, that is not what you want. Best example is to specify only the SSID in a Wi-Fi profile and AddAndActivate automatically fills in the extra settings based in the Wi-Fi scan results. With AddConnection API the profile gets fully determined by the caller and only gets completed with default settings, independent of a device (or Wi-Fi Access Point).

The device argument on D-Bus may be optional. At least for ActivateConnection API. In that case, NetworkManager will automatically find or create a suitable device. Also, the connection profile argument may be optional (if you instead provide only the device).

Yes, most Networkmanager client tools will use the same underlying D-Bus API, including nmcli. That allows you to write your own application that does what other applications do and thereby integrate with those tools. There is also libnm, a glib based library that wraps D-Bus and several client applications use that instead of talking D-Bus directly.

See also the examples at https://gitlab.freedesktop.org/NetworkManager/NetworkManager/tree/ce59e749fbc99152d379b22563d6fd3295c7085a/examples

Networkmanager API is all about creating profiles (connections) and activating them.


how can I delete opencv from my bootable SD card

You can also use the Linux find command. So, to find all OpenCV libraries you can do the following (this might take a while)

sudo find / -name "*opencv*" -exec rm -i {} \;

The above command will find any file containing opencv in the name, and will prompt you to remove it. As always, be careful when deleting things manually!

Reference here


I found the solution. In my privacy configuration I didn't allow Firefox to accept 3rd party cookies.

I dont have the slightest idea, why that is needed on the official Java site, but now it works!


Trash and mounted volumes in Ubuntu Dock on Ubuntu 18.04

Run this command in terminal for enabling 'Trash' icon on dock

gsettings set org.gnome.shell.extensions.dash-to-dock show-trash true

To disable the same, execute

gsettings set org.gnome.shell.extensions.dash-to-dock show-trash false


19.10: Unmet dependencies block install SQL Server Command Line Tools

Here's how I fixed it! You only need to install multi-arch support for 32 bits applications. Apparently it's not already included in the default installation of ubuntu 19.

https://www.ubuntuupdates.org/package/core/disco/main/base/multiarch-support

wget http://security.ubuntu.com/ubuntu/pool/main/g/glibc/multiarch-support_2.29-0ubuntu2_amd64.deb
sudo apt-get install ./multiarch-support_2.29-0ubuntu2_amd64.deb
sudo apt-get update
sudo apt-get install mssql-tools unixodbc-dev -f


api for new and stable versions of Ubuntu

https://wiki.ubuntu.com/DeveloperNetwork may be what your looking for

  Launchpad entry: https://launchpad.net/ubuntu-api-website

  Define collections of API versions as a distro release (Ubuntu 12.04, Ubuntu 12.10, etc)

Not 100% sure if this info will help you. This question might be best asked in a developer community.


Ubuntu 16.04 does not consistently recognise my sd card

I confirm this behaviour on a Aspire E1 running Xenial 4.4.0-104-generic with high-capacity FAT32 cards (64GB). Those will not mount with

sudo mount -o rw,user,uid=1000,umask=007 /dev/mmcblk0 /media/user

and gparted shows an unallocated space.

Sometimes

sudo apt-get install --reinstall udisks2

works, but not every time.


Microphone picking up system sound on Ubuntu 14.04

Run alsamixer in terminal.

Then go across to "loopback " switch with right arrow, and disable it with "down" arrow.


Screen-Sharing "no network selected for sharing" problem in unity control center (18.04)

I am experiencing the exact same issue.

If you don't need to use networkd, I think your issue can be solved by adding this file /etc/netplan/01-network-manager-all.yaml with these contents to your netplan directory.

network:
  version: 2
  renderer: NetworkManager

After you have added this file make sure there aren't any other files in that directory that will take precedent, then use the command sudo netplan apply. You may need to do a reboot for these changes to take effect in the settings tab though.

I recently updated my netplan.yaml file to use networkd instead of NetworkManager. Since doing this my VMs are now discoverable through my network bridge but my VNC client stopped working. In the sharing page under screen sharing, I no longer have the ability to turn on screen sharing as there are no networks to be found. This of course is false as I am connected to the internet through br-mmrk1

Switching the renderer back to NetworkManager allows network sharing to be enabled again but the network itself doesn't work and I can't connect to my VNC client.

If I remove the network bridges and simply use the default NetworkManager everything works, except for my VMs of course.

Currently my work around to manage my VMs, which you may find useful if you are using your machine for Vms as well, is to manage the VMs remotely using virtual manger on another computer.

Here is the video guide for that --> https://www.youtube.com/watch?v=_SiJSz_2NaY

Here is my /etc/netplan/01-networkd.yaml file where I have to use networkd. I would be interested to see your netplan file to compare.

# This file describes the network interfaces available on your system
# For more information, see netplan(5).
network:
  version: 2
  renderer: networkd
  ethernets:
    enp2s0f0:
      mtu: 1500
    enp2s0f1:
      mtu: 1500
  bridges:
    br-mmrk1:
      addresses: [ 10.133.104.200/22 ]
      gateway4: 10.133.104.1
      nameservers:
          addresses: [ 8.8.8.8, 1.1.1.1 ]
      interfaces:
      - enp2s0f0
      mtu: 1500
      parameters:
         stp: false
         forward-delay: 15
    br-mmrk2:
      addresses: [ 10.133.56.200/22 ]
      gateway4: 10.133.56.1
      nameservers:
          addresses: [ 8.8.8.8, 1.1.1.1 ]
      interfaces:
      - enp2s0f1
      mtu: 1500
      parameters:
         stp: false
         forward-delay: 15

If you found a solution for your issue please do share here as I would be delighted with a work around for this issue as well.


Please help with touchpad sensitivity and palm detection kernel 4.13

I like Touchpad Indicator GNOME Shell extension.

Find it at https://extensions.gnome.org/extension/131/touchpad-indicator/


Is it possible to extend a ubuntu 12.04 disk in vmware?

If you are willing to risk your live data, you can edit the partition table online with fdisk. However, as you have more than one partition, you need to first delete your second partition to get it out of the way. Once this is done, you can resize the original partition, reboot, resize the filesystem, reboot again, and then have more space. A quick example would look like this (everything must be done as root, use sudo -i to get a root terminal):

Step 0: BACK UP ALL YOUR DATA. This is very risky. If you don't know what you're doing you will probably destroy all your data. Continue at your own risk.

Step 1: unmount your second partition, which appears to be just swap

swapoff /dev/sda5

Step 2: Modify the partition table, deleting the swap and extended partition

fdisk /dev/sda
d
5
d
2
w

Step 3: Find which block your first partition starts on, this needs to be exact

fdisk -l /dev/sda

Output looks like:

Disk /dev/sda: 21.5 GB, 21474836480 bytes
255 heads, 63 sectors/track, 2610 cylinders, total 41943040 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x0003301e

   Device Boot      Start         End      Blocks   Id  System
  /dev/sda1   *        2048    39845887    19921920   83  Linux

Step 4: Delete and recreate your primary partition

fdisk /dev/sda
d
1
n
p
1
2048
[however large you want the filesystem to be]
w

Step 5: Recreate your swap partition

fdisk /dev/sda
n
p
2
[default option, beginning of free space]
[default option, end of free space]
t
2
82
w

Step 6: Reboot. Your server might not come back online. You may have ruined everything. This is why you took that backup.

Step 7: Resize the filesystem. For ext2/3/4, use resize2fs.

resize2fs /dev/sda1

Step 8: Reboot again.

After the last reboot, you should have all the space you added. You will need to edit your fstab to update the UUID on the swap partition.


Using sudo in LXC containers for accounts without valid shell

In sudo -H -u golanger /bin/bash && cd /home/golanger, your current shell executes sudo -H -u golanger /bin/bash and when that finishes successfully, runs cd /home/golanger. So the cd doesn't affect the sudo command.

sudo itself doesn't reset the working directory (-H only resets the home directory, not the current working directory). If you want to make sudo cd to the home directory of the target user, there are no command-line options which can directly do the job. You'll have to workaround it:

sudo -H -u golanger /bin/sh -c 'cd; /bin/bash'

Note that, with the -i option, sudo will try to cd to the home directory of the target user, but it also uses the user's login shell, which will make it fail in this case.


Try this out.

Copy and run the following commands in the Terminal:

sudo apt-cache depends ubuntu-desktop | awk -F ":" '{print $2}' | sed '/^$/d' | xargs sudo apt-get install --reinstall --install-recommends --yes

This command will reinstall the entire desktop. Then reboot the computer. Hope this helps you.


Terminal does not recogninze an installed program

Open your terminal and paste these lines

sudo mkdir -p /usr/local/bin
sudo ln -s /home/sohail/maple13/bin/xmaple /usr/local/bin

then try again.

Edit:

type in your terminal as

gedit .bashrc

and write

alias xmaple='/home/sohail/maple13/bin/xmaple'

Save & close.
Type bash in your terminal and run source ~/.bashrc.
Then type xmaple.


Small harddrive for Ubuntu, Large harddrive for Music, Video, Pictures etc?

Option 1: Moving the home directory

The best choice is to copy your home directory over to the other drive and mount that drive as /home as Takkat described in his comment/answer. I use a setup like this on my laptop with a SSD and a fast 7200rpm hard drive. I didn't notice any performance degradation during startup/login compared to having /home on the SSD.

Option 2: Redirect particular directories

Another option was discussed here:
How do I integrate my Windows filesystem with Ubuntu? Note that special folders can and should be redirected by not using symlinks. For regular folders you just need to know where the data is stored to replace the folders with a symlink, though some applications store data across different directories:

$ find -iname vlc
./.local/share/vlc
./.cache/vlc
./.config/vlc

This is where it can get difficult with some applications or in the event of a migration or re-installation you probably find yourself accidentally deleting data you wanted to keep. Therefore go with option 1.


It depends on your browser or the graphical application you are running. If the browser give you the option, you can.

firefox supports this. Lets say you have just opened firefox from terminal, now you can use the following commands to open a new URL just like typing in the address bar:

firefox --new-tab gmail.com

will open gmail.com in a new tab.

firefox --new-window gmail.com

will open gmail.com in a new firefox window.

Check the manpage of your program (man program) to check if it supports this feature.


I use this script to clone Ubuntu 16.04 to a new partition:

Bash script to backkup/clone Ubuntu to another partition

The script updates grub menu with the new clone version and my original 16.04 version is still there safe and sound.

It takes over an hour to run the do-release-upgrade on the clone so I run it while making dinner or something like that. I check back periodically to see if there is a question to install new configuration file or keep old one.

I keep notes on if I updated configuration file for package A or kept the old one. I do this in the likely event I rerun the cloning script and do-release-upgrade. I do not backup before do-release-upgrade because it is a clone that can simply be recloned. This saves a lot of time.

I will play on the upgraded clone for many hours exploring new features, testing old applications and installing new ones. If some applications broke during the do-release-upgrade I may reboot into the original version and remove them, tweak them or replace them with another application that does the same thing but is more compatible with 18.04.

Over the last year I have repeated the cloning process and performed do-release-upgrade four or five times. I haven't pulled the plug and abandoned 16.04 though. I hope when 20.04 comes out next spring they provide a do-release-upgrade that goes direct from 16.04 to 20.04 so people can skip the 18.04 middle step.

In short it is a good idea to run do-release-upgrade on a clone and repeat the process as many times as necessary. Once done on your live data there is no going back.


GParted claims whole hard drive is unallocated and gives warning about GPT table

It looks like something has moved the GPT's backup partition table to roughly the 700GiB mark on the disk. This could cause data corruption (although probably of only one or two files), so you should move it back where it belongs. You can do this in gdisk by using the e option on the gdisk experts' menu (that is, launch gdisk, then type x, then type e, then type w to save your changes). GParted and parted should also offer options to fix this problem, but I'm less familiar with them and don't know what, if any, caveats might apply. (I'm gdisk's author, so I'm very familiar with what it does!)

Chances are this damage was caused by some partitioning tool that was run on the disk from an OS or via a driver that has a built-in 32-bit limitation. Since the disk has more than 2^32 sectors, the result is something like a car's odometer rolling over -- instead of accessing out to the ~2.7TiB mark, the software wrote the backup partition table data at ~0.7TiB (~700GiB). This type of problem is most common with Windows drivers that are older than a year or two old and with external USB enclosures for hard disks.


How do I remove the bash from systemd service file? and replace it with something that solves my problem explained below?

Remove sudo

sudo is almost always a mistake in systemd scripts.

If the unit is a system unit its superfluous
if its not sudo will fail most likely
if its used for other purposes eg -H -g etc then systemd has all these functionalities

In short

$ sudo java -XX:+UseG1GC -Xmx1g -Xms512m -jar abc-program-0.0.1-SNAPSHOT.jar

can be replaced by

$ java -XX:+UseG1GC -Xmx1g -Xms512m -jar abc-program-0.0.1-SNAPSHOT.jar

Now moving it into the unit itself ie

Remove the shell script

What prevents this from working?

ExecStart=java -XX:+UseG1GC -Xmx1g -Xms512m -jar abc-program-0.0.1-SNAPSHOT.jar

Maybe nothing (it just works!)

But its possible paths need adjusting. You already have

WorkingDirectory=/data/acloud/repository/lib

I recommend looking into https://www.freedesktop.org/software/systemd/man/systemd.exec.html theres User= Group=

Is java on the path? You can tweak the PATH env variable but simplest to change to

ExecStart=/fullpath/to/java -XX:+UseG1GC -Xmx1g…

(Change fullpath as appropriate to you)

Does it still work? I suspect not…

Correct Service type

So what happens if you run (at the shell) (Note NO & at end)

$ sudo java -XX:+UseG1GC -Xmx1g -Xms512m -jar abc-program-0.0.1-SNAPSHOT.jar

If it does its job and comes out you need

type=oneshot

If it keeps running in foreground (ie it 'hangs' until killed) you need

type=simple

If it immediately returns with the daemon running in background you need

type=forking

If its the third you also need to supply

PIDFile=/path/to/service/pidfile

If the first you need

RemainAfterExit=yes


Is it possible to see tcpdump real source code?

tcpdump is available in the main repository in Ubuntu.

To download the source code of tcpdump:

Make sure you have the repositories enabled for deb-src type packages, for xenial (16.04) add the following to the /etc/apt/sources.list:

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

Replace xenial with your release codename, you can find your release codename by:

lsb_release -sc

Now update the local package list by synchronizing with the repositories:

sudo apt-get update

Install the source code of tcpdump:

apt-get source tcpdump

It will be downloaded and auto-extracted on the current directory; also no need for sudo unless you don't have write permission on the directory.

All the files you need are inside the directory tcdump-<version> e.g. for version 4.5.1 the directory would be tcpdump-4.5.1.


BeagleBone Black Wireless with Ubuntu Xenial 16.04 Wifi Not Working

I have found a way to make the WiFi of BBBw to work.

Firstly add the following lines to the etc/network/interfaces file of the BBBw (you need to access it by another way, for example a serial connection with a laptop):

auto wlan0
    iface wlan0 inet dhcp
    wpa-ssid yourSSID
    wpa-psk yourPass

Reboot BBBw
Then you have to update the firmware (thanks to jeremy31 for the info:https://ubuntuforums.org/showthread.php?t=2386780):

sudo wget https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/plain/ti-connectivity/wl18xx-fw-4.bin

copy the abovementioned .bin file to the lib/firmware/ti-connectivity directory of BBBw
Reboot BBBw

After doing these you have to set up a connection to your linux PC for the BBBw to connect to. This connection should be "Shared to other computers", hotspot mode, WPA/WPA2 Personal, and have the SAME ssid as the one in the interfaces file.

After that your BBBw should be able to connect to your PC. If you want your BBBw to have internet access, you have to connect an ethernet cable to your PC. The "shared to other computers" hotspot connection will share the PC's ethernet internet to the BBBw.

More issues:

There is a good chance that, in order for the BBBw to connect to the PC's hotspot connection, you should not have the internet ethernet cable of the PC connected during the BBBw's boot (it is at boot time that BBBw tries to find a network to connect).
Wifi was still not working until the latest ubuntu armhf console image (i.e. the 2018-03-09 version) was flashed. I haven't managed to make the older 2018-02-09 version to work.


I made a lot of attempts, but the one that solved it was this
sudo aptitude reinstall python3-six python3-certifi
Source: https://ubuntu-mate.community/t/software-updates-fails-to-open/22736/4


Moving files of specific type/extension from one directory to another?

Taking in account that 1) Q said "large collection ... of files" - the list of files might not all fit in one command line buffer (2,084,684 bytes on MY system); and 2) Filenames might contain funny characters ("My Stuff.jpg"); mv is not the best way. Using find, xargs, and the sure knowledge that filenames must NOT contain NUL bytes (or slashes):

find /home/tony/Desktop/unsorted_files/ -maxdepth 1 -type f -iname '*.jpg' -print0 | \
    xargs -0 --no-run-if-empty echo mv --target-directory=/home/tony/Desktop/jpgfolder

Once the echod commands look right, remove the echo, and let mv do the work.

If you have already done mv /home/tony/Desktop/unsorted_files/*.jpg /home/tony/Desktop/jpgfolder BEFORE you created the /home/tony/Desktop/jpgfolder, nothing has been lost, but you must, as other answers have said, mkdir -p /home/tony/Desktop/jpgfolder first.


First you should always uninstall package with apt-get purge packagename if you what to completely remove them from your system.

Don't use locate to actually find deleted files, it does not work this way:

locate reads one or more databases prepared by updatedb and writes file names matching at least one of the PATTERNs to standard output, one per line.
By default, locate does not check whether files found in database still exist.

Run sudo updatedb and check again with your locate command, deleted files should not be listed.


How to remove unity 2d workspace animation?

You can set transitionDuration = 0 in the file /usr/share/unity-2d/spreed/utils.js.


root issues in softwarecenter, synaptic and update manager

Well this is a ruff translation.. But this part caught my eye... softwarecenter.db.pkginfo_impl.aptcache - INFO - aptcache.open()
2013-11-10 22:31:00,646 - softwarecenter.fixme - WARNING - logs to the root logger: '('/usr/share/software-center/softwarecenter/utils.py', 201, 'get_title_from_html')'
2013-11-10 22:31:00,645 - root - WARNING - failed to parse:
Vaguely this is saying you have a file from software center that is not capable of being found.. Possibly deleted, or much out of date


To resolve this error check the installation status of libkeyutils-dev

apt-cache policy libkeyutils-dev

If the package has not been installed, install it with

sudo apt-get install libkeyutils-dev


I don't know if there are any dependencies involved, but you can try to download 1.4.1 from here (check the Builds at the bottom of the page for your architecture) and install it with apt-get


initramfs unable to find a medium containing a live file system

Try this:

1.Pull out the ATA which links to CD-ROM and hard-drive,then exchange the head of the ATA(in my situation: the longer one) on your CD-ROM with the head of the ATA on the hard-drive.

2.Restart the computer


This is likely caused by a corrupted font, ttf-ubuntu-font-family

You can use apt-get to reinstall the font by executing the following command.

sudo apt-get install --reinstall ttf-ubuntu-font-family

A restart of Unity will be required to re-read the reinstalled font.

You could restart the machine or you can attempt restart Unity itself by running

sudo service lightdm restart

I ran this from a Terminal session that was running in my current Unity session and the screen went blank so I had to rerun the sudo service lightdm restart command from a Virtual Console I jumped out to the a virtual console using

CTRL ALT F2

I logged in as my self and ran sudo service lightdm restart

After Unity restarted I jumped back to Unity by running CTRL ALT F7

I suspect that the session associated with CTRL ALT F8 represents the hanging attempt at the Unity restart but I suppose that will be rectified by a machine restart.

Virtual consoles are handy and are well covered in the following question Reverting from Ctrl - Alt - F1


How to Disable Ubuntu Phone "auto dim" function?

Preparation: If you haven't done so already, install the Terminal app.

In the Terminal write:

$ dconf write /com/ubuntu/touch/system/dim-timeout "@u 0"

The dim-timeout Key wants an unsigned int as a value. That's what the @u is for. The number stands for the seconds after the screen is dimmed (0 = infinite).

(Since the setting is stored for the local user (phablet), it's not nessecary to make the root file system writeable.)

(Tested on the Ubuntu tablet, with Ubuntu Touch 15.04.)


If you have NVidia card then you should type :

nvidia-smi -q -d temperature

it will give   Product Name, PCI ID and Temperature.

You can also install psensor:

sudo apt-get install psensor

psensor will show cpu temp and gpu temp in the system tray.


The following command would do it

sudo find . -name \*wine\* -type f -exec rm -f {} \;

You need ` \ before the * so they aren't globbed. type -f means match files only.


How to fix my root filesystem being full?

Have you used:

sudo apt-get autoremove

Lately? Is it possible you are holding on to outdated kernel updates?


Mounting Drives, Replacing with an Array

There are a number of virtual filesystem that can merge two real locations into one. You have to mount each separately but you can then combine those mountpoints into one.

One problem is determining where new files are written so for simplicity, the one I use is readonly (and I write to the direct mounts). This will work for you.

This is what I'd have in my /etc/fstab:

ntfs-3g /dev/sdb2 /media/sdb2
ntfs-3g /dev/sdb3 /media/sdb3
none    /mnt/md0  aufs  ro,br=/media/sdb2:/media/sdb3 0 0

And you'd replace all three lines with your array later on.


Kill the process.

You can kill the process (if running) by:

pkill <process_name>

Or

killall <process_name>

This will match the process name only, if you want to match the whole command line, use (with extreme care):

pkill -f <part_of_the_command>

So in you case:

sudo pkill myexample

should do.

You can be sure beforehand, by running:

pgrep -l myexample

to check the process ID to make sure no other process coincides with the name.

On a different note, after finding the PID with pgrep -l myexample, you can kill the process with kill too:

kill PID


Network error: Connection refused is how your system tells you that there is no server (of any type) listening to that port on that server.


Accidental moving of root folder unable to log in

Go through the boot options dialog and select the option that says "Boot to root shell" or something similar. That should drop you straight into a root shell, where you can attempt to repair the damage.

If that's also broken and you can't get a root shell, you may screwed.


Ubuntu won't boot after deleting a partition

Your best bet is probably to use TestDisk, which comes on most Linux emergency discs and live CDs.

Given the size of the partition, I suspect this may have been an EFI System Partition (ESP), which is a FAT partition that holds EFI boot loaders. If I'm right, you'll need to give it an appropriate type code after you restore it. You can do this with gdisk, sgdisk, or cgdisk by setting the type code to EF00; or with parted or GParted by setting the "boot flag" on the partition. If this is not an ESP, though, you may not want to run gdisk, sgdisk, or cgdisk on the disk, and you might or might not want to set the "boot flag" with parted or GParted.


You don't need the source code so don't worry about downloading foo and patching it.

See Nautilus instructions for creating your own script here (Help Ubuntu - Nautilus Scripts How to). Basically you:

Navigate to the directory ~/.local/share/nautilus/scripts/
Place your script (written in Bash, Perl or Python) there.
Mark the script as executable using Nautilus or from terminal with chmod +x script_name
Nautilus makes environmental variables available to your script: NAUTILUS_SCRIPT_SELECTED_FILE_PATHS, NAUTILUS_SCRIPT_SELECTED_URIS, NAUTILUS_SCRIPT_CURRENT_URI, and NAUTILUS_SCRIPT_WINDOW_GEOMETRY

There are sample scripts located at (Help Ubuntu - Nautilus Sample Scripts) for e-mailing files, mounting an ISO file, setting files to read only, editing file with gedit ROOT priviledges, opening terminal at current location, etc.

Look through the scripts and take one as a template for encrypting files using right-click.


Headphones not working after update Ubuntu 14.04.1

I spent a long time working with the same problem, based on lots of forum threads,  and nothing helped. Then I tried this:

$ alsactl restore

That did it :)


Have a look at the What Application Indicators are available?. It contains instructions on Glipper and Glippy and a few others that you might find interesting too.

To start these indicators: indicators will have an entry in the 'startup applications'. It might be set to 'off' or to 'on' depending on the indicator. If not you can add it yourself.
And some you can start from dash and have a 'preferences' to set it to start on loging in.


64-bit ubuntu 12.04.5 iso file for I5 NUC

Here you are.
http://www.webopedia.com/TERM/A/AMD64.html
You have to pick AMD64 iso. There is no other 64 bits.


Drive partition missing after installing ubuntu

your windows partition is most likely not mounted

type sudo fdisk -l to see if it's there.

A shortcut should be on your desktop, all what you have to do is double click it. Your partitions, once mounted show up in /media/[user]/

Actually found a simpler solution.

sudo blkid
sudo vol_id --uuid X

for X= name of mount for example /dev/sdb2


Cannot connect to the Docker daemon at unix:///var/run/docker.sock

Seems like your user doesn't have privileges to run Docker. Try using:

sudo docker run -it ubuntu /bin/bash


Upgrade Ubuntu (from 12.04.3) to 12.04.4 LTS (and not 12.04.5)

NOTE: I have dealt with this exact issue for medical diagnostic software.

If you are only certified to use Ubuntu 12.04.4 LTS, then you need to define strict rules:

Don't allow Internet access, as the VM is not going to receive any (security) updates;
Only perform clean/NEW installs of the certified version (eg. 12.04.4 LTS), and don't attempt any updates;
Define an end-of-life date, when you will move to an newer certified platform (eg. 14.04 LTS), and/or for a newer version of your product.

You need to clarify if you intend to operate under (all) these rules.

This will grossly effect what advise you need to proceed ..


USB Hard Drive still appears in /media after unplugging

It's most likely just an empty folder that had been used as the mounting point.

Open a terminal an run

sudo rmdir /media/jack

to remove it.


If you just want playerctl, I would suggest you download the .deb-files and install them rather than compiling yourself:

libplayerctl (dependency of playerctl)
playerctl

Here's what I did on Ubuntu 18.04.1 LTS:

wget http://ftp.nl.debian.org/debian/pool/main/p/playerctl/libplayerctl2_2.0.1-1_amd64.deb
wget http://ftp.nl.debian.org/debian/pool/main/p/playerctl/playerctl_2.0.1-1_amd64.deb
sudo dpkg -i libplayerctl2_2.0.1-1_amd64.deb playerctl_2.0.1-1_amd64.deb

For this to work all other dependencies must be met, of course. They were in my case.


Get a list of all scripts and their paths which are run as cron job

I'm not sure if this is what you want.
I found this answer some time ago on some stackexchange and I use it on one server.

for user in $(cut -f1 -d: /etc/passwd); do echo $user; crontab -u $user -l; done

This will list all crontabs for all users.


The links you've attempted to connect to are broken or dead links, and so are no longer supported.

You can solve the issue by;
Installing ppa-purge: sudo apt-get install ppa-purge

...and removing the links:

sudo ppa-purge ppa:kirillshkrogalev/ffmpeg-next


Unable to login on my machine with right password

Though this issue was reported 2 years back, I faced the same issue today even though I enter the correct password not able to login. sharing the resolution details for my case.

OS: Ubuntu 16.04 LTS

Error: Invalid Password, please try again.

Solution: My password had one capital letter and I was entering the same using shift from mac machine connecting to ubuntu vm and it was failing. Then turned on the Caps Lock enter that one char and turned off the Caps Lock to enter the rest of the chars in my password. It worked!

Hope it helps someone!

Regards,

Fairoz


Looks like the error is because the particular directory cannot be created.
make sure that the /usr/local/hadoop_store is having the same permissions and ownership as HADOOP_HOME. You can check the ownership by ls -al command and you can use the following commands for changing
the ownership:

chown -R [OWNER]:[GROUP] [Directory name]

and the permissions:

chmod -R [OWNER]:[GROUP] [Directory name]

The link stated by has correct instructions and your JAVA_HOME also looks perfect as it is able to invoke Java but I am doubtful that hadoop has access of hadoop_data directory.


Everytime I start my computer I get the error "System has faced an internal error"

You could try clearing the crash log directory:  sudo rm -r /var/crash/*  Occasionally something gets stuck in there.  I would encourage you, however, to examine the contents first, and see if there is something wrong in your system.


Please help rebuild my fstab! Ubuntu 12.04 LTS

Wubi's /etc/fstab when installed the way you did (via disk image) should look like this, with just a single entry for the swap file:

/host/ubuntu/disks/swap.disk    none    swap    sw    0    0

You don't need an entry for / (root) as it is passed to the kernel as a parameter. But if it makes you comfortable you can set your /etc/fstab the way ubiquity does it (the other way of installing Wubi):

# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc nodev,noexec,nosuid 0 0
/host/ubuntu/disks/root.disk / ext3 loop,errors=remount-ro 0 1
/host/ubuntu/disks/swap.disk none swap loop,sw 0 0

PS I modified the above to make it ext3 because the disk image installs use ext3, not ext4 which is the default for the ubiquity installs.

PPS /host (/dev/sda3) is mounted automatically as well. Don't add an entry in /etc/fstab for that partition. You can add entries for your other NTFS partitions if you like.


your phone is not a usb-storage device that just provides access to the filesystem , it is using MTP which provides selective access to the filesystem on your phone.  This is because the old usb-storage method could lead to corrupt files because it didn't handle the concurrency issues.

It would seem that either WAV is a type of file that is filtered out by MTP or the files in question might be too big. This is a fair assumption for a phone because they typically use compressed audio whereas WAV files are large uncompressed PCM data that is more common in music production.

I found an ftp server app for my android phone and use it over wifi via nautilus, just click the 'Connect to Server' dialog, its less battery efficient but i don't do much file transfer anyway.


ubuntu 17.10 problem with mobile broadband

The new GUI interface didn't work for me at all.  But this did:

# check status of broadband device (on or off)
nmcli radio wwan

# turn it on (if off)
nmcli radio wwan on

# bring up my broadband connection, which I've called "My Broadband"
nmcli connection up "My Broadband"


Why do I just get a black screen if I disconnect a DVI monitor and then reconnect it with Xubuntu 14.04?

Go to

system settings
Brightness & Lock

Switch "Turn screen off when inactive for" to "Never"

For Xubuntu :

Go to "Power Manager"
Tab "On AC"
Tab "Monitor".
Set "Switch off display when computer is inactive" to never


Why is 12.10 Quantal Quetzal only supported until 2014 while 12.04 LTS Precise Pangolin is supported until 2017?

LTS means Long Term Support and the Ubuntu team releases LTS-versions every 2 years. LTS releases are defined to be enterprise focused, compatible with new hardware, and more thoroughly tested.
https://wiki.ubuntu.com/LTS

As a home user, I would say that it does not greatly matter. If you are looking for a stable and steady ground, stay with the LTS version. If there are some functions only found in the new version that you need, use the latest version.

If you are worried about the short support, Ubuntu releases standard versions twice a year, so you could update to 12.10 and when the support is ending, update to the next version.


Faenza was not updated for a long time, some icons are missing from the package. But don't worry, it is very easy to fix this issue.

You will have to edit faenza index.theme. You can find it in Faenza icon folder, e.g. /usr/share/icons/Faenza.

Open it as root

sudo gedit
/usr/share/icons/Faenza/index.theme
Locate 3th line from the top. It should look like that Inherits=gnome,hicolor
Change it to Inherits=ubuntu-mono-dark,gnome,hicolor
Restart your theme with gnome-tweak-tools or just log out.

If ubuntu does not find suitable icon in faenza icon pack then it will fall back to default ubuntu icon.


Login loop after host rename using hostnamectl

This answer solved my problem:

Login loop with fresh 19.10 install


Does installing Google Chrome as a package from Google's website keep it up to date?

As part of the process of installing the .deb package from Google Chrome's website, a file named google-chrome.list is added to /etc/apt/sources.list.d, so you will get automatic updates when you perform sudo apt update and sudo apt upgrade in the terminal.

For example, in my case where I have Google Chrome on the dev (unstable) channel, I see:

$ ls /etc/apt/sources.list.d | grep chrome
google-chrome-unstable.list
google-chrome-unstable.list.save

The installation processes of many .deb packages do not add .list files to /etc/apt/sources.list.d though, so in these cases, you will have to manually update such software by installing the updated .deb packages again via sudo dpkg -i.


How to disable sleep/screensaver Kubuntu 12.04 LTS and VLC?

Go to settings and choose the power option


How to sync tasks between Ubuntu and Android?

deckoff hinted at this in his answer, and I've been trying it out myself for a bit now. So I should probably add it here. There is a GTasks indicator available in a third party PPA, google-tasks-indicator.

You can add the PPA and install the app with:

sudo add-apt-repository ppa:atareao/atareao
sudo apt-get update
sudo apt-get install google-tasks-indicator

It does most every thing that you expect, but you can't indent tasks and getting to notes is a bit inconvenient.

More and more, I'm thinking that GTasks just isn't feature-full enough for me...


I have the same problem on Ubuntu 14.04 32 bits using the NVIDIA properietary drivers (331.38 on a Dell XPS L501x).

Well similar, I don't even see a window. If I use the nouveau driver I can see the steam window but it fails because it misses some dependencies.


You have to edit the configurations for your nginx sites under /etc/nginx/sites-enabled and change the listen directives to a different port. Or remove the sites from the enabled list.  Once done and you run sudo service nginx restart, then nginx should no longer bind to those ports.

(The only other reason nginx might bind to ports and disobey the standard config is if it's not a standard setup and is, for example, an nginx that is bundled up with some other software and not following the standard configuration locations as a result.)


Tweeter destroyed by ultra high volume. Any kind of protection?

Hmm, I don't know at the moment if there's any software that will help with this, but since you said that an advertisement started blaring at full volume and blew out your speakers, I'd recommend using an adblocker for the sites that have ads with sound. (One of my favorites for Firefox is Adblock Plus.)

This will also indirectly punish sites that have loud ads, as they will lose the revenue from the blocked ads. This is an unintended but nice consequence. ;)


How to get External Display work in Zenbook with Intel Graphics?

Your GPU is the integrated Intel which uses the package xserver-xorg-video-intel by default. It is very buggy and will be removed from Ubuntu in the coming releases for modesetting.
You can do

sudo apt-get purge xserver-xorg-video-intel, which puts Ubuntu to use the modesetting package.
Reboot
Let me know your result.

If the result is unsuccessful, you can install the package back by sudo apt-get install xserver-xorg-video-intel.

As a side-note, my laptop crashes often with xserver-xorg-video-intel package, just when I connect the cable there.

Hardware: Asus Zenbook UX303UA
Ubuntu: 16.04 64 bit
Linux kernel: 4.7
GPU: Intel integrated
Graphic package: modesetting


Can Ubuntu Touch be installed on 64GB memory version of Meizu Pro 5?

yes is the answer as I just done that yesterday have a look here, there is the proof that I have install it to 64GB 4GB RAM Meizu Pro5 which was originally Android.

here is the photo of my PRO5 64GB, 4GB RAM

https://plus.google.com/u/0/101216811071065193275/posts/H8Q6AUgf1jG?pid=6311591721134846306&oid=101216811071065193275


Can't Uninstall LibreOffice5.3 on Ubuntu 16.04

To remove software installed with "snap" use

sudo snap remove {package_name}

Libreoffice would be ...

sudo snap remove libreoffice

I did not find a snap for Impress itself so start with that one 1st.


Bug caused during installing genymotion emulator

check if your are in the right folder whwhere you have downloaded the genymotion then run the commands

chmod +x genymotion-2.1.1_x64.bin


How can I upgrade from current release to next daily build? (15.10 > 16.04 daily)

This works:

sudo apt-get install update-manager-core
sudo do-release-upgrade -d


Is it possible to install LineageOS on a device using Ubuntu?

Yes, you can! All or most of the steps of the installation LineageOS can be done in Ubuntu Linux, just follow the instructions on the wiki of LineageOS, the instructions depends on the device.

LineageOS can be installed with Ubuntu (only) on a lot of devices, e.g.
Nexus 6P, Galaxy S9.

But for some devices access to Windows is needed for some parts of the installation, e.g.
- unlock bootloader of XIAOMI phones.

In case Windows is needed you can use Virtualbox on your Ubuntu Linux computer:

Install Virtualbox with a WindowsOS, see Virtualbox Wiki or this AU question.
Be sure to install the Virtualbox extension pack is installed, see Virtual Box Wiki or this AU question.
Activate USB 2.0 or 3.0 in the Virtualbox Settings: Enable USB Controller.

Open System->Administration->Users, and select your user name. Click "Manage Groups", and scroll down to vboxusers. Click "properties", the make sure your user ID is checked. Re-start VBOX and USB should work. Source: Softpedia.
Then you should be able to connect your Android device with the Windows in the Virtualbox and e.g. do the steps needed to unlock your XIAOMI smartphone.


HP Compaq locks up since upgrading to 18.04 LTS

I followed the instructions in DebuggingKernelBoot and saw:

  started user manager for uid 123

as the last message before it locked. Searching for this led me to Ubuntu 18.04 hangs on booting with message “started user manager for uid 120” on Asus 1015PX which linked to a solution in 17.10 to 18.04 upgrade freezes during boot - look for "Update #7" in the question:

  Turns out that the problem isn't a gdm3 vs lightdm problem. It's a
  gdm3/wayland problem with older Intel GPU's. To fix...

  In terminal...

cd /etc/gdm3 # change directory
sudo pico custom.conf # edit this file

  Find and change:

#WaylandEnable=false

  To this:

WaylandEnable=false

  Save the file.

sudo dpkg-reconfigure gdm3 # select gdm3 DM

  Select gdm3 and OK.

reboot # reboot the computer


Can I use KVM on a "real" Windows install?

I've not used kvm, but there's a guide to converting a physical installation of Windows into a Virtualbox VM here:
http://www.virtualbox.org/wiki/Migrate_Windows

This works quite well for Windows XP once it's installed drivers, but with Windows 7 I suspect the Windows Activation process will throw a fit because of the hardware change, and you will need to reactivate. That may involve a phone call to Microsoft. I've done this a few times with XP.

Using the existing partition directly as the disk in a VM (you can do this with VMWare Server) could also work but with the same caveats. And then you'd go through the driver and activation cycle again if you tried to boot from the partition directly. I wouldn't recommend this.

It's worth nothing that Chrome is going to be adding password sync into its own sync mechanism soon, and it is in the development channel. (I haven't test this).
http://lifehacker.com/5543459/password-sync-coming-soon-to-google-chrome


The OSD is usually stand for On Screen Display. There is a CSS property for it.

This CSS file is loaded by GNOME Shell to extend properties of DrawingArea - see search results in Debian's source code.

  The DrawingArea widget is a blank window that gives you the freedom to create any graphic you desire.
  [see GNOME Developer Manual for details]


everything got superbig after sudden poweroff in ubuntu 20.04

Check if dedicated gpu is detected via lspci | grep VGA ,if you get an output then you have corrupted drivers and need to  reinstall it (nvidia or amd or intel have linux gpu drivers).
Edit: Try typing in the command  sudo ubuntu-drivers install ,  note that some nvidia gpu is EOL (340 series needs kernel 5.4 , if you want to run it) .

This Linux 340 legacy driver series has provided extended support for the G8x, G9x, and GT2xx GPUs


Wireless not working on Kubuntu 14.04 Qualcomm Atheros AR9485

I had a similar problem with my DELL E5420, I have fixed it by disabling the default driver. Go to system settings, Driver Manager, and unmark the marked driver. Then reboot the computer with the wireless turned on. After reboot, wait a while, then turn off wireless and turn on it again. After, try con connect to some network.

I hope this helps.


dpkg always failing, complaining about missing package name

The packages file is corrupted. You can fix them with the steps below as discussed in this post

sudo dpkg --clear-avail

and the rebuild using

sudo apt-get update


As per the link that @tom has pointed out above, it is certainly possible to do so, but this is a bad idea.

There are countless exploits that could be performed with access to apt + dpkg, here's one off of the top of my head:

Create a simple deb package with a special install script that simply adds a particular user to the admin groups and/or changes the root password.
Install the package using sudo dpkg -i or the Software Center.
You now have root-level permissions to the system.

Another possibility would be users installing potentially hazardous software on the computer and/or removing important things, esp:

*libc* (Most programs use many, many c calls)
linux*(No kernel = nothing to boot)
grub* (No bootloader = no booting into kernel)
* My favorite - PURGE ALL INSTALLED PACKAGES

A better idea that might work out for you would be to have an install queue that users can recommend packages to, which a sysadmin checks every now and then and installs where necessary. Installing across multiple machines could be done in a variety of ways. Here's one easy way to install across selective groups of machines:

Host additional packages on a repo on a server within your control within your network.
Make sure that the repo is setup on all computers within the building.
Setup a cronjob that runs every 15 or so minutes to install all upgrades (sudo apt-get update; sudo apt-get -y upgrade)
On the repo-server, if you want a group of computers to have a given package, update the package for that group of computers so that the package you want installed is a dependency of the computer-group-package.
If the package you want to install (and/or its dependencies) are not available from the main repos, add them to the repo-server.

Hope this helps.


How to check which SMTP client I have installed?

Most email programs, like Thunderbird or Evolution, have a SMTP client build in to send mail, so you can have more than one SMTP client installed and there is no easy way to get a list of all installed clients.

What do you want to do?


Backup Ubuntu 16 with Windows 10 dual boot system

The answer to it is both simple and complicated.

There was a program called Remastersys, with which one can backup the existing OS(Debian/Ubuntu) with all settings and files to a live CD/DVD with which one can Live boot to the OS with all files and settings, or install the OS with all files and settings. Development was ceased sometime around 2013 :(

A fork of that original project is Respin
Deb package and source is available here

You can use it to do the same. I have not tested it yet though, but should work.

BACKING UP EVERYTHING

As for backing up the entire system along with Windows + Ubuntu + MBR + Bootloader there are many ways to do it. I am going to describe one of the method that should work:

STEPS:

Take a External HDD with size greater that your existing HDD
Create a Live Ubuntu Pen Drive and boot using the Live Pen Drive
Connect the External HDD where you will be taking the backup.
Open a terminal and backup your Existing HDD to a Image file in your External HDD by using dd in the following way

===============================================================

CAUTION: Understand what you are doing. 'dd' can overwrite anything, including your existing HDD as well. Research carefully how to identify you hard disk drives, or you may end up destroying everything.

sudo dd if=/dev/sdx of=/media/ubuntu/HDD/diskimage.img bs=64K

Here /dev/sdx should be /dev/sda or /dev/sdb or whatever your existing hard disk is. Make sure it is not a partition like /dev/sda1 or something.

Make sure none of the partitions of the Existing HDD is mounted.

The external HDD when connected should be found under /media/ubuntu like if you have named your external hard disk as HDD, it will show as /media/ubuntu/HDD/

/media/ubuntu/HDD/diskimage.img is the backup image file you are creating to backup the HDD.

The process is going to take a very long long time, depending upon the size of your existing hard disk. After you have entered the above mentioned command, there will be no output or progress. It might seem that nothing is happening. Status will be shown only after the process has completed. So don't worry, just let it run. If you want to verify whether something is actually happening, just open another terminal and type:

df -TH

rerun this df -TH again after some time, you will notice Available and Used size of your External Hard Disk will change with time.

After the process is complete, final status will be shown. and you are done.

You can repeat this process as frequently as you think necessary.

To restore you system after crash or corruption just follow Steps: 1-3
In Step:4, interchange the if and of path like this:

sudo dd if=/media/ubuntu/HDD/diskimage.img of=/dev/sdx bs=64K

and let the process complete. After the process has completed, just shutdown, remove Bottable Pen Drive and External HDD and just boot normally. You should get back to the state in which you had taken the last backup.

FINAL WORDS

In my opinion, instead of painstakingly backing up HDD like this, you should rather keep backup of all your data in separate partition and back them up regularly to External HDDs using tools like rsync

At the most, you can backup your Ubuntu installation using programs like Respin, for rest of the part, you should consider re-installation.


I want to re-install 16.04 on dual boot laptop

First of all, just like @user535733 suggested, try to scan your hard disk for health issues. You can try HDSentinel, they have free linux version and I found it pretty good:
https://www.hdsentinel.com/hard_disk_sentinel_linux.php, safest approach would be to run it on Ubuntu LIVE USB to make sure normal system operations/services are not affecting the disk reads/writes (this can happen if you have some indexing software running (i.e digikam or similiar)

Then, backup all the data onto external hard drive, reinstalling system in a good way, means formatting partition and installing system from scratch.If you're not sure about what you're doing, backup both ubuntu and windows (highly advised even if you think you know)

Then, you can run ubuntu live USB and install from there. Make sure to select correct installation type during the installer wizard:

One you're in that step, you'll be able to select your old partition as a ubuntu main partition without formatting your windows partition.

During normal ubuntu installation Grub will take care of adding windows partitions back to the boot menu.


Installing newest version of NodeJS on Ubuntu 16.04

I suggest using "Linux Brew" for installing NodeJS. At least that's what I do to have the latest version of node.

Follow the instructions of installing the brew from here. then run:

$ brew install node

Now you have the last version:

$ node --version
v13.11.0

Which lives here:

/home/linuxbrew/.linuxbrew/bin/node

No messing with sources.list and dependencies.


Have a look at Reconstructor. The hosted version is paid, but a standalone desktop version is available too that allows you to customise distributions. Might be an easier way of changing branding.


Add directories to $PATH without repeating yourself

Setting an Environment Variable for All Logins (no matter what type)

The best way is to use ~/.pam_environment. For example, to add /opt/blah/bin to the end of your PATH, you'd put this in the .pam_environment file in your home directory:

PATH DEFAULT=${PATH}:/opt/blah/bin

Setting Environment Variables Globally (but don't do this unless you need to)

If you want to add something to the PATH for all users, use /etc/environment instead. Confusingly, /etc/environment and ~/.pam_environment don't use the same syntax. While neither is actually a script, /etc/environment looks like a script (without any export commands). So, if you wanted to add /opt/blah/bin to the end of everybody's PATH, and the PATH line in /etc/environment started out as

PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games"

then you would change it to:

PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/opt/blah/bin"

Analysis

Most Bourne-style shells, including bash, will source ~/.profile when they are started as a login shell. zsh is an unusual exception; it will only do this if it is invoked with the name of one of the traditional Bourne-style shells. That is, if you call zsh by the name sh or ksh (most commonly achieved by creating a symbolic link to zsh with one of those names), it will behave like them and source ~/.profile (if it is a login shell). Otherwise, it will not. (Source: man zsh.)

This is why zsh in a virtual console session (for example, where you go to Ctrl+Alt+F1) doesn't set the PATH environment variable from ~/.profile. It is a login shell, but zsh is special; it does not behave like traditional Bourne-style shells unless it is pretending to be one.

Why does zsh running a Terminal window have the environment variables you set in ~/.profile? Because they were already set in your graphical session before you launched the Terminal. When you log in graphically, the display manager (which provides the graphical login screen and manages graphical sessions) acts like a login shell. Usually it sources ~/.profile (though it is not guaranteed that it will do so, and occasionally someone changes desktop environments only to find that ~/.profile is no longer sourced when they log in graphically).

There is nothing about text-based virtual consoles that makes ~/.profile not get sourced. For example, if your shell were bash instead of zsh and you logged on in a virtual console, ~/.profile would be sourced. The issue is that, unlike the reliable behavior of a traditional Bourne-style shell, and the not quite as reliable behavior of a display manager starting a graphical login session, zsh does not source ~/.profile when it's your login shell.

Similarly, with environment variables set in ~/.profile, if you were to log in remotely (for example, by enabling SSH and logging in that way), ~/.profile would not be sourced.

This applies to the global file /etc/profile too, by the way. If you set environment variables globally there, you'd experience the same behavior you're seeing setting environment variables for your user in ~/.profile.

The solution, provided that you don't need to write a scripted test to determine the contents of your environment variables, is to set user-specific environment variables in ~/.pam_environment and systemwide (i.e., for-all-users) environment variables in /etc/environment.

When you do that, PAM (specifically, pam_env.so) sets the variables on login, for basically every type of login, and does so before the login shell (e.g., zsh, bash for most people) or login-shell-like thing (e.g., a display manager) sources its own login configuration files. This is the generally recommended way to set environment variables on Ubuntu these days.

This way solves the problem of some login shells not always sourcing ~/.profile and /etc/profile (which is the problem you're experiencing). It also solves the occasional problem of a display manager not sourcing that file as it initializes a graphical login session (this is a problem which you are not experiencing).

Alternatives

What if:

you need to set environment variables on login, based on the results of scripted tests? Or
you just don't want to use .pam_environment (or for systemwide variables, /etc/environment?

If you weren't using zsh, but instead used bash or another more traditional Bourne-style shell, then you could just set your environment variables in ~/.profile (or /etc/profile for systemwide variables). On occasion there is a configuration where this doesn't set them for graphical login sessions, but usually it works.

Setting them in ~/.bashrc will not work for this purpose. Essentially only bash sources that file, so it will work neither when zsh is your login shell nor when the display manager acts as your login shell. (In other words, in your situation that will never work at all.)

Thus, if you need a script that is sourced for all types of login, and ~/.profile is being sourced for your graphical sessions, you can simply:

modify zsh's configuration to source ~/.profile, or
make both zsh's configuration and ~/.profile source a third, shared file. (This could even be added to a separate configuration file for graphical sessions, such as .xsession, if that turned out to be needed later.)

Of those two options, the second one is better unless you've read through the contents of ~/.profileand made sure they--and the contents of any script sourced from.profile--won't cause problems if sourced byzsh`. (It usually should not, but you never know.)

The best configuration file to modify, to make zsh source ~/.profile (or some other script) on login, is ~/.zprofile. This corresponds to ~/.profile on more traditional Bourne-style shells. (Strictly speaking, it's $ZDOTDIR/.zprofile, but $ZDOTDIR is typically ~.)

You would add the line source $HOME/.profile to that file.

I emphasize, however, that if just need to perform simple assignment to environment variables (including recursive assignment where an environment variables is assigned an expression containing itself and/or other environment variables), you should just use ~/.pam_environment as explained above (or /etc/environment for systemwide environment variables).


Unable to use USB after minor kernel upgrade

Just for others having the same problem (I had it too) - solution is described here - https://blog.al4.co.nz/2014/12/ubuntu-14-04-no-usb-keyboard-after-upgrading-kernel/
You need to boot to older kernel, and check if you have installed "linux-image-extra-x.x.x-xx-generic" package for your latest kernel.


Mounting encrypted LUKS partition from Live CD

Try this:

You need to Boot into a Live DVD/USB environment and open up a terminal window:

Press Applications --- Accessories--- Terminal

Install required packages using the following commands:

sudo apt-get update
sudo apt-get install lvm2 cryptsetup

Probe required module using the following command:

sudo modprobe dm-crypt

You find out which drive it was with the following command:

sudo fdisk -l

You must mount /dev/sda3 myvolume , You need to use cryptsetup:

sudo cryptsetup luksOpen /dev/sde3 myvolume

Now the device is accessible under /dev/mapper/myvolume

Scan for LVM volumes and choose the right volume group name that you are looking for:

sudo vgscan

Suppose it is system, activate that volume:

sudo vgchange -ay system

To find out your root volume, use the following command:

sudo lvs

Suppose it is root system you can mount it with the following command:

sudo mount /dev/system/root /mnt/

To work in volume use the following commands

sudo mount --bind /dev /mnt/dev
sudo mount --bind /dev/pts /mnt/dev/pts
sudo mount --bind /proc /mnt/proc
sudo mount --bind /sys /mnt/sys
sudo chroot /mnt


simply install windows 7 on the windows xp drive, then boot from Ubuntu Live CD and do tutorial from the link: https://help.ubuntu.com/community/RecoveringUbuntuAfterInstallingWindows


App icons missing from installed flatpak like Spotify, Simple Note in Kubuntu

The .desktop files for apps installed via flatpak are stored at /var/lib/flatpak/app/*application_name*/current/active/files/share/applications. If you copy the .desktop file from that location to /usr/share/applications, the icon should show up in your applications menu.


Shooting 5D Mark II w/ tethered storage but standard capture

I tried the DarkTable with Nikon D7000. I have tried only basic functions such as adjusting shutter speed. I was not able to adjust white balance by K-scale, only by the built-in presets (incandescent, etc). My camera had to be available BEFORE DT was launched. Otherwise it works fine. DT is basically a raw editor with "darkroom" editor mode, so new shots can be immediately processed.

Entangle specialized specifically on tethering  also looks promising, although I have not tried it yet.


Dropbox menu no longer opens folder or website

Simple grep-ing for --no-desktop does not return results on clean VM with default Ubuntu 19.04 with GNOME Shell.

But we can fix this using non-trivial hack - we will write wrapper for /usr/bin/nautilus.
This will be shell script /usr/local/bin/nautilus with the following contents:

#!/bin/sh
$(echo "/usr/bin/nautilus $@" | sed 's/--no-desktop//')

Note: the script above removes --no-desktop argument from argument list and it is quick and dirty hack, better solution may exist.

Do not forget to make this script executable with

sudo chmod a+x /usr/local/bin/nautilus

and you will get normally working Dropbox tray icon:

Also I have an alternative - caja-dropbox package - it provides integration of Dropbox into Caja file-manager from MATE DE.
It works as expected in all Ubuntu versions including 19.04:

IMHO it is a time to switch to full-feature ubuntu-mate-desktop.


Restrict ddclient updates to home network

I have two custom solutions you might be able to utilize.  One uses Wifi SSID only, the other uses MAC address determination.

Both versions have a prerequisite of you having a working ddclient configuration for OpenDNS.

Step 1 for both: Disable ddclient automatic executions.

I know the guide you used to set this up had you set it up as a daemon, but we are going to disable the automated ddclient update processes.

Edit /etc/default/ddclient.  We're going to disable the daemon mode to start with, and disable dhclient and ipup integrations.  That should make it look similar to this:

# Configuration for ddclient scripts
# generated from debconf on Tue Jun 26 12:45:45 EDT 2018
#
# /etc/default/ddclient

# Set to "true" if ddclient should be run every time DHCP client ('dhclient'
# from package isc-dhcp-client) updates the systems IP address.
run_dhclient="false"

# Set to "true" if ddclient should be run every time a new ppp connection is
# established. This might be useful, if you are using dial-on-demand.
run_ipup="false"

# Set to "true" if ddclient should run in daemon mode
# If this is changed to true, run_ipup and run_dhclient must be set to false.
run_daemon="false"

# Set the time interval between the updates of the dynamic DNS name in seconds.
# This option only takes effect if the ddclient runs in daemon mode.
daemon_interval="300"

Now, disable the ddclient service so it will not autorun.  I only have the 16.04 and later syntax to disable the service, but there are other threads on "How to disable services".

sudo systemctl disable ddclient

After this is done, you can use either of the two options below and their instructions to set up customized automatic processes.

Step 2: Decide which approach you want to use: Wifi-only SSID detection, or MAC address detection.  Depending on which solution you wish to go with, follow the specific section below.

Wifi Only: SSID Detection

This is the python code itself for an SSID-based detection.  Put the proper Wifi SSID in for the value stored in WIFI_NETWORK_NAME.

#!/usr/bin/python3

import shlex
import subprocess as sp

# Replace 'FillMeIn' in this line with the actual network name.
WIFI_NETWORK_NAME = "FillMeIn"

proc = sp.getoutput(shlex.split('iwconfig'))

if WIFI_NETWORK_NAME in proc:
    sp.call(shlex.split('ddclient -file /etc/ddclient.conf'))

Store this code in /opt/py-selective-ddclient.py.  You may have to store this in your home directory and then copy it into /opt/ with sudo.

Wifi and Ethernet: MAC Address Detection

This is the Python code for this solution; update the value for MAC_ADDRESS_ROUTER accordingly:

#!/usr/bin/python3

import shlex
import subprocess as sp

# Replace the fake MAC address below with the MAC address of your router.
# Make sure to use **uppercase letters** if you have letters present.
MAC_ADDRESS_ROUTER = "01:23:45:67:89:AB"

if MAC_ADDRESS_ROUTER in sp.getoutput(shlex.split('iwgetid -ra')).upper():
    sp.call(shlex.split('ddclient -file /etc/ddclient.conf'))

Store this code in /opt/py-selective-ddclient.py.  You may have to store this in your home directory and then copy it into /opt/ with sudo.

Step 3: Automate the Python code calls.

Now, we have to automate running ddclient, or more specifically automate the Python script.  The default ddclient settings have a 300 second (5 minute) delay between update checks.

First we need to make the Python script executable.

sudo chmod +x /opt/py-selective-ddclient.py

Then, start by making a file in /etc/cron.d/ with the following contents.  Note that you will need to use sudo to create the file.

*/5 * * * *  root  /opt/py-selective-ddclient.py

This executes the ddclient manually, every 5 minutes.  You can change the */5 part to make it execute at different intervals, but I am emulating ddclient's setup here.

Now, every 5 minutes ddclient will be called using our 'wrapper' script which does the selective determination.


MySQL requires restart in Terminal every time laptop is restarted. 14.04.2 LTS

Enter this command ad your mysql start automatically:

sudo update-rc.d mysql defaults


how do i bootstrap cfengine on ubuntu server

What version of CFEngine?

cf-promises -V

Please run cf-agent with the verbose option paste all output.


Setting file permissions (image for wallpaper use)

Paths on Linux are case sensitive. This means that Foo is not the same as foo. The "pictures" directory is actually called Pictures, not pictures so that's why your first command failed. The second failed because you told it to look for a file called DSC04787.jpg in the root directory (/).

Also, there is absolutely no reason to use sudo here. The file should be owned by your regular user so that user should be able to change the permissions. So, the command you were looking for was:

chmod +x /home/showtown/Pictures/DSC04787.jpg

However, there is absolutely no reason to make that image executable. Please post a new question explaining i) what desktop environment you use (this is called "Unity" if you are using the default Ubuntu); ii) exactly how you set the wallpaper (using what tool, clicking where, selecting what etc).

I see no reason why it shouldn't survive a reboot but setting the image to executable will not solve it.


install Ubuntu and complete wipe out Windows on a machine with a "Windows Boot Manager"

Make sure you save the product key and oem number to resell it if you are wiping it off your machine. Or if you want to reinstall it some day to play games. If you want to resell the machine make a backup of Windows 7.

This Lenovo support site states you need to press F1 or Enter to invoke BIOS setup at the startup. F2 does not work nor does "ThinkVantage" key.


How do I add i386 architecture in Ubuntu MATE 15.04?

To resolve it, run this command:

sudo dpkg --add-architecture i386

Or, if fails, you can still add it using the other answer's method below.


Intel AX200 not "claimed" and random purple screening when cursor is in the bottom left corner of the screen

Alright turns out that Windows is really greedy. By default Windows 10 has Fast Boot active, meaning that it hoards the builtin Wi-Fi card for itself, and doesn't let Ubuntu have it. If you turn off fast boot then Ubuntu will be able to register the Intel AX 200 card that is builtin the ASUS ROG Crosshair VIII Hero (Wi-Fi) board all fine and dandy.
I'm also convinced that my graphical error is a limitation of my NVIDIA GeForce GT 240 GPU. It only has 1 GB of VRAM and I assume that that is causing the purple screens for me.
TL;DR if you want to fix the Wi-Fi issue and you have Windows 10 installed on the same machine, consider turning off fast boot.


Syndaemon won't start as startup application

I am not sure what Syndeamon is or should do, but it could very well be that it is started too early, and crashes because the desktop is not fully loaded yet.

What you can do is to add a small pause of 10-15 seconds to the start up command.

To do that:

Open the automatically created .desktop file in ~/.config/autostart (drag it over a gedit window)
Replace the line, starting with

Exec=

change it into:

Exec=/bin/bash -c "sleep 10&&/usr/bin/syndaemon -i 0.5 -d -K"

You can experiment a bit with the time to optimize it.

Explanation

Some commands break if you add them to startup applications, because they need a fully loaded desktop to run succesfully, and Startup Applications runs the commands too early.

Touchpad- related commands are in that category, and then you need to add a little break after startup to make it work.

Since Startup Applications creates a .desktop file in ~/.config/autostart to run the startup command, you need the "regular" syntax to add a complicated command to be used in a .desktop file, which is in this case:

/bin/bash -c "sleep 15&&syndaemon -i 0.3 -d -K"


I finally found the solution to this problem https://okubuntu.wordpress.com/2018/02/07/distortions-in-left-earphone/


Found it! Menu items are located under Sound Juicer in the top bar next to Activities.


Considerations when restoring backup from 1 machine to another

If your main purpose is syncing apps, then just move your home dir and export/import the list of installed packages.

oldmachine$ dpkg --get-selections > list-of-installed-packages

newmachine$ dpkg --set-selections < list-of-installed-packages && apt-get -u dselect-upgrade


WIFI looses connection with AR9285 - have to disconnect / connect to regain internet?

I ran into comparable issues after I updated the configuration of my access point to "auto channel = ON": it checks the best wifi channel every X hours, and switches to it automatically.


L and S keys treated as shortcuts in Gnome

I would recommend navigating to Gnome Keyboard:

Settings -> Keyboard -> Shortcuts (tab)

Double check the Launcher Help Browser as well as On-Screen Keyboard shortcut in the Launcher and Universal Access categories respectively. The Backspace key should unassign the shortcut and mark it as Disabled. As for the shortcut assigned to your Backspace key, you will have to do a little detective work and follow the same steps.  Unfortunately, I was unable to recreate the same issue and wish you the best of luck!


How to turn off Desktop environment but stay with ability to use GUI programs?

No. However you can simply switch to a minimalist window manager (such as i3wm, sway, etc…) session instead and use a terminal app as your primary interface.

Otherwise, if you want to go for a full terminal interface only, and use only terminal based browsers and such, you could install the Ubuntu Server edition instead, and go from there.


init not found try passing init=bootargs

It sounds like the installation did not complete or the disk may be damaged or the fs at least corrupt somehow.  Boot from the livecd and use the disk utility to check the health of the disk.  Run the long SMART self test and make sure the counts for pending, reallocated, and offline sectors are zero.  If that looks good, then reinstall.


How to log out with a command in a gnome-less environment?

You could restart the desktop manager, which is similar to restarting X.

On Ubuntu 11.10:

sudo service lightdm restart

On earlier versions:

sudo service gdm restart

If that fails or you are on a very old system, try:

sudo /etc/init.d/gdm restart

One of these should take you back to the login screen.  Be aware that you will not be prompted, so save any work before running this command!


As I could not find the read-only settings in a config file or in gconf/dconf settings, I think the easiest method to undo it is through the menu.

You said toggling the state of the Read-only item in the Terminal window menu did not have any effect. I think this is a bug in your version of gnome-terminal, as it works for me in version 3.14.2-0ubuntu3 on 15.04. You may want to file a bug report for that one?

Now, the other menu where we can change the Read-only setting is the context-menu. You usually open it with a right-click, but you said you're unable to perform that with your broken touchpad (which makes me wonder how you managed to enable it then, but anyway).
Many keyboards also have a Menu key which should open a context menu in the current window. Yours seems not to have one though.

So we want to open a context menu with a right-click, but can't click ourselves. This sounds like a job for the famous xdotool!

Open another terminal emulator or anything which allows you to run commands. Move the mouse pointer above an open window of gnome-terminal and run the following command from the second terminal:

xdotool click 3

It will emulate a right-click on the current mouse pointer position. As this is on the gnome-terminal window, it will open a context menu there. You should now be able to unselect the Read-only option in that open context menu manually.


ssh connection refused; netstat LISTEN; nmap closed

I had exactly the same issue, you just need to run:

service sshd start
service ssh restart


EagleCad stopped working after update to 13.10

libXcursor library is missing. This should solve your problem:

sudo apt-get install libxcursor1

Also, it looks like you are no using Ubuntu packaged version of EagleCAD. You could just install that version by running sudo apt-get install eagle, and forget about the trouble with custom installer from EagleCAD homepage.