Lowering resource usage on Kodi-dedicated system

I have a box running kodi myself, and can share a few tips:

Do not run a desktop environment. Start kodi straight from the login screen.

If you have a large media library, using mysql for backend database may make sense.
Watch top, and see what actually uses CPU and memory. On my mediacenter it's basically mythbackend and kodi that consumes anything at all. On idle, with myth scanning epg, cpu use is 10% and load 0.1

By default there's really not a lot of processes using CPU. If you experience any playback issues, it's worth looking into those issues, not lowering cpu use in general.

Regarding memory, that's rarely an bottleneck on modern systems. Kodi is reported in at 7% of 8GiB, when playing a 1080p file. When not playing, it registers at 3%.

TL;DR: Do you expirience any problems? If not, leave it alone. If you have enough memory, it should not matter to you how this is used?


no space left in '/' but a lot space left in '/home'

/home contains user data by default.  It allows easy upgrade/change/re-install of the OS (ubuntu *; even changing to another, say openSUSE, Debian, ...) without causing wipe of your user data if a re-install is done.

You don't need a separate /home, but nearly everyone who didn't have it will eventually want it.  The 20GB / guide makes a huge assumption on what you'll load & use the system for; and for most 16gb is heaps, but I on [rare] occasion find 32GB small.  Adjust default/guides according to your intended use & software-needs.

Anyway, you can re-adjust partitions sizes (gparted but best done with live-media so the partition is NOT in use), or even move specific directories to store data on /home by /etc/fstab filesystem hacks etc.

What is best for you will depend upon your usage. (What's making you hit the 20GB wall?)


How to clear the list of recently used files to speed up my lubuntu operated PC?

I don't know if it will speed up your PC but here's how you do it:

$ rm ~/.local/share/recently-used.xbel


Network Manager icon doesn't appear in top panel

If you're using Unity, try to log off and choose Ubuntu Classic.

After that, see if the network manager is on the top bar. If it's not, then you can do this :

Right click on the top Bar, and choose Add to Panel
Just double click on Indicator Applet or Indicator Applet Complete


convert.im6: Unable to open image `xxx': Permission denied @ error/blob.c/OpenBlob/2638

Your suggestion is incorrect. Convert is available for all users.

If you're converting into a PDF and you're seeing Unable to open image 'xxx.pdf', the program has tried to open xxx.pdf for writing and has been rebuffed by the Kernel because the current user can't write to that file. There are a couple of reasons:

The current $USER can't write to the current directory. Try touch testfile and if that fails look at the directory permissions with stat .. To fix, either go to a directory where you can write, change the directory's permissions to allow $USER to write or change your user (eg add it to the right group) to allow it to write.

There are various ACL options on top of this but it's most likely you're just in a root-controlled directory in which case just go somewhere else.
There's already a file called xxx.pdf and it's owned by somebody else and $USER doesn't have write permission for it. Either sudo chown $USER: xxx.pdf (the : is not a typo), delete it and generate a new version from your $USER.

Both of these could be true at the same time.


Invisible processes using all of system memory

You have only 500 MB of RAM installed. I would not be surprised that most of it is in use, given those little resources.

On the other hand, htop sums up both the really used memory (allocated by applications) and the cache (used by the system to cache disk access, but immediately available to applications if needed). Therefore the "non-free" memory amount looks much greater than it actually is.

Check the output of free -h, it will give you more detail:

            total        used        free      shared  buff/cache   available
Mem:          11G        1,2G        9,2G         30M        1,2G         10G
Swap:        7,5G          0B        7,5G

While the used column shows you how much memory is in use in total (like htop), the available column shows you the amount of memory that is allocatable by applications. This is usually the number that is interesting to end-users.

Alternative output format (copied from the link at the bottom):

             total       used       free     shared    buffers     cached
Mem:          1504       1491         13          0         91        764
-/+ buffers/cache:        635        869
Swap:         2047          6       2041

In this format, the interesting number of allocatable RAM is located in the free column, but in the -/+ buffers/cache row.

Related must-read website:  http://www.linuxatemyram.com/


The issue seems to be fixed in Firefox v82. You can enable the Autoscrolling by going to Preferences and it works as expected.


Sounds like 32-64 bit problem. Just make sure that the machine on which you are doing the installation matches the download file in 32 - 64 bit.


virtual-maas has never actually been submitted to the charm store for review as it was a bit of an experiment and not something I felt was of sufficient quality for general use; if you want to check it out:

 bzr branch lp:~virtual-maasers/charms/precise/virtual-maas/trunk


A lot of PAM authentication errors on my logs targeting my mailserver. How do I stop it?

Firstly, this is not uncommon to see on mail servers.  Every Mail Server on the Internet sees these if port 25 is exposed to the web.  Even the mail gateways and mail servers at my workplace get hit with these, the reason that many of these attempts get filtered out and blocked is the IDS/IPS (Intrustion Detection / Prevention System) on the border of the network which refers to many sources of OSINT (Open Source Intelligence) to create a reputation-based set of bad IPs which are blocked.  Some of these probes get through, but they are not successful when they try.

In all likelihood, it's not a targeted brute force against your server, it's "the scanners and probes of the Internet" doing their thing to every Internet-facing SMTP server.  These're probably spambots attempting to probe for open relays, and if they don't find an open relay, they're likely probing to try and gain access to accounts in order to use the SMTP server as a mail relay.  Or it's a service scanner trying to see if you've got any 'weak passwords' in play so they can exploit them and then exploit your server to send their own mail via your mailservers.

So long as you follow the other security practices of strong passwords, not giving users access unless they need it, etc., you should be good to go in terms of them not breaking into your server.  I would be less concerned with the authentication failures, and more concerned if the auths were successful.

An additional security option is to set up Fail2Ban which will work to ban users, however I've yet to get this functioning properly and haven't had time to dig into it to make fail2ban work for my mail server to autoban IPs if they fail to auth too many times).  Tread lightly with this though, because it can also block you if you aren't careful.  (Once I have a 'working' Fail2Ban config I'll share that as a comment to this answer, but it's been tricky to get it to behave the way I want it to)

As for the cron:session entries in your auth.log, that's just a note that the system's cron daemon is running cron tasks from /etc/crontab, /etc/cron.{d,daily,hourly,monthly,weekly}/*, and the root user crontab per the schedule set for cron jobs as the root user (where the crontabs are set to run as root).  Those are typically OK, provided that you actually check every single crontab under the root account to make sure nothing 'bad' is running automatically as root.


Kubuntu 18.10 After returning from suspend, neither built-in keyboard nor the touchpad respond

Make sure you do it in the following order or you will be left with no input software - basically you need to apt-get install xserver-xorg-input-evdev package then apt-get remove the xserver-xorg-input-libinput package. Restart and you will have sensitivity and acceleration functionality again.
Touchpad not working on Ubuntu 18.04


Converting list of dates/times from GMT to PST

As an example, let's pick this value for i:

$ i='Sun Jan 01 06:49:33 2017'

Now, let's run the command in your loop:

$ "date --date='TZ="PST" ${i}'"
bash: date --date='TZ=PST Sun Jan 01 06:49:33 2017': command not found

As one can see, putting quotes around a command and its arguments confuses the shell.  Try instead:

$ date --date="TZ=\"PST\" ${i}"
Sat Dec 31 22:49:33 PST 2016

The above succeeds.

After placing this command within the loop, the loop now works:

$ while read i; do date --date="TZ=\"PST\" ${i}"; done < dates.input
Sat Dec 31 22:49:33 PST 2016
Sat Dec 31 21:44:17 PST 2016
Sat Dec 31 21:43:23 PST 2016
Sat Dec 31 21:39:13 PST 2016
Sat Dec 31 21:00:10 PST 2016


How to get Wireshark to monitor a specific IP in the background

The suggestion is to use tcpdump to do the actual packet capturing and saving. You can still use wireshark to view the packets in detail later on.

For example (where I am using a local IP address, just for the example):

sudo tcpdump -i eth0 host 192.168.111.190 -w 'eth0-%F-%H-%M-%S.bin' -G 600

will capture all traffic to/from 192.168.111.190 and save the entire packet to a file. To prevent huge files, and to make later investigation easier, the file name is changed every 10 minutes, with the file name containing the date and time as an identifier. Example:

-rw-r--r-- 1 root root      169739 Apr 16 16:11 tcpdump/075/eth0-2015-04-16-16-01-02.bin
-rw-r--r-- 1 root root       60191 Apr 16 16:21 tcpdump/075/eth0-2015-04-16-16-11-02.bin
-rw-r--r-- 1 root root      177895 Apr 16 16:31 tcpdump/075/eth0-2015-04-16-16-21-02.bin
-rw-r--r-- 1 root root      134816 Apr 16 16:41 tcpdump/075/eth0-2015-04-16-16-31-02.bin
-rw-r--r-- 1 root root      660839 Apr 16 16:51 tcpdump/075/eth0-2015-04-16-16-41-02.bin
-rw-r--r-- 1 root root      678867 Apr 16 17:00 tcpdump/075/eth0-2015-04-16-16-51-02.bin

Now, say I had an interesting /var/log/kern.log entry, that I wanted to investigate in detail at the packet level. I would open wireshark and use file then open and open the appropriate file based on the log entry timestamp.

Alternatively, you could use the -C option instead of -G to rotate the output files based on file size instead of by time. See the tcpdump man page for more details.

Now, to automate starting this command on boot, you could add it to /etc/rc.local, as mentioned in the comments, however that might be prone to a race condition between rc.local and the interface not being up in time, resulting in the following entry in /var/log/syslog (where it did not work 1 out of 3 times):

Apr 22 12:06:45 desk-ss rc.local[679]: tcpdump: listening on eth0, link-type EN10MB (Ethernet), capture size 262144 bytes
Apr 22 13:30:47 desk-ss rc.local[674]: tcpdump: eth0: That device is not up
Apr 22 13:33:20 desk-ss rc.local[665]: tcpdump: listening on eth0, link-type EN10MB (Ethernet), capture size 262144 bytes

So consider adding a delay, or adding it as a post-up addition to the /etc/network/interfaces file. First, the delay method the below line is added to /etc/rc.local:

sleep 20; tcpdump -i eth0 host 192.168.111.1 -w '/home/doug/eth0-%F-%H-%M-%S.bin' -G 600 &

Second, the post-up method, here is the /etc/network/interfaces file:

# interfaces(5) file used by ifup(8) and ifdown(8)
auto lo
iface lo inet loopback

# The primary network interface
auto eth0
iface eth0 inet dhcp
post-up tcpdump -i eth0 host 192.168.111.1 -w '/home/doug/eth0-%F-%H-%M-%S.bin' -G 600 &

For reference, here is the original /etc/network/interfaces file:

# interfaces(5) file used by ifup(8) and ifdown(8)
auto lo
iface lo inet loopback


How to use an SSD (device: /dev/nvme0n1) to install all the libraries instead of /home?

Answering my own question as I found this article on JetsonHacks which solves the problem. In short:

Install the SSD on the Xavier NX kit.
Use the Disks program from Dash to see if the SSD is detected.
Create a partition on the SSD.
Clone this repo: git clone https://github.com/jetsonhacks/rootOnNVMe.
Go into the rootOnNVMe folder: cd rootOnNVMe.
This script copies the rootfs from the SD card to the SSD: ./copy-rootfs-ssd.sh.
Finally, this script points the root to the SSD so that the system runs from the SSD directly after booting up: ./setup-service.sh.

Reboot the kit and it should be running from SSD directly.


"The following packages have unmet dependencies" Error

Wow, this was super easy, all I had to do was apt-get remove the dependency and install my target package.

For example...

account-plugin-facebook : Depends: libaccount-plugin-generic-oauth but it is not going to be installed or
                                    ubuntu-system-settings-online-accounts but it is not going to be installed

Simply do this

apt-get remove libaccount-plugin-generic-oauth
apt-get install account-plugin-facebook


Remove "(UNREGISTRED)" string from window title of Sublime Text 2

https://www.sublimetext.com/buy

Sublime Text may be downloaded and evaluated for free, however a license must be purchased for continued use.
Licenses are per-user, rather than per-machine, so you can enjoy Sublime Text on as many computers and operating systems as you wish with your license

Alternative Payment Methods
PayPal is currently the only way to purchase a license for Sublime Text. However, for most countries a PayPal account is not required; you can purchase as a guest using a credit card. Unfortunately, PayPal requires users in some countries, such as New Zealand, to create an account.
PayPal sometimes rejects valid credit cards. If this occurs, trying again later or using an alternate credit card has helped many customers.

Getting rid of the "unregistered" text will cost you 70 USD.

This is not software from Ubuntu itself. This is third party software and the creator of this software is free to choose their license. In this case it costs money.


Dual Boot with Windows 10 on external HDD

this is likely because the grub files are in the /boot directory of the external drive.

the best solution in my opinion is to make a 10 GB partition at the end of the internal drive to serve as root and use the external partition as /home.

If you feel like doing a bit of configuring with the installers partition manager, /boot is all that really needs to be on the internal.

all the other folders can be used for mounting partitions on the external. though doing every one is a bit of over kill. th main space users are /usr and /var.

Moving these two to partitions on the external will reduce the space needed by the root partition to less than 5 GB, maybe even lower.


Input signal out of range; Change settings to 1600 x 900

It appears from your comments, you have several problems

First lets try and resolve your original signal out of range issue.

If you are able to log in from the terminal with username and password IE the screen you are seeing.

You can try fixing the frequency out of range issue,that is currently  hiding grub, by running:

sudo nano  /etc/default/grub

Press enter

If prompted for password,add it, and press enter again

Using the arrow keys for up and down

find the line #GRUB_GFXMODE=640x480

and change to GRUB_GFXMODE=640x480

when finished making the changes hold down Ctrl button and press x

You should be asked if you wish to save,if so choose y

Now run:

sudo update-grub press enter

reboot your machine and hopefully you will at least see ubuntu and windows in your grub menu

If you still dont see grub, but the frequency out range no longer exists,then do as ObsessiveFOSS suggested and hold down shift during the next boot.This should bring  grub out of hiding

Option 2
If not able to log in,its probably best to boot the live cd again and use the boot repair tool.

You can find detailed instructions here https://askubuntu.com/a/139142/71679

Whilst using boot repair its also possible to fix the out of range issue, as suggested above, with a simple tick of a box.
To do this

Click Advanced options

Go to the GRUB options tab

Tick the out-of-range option

Apply

Reboot

Again if the frequency error message is gone but grub is not showing try holding the shift key


Can you try this script? (adapted from New Wave -Chronos)

#!/bin/bash
# Autor: Narf SS 2009
# Site: http://proyectobs.blogspot.com/
#
# Este script cambia el archivo de configuración del tema metacity "New Wave Chronos"
#y actualiza el tema.
#Para su funcionamiento (sin modificación) debe de ser añadido a la ejecución en el inicio,
#y el tema debe de estar instaldo en la carpeta ".theme" del home del usuario.
#Y por supuesto seleccionado en la apariencia del escritorio y este mismo script añadido a las aplicacioens de inicio.

while [ true ]
do
    hora=`date +%H`

    case "$hora" in
    06|07)          # Amanecer
        gconftool-2 --type=string --set /apps/metacity/general/theme 'equinox-evolution-dawn' ;;
    08|09|10|11|12|13|14|15|16|17|18)   # Medio dia
        gconftool-2 --type=string --set /apps/metacity/general/theme 'equinox-evolution-light' ;;
    19|20|21)               # Atardecer
        gconftool-2 --type=string --set /apps/metacity/general/theme 'equinox-evolution-dust' ;;
    22|23|24|00|01|02|03|04|05) # Madrugada
        gconftool-2 --type=string --set /apps/metacity/general/theme 'equinox-evolution-midnight' ;;
    esac

    sleep 1h
done


This is a bug in the kernel, try to update to 4.4.8 kernel according this:

sudo apt-get -y install linux-image-4.8.0-58-generic

I have 16.04 on samsung n145 and after upgrading the kernel I can at least suspend from menu an wake up laptop via power button.

Note: The 4.4.0-112 kernel runs also fine on the n145, also the Meltdown patch is included. The included Atom processor is immune against Spectre attack.


I'm a Voice system engineer working with asterisk for several years. The configuration files are located at /etc/asterisk (I'm sure you know that)
Although I'm not familiar with "OpenBTS" you are most likely using some kind of Web interface (like FreePBX) and each time you modify (lets say extensions.conf) the webinterface will overwrite your files.
Make sure your files are not modified by some WebUI or other simillar aplication.

Search in that direction.

Check cron... apache.... /var/www/... etc...
Good luck.


Can I customize the colors in my R terminal environment?

You can use RStudio for writing/editing R scripts. In my opinion R Studio is the best GUI/IDE available for R development. In RStudio under tools -> Options -> Appearance you can change the color of your R console and also change the fonts.


No Internet Connection in Ubuntu 16.04 LTS

from what I can see in the /etc/network/interfaces file, network-manager is not currently managing your eno1 interface.
To make this interface managed, add the following stanzas to the /etc/network/interfaces file,

auto eno1
iface eno1 inet auto

Then restart network-manager by doing the following. sudo service network-manager restart.


Activate the plugin: Preferences/Plugins and check Python command line (or something similar, this is my translation)
Under View, check Bottom panel.


Unable to install or upgrade after an upgrade to 16.04 with gcc-doc error

I had the same problem here. Then after googling, I found solution (i hope) on How to fix "Package is in a very bad inconsistent state" error?

Run:

sudo mv /var/lib/dpkg/info/<packagename>.* /tmp/
sudo dpkg --remove --force-remove-reinstreq <packagename>
sudo apt-get remove <packagename>
sudo apt-get autoremove && sudo apt-get autoclean


How to know the login and password details, my name and computers name after i'm done installing ubuntu?

Username

Your username is usually your first name when you enter your first name and surname into the designated box during the installation process. The username is always in small caps, but at the graphical login screen your full name is shown in the default installation and you just need to remember your password. Alternatively you could also boot live media, mount the file system and look in the directory home of your installation to see which accounts exist. Digging deeper you can find all user and system accounts in /etc/passwd.

User password

You have to remember the password before you continue, or you would normally not be able to login. But you can reset your password.

Computername

You don't need to remember your computer name or hostname, as this is shown to you at graphical and terminal login. Unless you don't customize this, the device name of your computer or motherboard is picked and probably stripped of some numbers to look nicer and your username is added. So your computer could be named Thinkpad-$Yourname, ProBook-$Yourname, Zenbook-$Yourname if that's what you have. The hostname is defined in /etc/hostname.


How can I get `apt-get update` to reflect error status in its exit code?

You could create a bash script that check the command output :

if { apt-get update 2>&1 || echo E: update failed; } > result.txt; cat result.txt | grep -q '^[(W)|(E]:'; then
    echo error
else (
        if  cat result.txt | grep -q '^[(Get)]:'; then
            echo repaired
        else
            echo success
        fi
    )
fi

Here, we check if a line start with E (Err: or E:, etc..) for errors or with W for warnings. Both return the status code error.

If there is no error and there is a Get:, it means that we update our repos. It returns the status code repaired.

And finally, if we havent encountered any of those, the script was a success.


Examine the offending disk to insure it has no deep scratches that would interfere with the lasers ability to read it. Once you are certain you have a good disk:

Open VLC, hold the CTRL key and tap D

This setting works fine for me. /dev/sr0 also works for me.


How do I stop the lock screen from dimming to black?

Ubuntu 16.04

I have also been trying to figure out how to stop the lock screen from dimming. I can not seem to find anything associated with the screen dimming when going to the lock screen that I can edit/tweak.

I tried all the usual suggestions of

gsettings set org.gnome.desktop.screensaver idle-activation-enabled false

gsettings set org.gnome.desktop.session idle-delay 0

gsettings set org.gnome.settings-daemon.plugins.power idle-dim false

but none of them worked.

**** WORKAROUND ****

However invoking an activity once the dimming starts seems to then follow what ever settings you have enabled in the system settings > Brightness & Lock > settings.

The way you can stop it is by locking the screen then typing a few random characters into the password prompt. It will now no longer dim.


update-initramfs and linux-firmware while installing and updating softwares

The reason for the error is that your /boot partition is full. That is most probably due to many linux kernels being installed. The process to fix this is as follows:

open a terminal and become root or use sudo
find list of installed kernels dpkg -l | egrep 'linux.*(image|header)' and save it someplace safe to refer to it.
Find your current kernel version uname -r and save it for reference
remove at least one combination of image and header package to free space apt-get autoremove --purge linux-headers-4.15.0-52 linux-headers-4.15.0-52-generic linux-image-4.15.0-52-generic
take care to not remove your current version and the latest one (look at the numbers and judge)
Take care not to remove all kernels
rebuild all initrds update-initrd -u -k all
clean unneeded packages apt-get autoremove --purge

That should fix your issue


Error with software updater: "E:The repository 'http://ppa.launchpad.net/clipgrab-team/ppa/ubuntu cosmic Release' does not have a Release file."

Welcome to askubuntu.com! That error shows up because repository doesn't provide packages for Ubuntu 18.10 (Cosmic Cuttlefish). The most recent release for which it provides packages is 18.04 Bionic Beaver.


None of the tools in the GIMP 2.8 toolbox are functional

I think the GIMP2.8 should be in /usr/share/gimp not the other way around. Try moving your install there, instead of moving your installed files to your 2.8 that's in your home dir.


Bitcoin has now an officially maintained PPA with a release candidate version of the peer-to-peer daemon and the client.

Bitcoin has a launchpad project i.e. same project status as Unity/Docky/Openshot etc.  The maintainer - Matt Corallo - is a major contributor to the official bitcoin.org website.

This will upgrade all versions from 10.04 and later.

The following instructions will upgrade your system to the latest version of the client

sudo add-apt-repository ppa:bitcoin/bitcoin
sudo apt-get update
sudo apt-get install bitcoin-qt

Confirmation that this OK to use is via the bitcoin forums.


Renaming multiple files at once, with the same extension

You can make use of bash’s globstar option, enabled with shopt -s globstar:

If set, the pattern ** used in a pathname expansion context will match  all  files  and  zero or more directories and subdirectories.

printf '%s\0' **/*.srt | xargs -0 rename 's/srt$/en.$&/'

This builds a zero-delimited list of every file matching *.srt in or under the current directory and pipes it to xargs which runs rename as often as necessary. The rename expression substitutes the final “srt” with “en.” followed by the matched string ($&).
Example run
$ tree
.
├── 1
│   └── test.srt
├── 2
│   └── 3
│       └── test.srt
├── srt.srt
└── test.srt
$ shopt -s globstar
$ printf '%s\0' **/*.srt | xargs -0 rename 's/srt$/en.$&/'
$ tree
.
├── 1
│   └── test.en.srt
├── 2
│   └── 3
│       └── test.en.srt
├── srt.en.srt
└── test.en.srt


How to fix:

sudo mv /var/lib/dpkg/info/arangodb3e.* /tmp/
sudo dpkg --remove --force-remove-reinstreq arangodb3e
sudo apt-get remove arangodb3e
sudo apt-get autoremove && sudo apt-get autoclean

and now I can install / reinstall other software including ArangoDB Enterprise, the install turned out to be a rouge install.

To remove all arango data:

cd etc
sudo rm -rf arangodb3

cd /var/run
sudo rm -rf arangodb/

cd /usr/share
sudo rm -rf arangodb3

cd /etc/lib
sudo rm -rf aranogdb3/

cd /var/lib
sudo rm -rf arangodb3/

cd /var/lib
sudo rm -rf arangodb3e/
sudo rm -rf arangdodb3-apps/

cd /var/log
sudo rm -rf arangodb3/

cd /usr/share/doc
sudo rm -rf arangodb3/

cd /var/tmp
sudo rm -rf arangod


On 14.04, I ran "openssl genrsa –aes256 -out server-sec.key 4096", but only got Usage prompt, what's wrong?

you have a double -- in front of aes256. your exact line with only a single - works for me:

$ openssl genrsa -aes256 -out server-sec.key 4096

that's what the help of the command says:

$ openssl genrsa  -h
usage: genrsa [args] [numbits]
 -des            encrypt the generated key with DES in cbc mode
 -des3           encrypt the generated key with DES in ede cbc mode (168 bit key)
 -seed
                 encrypt PEM output with cbc seed
 -aes128, -aes192, -aes256
                 encrypt PEM output with cbc aes
 -camellia128, -camellia192, -camellia256
                 encrypt PEM output with cbc camellia
 -out file       output the key to 'file
 -passout arg    output file pass phrase source
 -f4             use F4 (0x10001) for the E value
 -3              use 3 for the E value
 -engine e       use engine e, possibly a hardware device.
 -rand file:file:...
                 load the file (or the files in the directory) into
                 the random number generator


The driver for your device, rt2800pci is notoriously tricky. Neverthe less, there are some things we might try.

First, check the settings in the router. WPA2-AES is preferred; not any WPA and WPA2 mixed mode and certainly not TKIP. Second, if your router is capable of N speeds, you may have better connectivity with a channel width of 20 MHz in the 2.4 GHz band instead of automatic 20/40 MHz, although it is likely to affect N speeds. I also have better luck with a fixed channel, either 1, 6 or 11, rather than automatic channel selection. Also, be certain the router is not set to use N speeds only; auto B, G and N is preferred. After making these changes, reboot the router.

Then set your regulatory domain explicitly. Check yours:

sudo iw reg get

If you get 00, that is a one-size-maybe-fits-all setting. Find yours here: http://en.wikipedia.org/wiki/ISO_3166-1_alpha-2 Then set it temporarily:

sudo iw reg set IS

Of course, substitute your country code if not Iceland. Set it permanently:

gksudo gedit /etc/default/crda

Use nano or kate or leafpad if you don't have the text editor gedit.

Change the last line to read:

REGDOMAIN=IS

Proofread carefully, save and close the text editor.

Next, I'd set IPv6 to Ignore in Network Manager: http://docs.fedoraproject.org/en-US/Fedora/18/html/Installation_Guide/images/netconfig/network-connections-ipv6-ignore.png  This example is for ethernet, but you want wireless.

If these changes do not help, please try:

sudo modprobe -r rt2800pci
sudo modprobe rt2800pci nohwcrypt=1

After trying it for a few hours, if it helps, make it permanent:

sudo -i
echo "options rt2800pci nohwcrypt=1"  >>  /etc/modprobe.d/rt2800pci.conf
exit

We might also disable power saving in Network Manager:

sudo sed -i 's/3/2/' /etc/NetworkManager/conf.d/*

Finally, I worked on a recent case where N speeds in the router were actually slower! Please try setting your router to 802.11B and G without N.


Is is necessary to do apt-get update everytime

It's just a best practice.  There's an update daemon that checks on a schedule, at least if you configure it to do so, so the odds are you're "probably" going to get the latest version if you don't manually run apt-get update .  However, it's a best practice to do apt-get update first just to make sure that your package manager is aware of all of the software versions currently available in the repos.  Canonical is not like Microsoft, they don't publish updates only on certain days, at least that I'm aware of, so there could have been a new version of something uploaded at any moment, so it's always a good idea to do an apt-get update first to make sure your package manager is aware of that.


How to (un)dock IBM Thinkpad X41 from X4 Dock(ing station) successfully?

This is preliminary, but pending further findings I think this issue has been resolved by means of normal updates: it seems to be working just fine now (using the blue undock button on the docking station when undocking; and cycling through fn f7 if using an external monitor), hot-warm-lukewarm docking all seems to be handled well now.

Thanks, UBUNTU !

UPDATE:
even after (accidentally) undocking (while a lot of stuff was running) without pressing the blue undock button on the docking station the system remained stable / responsive / "there" / reliable / etc (only a quick "toggle" of fn f7 needed to get the display(s) back in order). So, finally, it just works !! yeah :D


Found it.
Edit the file ~/.byobu/keybindings.tmux to change tmux prefix back to C-b because F12 does not work on my computer.

# set -g prefix F12
set -g prefix C-b
unbind-key -n C-a

Save the file and press F5 to refresh byobu config. Then I can switch session like this (thanks to this cheatsheet):

C-b (          previous session
C-b )          next session
C-b L          ‘last’ (previously used) session
C-b s          choose a session from a list

This is the undocumented part of byobu but since it uses tmux, I could figure out many other advance uses of byobu :)


Install Nvidia drivers with cuda 10.0, ubuntu 18.04 and tensorflow gpu 1.13

OK, sorry for my absence. solved this, just one day after asked question. first of all i removed whole nvidia drivers (purge), then I made repository for graphics drivers and followed this code :

    Add NVIDIA package repositories
wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/cuda-repo-ubuntu1804_10.0.130-1_amd64.deb
sudo dpkg -i cuda-repo-ubuntu1804_10.0.130-1_amd64.deb
sudo apt-key adv --fetch-keys https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/7fa2af80.pub
sudo apt-get update
wget http://developer.download.nvidia.com/compute/machine-learning/repos/ubuntu1804/x86_64/nvidia-machine-learning-repo-ubuntu1804_1.0.0-1_amd64.deb
sudo apt install ./nvidia-machine-learning-repo-ubuntu1804_1.0.0-1_amd64.deb
sudo apt-get update

# Install NVIDIA driver
sudo apt-get install --no-install-recommends nvidia-driver-410
# Reboot. Check that GPUs are visible using the command: nvidia-smi

# Install development and runtime libraries (~4GB)
sudo apt-get install --no-install-recommends \
    cuda-10-0 \
    libcudnn7=7.6.0.64-1+cuda10.0  \
    libcudnn7-dev=7.6.0.64-1+cuda10.0

# Install TensorRT. Requires that libcudnn7 is installed above.
sudo apt-get update && \
        && sudo apt-get install -y --no-install-recommends libnvinfer-dev=5.1.5-1+cuda10.0

code from: https://www.tensorflow.org/install/gpu

when i check drivers nvidia-smi, I still got CUDA 10.1, but tensorflow-gpu == 1.13 works well.


What do I do about Badlock on Ubuntu 14?

Since you are on 14.04, your packages (in main) get security upgrades for 5 years. I guess the Ubuntu team is already working on that. You'll only need the ppa if you have reason to believe it's going to be exploited at your site before the fix hits official Ubuntu packages.


How to use PrtSc key as modifier (AltGr) key?

Try:
xmodmap -e "keycode 78 = ISO_Level3_Shift"

This maps the lvl3 shift to the keycode 78. On my system the print-screen button registers as keycode 78.
If for some reason this doesn't work for you.
Check the keycode for print-screen on your system.
Use this command:
xev -event keyboard

It creates a window. If you press a key while that window is focused, it prints key info into the terminal. The keycode of the pressed key is inside that info text.  Press print-screen while that window is focued and find its keycode in the terminal.
If the keycode is X instead of 78 on your system.
Just swap X for the 78 in the first command.
To make the changes permanent, put the first command into your startup config, whatever that may be. Judging from the question you probably know where it is.
Alternatively you can define a custom keyboard layout. For that see the second link.
Links to check out:
https://lukaszzagroba.com/creating-a-custom-keyboard-layout-in-linux/
http://karols.github.io/blog/2013/11/18/creating-custom-keyboard-layouts-for-linux/


On Ubuntu 18.04, I found two different keybindings for SUPER+P, which can be disabled with dconf-editor.

First, you need to install dconf-editor, if it's not already installed. This can be done in the terminal with the following command:

sudo apt install dconf-editor

Then you can launch it from the terminal:

dconf-editor

Within dconf-editor:

Navigate to: /org/gnome/mutter/keybindings/switch-monitor
If the "Custom value" field contains ['<Super>p', 'XF86Display'], then:

Disable "Use default value"
In the "Custom value" field, type the following: []

Navigate to: /org/gnome/settings-daemon/plugins/media-keys/video-out
If the "Custom value" field contains '<Super>p', then:

Disable "Use default value"
In the "Custom value" field, delete everything.


Problem in downloading new profile in Kdenlive

They moved the website in 2013 and left the profiles behind:

http://www.kdenlive.org/mantis/view.php?id=3133


Unable to show correctly symbolic icons with appindicator

Not sure what you mean by symbolic icon.

If you find that your icon does not match the colour scheme of your current theme, then you need to add icons to the relevant directory under /usr/share/icons and then run from the terminal sudo gtk-update-icon-cache /usr/share/icons/ubuntu-mono-dark for example.


(Ubuntu 15.10 64 Bit) Similar errors when running wine/steam/aapt - newline unexpected, expecting ")"

Okay, so many people don't know this, but by default Ubuntu links /bin/sh to dash, not bash. You can check this with the following:

ls -l /bin/sh

The dash shell does not support arrays as bash does as explained here.

You can check what shell you currently have open with:

echo "$SHELL"

That said, it's very odd that pre-packaged programs would be encountering that error. I would expect them to already start with #!/bin/bash if they needed it.

You can edit the scripts in question to include #!/bin/bash at the top.

If a script does not have a "shebang" line (the #! and etc. at the top) then the current shell is the default for using ./ for execution. You can change your login shell with chsh followed by your password when prompted and /bin/bash when prompted. You will have to relog.

If that doesn't help, you could also change the symlink (this probably won't break anything, but YMMV):

sudo rm /bin/sh
sudo ln -s bash /bin/sh


How to boot from a USB drive in VirtualBox?

VirtualBox itself does not support booting from a USB device. In order to boot from a USB device, another bootloader is required. The steps below provide one possible way to accomplish this:

Download Plop Boot Manager (currently v5.0.15)
Extract the file plpbt.iso from the ZIP archive and save it somewhere.
Open the settings for the virtual machine and attach the ISO file:

Add a filter for the USB device:

Boot the VM and select the "USB" option in the menu:

If all went well, the machine should now boot from the USB device.


XBMC starting after login insted of gnome

During the login click on the icon next to the name and select the required session such as GNOME, UNITY or XBMC.

The selected session will then become your default session for future logins.


In the bottom of the output of
wim@PC-kamer:~$ software-properties-gtk
there is the error:
dbus.exceptions.DBusException: org.freedesktop.DBus.Error.ServiceUnknown: The name :1.209 was not provided by any .service files

Is it safe to reinstall :
dBus
dBus-user-session
dbus-x11
python-dbus
python3-dBus
python3-dBus.mainloop.qt
ubuntu-system-service

anyone?


'apt-get' always fails with ERROR 404: Not Found over a package (flashplugin-downloader)

flashplugin-downloader is a package from the multiverse repositories. Version 11.0.1.152ubuntu1 is from 7 October 2011 and has been superseded by version 11.1.102.55ubuntu0.11.10.1, released on 11 November 2011 (source).

Some possible causes:

you haven't refreshed your packages list for a a while (sudo apt-get update)
you're using a mirror that is down or not updated. See How can I get apt to use a mirror close to me, or choose a faster mirror? for a way to change mirrors

Instead of using the flashplugin-downloader package, I suggest you to install Flash as described on How do I install Adobe Flash player?


How to fix broken packages in this specific situation?

For whatever reason dpkg --configure -a was essentially removed from Ubuntu a few releases ago (since 16.04 I believe) so it no longer works and will tell you that -a is an invalid target.

You say "did not work" but this doesn't provide much detail about how apt-get install -f failed, but I can make some assumptions. It probably spits out a name of a package that is in the broken state and what dependencies it requires.

After getting the name of the package that is broken and it's dependencies you can try apt-get remove either the package itself or the dependency. If it's a package you don't care about just remove it, otherwise try removing the dependency and seeing what would go along with that. It's usually caused by some tool wanting to keep a specific version of a library or program. Also take note if some "packages are held back" as this can also keep you from being to resolve dependencies.

Run apt-get install -f and it will continue this process until there are no packages in a broken state.


How to install Ubuntu 14.04.1 with dual boot through a virtual drive created upon win 7

if you want to keep your existing os which is win7 in your case, make a space (it's up to you) for ubuntu installation via diskmgmt.msc (run it as admin). shrink volume and you can leave it unformatted

use universal usb installer to create a bootable usb with your iso

boot up to live usb and within your installation chose something else (how to use something else) complete your installation.

restart into ubuntu live cd again (it might not be necessary but i do it anyways)

repair windows boot with boot-repair

it should work just fine

you can comment for further support...


“kubeadm init” fails on setting up Highly Available clusters

While not being able to find a decent solution and created an issue in the original  "kubeadm" project at github, see here: https://github.com/kubernetes/kubeadm/issues/1930 .

Since the "triage" suggested in the issue was not feasable (Ubuntu is pretty much "set") for me, I ended in setting up another Docker distribution, as described here: https://docs.docker.com/install/linux/docker-ce/ubuntu/ , purging installed distribution before starting the new setup.

While running Docker (Community) v19.03.5 through kubeadm v1.16.3 throws the following warning:

[WARNING SystemVerification]: this Docker version is not on the list of validated versions: 19.03.5. Latest validated version: 18.09

the results are pretty fine, I managed to setup my ha cluster, as described in the original documentation.

So, this can be considered as a workaround, NOT as a solution to my original issue!


Is there any (maybe web based?) software out there that would make maintaining the server easier?

Quick and painless: No.

There is some webbased software out there (like Webmin or Confixx), but it'll cause more problems than it helps.

For keeping your server up to date, you can simply use sudo apt-get update && sudo apt-get upgrade on the command line.


How to prevent mail sent from Mutt from winding up in junk folders?

After toying with it a little more, I realized I had misconfigured my mailbox folders in .muttrc:

What I had (sent mail, but it went to junk):

set folder="imaps://customers.freehosting.com"
set spoolfile=$folder
set postponed="INBOX.Drafts"
set record="INBOX.Sent"

What I changed it to (now works):

set folder="imaps://customers.freehosting.com/INBOX"
set spoolfile=$folder
set postponed="=Drafts"
set record= "=Sent"


Dual Boot Windows 7 / Ubuntu 20.04 on Windows legacy

This might happen if you install Ubuntu 20.04 in UEFI mode, while Windows 7 was installed in legacy BIOS mode. Ensure to boot the USB installer using legacy BIOS mode, and reinstall.
I had encountered a similar error when I installed Ubuntu in legacy BIOS mode on a UEFI enabled computer, which already had Windows installed.
In case you want to install Windows 10, I suggest you first install it in UEFI mode and then install Ubuntu.


Ubuntu 18.04 fresh installation, Thunderbird inbox "invaded" by large icons (coloured emojis)

This fixed it for me:

sudo apt-get install fonts-symbola

but turns the icons b/w!

From https://ubuntu-mate.community/t/thunderbird-with-huge-icons-emoticons-mate-18-04/16249/23

Here's a way of getting colored icons:

sudo apt-add-repository ppa:eosrei/fonts
sudo apt-get update
sudo apt-get install fonts-twemoji-svginot

I did not have to uninstall fonts-symbola for this to work but I don't know how Thunderbird decides which to use.

New font info from http://www.omgubuntu.co.uk/2016/08/enable-color-emoji-linux-google-chrome-noto


Clone a hard disk and then re-partition it

There is a system partition, so I suggest cloning as described also in the answer by @vidarlo, and I like Clonezilla, clonezilla.org.

Clone the whole drive.

Warning: Do not boot from the installed system, when both the original drive and the cloned drive are connected. It can damage one or both systems.

I suggest that you boot from an Ubuntu live drive (DVD disk or USB pendrive) and use gparted to edit the partitions on the new drive (after the cloning), GrowIt.pdf.

Keep the position of the head end of the system partition.

It is easy if it is the first of the two main partitions; in this case it might be simpler and it is definitely faster to remove the data partition, expand the system partition as much as you want. To move the data partition will probably be very slow.
Then make a new data partition (and probably also a linux-swap partition) in the remaining unallocated space.
Finally copy the data files from the original drive to the data partition in the new drive.

Otherwise, if the data partition is the first of the two main partitions, please let us know the partition structure as shown by the following command

sudo parted -ls

Edit: You have edited the question to include the output rendered as code (indent each line 4 spaces), and I have picked what I think are the relevant parts of it,

Model: ATA STM3500418AS (scsi)
Disk /dev/sdb: 500GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags:

Number  Start   End    Size   Type      File system  Flags
 1      1049kB  256MB  255MB  primary   ext2         boot
 2      257MB   500GB  500GB  extended
 5      257MB   500GB  500GB  logical
...
Model: Linux device-mapper (linear) (dm)
Disk /dev/mapper/al91--vg-home: 456GB
Sector size (logical/physical): 512B/512B
Partition Table: loop
Disk Flags:

Number  Start  End    Size   File system  Flags
 1      0,00B  456GB  456GB  ext4

Model: Linux device-mapper (linear) (dm)
Disk /dev/mapper/al91--vg-root: 30,0GB
Sector size (logical/physical): 512B/512B
Partition Table: loop
Disk Flags:

Number  Start  End     Size    File system  Flags
 1      0,00B  30,0GB  30,0GB  ext4

Model: Linux device-mapper (linear) (dm)
Disk /dev/mapper/al91--vg-swap_1: 14,3GB
Sector size (logical/physical): 512B/512B
Partition Table: loop
Disk Flags:

Number  Start  End     Size    File system     Flags
 1      0,00B  14,3GB  14,3GB  linux-swap(v1)

Error: /dev/mapper/sda5_crypt: unrecognised disk label
Model: Linux device-mapper (crypt) (dm)
Disk /dev/mapper/sda5_crypt: 500GB
Sector size (logical/physical): 512B/512B
Partition Table: unknown
Disk Flags:

You have a system with LVM. It is more advanced than the standard system used in Ubuntu. It should be more flexible to manage (than the standard system), when you know how to do it, but I have almost no experience of LVM systems. So I cannot help you beyond this point.

I hope that someone who knows will chip in an help you with relevant instructions. If there is no useful answer here within the next day or two, I suggest that you ask a new question about resizing an LVM system. It helps if you supply the output of the command

sudo parted -ls

and describe the details.

I think it is even better to search the internet for tips and tutorials, for example with the following search string: 'resize LVM' (without quotes).

I found this link to another question at AskUbuntu,

How can I resize an LVM partition? (i.e: physical volume)


how do install python 2.7.2 on ubuntuk with postgresql?

Ubuntu comes with Python installed by default, you don't need install any .tgz file downloaded from http://python.org/download/

The library for access postgresql in Python called "psycopg"

See: psycopg docs here: http://initd.org/psycopg/docs/

To install psycopg, you need to first install the build dependencies:

Make the terminal:

sudo apt-get install build-essential libpq-dev python-dev python-setuptools
sudo easy_install pip
sudo pip install setuptools -U

After, install from ubuntu packages repository

sudo apt-get install python-psycopg2

or, install latest version from pypi

sudo pip install psycopg2


How do I get CrossOver to recognise a disc in my disc drive?

It turned out that CrossOver was not having difficulty reading my disc drive but there was a copy-write issue where CrossOver couldn't read any of my discs for "legal reasons", at least according to Code Weavers tech support. They 'would not' help me fix this, after I paid $59.99 for their product (which I purchased to run disc software for school). CrossOver is a joke and their tech support is laughable. I ended up cancelling CrossOver and buying a refurbished desktop with Windows 7 so I could use my 'MedLook4' and 'Encoder Pro' for school. I can also now play Halo.


can't find logs while copying files in usb

Unless you are referring to the journal of some file systems, no general logs (of which I am aware) are made when files are copied to a USB drive.  The most common file systems used on USB drives (FAT32, exFAT) do not contain such journals.

I know of no general utility to view or work with file system journals.  However, you might find the following information useful:

For NTFS, you might be able to use ntfsinfo.  You can read more about the NTFS Journal:

Digital Forensics – NTFS Change Journal
GitHub: ExtractUsnJrnl

You might be able to use xfs_db for xfs.
For ext3/4, you can use debugfs to dump the journal and ext4magic to search and recover files.


I sudo deleted /usr/lib/python & /usr/lib/python3

You could download the deb files from pkgs.org, open it with an archive manager and unpack the folders /usr/lib/python and /usr/lib/python3 from those files.

You need libpython and libpython-stdlib
For 64bit, python2.7 and ubuntu 18.04 this would be libpython and libpython-stdlib. For other versions you need to find the packages with pkgs.org as said earlier.

The debs contain a file called data.xz. When installing, this file is unpacked. Go to usr/lib in that file. (In some archive managers ./usr/lib) From there you unpack the python folder to your /usr/lib and python should work again.


How do I stop the NetworkManager in Ubuntu 13.10 without using the service command?

Try closing all NetworkManager processes via the "system manager" tool. It's similar to "Task Manager" in Windows.


Shell variables are strings, not numbers. When you type 2 or "0.2224", it is seen as a string. The shell can handle some simple data conversion, so decimal expressions may work; but floating point values will not work.

To do math in the shell, you can pipe the values through bc and combine that with command substitution (the backtick wrappers around the command):

set d = 2
set result = `echo "$d * 0.2224" | bc`
echo $result

The syntax of this example is written for csh/tcsh, but the principle works in bash as well. If you need something more complicated than this, you may want to implement your script in python instead.


Disable warning messages about ntpd in syslog

I tried adding this in the ntpd config file (/etc/ntp.conf):
logconfig = -clockall -peerall -sysall -syncall

According to the manual, it should have prevented all logging but I still saw the "error resolving" messages appearing in syslog.
The only way I managed to stop the messages was by starting ntpd with the -l option and sending log file output to /dev/null:
ntpd -l /dev/null


Problem with 'insert_at_cursor' attribute

The method you are looking for is not on TextView, but on TextBuffer. So you need to do:

buffer = self.writetest.get_buffer()
buffer.insert_at_cursor('Hello World!')

The documentation link you gave does not point to a method, but rather to a signal. Signals cannot be directly called.


Most probably firewall is running.
check iptables status,

service ssh status

if running add rule to iptables:

iptables -A INPUT -m state --state NEW -m tcp -p tcp --dport $PORT_NUMBER -j ACCEPT


Package bluez-utils is not available, but is referred to by another package

It looks like that you are trying to follow the outdated documentation.
Even repology.org says that this package is not available in any current GNU/Linux distro.
It reports only GoboLinux with compilation recipe from 2008.

So I would recommend to install actual software with commands like:

sudo add-apt-repository universe
sudo apt-get install bluez-tools bluez-hcidump bluez

Use search on packages.ubuntu.com next time.


How to run the Wine virtual desktop fullscreen?

On my system, I have two monitors, but this works with just one monitor as well. All I had to do was set the virtual desktop size to the same resolution as my monitor (1920x1080). Find your screen resolution and set that to be the virtual desktop size.

I play Rocket League on Steam and set full-screen mode in-game, and it works perfectly well. The panels on my system (as seen in the screenshot on top) do not interfere at all and aren't there.


Check if you can find the file /etc/systemd/logind.conf

The contents of my version look like this (although I'm on a desktop):

# ... Loads of comments ...

[Login]
#NAutoVTs=6
#ReserveVT=6
#KillUserProcesses=no
#KillOnlyUsers=
#KillExcludeUsers=root
#InhibitDelayMaxSec=5
#HandlePowerKey=poweroff
#HandleSuspendKey=suspend
#HandleHibernateKey=hibernate
#HandleLidSwitch=suspend
#HandleLidSwitchDocked=ignore
#PowerKeyIgnoreInhibited=no
#SuspendKeyIgnoreInhibited=no
#HibernateKeyIgnoreInhibited=no
#LidSwitchIgnoreInhibited=yes
#HoldoffTimeoutSec=30s
#IdleAction=ignore
#IdleActionSec=30min
#RuntimeDirectorySize=10%
#RemoveIPC=yes
#InhibitorsMax=8192
#SessionsMax=8192
#UserTasksMax=33%

Try changing the commented-out line
    #KillUserProcesses=no
by removing the leading '#'

I think this should prevent your computer from closing your apps when it suspends.

You' ll need to sudo to edit it.


Edited /fstab, ruined everything, need help

Enter recovery mode and type:

mount -o remount,rw /

Now type:

nano /etc/fstab

This should open a command line text editor. From there, change this line:

UUID=9afb49b5-0651-4775-8a47-6f4bb3d0f682 ext4 errors=remout-ro 0 1

to this:

UUID=9afb49b5-0651-4775-8a47-6f4bb3d0f682 / ext4 errors=remout-ro 0 1

Below # swap was on /dev/sda5 during installation, add this line:

UUID=586732aa-c190-466b-9b50-51ca650e7010 none swap sw 0 0

Then press Ctrl+O to save changes, and Ctrl+X to exit the editor.
Type either poweroff or reboot.


Trying to install Jenkins on Ubuntu 18.04

I faced pretty much the same issue, till I followed the instructions on the Jenkins Installation Official Page.
wget -q -O - https://pkg.jenkins.io/debian-stable/jenkins.io.key | sudo apt-key add -
sudo sh -c 'echo deb https://pkg.jenkins.io/debian-stable binary/ > \
    /etc/apt/sources.list.d/jenkins.list'
sudo apt-get update
sudo apt-get install jenkins


How can I write a small script to clean every directory's files when the computer starts?

You can safely remove all files in the home directory, because they are recreated, apart from files copied on user creation from /etc/skel, so

#!/bin/bash

shopt -s dotglob
rm -rf /home/username/*
sudo -u username cp -a /etc/skel/* /home/username/

where username should be substituted with something meaningful.

Per your request ("when computer starts") this can be executed from /etc/rc.local. More likely, you want to execute it between each to logins, so put it under /etc/gdm/PostSession or /etc/gdm/PreSession.


The network printer will only print blank pages and will not stop. What should I do?

Looks like you-re sending postscript directly to the printer, which may not understand it, that's why it spits blank pages.

Please double-check that you're using the correct driver for the printer; the driver is responsible for translating whatever applications send (most commonly, postscript) to something the printer can understand, so the behavior you describe suggests that you picked the wrong driver.

To see which driver you're using:

Open the "Printing" control panel
Right-click on your printer and select "Properties".
On the first tab (Settings), look at "Make and Model".
If you need to change it, press the "Change" button next to the field.
Select your printer model (or something as close to it as possible) from the list.
Test to see if it's working correctly.


Problems inherent in ZFS Storage Pool Upgrade to 19.10?

Do NOT upgrade the bpool pool, as that will render your system unbootable. The bpool pool was purposely created with a legacy set of features so that grub can read it.

See also this bug report: https://bugs.launchpad.net/ubuntu/+source/zfs-linux/+bug/1847389


SMBFS/CIFS - can't navigate to paths with spaces

You have a broken alias setup for the cd command that is trying to do something involving dirname and su.  Fix or remove the broken alias.


I'd suggest the Ubuntu repair CD. Not sure if your laptop has a CD drive as many these days do not ship with Optical Drive.  You can also install the Repair utility inside Ubuntu, but I've not used it in that way.

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

It has a "Repair MBR" function that may be useful to solve your issue.

Found this info as well ...

  After you’ve got a live CD image, you can use the Startup Disk Creator
  tool included with Ubuntu to create a bootable USB drive from it. Just
  launch the Startup Disk Creator application from the dash and specify
  your new ISO file as the source disk image.
  From: http://www.howtogeek.com/109736/how-to-create-a-custom-ubuntu-live-cd-or-usb/


Just as @mikewhatever said, the "pia" package you're trying to uninstall never is your Private Internet Access application; they're both different.

Uninstalling Private Internet Access:

Since PIA was installed from binary files, all you have to do is remove the files.

Remove PIA Config: rm -rf ~/.config/PrivateInternetAccess

Remove APPIcon: rm ~/.local/share/applications/pia_manager.desktop

Remove Binary Files: sudo rm -rf /opt/pia, rm -rf ~/.pia_manager

Remove directory that starts with .pia_* from your home directory, it's okay if it's not there.

Uninstalling package like this can always be predicted from how you installed it first & yeah as always google first.


System keeps asking for cryptswap password

after lots of search engine fu,  I was able to find someone with the same issue as us. It was a simple fix:

sudo apt install ecryptfs-utils --reinstall
sudo update-grub

There was a long thread in 2015 about how ecryptfs-utils, GPT partitions, and swap can get a little dicey with systemd.


Multiple keypresses not working properly in games

This seems to be caused by my PS/2 USB adapter as the keyboard functions correctly on other machines running Ubuntu.


How to run a script on wake up from deep sleep?

You can use a systemd  service which will be wanted after hibernate

Have your script file in a known location /sbin/afterhibernate.sh
Create a file /etc/systemd/system/afterhibernate.service:

[Unit]
Description=Run script on wakeup after hibernate
After=suspend.target hibernate.target hybrid-sleep.target

[Service]
ExecStart=/sbin/afterhibernate.sh

[Install]
WantedBy=suspend.target hibernate.target hybrid-sleep.target

If you want it to be executed only after hibernate, remove suspend.target and hybrid-sleep.target

Enable the service file with:

sudo systemctl enable afterhibernate.service


I can't seem to find the right resolution for my computer 1280x720 is too big and 1024x768 isn't full screen

You could try other options, such 1024 x 768, 1366 x 768 or others...

If you don't have those options available, you can still apply them to your monitor using this program.


You can easily change the proxy settings for your user, or for the entire system, within the Network config under System Settings. This uses the GUI and is quick and helpful, but not very advanced. If you have particular requirements or special settings/circumstances, this may not do everything you need.

Open System Settings
Choose Network
In the left hand menu, choose Network Proxy
Enter your proxy settings. If you want to apply them system wide, press that button.
Close the window, or presss All Settings to leave this interface.

You should be all set. You may have to logout and login again for changes to take affect. In unusual circumstances, you may have to reboot your system, but that is highly unlikely for a Linux system.


In general you should search for software through the software center or if you like the command line, you can use apt-cache search.
In this case, the following package showed up (on 11.10): libssl0.9.8

You could try to install it (sudo apt-get install libssl0.9.8). If this does not help, you might want to tell us, which ubuntu version you are using.


Get a "panic not syncing" message after Ubuntu 18.04 upgrade

Kernel panics happen for a variety of reasons. Often due to hardware failure... You'll need to check out /var/log/dmesg and /var/log/syslog to get more info about what actually happened.

The easier is to use a live OS and re-enable it

vim /etc/selinux/config
    ...
    SELINUX=enforcing
    ...

Second choise is to disable selinux in the kernel arguments by adding selinux=0

vim /boot/grub/grub.conf
    ...
    kernel /boot/vmlinuz-2.4.20-selinux-2003040709 ro root=/dev/hda1 nousb selinux=0
    ...


Can not set proper resolution on this one monitor

Alright, i figured it out myself.

Using the Monitor Asset Manager I could determine a functioning ModeLine for that Monitor, which is:

"2560x1440@60" 241,500 2560 2608 2640 2720 1440 1443 1448 1481 +hsync -vsync


I have been facing problems in instaling MeteorJs via terminal in Ubuntu 16.04

Check your internet connection. Try again over different network. Still not working?

Sometimes, although a response might leave the server in peace, it does get to us in pieces (I mean as incomplete)

You can do this:

Visit https://install.meteor.com/
Press Ctrl + S to save as meteor.sh
Change directory to where you downloaded the file to,
You may have to chmod +x ./meteor.sh then run..
sudo ./meteor.sh


How can I extend primary partition into an extended partition's free space?

You need to shrink the extended partition by moving the starting point higher (toward the right).

Once you do this, you can grow partition 2 by extending the ending point to the right to take up the 17 GB free space that will now be outside the extended partition.

You should be able to do this without hurting existing partitions if you are careful and pay attention so you don't make mistakes (and if nothing unforeseen happens, such as a power failure or disk failure).


Why does clicking 'Shutdown' from Menu only log me off?

Do you have an encrypted home directory?

I'm not sure of the exact issue... but I've observed this in a couple of machines with an encrypted home directory but not under other circumstances.

I changed the encryption to Luks and the issue disappeared like magic.


How do I get out of fullscreen mode in Chrome with a Mac keyboard?

Press Fn+F11.

Fn will enable the actual F* keys instead of the media keys that are normally active.


Monospace font too thin and spindly in Chrome

If nothing else works, consider editing your Custom.css. It should be found at ~/.config/google-chrome/Default/User Stylesheets/Custom.css. (There's a space between User and Stylesheets! which doesn't matter if you get there via a file manager GUI.)

The file is empty by default unless you've already edited it. You could open it with any text editor and paste in pre, code, kbd, tt { font-family: "Ubuntu mono" !important; } or any other monospace font of your choice. But I don't like Courier. It appears fainter than other mono fonts.


It sounds like you want your music player to act like a flash drive, in that you can just drag and drop files. This is not possible with an iPod. If you want to be able to do this I recommend a different portable music player such as from Sansa. If you want to stick with an iPod, you have to use a program that supports them to edit your music library.


If Linux server is down (no response on ping command), is it possible to reboot the server using ssh?

You can't. You need to physically login and reboot.


I think I have found the reason, the screen is not turned off but a blank screensaver starts.

I don't know why Screensaver disappeared from system settings. I have installed xscreensaver package and deactivated it manually (set Mode = Disable Screen Saver).

Tell me if it will work for you.


How can I disable Elantech Touchpad while typing on Ubuntu 12.10?

I know it's not what you really want (completely automatic?), but there is an easy to make keyboard shortcuts to disable and enable the touchpad.

From your xinput list, the id for your touchpad is 12. Use this command to disable it:

xinput set-prop 12 "Device Enabled" 0

Use this to enable it:

xinput set-prop 12 "Device Enabled" 1

Bind these commands to your custom shortcuts (Keyboard / Shortcuts / Custom Shortcuts). Perhaps this can be made to a script?


Allowing Remote Desktop (rdesktop) through Ubuntu (16.04) DHCP Sever

You only have outbound NAT set up so that everything going through the system masquerades with the primary IP address and route to the Internet.  You don't have any port forwarding done.  Just like on standard off-the-shelf routers, you need to configure NAT rules to handle traffic coming from the outside and going in.

iptables basic port forwarding for TCP traffic is like this:

iptables -t nat -A PREROUTING -i [INTERNET_INTERFACE] -p tcp --dport [EXTERNAL_RECEIVING_PORT] -j DNAT --to-destination [TARGET_SYSTEM_IP]:[TARGET_PORT]

... with a corresponding rule in your FORWARD table like this:

iptables -A FORWARD -p tcp -d [TARGET_SYSTEM_IP] --dport [TARGET_PORT] -m conntrack --ctstate NEW,ESTABLISHED,RELATED -j ACCEPT

For UDP traffic, it's similar except without state tracking:

iptables -t nat -A PREROUTING -i [INTERNET_INTERFACE] -p udp --dport [EXTERNAL_RECEIVING_PORT] -j DNAT --to-destination [TARGET_SYSTEM_IP]:[PORT]
iptables -A FORWARD -p udp -d [TARGET_SYSTEM_IP] --dport [TARGET_PORT] -j ACCEPT

The assumption here, though, is that you have two system interfaces, one for outgoing traffic, and the other for incoming traffic from your LAN, with your system acting as the gateway.

Consider, though, that your Ubuntu server is likely not just doing DHCP, but is acting as the router on your infrastructure, which means you have to treat it as such.  (It's not just DHCP, it's the NAT and routing system)


Page up/down not scrolling but still working

It turns out that this was the fault of Wire. They registered global shortcuts with PageUp and PageDown which did nothing. It is being fixed.

By reading around the internet, in any case, it looks like this problem happens when there is a global shortcuts of the keys which does nothing. Doesn't really matter who registers it.


Only getting mirrorred display, not extended, when offloading from Nvidia to Intel iGPU with RandR

Okay, fixed it. As far as I can tell, extending a display (at least on my 580) requires use of the nvidiaXineramaInfoOverride option. I couldn't find any docs for this option in the relevant RandR sections of Nvidia's driver READMEs, or really anywhere - I came across it on the Arch forums.

Using this display setup, going left to right:

Nvidia : HDMI-0 : 1920x1080
Nvidia : DVI-I-2 : 1280x1024
Intel : HDMI-1-2 : 1280x1024

In Ubuntu 16.x xorg config files are located in /usr/share/X11/xorg.conf.d, with the filename being whateverYouWant.conf.

Here's the entirety of mine, based on the Nvidia sample, but with unnecessary sections removed and the nvidiaXineramaInfoOverride option added:

  Section "Screen"
      Identifier "nvidia"
      Device "nvidia"
      Option "nvidiaXineramaInfoOverride" "1920x1080+0+0, 1280x1024+1920+0, 1280x1024+3200+0"
  EndSection

  Section "Device"
      Identifier "nvidia"
      Driver "nvidia"
  EndSection

  Section "Device"
      Identifier "intel"
      Driver "modesetting"
  EndSection

Note the numbers by the "nvidiaXineramaInfoOverride" option. The number after the first '+' is for the width offset. Modify them so they're equivalent to the sum of the widths of the previous displays.

Finally, to start up the third monitor:

  xrandr --setprovideroutputsource 1 0
  xrandr --output HDMI-1-2 --right-of DVI-I-2 --mode 1280x1024


You have a new and I think very powerful nvidia graphics card. Ubuntu understands, that it is nvidia, because it is trying with the graphics driver nouveau, but it cannot run it in graphics mode.

Try with the boot option nomodeset, and
if that works, later on install Ubuntu, and
boot the installed system also with nomodeset, and
at this stage, try to install a proprietary graphics driver for this nvidia card.

It is most likely to work with the newest possible version of Ubuntu, 19.10, which comes with the newest linux kernel and its new versions of hardware drivers.


Partitioning Hard Drive and Ghosting/Copying Ubuntu OS to it

This looks like an XY problem.  If all you want to have is a fully restorable image of your system just:

Install CloneZilla Live as a bootable ISO
Go to the grub menu and boot CloneZilla Live
Use the device-image option
Save your boot disk.
If you ever need to restore, go to step 4 and chose Restore instead of Save.

If my assumption is incorrect, leave a comment and I'll delete my answer.


Is there any command line interactive tool like meld?

How about Vimdiff?

http://www.thegeekstuff.com/2010/06/vimdiff-file-diff-tool/

It might not look as fancy as Meld, but it looks like a great option for visual diffing in terminal.


apt-get upgrade stuck at the same package

My problem was that I interrupted the download of an apt-package (here linux-firmware) behind a proxy which caused a partial downloaded (and damaged) file in the proxy cache. When I tried to upgrade, the download of this package started in the middle of the file over and over again.

What I did was to download the file manually, put it into /var/cache/apt/archives.


Because the <Location> directives are appropriate for specific needs (rules) and such rules are not appropriate for any default configuration :)

  The <Location> directive limits the scope of the enclosed directives
  by URL. It is similar to the <Directory> directive, and starts a
  subsection which is terminated with a </Location> directive.
  <Location> sections are processed in the order they appear in the
  configuration file, after the <Directory> sections and .htaccess files
  are read, and after the <Files> sections.

  <Location> sections operate completely outside the filesystem. This
  has several consequences. Most importantly, <Location> directives
  should not be used to control access to filesystem locations. Since
  several different URLs may map to the same filesystem location, such
  access controls may by circumvented.

Source: Apache Core Features: <Location> Directive

The <Directory /> directive refers to the root / of the filesystem. In other hand <Location /> refers to the base URI -  http://example.com/, where example.com is the ServerName of a virtual host. So the rules written for <Location /> will override the rules written for <Directory /var/www/html>, where /var/www/html is the DocumentRoot of the particular virtual host.


Where are the cinnamon sound effect .ogg files located?

I installed Cinnamon via PPA:

sudo add-apt-repository ppa:embrosyn/cinnamon
sudo apt-get update
sudo apt-get install cinnamon

And certainly I found no sounds installed by default which is a bit annoying. However Ubuntu has several sound themes that can be installed:

andrew@athens:~$ apt-cache search sound | grep theme
sound-theme-freedesktop - freedesktop.org sound theme
ubuntu-sounds - Ubuntu's GNOME audio theme
kadu-themes - Additional icons and emoticons for Kadu
moblin-sound-theme - moblin sound theme
oxygen-sounds - Sounds for the Oxygen desktop theme
andrew@athens:~$

And I kitted my copy of Cinnamon out with the oxygen-sounds package:

sudo apt-get install oxygen-sounds

which leaves a nice sound theme that can be found in /usr/share/sounds.

Adding these sounds has to be done manually from within the 'Sound Effects menu of Cinnamon, sound by sound, but worked well enough. The available sounds:

andrew@athens:/usr/share/sounds$ ls  *.ogg
Oxygen-Im-Cant-Connect.ogg             Oxygen-Sys-App-Negative.ogg
Oxygen-Im-Connection-Lost.ogg          Oxygen-Sys-App-Positive.ogg
Oxygen-Im-Contact-In.ogg               Oxygen-Sys-Error-Printing.ogg
Oxygen-Im-Contact-Out.ogg              Oxygen-Sys-File-Open-Foes.ogg
Oxygen-Im-Error-On-Connection.ogg      Oxygen-Sys-List-End.ogg
Oxygen-Im-Highlight-Msg.ogg            Oxygen-Sys-List-Match-Multiple.ogg
Oxygen-Im-Internal-Error.ogg           Oxygen-Sys-List-Match-No.ogg
Oxygen-Im-Irc-Event.ogg                Oxygen-Sys-Log-In-Long.ogg
Oxygen-Im-Low-Priority-Message.ogg     Oxygen-Sys-Log-In.ogg
Oxygen-Im-Message-In.ogg               Oxygen-Sys-Log-In-Short.ogg
Oxygen-Im-Message-Out.ogg              Oxygen-Sys-Log-Out.ogg
Oxygen-Im-Network-Problems.ogg         Oxygen-Sys-Question.ogg
Oxygen-Im-New-Mail.ogg                 Oxygen-Sys-Special.ogg
Oxygen-Im-Nudge.ogg                    Oxygen-Sys-Trash-Emptied.ogg
Oxygen-Im-Phone-Ring.ogg               Oxygen-Sys-Warning.ogg
Oxygen-Im-Sms.ogg                      Oxygen-Window-All-Desktops-Not.ogg
Oxygen-Im-User-Auth.ogg                Oxygen-Window-All-Desktops.ogg
Oxygen-K3B-Finish-Error.ogg            Oxygen-Window-Close.ogg
Oxygen-K3B-Finish-Success.ogg          Oxygen-Window-Maximize.ogg
Oxygen-K3B-Insert-Medium.ogg           Oxygen-Window-Minimize.ogg
Oxygen-Sys-App-Error-Critical.ogg      Oxygen-Window-Move.ogg
Oxygen-Sys-App-Error.ogg               Oxygen-Window-Move-Stop.ogg
Oxygen-Sys-App-Error-Serious.ogg       Oxygen-Window-Shade-Down.ogg
Oxygen-Sys-App-Error-Serious-Very.ogg  Oxygen-Window-Shade-Up.ogg
Oxygen-Sys-App-Message.ogg
andrew@athens:/usr/share/sounds$

My advice is to experiment with this sound theme and perhaps some of the others and make up your own cocktail of sound...


Regain access to windows after clumsily deleting Ubuntu partition (from inside windows) when getting a grub rescue screen?

How about a Ubuntu live dvd?Or
Maybe this can help,basically you should use EasyBCD:
https://superuser.com/questions/381285/how-to-install-grub-from-inside-windows-7

The once you are back in Ubuntu you use grub-repair.


File sharing between Ubuntu 18.04 and Windows 10 on same machine

The most quick solution did you have is to create a partition with a filesystem it is compatible with both OS (as my suggestion NTFS is a good choose), like this the data are available on both OS.

In this case you have to think that the files created have to follow the windows rules, you have to consider NTFS as filesystem case insensitive; so a file of folder stored there called DATA and another called data in the Linux OS are two different path but for the windows OS there have no difference between DATA and data, also the permission are different between the two OS, so it will make harder to manage permission correctly; as far I remember NTFS partition mounted with ntfs-3g driver give permission rwx to all.


Ubuntu Server 20.10 doesn't allow boot device selection

Got it installed without removing the partition:

partition 1 has to be created as 'BIOS' partition with fdisk (option 3), NOT EFI/ESP partition.

Then, it magically becomes also regonized bz the Storage tool as 'bios_grub' and the selection as boot device becomes possible.
Not sure why the comment seems to suggest differently...


Ubuntu complains that I am not "Owner" when copying files to certain folders

You copy the file using sudo

sudo cp file destination

For directories use th -R flag

sudo cp -R directory destination

If the files or directories have spaces, you have to quote or escape ( \ ) them

sudo cp "file with spaces" destination
sudo cp file\ with\ spaces destination

For information on Linux permissions and the use of sudo, see:

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

and

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


Starting a console program on startup of Ubuntu Server without logging in

I managed to follow some breadcrumbs to a solution.

Using a combination of both these links I managed to successfully have Glances display without login at boot.
https://unix.stackexchange.com/questions/211544/run-top-instead-of-getty
https://unix.stackexchange.com/questions/265014/how-to-start-a-script-on-tty-instead-of-asking-for-login-in-systemd


Ubnutu 18.04 - Where can I find the menu bar from a desktop window that is in use?

In Ubuntu 18.04 (starting from 17.10), which now uses Gnome Shell as desktop instead of Unity, the menu bar, if available, is presented in the document window. If it is not there, then the application has no menu bar.

There is indeed a trend in some applications to completely get rid of application menus. Most gnome applications, including the file manager (Files, aka nautilus), the document viewer (evince) do not have a menu bar. You will find the options through buttons in the main window and through the right-click menu. There is an "application" menu, that contains options applicable to the application as a whole. This menu is represented by the program name in the top bar. For many applications that do not care about that new trend, the application menu will only contain a "Quit" option.

So if you do not see a menu bar in the main window, then it is not there at all.


"JRE Libraries are missing or not compatible" error message

I found this solution and it works.

If you want the short version, just add this to the line after you type your installer.  For me, I was installing a .bin package.  I was using the line:

sudo ./INSTALLER.bin

Try this:

sudo ./INSTALLER.bin LAX_VM path_to_java_on_your_machine

So, for me, the entire command was:

sudo ./LiberoSoC_v11.8Linux.bin LAX_VM /usr/lib/jvm/java-8-oracle/jre/bin/java

I needed the sudo so the actual installer could write to /usr/local once it started.

To see what is going on with the LAX tool, set the environment variable LAX_DEBUG with

export LAX_DEBUG=true

Now you can see that the Lax_vm is trying to use the locally installed jre in /tmp, but for some reason that won't work on all linux platforms.  By telling it you use the one installed on your system, you should at least get the installer to start.  After that, you  are on your own.


wine 1.5.7 from ubuntu wine ppa doesn't work

It seems downgrading to version 1.5.5 works -- if you can downgrade.

However, I've found it easier (takes about 15 minutes) to restore my Ubuntu partition from the backup created by Clonezilla, which I regularly run to be on the safe side.
And then used Synaptic Package Manager to Lock Version to 1.5.5.

EDIT: This problem is also discussed here: Err: processtart_wineboot failed to start wineboot, err 1359
Upgrading to the latest version 1.5.7-0ubuntu4-pulse18 now seems to solve the problems caused by the 0ubuntu3 version.


Why doesn't hosts file get changed after the change of hostname?

Sometimes you may need to restart in order for any change to take effect. Also, I do not recommend connecting to machines using their hostname as it can be unreliable and a bit weird sometimes. I recommend just using the IP address instead.


How can I manage my genealogy data on Ubuntu?

Native clients

GRAMPS Genealogical Research and Analysis Management Program

sudo apt-get install gramps

LifeLines  Console based genealogy software to help with family history research

sudo apt-get install lifelines

Web

PhpGedView Web-based genealogy viewer and editor. To download

GeneoTree  Genealogy software in PHP / MySQL. To download

GeneWeb   Uses very efficient techniques of relationship and consanguinity computing. To download

Java

GenealogyJ    Full-featured viewer and editor for genealogic data. To download


How come many of the AppShowdown apps aren't available in Ubuntu anymore?

Apps submitted through our MyApps portal will not be automatically added to new releases, the developer is responsible for testing it and re-submitting it for each new release of Ubuntu.  If the apps were already approved for 12.04, then as long as they continue to work in 12.10 the review process should be relatively quick.


Unable to connect and GPG Error on Ubuntu 14.04

you can fix this problem by installing a software called Y PPA Manager.
copy and paste these commands in terminal to download and install it:

sudo add-apt-repository ppa:webupd8team/y-ppa-manager
sudo apt-get update
sudo apt-get install y-ppa-manager

after this launch it from dash. after launching it, seach for option called "Advanced" then click on "Try to import all missing GPG keys". Then wait for sometime until you get notification that its done.
after this click on "Try to fix all GPG BADSIG error". Wait for sometime until you get notification that its done.
then try to update, you wont get any error. comment if you have any issue


graphics card seizure hahaha I want to see that :)

Have a look in your bios settings, recently I've encountered  lot of errors regarding EDID and DVI when installing Lubuntu, which are to do with the screen, guess what the problem was? Not the screen or anything to do with graphics drivers- a setting in my BIOS regarding hard drive recognition was wrong.
So I'd suggest having a look at your bios settings- that has been the stumbling block for failed installations on two of my machines.

I found some more possibly helpful info here;
http://forums.fedoraforum.org/showthread.php?t=284419
and here;
http://www.linuxquestions.org/questions/linux-newbie-8/acpi-error-and-kernel-panic-on-boot-fedora-12-a-780467/

P.S. Try to avoid bios settings which look like they could ruin everything.


wubi install of ubuntu 12.10 on hp dv6 6154tx causes uncontrolled heating, fan speed, low battery life

This is because the latest drivers from AMD cannot still be used with 12.10. The X server version of 12.10 is too new and the drivers still don't support it.

If your laptop is overheating you need to install 12.04 and use the proprietary drivers, that will cool it down.

There are other solutions out there: downgrade X to a version supported by the drivers is one, I would not recommend this though. You need to install 12.04 with the proprietary drivers or you need to wait until AMD releases drivers that support the X version of Ubuntu 12.10.


How can I make coinprice-indicator open from startup?

This indicator applet is opened when you do cd ~/folder-cloned-from-git/coinprince-indicator then you use make and the indicator applet opens.

If you want this indicator applet to open from startup you need to do the following:

Open dash and look for Startup Applications
Open Startup Applications
Click Add
Choose a name (coinprice-indicator)
In command you need to browse and choose coin.py (~/folder-cloned-from-git/coinprince-indicator/coin/coin.py)
Choose a comment (Open coinprice-indicator from Startup)
Click on Add
Reboot your system

Now you will see that the indicator applet opens from startup.


Postfix keeping email in queue for indefinite time. Sending from sendmail its working. Any idea?

Ohh my bad.

My receiving address has blocked this email and that's why it is not working.


How do I get the Ubuntu loginscreen etc back after installing Xubutu-Desktop?

Run this in terminal:

dpkg-reconfigure gdm

and say that you want gdm to be default login manager.


How do I make Empathy match my keyring with my password?

If you don't know the password you originally used with the keyring, then you cannot change it to your new login password. You'll have to delete it and have it create a new one for you.


This command is wrong. The term postgresql* is taken as a pattern and expanded to the list of files whose name begin with postgresql in your current directory, if there are any.

By the error message, there is that file postgresql-10.3-1-linux-x64.run.

The closest correct command would be:

sudo apt-get --purge remove 'postgresql*'


How to find packages that are not listed in aptitude

There is a tool called apt-file that allows you to search for files in packages. You first need to initialize it by running sudo apt-file update, and then you can run apt-file search libstdc++.so.6. This will at least point you in the right direction.

You can also use Synaptic (or similar) to search for a package that contains the library name.


12.04 to 13.10 Can it remove encryption?

Yes, removing the partition on which the /home folder resides will remove the encryption. If you have a different /home partition, you will need to delete it while installing the new OS, otherwise, if its on the same partition as /, then it will be formatted while you install the new OS.


Gnome "Character Palette" applet alternative for KDE

Did you take a look at KCharSelect?
Here is the link for it on packages.ubuntu.com (natty-specifically)


The solution is to change your behaviour. Don't run GUI apps (like nautilus for instance) by calling them from terminal with sudo ....


Packaging precompiled program: file list not found

Remove the preceding / character in the /usr/tigcc/… statements in the install file.

Also, you should either make that be opt/tigcc/… or remove the tigcc bit and install them properly integrated into the FHS standard paths, depending on what the binaries are compiled to expect exactly.

Also, add --fail-missing as an argument to dh, like:

%:
    dh $@ --fail-missing

This will cause the build to fail when installed files are not included in the package.


Accidentally installed the Matlab launcher without the actual Matlab and cannot stop the installation process

Unable to lock the administration directory (/var/lib/dpkg/),is another process using it?

The error means that there is already another process running, thats why you can't uninstall it.
Make sure all other instances of apt-get are closed then you should be able to uninstall it.


How do you know the manpages name for a given package?

If the manpage is contained in the package, then you should be able to see it when you list the contents of the package:

$ dpkg -L python3-requests | grep /usr/share/man

What you're possibly looking for however is the Python documentation of the module. Debian packages for Python module foobar are called python*-foobar. So to get the Python documentation for module foobar, you'd do

pydoc foobar

(or pydoc2 or pydoc3 depending what Python version they're for). So here:

pydoc3 requests


Among many other options, you can start application Disk Utility and select the disk/device to rename. Unmount the partition if needed. You can then find an option for assigning new label to the disk - the Edit a Filesystem Label, click that to rename the device.


I'm too late for this question. But for anyone who's looking for an answer, the following worked for me.

Works for booting from SD card (first follow normal procedure to configure, then follow below steps)

Connect the SD card containing the Ubuntu core
Mount the 'linux filesystem' partition of SD card (verify using sudo fdisk -l)
Open the environment and add your proxy settings (Note: the mounted partition should contain system-data/etc/)

The steps are: (WARNING: SD card partition naming may change, verify before mounting)

$ sudo mount /dev/sdc9 /mnt
$ cd /mnt
$ sudo vim system-data/etc/environment
 # add the proxy settings
 https_proxy=https://<user>:<password>@<IP>:<port>
 http_proxy=http://<user>:<password>@<IP>:<port>
$ sudo umount /mnt

Insert the card and boot
Follow the configuration steps
Now will be able to connect to proxy


For #1, your solution may be with the ipv6 option in your pppd conf:

+ipv6  Enable the IPv6CP and IPv6 protocols.

ipv6 ,
      Set  the  local  and/or  remote 64-bit interface identifier.
      Either one may be omitted. The identifier must be  specified
      in   standard   ascii   notation  of  IPv6  addresses  (e.g.
      ::dead:beef). If the ipv6cp-use-ipaddr option is given,  the
      local  identifier is the local IPv4 address (see above).  On
      systems which supports  a  unique  persistent  id,  such  as
      EUI-48    derived    from    the   Ethernet   MAC   address,
      ipv6cp-use-persistent option can be used to replace the ipv6
      , option. Otherwise the identifier is randomized.

So if you used ipv6 ::1, would that do what you wanted?  As an experiment you can replace ipv6cp-use-ipaddr with ipv6cp-use-persistent instead... that should give you a predictable global ipv6 for your ppp0.  From there you can start tweaking your wide-dhcpv6 and radvd....


How to install Gnome 3.38 in Ubuntu 20.04?

No.
LTS releases are intended to be stable in the sense that the software does not change. The software on 20.04, with limited exceptions, won't be updated. That's the whole point of an LTS.

LTS releases continue to receive security updates from the Ubuntu Security Team, and major bugfixes. These security updates include newer versions of web browsers. However, a whole new desktop stack is neither.

Let's take a look at an example: The Gnome environment from 18.04...
gnome-shell | 3.28.1-0ubuntu2                   | bionic
gnome-shell | 3.28.3+git20190124-0ubuntu18.04.2 | bionic-security
gnome-shell | 3.28.4-0ubuntu18.04.3             | bionic-updates
gnome-shell | 3.36.1-5ubuntu1                   | focal

...see how gnome-shell 3.28 was in Ubuntu 18.04? You can see the minor updates from security patches and bugfixes, but it's still on version 3.28. Meanwhile, 20.04 uses Gnome 3.36. And two years from now, it's likely to still be using 3.36.
In general, if you want newer software, you should run a newer release of Ubuntu.


I cant use my Windows 10 partition after reinstalling Ubuntu 16.04?

Well, I just learned the solution in an IRC chat.

I needed to go on launch the command update-grub. Then, whenever I reboot, I get to choose between Ubuntu and Windows


"-6: Not Supported" error when transferring files from phone to external HDD

I had the same problem (14.04 and Nexus 7 2012 with CM11)
Got to storage-settings and tap on the 3 dots on the upper right, now on the USB- settings.
My Nexus was marked as "Camera (PTP)".

After Changing to "Media Device (MTP)" I gained Access to the whole file system (not just the folders "DCIM" and "Camera") and copying non-media-files worked (tested with *.7z, *.docx, *.txt and *.exe)


Device links in Nautilus (Files) sidebar won't mount/unmount

Well I never found out what i did wrong exactly,
so i deleted everything and re-installed. This time I created another admin user first,
then used that to create my user with uid 501, instead of starting with uid 1001 and changing to 501.

I'm newish to linux so I didn't do this the most efficient way,
but it seems to have worked. This is what i did:

In terminal with my first admin user login

sudo useradd -u 501 -m <my new admin user>
sudo adduser <my new admin user> sudo

looking in my bash history, i seem to have done both of these, which I'm sure is redundant:

sudo adduser -s /bin/bash <my new admin user>
sudo usermod -s /bin/bash <my new admin user>

then i added my user to all the groups my first admin user was part of
    groups

sudo adduser <my new admin user> adm
sudo adduser <my new admin user> cdrom
sudo adduser <my new admin user> dip
sudo adduser <my new admin user> plugdev
sudo adduser <my new admin user> lpadmin
sudo adduser <my new admin user> sambashare

the dialout group I added because it had group id 20, the same group id my osx login, not sure if this is required or ideal but it is what I did:

sudo adduser <my new admin user> dialout

sudo passwd <my new admin user>

sudo apt-get install gksu
gksudo gedit /etc/login.defs

I edited login.defs to change the minimum user id to 500, so my new id would show up in the login screen

then I realised the default group for my new user was set to 1001 not 501, just to keep things neat I set this to 501. If I really understood the implications, perhaps I would have set it to 20 to match my osx user perfectly

sudo groupmod -g 501 <my new admin group>
find / -group 1001 -exec chgrp -h 501 {} \;
sudo find / -group 1001 -exec chgrp -h 501 {} \;
sudo usermod -g 501 <my new admin user>

and set my default shell to bash

sudo adduser -s /bin/bash <my new admin user>

Nautilus now seems to work as expected.


Changing screen resolution using xorg.conf file

Okay so after scrounging the web, this is the solution I came up with.
I was using the manually generated xorg.conf file by using nvidia-xconfig. Which wasn't generating the correct config. This is what finally worked for me.

Press ctrl+alt+f2 (or whatever key combination you use to get into command line mode)

Login as the administrator.

If you're using GDM like me go ahead and stop the process, using service gdm stop.

Check if your X-server is running or not. Use ps -C Xorg and then kill the process. kill -9 PID

Use Xorg -configure which will generate xorg.conf.new

now simply move the .new file to the /etc/X11/ directory, using
mv xorg.conf.new /etc/X11/xorg.conf

now restart the GDM
service gdm start

And you're done.


WiFi signal problem on Ubuntu 14.10 on USB

Your Realtek card uses the driver rtl8188ee. There are a few driver parameters you might try. First:

sudo -i
rm /etc/modprobe.d/rtl8188ee.conf
echo "options rtl8188ee msi=1"  >  /etc/modprobe.d/rtl8188ee.conf
modprobe -r rtl8188ee
modprobe rtl8188ee
exit

Any improvement? If there is no improvement, please also try a reboot.

Aside from the change in reported link quality, what are your symptoms?


In some USB creator applications like UNetbootin from the default Ubuntu repositories there is an option to allocate space used to preserve files across reboots. UNetbootin supports up to 4GB persistent storage, and its size is limited by the FAT32 file system. The default size of the persistent storage space is 0 MB, but it can be changed from the default size at the same time that you create the Ubuntu live USB. In the below screenshot the persistent storage space is 4GB on an 8GB USB flash drive with one FAT32 partition ( /dev/sdd1 ).

UNetbootin in Ubuntu 16.04

The persistent storage space enables you to install software or save files on an Ubuntu live USB persistently across reboots. The persistence feature is not supported in Ubuntu 16.04-19.04, but persistent storage is supported again in 19.10 and later.

UNetbootin is compatible with Windows, Mac and Linux, however UNetbootin has been dropped from the official Ubuntu 18.04 repositories in Ubuntu 18.04 and later. When I tested the built-in Startup Disk Creator application as a UNetbootin replacement app with several non-*buntu live .iso images it worked in Ubuntu 18.04. mkusb supports the persistent file storage feature. It can be set up by following the instructions at: https://help.ubuntu.com/community/mkusb/persistent.


How to remove ntp without internet connection?

I downloaded systemd-timesyncd_245.4-4ubuntu3.3_amd64.deb,
moved it to /var/cache/apt/archives/
ran apt remove ntp -y
all good now


Grub starts on bootup on USB Flash Drive

You can edit grub to don't wait any second (instead of 10 seconds) and boot the first option in the menu:

Alt + F2 and paste gksu gedit /etc/default/grub
Search for the line "GRUB_HIDDEN_TIMEOUT=10" and change it to
"GRUB_HIDDEN_TIMEOUT=0"
edit the "GRUB_HIDDEN_TIMEOUT_QUIET=false" to read "GRUB_HIDDEN_TIMEOUT_QUIET=true
Open a terminal and paste: sudo update-grub

source


What is the equivalent tool for AutoIt in Ubuntu?

One alternative is actionaz. You can install it with

sudo apt install actionaz

Check the Wiki here

Another alternative is xdotool. Install it with

sudo apt install xdotool

Check the documentation here.


Package Dependencies cannot be resolved!! Please Help!

Try installing Wine this way, just press Ctrl+Alt+T on your keyboard to open Terminal. When it opens, run the command(s) below:

sudo add-apt-repository ppa:ubuntu-wine/ppa
sudo apt-get update
sudo apt-get install wine1.5 && sudo apt-get install winetricks


To create a USB installation device, you will need:

a 2 GB USB flash device/drive/stick. If the iso file is smaller than 1 GB, it is possible to use a 1 GB USB device, at least with some of the methods. Files on this USB device will be erased, so backup the files you want to keep before making the device bootable. Make sure this USB device is properly formatted and mounted.
an Ubuntu flavour ISO file.

To get the new version of ubuntu: click here


So the problem was that the oibaf install removes the iwlwifi drivers

Output of ls -al /lib/firmware/*iwl*7265* before install:

-rw-r--r-- 1 root root  736844 oct 16 15:52 /lib/firmware/iwlwifi-7265-10.ucode
-rw-r--r-- 1 root root  880604 oct 16 15:52 /lib/firmware/iwlwifi-7265-12.ucode
-rw-r--r-- 1 root root  885224 oct 16 15:52 /lib/firmware/iwlwifi-7265-13.ucode
-rw-r--r-- 1 root root  690452 oct 16 15:52 /lib/firmware/iwlwifi-7265-8.ucode
-rw-r--r-- 1 root root  691960 oct 16 15:52 /lib/firmware/iwlwifi-7265-9.ucode
-rw-r--r-- 1 root root  740436 oct 16 15:52 /lib/firmware/iwlwifi-7265D-10.ucode
-rw-r--r-- 1 root root 1002800 oct 16 15:52 /lib/firmware/iwlwifi-7265D-12.ucode
-rw-r--r-- 1 root root 1008692 oct 16 15:52 /lib/firmware/iwlwifi-7265D-13.ucode

And the same command after install:

-rw-r--r-- 1 root root  690452 oct 16 15:52 /lib/firmware/iwlwifi-7265-8.ucode
-rw-r--r-- 1 root root  691960 oct 16 15:52 /lib/firmware/iwlwifi-7265-9.ucode

My was to simply backup and copy the files after the update.

I am preatty sure someone should know about this but I don't know where to post this finding, please comment with suggestions.


How to restrict standard users from accessing system setting in ubuntu-12.04 desktop?

You can't really restrict that since there are user specific settings in "System Settings" - If you are scared of someone changing something, as long as they are a standard user they can't change any system-wide settings. If you really wanted to remove their access to "System Settings", you could move the executable to somewhere not in $PATH, and set your $PATH to match the new directory.


Running Ubuntu Server from a USB key / thumb drive (being mindful of flash's write limitations)

There are two options: Roll your own ramdisk or use Debian Live

Roll-your-own is faster to set up, but harder to maintain and update.
Debian Live is slower to set up, but more robust and reliable in the long run.

Roll your own ramdisk by using the instructions in this forum thread: http://ubuntuforums.org/archive/index.php/t-1848440.html

Debian Live http://www.debian.org/devel/debian-live is the most robust project to create compressed, live, RAM-based Debian or Ubuntu system, including server systems. Live uses the standard kernel and packages.

The website has extensive documentation and examples.

First, document all the presets you want in the new server. Live build cannot copy your existing server environment - you must do that manually. Document all your packages (beyond Ubuntu-standard), customized config files, users, interfaces, networks settings, upstart jobs. If you have kept a log, this is where it will pay off.

In a non-server, network-connected environment (like a desktop or laptop), install the live-build and live-tools packages. Live-build will create a set of config hook dirs to copy all your customizations into. Then it will create a bootable squashfs image of the complete system. Retain the config hooks; don't clean them - there's always another change to make!

Copy the image to a USB stick, and boot from it. When you

You can try live-build with zero customizations, and it will give you a nice, usable vanilla system.