Here is a perl script to determine the size of each Git commit:

The source is here, I have added one modification:

#!/usr/bin/perl
foreach my $rev (`git rev-list --all --pretty=oneline`) {
  my $tot = 0;
  ($sha = $rev) =~ s/\s.*$//;
  foreach my $blob (`git diff-tree -r -c -M -C --no-commit-id $sha`) {
    $blob = (split /\s/, $blob)[3];
    next if $blob == "0000000000000000000000000000000000000000"; # Deleted
    my $size = `echo $blob | git cat-file --batch-check`;
    $size = (split /\s/, $size)[2];
    $tot += int($size);
  }
  my $revn = substr($rev, 0, 40);
#  if ($tot > 1000000) {
    print "$tot $revn " . `git show --pretty="format:" --name-only $revn | wc -l`  ;
#  }
}

Start the script in your git repository.

<path_to_script>/commit-size | awk '/\s80973c0/ {print $1 " bytes"}'  80973c0

My example:

± commit-size | awk '/\se920f35/ {print $1 " bytes"}'
546 bytes


You can periodically run the "maintaining" script below to update the folder with links (e.g. by a cron job or in "Startup Applications", see below).

What the script does

The script lists all video files (by extension) from up to 10 different directories (or  drives) and checks if a similarly named link exists in your "library" folder. If it doesn't, it creates the link.

Although you're asking it for video files, this way you can keep a "library folder" of any kind of documents of a certain file type.

It works pretty fast: to update from an almost full disk of 750GB (slow / external), it took me just 4 seconds, so it will not be a big burden to your system.

How to use

Copy the script below into an empty file and save it as update_links.py.
If necessary, set in the head section the file extensions you'd like to create links of. I already set it to:

extensions = (".flv", ".mp4", ".mp3", ".mkv")

like you mentioned in a comment.

Also set the path to your folder with the links to the videos:

library = "/path/to/your/library_folder"

The script takes up to 10 directories as arguments. To run it, use the command:

python3 <script> <directory_1> <directory_2> <directory_3> <directory_4>

You can add the command to your startup applications: (Dash > "Startup Applications" > "Add") or run it by a cron job.

The script

#!/usr/bin/env python3

import os
import sys
import subprocess

library = "/path/to/your/library_folder"
extensions = (".flv", ".mp4", ".mp3", ".mkv")

def create_links(directory):
    for root, dirs, files in os.walk(directory):
        for name in files:
            if (name.startswith("."), name.count(".") == 0) == (False, False):
                extension = name[name.rfind("."):]
                if (extension in extensions, os.path.isfile(library+"/"+name)) == (True, False):
                    command = 'ln -s "'+root+"/"+name+'" "'+library+"/"+name+'"'
                    subprocess.Popen(["/bin/bash", "-c", command])
                else:
                    pass
            else:
                pass

i = 1
while i <= 10:
    try:
        dr = (sys.argv[i])
        create_links(dr)
        i = i+1
    except IndexError:
        break


"chmod: missing operand" while installing tomcat 7 on Ubuntu 18.04

There is a missing space character of chmod 700 in your question. Open the terminal and type:

sudo chmod 700 ~/tomcat/apache-tomcat-7.0.90/bin/*.sh

The tilde character ( ~ ) in the above command indicates the current user's home directory. Check to make sure that a tomcat directory exists in your current user's home directory.


uGet Message: No response. Is aria2 shutdown?

I have just found the solution which depends on canceling aria2, indeed, I don't know what is aria2 or what is its functionality!

Open uGet settings
From plugin section
In Plugin Matching Order list, select curl.

Checkout the following screenshot:


Where do I set the lockscreen image path in Trusty?

Found a per user setting : launch dconf-editor then untick com.canonical.unity-greeter draw-user-backgrounds.

For a system wide setting the way is the same as for disabling greeter to use wallpapers and setting a common one from /usr/share/backgrounds:

Set a background with Ubuntu-tweak or

sudo -i
su lightdm -s /bin/bash
gsettings set com.canonical.unity-greeter background '/usr/share/backgrounds/MyTrusty.jpg'
gsettings set com.canonical.unity-greeter draw-user-backgrounds 'false'


I would suggest you to use disk utility to verify if you still have the partition where you installed windows 8 or if you have formatted windows 8 partition. If disk utility is not available among you apps, you can download it from software centre.

If windows 8 partition does not exist, then you will have to install windows 8 or if your system have build in recovery or restore tool, you can restore back windows 8. Now if you are restoring back your system, you will loose the Ubuntu installation.

Or if you are installing a fresh copy of windows 8, you can partition your hard drive and set the desired amount of space for windows 8, install windows and and restore grub.

Hope this might help you.


Local webpage/website cannot be displayed

Run sudo chmod -R 755 /home/html in a terminal then try again.

Every file has permission. You can see permission using ls -l in relevant folder

drwxr-xr-x. 2 dedunu dedunu 4096 Sep  3 19:48 Desktop

After d first three characters rwx means owner of this file can read, write and execute.

Then next r-x means group can read and execute.

Then next r-x means others can read and execute.


How do I create a partition in order to dual boot Win7?

You can right-click on a partition with GParted, and select Unmount. From there, you should be able to shrink your partition. You probably won't need to make any backups, although backing up is still a good idea, especially when editing partitions (just in case something goes wrong).

Or, you can shrink the Windows partition from within Windows, by right-clicking on My Computer, select Storage from the pane on the right, and click Disk Management. Right-click the partition you want to shrink, and select Shrink Volume. From there, you can specify how many MB's you want to remove from the total size.


How to give permission to execute Eclipse application?

A full step by step guide:

Remove your Eclipse installation

sudo rm -r /opt/eclipse
sudo rm /usr/share/applications/eclipse.desktop
sudo rm /usr/bin/eclipse

Download eclipse here, eg. Eclipse IDE for Java EE Developers 64-bit.

cd
wget https://eclipse.org/downloads/download.php?file=/technology/epp/downloads/release/mars/R/eclipse-jee-mars-R-linux-gtk-x86_64.tar.gz

Extract the archive

sudo tar xf eclipse-jee-mars-R-linux-gtk-x86_64.tar.gz -C /opt

Create a desktop file

nano ~/.local/share/applications/eclipse.desktop

and add the configuration below

[Desktop Entry]
Encoding=UTF-8
Version=1.0
Type=Application
Name=Eclipse JEE
Comment=Eclipse Integrated Development Environment
Icon=eclipse
Exec=/opt/eclipse/eclipse
StartupNotify=true
StartupWMClass=Eclipse-JEE

Icon=eclipse takes the icon from your icon theme, if there is one. If not, use an absolute icon path.
Start eclipse via your launcher


Is it possible to use onboard graphics for Ubuntu and dedicated card for Windows?

Yes it is possible.  You can use any graphics output you have modules for.  If you do not want to use the ATI Radeon HD5670 you can blacklist the module and it will not load and fall back to the GeForce if modules are available.


What is the difference between Gvim and Vim?

GVim is Vim with a built-in GUI, whereas plain Vim needs a terminal emulator (like GNOME Terminal, for example) to run.

The built-in GUI provides several extra features to GVim. Borrowing from a post in the Vi and Vim Stack Exchange:

  Some features that will only work with gVim:

  Supports a much wider range of colors (RGB), while the terminal only supports 256 colors (see this and this).
  Some other more advanced graphical features, such as "wiggly lines" for spell checking, more flexible cursor shapes, etc. A terminal can
  only do "blocks of monospaced characters".
  Enables mouse support, if otherwise left alone (including drag-and-drop for files). Terminal Vim can also handle the mouse
  quite well, but not drag-and-drop.
  Offers a nice, customizable menu system, where each option has the corresponding Vim command listed.
  gVim can offer you scrollbars which scroll the Vim buffer (and not the Terminal scrollback).
  You can have popup "balloons" (aka. "tooltips").
  Many terminals do not provide true italics like gVim does.
  Has integrated font support.

  Secondly, even if you prefer using Vim, installing a GUI version may
  offer more compile-time features than the version without, at least in
  some distros (such as clipboard and clientserver support on
  Debian-based system in vim-nox vs vim-gnome).

  Things gVim doesn't do:

  gVim isn't a (full) terminal emulator, so starting external programs that use a lot of terminal features won't work very well. For example
  try using :!vim, :!mutt, or :!irssi from gVim, or pressing K
  over a word (which, by default, opens the manpage for that word). Also
  see this.


How is "sendmail: MTA: accepting connections" a correct commandline?

Applications can (and do) rewrite their command line arguments after they have started. Sometimes this is done for security purposes, sometimes for ease of presentation. IIRC, mysql or some other DB command would remove passwords given as arguments from the argument list.

I'm not sure of the method usually used for this, but one way is to re-exec with new arguments:

#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <stdio.h>
#include <unistd.h>

int main(int argc, char *args[], char *env[])
{
    char *argv[] = {"bar: accepting", "blah", NULL};
    if (argc == 1)
    {
        int fd = open("/proc/self/exe", O_RDONLY);
        fexecve(fd, argv, env);
    }
    else
        sleep(100);
}

Testing:

$ make foo
cc     foo.c   -o foo
$ ./foo & pgrep -fa bar
[1] 18047
18047 bar: accepting blah

Note the PIDs.

To see the actual executable being used, check /proc/<PID>/exe:

$ ./foo & ls -l /proc/$!/exe
[1] 18025
3
lrwxrwxrwx 1 muru muru 0 Jan  7 00:59 /proc/18025/exe -> /home/muru/foo


Ubuntu on a secondary drive concurrant with Windows 7

It is absolutely no issue to run Virtual Box with virtual disks, and machine folders located anywhere. This can perfectly be another hard drive or an external USB drive.

The only thing we have to do is to set this up in the Virtual Box preferences where we can define a path for the default machine folder. The virtual disks used by a given machine can even be stored anywhere else.

When starting a virtual machine we then only have to take care that all the locations we may have defined are accessible.

In case you need simultaneous access to both, Windows, and Ubuntu you have little choice other than running one of them in a virtual machine.


A simple way to do this is to use a separate user to run the torrent client, then using iptables simply tag the packets and route them appropriately.

iptables -t mangle -A OUTPUT -m owner --uid-owner custom_user -j MARK --set-mark 11

Once you have done that, then you need to route packets with that mark along your non-tunneled gateway:

ip rule add fwmark 11 table 11
ip route add 0.0.0.0/0 table 11 dev whatever_dev_here

Replace whatever_dev_here with the device name for your local connection.


You can dual boot using Wubi Installer.

Here, go to this website and click "Start Download":
 - http://www.ubuntu.com/download/desktop/windows-installer

When you are finished downloading, click on the Ubuntu icon. It should install like a normal application. When it's finished reboot and let it prepare Ubuntu, then you can dual boot Ubuntu and Window.
If you do not like it, you can always boot back to Windows and uninstall it like a normal application.

(I recommend making a backup of you files first, in case something goes wrong.(which does not happen often))

(Treat it like a program that lets you dual boot)


What does this line "/dev/sda5: clean, 956436/30277632 files, 37421846/121093120 blocs" mean while booting?

It's a harmless message, rather a good news for you!!

While booting, by default, the root filesystem (filesystem containing mount point /), is gone through a filesystem check using fsck, this is the result of that check. If there were any error the filesystem would be mounted read only, rather than read-write.

Although this an assumption from my side, to be precise this is the fsck output for the filesystem created on partition /dev/sda5, as you can do fsck on any disk backed filesystem but by default fsck is not done on  filesystems other than the one having the root directory as mount point.

About the blocks, the filesystem divides the while partition into blocks, blocks are the minimal operational unit (so also the storage unit) to a filesystem. While writing, filesystem writes in full blocks i.e. if a file's actual size is 200 Bytes, it will take a block size space in the filesystem, hence on the underlying disk. For ext4, the block size is 4 KB.

In the message:

956436/30277632 files, 37421826/123093120 blocks

956436 is the number of inodes used from a total of 30277632(fixed at the time of filesystem creation), same goes for the blocks usage numbers.

Here "clean" after the partition means the partition is allright, there is no issue with it.


Fingerprint scanner worked in 14.04 but NOT in 18.04 (shows no device found)

for 14.04 one needed to follow detailed instructions;

https://balintbanyasz.wordpress.com/2015/03/27/get-validity-vfs-495-fingerprint-reader-working-in-ubuntu-14-04/

that included downloading rpm packages and converting them with alien;

this post from 2017 VFS 495 finger print reader not working in Ubuntu updated the above link with updated links; you need to be happy working with terminal commands and to be exact in each step; do you have any friends who work on linux to help you?


sudo modprobe v4l2loopback modprobe: ERROR: could not insert 'v4l2loopback': Bad address

When using iriun for turning your iPhone cam into a webcam, the same error occured to me on Ubuntu 18.04, as it brings v4l2loopback-dkms as a dependency. So I had to first uninstall the package and its dependencies.
sudo apt purge v4l2loopback-dkms

Compiling the module is indeed getting rid of the error.
git clone https://github.com/umlaeute/v4l2loopback.git
cd v4l2loopback
make
sudo su
make install

After install the command: sudo modprobe v4l2loopback exclusive_caps=1 works without issues. But to get iriun to work, I had to do these addition steps:

Install iriun without 4l2loopback-dkms dependency:
sudo dpkg -i --ignore-depends=4l2loopback-dkms iriunwebcam.deb

Fix dependency in /var/lib/dpkg/status
Search for iriun, and remove 4l2loopback-dkms from Depends:
Package: iriunwebcam
Status: install ok installed
Maintainer: Iriun
Architecture: all
Version: 2.2
Depends: qt5-default, jackd, adb
Description: Iriun Webcam for Linux

You could also alter the dependency in the iriunwebcam.deb file, but this way seemed easier to me.
Now iriun works great for me.


How to mount partitions in nautilus as a normal user?

Found the answer myself:
Allow non-admin users to mount drives via nautilus. I can't really copy and paste the steps described in that post, so please just read that one, and you'll be on your way!

Great! Now my system is perfect and safe!


Disk usage on Ubuntu - Find the largest Sized Directory or File

baobab

You can use baobab, which is a graphical tool, that displays the content with a list and a pie chart. You may need superuser privileges to see all directories and files. Do not run 'plain sudo', but use gksudo or sudo -H to avoid damaging your home directory.

sudo -H baobab

Select one of the partitions in the list

Wait while baobab is searching
Look at the graphics to find where most of the drive space is used.

Command line method

If you want to use or must use the command line, I would suggest the following
method with an example corresponding to the same system as inspected with baobab.

Start looking at the root file system.

sudodus@xenial32 ~ $ sudo du -h --max-depth=1 / | sort -h
[sudo] password for sudodus:
du: cannot access '/run/user/1002/gvfs': Permission denied
du: cannot access '/proc/13795/task/13795/fd/4': No such file or directory
du: cannot access '/proc/13795/task/13795/fdinfo/4': No such file or directory
du: cannot access '/proc/13795/fd/3': No such file or directory
du: cannot access '/proc/13795/fdinfo/3': No such file or directory
0       /proc
0       /sys
4,0K    /cdrom
4,0K    /lost+found
4,0K    /opt
4,0K    /snap
4,0K    /srv
88K     /tmp
172K    /mnt
272K    /root
340K    /dev
12M     /run
13M     /bin
14M     /sbin
16M     /etc
149M    /boot
601M    /var
673M    /lib
7,4G    /usr
23G     /home
709G    /media
740G    /
sudodus@xenial32 ~ $

Then look at the interesting directories, in this case the home directory.

sudodus@xenial32 ~ $ sudo du -h --max-depth=1 /home | sort -h
4,0K    /home/lost+found
60K     /home/lfs
18M     /home/alfons
52M     /home/milla
120M    /home/ingrid
313M    /home/pippi
2,6G    /home/shared
4,1G    /home/sudodus
16G     /home/findus
23G     /home

Next look at (for example) the 25 biggest subdirectories in the home dirctorory of findus,

sudodus@xenial32 ~ $ sudo du -h --max-depth=1 /home/findus | sort -h|tail -n25
35M     /home/findus/screenlet
41M     /home/findus/.Thunderbird-gammal
46M     /home/findus/linux-n-hardware
85M     /home/findus/.rpmdb
102M    /home/findus/.config
107M    /home/findus/.mozilla2
110M    /home/findus/.kde
116M    /home/findus/.mozilla1
117M    /home/findus/.mozilla4
216M    /home/findus/.mozilla
250M    /home/findus/.mozilla3
260M    /home/findus/.wine
317M    /home/findus/program
361M    /home/findus/.local
404M    /home/findus/.talsyntes
564M    /home/findus/.recoll
577M    /home/findus/.unison
687M    /home/findus/Dokument
758M    /home/findus/Musik
1,3G    /home/findus/.cache
1,7G    /home/findus/Skrivbord
1,8G    /home/findus/.linux
1,8G    /home/findus/utdelat
2,7G    /home/findus/.thunderbird
16G     /home/findus
sudodus@xenial32 ~ $


Can't update anything after removing lxde. Error appears

Can you try :

sudo apt-get install --reinstall lxdm

And then, if that succeeds :

sudo apt-get remove --purge lxdm


Slow program launching after editing nsswitch.conf

Turns out it was /etc/nsswitch.conf (source). I need to revert the problematic

hosts:          dns files mdns4_minimal [NOTFOUND=return] resolve [!UNAVAIL=return]

to the default

hosts:          files mdns4_minimal [NOTFOUND=return] resolve [!UNAVAIL=return] dns


You are getting this error:

Unable to extract Initial JS player signature function name

...because youtube-dl is not up-to-date. Google has been changing the way to access YouTube videos more frequently now than was the case a few years ago, so in order to keep youtube-dl up-to-date, it has to be updated more frequently too. To install the latest version of youtube-dl open the terminal and type:

sudo apt remove youtube-dl
sudo apt install python3-pip
python3 -m pip install youtube-dl

To upgrade youtube-dl to the latest version:

sudo snap install youtube-dl # start with snap run youtube-dl

or

sudo python3 -m pip install --upgrade youtube-dl

It's crazy how frequently Google has been changing the code for accessing videos on YouTube. I seem to have remembered updating youtube-dl only a couple of month's ago, but it still couldn't download the selected video until I updated it.

youtube-dl is a Python program, so you can also locally install the latest version of youtube-dl in a Python virtual environment. For information about how to setup and use a Python virtual environment see How to set up and use a virtual python environment in Ubuntu?.


Overriding terminal width in Mercurial command

The following function can be found in /usr/lib/python2.7/dist-packages/mercurial/ui.py:

def termwidth(self):
    '''how wide is the terminal in columns?
    '''
    if 'COLUMNS' in os.environ:
        try:
            return int(os.environ['COLUMNS'])
        except ValueError:
            pass
    return util.termwidth()

From this it is clear that the answer is to simply write COLUMNS=79 in front of the hg command to achieve the desired result:

$ COLUMNS=79 hg log --stat -r 4210 | wc
     10      37     374


Issue with shim-signed library in Ubuntu 19.04

I've came across this issue after upgrading from 18.10 to 19.04 using sudo apt dist-upgrade. GRUB was not working, fortunately, my Ubuntu was booting, possibly it was recognized by EFI mechanizm.

My research led to the conclusion that the reason for this error must be in a newer version of libefivar1 library. I've downgraded it to the latest version provided for Ubuntu 18.10 along with it's dependencies.

First, I went to Ubuntu Packages and downloaded the following packages for cosmic release to a separate folder, for example grub fix:

grub-efi-amd64-bin
grub-efi-amd64-signed
grub-common
grub-pc
grub-pc-bin
grub2-common
os-prober
grub-gfxpayload-lists
libefivar1
efibootmgr
efivar

After that I removed those packages in the newest versions delivered with 19.04 disco release:

sudo apt remove grub-efi-amd64-bin grub-efi-amd64-signed grub-common grub-pc grub-pc-bin grub2-common os-prober grub-gfxpayload-lists libefivar1

And installed previously downloaded packages for cosmic release:

cd grub\ fix/
sudo dpkg -i *.deb

Finally, it's a good idea to prevent them from upgrading:

sudo apt-mark hold grub-efi-amd64-bin grub-efi-amd64-signed grub-common grub-pc grub-pc-bin grub2-common os-prober grub-gfxpayload-lists libefivar1

After a permanent fix is provided by the Ubuntu developers, the following should upgrade the packages to the latest 19.04 version:

sudo apt-mark unhold grub-efi-amd64-bin grub-efi-amd64-signed grub-common grub-pc grub-pc-bin grub2-common os-prober grub-gfxpayload-lists libefivar1
sudo apt upgrade

If you are not able to boot up your freshly installed Ubuntu 19.04 at all, maybe you can combine my steps with steps from this answer using live Ubuntu 19.04 or just use those steps on 18.10 to make Ubuntu booting again.


Ubuntu Server file transfer configuration

First of all you will need a crossover cable to connect a network card to another network card, unless any of the network cards has feature "autosensing". Normal ethernet cables are only good to connect network card to a hub.

To configure your server you will need to edit file /etc/network/interfaces. Check out this guide:
https://help.ubuntu.com/14.04/serverguide/network-configuration.html


Kernel 5.7.0 in Ubuntu 18.04 causes ACPI errors

Mainline kernels are not officially supported by Ubuntu. You can use them for testing or if you need them to support some features unavailable in older kernels.
Unsupported kernels can throw all kinds of warnings and errors in Ubuntu. You can't do much with that. But if all works well, you can ignore it.
I don't see anything critical in the log.
BTW yesterday I installed Xubuntu on a Ryzen 3 3200u CPU and I have no problems on the 5.4 kernel.


Mouse becomes unusable after Corsair Headset

I have this same problem, this is the workaround I've made till there is a real fix.

make corsairFix.sh

#!/bin/bash
corsairId=$(xinput --list | grep "Corsair Corsair VOID Wireless Gaming Dongle" | grep -oP '(?<=id=)\d*')
if [ -z "$corsairId" ]; then
  echo "Corsair VOID Dongle was not found!"
else
  xinput set-int-prop $corsairId "Device Enabled" 8 0
fi

then run:

$ sleep 20 && ./corsairFix.sh

Then quickly add the usb dongle and your mouse and keyboard should be fixed when it runs. This will also disable the on headset volume buttons (not that they work right now anyway.)


Locale variables have no effect in remote shell (perl: warning: Setting locale failed.)

That's because your locale in your local machine is set to German, which SSH forwards to and tries to use on the server, but your server does not have it installed.

You've got several options:

Generate the locale. Generate the German locale on the server with sudo locale-gen de.
Stop forwarding locale from the client. Do not forward the locale environment variable from your local machine to the server. You can comment out the SendEnv LANG LC_* line in the local /etc/ssh/ssh_config file.
Stop accepting locale on the server.  Do not accept the locale environment variable from your local machine to the server. You can comment out the AcceptEnv LANG LC_* line in the remote /etc/ssh/sshd_config file.
Set the server locale to English. Explicitly set the locale to English on the server. As an example, you can add the following lines to your remote ~/.bashrc or ~/.profile files:

export LANGUAGE="en"
export LANG="C"
export LC_MESSAGES="C"

If you don't have root access to the server, the Stop forwarding locale from the client option might be the best (and only) way to go.


scroll in Microsoft USB mouse is not working properly

It's a know bug which happen with a lot of Microsoft mice, the only solution I've found is to unplug it and plug it back. Then it's working properly until the next reboot.


search a file and create a new file only if a condition is met

Tack a short circuit evaluation after grep:

grep -q 'search_pattern' /file && : >/newfile

grep -q produces no output on STDOUT, just exits with exit status 0 if the pattern is found on the file
If the pattern is found (&&), create a file /newfile by : >/newfile.

You could also go for the usual touch /newfile approach, or on bash, an empty redirection -- >/newfile would do too.

Just to note, if the file already exists then touch would only the change the relevant timestamps without truncating the file. And the empty redirection >/newfile is not supported on all shells on-the-go (e.g. in zsh), where you have to manually send the EOF.


After update, audio won't play through HDMI cable

Try installing pavucontrol by opening a terminal and typing:

sudo apt-get install pavucontrol

or via Ubuntu Software Center

After installation, you should be able to configure your audio device with this gui.

For reference see also http://www.freedesktop.org/wiki/Software/PulseAudio/Documentation/User/Passthrough


May be this bug already reported
https://bugs.launchpad.net/ubuntu/+source/zeitgeist-extensions/+bug/757727


Why doesn't networking work after upgrade from 11.10 to 12.04?

If you can ping your router then your network is not really down. I assume the problem is that you cannot access the Internet, correct?

This sometimes happens to me and I seem to be able to recover by

Unplugging the power supply for both my router and my ISP's cable modem.
Restoring power to the ISP's cable modem and allowing it to power up and initialize.
Restoring power to my router.

Have you tried that? (Assuming it applies in your situation.)

It would help us to answer if you updated/edited your question and provided more details as @Huygens has already requested.

Another thing you might try is running the following command in a terminal window:

dig www.askubuntu.com @8.8.8.8

The result you should get should look like this

irrational@BlueUbuntu64:~$ dig www.askubuntu.com @8.8.8.8

; <<>> DiG 9.8.1-P1 <<>> www.askubuntu.com @8.8.8.8
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 861
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;www.askubuntu.com.     IN  A

;; ANSWER SECTION:
www.askubuntu.com.  1942    IN  A   64.34.119.12

;; Query time: 46 msec
;; SERVER: 8.8.8.8#53(8.8.8.8)
;; WHEN: Tue May  8 18:21:34 2012
;; MSG SIZE  rcvd: 51


Is there a way we android users download ubuntu and instal it to our phones?

Ubuntu isn't an app.  It's an operating system.  You already have an OS on your phone which allows you to do many things including downloading and running various apps.

People often change or modify their android OS by burning a different image.

When you burn a different image to your android/phone you risk bricking it.  If this happens, of course you've voided the warren-tee and would need to get a new phone.

At present the list of Android devices is short.  If you want an Ubuntu device strong enough you might consider purchasing a supported one.

Look at this ubuntu development support site:
Installing Ubuntu on devices|Ubuntu Developer


Trouble installing Ubuntu Touch on Nexus 4

Today I did a full wipe of Android, deleted phablet-flash/ in Downloads, enabled USB debugging and installed today version (83, 20131005) and it works... Bah!


Read-only file system after power outage

Test

I have a Toshiba laptop from 2013, that I use for testing purposes.

I made a fresh installation of Ubuntu 18.04.1 LTS, made it up to date with

sudo apt update
sudo apt full-upgrade

and rebooted to have the current kernel version and everything up to date. Then I unplugged the power and let it run (most of the time playing music videos) until it started to warn about low battery. I watched it closely and at about 5% remaining power it shut down automatically and gracefully.

I plugged in the power connection again, let it charge for slightly more than one minute (so that there should be enough power for the booting process). You may need 5 minutes or more if the battery is getting tired.

Then I booted and it was successful, except that I had to turn off airplane mode for wifi. I tested a few things and they seem to work correctly.

I shutdown and booted from a live drive and checked the file system,

sudo e2fsck -f /dev/sda1

Everything looks good, there was no complaint.

Conclusion

Ubuntu 18.04.1 LTS fully up to date (today, 2019-01-26) can shutdown gracefully, when the battery is getting low in my Toshiba.

I don't think dual booting should make any difference, because the same system will be installed, although the partition number of the root partition will be different.

If Ubuntu shuts down gracefully, when you initiate it manually, the automatic shutdown should work too, unless you have modified some setting, or if the battery supervisor does not work with the computer's hardware.

I suggest that you check that the battery supervisor works with your computer's hardware.


How do I set environment variables in an Emacs session launched from Gnome Panel?

Set the environment variables in ~/.profile (and source ~/.profile from ~/.xsession if you use a .xsession). That way they will be available everywhere, because they'll be set when you log in.

~/.bash_env is not the right place for environment variables (despite the name) . (Despite its existence (that's $BASH_ENV, right?) I've yet to find a good use for it.)

When you run Emacs in a terminal, it is a subprocess of the terminal emulator. There would be no reason to have a shell in between.


How to disable shutdown or reboot in 14.04 when users are connected via SSH?

This could be done using a PolKit policy, if you have admin privileges.

Create a .pkla file in /etc/polkit-1/localauthority/50-local.d (say disable-shutdown.pkla), containing:

[Disable Shutdown, etc.]
Identity=unix-user:*
Action=org.freedesktop.login1.reboot-multiple-sessions;org.freedesktop.login1.power-off-multiple-sessions;org.freedesktop.login1.suspend-multiple-sessions;org.freedesktop.login1.hibernate-multiple-sessions
ResultAny=no
ResultInactive=no
ResultActive=no

The -multiple-sessions part is for when multiple users are logged in - there are similar actions without that suffix. This disables these actions from the GUI, as far as I can tell.

Note that this method only blocks reboot, etc., commands issued from GUI. To block reboot, etc., commands from command line, one may use molly-guard - as explained in Disabling shutdown command for all users, even root - consequences?


How to visit a site hosted by my virtual machine?

It depends on the network adapter configuration of the virtual machine.

The easier case is if you have a bridged adapter so the virtual machine guest looks like just another machine in your network. If the guest is configured to receive an IP address via DHCP (pretty much default setup), just point your browser at http://IP-ADDRESS-OF-GUEST/ and it should work.

If you have NAT-ed network adapter in your virtual machine, it means it works as if the guest OS was sitting behind a router. It is still possible to access the web server, but you need to do the „dreaded” port forward.

Read up on the VB manual (Configuring Port Forwarding with NAT). But as an example here is a command-line that creates a forwarded port (VM name is your virtual machine's name):

vboxmanage modifyvm "VM name" --natpf1 "guesthttp,tcp,,80,,80"

Now you should reach your webserver at http://localhost/ or http://127.0.0.1/ or even http://IP-ADDRESS-OF-HOST/ (but the latter requires your host firewall is configured to receive traffic on port 80).

There is also a graphical way to do the port forward, you can find it in the configuration section of a NAT-ted virtual adapter. Quite straightforward to set up, but you can refer to this HTG Article on the subject.


Internal SD card reader not detected HP realtek RTS5227

Holy crap, I finally got it to work.

Okay, so here's what I did.

From the last line of lspci it was clear that I needed the RTS5227 driver. However, I really couldn't find this anywhere online.

Instead, I took the RTS5229 driver from the Realtek website and did the following.

I uploaded these files to use as the RTS5227 driver for anyone else in need.

Download

The download link has since expired so the source has been put into a GitHub repo with these changes as well as some additional ones to get it to work on 20.04 kernel 5.4.0.

Source

Here's what I did for those who don't trust the link or want to do it manually:

Go into rtsx.c and remove the following pieces of code from the file:

__devinit
__devexit
__devexit_p
comment out .proc_info = proc_info on line 266 by adding // in front of the line.

Then, in rtsx.h, change
#define CR_DRIVER_NAME     "rts5229" to
#define CR_DRIVER_NAME     "rts5227".

Then, in Makefile, change TARGET_MODULE := rts5229 to TARGET_MODULE := rts5227.

After all this, you should be able to normally install the driver like so:

make
sudo make install
sudo depmod
sudo modprobe rts5227

You should now see the SD slot in nautilus and in the launcher (on Ubuntu).

Hope it helped, and thank you to everyone for the support!!!


I am having difficulties installing Ubuntu, I get a black screen with a flashing underscore

You should check the CD you're using, maybe it's not clean.
Or try installing it with an USB which is better than CD's


How to enable plymouth bootscreen animation?

Keeping it disabled, helps your computer to boot faster. It can be enabled and customized from Plymouth manager, which you can install from Ubuntu Software Center.


After I installed UFW ssh login very slow

I saw this problem last night.

$ sudo ufw allow ssh
$ sudo ufw enable

Didn't affect my current ssh session, but it did cause a significant delay with ssh logins.  For example, an ssh login like below would hang for some period of time before (finally) prompting for a password:

$ ssh myusername@mydomain.com
$

(wait for 40 seconds or longer until...)

myusername@mydomain.com's password:

Of course, this delay would go away after disabling ufw with $ sudo ufw disable.

I have used ufw many times before and have never seen this problem.  At any rate, the issue has since disappeared and I can only assume that it is because I ran an update upgrade and reboot last night before heading to sleep.

$ sudo apt-get update
$ sudo apt-get upgrade
$ sudo reboot

If that doesn't solve the issue for you, and there are packages being held back, then you might try dist-upgrade:

$ sudo apt-get dist-upgrade
$ sudo reboot


Wifi Disconection on ubuntu 16.04 with a dell inspiron 15 laptop

According to the Debian wiki you need to install broadcom-sta-dkms

First remove bcmwl-kernel-source

  sudo apt-get purge --remove bcmwl-kernel-source

Now install broadcom-sta-dkms

  sudo apt-get install broadcom-sta-dkms

Unload the conflict modules

  sudo modprobe -r b44 b43 b43legacy ssb brcmsmac bcma

Load the wl module

  sudo modprobe wl

Reboot your computer and try again. If it didn't work try going back to bcmwl-kernel-source.

Source: https://wiki.debian.org/wl

Drivers for broadcom-sta-dkms:

Broadcom STA is a binary-only device driver to support the following IEEE
802.11a/b/g/n wireless network cards: BCM4311-, BCM4312-, BCM4313-,
BCM4321-, BCM4322-, BCM43142-, BCM43224-, BCM43225-, BCM43227-, BCM43228-,
BCM4331-, BCM4360-, and BCM4352-based hardware.


How can I get a list of all repositories and PPAs from the command line into an install script?

You can show everything with:

grep ^ /etc/apt/sources.list /etc/apt/sources.list.d/*


Well the clues were there: mounting of the external 1tB WD drive was failing. When I went into maintenance mode and commented out the lines in fstab for /dev/sdc2 and /dev/sdc3 booting was successful. However, if I plug the drive in after booting it is mounted as /dev/sdg*

Solved.


How to fix web pages are full of squares containing 4 hexadecimal digits each in Firefox?

You need a font for rendering Thai characters. Try:

sudo apt install fonts-thai-tlwg

Edit:

To end up with that recommendation I saw via the URL that it was the Thai version of Wikipedia. Then there is the file /usr/share/language-selector/data/pkg_depends in Ubuntu which (among other things) specifies default font packages for certain languages. So the command:

cat /usr/share/language-selector/data/pkg_depends | grep ^fn:th

gave me a suitable font package.


problem installing ubuntu from LiveDVD: "Could not find a medium with live file system"

Use ultraiso to burn the image. Open the iso file in ultraiso. Then choose the option to write to disc from bootable menu.


Camorama:

Camorama is a small utility to view and save images from a webcam or any other Video4Linux device.
Installation:

To install from Software Center click here

To install from terminal: (Ctrl+Alt+T)

sudo apt-get install camorama

Alternatively, you may also use Vokoscreen (screenshots included on GitHub page).

Installation:

You can Install from Software Centre (Or) from terminal.

To install run:

sudo apt-get install vokoscreen


How to get xfce4-power-manager to work in Lubuntu 14.04?

If you really really must use Lubuntu instead of changing your default session to XFCE (Xubuntu) this is the link you should visit to find some workarounds for your problem which affects many many users apart from yourself. Though you may think at a first glance that the post deals with some bug specific to Lubuntu 13.10, read ahead on that page to find out that the same bug applies to Lubuntu 14.04 too.

It is the reason I urged you to use the xfce session instead of the lxde session which may be good for desktop computers but it is not that good for laptops.

To be able to use xfce4-power-manager full features in Lubuntu, you need to, and I quote from that page:

  You can go to ---> Menu > Preferences > default application for LXsession > Power Manager > Other > xfce4-power-manager > Apply >
  Reboot.

  HOWEVER, please note that this is not enough and this feature should
  be loaded by default, just like it used to be.

  Another solution is to open Preferences --> Default applications for LXSession, then go to the autostart tab and here change the option
  "Disable autostarted applications" from the default "config-only" to
  "no". You may need to change the settings for laptop-mode from "no"to
  "yes". (settings tab).

  Note that you need to disable "network" from Prefereces-->Desktop
  Session Settings or you will have two nm-applet running at the same
  time.

There are other unofficial workarounds designed for xfce power manager to work in Lubuntu, and you can check the answers too just to find another good link to this page where you can find yet another 'working solution' for your problem:

  I had this problem, i unchecked "Power Manager" from "Application Autostart" list in Settings -> Session and Startup and added another
  application with this command xfce4-power-manager --no-daemon then i
  have not have this problem yet.


Why does Samba always time-out whilst copying a large file off a network share?

My problem solved. I checked the server hardware and recognized, two of fans are blocked because of dirt (motherboard and video card). After cleaning and oiling bearings of the fans the server is working perfectly.


Dell R210 + Ubuntu 19.10 - No mouse icon

One source suggested, for a different video problem, editing /etc/X11/xorg.conf to contain:

Code:
Section "Device"
        Identifier      "Configured Video Device"
        Driver          "vesa"
EndSection

Section "Monitor"
        Identifier      "Configured Monitor"
EndSection

Section "Screen"
        Identifier      "Default Screen"
        Monitor         "Configured Monitor"
        Device          "Configured Video Device"
EndSection

A second and third source  mentioned obtaining Matrox video drivers:

mkdir xserver
cd xserver
apt-get source xserver-xorg-video-mga
apt-get install dh-autoreconf xserver-xorg-dev x11proto-video-dev x11proto-fonts-dev x11proto-xf86dri-dev quilt xutils-dev

Should those suggestions not help, please try booting from a LiveUSB of Xubuntu 18.04 LTS and see if that resolves the issue.


Change default application for opening files in Firefox

Option One - Via Firefox

In Firefox -> Preferences -> General -> Applications:

You can set "bin" to be "always ask"

Option Two - Nuke Your MimeTypes File

This will reset all of your file associations.

rm ~/.mozilla/firefox/(unique id).default/mimeTypes.rdf

You will need to replace (unique id) with whatever yours is named.

Option Three - Edit Your MimeTypes File

nano ~/.mozilla/firefox/(unique id).default/mimeTypes.rdf

Look for the part about "bin" and you can change it to something like this:

  <RDF:Description RDF:about="urn:scheme:bin"
                   NC:alwaysAsk="true">
    <NC:handlerProp RDF:resource="urn:scheme:handler:bin"/>
  </RDF:Description>

Notice the "alwaysAsk=true" part... this is what will need to be changed in your file


Gstreamer error: XDG_RUNTIME_DIR not set in the environment

The solution from this answer worked for me
To make it easy - more explained the new booting of my system.
After all explanations here I came to the result - and "env" in terminal said already that is right for these session:
These two rows to use the environment variable:
for the tmp behavior I have chosen:
mkdir -pv ~/.cache/xdgr

For setting the environment variable:
export XDG_RUNTIME_DIR=$PATH:~/.cache/xdgr

After closing the terminal and a new open for the recall of env they tells:
XDG_RUNTIME_DIR=/run/user/1001


How to remap (recognize?) Corsair M55 left-handed buttons?

Without drivers only one side of the thumb buttons is active at the time.
You can switch sides by holding both thumb buttons for three seconds:

To switch to left-handed mode press both buttons on the left side
To switch to left-handed mode press both buttons on the right side

Switching is signalized by blinking DPI LED, its persistent, and left-handed mode also swaps left-right mouse buttons


I was installing RVM on a remote server today and had the same issue. It seems that the installation was not executed by default. This is what I did to solve it:

curl -L https://get.rvm.io | bash -s stable

  # In case rvm not found
  cd ~/.rvm/archives
  tar xvzf rvm-1.26.0.tgz # or whatever RVM version you have
  cd mpapis-rvm-xxxxxxx
  ./install
  cd ..
  rm -Rf mpapis-rvm-xxxxxxxx

source ~/.rvm/scripts/rvm
echo "source ~/.rvm/scripts/rvm" >> ~/.bashrc

original answer on stackoverflow


Which Ubuntu distribution should I install on this laptop?

Welcome in Ubuntu Community :) Because your laptop can have only up to 1 GB memory I suggest you to go with Ubuntu 12.04 LTS (Long Time Support) 32 bit or 12.10 32 bit. Is should work out of the box. You can download it here:  http://www.ubuntu.com/download/desktop.

It's important that you will install 32 bit version. You can  find some discussion about 32 and 64 bit architecture here.

What are the differences between 32-bit and 64-bit, and which should I choose?


Where does one get pretty screensavers for Xubuntu (xfce, xscreensaver)?

Have you added the following packages using Synaptic Package Manager?

xscreensaver-data, xscreensaver-data-extra, xscreensaver-gl,xscreensaver-gl-extra, rss-glx

These are the screensaver files themselves. For the rss-glx screensavers, please read the documentation in /usr/share/doc/rss-glx to properly install them into xscreensaver.


How to change frequency of old monitor Compaq P75 in 12.04

first check available option for your monitor by using this:

$ xrandr

you should get such result:

Screen 0: minimum 320 x 200, current 1280 x 800, maximum 8192 x 8192
LVDS1 connected 1280x800+0+0 (normal left inverted right x axis y axis) 331mm x 207mm
   1280x800       60.0*+
   1024x768       60.0
   800x600        60.3     56.2
   640x480        59.9

which shows available resolutions and refresh rate
now you can choose one of them. like:

$ xrandr -s 800x600 -r 60.3


Trying to build kernel on 18.04. No editconfigs option

It seems as if in 18.04 you need to run:

apt-get source linux-source

Instead of:

apt-get source linux-image-$(uname -r)

This should fix your problem.


How to fully delete an application with all settings made?

When you purge or remove something, your personal settings are kept. I believe awn's user config files are kept in /home/yourusername/.config/awn


You should select Microzoa as a cursor theme. Make sure you move the microzoa directory to /usr/share/icons and not just its subcontents. I don't think you should have to restart to see the effects.


Juju bundle deployment and local repository

This is correct. You can use local charms in a bundle if you use juju-deployer (sudo add-apt-repository ppa:juju/stable; sudo apt-get update; sudo apt-get install juju-deployer). After doing this you'll need to download the bundle you wish to deploy, modify it so that it just uses "charm" names:

bundle:
  service:
    charm: wordpress

instead of the fully qualified cs:trusty/wordpress. After this, set JUJU_REPOSITORY to your local charm repository and run juju deployer against your bundles.yaml file.


add harddisk to Ubuntu and mount it to /var/www/

Adding a disk was the first thing to do indeed.

Next, you have to partition your disk. You need at least one partition in it :

sudo fdisk /dev/sdb

You have to choose option n then p (for a primary partition), a number for the partition (let's take 1 to start).
The you are prompted to enter the first sector (should be 0) and then the last one (the default is proposing you to create a partition on the whole disk).
If you are prompted to enter a partition type, choose 83, the Linux partition type.

Once this is done, exit by pressing w.

Then you can do :

sudo mkfs.ext4 /dev/sdb1

This will create a Ext4 filesystem on the newly created partition. If there is error saying unknown device, you may need to reboot the VM.

Then, be sure you have the /var/www directory and add the following into /etc/fstab.

/dev/sdb1      /var/www    ext4     errors=remount-ro,relatime      0       2

This will allow the system to mount automatically the newly create filesystem under /var/www.

Once you've written this into the fstab, you can manually mount the filesystem without rebooting as simply as typing sudo mount /var/www.


Suspend doesn't work after Ubuntu 15.10 update

You could try editing /etc/default/grub by modifying the GRUB_CMDLINE_LINUX_DEFAULT field such that GRUB_CMDLINE_LINUX_DEFAULT="quiet splash acpi_backlight=vendor".
After that, just run sudo update-grub.

I had a problem with the suspend as well as with the brightness controller and luckily I solved both problems thanks to this article that explains exactly what I said above:

[SOLVED] Brightness problem in Ubuntu 12.04 Precise Pangolin

I also use Ubuntu 15.10. I hope it works for you too.


Harddisk sharing for Windows and Ubuntu user

Is the 250GB partition mounted when Ubuntu boots up? If not, first make sure that the partition is mounted automatically at boot. Follow this for help on editing fstab: Mount a partition on login?

Let's say the partition is mounted as /mnt/Shared. To share this partition with another computer in the same network running Windows follow the accepted answer to this question:
How to transfer files between Ubuntu and Windows?

Open the mnt folder in Nautilus and right click on the Shared
folder.
If samba is not installed, you will get a prompt to install the
service. Follow the prompt.
Click on sharing option and check Share this folder.
Check "allow others to create and delete files in this folder."
Open a terminal by pressing
Ctrl+Alt+T and enter

sudo smbpasswd -a USERNAME

where USERNAME is your user-id in the Ubuntu computer you are setting up.

Now you should be able to find the shared folder from other Windows and Ubuntu computers by going into Network.

Hope this helps


Application installed using Wine cannot be uninstalled

If you don't have any other software running under wine, you could just remove all the wine folder hidden on your $HOME directory by entering in a terminal:

rm -rvf $HOME/.wine

The folder will be recreated next time you try to install other programs in wine so don't worry. But if  you don't like this option, you can just search the file structure for the program and delete its folder:

nautilus $HOME/.wine/drive_c

Your program should be in "Program Files" or some usual Windows location like that. After that, if you want to remove icons generated by the installer, you can find them somewhere there:

nautilus $HOME/.local/share/applications/wine


Ubuntu 15.10 won't start with NVIDIA drivers installed

First you have to uninstall all NVIDIA drivers and repositories you have already installed before.

When the GRUB boot menu appears - Highlight the Ubuntu menu entry and  press the E key.
Add the nouveau.modeset=0 parameter to the end of the linux line ... Then press F10 to boot.

When the login screen appears - press Ctrl+Alt+F1.

Enter your user name and your password - then execute :

sudo apt-get install ppa-purge
sudo apt-get purge nvidia*
sudo ppa-purge ppa:xorg-edgers/ppa
sudo reboot

Now install the latest official NVIDIA drivers 358.16 which support your GEFORCE GTX 960 GPU.

When the GRUB boot menu appears - Highlight the Ubuntu menu entry and  press the E key.
Add the nouveau.modeset=0 parameter to the end of the linux line ... Then press F10 to boot.

When the login screen appears - press Ctrl+Alt+F1.

Enter your user name and your password - then execute :

sudo add-apt-repository ppa:graphics-drivers/ppa
sudo apt-get update
sudo apt-get install nvidia-358
sudo reboot


Cant see the "Format" option in quicklist for a USB device in 12.10.How can I get it back?

Use the Gparted application for this. If you don't have that installed, then in a terminal (CTRL+ALT+T to open a terminal):

sudo apt-get update then press the Enter key and type your usual Ubuntu password (you won't see any characters echoed to the screen for security reasons), then sudo apt-get install gparted. Then insert your USB device and open Gparted and select the USB device in the drop-down list at the top right and do the necessary - see screenshots below in order of what is to be done. My USB device is listed as /dev/sdc.

**** Make sure you choose the right device - Gparted will also list the hard drive(s) you have - and you don't want to format those as you'll lose everything on the drive(s) if you format them ****

Select the device
Unmount the device
Format the device with the filesystem of your choice. If you're only going to use this on Ubuntu then ext4 is a good choice. If you will use it on other operating systems then fat32 is a good choice.


Error installing tex-common on 16.04 LTS

Same situation for me, solved with these steps:

sudo apt remove --purge tex-common '^texlive'
sudo rm -rf /etc/texmf/
sudo apt install tex-common texlive-base texlive-latex-recommended \
                 texlive-latex-extra texlive-fonts-recommended latex-cjk-all


HP 8510p notebok overheating with ubuntu

The most likely reason for the overheat is that the CPU is being driven at or close to 100% utilisation.

Fire up a copy of system monitor and look to see what your CPU utilisation is, if it's high as I suspect, then use the system monitor to look at running processes etc, see if you can determine which of those processes is the one most using the CPU.

If there's a clear leader then if possible terminate that process and see if your CPU cools down.

One thing to always remember about laptops is that most of them are passively cooled and / or only have relatively small fans, it may not be any software that your running thats causing it, it may just be the way your using it or sitting it on your knee for example.

I used to have a thinkpad that had a very small cooling aperture, and it only needed to be on my knee for less that a minute before the cooling system kicked into high gear due to getting too hot.

I don't know where in the world you are, but here in the UK we have a chain of shops called "poundland" who just recently have been selling USB laptop stands, these are a perspex stand about 1 inch high with a perforated deck and a fan in the middle with a USB plug on.  Plugging the USB plug into your laptop USB port powers the fan and blows cool air across the bottom giving it extra ability to keep cool.  There cheep and cheerful, but at £1 uk you can't go wrong.

UPDATE

After a little bit of research, it's also come to light that some model's of HP laptops have a problem with the BIOS, this problem prevents the BIOS from switching on the fans correctly using the power management facilities on the device, the good news is that a patch can be obtained from HP to rectify the issue, and like all patches can be downloaded from the HP site.

UPDATE 2

http://h30499.www3.hp.com/t5/Notebook-HP-ProBook-EliteBook/8510p-overheating/td-p/1029105

http://forum.notebookreview.com/hp-compaq/368280-my-8510ps-temps-rising.html

http://forum.notebookreview.com/hp-compaq/185730-hp-8510p-weird-crashes.html

There also seems to be a general conscious that the copper piping inside this model is badly designed and not up-to the job of removing the amount of heat they need to.


Ubuntu keeps restarting after upgrade to 18.04

Did the following steps to solve the issue.

Created a LiveUSB.
Choose the option to Try Ubuntu without install on start up.
Ran boot-repairbut I was asked to disable secure boot in BIOS which I did.
Disabled Secure boot and ran boot-repair again and was able to access Ubuntu


How can CUPS dynamically determine the IP address of a network printer?

You have two options here

If you have control over the DHCP server you can set it to assign a static dhcp address (oxymoron I know) to the printer. Most commercial routers I have personally encountered have this feature (see the manual or try to find this in your router configuration)

If you do not have control over address assignments, most printers will either have a hardwired hostname or let you select one for it in the network configuration for the embedded print-server. The hostname should be routable from the local network without any additional configuration. For example if your printer has an assigned hostname of HPLASERJET5900 you would simply be able to use that in your CUPS configuration (ex. HPLASERJET5900:9100 (for HP direct printing). You can use the hostname instead of the IP wherever you are required to input it.

If you have a more complicated network topology, (say printer is on a different subnet) you will have to configure your network so the hostnames are routable from other subnets.


Ubuntu kernel issue : have to choose older kernel to boot as new kernel does not work ( no network and graphics issues with new kernel)

You can remove the 5.8 kernel and stick with the 5.4.0-xx kernels this way.
Boot with a 5.4 kernel using grub menu, then run in a terminal:
sudo apt remove linux-image-5.8.0-36-generic linux-modules-5.8.0-36-generic linux-modules-extra-5.8.0-36-generic linux-headers-5.8.0-36-generic linux-hwe-5.8-headers-5.8.0-36
sudo apt install linux-generic


CUDA works with all Nvidia GPUs from the G8x series onwards, including GeForce, Quadro and the Tesla line. CUDA is compatible with most standard operating systems.

For a list of supported graphic cards, see Wikipedia.


Ok ,so here's what i did to solve my problem.I deleted my connection from network manager and i created a new one using

sudo pppoeconf

if you want to close the connection use

sudo poof

and if you want to connect again use

sudo pon dls-provider

To connect automaticaly on start up use

nano /etc/rc.local

and add at the last line before return 0 the following instructions

# For PPP auto-connect.
killall pppd

ifconfig eth0 up

pon dsl-provider

That's it , i hope somebody with same problem as me will see this post.


Can't install TeamViewer on Ubuntu 12.04

Correct way to install Team viewer

Download Team viewer according to your arc 386/amd64

http://www.teamviewer.com/en/download/linux.aspx

sudo add-apt-repository ppa:ubuntu-wine/ppa -y
sudo apt-get update

You can now double click on team viewer that you have recently downloaded, it will open in software center and click on install

Why need to add wine ppa ?

because Team viewer completely run on wine, so some time it misses the files if you don't have wine ppa added.


du shows 38GB disk usage while very few small files are there

Other suggestions here are worth pursuing. Two more possibilities occur to me:

You don't say what filesystem you've used. Some (notably Btrfs) can consume a lot of space in hidden data structures. You can recover this space with special filesystem-specific utilities, but you'll need to say what filesystem you're using if you want detailed help.
The space might be consumed in a hidden dot-file (or dot-directory) -- that is, a file or directory with a name that begins with .. Such files and directories are hidden by many tools, including du. Thus, your du command omits such files and directories. Ordinarily, you wouldn't have 38 GB consumed in such files or directories, but accidentally renaming something big might do it. I'm not positive, but some file managers might use such directories as their "trash" locations, too, which could account for the space used.


I recently had a similar issue with 12.04.3 on an old laptop; it seems that kernel 3.8 struggles with some soundboards. I suggest you try installing kernel 3.2 (package linux-image-3.2.0-23-generic) and set it up to boot by default. Check out this guide for details.


This patch has been applied to Ubuntu kernels a year ago.

If you are using a supported Ubuntu kernel, you do not need to apply it again.


Is there a system wide colour scheme you can set by command or conf file for all TTY's and terminal commands?

Maybe this is what you are looking for: https://askubuntu.com/a/153493/1010453
I know u stated that you tried writing them into bashrc but for me it does work even if I use ls.


When I press alt in firefox, firefox does not show the menue, but the title


Setting up a postfix server on a homenetwork via the noIP service for full-time use

This may not be an answer that solves your question, but in the current state of Internet Email and such, is pretty much the only answer you can get at the moment:
Running an email server from your home on a Dynamic DNS provider and a Dynamic IP system from your Residential ISP is 100% going to fail and not work.  Most mainstream email providers do not accept emails originating from mail servers on residential ISPs, and most residential ISPs will not let you run a mail server on their infrastructure.  Further, a continually increasing number of providers require your forward DNS and your reverse DNS on your 'mail server' to match - you will not get the ability to do this on your Residential ISP.
Another consideration factor here is email system security.  I'm an IT Security Professional myself, and protecting email systems from hacking attempts, etc. is its own full time job and unless you're willing to invest time (and likely a good portion of MONEY) into deploying an email system yourself, you really should not attempt to run email yourself.
You should consider going through a mail provider instead, and pay them for email services.  Microsoft 365 (Business Basic license, on the Business side of their products for the Exchange access), ZoHo mail services, and numerous other providers are all out there and relatively cheap to provide services for email - unless you're willing to invest a LOT of time and effort into learning how mail works, securing your mail server properly, and paying for a VPS or such for this to run your mail, etc. you're better off just going with one of the many providers out there to run mail for you, you just have to get a domain name to go with it.
I would also advise not forwarding mail from a mail server in your home via Outlook or one of these other things directly, because there's a lot of restrictions on those types of accounts about mail volume, etc.


Use laptop with external screen closing its cover

I finally achieved it some time ago in a very simple way:

Just close your laptop's cover before the OS boots and you are done.

You will be able to disable your laptop's screen and only use your external one.

Cheers!


I fiddled around until I got it working, here's what I think the actual steps you need to do to get the existing intel graphics driver working with 16.10 are:

Download The deb for libpackagekit-glib2-16 here - http://packages.ubuntu.com/trusty/amd64/libpackagekit-glib2-16/download and install that deb using dpkg -i.
Download and install the intel-linux-graphics-installer using dpkg -i. Currently it's version 1.4.0: https://01.org/linuxgraphics/downloads
Copy /etc/lsb-release to /etc/lsb-release.backup.

$ sudo cp /etc/lsb-release /etc/lsb-release.backup

Modify /etc/lsb-release to what it was for xenial:

DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=16.04
DISTRIB_CODENAME=xenial
DISTRIB_DESCRIPTION="Ubuntu 16.04"

Fetch and accept the public key used by the current intel repo:

$ sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 56A3DEF863961D39

Run the intel linux graphics installer:

$ sudo intel-linux-graphics-installer

Restore you original /etc/lsb-release file:

$ mv /etc/lsb-release.backup /etc/lsb-release

After that, it'll prompt you to reboot. After the reboot I'm running using the intel drivers.


How do I backport VLC from 12.04 to 10.04?

One of the methods of installing a software not in the standard ubuntu repos but through apt-get is by using a Personal Package Archive (ppa). All ppa's are hosted on http://launchpad.net. On searching, i found that one of the ppa has the version of vlc that you require (vlc-2.0.4 ).
https://launchpad.net/~n-muench/+archive/vlc.

This has all the dependencies vlc-2.0.4 needs.

Add this ppa to your system like so:

sudo add-apt-repository ppa:n-muench/vlc2

Then update your sources by:

sudo apt-get update

Then install again:

sudo apt-get install vlc

That should do it. I tried and it works. You can install from other ppa as well but make sure it builds successfully by checking in the right hand side of the ppa's main page.


The ldd output gave me an idea ... a long time ago I built a GTK component from source, and it seems to have installed its own version of libgtk-3.so.  Uninstalling the changed package fixed the Glade problem.  I guess I'll have to rebuild the package to a later version of GTK.
@N0rbert: Many thanks for the assistance.


ubuntu 15.04 - bluetooth not detecting nor being detected - acer aspire

Your bluetooth chip is not supported by the kernel yet.

Here is the Bug report.
You can vote there that the bug affects you too. There is a temporary solution there. But it is too technical for a common user.

I sent a few patches upstream to add some of these devices, which have been applied. But in this case also some firmware should be added. I wrote to kernel maintainers, but it will take some time to fix it.


For Desktops

Try

sudo service network-manager restart

instead.

Ubuntu uses network-manager instead of the traditional Linux networking model. so you should restart the network-manager service instead of the network service. Or use ifup/down.

For Servers

Check this answer.


Can't delete (rm -rf) a folder whose name is trailing with a space

this worked for me

rmdir 0624\ -\ 5\ Days\ of\ War/


Tally ERP 9 Need native solution for UBUNTU

Install Oracle Virtual Box, and then Install Windows XP ,then tally ERP,  it will be fast.

Otherwise there is no native solution for tally. Ask tally to provide packages for linux also. If you are using Legal Copy then you can ask them to develop. More queries to them, more they will think about it.

GNU Cash is a nice alternative but most of  Indian people hardly want to try something new. They usually get stuck with what they are using.

Tally ERP is a nice software suitable mostly for Indian needs. So only option left so far to use Virtualbox.


Ubuntu Resolution with VirtualBox 5.0.4 on Windows 10 Bootcamp

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...


How To dist-upgrade Without Upgrading Linux Kernel?

The reason you pull in new kernel versions is that you have the shell package linux-image-generic installed, which does not contain the kernel image itself but at any given time depends on the most recently released kernel package.  This is why you get a new kernel version installed even though its package name is different, containing the version number.

If you never want to automatically get a new kernel version, you can remove this shell package, ensuring that the package containing the actual kernel image is not removed along with it.

Or, if you normally do want to install new versions but you just want to temporarily avoid one particular version, you can use pinning, to tell dpkg/APT specifically to avoid a certain package, or a certain version of a package.

Pinning info: Need to prevent a package from being installed


Ubuntu 16.04 installer does not detect Ubuntu 18.04 installation

You can install 16.04 (or any other Ubuntu version) over your current installation.  It won't interfere with your personal data.  As long as you don't specify format the partition, it'll just delete system directories that your specified version uses.

It'll also inform you of this with this message:

  The file system on /dev/sdXY assigned to / has not been marked for
  formatting.  Directories containing system files
  (/etc,/lib,/usr,/var,...) that already exist under any defined
  mountpoint will be deleted during the install.

Those directories will not have your data in them.  Your home folder will not be touched.  Also some local system areas such as /usr/local/... and  /opt will not be touched.

There's a chance that some of the configuration files in your /home directory might cause some errors when you log in.  You'll have to manually fix those.  I usually do it by creating a new user when performing this type of install.  Then I login between the two users, while I fix the applications or configurations that causes errors.


Toshiba Laptop can't find Ubuntu on boot

maybe you want to look here and try it: https://help.ubuntu.com/community/Boot-Repair

another possible answer here: How can I repair grub? (How to get Ubuntu back after installing Windows?)

sadly don't know if it is really the boatloader. would be good if some experienced user comments here


I found an answer here (for others that stumble upon this unanswered question)
https://askubuntu.com/a/34668/432978

"The /etc/apt/apt.conf file is still read if it exists. The apt configuration provided by packages is installed as separate files in /etc/apt/apt.conf.d/ so that it can be added and updated independent of any local changes you make in the main configuration file.
So if you have local configuration changes, just create the file."

So drop those lines into /etc/apt/apt.conf and you should be good to go.  It worked for me.


Asus N751JK, Ubuntu 14,04, can't detect Nvidia geforce gtx 850m, can't install drivers

It is not quite clear what you tried to download, install or configure. It can make things more complicated. I suggest installing the system from scratch to avoid possible problems.

The main issue is that default Nvidia proprietary driver in Ubuntu repositories does not support this new adapter.

In a freshly installed system the driver should install OK this way.

Run

sudo apt-get install linux-generic-lts-vivid

reboot

sudo add-apt-repository ppa:xorg-edgers/ppa
sudo apt-get update
sudo apt-get install nvidia-346 nvidia-prime nvidia-settings
sudo add-apt-repository -r ppa:xorg-edgers/ppa

reboot.


Can't view URLs that contain hyphens before them

This is duplicated of Can't resolve domain names starting with a dash

Basically linux follows a stricter domain naming convention. You should be able to solve it by adding the dashed domain to your /etc/hosts


Problem in installing OpenStack AutoPilot test Drive on Vmware workstation, juju can't connect to websocket to register service

I suspect the containers are not able to get an IP. These images were made for vmware's ESX/vsphere environment, where the vswitch has to be changed from its default configuration and allow promiscuous mode. I don't know if Workstation has a similar setting.

In essence, workstation needs to be configured to allow this "nested virtualization".

If you hit the cancel button in your deployment, Landscape will collect logs and allow you to file a bug with them attached. Or, if it cannot reach launchpad.net, it will let you download the logs in a tarball. Inside that tarball there is a juju status file which will show us the status of the containers.


Use sed on a string variable rather than a file

This has nothing to do with sed as such, it applies to any program that reads standard input. Anyway, what you were looking for is

sed 's/:/ /g' <<<"$PATH"

There's no reason to save in another variable, nothing you do this way will affect the value stored in the variable. You need the assignment operator (=) for that. The syntax used above is called a "here string" and is specific to bash, ksh and zsh. It serves to pass a variable's value as input to a program that reads from standard input.

I have written up an answer on U&L that lists all the various shell operators like this one. You might want to have a look.

Note that you could also have done

echo "$PATH" | sed 's/:/ /g'

Finally, you really don't need sed at all for this. You can do the whole thing in bash directly:

echo "${PATH//:/ }"

The above is a bash replacement construct. Given a variable $var, a pattern pat and a replacement (rep), to replace all occurrences of pat with rep, you would do

echo "${var//pat/rep}"

The same thing with a single slash replaces only the first occurrence:

echo "${var/pat/rep}"


2nd drive fills up storage space on root file system

This sounds as if you have written data to one or more of the folders which are the mount-points of your HDD and network drives while nothing was mounted to a mount-point.

You can unmount the drives and then check the contents of this folders to see the contents of this folders while nothing is mounted.

Alternativly (while all drives are mounted) you can use a bind mount to see what is in this folders (mount-points) as if nothing would be mounted to them, to do that, make sure that all drives are mounted properly. Then run

sudo mount --bind / /mnt

and browse to /mnt/media/potaito/..., this folders should be empty. If one or more of this folders are not empty, you can now either delete the files or move them to your HDD or network drive.

Example:

You found files in /mnt/media/potaito/freenas_home. To remove them all use

rm -R /mnt/media/potaito/freenas_home/*

To move them all to the network drive use

mv /mnt/media/potaito/freenas_home/* /media/potaito/freenas_home/

You can also use the file manager to delete/move the files, you'll have to decide yourself which of them to keep.

If you are done, remove the bind mount with

sudo umount /mnt


I'm having the same issue.

I have an iphone 4. 2 days ago it was using IOS 4 and I could mount the internal memory on my Ubuntu Oneiric PC. I upgraded my iphone to IOS 6 and now my PC will no longer mount my iphone.  Theres no error. dmesg just has ::

[23249.171564] usb 2-1.2: new high speed USB device number 18 using ehci_hcd
[23249.386535] ipheth 2-1.2:4.2: Apple iPhone USB Ethernet device attached
[23249.436087] ADDRCONF(NETDEV_UP): eth1: link is not ready

So basically, my Ubuntu sees the phone, thinks it's an ethernet device and therefore cannot mount the disk space like it did before. Nothing I try will work. Any suggestions?

I've got the following software installed on my PC ::

libimobiledevice-dev
libimobiledevice-utils
libimobiledevice2

I've also tried ::

sudo idevicepair unpair && idevicepair pair


I want ubuntu to behave like an internet server

I am not really sure what you are after, but if it's more like you want a Main Ubuntu Server that has internet access and applications installed on it and you would like to have other clients to connect to it (locally) wired/wireless to access the internet and applications, I guess you are trying to build or you mean a THIN CLIENT Environment.

For that all you need is a Ubuntu Server with 2 NIC's (Network Interface Cards). One for the Internet (connected to the router) and One for the Thin/Fat Client computers. You can connect the NIC for the clients to a Wireless Access Point or Router (Disable the DHCP on router) and let the thin clients connect via the Wireless. The thin clients must use PXE boot which means it must be bootable via Network (Check if the BIOS has any such settings available on your client computers).

After you complete the build, what will happen is that each client computer that boots off the network will run Ubuntu on it from the Main server. They don't need hard drives, just the bare essentials to start the computer into BIOS.

To read more about this visit the Ubuntu Community Help on Ubuntu LTSP Thin/Fat Clients and What is a Thin Client

If I wasn't clear please comment and I'll try and rephrase this post.


How to remove nodejs from nodesource.com?

First you can purge nodejs and its related files

sudo apt-get purge nodejs

then you can delete the its repositoy

sudo rm -r  /etc/apt/sources.list.d/nodesource.list


Why is Conky on top of windows only on boot?

After some searching around I found that an issue between Compiz and Gnome-WM meant that Conky was starting before Compiz was loaded.

The workaround is to delay starting Conky with examples suggesting about 20 secs.

Create a new file with Text Editor named

~/.conkystart

Paste the following code into the file and save it

#! /bin/bash
sleep 20 && conky

Open Startup Applications and modify the Conky command to point to the file

There is also an alternative script which is more intelligent by using DBus to see if Compiz has loaded but this will not work on Natty due to an outstanding DBus Bug

Source: 1, 2


How to automatically capture Terminal output to a file

Put the two commands you specified at the top of your question into a shell script. Put the script for example in /path/to/home/bin/recorder (of course the file needs to be executable and don't forget to insert #!/bin/sh at the beginning).
Then edit the default profile in your gnome-terminal and set the command to run at startup to /path/to/home/bin/recorder, then set the option of "what to do when command ends" to "Keep the terminal open" (sorry, I'm using a different language version of Ubuntu, so the actual English descriptions visible in yoour window may be a bit different). I just checked that and it worked for me.


Network manager Internet sharing and dnsmasq conflict

In Precise the NetworkManager-controlled dnsmasq process conflicts with the standalone dnsmasq server in its default configuration.  This was bug #959037.

In Quantal the NetworkManager-controlled dnsmasq process listens on 127.0.1.1 instead of 127.0.0.1.  Consequently it is possible in Quantal to run standalone dnsmasq, listening on all interfaces including lo at 127.0.0.1, alongside NM-dnsmasq.  In the default configuration the standalone dnsmasq will forward queries to NM-dnsmasq which forwards queries off-machine, as determined by NetworkManager.

The answer to the question "How can I change the dnsmasq or network manager..." is that you can't make the desired change in Precise without recompiling NetworkManager. In Quantal, the NetworkManager-controlled dnsmasq can be configured via files in /etc/NetworkManager/dnsmasq.d/.


How does one manage the upload speed of Ubuntu One?

In the Ubuntu One settings application there is an option to allow setting the maximum upload and download bandwidth used.  Look under the "Devices" tab in the Ubuntu One application.


Mate Panel disappears while using Libreoffice

The problem is caused by composition. Disabling it by going to Windows preferences (Preferences -> Windows) and deselecting Enable software compositing window manager solves the problem.


Unable to download software center from package manager: 404 Not Found

The packages have been updated in the repository.

I would recommend you run an update to refresh your "indexes" before retrying the installation i.e.

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


Alt+Enter does the trick hope it helps you


Problem solved. I hope it will be useful for people having an Intel+Nvidia Egpu system like mine. Firstly, installation of nvidia 390 from the bionic repo doesn't work for me. Possibly the DKMS is not written correctly. When I use run file, things work, and I can use nvidia-smi to see my nvidia card information. Secondly, Nvidia seems unable to create the correct xorg.conf file in this situation, which results in the login loop. I copied the xorg file from my 16.04 partition and pasted it into /etc/X11/, then everything works. Perhaps the system loads the wrong xorg file Nvidia created, so that the system simply refuses to log in.

It is a bit painful, as the xorg file has to be manually adapted if you connect the computer to a different EGPU dock or if the laptop is running without the EGPU dock. I simply use the wayland session when the EGPU dock is not used.


Ubuntu 14.04.1 and unmet dependencies for ubuntu sdk. Use Qt Creator instead

After discussing in chat with Timur Fayzrakhmanov and Mateo (here), Timur Fayzrakhmanov managed to install Ubuntu-SDK.

The problem was with that some packages was not getting  authenticated, which was causing dependency problem. I thank to Mateo for helping in the chat.


Can you update the case with the output from the following commands:

ping google.com
traceroute google.com
cat /etc/hosts


Try enabling this : select Tools > Options > Text Editor > Generic Highlighter.  If this does not work please leave a comment below1

Thanks, hope this helps!


The persistent mode seems to work only from ubuntu precise and before.

Tested by me with Xubuntu 12.04.4 :

1 - Take a usb stick. In your case, take your external HDD plug by usb.

2 - Create a 5 GB ext4 partition named "casper-rw"

3 - Create a 10 GB fat32 partition (theorically with ~6 ,you should be
        fine).
It will contain your extracted iso + a 4.3 GB "casper-rw" file.

4 - Launch Unetbootin, select your ubuntu iso, your fat32 partition and check persistent storage for 5000 Mo(5 GB).

Note: In
    fact the limit is 4.3 GB , don't ask me why.

It's gonna take a
       while, don't panic if the unetbootin window go blank.

5 - After the
       success message in the window, hit quit & go in your fat32
       partition, delete the 4.3 GB "casper-rw" file.

Now you can boot on this usb stick persistent.


As far as I can tell your pasted information is from a regular live cd. It says something about squashfs which is a compressed file system that is hardly used in a regular environment. In a menu entry it says something about testing Ubuntu without installing which is a dead giveaway that we're dealing with a live cd.

I suspect you didn't install at all to your hard drive or at least you appear to only have the live cd version right now and I recommend to insert the live cd again then really install Ubuntu and see what it says about a possible existing install.


How to disable DisplayInfo for Intel i810 when there is no xorg.conf?

You can generate Xorg.conf with a command

Xorg -configure

Then after customizing it and copying to /etc/X11, probably will possible what you need.

The file will be saved as xorg.conf.new in your home directory. Important thing is that you have turn off your X first and generate the file from console level (not terminal window running under the X).


How to create a menu item in KDE that executes a terminal command?

According to the --help option the -e should be the last part of the line:

-e <cmd>                  Command to execute. This option will catch all following arguments, so use it as the last option.

So, to run the command to keep it open, it would then be:

konsole --noclose -e anaconda-navigator

Hope this helps!


What software can I use to search for and applying missing tags to my music collection?

Try EASY TAG

It’s a great tool for editing most ID3 tags (both version 1 and 2) on all popular music filetypes.

It automatically taggs music using CDDB and renaming the files themselves and directories they are in

More information can be found here (including reviews):

Directly install from here:
Easytag


How can I completely replace Windows XP by installing Ubuntu over it?

The installation will give you a few choices:

(1) Use the entire disk, which will delete the data.  Don't use this option;

(2) Install Ubuntu to a new partition along with existing partitions, which will not erase anything, but may not do exactly what you want.  I believe it will (perhaps only sometimes) resize an existing partition to make room for Ubuntu.

(3)  "Something else", which is the manual method, and is the one I always use.  But it requires slight knowledge of the current setup, which you probably have since you have multiple partitions.

I suggest using option 3, but if you are not sure along the way, you should stop the installation, unless you have a good backup.  But it's not too hard, especially if you prepare yourself first with a little information... such as:

Boot the Ubuntu Live CD, but choose the option to try it out without installing yet.

Once it's running, run the program "gparted" from the menu.  This is a very nice GUI partitioning programming, which is good for visually seeing the partitions and data.

It will probably be showing the CD layout by default, so you'll have to change the combobox at the top to show your hard drive, which should be named "sda".  The partitions are numbered as sda1, sda2, sda3, etc.  The order is the order they are created, and it's not necessarily consecutive.  Anyway, you should identify the XP partition and remember it so you can reuse it for Ubuntu.

You will need a small swap partition of 3 or 4 GB.  If you have extra space on any partitions, you could resize one and create it now.  It doesn't matter where it is.

When you've identified the partition for Ubuntu (most likely sda1 if you are over-writing XP), you can choose the option to install Ubuntu onto sda1.  Probably best to choose ext4, and format the partition.

I've left out a bit of detail, as I'm not sure how much you need.  Feel free to ask any questions if you're unsure of anything, and if you feel uncomfortable along the way, just don't continue, and no harm will be done.  Also, you should be able to use the install CD to run a browser (you can verify this before installing), so if something goes wrong, you can at least still research or ask questions.

Hope this helps.


The feature does not currently exist, so the only thing you can do is to file a bug report on the same site as the previous link and hope the developers get to it soon.

¯\_(ツ)_/¯


WD19TB Dock mirrors 2 external displays instead of extending

Someone on the dell forums found a solution. Using the right side thunderbolt port fixes the issue.

https://www.dell.com/community/Linux-General/WD19TB-Dock-mirrors-2-external-displays-instead-of-extending-on/td-p/7441015


Stackapplet redirect me to "Page Not Found" page?

Ubuntu 13.10+

Saucy ships with StackApplet 1.5.1, so the bug described below does not apply to you.

Ubuntu 12.04, 12.10, & 13.04

This was a known bug filed on Launchpad last year that was fixed with version 1.5 of StackApplet. Unfortunately the current version of StackApplet shipping in the archives is 1.4, which was released nearly two years ago.

You can grab the latest stable version (1.5.1) by adding my PPA:

ppa:george-edison55/george-edison  (Click here for instructions on using PPAs.)

You can then install StackApplet with:

sudo apt-get install stackapplet


If your webcam required the use of a third party driver, 16.04 requires the use of all drivers to be signed with a key. You can get around this by turning off secure boot in your BIOS.

To check for a driver, go to terminal and type "dkms status". List any output here. If it says dkms not found, then there's no driver installed this way.

You can also open "Software & Updates" from the dash, and check the additional drivers tab.


Inkscape: How to choose font replacement?

In Inkscape 0.91 there is an extension called "Replace font" (find it under Extensions -> Text). It can list all the used fonts in the document, and you can do a find & replace for specific fonts, or replace all fonts by one of your choice. (Note that you have to fill in the font names by hand, or copy-paste, there's no drop down to choose from).


dkms failure because gcc version is newer than that used to compile kernel

Instead of installing multiple versions of gcc you can pass the following option to the nvidia installer:

--no-cc-version-check

Worked for me on Ubuntu 18.04.2, kernel 4.18.0-20 and nvidia 430.14.


As it turns out, you really can't... But this is a good enough workaround because most of you don't have potatoes. Appending x-systemd.device-timeout=1 to whatever options you have will make the system wait 1 second before deciding not to mount it and continue on ASAP.

<file system>                             <mount point>   <type>  <options>                        <dump>  <pass>
UUID=00000000-0000-0000-0000-000000000000 none            swap    sw,x-systemd.device-timeout=1         0       0

For some reason it'll mount your device but say it hasn't found it in time when you boot up. AFAIK only happens on Lubuntu 16.04.


i would suggest booting in safe mode (there you get a root shell even if you don't know the current password)

and there you can reset your password by typing

passwd <yourusername>
this will prompt you for a new one.

how to boot save mode:
https://help.ubuntu.com/community/LostPassword


How do I make a bootable harddisk on Ubuntu?

Here's how I solved this:

First, I installed unetbootin.  Then, I opened it via terminal with sudo.  Then, I used the command unetbootin installtype=HDD targetdrive=/dev/sdb1.  Then, I selected the iso file and it worked.

I installed Linux Mint, but i went back to Ubuntu.  This time, though, I used my pendrive


Lubuntu 15.10 32-bit, Can I install Windows 10 or Ubuntu 64-bit without installation media?

If you need Mintstick, in any Ubuntu-based distro:

sudo add-apt-repository ppa:tsvetko.tsvetkov/trusty-backports
sudo apt-get update
sudo apt-get install mintstick

Bur that is NOT for putting Windows on a stick. Better use a DVD for that.


Ubuntu terminal, Gnome terminal, Python will not let me type lowercase a.

It looks like the self-insert mapping for the a-key has gone missing from your readline bindings - you should have seen

$ bind -p | grep $'\x61"'
"\C-a": beginning-of-line
"a": self-insert

You should be able to fix it in the current terminal session by issuing the bind command

bind $'"\x61": self-insert'

however for a persistent fix you will need to track down how exactly the key is getting unbound - check for a custom ~/.inputrc and also check if any modifications have been made to the system-wide /etc/inputrc e.g. using

diff -s /etc/inputrc /usr/share/readline/inputrc


How to really use multitouch gestures now

Goto System > Preferences > Mouse. Click on the Touchpad tab and select two finger scrolling. Click Close and it should now work.


How to install a new theme of konsole in Kubuntu?

The colorscheme-files are plain-text-files.

In Kubuntu 16.04 they are stored in ~/.local/share/konsole/

Here is something to try: https://store.kde.org/content/show.php/Monokai+konsole+colorscheme?content=154765


Can console be suspended and ask for a password on wakeup?

The other question that muru has linked in the comments ( TTY[1-6]: Lock screen after delay (like a screensaver)   ) offers us the tool to locking the tty , vlock. At the simplest level , you can combine vlock -a with pm-suspend into a .bashrc function or a script. Here's mine:

$ cat lockTTY.sh
#!/bin/bash
(sleep 3; sudo pm-suspend) &
vlock -a

What is happening here ? Basically we're launching pm-suspend with delay in subshell , in background. Meanwhile we use vlock -a to lock all the ttys. After 3 seconds, the laptop suspends.

The catch here however is the sudo pm-suspend part. You have to prevent sudo from asking you password for pm-suspend.  In order to do that, we add the following line at the end of /etc/sudosers file

$USERNAME ALL = NOPASSWD: /usr/sbin/pm-suspend

Of course , replace $USERNAME with your actual username. You might call sudo visudo to open that file with your default text editor set in /etc/alternatives/editor , just to be safe, but any editor called with proper permissions will do.

What does this script allows us to do ?  Suspend and lock with processes still running. vlock -a has big advantage in preventing switching to other consoles, so it's not just one console being locked, but all of them - you cannot just switch to another tty if one is locked.

You could also suspend first and lock second, i.e. call pm-suspend first and vlock -a second. But that means upon resume there is possibility someome may see your screen for a fraction of a second before vlock kicks in.

What would be the simple and dirty solution in case you don't trust vlock and don't want to install it ? Create a script /etc/pm/sleep.d/10_lockTTY with the following contents:

#!/bin/bash

case "${1}" in
        hibernate|sleep)
        ;;
        resume|thaw)
     for NUM in $(seq 1 6); do service tty$NUM restart; done
    ;;
esac

This will reset all ttys upon return from suspend, but mind - any processes you had there will be killed.


How safe is it to run fsck on faulty HDD?

First, yes fsck is safe [1] (with caveats [2]) to run on a faulty disk/partition if you unmount the disk/partition before.

It's also possible to run fsck having just one drive/partition, if you enter into the Runlevel 1 mode (init 1 command) before.

However, be aware that your SSH connection will get down at the moment  you run init 1 because it will kill[3] all running services and daemons (SSH is one of them).

Second, about your need of a mysql backup, I would try the following steps:

Make a SSH-tunnel onto your existing SSH session [4];
Run mysqldump remotely [5];
Check the *.sql generated by mysqldump;
And call authorized service to replace the damaged drive.

References:

[1] How to run fsck to fix your filesystems [in Portuguese]
[2] How To Recover from File System Corruption Using Fsck and a Recovery ISO
[3] Will “init 1” from a remote (via VPN) ssh session kill my ssh connection
[4] Using an already established SSH channel
[5] How to dump remote database without mysqldump?

Best regards!


Finder-like File manager that displays thumbnails arbitrarily large and allows free movement

Nemo

sudo apt-get install nemo

View Menu -> Arrange Files -> Manually

Ctrl+= zooms in to a quite satisfactorally large icon for me.

Update: Nemo seemed to have a weird issue where it wouldn't generate/display thumbnails for all images, even if another file manager like PCManFM had already generated them. I tried linking ~/.cache/thumbnails to my ~/.thumbnails folder to no avail.  Finally, I installed caja which is another early fork of Nautilus from before the manual file arrangement was removed from it, and found that it works.


Kubuntu 19.10 (sddm) won't load since kernel update

After a lot of trial-and-error, one possible combination of steps which resulted in a working system (for me, at least):

sudo apt purge *nvidia*

The above may be too much if someone works with a lot of Nvidia-related stuff. Purging the nvidia-driver-XXX only may be sufficient but I didn't test it.

reboot
in the GRUB menu choosing the latest kernel (which was unfunctional till now)

Now, I was able to start-up KDE/sddm without the proprietary Nvidia driver/packages.

sudo ubuntu-drivers autoinstall

Now, the latest proprietary driver is installed, and I could reboot the system without any issue.


If GRUB is appearing there is no problem, select Ubuntu to boot it.

And, there is nothing such as Ubuntu 12.0! It's either 12.04 or 12.10


Changed suoders to an account that doesn't exist, what should I do

Boot your system using a live CD, chroot into it and change the sudoers file to include the correct user.

In the live system, open a terminal and enter the following commands (where sdXY is the partition you originally installed your Ubuntu to) to prepare for the chroot.

sudo mount /dev/sdXY /mnt
sudo mount --bind /dev /mnt/dev
sudo mount --bind /proc /mnt/proc
sudo mount --bind /sys /mnt/sys

Then, chroot into the system.

sudo chroot /mnt

Now, you can proceed to edit your /etc/sudoers any way you see fit, the recommended way would be using visudo.

After you are done, exit the chroot using exit. Then, reboot to your normal system, where the effects from the changed /etc/sudoers should be in effect.


Make sure your specific site is enabled to allow that:

$sudo vi /etc/apache2/sites-available/000-default.conf

<Directory "/var/www/html">
     AllowOverride All
</Directory>

$sudo service apache2 restart


I have found an answer to my own question, I will leave it to the moderators discretion as to whether or not to delete these posts.

Within the dia preferences there is an option for the preferred png translator; the default is called cairo PNG the issue is solved by using Pixbuf[png]. Apparently I need to learn more about the use and options of the system bus to understand the copy paste behaviour.

Thank you for your time if you are reading this.


Regain control after opening firefox via terminal

The obvious way to go is to launch such applications in background by adding an & sign to the end of the command, like this:

firefox &

Please note that Firefox is now a child process of your shell and your terminal window. If you exit them, Firefox gets killed if it's still running. To avoid this and make sure it continues running even after closing the terminal, you must disown it:

firefox & disown

If you already started firefox (or any other application) in foreground, you can still send it to the background though. Focus the terminal and hit Ctrl+Z. This freezes the foreground application and gets you back to the shell. You can now immediately run the command bg to send the just frozen process to the background and let it go on running.


With Ubuntu 19.10 I receive the error message "permission denied" when scheduled back up should occur

Your computer is probably is not running the get update as administrator so open your terminal and run these commands;

Step 1: Fetch the updates available for your computer using apt-get update command:

sudo apt-get update

Step 2: You can then use apt-get upgrade command will upgrade the current packages

sudo apt-get upgrade

Step 3use the distribution upgrade command.

sudo apt-get dist-upgrade


dpkg: error when installing mongodb on Ubuntu 18.04

Try removing that mongodb

sudo apt-get purge mongodb

then try installing it like this:

sudo apt-get install mongodb-org


Issues in using a internet browser with java plugin on Linux Ubuntu 18.04

As of early 2017, the java plugin is no longer compatible with Mozilla Firefox and Google Chome. Oracle only supports Microsoft InternetExplorer and Apple Safari.


Nikon P7100 doesn't connect as a mass storage device

Using Usb_modeswitch as discussed above won't work, but there are some alternative ways of accessing your photos , at least one of which should work for you:

On some cameras (like my friend's Nikon D70) there is an option on the camera that allows you to connect it to the computer as a mass storage device. However, on your P7100 I don't think there is that option after looking through the specs listed at the official site and studying the manual.

However, there is one option that might work for you; as you know your camera is a MTP device you could try mounting it manually with gvfs-mount and the gphoto2 protocol which has support for MTP devices. All you need to do is find (as you have done already) the usb bus location of your camera (i.e. the two numbers: Bus 002, Device 007), although that will probably change every time you connect your camera, so remember to check with lsusb. Enter, for example:

gvfs-mount gphoto2://[usb:002,007]

Then the camera should be available for you to import pictures via applications like gthumb, or at the very least you will be able to browse the .gvfs folder where it is mounted (enable hidden files in your file browser to see the .gvfs folder).

For Ubuntu 12.10 and later: the ~/.gvfs folder is now at /run/user/username/gvfs.

If the mount does not succeed, you could obviously take the memory card out and place it in a card-reader, but  perhaps that is not what you want to do.