how can I check my GPU is installed correctly?

There is, indeed, a "control panel" in Ubuntu.  It's called System Settings.  You can launch most applications by typing part of the name or description in the Unity Launch Button.  It's on the top of the Sidebar Launcher.

Once you have brought up System Settings, click on Software & Updates.  Then click on the Additional Drivers Tab.

The app will analyze your configuration and give you the results you are asking for.  This will include a list of your installed drivers.  It's also flag a recommended driver based on the drives you have installed.  And, of course, as you have asked, it will show you the driver that you are currently using.  Usually, if there is a detected problem with the driver, you'll see a message to that effect.

You can also use this GUI app for changing and testing some of the other drivers you have installed.

The links in your question show you resources for locating and installing Nvidia drivers.  The installation for installing the drivers are usually in the form of a PPA provided by the vendor.  At times it will be a file that is run from the commandline.  They also provide *.deb files, which can be installed by clicking on them.

If you install a driver that is causing problems getting your GUI screen, you can use the commandlines (which is also included in the links you posted) from a terminal console (Ctrl+Alt+F2 to fix it by running the command line version of the drivers install utility.

The commanline version is:

Check for available drivers

$ ubuntu-drivers devices

Install a different driver

$ sudo apt install nvidia-###

(The ### is replaced by the version of the available drivers you have on your machine.)

Show which driver is currently in use

$ lspci -nnk | grep -i vga -A3

Driver install commands are included in the Links you posted in your question, plus this link - Switching NVidia Drivers.


Ubuntu is using Intel Compatible controller instead of NVidia

Well, installing Bumblebee solved my issues.

Here are the steps I followed:

https://wiki.ubuntu.com/Bumblebee


Security is always a priority and I'm afraid there is no easier way than this:

Port forwarding

You will need to setup port forwarding for all ports that you want accessible through the internet. Note that every open port poses a potential security risk, so be sparse here. Look at a list of port numbers by service to get an idea, which ports to forward. The most commonly forwarded are:

Port 22: SSH (for remotely managing your server)
Port 80: HTTP (websites)
Port 443: HTTPS (encrypted websites)
Port 989-990: FTP (file sharing)

The exact procedure for forwarding a port differs from router vendor to vendor and even between models. You will have to consult your router's manual and/or the internet for your specific router. Below, I attached an image of what the menu looks for Ubee my cable modem.

Basically you specify the incoming port range (80-80 for http), the local IP of your server to forward packets to (192.168.10 in my picture) and the port range on the server that requests should go to (again 80-80 in my example).

Note that some internet service providers block port 80 precisely to keep you from running your own home web server. This not much more than annoying, because you can just use another port. Many dynamic DNS services (see below) allow to specify an alternative port. To get very comprehensive info about your internet connection, including which ports are blocked, you can use the netalyzr of UC Berkely. If it doesn't work, you can use something else or check if you allowed Java Applets in browser

Access via internet IP

Once you've done this people can access your web server already via your internet IP. They just have to enter the IP and port, e.g. 213.109.33.44:80, in the address field of their browsers. In this example I specify port 80 explicitly, which generally not needed. If port 80 is blocked, use something else instead. As one of the many ways to get your internet IP, you may enter the following command in a shell:

dig +short myip.opendns.com @resolver1.opendns.com

The problem with accessing your server via IP is twofold:

IPs are hard to remember
IPs are subject to change, if your internet service provider decides to (sometimes without notice), that is unless you're paying for a static IP.

Dynamic DNS Service

To get around those problems, you can either register a domain with your national authority and update the IP associated with the domain there manually or automatically every time it changes or use a dynamic DNS provider. I will talk about the latter a bit.

I use noip, they are free and only pester you every month or so to upgrade to their paid accounts. That's just a personal choice based on what was available 5 years ago. You should consult a recent comparison of dynamic DNS provides to choose.

In turn these dynamic DNS services will provide you with a redirect from an URL such as www.your-server.no-ip.com to your actual IP. For noip your server's address will be a sub-domain of one of their top-level domains (here no-ip.com). Generally you can chose the sub-domain name to be whatever you like, e.g. fluffy-bunnies.no-ip.com.

Automatically updating IP at dynamic DNS provider

Once you have the account, you can configure your router (if it supports that - see its manual) or Ubuntu to update the external DNS service. The service needs to be notified of your changing server IP periodically. Again, the exact procedure depends on your dynamic DNS provider. They usually have instructions on their website. I've found that ddclient is a good way to do it. It supports most common providers. To install it use:

sudo apt-get install ddclient

Then edit the config file in /etc/ddclient.conf. Mine for noip looks like this:

protocol=dyndns2
daemon=36000
pid=/var/run/ddclient.pid
ssl=yes
use=web, web=checkip.dyndns.com/, web-skip='IP Address'
server=dynupdate.no-ip.com
login=confus
password='1234321'
conserve.no-ip.org

Restart

Changes will take effect after server reboot or after you restart ddclient with:

sudo service ddclient restart

This works for Ubuntu 14.04.3 LTS (Trusty Tar) and ddclient 3.8.1.


How much RAM to allocate for Ubuntu 16.04 host and Windows 10 guest?

Depending on what you are using your Ubuntu host for, execopt for Windows in Virtualbox, you have lots of memory.

I would start with allocating 4 GB for your windows vm. You can always increase or reduce it later if needed.


"No installable Kernel was found in the defined APT sources"

I'm not sure why the 64 bit installer even booted up, since it seems this is only a 32 bit cpu.  You said the 32 bit version works, so stick with that.


Make xterm copy and paste work on my keyboard

According to this image, you should have an insert key if you use fn and del.
Alternatively, you should be able to use 0 as insert if you disable num lock.

However, you should be able to get middle click emulation working, I am surprised it doesn't out of the box. The traditional way is to add this line to your /etc/X11/xorg.conf:

Section "InputClass"
    Identifier "whatever"
    MatchIsPointer "on"
    Option "Emulate3Buttons" "on"
EndSection

But you can also do it graphically by installing gpointing-device-settings as explained here. In fact, that post gives various ways of achieving this.


AMD FirePro AMDGPU-PRO drivers on 18.04 and OpenCL

I have a couple of these and I was testing on my own recently.

The way to go is to configure the card using amdgpu instead of radeon. This article https://wiki.archlinux.org/index.php/AMDGPU explains how to do it.

Use the parameters radeon.si_support=0 and amdgpu.si_support=1. Set them in /et/modprobe.d in the files amdgpu.conf and radeon.conf.

If it does not work, set these properties in the /etc/default/grub and make sure to execute update-grub to apply the changes. Once this is done, install clover OpenCL implementation (from mesa) together with the icd. This is an open implementation for OpenCL.

Do not expect wonders from this library. It barely supports OpenCL 1.1, not even 1.2. Things like LuxMark are working for me, while others like folding@home are simply not working. It's the only solution right now. Everything which is GCN 1.0 is not well supported. GCN 1.2 and up are well supported (AMD claims that but I can't test it) using either amdgpu-pro or orca OpenCL implementation.


If you are using 12.04 or higher just run this command:

sudo apt-get install linux-firmware-nonfree
sudo modprobe b43


Clementine : cannot get visualisations to work anymore

ok sorry after some meddling i found what is going on;
it seems i need the version of clementine from the main ubuntu/xubuntu software app, then the config file of clementine
/.var/app/org.clementine_player.Clementine/config/Clementine/clementine.conf

has some configs which seem not to reset after exiting the program, that means if the main window is minimized it stays in the tray as icon with no way to maximize it. this config persists after removal of clementine.
so i found out that under
[main window]
hidden=false
maximized=true

this needs to be set as above
then clementine starts as normal with access to the visualisations.
i feel real noob now


100 % CPU usage with "on demand" setting due to Xorg

Luckily for you, high X.org CPU usage doesn't mean you have a bug in X, so this problem is likely something you can solve.

X is a server, which means it responds to client requests.  If a client has lost its mind and is making excessive X calls (such as if it locks itself into a graphics updating loop), it can make a lot of X calls.  This shows up as a high X CPU load.

So, the thing to look for is to identify which client program is causing the load.  Often it is a program you don't realize is even running - perhaps a panel indicator or background task or service.  Look through your process table for user processes that look out of place, and try killing them one by one until the load goes down.  Then you know what caused it.

Alternatively, log into a guest account; verify the load is normal there.  Compare your processes in the guest account with those in your regular account, and go from there.

While high X cpu bugs are not at all unusual, I have not seen many reported in oneiric, so I might guess that the faulty process is some unusual program not installed by default; perhaps something you manually installed previously that got automatically upgraded to a new version that has a bug in it?  Anyway, good luck in your hunt.


Resize encrypted LVM partition on Kubuntu

You should be able to do it with KDE Partition Manager from LiveUSB. What problem did you hit.
To resize encrypted partition you need to first unlock it. Resizing encrypted contents might need contents to be unmounted (e.g. if you use ext4), hence Live USB. Some filesystems (btrfs) an be resized without unmounting them, in that case you don't even need to boot LiveUSB and can do from the running system.
If you use LVM together with LUKS, you first need to resize LVM logical volumes (which KDE Partition Manager can also do).


Printing icon missing from "Show Applications" & printing does not happen

The printing icon is still missing BUT, it may have been deliberately removed by the developers since I can go to "Settings" / "Devices" /  "Printers" and get what I used to have with the Printing icon in Ubuntu 16.04.

The "not printing" problem was solved by using the URL "localhost:631" , select "cups" and then adding the printer. The printing immediately worked when I tested it.


Try editing the /etc/systemd/logind.conf

uncomment the line #HandleLidSwitch=suspend and change the value to ignore

This work for me.


List of wifi networks not shown, while wifi works

You can try to do a scan with iw in a shell, that would eventually help, "waking up" network manager :

sudo iw <interface> scan

Otherwise you do not need to restart the computer every time , just restart the network-manager service.

sudo systemctl restart network-manager

It should be enough to repopulate your scan list and get back to normality.


How to enable ufw firewall to allow icmp response?

ufw does not allow specifying icmp rules via the command line interface command. It does allow you to adjust your ruleset via its rules files, which are iptables-restore style files.

ufw does allow certain icmp traffic by default including icmp echo reply, and this is already configured by default in /etc/ufw/before.rules:

-A ufw-before-input -p icmp --icmp-type echo-request -j ACCEPT

If your host is not responding to ping, look in this file to make sure the above line is present and if that doesn't work, look at the pinging host and any firewalls between them.


Error installing earlier librxtx-java version (rxtx-2.2pre2) " bin/javac: No such file or directory "

You do not need to compile this package from source, it is packaged as librxtx-java with version 2.2pre2.

Just install it with:

sudo apt-get install librxtx-java

If you really need to compile it - install necessary build-tools with:

sudo apt-get install build-essential default-jdk
software-properties-gtk # to enable Source code
sudo apt-get build-dep librxtx-java

and then proceed.


How to get back my previous omnibox in Google Chrome 69 or Chromium 69?

See update at the bottom of this answer
Edit: the workaround described below was limited to version 69 and 70. It is not possible to circumvent the white background of the address bar in version 71.
Further edit: the relevant bug has now been taken up by a Googler who worked extensively on the transition of Chrome to gtk3 and so I'm hopeful of a solution soon.

Enter chrome://flags/#top-chrome-md in the omnibox and press Enter.
Click on the dropdown in the first entry, choose "Normal" and restart the browser.
It will change appearance from default

to normal

Note that flags may disappear at any time in the future. However, a bug, GTK+ theme ignored in omnibar in the new interface has been filed and, if addressed, may provide a solution without resorting to chrome://flags.
Update: This bug has not attracted sufficient interest and currently, 20181205, nobody is assigned to it. And the workaround fails in Chrome 71.
Update 20190315:
With Chrome 73, one can use --enable-features=WebUIDarkMode --force-dark-mode after making sure that the Classic theme option is chosen in Settings > Appearance instead of GTK+. Launched in this way, Google Chrome uses a built-in dark mode that doesn't rely on or use your GTK theme colors. As of now, dropdowns such as that of bookmark folders or the ☰ icon also reflect the dark mode.


How to filter out errors in Ubunty system log files?

The simplest way to do this is by using grep in a terminal window.  The log file you should check first, is syslog.  So, typing:

grep -i -e fail -e error -e corrupt /var/log/syslog

would give you all the lines that contain the key words you type after each -e switch.  The -i switch tells grep to ignore case.


How do I get brightness controls working on a Dell XPS m1710?

I had similar problem with another Linux distribution and fixed it by blacklisting nouveau driver and installing nvidia driver


Every time I boot my laptop I get asked to remove any media and restart, like you do after Ubuntu installation anyone know why this happpening?

Have you got any CD/DVD in your drive?

Do you have any USB Flash drive plugged to your computer?

If it still does not boot, check your BIOS boot order and ensure that your Hard Disk is not on the top.


Broken shorcuts, Dropbox folder, etc due to mount address changing

Assign a label to this partition;
For auto-mounting, add it to /etc/fstab file (for example, look here: How to automount NTFS partitions ? or here: https://help.ubuntu.com/community/Fstab#ntfs).


Missing dependency when installing Canon Pixma MX330 drivers from michael-gruz PPA

The problem is that the solution is both boggus and the package manager forgot how to set dependencies straight, building the package with the correct order on the build dependencies. I've fixed it in my repository ppa:braiampe/ppaofme but if you want you want you can download the sources and fix the problem yourself, here's the diff:

=== modified file 'debian/control'
--- debian/control  2013-03-17 11:00:10 +0000
+++ debian/control  2014-06-06 00:52:18 +0000
@@ -9,7 +9,7 @@
                libtool,
                libcupsys2-dev | libcups2-dev,
                libxml2-dev,
-               libtiff4-dev | libtiff5-dev,
+               libtiff5-dev | libtiff4-dev,
                libglib2.0-dev,
                libgtk2.0-dev,
                libpopt-dev

=== modified file 'debian/rules'
--- debian/rules    2013-03-17 11:00:10 +0000
+++ debian/rules    2014-06-06 01:37:52 +0000
@@ -262,7 +262,8 @@

    touch configure-stamp

-
+build-arch: build
+build-indep: build
 build: build-stamp
 build-stamp: configure-stamp
    dh_testdir

=== modified file 'debian/skel/control.common.i386.skel'
--- debian/skel/control.common.i386.skel    2013-03-17 00:45:19 +0000
+++ debian/skel/control.common.i386.skel    2014-06-06 00:55:49 +0000
@@ -2,7 +2,7 @@
 Section: graphics
 Priority: optional
 Maintainer: Canon Inc. <sup-debian@list.canon.co.jp>
-Build-Depends: debhelper (>= 4.0.0), libcupsys2-dev | libcups2-dev, libxml2-dev, libtiff4-dev, automake, autoconf, autotools-dev, libtool, libglib2.0-dev, libgtk2.0-dev, libpopt-dev, ia32-libs [amd64], libc6-dev-i386 [amd64], gcc-multilib [amd64], lib32stdc++6 [amd64], lib32z1-dev [amd64]
+Build-Depends: debhelper (>= 4.0.0), libcupsys2-dev | libcups2-dev, libxml2-dev, libtiff5-dev | libtiff4-dev, automake, autoconf, autotools-dev, libtool, libglib2.0-dev, libgtk2.0-dev, libpopt-dev, ia32-libs [amd64], libc6-dev-i386 [amd64], gcc-multilib [amd64], lib32stdc++6 [amd64], lib32z1-dev [amd64]
 Standards-Version: 3.7.2

 Package: cnijfilter-common

=== modified file 'debian/skel/control.common.ia32.skel'
--- debian/skel/control.common.ia32.skel    2013-03-17 00:45:19 +0000
+++ debian/skel/control.common.ia32.skel    2014-06-06 00:56:12 +0000
@@ -9,7 +9,7 @@
                libtool,
                libcupsys2-dev | libcups2-dev,
                libxml2-dev,
-               libtiff4-dev | libtiff5-dev,
+               libtiff5-dev | libtiff4-dev,
                libglib2.0-dev,
                libgtk2.0-dev,
                libpopt-dev

=== modified file 'debian/skel/control.common.skel'
--- debian/skel/control.common.skel 2013-03-17 00:45:19 +0000
+++ debian/skel/control.common.skel 2014-06-06 00:56:56 +0000
@@ -2,7 +2,7 @@
 Section: graphics
 Priority: optional
 Maintainer: Canon Inc. <sup-debian@list.canon.co.jp>
-Build-Depends: debhelper (>= 4.0.0), libcupsys2-dev | libcups2-dev, libxml2-dev, libtiff4-dev, automake, autoconf, autotools-dev, libtool, libglib2.0-dev, libgtk2.0-dev, libpopt-dev
+Build-Depends: debhelper (>= 4.0.0), libcupsys2-dev | libcups2-dev, libxml2-dev, libtiff5-dev | libtiff4-dev, automake, autoconf, autotools-dev, libtool, libglib2.0-dev, libgtk2.0-dev, libpopt-dev
 Standards-Version: 3.7.2

 Package: cnijfilter-common

As you can notice, the only modified lines are adding libtiff5-dev to the build dependencies or inverting the order of the packages to make the 5 version appear first than the 4.


Did you check Graphic driver? in about this PC -I have Spanish version hehe- you can see which video driver has your notebook. Commonly Ubuntu installs the default driver (Gallium 0.4 on AMD Mullins), if you have some similar you must go to additional drivers and install the AMD private video driver (fglrx-updates), reboot and verify again your video driver


I think your problem was caused due to an unsuccessful formatting of your storage.
Open terminal and type:

  sudo apt-get install gparted

Then in gparted do this:

After formatting the storage it will work correctly.


Ubuntu 20.04 fails to join Windows AD domain

Try:
sudo realm join --user=Administrator -v example.org

And maybe:
kinit Administrator@EXAMPLE.ORG

before the join command.


Linux alternative to Windows Script Host

basicly BASH scripts provides all you would need with full fledged loops and conditions, variables and system calls, so that you can affect all the aspects of the system and automate tasks, and i think GNU/Linux in general is the master,in this kind of stuff, so VBS or JS, you have it in the form of Shell scripts, like i mentioned BASH is the famous amongs almost all the distributions, but it is not the only one out there, CSH, SH (bourne shell) KSH,TcSH and many many more.
good luck


How to add Google Calendar as a Unity launcher?

Not every Chrome-app brings its own menu-entry.

But you can create so-called app-shortcuts from Chrome-menu for any website you want. Those apps are placed on your desktop and/or application-menu and start in an own minimal browser-instance without menus, tabs or an address-bar.


well actually the usb thing is not boot after... assuming it's in your boot order... it's the type of usb to boot... I am not certain that your computer (old dell?) will be able to boot usb drives however I would say that if you just took the ISO or the files on the ISO and through them on your usb drive that it will not work... to properly get a bootable usb a tool such as Universal USB Installer is required.


You don't have to mount iso in daemon-tools, that may cause many problems. Best way is to download the iso and WUBI installer. Place it in same folder on Windows and run WUBI.

WUBI installer has built-in iso-check so corrupt iso is not possible to pass. In some cases, WUBI automatically download 64bit version if you have CPU 64bit capable.
That is a major problem if you have low RAM.

So, download the iso, download WUBI instaler, put them in same folder (do not mount ISO in daemon) and run WUBI as usual.


Application to Use an Universal Camera Keyboard

The device manual has a typo. Where it says 7.5.5  Functional testing with Windows environment it should say Linux instead of Windows.

I think you could test the device according to the manual:

Launch the application on the terminal and request
the /dev/ttyACM0 device.
Type in [Buzzer+] to activate the buzzer, type
[Buzzer-] to deactivate it. If the buzzer enables
and disables the keyboard it has been recognized
and is operating correctly.


Does creating a SOCKS proxy via ssh hide my activities from my ISP?

Does it just protect my connection from network/packet sniffers or does it block out my ISP as well?

It also blocks out your ISP completely if and only if DNS lookups are also tunneled, and not done in the clear or worse, from the ISP's own DNS servers.

What I mean is, suppose you want to visit www.wikileaks.org over your SSH-SOCKS proxy. What your browser will almost certainly do is use regular DNS to resolve www.wikileaks.org to an IP, but then tunnel all traffic to that IP over the proxy. So your ISP (or a sniffer) could tell that you wanted to visit wikileaks.org, but not what page you wanted to see (or saw).

The solution is to also tunnel DNS lookups over the proxy.

For Firefox, it's as simple as typing about:config and changing the  network.proxy.socks_remote_dns setting  to true.
Chromium (or Chrome) will only do this if you are using a Socks 5 proxy!
The global way to do this is to set your DNS using NetworkManager to localhost, where you forward port '53' over SSH to port '53' on the remote DNS server (possibly with your SSH server acting as forwarder).


Copying files to Truecrypt file container hangs

I have versions of the TC 7.1 and the same thing happens with Ubuntu 11.10 with copying large files. When copying large files from one virtual disk TrueCrypt (ntfs partition) on the second disc tc (ext4 partition) crashes the system. In text mode the system is not responding.
Is solved by the installation of the new kernel 3.2. Now the system is not suspended


16.04 Installer Crash and “No Bootable Device” with Acer R11

Digging through here for things to try I eventually followed leads to How to install the Boot-Repair tool in an Ubuntu live disc?. This took care of it. WHen I boot it starts out with Windoze boot issues (which I had not been seeing) and looks like it's going to crash in a new and more pointed manner but then goes into a the Grub to boot Ubuntu and flies on from there.


but to be able to download movies and watch them when I have no internet connection.

Impossible. Netflix is actively blocking any browsers from downloading content except for those browsers they approved (and those are all locked browsers that support and use digital rights management (DRM).
You will need Android, Windows or MAC OS to be able to download.
Using a phone for the download and then casting, or tethering it from the phone to Ubuntu seems, to/for me, to be the easiest method.


Setting up dual monitors in Ubuntu (my laptop and one external monitor)

Do you have a nvidia graphics card? Then you can try running the following command from the console

sudo nvidia-xconfig

Then restart. Then you may configure dual monitors from "NVIDIA X Server settings".

Hope this helps.


I had the same problem until now. Try switching off Show position of pointer when Control key is pressed in Keyboard and mouse settings of GNOME Tweaks. It worked for me. When this setting is on, a flash around the cursor seems to steal focus while Ctrl key is pressed down.


Can't get NVIDIA drivers to work on Dell Latitude E6520, Unity on Oneiric

I have the same laptop and problem here. I had it all working fine on 11.04. My upgrade to 11.10 gave me a lot of problems, I could not use my external monitor. So I enabled the Optimus setting in the bios and thus switched back to the Intel card only. My external monitor worked fine now using intel BUT no 3d rendering/compiz  anymore which sucks.

I tried switching back to using the nvidia driver again today (by disabling optimus in the bios) and installing nvidia drivers. Unfortunately it did not work out and I switched back intel..Though I might have broken my installation a bit by my previous fixing attempts..
I do not want to spend much time on it again and continue working

I will try again when 12.04 comes out. They are working on improving the graphics stack.


How can I disable both the boot splash and messages during boot?

Edit /etc/default/grub using your favourite editor (sudo nano or gksudo gedit) and change

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"

to:

GRUB_CMDLINE_LINUX_DEFAULT="quiet"

Then run:

sudo update-grub

If GRUB_CMDLINE_LINUX is set, you might have to remove splash there as well.


There is a much easier way to start applications the way you start them from the shell, if you don't care to open gnome-terminal, just type Alt+F2 and then type

gksu wireshark

or whatever command you want to run.

Warning: It is not recommended to run wireshark as root, if you really want to, have a look at this.


Docker install tools/run command on existing container

To connect to your application container run

dokku run <app-name> bash

Then

apt-get update
apt-get install <package>

P.S. Another way to do so:

docker ps
docker attach --sig-proxy=false <your-app-container>

This may also not work depending on Dokku configuration.

Edit:
Actually, the best way to do it, is to use dokku-apt plugin.


How do I install a Flash player in Chromium?

You can install flash player for Chromium by following the instructions over here:

First make sure you have enabled Multiverse software repository.
For that, Open "Software & Updates" and then check the multiverse software repository.
Then install flash player either from terminal using the commmand **sudo update-pepperflashplugin-nonfree --install ** or install "Pepper Flash Player - browser plugin" from Software Center

Original source: https://wiki.ubuntu.com/Chromium/Getting-Flash


gvfs-mount -l

GVFS is the virtual filesystem for the Gnome desktop that allows access to shared drives via SMB, FTP, WebDav, and SFTP. Accessed shares are mounted under ~/.gvfs/, you can see them there as well.

The command above lists all attached external drives, and network shares, e.g.:

$ gvfs-mount -l
Drive(0): 1.5 TB Hard Disk
[snip]
Mount(0): public on fileserver -> smb://fileserver/public/
  Type: GDaemonMount
Mount(1): SFTP for bert on server.example.com -> sftp://bert@server.example.com/
  Type: GDaemonMount
Mount(2): WebDAV as bert on server.example.com -> davs://bert@server.example.com/dav
  Type: GDaemonMount

If you add the option -i you get even more information.


Unable to run Windows 10 using VMware 15 pro on Ubuntu 19.04

I don't have enough reputation points to comment. But this sure sounds like either:

BIOS settings not correct. (There are typically multiple virtualization-related BIOS settings, not just one.)
Older hardware?

Without more information it's going to be hard to get much help. Information such as:

Where are you seeing the error you noted?
What are your hardware specs (including make, model, ~year, CPU, RAM, etc.)?
Do you have virtualization enabled in the Windows 10 VM configuration?

Here's some links that might help:

Linux host: Utility to show if virtualization hardware can be accessed.

sudo apt-get install cpu-checker
sudo kvm-ok

Window host: How to find if your computer supports Intel VT-X or AMD-V in Windows 10
CPU information app for Linux (like CPU-Z)


Open Dash
Search for "Startup Applications" and open it
Click on "Add" button.
The dialog lets you set a name, the command to be executed, and comments.
Click on "Add" to save that command to the list.

Ubuntu will then run all the commands on this list during start-up.
I use this for running a wallpaper changing script of my own on start-up, and it has proved reliable.

I think you must be knowing this but still, remember to add an & at the end of the command to keep running your script in background, and prevent unnecessary debugging and frustration.

Sorry but I don't know a way to do this from the terminal.


It turns out this was a somewhat simple problem to solve.
I downgraded mesa to the version that came with Ubuntu 16.04 by using
sudo ppa-purge ppa:oibaf/graphics-drivers
Rebooted and everything was fixed.


What is an "integration script" and why would I want one?

An integration script is a JavaScript browser extension that facilitates integration of a specific web application with Unity via the WebApps feature introduced in Ubuntu 12.10.

This prompt is generated by the Unity Desktop Integration browser extension when a package providing an integration script is available in Ubuntu's repositories but is not installed. The prompt's wording will likely be improved in the future.

See also:

How do I use Ubuntu's web application integration?
How do I remove a website from Ubuntu's web applications?


Black screen on instalation of Ubuntu 18.04.4

At the blank screen, try pressing Ctrl + Alt +  F4  to be able to enter the Text-based user interface or start up your operating system in recovery mode.

Next step is trying to fix the problem.
There may be files missing in the usr/lib/x86_64-linux-gnu folder: re-installing x86_64-linux-gnu directory


Ubuntu 14.04.2 with kernel version 3.13.0-46-generic fails to shutdown

It depends to your hardware and your Ubuntu vetsion both, so it seams you are using a hardware that is not Ubuntu  certified(http://www.ubuntu.com/certification/).

More information about hardware can help others to solving your problem.


How to update to 11.04 through flash drive?

Download the alternate version and mount it like this:

sudo mount -o loop -t iso9660 /PATH-TO-FILE/ubuntu-11.04-alternate-i386.iso /media/cdrom

Then open a terminal and enter this command (or use Alt+F2 and enter this):

gksu "sh /media/cdrom/cdromupgrade"

After that the upgrade process will be started.


Unable to connect to mysql DB through my HA Proxy Servers [Keepalived is used for Virtual IP-VIP]

I think you can recheck bind-address and Edit the global my.ini file, in the [mysqld] section:

[mysqld]

-- various other settings

port = 3306
bind-address = 127.0.0.1

Save this file, and then restart service mysql with command:

service mysql restart

Edit

To grant a user access from a remote IP, run this command from the mysql> shell when logged in with the MySQL root user:

GRANT ALL on somedb.* to someuser@192.168.61.32 identified by 'somepassword';

If you want to grant access to someuser from any remote IP:

GRANT ALL on somedb.* to someuser@% identified by 'somepassword';

After those steps, make sure to restart the MySQL server so it will read the changes in the configuration.


Flicker / no signal with three monitors on P5000

Try at terminal"xrandr" the first line informs the current desktop size, if it is not correct, go-to settings/display and turn off every monitor not in use... Ubuntu sums every display into a big virtual display!

Can also try to merge them by turning on mirror.


Burned dvd 15.04 boot up OK, but burned dvd 14.04.3 doesn't.

This happens,
Please take a look at this answer it seems similar to you question about booting problems : link


I am not an expert here, but I don't see a reason not to do this, as long as the VM gets a static IP. By having all the data on the VM, you actually gain an advantage by having the ability to move the VM to a more powerful machine if you need to, to without having to worry about migration the configuration DB or files.

With that being said, I am not sure how to actually migrate the VM's data to a physical server without having to redefine the cluster again.

Tip: The controller should not use much CPU, but In case you are using juju and you see the controller get bogged down due to "nonce already used" do this workaround: https://bugs.launchpad.net/maas/+bug/1190986


A program/command to help translate multiple file names

The script below, which was inspired by a different discussion here, uses translate-bin, the program featured in this related question, and translates and renames your files in one go. It is suitable for batch translating and renaming hundreds of files all in one go. First install the necessary programs from the repositories with:

sudo apt-get install libtranslate0 libtranslate-bin

The script is currently set to rename any files with the extension .txt, but it will work with anything you might want: just change all the instances of .txt to .jpg, .mp4 or to whatever files you wish when you want to translate them.

The script is currently set to translate file names from German (de) to French (fr), but you can choose any language that is supported by the service (-s) being used; and as that translation service is currently Google there are many language on offer.

Open your text editor, save the file and then make it executable with chmod u+x myscript.

#!/bin/bash

for i in *.txt
do
    mv -i "$i" "$(echo ${i%.txt} | translate-bin -s google -f de -t fr).txt";
done

You can place the script in the folder with the target files and then execute it, or place it in your ~/bin folder and then use terminal to cd to the folder with the files in and call the script with the name you have given it. For more on the bin folder, see my answer here.

Here is an example where I open terminal and cd to the target folder:

Before the script runs, ls returns dog and cat in German:

Hund.txt  Katze.txt

and after the script has been executed in terminal with ./scriptname, the output of ls is dog and cat in French:

Chien.txt Chat.txt

It is probably best to backup your files before you use the script, but if an invalid translation target such as sgghdsgsh.txt is found, the script does nothing  whatever languages are set. However, to prevent it overwriting files we can add -i to mv: if clicked on and run and the target file exists, nothing will happen, but if the script is run in terminal with ./script, you will then be asked to confirm:

mv: `Cat.txt' and `Cat.txt' are the same file
mv: overwrite `Cat.txt'? n

I don't think it's necessary to put any other checks in the script, so that should be satisfactory.

For more options for the program are available from man translate or the Ubuntu manpages online.


Not having permission in /usr/share/applications/

Users don't have write access to /usr/share/applications:

$ ll /usr/share/applications
total 900
drwxr-xr-x   3 root root 12288 Jul 18 06:42 ./
drwxr-xr-x 343 root root 12288 Jun 30 09:29 ../

If you want to create a document there try:

sudo -H gedit /usr/share/applications/mydoc.txt

Add a few lines and save it. Then check that it is there:

$ ll /usr/share/applications/mydoc.txt

-rw-r--r-- 1 root root 149 Jul 22 11:24 /usr/share/applications/mydoc.txt

$ cat /usr/share/applications/mydoc.txt

Test for writing into /usr/share/applications/mydoc.txt
For: https://askubuntu.com/questions/1160114/not-having-permission-in-usr-share-applications


Dual boot issue "Reboot and select proper device"

Before Installing Ubuntu Disable Secure Boot in BIOS setting and Disable Fast Shutdown in Windows.

Follow these steps :

Step 1:
Click Install

Step 2:
Check both boxes

Step 3:
Choose something else and click next

Step 4:
Choose /dev/sda in "Device for boot loader installation" and Select partition of type ext 4 for Ubuntu installation.

Step 5:
Change Mount Point To /

Step 6:
Press "Install Now" to continue. Rest process is easy.


Is it possible that you just want to get more storage for your installation? If this is the case I would recommend you just resizing the current partition of ubuntu.
Ether way here is a short explanation on how to partitioning your disk.

I personally prefer the gparted tool, which can be downloaded by typing:

apt-get install gparted

in a bash (This needs super user priviliges).
In the upper right corner of this tool should be your disk. It should look like the following: "/dev/sda" or so. Now you can start partitioning...

By selecting one of the partitions in the middle of window and clicking delete you will erase all data on this partition. Be advised to double check if you really want to do that.

After that the deleted part of the disk should be named "unallocated". Now right click and select new and choose whatever you want. I would recommend something like ext4 as the file system. After that just click on the check-mark in the toolbar and gparted will do the rest.


How do I get rid of the password promting in the Terminal?

The explain

Password prompting in Linux is a security thing. Linux is built with far higher security than Windows. It usually prompts you with a password if you're making installations or changing system-wide settings. You will notice password prompting usually if a command is preceeded by sudo. That means "super user do", or do this in super-user privileges, aka in Windows, run as Administrator. The only difference, is that you usually don't need to provide your password in Windows.

The ease

If you run commands with sudo in the terminal, the password you provide typically expires 15 minutes after the last sudo execution. That means that if you will need to make many changes in the system you can keep executing as many sudo commands that you like and you will have to type the password just once, that is, until it expires.

For those that will make changes to the system for an extended period of time and would like to lock the terminal in super-user mode, these commands may be executed in the Terminal:

$ sudo su

or

$ sudo -i

Then notice how your terminal prompt will change. It will stay there until you type the command exit. Just as note, once you are in super-user prompt (eg root@comp:/home/user#) remove all the preceeding sudos from the commands you copied from the internet. (And as a side note, pasting in the Terminal is Ctrl+Shift+V)

PS
 And yes, the password you type is your user password. Hopefully you didn't forget it. :)


You can try to download the source code for pcmanfm v1.1.2 and libfm v1.1.2 (For Ubuntu 13.10 Saucy Salamander) from Launchpad.Compile, create the deb packages and install them in Ubuntu 13.04.
NOTE: I would recommend you to test this in a Virtual Machine first, to see if everything is ok.

1) Make sure you have enable the "Source code repository"

Open the Ubuntu Software Center
In the Menu Bar choose Edit -> Software Sources. Click to enable "Source code repository".
Just in case I use the "Main Server" to Download.

And make sure you have also the universe repository enable.
Open a Terminal and type:

sudo apt-get update

2) In the Terminal window type the following to install the necessary packages.

sudo apt-get install build-essential wget pcmanfm

3) Install build dependencies.

sudo apt-get build-dep pcmanfm libfm

4) Create folders to download the source code to compile & install libfm.

mkdir ~/Downloads/src

cd ~/Downloads/src/ && mkdir pcmanfm libfm && cd libfm

cat > source-list <<EOF
https://launchpad.net/ubuntu/+archive/primary/+files/libfm_1.1.2-0ubuntu1.dsc
https://launchpad.net/ubuntu/+archive/primary/+files/libfm_1.1.2-0ubuntu1.debian.tar.xz
https://launchpad.net/ubuntu/+archive/primary/+files/libfm_1.1.2.orig.tar.gz
EOF

wget -i source-list && dpkg-source -x libfm_1.1.2-0ubuntu1.dsc && cd libfm-1.1.2
fakeroot dpkg-buildpackage && cd .. && sudo dpkg -i *.deb

5) Download the source code to compile & install pcmanfm.

cd ../pcmanfm/

cat > source-list <<EOF
https://launchpad.net/ubuntu/+archive/primary/+files/pcmanfm_1.1.2-0ubuntu1.dsc
https://launchpad.net/ubuntu/+archive/primary/+files/pcmanfm_1.1.2-0ubuntu1.debian.tar.xz
https://launchpad.net/ubuntu/+archive/primary/+files/pcmanfm_1.1.2.orig.tar.gz
EOF

wget -i source-list && dpkg-source -x pcmanfm_1.1.2-0ubuntu1.dsc && cd pcmanfm-1.1.2
fakeroot dpkg-buildpackage && cd .. && sudo dpkg -i *.deb

6) Make PcManFM default File & Desktop Manager.

xdg-mime default pcmanfm.desktop inode/directory

sudo mv /etc/xdg/autostart/nautilus-autostart.desktop /etc/xdg/autostart/nautilus-autostart.desktop.bak

sudo nano /etc/xdg/autostart/pcmanfm-autostart.desktop

The content of the pcmanfm-autostart.desktop file is:
[Desktop Entry]
Type=Application
Name=File Manager PCManFM
Exec=pcmanfm --desktop
OnlyShowIn=GNOME;Unity;
NoDisplay=true

Save the changes in nano with Ctrl+O, Enter then Ctrl+X.

7) Replace Nautilus icon for PCManFM in Unity Launcher.

favorites=$(gsettings get com.canonical.Unity.Launcher favorites | sed 's/nautilus.desktop/pcmanfm.desktop/')
gsettings set com.canonical.Unity.Launcher favorites "$favorites"

8) Restart Your Machine.
9) Finally open the PCManFM desktop preferences for customization (background,font etc).

pcmanfm --desktop-pref

RESULT:

Hope this helps.


When reinstalling Ubuntu, should I install the latest version or the version originaly installed on the machine?

The best choice for your computer is to install Ubuntu 12.04 LTS. Ubuntu 12.04 is a Long Term Support release (LTS), and is supported by updates until April, 2017. Your other available choices are Ubuntu 12.10, which is supported by updates until April, 2014 and Ubuntu 13.04 which is supported by updates until January, 2014.


Wifi is enabled on 13.04 but cannot connect. on Dell Inspiron. Recommended solution does not work

Same here, I spent one hour trying recypes; then I stumbled into this which might be the easiest solution. Open software center and search "jockey-kde". Install it and reboot. This solved for me the wi-fi and video issues.

Optionally, open a terminal and: sudo apt-get install jockey-kde.

After having solved the problem on my XPS-L502X, I found that typing Dell on the software center brings up a package of drivers and an installer. Didn't try them tho.

Please let know if this helped.


Problem after Install Elementary OS desktop in Ubuntu 14.04

I used below code and it is install and work for me:

sudo apt-add-repository ppa:elementary-os/testing
sudo apt-add-repository ppa:elementary-os/daily
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install elementary-desktop


move window to corner and RESIZE in gnome shell

Found the solution, the Put Windows extension does exactly what I was looking for:

https://extensions.gnome.org/extension/39/put-windows/


13.10 - Blank terminal prompt (no working directory displayed)

Are you shure, that you have sh/bash access? Can you please post

# cat /etc/passwd


Only type this command xsetwacom --set "<Your Tablet Model>" Touch on
so for me for instance, the command is xsetwacom --set "Wacom Intuos Pro L Finger touch" Touch on

For me it worked so it should work for you too.

Thank Me later ;D


Upgrading mongodb not working because dpkg was interrupted?

Try  to remove all the files inside /var/lib/dpkg/updates directory ,

cd /var/lib/dpkg/updates
sudo rm *

And then run

sudo apt-get update


Stuck on login screen - unable to login, unable to show console

First of all you could try to select an option other than default from the grub menu. Press and hold  Shift (sometimes ESC works) to access grub menu if it does not show up automatically.


Modify xorg.conf. Append the following section to /usr/share/X11/xorg.conf (in a terminal, enter pkexec gedit /usr/share/X11/xorg.conf):

Section "InputClass"
        Identifier "Mouse Remap"
        MatchProduct "Saitek Cyborg R.A.T.7 Mouse"
        MatchDevicePath "/dev/input/event*"
        Option "ButtonMapping" "1 2 3 4 5 6 7 8 9 0 0 0 0 0 0"
EndSection

This eliminates the need to restart X and makes the mouse completely usable every time Ubuntu starts. Just modify xorg.conf with the section above and the R.A.T. 7 functions perfectly. Say goodbye to restarting X.

Update: The R.A.T. series of mice are now sold under the Mad Catz label, not Cyborg. Because of this, the Mad Catz product string might need modification to make the RAT work in Ubuntu. This means changing the Cyborg portion of the identification string (used to identify the USB device) to the string the Mad Catz RAT sends to the computer in order for X to recognize the RAT without freezing the buttons. Instead of using the string

MatchProduct "Saitek Cyborg R.A.T.7 Mouse"

the Mad Catz might use something else (not tested). Product strings much match to avoid the button freeze issue.


I fixed this by making a new directory and setting DejaDub to save the backups there. DejaDup then asked me for a new password, asked for confirmation and then performed a first backup.
I don't know if this is a proper fix or why the old directory stopped working. The folder for GnuPG-Keys under "Passwords and Keys" is empty. (before and after the new backup). I will play around a little with restoring from the older backups to see if they still work.


Coreect drivers for ATI Raedon hybrid graphics

I would personally recommend installing the drivers from the AMD website (here) and download and install a version that works with your kernel and your version of X.

You have to be careful when updating though, as kernel and X updates break the drivers.

To get the Linux Kernel version, type uname -r in a terminal.

To find your version of X, type X -version (yes, one - and not two)

(I've had occasional problems with the ones in the repos for some reason)


Error while running Jetty Server on port 80 as non root user

Ports below 1024 can only be bound to by the superuser.  You can run jetty as superuser (root), or configure it to use a port above 1024 (say, 8080, this is usually done for Java-based app servers). If you want this to be accessible through port 80 at all costs, you can set an Apache server to forward (or "reverse-proxy") requests to Jetty. This is clearly documented here:

http://docs.codehaus.org/display/JETTY/Configuring+mod_proxy


gpointing-device-settings isn't working - ubuntu 17.04

I created this file called 85-my-libinput.conf . I put it at /usr/share/X11/xorg.conf.d/ . Apparently the synaptics driver has a lexical filename numbered higher than 40-libinput.conf, at 50, but this touchpad requires libinput to work. My script just defines the desired driver at the 85 lexical position in that directory. After restarting the Mousepad System settings program shows extra options, one of them for turning off tapping.

    # put at /usr/share/X11/xorg.conf.d/

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


How to connect on VNC client to non-default display (:1)

For now, the only client that seems to support that is xvnc4viewer where I put in thue VNC server field :

  server_hostname:1


I can't play videos on Facebook and other websites using my Ubuntu 18.04 Firefox

Firefox has changed a lot, HMTL5 is now set by default

Did you try to add the libavcodec57 to play H264 or MP3?

Try the following :

Close your browser
Open the Terminal
Copy and past this command :

$ sudo apt-get install libavcodec

After this install the H264 is set, now restart your browser


Proper alignment of partitions on an Advanced Format HDD using Parted

Parted is just being overly conservative. The usual practice these days is to align partitions on 1MiB (2048-sector) boundaries because this works on Advanced Format disks, on certain type of RAID setups that require alignment, and on most SSDs. For an Advanced Format disk, so long as the alignment is on a multiple of 8, you're fine, and 2048 is a multiple of 8. The lost disk space is puny -- 0.0000336% of your total disk space, if I did the math right and didn't mistype anything. So don't worry about it; just use the 1MiB alignment.


The qt-sdk package was a meta package that was not included beyond Ubuntu Xenial.  You can install the packages that were included manually, if you'd like:

sudo apt install build-essential cmake gdb git libphonon-dev libqt4-dev libqt4-opengl-dev libqtwebkit-dev qt4-designer qt4-doc qt4-doc-html qt4-qmake qtcreator qtcreator-doc subversion


Not sure exactly what version you are on, but you should be able to cycle through open applications by pressing alt + tab. If that doesn't work, I'm thinking that your apps aren't minimized.

Also consider using workspaces to keep running applications organized, it can be accessed in a number of ways. The coolest way to bring them up is with expo, press super + w.

As far as jump drives, my guess is that they are set up on a format that doesn't like. There are lots of ways to figure this out, usually even when Ubuntu isn't "seeing" them. Try plugging one in, then from a terminal enter

lspci

This will give you a print out of every piece of everything connected to your pci bus. See if that lists anything that looks like your drive and go from there


Get the gParted live dvd from http://gparted.org/livecd.php

Burn it to a disk like you would with a normal Ubuntu installation.

Boot from it and you get a gParted session where all your normal disks are not mounted so you can manipulate them (and shrinking is one of those options).

Mind you: always make a backup of important files before messing with partitions.


My user appears twice in the login screen

This can happen if two user accounts have the same GECOS full name.

You can check the usernames and GECOS records for all the (likely) non-system accounts using

getent passwd | awk -F: '$3+0 > 500 {print $1 ": " $5}'

If there's a duplicate in the fullnames (the first comma-separated field of the GECOS record), then you can change one or other (or both, if you prefer) using the chfn command e.g.

sudo chfn -f 'new name for userX' userX

If you don't even want to see an entry for one of the accounts, then you can hide it from the greeter altogether - see How do I hide a particular user from the login screen?

Of course, if the account was created in error you can delete it - but be sure to back up any data just in case.


Configure ubuntu with two network adapters and a switch

you can do it by adding following commands to terminal

route del default
route add default gw 192.168.0.1


How to fix error: "The package lists or status file could not be parsed or opened."?

The problem seems to be the ppa in your sources

Try removing it by using the following steps.

Use the following command to edit the sources.list file:

sudo nano /etc/apt/sources.list
Then remove the ppa:kiwixteam/ppa located at the line 52
Save the file: Press and hold Ctrl. While holding Ctrl press X. Let go of Ctrl and press Y
Then run the following command to re-synchronize the package index files:

sudo apt-get update


Can I create a symlink to a Windows executable in the Windows Subsystem for Linux (WSL) PATH?

You need to prefix the executable with its path. Alternatively you can modify the Linux PATH environment variable and append the Windows path (prefixed with /mnt/c/).

From: Windows Subsystem for Linux interoperability with Windows

  Invoking Windows binaries from WSL

  The Windows Subsystem for Linux can invoke Windows binaries directly
  from the WSL command line. Applications run this way have the
  following properties:

  Retain the working directory as the WSL command prompt except in the scenario explained below.
  Have the same permission rights as the bash.exe process.
  Run as the active Windows user.
  Appear in the Windows Task Manager as if directly executed from the CMD prompt.

  Example:

$ /mnt/c/Windows/System32/notepad.exe

  In WSL, these executables are handled similar to native Linux
  executables. This means adding directories to the Linux path and
  piping between commands works as expected. Examples:

$ export PATH=$PATH:/mnt/c/Windows/System32
$ notepad.exe
$ ipconfig.exe | grep IPv4 | cut -d: -f2
$ ls -la | findstr.exe foo.txt
$ cmd.exe /c dir

  The Windows binary must include the file extension, match the file
  case, and be executable. Non-executables including batch scripts and
  command like dir can be run with /mnt/c/Windows/System32/cmd.exe
  /C command.

  Examples:

$ /mnt/c/Windows/System32/cmd.exe /C dir
$ /mnt/c/Windows/System32/PING.EXE www.microsoft.com

  Parameters are passed to the Windows binary unmodified.

Even in Linux symbolic links contain the path. Take for example this command:

$ ls -la /bin | grep ^l
(...SNIP...)
lrwxrwxrwx  1 root root      20 Jun 27 09:49 systemd -> /lib/systemd

systemd is linked to /lib/systemd/systemd. So your symbolic link of:

sudo ln -s -t java.exe java

I imagine (because I'm not a link expert) would need to look something like:

sudo ln -s -t /mnt/c/Windows/Path/To/java.exe java

Use alias instead of symbolic link

Rather than a symbolic link I would create an alias in my ~/.bashrc file thusly:

alias java='/mnt/c/WindowsPathTo/java.exe'

Then whenever you type java the mumbo-jumbo is typed on your behalf. Any parameters passed are honoured.


Unfortunately, Ubuntu Software Center was discontinued in 2015. It was replaced with GNOME Software (rebranded as Ubuntu Software) - so unfortunately the old links to apps.ubuntu.com do not work anymore . The new standard for software from an app-store like interface under Ubuntu is "snaps" from snapcraft and not deb packages any more - that's why you get redirected.

See also the last paragraph of this answer here.


Bummer, sounds like unity/compiz has crashed on startup.  Can you edit your question with relevant output from ~/.xsession-errors (if there is any in there)?

As a workaround you can switch to unity-2d from the gear menu on the login screen.


How do I install 32-bit libraries when they keep having uninstallable dependencies?

apt-get download overlay-scrollbar-gtk2
sudo dpkg --ignore-depends overlay-scrollbar -i overlay-scrollbar-gtk2*.deb

Simple.

This will work, if you've already installed package for your architecture. If not, you will get errors, while trying to use dpkg/apt-get next time. To fix them, run:

sudo gedit /var/lib/dpkg/status

Find Package: [package name, overlay-scrollbar-gtk2 in this case], and remove ignored dependencies from Depends: (overlay-scrollbar in this case).

If you use gedit, make sure you've disabled automatic backups in Edit > Preferences > Editor before saving. Notice that gedit has seperate preferences for each user, and you're running it as root.


Does TrueType core fonts for the Web (included in ubuntu-restricted-extras) share data with Microsoft?

The package ttf-mscorefonts-installer, as it can be seen on the enclosed screenshot, basically contains only a script /usr/lib/msttcorefonts/update-ms-fonts, a list of font files to download (/usr/share/package-data-downloads/ttf-mscorefonts-installer) and documentation files. The font files are downloaded from SourceForge (not even from Microsoft), and uncompressed by the aforementioned script into /usr/share/fonts/truetype/msttcorefonts directory.
Although the font files themselves are compressed to .exe format, they are just self-extracting archives, and because .exe files obviously can't run on Linux, they are uncompressed using an external tool (cabextract) anyway.
So there's no place where any data could be shared with Microsoft.


Probelm with shift+alt+down or shift+alt+up

I Just fix my problem there are various questions asked here that helped me to give me idea what was happening

After reaching i found that my shift+alt was not working because they were changing my input method and i just disable it from gnome-tweak-tool


How to save changes and installed packages so I can install them in other systems

Backing up should be:

dpkg --get-selections > ~/Package.list
sudo cp /etc/apt/sources.list ~/sources.list
sudo apt-key exportall > ~/Repo.keys

and restoring should be

sudo apt-key add ~/Repo.keys
sudo cp ~/sources.list /etc/apt/sources.list
sudo apt-get update
sudo apt-get install dselect
sudo dpkg --set-selections < ~/Package.list
sudo apt-get dselect-upgrade -y

...If I'm not mistaken.


NTFS -> EXT4 migration, where did 120 GB go?

After some fiddling about, I was able to reclaim a large amount of space with tune2fs:

wim@wim-ubuntu:~/Desktop$ df -h | grep sdc
/dev/sdc1             1.8T  1.7T  352M 100% /media/data
wim@wim-ubuntu:~/Desktop$ sudo tune2fs -l /dev/sdc1 | grep 'Reserved block count'
Reserved block count:     24418900
wim@wim-ubuntu:~/Desktop$ sudo tune2fs -m 0 /dev/sdc1
tune2fs 1.41.14 (22-Dec-2010)
Setting reserved blocks percentage to 0% (0 blocks)
wim@wim-ubuntu:~/Desktop$ sudo tune2fs -l /dev/sdc1 | grep 'Reserved block count'
Reserved block count:     0
wim@wim-ubuntu:~/Desktop$ df -h | grep sdc
/dev/sdc1             1.8T  1.7T   94G  95% /media/data

Apparently linux reserve 5% of new partitions for the root user and system services, so that when you run out of disk space, root can still log in and clean stuff up with system services running ok. Seems kind of bananas to me when the system services only need a hundred meg or so, and 5% of a 2TB drive is a $h17load more than that.. shrugs

This left me with 93.5 GB free, which still leaves about 30 gig unaccounted for, so if anyone has any more ideas feel free to chip in!


Creating Custom Short cut Keys Ubuntu 12.04

Like carnendil has mentioned. There is a tab entitled, "Shortcuts" in the "keyboard" option from "all settings". Down to the left, there is the option, "Custom Shortcuts". Use (+) and (-) to add or remove shortcuts!

For instance, to add the shortcut for (System monitor), press (+), a small prompt will ask you to enter the short cut name and command,

Name: System monitor
Command: gnome-system-monitor

After pressing apply, the short cut will be disabled. Click on the word (disable) and press on the keys combination for your shortcut.


The solution was actually pretty simple:
I just had to disable and re-enable secure boot.
I am really sorry for bothering you guys.


no wifi after upgrade to 15.04 (no interface showing) bcm4313

You should install the driver of your WiFi card.

If you can connect to internet via cable then go to Dash > Softwares Sources > Additional Drivers, and you should see the driver of your WiFi card: enable it, and you're done.

If you have no cable then you should mount the Ubuntu ISO Image (right click on the image > open with disk image mounter). From the mounted image root, go to pool/restricted/b and double click on the package there. The software installer will pop up, click install and restart once finished. You should now be able to see the wlan0 interface.


could not start kdeinit5 after Kubuntu upgrade to 18.04

it works again.
i have this mesa ppa https://launchpad.net/~oibaf/+archive/ubuntu/graphics-drivers
and before the update all 3rd party ppa get deactivated.
i forgot about that. i just added the repository again and did "sudo apt-get dist-upgrade"

thx anyway


how do I put Ubuntu onto my galaxy S5 Rooted?

Unity 8 as default GUI only in april/2016.

http://mhall119.com/2014/10/unity-8-desktop/

With that Canonical able to finally achieve your goal of having a converged operating system, ie, the same system interface (and code) will be used in both smartphones and tablets as on PCs.

You can try now for your own risk.


Is there anything more minimal that Ubuntu minimal(mini.so)?

Well it's not Ubuntu, but search up "damn simple linux" all it is, is just linux at the core with no package manager and a few built in apps.


You can go in to the app store and get something that is really close to minecraft (I honestly like it better than minecraft), it is called minetest. It works really well and is amazing!


Dash won't launch applications after upgrade to 14.04

Try reinstalling unity with:

sudo apt-get update
sudo apt-get install --reinstall ubuntu-desktop
sudo apt-get install unity


Minimal Ubuntu server image and OpenVZ OS images

In general openvz guests are designed to be as small and lightweight as possible. I highly suggest you use the of the official templates and follow the advice on the openvz site if you are new to openvz.

Most of those packages appear completely optional but some of the commands related to the kernel or networking may not be working in Ubuntu guests so thus the advice to remove.

Of course removing packages is completely optional but if you have a problem with your guest you will have to fall back to the advice you were given.

Last as a very general rule openvz is poorly supported by the Ubuntu developers they prefer LXC.

Every bug I have ever files on launchpad with openvz hosts and guests has been marked as either invalid or won't fix.

I advise you either use LXC or convert to from ubuntu to o e of the rpm hosts supported by openvz or debian. The debian kernels patched for openvz are more limited in number.  I do not use Ubuntu openvz guests at all any longer, debian only. If you look on the community contributed guests I posted several openvz Ubuntu guests years ago, nothing recent.


What is the difference between similar installed PHP packages?

When Debian changes to another version of PHP (8.0), php-mbstring will pull in the correct package automatically.

php#.#-mbstring has the code.

php-mbstring has no code, and simply depends upon the correct package with code. This is called a transitional package or dummy package or metapackage.

The same method of a generically-named metapackge to manage automatic upgrades is used to upgrade your kernel.


How do I load iptable kernel modules onto a VPS?

It turns out that I am unable to load kernel modules to a container, since all containers on OpenVZ platforms use the same kernel (unlike Xen).  What I needed to do was get in touch with my provider and have them enable iptables for me.  After that all rules worked.

Funny thing is I still don't have any output by typing lsmod | grep ip and there still doesn't seem to be any kernel folder in my /lib/modules/$(uname -r) folder.  I guess this is not accessible from within a container.


Fixing the Nvidia Graphics Screen Flicker Issue

This worked for me:

Install Compiz Config, from a terminal, type:

sudo apt-get install compizconfig-settings-manager
From the launcher, execute CompizConfig Settings Manager
Check the checkbox in "Utility -> Workarounds -> Force full screen redraws (buffer swap) on repaint"

I have a Dell XPS laptop with a Nvidia GT 525m, using Ubuntu 14.04.

I base this solution on the answers on this thread: Weird partial screen flickering after upgrade to 14.04


Beep sound after pressing enter too many times

Changed Audio hardwares profile (settings) back and forth and that sound disappeared. It seems it was bugged somehow.


How do I show date next to time in the panel with gnome-shell?

As a regular user run this in a terminal when using GNOME Shell:

gsettings set org.gnome.desktop.interface clock-show-date true


Disable Touchpad While Typing does not work

This command worked for me (1 is the number of seconds to wait after the last key is pressed before re-enabling the touchpad, change it to whatever value you desire):

syndaemon -i 1 -K -d

Just add it to Startup Applications to make it work after reboot/shutdown.
To see more options type this command in a terminal:

syndaemon --help or man syndaemon


Connection to HP ENVY 4500 wireless printer failed after upgrade 14.10 -> 15.04

Open a terminal and execute sudo service cups restart
Turning on the printer
Open the location localhost:631 in your browser
Click Administration and Add Printer
Wait a second, your printer should be listed
Select your printer and Continue
Continue again
Click the button behind Or Provide a PPD File
Select your PPD file and click Add printer


Is it possible to watch Netflix on Firefox 48?

I just tried to stream Netflix on my Ubuntu 16.04 machine with Firefox 48.

The site itself works fine, but once I try to start a stream, Netflix asks me to install the Silverlight plugin, which, of course is Windows only.

So no, it doesn't seem possible to watch Netflix on Ubuntu with Firefox. If you do buy the service, you'll have to use Chrome (Chromium doesn't work).


The correct steps:

sudo mkdir /media/newroot/
sudo mount /dev/sda1 /media/newroot/
sudo chroot /media/newroot/
dpkg --configure -a

and then run:

update-initramfs -u -k all

umount /media/newroot/

Then restart.

  sudo: unable to resolve host ubuntu

This is not a big deal and don't care about this run since you are using live cd and Ubuntu is the default hostname in livecd while you are trying to run from chroot.

PS: you dont need sudo when you chroot

There is a bug here about this case


Is it normal for Ubuntu to take a long time to shut down after running the boot-repair program?

I then deleted the 2 volumes which contained the data for my Lubuntu installation (which I originally created by partitioning my second hard drive), deleted the partition, and I extended my second hard drive with the free partition.

You had to be sure that EasyBCD wrote Windows loader directly to first disk's MBR, because for me it always writes loader to partition where Windows is installed. After the first reboot you had GRUB MBR on first disk, Windows MBR on second and no partitions where first could find boot configuration. Sad. And after boot repair you have the same situation because this tool apparently does not recover deleted volumes, it only fixes typical boot problems. To boot Windows, you should make the second disk first in boot sequence or use Windows Repair or Installation Media to fix boot problems, because Ubuntu now nas no deal with it.


Gedit error: Settings schema 'org.gnome.gedit.plugins.restoretabs' is not installed

Your error message indicates that the plugin gedit-restore-tabs is not installed.

Go to https://github.com/Quixotix/gedit-restore-tabs and install the plugin


Swapping the double and triple finger tap actions on trackpad

Try:
 synclient TapButton2=3 {Two Finger tap}
 synclient TapButton3=2 {Three finger tap}

Or just change the numbers to 2 and 3 as I don't know what default numbers are applied by ubuntu, to see what supports your need. You may also need synclient VertTwoFingerScroll=1 to check two finger scrolling. If this temporary setting gets you to what you want. Go to /usr/share/X11/xorg.conf.d and edit the file 50-synaptics.conf with something like this:
Section "InputClass"
 Identifier "touchpad catchall"
 Driver "synaptics"
 MatchIsTouchpad "on"
 MatchDevicePath "/dev/input/event*"
             Option "TapButton1" "1"
             Option "TapButton2" "2 or 3" what worked for you
             Option "TapButton3" "2 0r 3" what worked for you
             Option "VertTwoFingerScroll" "on"
EndSection

Further instructions on touchpad configuration here and here
P.S: These settings are for synapticstouchpad i.e xserver-xorg-input-synaptics


No, you are not wrong. You can even setup PXE server in a virtual machine too.

But I see it just additional work without much benefit, as you can make clones in VM. With VirtualBox for example, it has --mtype multiattach option to attach storage media from a base image. Then it will create just an incremental image for changes. See Multiple VirtualBox VMs using one base image (copy-on-write)


Wi-Fi problems Acer Aspire e15 E5-575G-53VG Ubuntu 16.04 LTS

First, we notice this:

  Group Cipher : TKIP

Not only is TKIP rather insecure, many Linux drivers do not connect well with TKIP. 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.

Next, I recommend that your regulatory domain be set 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, we see that your device is attempting to roam between two networks with the same name, "ea2700". I suspect that they are the 2.4 gHz and 5 gHz bands of your router. I suggest that you rename one, or both, to something like ea2700-2.4 and ea2700-5. Ask your device to connect to one and it will likely stay. At least in my neighborhood, 5 gHz is rare, so I'd make that my first choice.

We also notice that you have both Network Manager and Wicd installed and running. I suggest that you remove Wicd which is, as you've seen, doing no better job that NM:

 sudo apt-get purge wicd


Will USB 3.0 video adapter work with Ubuntu?

Edit: DisplayLink now offers updated drivers that support their newer chips on Ubuntu. They have updated their software across the board to work with most major desktop and mobile platforms almost two years ago.

Allmost all of these devices are based on DisplayLink chips and far as I know the USB 3.0 chips are still not supported in Linux and probably never will as DisplayLink seems to have no interest in working with FOSS developers.

As some disappointed users in the forums pointed out, this technology may become obsolete with newer devices that support the daisy chaining functionality of upcoming versions of the DisplayPort standard.


I accidentally deleted the settings manager

I think you mean Gnome Control Center.

To install:

sudo apt-get install gnome-control-center


No nVidia/nouveau modules loaded, but sytem working fine?

I haven't managed to get to run bumblebee yet, but I'm also seeing no nouveau entries in the output of dmesg until trying to run something that actually accesses the discrete graphics adapter with optirun:

optirun glxgears

Then you should be getting nouveau or nvidia entries in your logs, and also in the output of lsmod.

By default, only the integrated graphics adapter is used, most probably with a different driver.


Can't ping Brother HL-L2390DW on Ubuntu 18.04

It works now!

Here's a bunch of things I did.  I don't know how many of them were necessary, but I did all of them and now I can scan.

Copied the contents of /usr/lib64/sane to /usr/lib/sane because they don't maintain this for Linux and put the files in the wrong place (https://support.brother.com/g/b/faqend.aspx?c=us&lang=en&prod=hll2390dw_us&ftype3=100258&faqid=faq00100617_000)
Added

ATTRS{idVendor}=="04f9", ENV{libsane_matched}="yes"

to /lib/udev/rules.d/40-libsane.rules (https://support.brother.com/g/b/faqend.aspx?c=us&lang=en&prod=hll2390dw_us&ftype3=100258&faqid=faq00100604_000)

Installed the "Scanner Setting file" (https://support.brother.com/g/b/downloadhowto.aspx?c=us&lang=en&prod=hll2390dw_us&os=128&dlid=dlf006654_000&flang=4&type3=600)
For some reason I can't ping 010.000.000.117 (even after the firewall problem was resolved, cf comments to OP), but I can ping 10.0.0.117.  I'm kind of confused because I thought these would be the same.  Maybe I just don't understand IP addresses.   Anyway I changed the IP address in brsaneconfig4 from 010.000.000.117 to 10.0.0.117.  Somehow brsaneconfig4 -q prompted me to do this, I didn't have to do it manually with brsaneconfig4 -r and brsaneconfig4 -a.
Rebooted a bunch of times between different steps.


Install driver for Exar XR17V358 in Linarto Ubuntu 12.04 LTS

You need to install linux headers. Ubuntu 12.04 never had 3.0 kernels.

Run in terminal

sudo apt-get install linux-generic

This will install kernel image and headers 3.2.

If you can't do this, then you need to install Ubuntu headers for the kernel you have.


The big difference is that gnome-terminal is a GUI application, a window. It's a sort of interface to the shell, but they're essentially separate. When GUI application exits, the GUI server ( X11 and presumably Wayland as well ) cleans up the windows and closes them. gnome-terminal being a parent of the shell, will send a SIGHUP to close the child processes, and that will close the shell session. Similar situation occurs with TTY consoles or ssh. In TTY, you have agetty process, which will accept your login credentials and then launch a particular program, typically a shell, though in certain cases it could be configured to run something else entirely.

Now, tmux is different - it is a console application and doesn't depend on login (though you could make it appear upon login to tty). Say you've got a server in New York, but you are in California. You want to start a long running command, maybe upgrade, and disconnect from the remote session. What you can do is start tmux, start the command in the  shell tmux opens, and via Ctrl+b & d detach from the session. The command will remain running in the shell instance managed by tmux unlike gnome-terminal. Next day you can do

$ tmux ls
0: 1 windows (created Fri May 17 13:42:54 2019) [167x48]

to find the running sessions and connect back to it via

$ tmux attach

for the most recent session or via

$ tmux attach -t 0

to attach to the session named 0 as in my example. Overall tmux has server-client approach, where you connect to the a particular session handled by the server process, and that communication goes on via a unix domain socket ( by default in /tmp/tmux-<UID> ), so long as the system hasn't been rebooted.

Underneath the hood, both tmux and gnome-terminal use pts virtual terminal device (unlike tty which is used for serial consoles or the virtual tty1 console for example). They both are capable of launching interactive shell and individual commands from /bin or /usr/bin, or something you custom built. Yet their essential purpose is  different.

See also

Difference between pts and tty


Notation of choice: Apt displaying bits per second rather than bytes per second

No, that output isn't configurable. From the source, for example, the lines for showing the current speed and ETA:

unsigned long long ETA = (TotalBytes - CurrentBytes)/CurrentCPS;
std::string Tmp = " " + SizeToStr(CurrentCPS) + "B/s " + TimeToStr(ETA);
size_t alignment = Line.length() + Tmp.length();
if (alignment < ScreenWidth)
{
 alignment = ScreenWidth - alignment;
 for (size_t i = 0; i < alignment; ++i)
    Line.append(" ");
 Line.append(Tmp);
}

The output is always some prefix + B/s.


Login screen remains on lightdm, while desktop on GNOME Xorg

Glad to have been of help. Here's the solution as an answer rather than a comment:

Switch from LightDM to gdm. To do that open a terminal and type

  sudo dpkg-reconfigure gdm

then select gdm and reboot.


Here is my solution with Bash only:

for x in {0..8}; do
    for i in {30..37}; do
        for a in {40..47}; do
            echo -ne "\e[$x;$i;$a""m\\\e[$x;$i;$a""m\e[0;37;40m "
        done
        echo
    done
done
echo ""

One-liner:

for x in {0..8}; do for i in {30..37}; do for a in {40..47}; do echo -ne "\e[$x;$i;$a""m\\\e[$x;$i;$a""m\e[0;37;40m "; done; echo; done; done; echo ""

Here's a picture in Cygwin:


Try starting Ubuntu in recovery mode.

First, Connect an ethernet cable and manually configure a network connection:
https://help.ubuntu.com/community/NetworkConfigurationCommandLine/Automatic

Make sure that you have an internet connection:

ping -c 4 google.com

From there, remove amd and nvidia drivers:

sudo apt-get remove --purge xorg-driver-fglrx fglrx* nvidia* nouveau xserver-xorg-video-ati

This should remove amd and nvidia video drivers.

Install the open source video driver:

(Proprietary drivers can be installed later)

Intel: no action needed
AMD: sudo apt-get install xserver-xorg-video-ati
Nvidia: sudo apt-get install nouveau

Reconfigure x:

sudo apt-get install build-essential cdbs fakeroot dh-make debhelper debconf libstdc++6 dkms libqtgui4 wget execstack libelfg0 dh-modaliases
sudo apt-get install --reinstall libgl1-mesa-glx libgl1-mesa-dri
sudo mv /etc/X11/xorg.conf /etc/X11/xorg.conf.old
sudo dpkg-reconfigure xserver-xorg

Update and fix broken dependencies:

sudo apt-get update && sudo apt-get upgrade && sudo apt-get autoremove && sudo apt-get check

Now reboot:

sudo reboot now

Your system should be back up now. To install the proprietary driver or for other gpu chips, go here for instructions: https://help.ubuntu.com/community/BinaryDriverHowto


there is no need to join the domain to be able to access its resources as long as you specify what realm(domain) you are authenticating from/ to.
That is the case both in Linux and windows. So skip it.

here is an example of how to mount a network folder on a windows domain.

sudo mkdir /media/servershare
sudo mount -t smbfs -o username=yourusername,workgroup=yourdomainame,users //DnsNameOfServer/sharename /media/servershare

I believe dosbox currently doesen't support parallel port mapping.

Wine is used for Windows applications and you are talking about a dos application so it's not going to work either.

This leaves you with running either dosemu or Virtualbox.
I would start with Virtualbox since it has a nice GUI and easy options for mapping hardware devices and folders to it's guest.


I'd do it as follows:

menu() {
    clear
    echo "Available options:"
    for i in ${!options[@]}; do
        printf "%3d%s) %s\n" $((i+1)) "${choices[i]:- }" "${options[i]}"
    done
}

prompt="Check an option (again to uncheck, ENTER when done): "
while menu && read -rp "$prompt" num && [[ "$num" ]]; do
    [[ "$num" =~ "-" ]] && num=$(seq $(sed -E 's/(\d*)-(\d*)/\1 \2/' <<<"$num"))
    for i in $num; do
      ((i--))
      [[ "${choices[i]}" ]] && choices[i]="" || choices[i]="*"
    done
done

This tests if $num contains a hyphen and builds the range if necessary, then simply loops over the content of $num so that users can give multiple options at once with e.g. 1 2 4 or 1-4 (but not a combination of those!). It also clears the terminal every time before the menu is printed.


Macbook Pro Ubuntu install freezes after grub menu

For anyone else having this problem, it seems like it might be caused by a display driver issue. This can be fixed by adding the 'nomodeset' parameter in the kernel settings on startup. This instructs the kernel to not load video settings during startup but leave it to the X driver when it loads. This means no beautiful splash screen on startup but it beats a non-functional kernel.

The following link might be useful for people who don't know how to add the parameter: http://ubuntuforums.org/showthread.php?t=1613132

PS This issue might also be fixable by correcting video driver settings once the system is booted up. However, this still requires the above step for an initial boot.


/var/log/account/pacct is getting too big, where is ckpacct (to cicle/gzip it)?

The script that cycles the logs is in /etc/cron.daily/acct. The number of log files is controlled by /etc/default/acct, which also controls whether process accounting should be enabled at boot time.

If you want to entirely remove process accounting, sudo apt-get purge acct should do the trick too.


No PPA is needed.

In Ubuntu 14.04 Audacity 2.0.5 is available in the universe Ubuntu repository.

You can install it from the terminal using the following command:

sudo apt-get install audacity


Why does my Ubuntu 20.04 installation sometimes hang on booting?

This can sometimes happen when there is a conflict between systemd and the Intel display drivers. I haven't seen this particular issue for years, but you should be able to fix it with a little workaround:

create a file as root named /etc/sysctl.d/50-coredump.conf
Paste:kernel.core_pattern=core
Reboot

This should resolve the issue.


sudo rm /var/lib/dpkg/lock should do the trick. You can use ps afx|grep dpkg to check if there is still a process runnning at the same time. sudo killall dpkg will stop all running dpkg processes.

If you need to cancel the dropbox installation, try
sudo dpkg --force-remove-reinstreq --remove nautilus-dropbox


How do I start vino-server at boot or login so I can control it remotely?

I was in a similar situation looking for a way to administer some remote Ubuntu servers around the country.

A quick and dirty solution is to have Ubuntu automatically login, have vino in the startup applications, and then set the screensaver to lock in 1 minute.

It's not the most secure method, but all of my servers are running headless in controlled/secure environments so my one minute of exposure is acceptable to solve my dilemma.

The other option would be to not use vino.  Another vnc server like vnc4server can be run from the rc.local and start on bootup.


How does one reset Rhythmbox for a new library?

If you want to start over again with Rhythmbox you could un + re-install.

First you want to purge (instead of remove) in order to delete not only the program but also the configuration files: sudo dpkg --purge rhythmbox

Then you can re-install rhythmbox: sudo apt-get install rhythmbox


How to lower wait time for repository updates

How can I lower the time so that if a particular repository takes more than 10 seconds to connect or finish it should ignore it and move the following ones?

Mirrors are one option, as @adempewolff explained. Let me give you a direct answer though:

Setting apt-get connection timeouts

You can control these timeouts via the following apt.conf options:

  Acquire::http::Timeout "10";
  Acquire::ftp::Timeout "10";

Note that this only applies to connection timeouts, NOT "finish time" timeouts, i.e. if it connects within 10 seconds, it will continue to download a 100MB package even if it's at 1 KB/second :)

To implement these options, simply create a conf file in /etc/apt/apt.conf.d; suppose we call it 99timeout.

Press Alt+F2, type gksudo gedit /etc/apt/apt.conf.d/99timeout
Type/paste the above lines, with your choice of timeout in seconds
Save and exit.
Now try sudo apt-get update

And the terminal-addict's "find best server" hack!

Expanded and moved as an answer to this more appropriate question

Additional apt-get conf options that you can try to tweak

Acquire::Queue-Mode: Queuing mode; Queue-Mode can be one of host or access which determines how APT parallelizes outgoing connections.  host means that one connection per target host will be opened, access means that one connection per URI type will be opened.
Acquire::Retries: Number of retries to perform. If this is non-zero APT will retry failed files the given number of times.
Acquire::http::Dl-Limit: accepts integer values in kilobytes, to throttle download speed and not slow down your browsing/email/etc. when updating. The default value is 0 which deactivates the limit and tries uses as much as possible of the bandwidth. If enabled, it will disable apt-get's parallel downloading feature.
Dig through man apt.conf if you think something else might help!


pgadmin4 401 Unauthorized in Ubuntu 18.04

Escaping %URL% in the Browser Command setting with quotation marks seems to fix the problem for me. To do that, right-click the pgAdmin icon in Status & Notifications area, select Configure, and in the Browser Command field enter

/usr/bin/firefox "%URL%"

Note the "s.

My original answer was:

I'm having the same issue on an older version of Kubuntu (16.04), and while I have no real solution, here's an easier workaround:

Once you launch pgAdmin and it opens a browser that shows you that HTTP 401 error message, you'll find a pgAdmin icon in Status & Notifications area of the system tray. Right-click it and select Copy server URL. You can then open this URL in your browser, and it should log you in properly.


How to transfer Ubuntu to SSD, but keeping home on HDD?

When booting from live media, this can be broken down into 3 steps:

Copying the operating system data to the new drive

Before you start, make shure that the new drive has the correct partition table. GPT is (mostly) for EFI and requires a special partition for the bootloader. Don't forget to mark the new operating system partition as bootable on MBR installs.

Using rsync from live media should be the most practical solution to copy the files:

sudo rsync -av --exclude=/home/* /media/$mountpoint_of_old_drive/ /media/$mountpoint_of_new_drive/

Install the bootloader to the new drive

sudo grub-install --boot-directory /media/$mountpoint_of_new_drive/boot /dev/sdX

/dev/sdX should be changed to the actual device name of the new drive.

If you have an EFI installation instead of MBR you should make sure that you booted the live media in EFI mode, ran sudo apt-get install grub-efi-amd64, have created an EFI System Partition (ESP) on the new drive and that the ESP is mounted to /media/$mountpoint_of_new_drive/boot/efi (or use the --efi-directory option, have a look at the grub-install manpage).
Update the configuration

You need to update the UUID in /etc/fstab for /. Get the UUID of the new operating system partition by executing sudo blkid /dev/sdXY, copy the UUID without quotation marks, run sudo nano /media/$mountpoint_of_new_drive/etc/fstab and replace the existing UUID in a line that looks like this:

# / was on /dev/sda2 during installation
UUID=a7aea81b-0e7f-4ec0-8be4-b0ec75c13fdc    /    ext4    errors=remount-ro    0 1

But before you replace the line you may want to make a copy of it by pressing Ctrl+K and Ctrl+U. As your home is still on the old drive, the old UUID should be correct and you would just need to update the mountpoint to /home/$your_username (replace $your_username with the name of your user's home directory) and some options (pay attention to relatime,acl and 2 at the end):

# Mountpoint for home or user partition
UUID=063a996a-0303-42b2-b719-af920fd105fa    /home/$your_username  ext4    relatime,acl     0 2

Save with Ctrl+O and exit with Ctrl+X.

You should think about moving the individual home directories to a separate home-partition (it's just a partition with user's home directories mounted as /home in fstab, you can use sudo rsync -av again to copy data, see How can I move my /home directory to another partition if it's already part of the / partition?), as you would have to create a new line for each user this way.

If you created a new swap partition on the SSD you have to update the UUID for this too:

# SSD swap
UUID=b7c315cb-cf89-463b-888a-185a1faa8250       none            swap    sw                              0       0

Additionally you need to update the UUID of the swap partition in /media/$mountpoint_of_new_drive/etc/initramfs-tools/conf.d/resume, run sudo update-initramfs -k all -u after booting from the new drive the first time and reboot to have hibernation working again.

Remember to also update the mountpoint for the ESP in fstab too for EFI installs.

Looks complicated, but it's simple to do, just difficult and lengthy to describe in detail.

Troubleshooting

grub-install somehow fails to install with UEFI

Hint: You probably forgot to run sudo apt-get install grub-efi-amd64 when GRUB says something about i386-pc.

You copied the content of your root (/) partition including /boot, right?
You copied the content of your ESP? Do that if you havent.

Edit EFI/ubuntu/grub.cfg on the new ESP. Replacing the UUID with the UUID of the new root partition should be sufficient, if not change the hd0,gpt2 part from this example accordingly too. This is how the content of file usually looks like:

search.fs_uuid a7aea81b-0e7f-4ec0-8be4-b0ec75c13fdc root hd0,gpt2
set prefix=($root)'/boot/grub'
configfile $prefix/grub.cfg

Boot from your old installation, run sudo update-grub, os-prober should find the new installation on the other partition and add a GRUB entry.

Boot this new entry.
You should be booting now from the SSD, run sudo update-grub here again to update and fix the GRUB configuration on the SSD.

Run efibootmgr -c -d /dev/sdX -p Y -l \EFI\ubuntu\grubx64.efi -L "Ubuntu" to add the boot loader for new/transferred installation as a new boot option to UEFI NVRAM. /dev/sdX is the device name of the new harddrive, Y the partition number.


In Chrome, we should enable asynchronous DNS. One should go to Chrome flags, by typing chrome://flags in the address bar and then #enable-async-dns.

On my machine this shows:

Client DNS asynchrone intégré Mac, Windows, Linux, Chrome OS
Cette fonctionnalité active le client DNS asynchrone intégré et expérimental. #enable-async-dns


How to keep terminal open after launching desktop file

Try changing .desktop file Exec line to this may be solve your problem? Keeps 100 seconds for gnome-terminal (replace gnome-terminal to another if you using else.)
Exec=gnome-terminal -- /bin/sh -c 'python3.9 -m account_balances; sleep 100'


No sound plays from headphones on an MSI Wind u100 netbook

I was in the same quandary, running ubuntu 11.10 I would plug in my headphones and the sound would stop from my speakers but no sound would emit from my headphones.  Below is a possible workaround that worked for me:

Left click on the upper right speaker/sound icon and then in the context menu that appears, click on sound settings at the bottom.

Now click on the "output" tab. Here you should see your audio device for output and at the very bottom a drop down that is labled "connector".

When I plug in my headphones, this drop down automatically changes to "Analog Headphones".  If I then click on the drop down menu and change this to be "Analog Speakers" without unplugging or changing anything else, the sound just starts to work again in my headphones.

Hope that helps.


I do not have enough reputation to comment but I have resolved this issue after a day of fiddling. I was trying to install Time Doctor Pro on Ubuntu 18 LTS, and the issue is it doesn't sync but solved it finally.

@madzohan the reason Time Doctor Pro doesn't sync is that it cannot establish an SSL Connection to the Time Doctor server. You would see this error if you run ./timedoctor in the terminal.

I tried installing libssl-dev but it didn't make a difference. Dug deep on other forums on how to resolve the SSL issue and tried every suggestion I come across.

The solution is to install libssl1.0-dev

sudo apt-get install libssl1.0-dev

Note that it will remove other libssl related packages. After that, your Time Doctor Pro should work as intended.

You're welcome!


Dolphin displaying samba files as folders on Kubuntu Focal Fossa

I have the same problem. But it doesn't depend on Dolphin. I tried with Konqueror, Krusader, Nautilus: nothing changes. Maybe it depends on smb1 protocol that from Samba 4.11 is deprecated (https://www.samba.org/samba/history/samba-4.11.0.html). Maybe you could think to file a bug to https://bugzilla.samba.org
P.S.
I've just discovered that there is a bug in Ubuntu too:
https://bugs.launchpad.net/ubuntu/+source/samba/+bug/1872476
It seems they can fix it today...

Update:
It seems they fixed the bug:
https://bugs.launchpad.net/ubuntu/+source/samba/+bug/1872476
You have to update some samba files.


Some Info:
Switchable graphics are not supported in ubuntu, at least not the real thing.
In order to switch from Intel to AMD and vice versa you have to open Catalyst Control Center and switch it from there manually and then do a restart (Which sucks).

I hope that will change sometime soon.

Also, I play a game called Second Life after I installed the drivers, I could only run it with the AMD card, not with Intel.

Before the installation of the drivers tho, I DID manage to run the game with Intel card.
Not sure why and how that happened. But I thought I should warn you about stuff.

INSTALLATION

You can download the drivers from Here

Select Notebook, Radeon HD, then your AMD graphics card model then OS (yeah obvious stuff).

NOTICE: Replace the lame names I put for explaining with actual names and locations

When the file is downloaded, open a terminal and go to the downloaded file location:

cd ~/downloaded/file/location/goes/here

extract its contents with:

unzip downloaded-file-name-goes-here

change the permissions of the extracted file to allow execution:
    chmod 775 extracted-file-name=goes-here

And install it with:

sudo ./extracted-file-name-goes-here

When the Installer dialog appears, select: Install Driver xx.xxx on X.Org x.x or later 64-bit (or 32 bit, depends on your system) Don't try to generate Ubuntu specific package, I did and it failed.

For my system, ubuntu 12.04 the commands I had to type are:

cd ~/Downloads
unzip amd-catalyst-13.12-linux-x86.x86_64.zip
chmod 775 amd-catalyst-13.12-linux-x86.x86_64.run
sudo ./amd-catalyst-13.12-linux-x86.x86_64.run

Then follow the steps above (clicking doesn't need much explanation)

If there are any extra steps, i don't think it will be hard to figure them out.

And that's about it all.

Hope this helped and Good Luck.


Why is the content of /run/resolvconf/interface/NetworkManager changed every time I reboot?

The /run mountpoint is supposed to be a tmpfs mounted during early
  boot, available and writable to for all tools at any time during
  bootup.

What does this mean?

This means /run is tmpfs which means data on it is not a permanent  storage, it looks like the /tmp, so you can depend on saving any data there since this dir will completely wiped with another data during booting. For that you are loosing your configuration everytime.

Please take a look in this Why has /var/run been migrated to /run?

Now for you, just add nameserver in  the /etc/network/interfaces

dns-nameservers 127.0.0.1

read this Adding nameserver in resolv.conf

Else you can  put it in  /etc/resolvconf/resolv.conf.d/base

read this for more information


I just tried reinstalling it and it just worked. I didn't change anything.

Maybe there was an update to the installer?


Can't write to partion after creating it with GParted

As I can understand, your mount point is named BackUP.

So you should take ownership of the filesystem with:

sudo chown $USER:$USER -R /media/$USER/BackUP


smart-git does not refresh updated file automatically?

I have my home directory backed up using Git, but I have everything ignored by default (and only backup the files I specifically want).

However, if I understand it correctly, SmartGit interprets this as "oh, these directories are ignored, I won't scan any files in them," even if they happen to be tracked in other Git repos.

I appended this line to ~/.smartgit/7.1/smartgit.properties, and it fixed my problem:

smartgit.filemonitor.excludeIgnoredDirectories=false


You should be able to use the concatenate function, from the Inset --> Functions --> Text menu, e.g.

=CONCATENATE("Person ",A49," lives in ",B49," and has phone number ",C49)

where A,B,C are replaced by the appropriate column indices of your spreadsheet.


After opening a ticket with JetBrain's support, this is what helped me:

Open (or create) webstorm64.vmoptions file. If you can open
WebStorm, you can go to Help -> Edit Custom VM Options.... If you
can't, create a file named webstorm64.vmoptions in the config
directory (usually ~/.WebStorm<version>) and open it in a text
editor.
Find (or create) a folder that you have full permissions to (e.g. mkdir ~/.ws-prefs)
Add the following line to the file:
-Djava.util.prefs.userRoot=absolute_path_to_prefs_folder

Save and restart WebStorm.

Edit:

The issue happened again after upgrading WebStorm and a few reboots. This time, I've noticed that although it crushed during initialization after I've logged in to my JetBrains account, I was able to run WebStorm with a trial license. So I removed the entire configuration folder (rm -rf ~/.WebStorm<version>) and everything works again (for now...)


Ubuntu 16.04.2 on Intel NUC7i3, Bluetooth not working

The firmware for this BT device can be installed by updating linux-firmware package from yakkety repos.

It can be done by

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

This firmware contains the required ibt-12-16.sfi file.

Most likely the xenial version will be updated too in a while.


WiFi doesn't want to connect until restart Ubuntu 20.04

Disable Windows Fast Startup feature.
Windows 10 doesn't shut down properly but hibernates.
This may cause some trouble with wireless devices if you boot to Ubuntu and also NTFS partitions are mounted read-only.


Yes it is possible to play from two different sources on Ubuntu using Pulse audio, maybe mpg123 is not using Pulse audio. Try using mplayer as your command line player and see what happens.
You can install mplayer from console with: sudo apt-get install mplayer


wireless internet connectivity not detected

One of the reasons you cannot connect may be that the router does not broadcast it's SSID.
You must log into the router, and change that.  Second: get the name of the router and the password of the wireless section.  Provide these to the network connection to get the connection established.  Not knowing what router you have I can't give the exact details.
The above worked with my DLink router.

you should have a wireless icon in the top panel.
click that icon
then select "Create New Wireless Network
Provide the name of the home network
set the encryption to what is used by the router
enter the password to the home network and finish.

The laptop should find it as long as the broadcast SSID is turned on.

Hope this helps