How can I install Ubuntu on my Nexus 7 while being able to recover from an Nandroid backup?

Install Google Nexus 7 Toolkit version 3.2.x (find in xda:nexus 7:Android dev)
Choose your android version (or former version in this case)
Choose option 9, "Download, Extract, and Flash Google Factory Stock ROM"
Put your device in FASTBOOT by holding volume down and the power button
This will format your device to a factory state
Choose option 6 now, "Flash Recovery"
Choose either CWM or TWRP
Push your nandroid backup back to your device (just using regular methods)
Boot into Recovery
Flash your backup
you can also do this from the command line using android tools

I have done this twice now from Ubuntu installs, works fine


I first did fastboot devices to see if my Galaxy Nexus showed up. Then did su to make sure I had permission. Then ./flash-all.sh.


To add a PPA and install(and recieve updates) the latest Oracle Java 7 in Ubuntu (supports Ubuntu 13.10, 13.04, 12.10, 12.04 and 10.04) use the commands below:

sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java7-installer

Source http://www.webupd8.org/2012/01/install-oracle-java-jdk-7-in-ubuntu-via.html


In virtualbox, I can't access the dvd drive to install a guest host

Your user must be in the cdrom group.

sudo usermod -a -G cdrom $USER

Restart the system and try again.


SSH with LDAP authentication (ActiveDirectory) and ssh keys stored in AD

Best option here is to use sssd for this purpose. I use the AltSecurityIdentities to store the keys and join the servers to the domain using realmd.

Once domain joined, add the following to the /etc/sssd/sssd.conf file under the [domain/] section:

  ldap_user_extra_attrs = altSecurityIdentities:altSecurityIdentities

  ldap_user_ssh_public_key = altSecurityIdentities

  ldap_use_tokengroups = True

and under the [sssd] section add:

  services = nss, pam, sudo, ssh

Then to the /etc/ssh/sshd_config add:

  AuthorizedKeysCommand /usr/bin/sss_ssh_authorizedkeys

  AuthorizedKeysCommandUser root

Restart both services, and you should be able to login using your AD username and the password stored in the AltSecurityIdentities extended attribute in AD.


Timeshift 18.9.1 - Cant add Comments to btrfs snapshots

OK, found out how to add comments, sadly, this feature is not well documented in the timeshift gui.
Too obvious to me, i was looking for a menu.

Comments can be added/edited by clicking in the comments field.

Its also possible to add commments in the console

console:

timeshift --create --comment "comment text here"
or with additionall tags
timeshift --create --comment "comment text here" --tags O

--tags {O,B,H,D,W,M}
[W]eekly, [D]aily, [M]onthly, [B]oot, [O]ther (Manualy created)

show snapshots:
    timeshift --list

help can be accessed by typing "timeshift" without options


Back up your data before you do follow the steps below. This usually works without any issues but that doesn't account for bugs, power failures, etc.

Use e2resize to shrink the root logical volume (/dev/mapper/ubuntu-root) first.
Then use lvresize to  shrink the logical volume to the size of the filesystem you just shrunk.
Now when you use vgdisplay, you'll notice there's some free space (extents) in that volume group.
Temporarily disable your swap with swapoff -a
You can use lvextend to expand /dev/mapper/ubuntu-swap_1 by with the extents you've just gained from shrinking the root LV.
Create and re-enable your swap with mkswap /dev/mapper/ubuntu-swap_1 && swapon -a


Why can't I see the menubar in some applications?

I have now reported this as a bug.

The work around is to edit ~/.bashrc by opening your home folder, pressing Ctrl+H and double clicking the file '.bashrc' to open it in the text editor. Add the following line to the file:

export UBUNTU_MENUPROXY=0

That only works for launching the program using the terminal. To fix the menu items, use the method outlined in the answer to Is it possible to make indicator-appmenu ignore a specific application?.

I eventually got it to work by creating a bash script to run the program with UBUNTU_MENUPROXY=0.

#!/bin/bash
export UBUNTU_MENUPROXY=0
/path/to/executable

and then editing the command in the application launcher to:

bash /path/to/bash/script


How to install miktex for latex in ubuntu 17.04?

You need to first register the repository which contains the MiKTeX installation package(s):

 sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys D6BC243565B2087BC3F897C9277A7293F59E4889
    echo "deb http://miktex.org/download/ubuntu xenial universe" | sudo tee /etc/apt/sources.list.d/miktex.list
    sudo apt-get update

there are some dependencies issues(This problem occurs only in ubuntu 17.04) when you try to install directly. Hence you have to manually download the libraries (deb files) after you download them from the following sites (in my case libhunspell-1.3, libpng12-0) if you have more dependencies you can search and install from this link

https://packages.ubuntu.com/xenial/amd64/libhunspell-1.3-0/download
https://packages.ubuntu.com/xenial/amd64/libpng12-0/download

then use dpkg -i "path to the file" to manually install all the files

then apt install miktex


i cant make my 8GB flash drive bootable?

Once you downloaded the .iso image and installing it in the USB using Unetbooting, then you should modify the booting priority (do that on the BIOS, at the start up of the computer) making the USB Device (removable media) to boot as the first order/priority, leaving the HDD at the second place. Then Save and Exit Bios. Booting sequence will take the USB at first.


The issue was solved by running sudo apt install libxkbcommon-x11-0 into the Terminal to install a missing dependency.

I couldn't get any help here. So I decided to post the issue to Shotcut github since time was at the essence.

Hopefully this'll help others with the same problem in future.


Try this:

Open a terminal,Press Ctrl+Alt+T

Run it:

exec sudo -i
apt-get update
apt-get dist-upgrade
apt-get -f install
apt-get -m install
apt-get install --reinstall apt
do-release-upgrade


Dell Latitude D830 DVD Drive Not Recognized

Sadly, this is apparently a known problem from long ago.  The author of this article suggests that you best bet is to get an external USB drive. There was some support at Dell for a version of RedHat, but these are so old they will be useless.


Having issues installing mySQL V 5.7x on Ubuntu 20.04

Ubuntu releases typically, if not always, only support one version of software that is provided via official repositories.  When it comes to MySQL, Ubuntu 20.04 provides v8.0 whereas Ubuntu 18.04 provides v5.7.
If this is a computer that is going to be used predominately for this class, you might be better off just downgrading to 18.04.  If you want to use Ubuntu 20.04, you can try using Oracle/MySQL's repository tool which claims you can pick which version of MySQL to install: https://dev.mysql.com/doc/mysql-apt-repo-quick-guide/en/#repo-qg-apt-select-series  I've never used it so I cannot speak to how well it works.


USB drive for macOSX made with dd doesn't work and now can't be used for anything

Clone from a hybrid iso file to a USB pendrive in Ubuntu

I suggest the following steps to clone from a hybrid iso file to a USB pendrive in Ubuntu. Most linux iso files are hybrid iso files, but I don't know about MacOS iso files.

If the MacOS iso file is not a hybrid iso file, the cloning process will not create a working USB boot drive, and you have to use some kind of extraction method. I don't know any extraction tool for this purpose. If necessary, ask at a Mac forum to learn about it.

Check with md5sum that the iso file was downloaded correctly. See this link,

help.ubuntu.com/community/UbuntuHashes
Clone with a cloning tool.

Disks alias gnome-disks and mkusb are GUI tools with a final checkpoint and help to identify the target device (usually a USB pendrive), which makes them relatively safe.
dd is a powerful command line tool, which is dangerous because it does what you tell it to do without any question. Double-check carefully and it will work, if you use a command line like this,

sudo dd if=file.iso of=/dev/sdx bs=4096

where x is the device letter of the target drive. It is very important that you get it right (replace x with the correct letter), otherwise you might overwrite (and destroy) valuable data.

Please notice that you should clone to the whole device, starting at the head end, not to a partition, so there should be a letter (but no digit).


How to check architecture needs before installing Ubuntu?

I am sure you are good to go. Just for reference you can see this link that lists the requirements for installing Ubuntu.

To install Ubuntu alongside Windows have a look at the official docs (and if you have Windows 8, look at this tutorial also). There are plenty of resources out there on this topic.

So, enjoy Ubuntu!


While ubuntu doesn't really hate windows it makes it harder to play with some times.

I recommend reading the listing below to help you with dual booting.

http://www.addictivetips.com/ubuntu-linux-tips/how-to-dual-boot-ubuntu-11-04-with-windows-7/


Reformating hard drive after malware damaged boot sector

Wipe the boot sector

If you suspect that the boot sector is infected with malware, you can use hdparm but need not use such a basic or powerful tool. The boot sector is available via 'regular' tools, that can write to a mass storage device, for example dd or Disks alias gnome-disks, or mkusb.

hdparm and dd are powerful but risky tools. Disks and mkusb provide safer conditions because they help you identify the target drive and double check, that you are wiping the correct drive (and not a drive, where you have important data).

It is enough to wipe the first few bytes, but wiping the first mibibyte will be enough for this purpose as well as removing other data that might disturb or confuse the function of partitioning tools like gparted. There is a menu entry for this task in mkusb. You may want to wipe the whole drive (if you suspect that there is other malware somewhere in the drive), and there is also a menu entry for that task.

Low level wiping

Maybe you did not create a correct low level format with hdparm. You can try again, for example according to the instructions in the following link,

Re: best way to wipe a drive

It is probably easier to succeed with DBAN, that you can find via the following link,

dban.org/

It works well enough for this purpose with the free version.

Maybe the disk hardware is damaged

Maybe there is some serious damage (for example physical damage), that makes the drive fail. See this link (some of the tips but not all of them are relevant for hard disk drives),

Can't format my usb drive ... Analysis of the problem

It is a good idea to check the S.M.A.R.T. information about the drive's health status for example via Disks alias gnome-disks. Select S.M.A.R.T. via the button at (1) and check the overall assessment at (2).


Time command 'time' in Ubuntu 14.04 refuses to print PM or AM

Someone wrote in a comment:

  The behaviour of %p is locale-dependent.

So I had a look at the file /etc/default/locale, and it was a mess. I had installed this Ubuntu in another country and later moved to the US. I had updated the locale settings with the KDE frontend, at least that is what I thought, but apparently the frontend does not work well and you have to go the old way editing ascii system files (better if using emacs or vi, in a cathode ray tube SVGA screen).

After changing all values to es_US and rebooting, it works fine.

Yeah, my answer is too crappy. I won't accept it, in case someone wants to step in and do it better. I am not very sure what I am talking about.


How can a lbuntu.iso file be verified on a windows 10 computer?

Sadly it seems you'll have to download or write a program.
I've used quickhash in the past.
It's easy to use, opensource, has been around for years, and it's still maintained.

https://github.com/tedsmith/quickhash
https://www.quickhash-gui.org/

I used the GUI - it's drag and drop.


year should be out of the quotes, since it is a variable:

year = 2013
links = re.findall(r + '(' + str(year) + '-.*\/t.*.html)', line)


Are the glx-libraries in Ubuntu installed?

What about the mesa-glx-libraries?


To reinstall a package, run sudo apt-get install --reinstall influxdb
That way, your package will reinstall. It should also install it fully, if you do not turn off or stop the installation.


Will I reduce the life of my SSD prematurely?

Enable TRIM

TRIM (Trim command let an OS know which SSD blocks are not being used and can be cleared)

Back up fstab first in case something wrong happen.

# cp /etc/fstab ~/fstab.bk

enter code here

Edit fstab file

# nano /etc/fstab

Add discard to your ssd drives or partitions, after ext4

UUID=bef10b86-494d-41c6-aa46-af72cfba90fd / ext4 discard,errors=remount-ro 0 1

Add noatime,nodiratime to your ssd drives or partitions, after ext4

UUID=bef10b86-494d-41c6-aa46-af72cfba90fd / ext4 discard,noatime,nodiratime,errors=remount-ro 0 1

To keep your ssd live longer, you should tweak and optimize SSD for Ubuntu, you can read the complete article from nam huy linux blog at http://namhuy.net/1563/how-to-tweak-and-optimize-ssd-for-ubuntu-linux-mint.html


Unfortunately I did not find out what was causing the issue, but I did manage to effectively fix the problem. If you're at the stage where apt is stuck, I've found the only way to kill the process is to kill the terminal session. This will leave stale lock files that I removed by hand. I'm almost certain there is a smarter way to go about this, but nothing else I tried worked. You can try your luck with dpkg --configure -a but in my case I had to terminate that process as well because it hangs the same way apt does. Just in case I ran ps -aux | grep dpkg and killed every associated process.

In my desperation I risked rebooting the computer, which ended up also hanging on the very last step, which I saw by hitting esc on the reboot splash screen. I ended up holding down the power button for a hard reset. Booting up the computer worked fine though, and rerunning dpkg --configure -a worked after the reboot, allowing me to finish the configuration for grub-pc.

I have since run apt-get upgrade and apt-get dist-upgrade. Rebooting the machine after this went smoothly, and everything appears to be fine now.


How do I remove kernel 3.5.0-36 from my system

Verify the file is in the /boot:

ls -la /boot |grep '3\.5'

Remove the file. Be careful about spaces. This command will prompt before deleting each file

sudo rm -i /boot/*-3.5.0-36*

Update your boot menu

sudo update-grub2


Installing Ubuntu on a SSD and HDD system

I have a 128GB SSD. I have 20 GB for / which I really need (running both Gnome and Unity and a bunch of games, several db servers, etc.)

In your case I would put both / and /home on the SSD, but I would put the individual large folders as projects, videos, and pictures on the HDD.

The advantage of keeping all your documents on the SSD is that they open in under a second. Very nice.

Edit: If you actually make a /home/media and put that on the HDD then you can configure it so that all the users of your computer (apart from guest) can access it. That comes in very handy.


Start command as superuser at login (SOLVED)

I've finally fixed it by adding the hdparm command in sudoers. For this I have run sudo visudo and added the following line (important that it be added to the end of the file for the rule to apply): MY_USER ALL=(root) NOPASSWD: /sbin/hdparm, replacing "MY_USER" by my user.

Once this is done we can add the command in the "Start Applications" menu. The command must also have "sudo" in front.

In this thread there is a very similar case: [Run script as root immediately after login to gui


How can VLC be made to stretch a video such that it fills a display?

VLC Aspect Ratio

By selecting the correct aspect ratio, a video that would normally have black bars either at the sides or top&bottom may appear to be a video that can fit your screen.

Most modern wide screen laptop computers have a 16:9 aspect ratio, this might not be the case for you.

Original Aspect Ratio

Instructions

Open Video
Pause Video
Double Click video to go into full screen
Righ Click video to open menu

Go into Video -> Aspect Ratio
Select your aspect ratio. 16:9 for me.
Play and enjoy :

Remember your aspect ratio may be different from mine. If your computer screen is not 16:9 try some other values until you get the right one.

Un-stretch Video

To watch videos on their original aspect ratio (without stretching) but covering the entire screen follow the steps above but select the correct aspect ratio under Video -> Crop.

Default must be kept under Aspect Ratio for this to work or nothing will need to be cropped.

Return to defaults

Return all values you changed to default.

Command Line VLC

Use command vlc --aspect-ratio 16:9 -L -f /directory/to/file/filename.
Change the aspect ratio value to your screen's aspect ratio and it should play full screen without borders. See VLC command line help for more options.


Same problem, and today this worked for me:

sudo apt install fonts-noto

Source: https://askubuntu.com/a/1111736/292470

As a side note: while researching this, I found a way to insert unicode characters in GUI applications as well: Ctrl+Shift+U, then 2 0 b f and Enter

Source: How can I type a Unicode character (for example, em-dash —?)


XPS 9310 Developer Edition not booting when connected to WD19TB dock

This issue ended up being resolved by a separate bug fix and a new kernel release. I can confirm that this resolves the issue for me.
Basics from that bug report:
[Impact]
The machine connect with the external monitor on dock(Thunderbolt),
Then system would hang during the boot-up.

[Fix]
The atomic check hooks must look up the encoder to be used with a
connector from the connector's atomic state, and not assume that it's
the connector's current attached encoder. The latter one can change
under the atomic check func, or can be unset yet as in the case of MST
connectors.


okular and external movie player compete for owning the screen?

You can set up to call

wmctrl -a Okular

on globally on pressing some key, say Win-o and VLC

wmctrl -a VLC

on also globally on pressing some other key, say Win-v.

Then during presentation You can invoke the window You want manually.

How to call a think in Ubuntu it is a separate question. In Kubuntu there's a custom shortcut.


Is there some place to adjust preferences for unity other than CCSM?

There is no actual manual for Unity yet but Tips & Tricks for Unity is a good place to start.

Also as Jorge said most of these questions have been asked and answered before here so do a search for Unity and you should get the info you need.


Have to use -o Acquire::ForceIPv4=true to do apt-get update/upgrade

Try this:

Open a terminal,Press Ctrl+Alt+T

Run it:

exec sudo -i
nano /etc/apt/apt.conf.d/99force-ipv4

In the open file paste this line:

Acquire::ForceIPv4 'true';

Ctrl+O Save file

Ctrl+X Close nano

This should force to use IPv4 in place of IPv6.


Software (gnome-package-kit) has disappeared from Gnome Shell Remix 12.10

I recognized this at Ubuntu 12.10 Gnome Remix, too.

I reinstalled it now again via sudo apt-get install gnome-packagekit but it would be interesting why this happened.

Maybe because there is an update for the software manager coming?


How to run a program from terminal, which allows to close terminal after the program is open?

(command &) && exit

Example:

(firefox &) && exit


Why has hibernation stopped working after moving my 12.04 install to a different laptop?

Thanks to the pointer to /var/log/boot.log, I noticed the line

swapon: /dev/sda5: software suspend data detected. Rewriting the swap signature.

Some googling around that lead me to bug 499940, which gave me the name of the file that controls where to look for the resume data, /etc/initramfs-tools/conf.d/resume. This file still had my old swap partition UUID in it. Updating that info and running sudo update-initramfs -u solved the issue and hibernate now works.

I was wondering if there was an official way to update this file/data and found a Debian bug (#565225) around the issue, but it has no resolution. Hand editing /etc/initramfs-tools/conf.d/resume seems to be the only solution other than perhaps something involving adding/removing the initramfs-tools package, since the file is created by the postinstall hooks.


This loop device is not taking up any space. Image and ISO files can be mounted to this virtual device. With /dev/loop0 being mounted on /, I assume this is a Wubi system? If so, something else is using your space. If this is a Wubi system, /dev/loop0 will show the space left and used on the virtual hard-drive image on the physical hard-drive.

You can use the "du" command to figure out the real file(s) taking your space.


Is there a way to distribute Wi-Fi load across multiple adapters?

Yes, what you need to do is bond the interfaces.

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

I just noticed there is a similar question here:

Two ethernet ports on motherboard. How can I get double the bandwidth?


You're trying to use the repository for Ubuntu 12.04 (precise). This is no longer supported. Change your repository to point to Ubuntu 14.04 (trusty) or Ubuntu 14.10 (utopic).


What's an effective text editor for html code violation warnings?

Sublime Text 2 should do the job, accompanied by the SublimeLinter plugin.

Bluefish is a (financially) free option, accompanied by weblint (which only supports HTML4 and not HTML5).


12.04 stuck during installation "Processing triggers for update-notifier-common"

Can you try removing a network cable from the NIC before installing?

I encountered a similar problem with KVM and VirtualBox, and disabling a NIC works well.
(I don't understand why it works.)


retrieving contents of multiple subfolders, and move them into single folder

Assuming that all the directories that contain the zip files have a common parent, you could use find to find all of the zip files then execute unzip on those files specifying the directory to extract the files to:

find /path/under/zip/folders -name "*.zip" -exec unzip {} -d /target/path \;


Wrong keyboard layout when connecting with VNC

Same problem here... after some research I've followed reply #22 here.

(remove vino & vinagre; install vino+vinagre+x11vnc and configure x11vnc)

Now I have the portuguese keys and also can log from vncviewer after the server boot without going first on vmware console to login...


boot from the usb and click try ubuntu them
try this

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

it will try to fix the grub if not (work) try to unsitall and reinstall ubuntu
o se


Connect to a WPA2-Enterprise Connection via CLI (no desktop)

You can use nmcli

# nmcli con add type wifi ifname wlan0 con-name CONNECTION_NAME ssid SSID
# nmcli con edit id CONNECTION_NAME
nmcli> set ipv4.method auto
nmcli> set 802-1x.eap peap
nmcli> set 802-1x.phase2-auth mschapv2
nmcli> set 802-1x.identity USERNAME
nmcli> save
nmcli> activate

You may also need to add

nmcli> set 802-1x.password PASSWORD
nmcli> set 802-1x.anonymous-identity ANONYMOUS-IDENTITY
nmcli> set wifi-sec.key-mgmt wpa-eap


Are you sure it's usr/share/bluproximity? That directory path starts in your current directory and probably doesn't exist. I'll continue using /usr/share/blueproximity.

sudo id runs the id command (see man id) as another user, root in this case (see man sudo). When (root) id exits, sudo exits, too.

Here are two ways of doing what you're asking:

sudo cp file.sh /usr/share/blueproximity

or

cat file.sh | sudo tee /usr/share/blueproximity/file.sh

In either case, you'l have to concern yourself with the permissions and ownership of /usr/share/blueproximity/file.sh.

However, the Linux Filesystem Hierarchy Standard( Linux FHS ) says

/usr/share : Architecture-independent data

so I question your adding your script there. Are you sure? Reread man blueproximity, look at dpkg -L blueproximity for other files to read.

If you have git installed, you can git clone https://github.com/waltinator/pathlld.git, and use pathlld /usr/share/blueproximity to look at permissions. Also read pathlld - it's a Bash script.


Is there Ubuntu's analogue of snapshot.debian.org?

Unfortunately there is no current exact equivalent. However, Launchpad does keep all the historical data required, and you can access this directly.

For example, for the package hello:

Go to the Launchpad package page: https://launchpad.net/ubuntu/+source/hello
From here, you can View full publishing history.
From this page you can work out exactly what version was published for a given release at a particular time you're interested in.
Click on the version string. This gives you the information Launchpad holds relating to that particular version.
You can download the sources for this particular version from this page.
From here, click on your architecture in the Builds section on the right. The release stated here relates to the release the build was performed on, not necessarily the release the version was published in, so won't worry about the release stated.
You can get download the debs from the "Built files" section at the bottom, and even see the build log.


Ubuntu 16.04 - Some applications are slow to start

I had the same problem and running the following command solved it:

gnome-keyring-daemon &

I found the solution in this answer: https://askubuntu.com/a/838985/690438

Edit:
The origin of the problem seems to be the dbus-user-session package. After uninstalling, everything works fine. The bug was solved here https://bugs.launchpad.net/bugs/1689825


Trouble with WPA wifi connection - can connect to wireless networks

You might need to edit /etc/network/interfaces to add the passkey, if you're not being given a chance to enter it manually when you connect.  See solution
here:

http://ubuntuforums.org/showthread.php?t=2059808

which references:
http://ubuntuforums.org/showthread.php?t=202834

Or alternatively:
https://superuser.com/questions/42460/can-you-explain-how-to-understand-what-the-iwconfig-command-displays-in-ubuntu


Disable Tapping Drag in xorg config on 20.04

You need to set "TappingDrag" to "off" not 0.
Like this: Option "TappingDrag" "off"


Players supporting mpris2 will initially be listed in the sound menu in order of install & use, this can also be seen in the key in gsettings/dconf-editor - com.canonical.indicator.sound interested-media-players

If deciding to have more than one supported player installed & wishing to order differently then just edit that key to reflect order desired. Changes will be seen after a log out/in


Avro Bangla keyboard is installed but not showing up language selection list to select on Ubuntu 18.04.2 LTS

When you installed the Bangla language from "Manage Installed Languages", the Bangla/Bengali input source options were moved from the "Other" window. Actually I think that you now see a "Bangla" item at the very first window when clicking the + button, and if you select "Bangla", a sub window will open with a number of options, including "Bengali (Avro Phonetic)".


The issue wasn't Ubuntu, it was me, I attempted to get Ubuntu 16.04.3 Via the server route, which caused problems for me. Re-trying with the Desktop version. I apologize to all who attempted to answer my questions.


Grub menu doesn't appear on dual boot with win8.1

I finally solved the problem by running boot-repair once again in advanced mode with 'Backup and Rename EFI Files' ticked.


Dropbox has instructions for a text-based Linux install here.

The short version is that the first time you run the dropboxd daemon, it will warn that it's not linked to an account and give you a URL to visit in order to link it. By default, it will use ~/Dropbox as the Dropbox folder, but there's a Python script you can download to change it.


Custom command to open VLC with some options

Suggestion: use Bash aliases

Aliases allow you to append more arguments and 'overrule' current commands too. For example, this alias:

alias hvlc='vlc --http-port 54444'

will make

hvlc -v /path/to/my/movie.mkv

to become

vlc --http-port 54444 -v /path/to/my/movie.mkv

If you like the alias, install it permanently:

echo "alias hvlc='vlc --http-port 54444'" >> ~/.bash_aliases

The default ~/.bashrc file installed for users in Ubuntu will source the ~/.bash_aliases file by default.

More about aliases in an earlier answer of me.

About your script

It's not passing the arguments to the vlc command as given to the "parent" Bash script. To fix this, make the line

vlc --http-port 54444 $@

The $@ is the Bash magic for "all arguments". The %U is only used in .desktop files in GUIs and is a magic string to place the URL to be opened.


I recommend vim.

It is highly customizable. Its learning curve is a bit tough, but possibilities are almost endless.

Here is tutorial with installation tips and other useful stuff.


How to show battery percentage of a Bluetooth connected gadget (headphone)

If your device support it, you can get battery percents in console.

cat /sys/class/power_supply/_deviceId_/capacity


Have you tried issuing sudo shutdown -h now in terminal?  This should shut the computer down.  If you want to restart, substitute -h for -r.

Hope this helps.


Changing a Logo: What is the Name of this Little Image File?

It is called launcher_bfb.png.

It is actually located in /usr/share/unity/icons/.


What does "sudo echo nameserver 8.8.8.8 > /etc/resolv.conf" do?

It replaces the nameserver (DNS) used on your machine by the Google Public DNS service. If running that command helps you out, you're having DNS issues in the default settings provided by your network probably (DHCP). While it would be better to resolve the root cause of the issue, this is a general answer to your question.

Explanation of the command

sudo echo nameserver 8.8.8.8 > /etc/resolv.conf

sudo elevates privileges to be root in this case.
echo just outputs the arguments following to the standard output (in this case it outputs nameserver 8.8.8.8)
> redirects standard output to a file (overwrites it) in a regular Unix shell.
/etc/resolv.conf is the file where the output is written to.
Having a line nameserver 8.8.8.8 in /etc/resolv.conf makes the system using the nameserver having IP address 8.8.8.8 for resolving domain names to IP addresses. (very short version of what actually happens)
8.8.8.8 is one of the addresses published by Google as to where their public DNS services are listening on.

sudo mistake

While this explanation sounds plausible, this won't work, because of an error you'll get:

bash: /etc/resolv.conf: Permission denied

Why? The output redirection is handled by your shell (here: Bash) and is not taken into account for the command used for sudo. Similar to how multiplying in maths has precedence over adding. So, it's just echo that has got elevated privileges, but your shell hasn't! To solve this, one should run this command like

sudo sh -c "echo nameserver 8.8.8.8 > /etc/resolv.conf"

or, by using a pipe and tee to output it to a file:

echo nameserver 8.8.8.8 | sudo tee /etc/resolv.conf  #prints to screen as well

Ubuntu and Network Manager

On Ubuntu this is only a temporary change, as Network Manager "manages" the /etc/resolv.conf file. Local modifications will be overwritten. That's why you should configure this in Network Manager to have it persistent.

Configuration using Network Manager

I would recommend configuring your PC properly using Network Manager. I'm assuming you're using DHCP on your network here (most common). Then do this to perform the same as equivalent to the command you were using:

Open Edit connections:

Edit the connection profile you're using.

On the IPv4 Settings tab:

Method: Automatic (DHCP) addresses only

This setting makes it doing a regular DHCP request for IP address configuration of your host, but it will ignore other non-mandatory options like DNS servers suggested.
DNS Servers: 8.8.8.8
Hit Save

Done.

Important notes

In a local or corporate network the local DNS server might be used for local hosts. You'll loose this functionality by directly asking Google's servers to resolve names for you. So, if for example the local DNS server would know what "printer" is, then you'll loose using your printer by that name.

So, please, fix your local DNS server instead. If it's just a simple forwarder to a broken DNS server of your ISP and you can't change that (ISP-managed all-in-one-router for example), then this 8.8.8.8 solution might be your only option.


Waiting for Headers error while apt-get update

Just got out of this issue after spending 5 hours trying to figure out what was wrong.
It is either your mirror through which Ubuntu is accessing packages or your service provider is blocking something.
I would recommend:

Check if the current server that you're using is accessible through the browser. If it's not, use another mirror. Go to 'Software & Updates' and choose a mirror from among the ones available at 'Download from'.
Check the sources.list file in /etc/apt/ and comment out all the lines that access packages from the mirror that wasn't reachable.

If changing mirror doesn't work, check if you are able to get things updated using sudo apt-get update after you connect to a different ISP. Probably try with your phone's hotspot? Might just work. (Worked for me.)


Stop apt-get autoremove from removing old kernel?

apt-get autoremove, removes files that have been installed automatically and are no longer needed.  If you want autoremove not to remove some of them, you can mark them as installed manually.  In your case:  sudo apt-mark manual package_name.

If you have installed a mainline kernel, you need to mark 3 packages:
linux-headers-version
linux-headers-version-generic
linux-image-version-generic

If you are using the official kernel, you need to mark one more package:
linux-image-extra-version-generic.

The only thing you have to do is find the correct version and replace the word in the package name.  Of course all three or four versions have to be the same.


Timing limiter for execution of commands in Bash/Shell Script

echo firstOutput
read -s

command0 &
sleep 8

command1a &
command1b &
command1c &
sleep 5

echo secondOutput
command2


How to get a new default.plymouth in Ubuntu 20.04?

In this post there is the contents of the default.plymouth file. Try manually creating it in the correct dir: https://wiki.ubuntu.com/Plymouth
I have a Mac boot screen so if you need help switching to that just ask.


Here I got my USB3 ports not working after a while: only a restart fixes the problem.

After some research, I've found that a lot of USB3 ports presents a power management problem In a lot of different hardwares and OSs. You can find people reporting this kind of problem on Windows, Linux, etc.

So, I've disabled USB power management, and now everything is fine.

1. Disabling USB Power Management

For Ubuntu, usbcore module is compiled in the kernel, so we need to change the kernel boot parameters.

Edit the /etc/default/grub file and change the GRUB_CMDLINE_LINUX_DEFAULT line to add the usbcore.autosuspend=-1 option:

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash usbcore.autosuspend=-1"

Note that quit splash were options already present. So keep other options you have too.

Save file and close.

2. Update grub

After save the file, update grub:

sudo update-grub

And reboot.

3. Check autosuspend after reboot

After reboot, check autosuspend value:

cat /sys/module/usbcore/parameters/autosuspend

And it should display -1.


Are you capable/willing to code? This task is one of the examples explained in the Camel Book, "Programming Perl", published by O'Reilly.


The reason you get the error message is because the PPA maintainer has not updated the packages inside it for the release of Ubuntu you're running.
However the good news is, Martin Wimpress has a maintained PPA which does have an up to date KDE Connect Indicator package for Ubuntu 20.10.
https://launchpad.net/~flexiondotorg/+archive/ubuntu/indicator-kdeconnect
You can remove the .list file for the PPA you no longer need, which you will find in /etc/apt/sources.list.d.


Fstab - Try rw first, then fall back to ro

You have to set options to errors=remount-ro your entry will look like:

<device>  <mount point> <fs type> errors=remount-ro <dump> <pass>


Video doesn't show up when using dual monitor on Acer netbook

In my opinion, and this is only my opinion. If something requires a work around, then in fact it is a bug. Work arounds are great, but don't help anyone in the long run. Just my opinion. If you could, it would be great if you did file a bug report.


Here are the direct links to download Ubuntu 12.04 (just 12.04) 32- and 64-bit:

Ubuntu 12.04: PC (Intel x86) desktop CD
Ubuntu 12.04: 64-bit PC (AMD64) desktop CD

I got these by first navigating to http://old-releases.ubuntu.com/releases/, then clicking on 12.04.0 in the directories at the bottom. The page will say 12.04.2, but you can scroll down and get links to everything else (12.04, 12.04.1, 12.04.2).

They really need to sort out those directories. It's like a maze!


How can I force Déjà Dup to make a full backup?

The short answer to your question is no.  You can force it by deleting your backup files entirely and starting fresh, but I have a better suggestion below.

I'm going to guess you are using Ubuntu 11.04 or earlier?  It sounds like you've hit bug 676767, which was (I thought) fixed in Ubuntu 11.10.

The workaround is to run the following:

rm -r ~/.cache/deja-dup

If this does not fix the problem, please file a bug.


Take a look at the example configuration in the question here.
Your zone name has a dot at the end and your zone file is missing a SOA definition.


Disadvantages to using NTFS as main storage drive?

You could link in a windows file system like that and it would work. Linux wouldn't have an issue.  The real issue you would run into is with windows if linux decided to rearrange the partition to accommodate incoming files.  It's rare but linux can break windows like this. I learned the hard way.

Why don't you just get a flash drive and use that?


Your attempted solution of

  ln -s /dev/ttyUSB0 ~/.wine/dosdevices/com1

would have worked in earlier versions of Wine. This changed in Wine 2.8, now you need to manage the mapping using RegEdit.

  WINEPREFIX=~/.wine wine regedit

Add a string entry under HKEY_LOCAL_MACHINE\Software\Wine\Ports with a key of COM1 and a value of /dev/ttyUSB0.

This problem is called out specifically in this blog post: https://www.scivision.dev/wine-serial-port-links/

And also mentioned in the official user guide: https://wiki.winehq.org/Wine_User%27s_Guide#Serial_and_Parallel_Ports


Class of CSS element of the background color of wifi selection box in gnome-shell

I had to edit a CSS class in order to change the background color of the wifi menu. The class responsible for this was .nm-dialog-scroll-view
.nm-dialog-scroll-view {
 background: transparent; /* use any color you want */
}


On a Samsung NP550P5C-S01IN, unable to adjust brightness with fn keys after installing Nvidia drivers.

In a terminal type:

sudo gedit /etc/default/grub

change this line

GRUB_CMDLINE_LINUX_DEFAULT=""

to

GRUB_CMDLINE_LINUX_DEFAULT="acpi_backlight=vendor"

Finally run

sudo update-grub

and reboot your computer.


Ubuntu 16.0.4.1 brightness only working after sleep

You need to change how the system identifies itself to the BIOS. Fortunately, this is pretty simple:

In a terminal, run:

sudo nano /etc/default/grub

Find the line that says GRUB_CMDLINE_LINUX_DEFAULT.
Before the second quote, add acpi_osi= acpi_osi= acpi_backlight=native pcie_aspm=force. It should look like this when you're done:

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash acpi_osi= acpi_backlight=native pcie_aspm=force"

Run sudo update-grub and reboot. Your brightness buttons should work natively.

This is (likely) a bug with on both Asus' and Linux's end, where the two won't talk to each other normally. Therefore, if you tell Linux to identify itself in a different way than normal, The Asus BIOS will do things in such a way that Linux can understand and expect.


Freeplane reports it's not compatible with Java 10 when attempting to install and run on Ubuntu 18 how do I resolve?

You can have more then one Java installation on your Ubuntu. You can install Java 8 (1.8) next to Java 10 (Java 11).

sudo apt update

sudo apt install openjdk-8-jdk

See if you can point somehow only Freeplane 1.7.7 to start with java 8. If there is configuration file (inside Freeplane 1.7.7) with java virtual machine path or something. If you can set it to the Java 8.

If not then you can try to put Java 8 as default and see if you have some problems.
Attention: you can get some problems with other programs that use Java 10 (Java 11) if you execute the next steps!

For more information how to do it in section (Managing Java): https://www.digitalocean.com/community/tutorials/how-to-install-java-with-apt-on-ubuntu-18-04

I hope I don't miss some steps but first you set which should be the default Java.

sudo update-alternatives --config java

Also many programs need to know JAVA_HOME. You have to set it for your Java version.

Check again which is your active version:

sudo update-alternatives --config java

Java default install directories are:

OpenJDK 11 is located at /usr/lib/jvm/java-11-openjdk-amd64/bin/java.

OpenJDK 8 is located at /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java.

Oracle Java 8 is located at /usr/lib/jvm/java-8-oracle/jre/bin/java.

You have to set it inside: /etc/environment

sudo nano /etc/environment

then add in the end of the file you active Java 8 installation

JAVA_HOME="/usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java"

or

JAVA_HOME="/usr/lib/jvm/java-8-oracle/jre/bin/java"

And then reload:

source /etc/environment

And check if it correct:

echo $JAVA_HOME

Check if your program is working. If you see something broken you can set it back to Java 11.

Good luck to all!


It seems it was a bug in juju 2.0.2.

Installed snap juju
sudo add-apt-repository ppa:juju/stable
sudo apt update
sudo apt install juju

Now with juju 2.2.2 : it worked!


Making files on Windows 10 partition native to Ubuntu partition

This is possible, but somewhat tricky, as it involves shortcuts.
Set your Windows partition to mount at startup

Search for and open "Disks".
Find your Windows partition here (the NTFS one), and click the gear icon.
Choose Edit Mount Options...
Enable Automatic Mount Options and uncheck Show in User Interface. Also leave the 3 fields in that section blank.

Make sure Mount at startup is checked.

In the Mount Point field, choose a path for the partition to mount to.

/media/YOURUSERNAME/windows should work fine.

Choose NTFS for the filesystem type.
Apply the changes.

Source:
http://ubuntuhandbook.org/index.php/2014/07/mount-partitions-automatically-ubuntu-14-04/
Set up the shortcuts
This part is the tricky one, since it involves deleting or renaming your current Ubuntu folders.

Reboot to make sure the Windows partition is mounted as it will be from now on.
Go to your Home folder and rename or delete any of the folders you want to reflect what Windows has.

If you have any files in the folders that will be deleted, move them to the Windows folders.

Now, browse to the Windows partition and go to your user folder there.
Right click the folders you want to mirror and select Make Link.
Cut (Ctrl+X) the links and paste them into your Ubuntu Home directory.
Remove everything extra from the links so that you are left with their original names (Downloads, Documents, etc.).

If Windows has the folder named My Pictures or My Documents, remove the "My" as well.

I have done this (it's my current setup) and can confirm it works if done correctly. It's a bit of an ugly method, but it does work quite nicely, and I haven't had problems so far.

If you need any help, just comment.

EDIT:
To address your edit:
No, I do not believe there is a native method for Ubuntu to change the location where it looks for certain folders. I know in Windows it's possible to change the location of user folders such as Downloads, Documents, Pictures, Music and so on.
However, I haven't found something like this in Ubuntu. Even if it does exist, I highly doubt it would have any sort of support for NTFS.
You could always install ext2fsd on Windows and then set the Windows folder locations to their corresponding locations on Ubuntu. This is still a workaround, however. It's a little more integrated, yes, but ext2fsd doesn't always work. For that reason, I recommend not trying it this way.


Could not write metadata for '/website_1'./var/www/.metadata (Permission denied)

Try running your application as root(sudo su).
Change the permissions of /var/www directory (write) .
Please keep all the user related files under $HOME.


For pulseaudio what does tsched do (and what are the defaults)?

There is a nice (technical) discussion here :
http://www.alsa-project.org/~tiwai/lk2k/lk2k.html

What's Sequencer?
The role of sequencer =
Delivers events at the right time (sequence) to the right destination (device).

So this has to do with how the kernel manages your hardware , in this case your sound card. Some sound cards (commonly Intel ones) need real time sqeuencing.
The Arch Wiki's page on PulseAudio/Troubleshooting says:

The newer implementation of the PulseAudio sound server uses timer-based audio scheduling instead of the traditional, interrupt-driven approach.
Timer-based scheduling may expose issues in some ALSA drivers. On the other hand, other drivers might be glitchy without it on, so check to see what works on your system.


How to create a windows to Ubuntu partition file

Windows and Ubuntu uses diffent filesystems. Windows uses NTFS and Ubuntu uses propably EXT4. Fromout Ubuntu you can reach you files on the windows partition in Nautilus.

On this image  on the left panel of Nautilus you see 2 other filesystems. The one with labels 84 GB Filesystem and the one with 179 GB filesystem. Those filesystems represents other partitions. The one on your system will represent the Windows filesystem.


Output is stopped because of & (ampersand). I need to enclose each line of output in quotes? I think?

You can get each filename in quotes by piping your find output to while and using echo

find ... |  while read line ; do echo \""$line"\" ; done

replace find ... with your whole find command.

The escaped quotes \" will print literal " around each line, but also quote the variable to prevent expansions.

Output will look like

"my file"
"another file"
"File&Cheese.mkv"


Ubuntu 16.04 LTS How to check what CVEs were patched after an update

You can check it with apt-get changelog pkgnmae, for example:

apt-get changelog wpasupplicant

and you should get something like this as output

  wpa (2.1-0ubuntu1.5) trusty-security; urgency=medium

  SECURITY UPDATE: Multiple issues in WPA protocol

  debian/patches/2017-1/*.patch: Add patches from Debian jessie
  CVE-2017-13077, CVE-2017-13078, CVE-2017-13079, CVE-2017-13080,
  CVE-2017-13081, CVE-2017-13082, CVE-2017-13086, CVE-2017-13087,
  CVE-2017-13088   * SECURITY UPDATE: Denial of service issues
  debian/patches/2016-1/*.patch: Add patches from Debian jessie
  CVE-2016-4476
  CVE-2016-4477

  -- Marc Deslauriers   Mon, 16 Oct 2017
  08:20:18 -0400


20.04 Printer driver for epson stylus photo r 285

Execute lpinfo -m | grep R285. This gives you a PPD. It ends with expert.
Execute lpinfo -v. This gives you a URI. It probably begins with usb:/.
Now substitute for PPD and URI in lpadmin -p r285 -v URI -E -m PPD
Test with lp -d r285 /etc/nsswitch.conf.
It work's?


Ubuntu 18.04.3 cant find second monitor via HDMI - My labtop is Dell G3 - NVIDIA 1060 TI

I answered a similar question here: https://askubuntu.com/a/1193532/1021642

TL;DR its probable that the nvidia card is not turned on. This is definitely the case for my Dell Inspiron and my wife's G3. The HDMI cable is controlled solely by the NVIDIA card

Look into mate-optimus


Ubuntu 14.04 login loop, cant use cmd prompt

My problem was solved with this

sudo apt-get purge nvidia*

On my other dual-boot device I had problems with secure boot. If it is enabled, then disable it.


Figured it out:

(I'm guessing that) since I installed the OS on a different computer than the one it is currently in, the system was configured to use that computers' hardware as the default for 'eth0' (and I can't wait to see what other issues this will cause...)

The solution I used is:

sudo vi /etc/network/interfaces

Delete this:

auto eth0
iface eth0 inet dhcp

And replace with this:

auto (logical name)

iface (logical name) inet dhcp

Next type:

sudo ifup -a

Verify the fix:

sudo lshw -c network

if it no longer says 'disabled' by *- network, then it should be working

Finally, test the fix (I needed to update anyway)

sudo apt-get update
sudo apt-get install (whatever packages you want)

If anyone can tell me how I can configure the logical hardware ID's to the defaults Ubuntu uses, I'd be ever grateful!


LZMA library error: No progress is possible

An error occured while extracting files Lzma library error: No progress is possible

That means your archive is corrupt.

  How can i fix this?

Try to get another copy of the archive from wherever you got it from.


How to check computer's timezone through Terminal?

Use:

timedatectl status | grep "Time zone"

Without the grep you get a lot more of information.

As pointed out by @Christian Ulbrich in comment the wording for timezone seems to change depending on which version of timaedatectl or systemd you are using (on 14.04.5 it seems to be Timezone written in one word), so to make sure you get the proper output, you can run the above command without piping through grep to make sure you grep the right thing.

Here an example output of the above timedatectl status command on 18.04 without piping it through to grep:


I had a very similar problem a few days ago. It may not work for you, but since nobody else has answered yet, I thought it was worth a shot. I think what you need to do is have Ubuntu regenerate the .Xauthority file which is a file in your home directory.

This is how I did it:

At the login prompt change to the non-graphical mode by pressing: Ctrl+Alt+F1
Make a backup of your .Xauthority file:

sudo mv .Xauthority .Xauthority.backup

Switch back to the login screen: Ctrl+Alt+F7 and log in.

This should regenerate the file and break the loop.


I found the answer to my own question !

I had to do a "Commit" from RabbitVCS and then select/check the checkbox "Show unversionned files" and select the files I wanted to add on the server.

Finally, I had to do the "Push" and my files were on the server.


How to change my the From: address in mutt?

Either start reading up on mutt's configuration, or export EMAIL=my.address@example.com from your `.bashrc'


No grub bootload show when I turn on computer

Open /etc/default/grub for editing (you will probably need to run with sudo for write permission).  Edit the following lines:

GRUB_TIMEOUT_STYLE=menu
GRUB_TIMEOUT=3

The first line will show the grub menu on boot, which will hopefully have an option for booting to Windows.  The GRUB_TIMEOUT parameter is the number of seconds to wait for a selection before using the default.  You could adjust this to your liking.

After you make the change in /etc/default/grub, you will have to run update-grub (again, probably with sudo) to apply the changes.  Then reboot and make sure the grub menu appears.

If you get the grub menu to appear, but still do not see an entry for Windows, then I suggest you edit your question to reflect this.


How to install JavaScript Eclipse platform on Ubuntu

The Eclipse in Ubuntu official repo is usually outdated (3.7.2 in Precise, the latest is 4.2.2). I prefer installing Eclipse manually. Download Eclipse here. I don't know what MPC is, but since it says MPC is included in all of the packages available from the Eclipse download page (except the Classic Package), you can just pick one version, say
Eclipse IDE for Java Developers. I use Eclipse for Android development, so I choose Eclipse for Mobile Developers. First delete Eclipse you installed via apt, then follow these instructions.

Download eclipse-mobile-juno-SR2-linux-gtk.tar.gz
Unzip the archive.

tar xzvf eclipse-mobile-juno-SR2-linux-gtk.tar.gz

Move the folder to you desired location.

mv eclipse ~/bin/

Create a symlink in /usr/bin

sudo ln -s ~/bin/eclipse/eclipse /usr/bin/eclipse

Create a gnome menu item.

sudo -H gedit /usr/share/applications/eclipse.desktop

copy these into gedit and save the file.

 [Desktop Entry]
 Encoding=UTF-8
 Name=Eclipse
 Comment=Eclipse IDE
 Exec=eclipse
 Icon=~/bin/eclipse/icon.xpm
 Terminal=false
 Type=Application
 Categories=GNOME;Application;Development;
 StartupNotify=true

Run Eclipse from the terminal for the first time
eclipse -clean &

This will install Eclipse in your home folder which is my preferred, it's fine if you're the only user. If you want a system-wide install. You need some extra steps, follow the instructions in this post.


Dell Inspiron 1525 Battery not working (Ubuntu 10.04)

Did you check out battery status in setup by hitting F2 in boot menu?
Did you see your battery's health in Windows. I am running Dell 1545 and Dell 1525 both with Ubuntu as primary. I also ran into battery related problems recently. Replacing it solved the problem.

It is almost certainly a hardware issue. Get a new  battery.


Do I go to Command Prompt to use: sudo apt-get purge chromium-browser

I am not sure if I understand what you mean by - it seems like a virus. However here are the steps to remove (purge) it.

Press Ctrl+Alt+T (Alternatively, you can go to the dashboard and type terminal and select the same)
The above step would open a terminal (since you mention command prompt - I believe you are a windows user & yes the terminal would look like a command prompt in windows).
In the terminal type sudo apt-get purge chromium-browser and hit Enter. It would prompt for your password and remove the chromium browser.


Is there a way to run OpenVPN client in the background?

From what I have noticed using OpenVPN on Ubuntu, Debian, Fedora, is that if you simply close the terminal, the tunnel will still stay established. As long as you don't press Ctrl + c, you can still use it. You may however, have to run the following in order to make the system use the tunnel:

sudo ip route add 0.0.0.0/1 dev tun0
sudo ip route add 128.0.0.0/1 dev tun0

To stop the tunnel, run:

sudo killall openvpn


Multi monitor problem, opening programs and dialogs

I'm not fully sure. But in the display configuration try setting the middle monitor, on which you wish to see notifications/dialogs, to the "Primary display".


Installing mesa-opencl-icd in Ubuntu 16.04

As we know, from LaunchPad bug 1743018, bug is going to be fixed by Timo Aaltonen (tjaalton) by uploading corrected package to xenial-proposed.

As for today one can install mesa-opencl-icd with:

sudo add-apt-repository "deb http://archive.ubuntu.com/ubuntu/ xenial-proposed restricted main multiverse universe"
sudo apt-get update
sudo apt-get install mesa-opencl-icd -y

I can confirm that it is installing normally. So package will be uploaded to normal -updates soon.


How can I get Terminal for scripting on Ubuntu 14.04.2 while being boot directly from USB and not yet been installed on the system HDD?

The ISO image you burnt on the USB drive is probably an installation package, which intended to install Ubuntu in your system from an external medium (in your case a USB drive, but it could have been a CD/DVD also). The installation package allows you to try Ubuntu before installing, or use Ubuntu occasionally without a permanent installation. See Installation/FromUSBStick

Anyway, how did you attempt to open a terminal? Usual shortcuts are CTRL + ALT + F[1-6], for terminal 1 to 6, and CTRL + ALT + F7 to get back to the GUI. Or you can open a terminal window inside the GUI with CTRL + ALT + T. Do any of these work for you?


* means that the immediately-preceding pattern is repeated, not that the matched text is repeated. For example, [ab]* means (|[ab]|[ab][ab]|[ab][ab][ab]|…) The pattern [ab] is repeated zero or more times. It will match "aba" because that properly fulfills the pattern [ab][ab][ab].

With .*, it becomes (|.|..|...|....|…), so it matches any number of characters, and the characters can differ.


Ubuntu 10.04,10.10,11.10 boot but don't load after fresh install, graphics to blame?

I've managed to fix it. Ubuntu 11.10 64BIT

I first of all Put in LiveCD and UNPLUGGED LAN cable (perhaps some updates were messing it up I'm not sure) then proceeded with the installation and have disabled Automatic Logging In finished installation and turned ubuntu on worked fine but BEFORE logging in I disabled 3D Unity. Then just about managed to get it all fixed by replacing drivers using this askubuntu thread to install drivers & set up multi-screen: ATI Radeon HD with Catalyst driver stuck mirroring screens


Rating songs in Rhythmbox just means adding the ratings column to your music view.

Lets do just that...

swing  your mouse up-to either the global menu - or integrated menu and choose Edit - Preferences

This reveal the Preferences window where you can select the Ratings columns:

Ticking this rating column will add this to your Music Library view.  Just click on the stars to set your rating.


In the strongest possible terms I would urge you to resist the cheap solution here (simply uninstalling 3.16.0-57). The Kernel isn't updated to just annoy people, it gets some really important security updates that could otherwise leave your system open to attack.

Instead I would either look at filing a bug against the kernel. If you have any development experience, knowing the exact break point allows you to see where the issue is, much more easily than anything else.

Alternatively, you're on the first rung of a series of LTS hardware enablement stacks (you're on the Utopic Kernel). You could hop to Vivid or Wily. You will need to change to Xenial's stack August 2016 because that'll be the only supported HWE stack.

The other alternative is uninstalling all the HWE packages, dropping back to Ubuntu 14.04.1's 3.13 kernel. This is supported for the full five years (into 2019). This is a perfectly sane option unless you have modern graphics requirements.

Your other issues may be related (especially if this is a graphics driver issue) so another stack version can


The rotary encoder was faulty, it needed cleaning.

On the M185 Logitech mouse the encoder uses a spoked wheel passing a EM emitter of some form (can't tell what exactly). With dust/crud clogging the spokes the sensor doesn't see the rotation of the wheel.

Remove screw from under battery location. Pull top of mouse back to release plastic locating lugs. Clean mouse wheel (I rinsed under water, be sure to completely dry before reassembly; compressed air would be better). Reassemble.

Scroll now working.


Starting with nano version 2.3.5 in July 2014, undo/redo became standard:

Alt-U or Option-U or EscU - undo
Alt-E or Option-E or EscE - redo

It's in the help:

And if you stretch the screen wider than about 1400 pixels, there's a hint at bottom right:

If these keys don't work, check nano --version.

nano versions 2.1.10 - 2.3.4 should use the command line option -u (thanks @sil). Tip:  add alias nano="nano -u" to your .bashrc (thanks @Benia). The implementation of undo during this period appears to have been buggy or incomplete.
nano versions 2.1.3 - 2.1.9 had some kind of undo feature. The -u option was not necessary.

M stands for meta.


What is the extension of file that you downloaded or you can just download it like that:

sudo apt-add-repository ppa:ubuntu-x-swat/x-updates
sudo apt-get update
sudo apt-get install nvidia-current
sudo reboot


How do I left-click a Java Application on a WeTab running Ubuntu 12.10? (workaround defect in Onboard)

We are having the same problem with Ubuntu 12.04 on a Poindus POS device which uses eGalaxy touch driver. After trying out various possible solutions, we have come to the conclusion that the issue is with the touch driver. Hopefully they provide an updated driver through their website.

They will update drivers here: http://home.eeti.com.tw/web20/eGalaxTouchDriver/linuxDriver.htm

Edit:

Here's something that worked for us (in Ubuntu 12.04):
Downgrade (by force) the xserver-xorg-core to 2:1.11.4-0ubuntu10 version. i.e. the main release without security and updates. If your version is 2:1.13.0-0ubuntu6.1 (with updates), maybe downgrading to 2:1.13.0-0ubuntu6 (main release) will do the trick? Can be easily done through Synaptic Package Manager.

Versions: https://launchpad.net/ubuntu/+source/xorg-server


Is there a hot corner program/addon for Xfce?

"Hot corner" plugin for 'Xfdashboard':

The description is here:

http://ubuntuhandbook.org/index.php/2015/07/hot-corners-plugin-xfce4/

The deb-files is here:

http://mxrepo.com/mx/repo/pool/main/x/xfce4-hotcorner-plugin/


You can also consider using terminator. Terminator is a GPL terminal emulator and allows multiple Gnome terminals in one window. If you are using terminator you can switch terminals with Alt + Arrow
To install terminator you can use PPA or use ubuntu tweak.

sudo add-apt-repository ppa:gnome-terminator/ppa
sudo apt-get update
sudo apt-get install terminator


Grub-update doesnt find the other OS anymore

To make grub recognise other OSes, os-prober needs to be installed and the related GRUB configuration file needs to be existent and executable.

Make sure you've os-prober installed:

sudo apt-get install os-prober

Running stat -c%A /etc/grub.d/30_os-prober should give -rwxr-xr-x. If it's not executable (i.e. missing the x), make it executable by running:

sudo chmod 755 /etc/grub.d/30_os-prober


libGL error: Couldn't dlopen libudev.so.1 or libudev.so.0, driver detection may be broken

To fix this error, you must

apt-get install libudev1:i386

Steam is 32bits, and Steam's requirement of libudev1 is "met", but is unable to be linked with the amd64 version. Steam should update its depends.

The generic solution to this problem, is to determine which packages to install, use dpkg -S libXXXX.so

Running Ubuntu Saucy 13.10 64bit with AMD Radeon 6450 mesa


When you run umake, it checks the Android Studio website for license text, which it then prompts you to accept. It looks like the website was changed, probably when Android Studio 2.0 was released recently, so the installer can't find the license in the expected location. You can get around this by disabling the license check: umake android android-studio --accept-license.

There's a bug for this issue on the umake GitHub project, and it's apparently been fixed. The readme suggests using the Ubuntu Make PPA rather than the version in the Ubuntu repository to ensure that you're always using the latest version.


libsqlite3-0 is present in both Ubuntu 16.04 and Ubuntu 14.04.4 ISOs, and most packages from the ISO are retained on installation.

apt-cache rdepends libsqlite3-0 lists a lot of packages, including gnome-software, ubuntu-core-libs, unity-scope-click, shotwell, etc.

So, yes, it is installed by default.


Power-up your virtual machine and wait for it to boot-up.
When the system is up, go to the menu bar and select Devices -> Install guest add-ons.

This will mount the add-ons package to your system. A dialog will appear asking what to do with the newly mounted media. Press the Run button.

A new dialog will appear informing you that you need root privileges and asking for a password. Enter your password here and press enter.

The program will install the guest add-ons.


Problem with running or uninstalling vuze on Ubuntu 17.10

I have found this How To and installed Vuze 5.7.5 and now it works


How Can I Preview the 16.04 XOrg on Ubuntu 14.04

Information on how to install the 16.04 HWE stack can be found in this wiki page.

https://wiki.ubuntu.com/Kernel/LTSEnablementStack

Basically it's the following:

sudo apt-get install --install-recommends linux-generic-lts-xenial xserver-xorg-core-lts-xenial xserver-xorg-lts-xenial xserver-xorg-video-all-lts-xenial xserver-xorg-input-all-lts-xenial libwayland-egl1-mesa-lts-xenial


Displaying Program Icons in the Title Bar and Task Bar

Compiling programs from source normally doesn't add shortcuts and links for those programs on your user UI, mostly they will create a link to the compiled binary in /usr/bin so that the user can type the program's command on the terminal and start using it right away but icons, shortcuts on desktop, nice menu links are not included unless the program was made to do so after you compiled it.

The icons probably will be on the folder from the compiled application, its part of the source code most of the times and will be copied, but that doesn't mean that your install used to to create shortcuts and menus.

Packages that come from apt or software center are designed to created such links and shortcuts using the icons supplied on the program of a theme icon for the application.

Think of packages (deb, rpm, etc) as archives with instructions on where and how to create links, place configuration files, modify other files for integration. In Windows if you want to use a software you have to use and installer that will do the same (ie: if you install firefox in Windows) for you. The other option is to use compiled binaries without an installer, that means that the program is there, it will work perfectly but no links, shortcuts, integration will be done for you automatic.

An example of this is firefox and firefox portable, the first you download, run the installer that will create the files and links and will integrate the program with your OS, the 2nd will open, run, let you use the full program with no limitations but there is no links, no integration, no links, etc, you need to run the compiled binary and that's it.

So, if you want to have integration in to your Ubuntu desktop you need to use the pre-compiled, assembled packages (deb files, or installer files for Ubuntu/Debian), either by downloading them or using apt or you do everything by hand using source or compiled binaries for your system. The easiest and most common is to use the .deb files since they do all the nasty work for you.


Has Unison error on "File name too long"

This issue has been resolved as of Unison 2.45. From the changelog on the manual page:

  Incorporated a patch from Irányossy Knoblauch Artúr to make temp file names fit within 143 characters (to make eCryptFS happy).


Activate repositories from Software & Updates
Before any installation, run sudo apt-get update.


Ubuntu way to run sysctl -p on each boot?

There is a better and more ellegant way:

create your configuration file on /etc/sysctl.d/ directory.

For example, if you changing kernel parameters due to database requirements, create a file:

/etc/sysctl.d/60-mysql.conf

and add your own parameters inside it. To execute it:

service procps restart

Just to note:

procps is a system file and it should NEVER be edited.
/etc/sysctl.conf should not be edited either because it can be changed on a system/kernel upgrade and if it's differente from expected, upgrade will be halted asking if newer version can replace current one.

Reference:
http://manpages.ubuntu.com/manpages/precise/man8/sysctl.8.html


Does the Radeon HD 8570M work with Ubuntu (Saucy/Trusty)? (no hybrid)

I bought the computer and after a few issues it is working well now.

Initially I had problems with the screen brightness when using fglrx, but it is fixed in later kernel versions.


How to Get a Windows Client to Authenticate against a Linux LDAP Server

pGina

pGina is an open source authentication system that replaces the built in authentication of the Microsoft Windows operating system. pGina uses easy-to-write plugins that allow a system to authenticate against virtually any source. Some examples are LDAP, RADIUS, SSH, FTP, SMTP, POP3, and many more.

Getting Started

In order to get up and running, simply follow the steps below.

Determine what line of pGina to use
Decide what method of authentication you are going to be using (ex: LDAP, RADIUS, FTP, SSH, etc). and download the corresponding plugin.
Download pGina
Install pGina and the plugin
Configure pGina and the plugin

Main Page : http://www.pgina.org/


How do you format a usb stick for use with Linux as well as windows

Currently, the best filesystem to share content between Windows and Linux is exFAT, specially on USB pendrives and SD cards. exFAT is, roughly speaking, a revision of FAT32 without the 4GB max file size limitation.
If not installed, you will have to install exFAT support.
$ sudo apt install exfat-utils

From here, you have two options. Use a graphical tool like gparted or the command line (which is more fun). Find below steps for the latter.

Plug-in the USB pendrive/SD card.
Identify the device. It should be one of /dev/sd?. In a terminal, run the below command which will show connected devices and partition mount points. In this example, /dev/sdb is the device, with two partitions, the first of which is mounted.

$ lsblk
NAME        MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
sdb           8:16   1    15G  0 disk
├─sdb1        8:17   1   256M  0 part /media/myuser/mydevice
└─sdb2        8:18   1  14,7G  0 part
nvme0n1     259:0    0 931,5G  0 disk
├─nvme0n1p1 259:1    0   512M  0 part /boot/efi
├─nvme0n1p2 259:2    0    64G  0 part /
├─nvme0n1p3 259:3    0   256G  0 part /home
├─nvme0n1p4 259:4    0    38G  0 part [SWAP]
├─nvme0n1p5 259:5    0   448G  0 part /data
├─nvme0n1p6 259:6    0    16M  0 part
└─nvme0n1p7 259:7    0   125G  0 part

Unmount mounted partitions.

$ umount /dev/sdb1

Create a new partition table and partition of type HPFS/NTFS/exFAT.

$ sudo fdisk /dev/sdb # Pay attention! No final digit is used.

Welcome to fdisk (util-linux 2.34).
Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.

Command (m for help):

Create a new (dos) partition table: press o and enter.
Create a new partition: press n, enter and accept default options.
Change the partition type to HPFS/NTFS/exFAT: press t, enter, 7, enter.
Quit saving changes: press w and enter.
You can quit without saving changes: press q and enter.

Format the partition.

$ sudo mkfs.exfat -n "my label" /dev/sdb1 # Pay attention! Final digit is used.
mkexfatfs 1.3.0
Creating... done.
Flushing... done.
File system created successfully.


Can't open network settings in Ubuntu 16.04

I have no idea, what is wrong with your NetworkManager, but if you can ping by IP, it means you have connected and having problems with name resolution.  You should look what is in /etc/resolv.conf or try to use name resolution from command line with alternate DNS, like:

$ dig @8.8.8.8 askubuntu.com

Other ideas base your edit:

remove connection and recreate it
create temporary user, log in and try, how networking acts there


Why is the Tomboy Note indicator icon duplicating itself?

The duplication of Tomboy indicator icons is a bug caused by unity-tomboy-lens, which is a lens that allowed for searching the contents of Tomboy notes via the Dash in 13.04. There were some issues in 13.10, but overall it still worked; in 14.04, however, it totally ceased to display the notes in the dash, plus caused this bug.

Unfortunately, the developer seems to have stopped using Unity, so the lens will doubtfully be updated (see this bug report).


Gnome panel suddenly becomes transparent!

Try this :

gconftool-2 --type bool --set /apps/metacity/general/compositing_manager "false"

Metacity has a compositing manager that doesn't work very well, it shouldn't be activated by default but your problem make me think that it is activated.

After that, restart and see if the problem still occur.


How to remove gnome from login screen after uninstalling gnome shell

You can remove them from /usr/share/xsessions I believe.


What size CD/DVD do I need to burn Ubuntu on?

You will need to burn the Ubuntu .iso file on a single layer DVD which is typically 4.3gb in size, although it will not use the entire DVD, only around 1gb worth...  Other distributions will vary (Kubuntu, Xubuntu, Lubuntu)...

Note: Burn the .iso file at the slowest possible speed to reduce any errors...


Unable to find any of my applications in Dash?

You can see the installed applications in this folder

/usr/share/applications

All the installed applications will be shown here.

And regarding dash..
Open dash and click "filter results" on the right side.
Choose "Applications" while searching for applications.


If you're using the desktop installer (aka Ubiquity), you may try putting your late_command under

ubiquity ubiquity/success_command string

like

ubiquity ubiquity/success_command string /bin/echo "trying echo" > /var/log/myfile

I usually put both this and the d-i stanza, just to make sure my preseed file works on both.


How do I write to an outer truecrypt volume when the inner volume protection prevents writng?

I do not know how it works with ubuntu, but with windows you can try a defrag tool like "mydefrag" and move all your data to the beginning of your disk ("consolidate free disk space"). The position where to write new data will be set to the end of your existing data.

If all your data already IS at the beginning of your disk (so mydefrag does not move any data) and you still cannot write (although there should be space in the outer volume left) you need to make mydefrag make some data movement, e.g. by choosing the option "data disk monthly" and abort it as soon as the first file has been moved.

Edit: Works with FAT32. Don't know OP's filesystem. But FAT32 seems common to me for USB pendrives.


Ubuntu 12.10 x64 Doesn't detect RAM properly

Limitation of the BIOS. Though it reports 6 GB installed, only 4 can be used. Dell does have a flash available but it's unclear as to weather or not it addresses the upper-limit issue described here. Still waiting for Dell to get back to me.


Can anyone recommend twitter client that support sock5 proxy?

All programs can use sock5 if you use tsocks. They don't even have to know they're doing it.

Install tsocks, configure /etc/tsocks.conf, start up your socks tunnel, or whatever, and then launch your favourite client like this:

tsocks gwibber


is there any calculator in software centre which could solve quadratic equations?

It's very simple in octave, just by entering the coefficients of the equation into the roots function

octave:1> roots([1,0,-1])
ans =

  -1
   1

See the online help

octave:2> help roots
 'roots' is a function from the file /usr/share/octave/3.8.1/m/polynomial/roots.m

 -- Function File: roots (V)

     For a vector V with N components, return the roots of the
     polynomial

          v(1) * z^(N-1) + ... + v(N-1) * z + v(N)

     As an example, the following code finds the roots of the quadratic
     polynomial

          p(x) = x^2 - 5.

          c = [1, 0, -5];
          roots (c)
          =>  2.2361
          => -2.2361

     Note that the true result is +/- sqrt(5) which is roughly +/-
     2.2361.

     See also: poly, compan, fzero.


Installation on Acer Swift 5 freezes, no partitions shown

It turns out that the problem was not the ISO or how the USB stick was prepared in Rufus. I had to change a few things in BIOS, namely:

Changed BIOS to UEFI
Disabled secureboot
Set superuser password
Changed SATA to AHCI mode. This was the trickiest part as the option was hidden in the BIOS menu. It became available by hitting ctrl-s once in the appropriate BIOS menu.


Ubuntu 14.04 get back "old" wireless driver from 13

It was an annoying bug in the network manager.

opening a the config file for this specific network via

sudo nano /etc/NetworkManager/system-connections/NETWORK_NAME

Made me realise that system-ca-certs has automatically been set to true although the network doesn't provide any certificate. Setting it back to false makes the connection work again.

bug report regarding this


Keyboard shortcut for switch to workspace 11 doesn't work

I have no idea why this doesn't work, but I ran into the same problem myself and I have a workaround.

First, you need to find a command which lets you switch to workspace 11 (and in my case, also workspace 12)

Take a look at this answer to know how to do that.

For instance, on my system the command to switch to workspace 11 was wmctrl -o 3840,2160. This is resolution dependent, so I'd suggest looking at the original answer to find the command that reliably works for you.

Once you have the command, go to

System Settings > Keyboard > Shortcuts > Custom Shortcuts

And add these commands as custom shortcuts. Now assign any key to them and it should work.


Right laptop speaker starts playing sound only after the left one

A few days have passed and I can say with confidence the problem is gone.

As stated in my comment, the solution was to disable the power save mode for the audio by adding the line options snd-hda-intel power_save=0 power_save_controller=N to the file /etc/modprobe.d/alsa-base.conf.

For future people having the same problem, first you must discover your audio driver by running lspci -v and looking for the audio. In my case it was snd-hda-intel. Additionally, I know some don't use alsa, so you must search how to disable the power save and power save controller on whatever it is you're using.

As a side note, this also happened to me in Windows. The problem and its cause were the same, so if you have this in Windows, search how to disable these settings (it involves messing with the registry).


Problems running Ubuntu 12.10 in VMWare Player 5

I have exactly the same behaviour with Windows 7, VMware Player 5.0.1 and Ubuntu 12.10, while 11.10 runs fine both in native mode and as a VM (host is a laptop, Sony VPCZ138GW hybrid graphics - Intel & Nvidia).

Clicking on the appropriate screen coordinates one can launch applications, however; e.g., left hand corner click allows to type and run a perfect "terminal", and right hand corner allows a proper shutdown...

PS: Shutting the VM, toggling the switch to the Nvidia (Windows does it live) and starting the VM solved the problem, so if you do NOT have a hybrid graphics, VMware Player 5.0.1 should address your issue; if you have a hybrid graphics, you can try this recipe...


Why is enp#s# in stead of eth# ? Whats the meaning of enp#s#?

These interface names are a new standard aimed at providing consistent (and persistent) names of network devices between different boots and Linux installs. There's a good amount of information and rationale here:

https://www.freedesktop.org/wiki/Software/systemd/PredictableNetworkInterfaceNames/

There's also the technical detail of the naming scheme here:

https://github.com/systemd/systemd/blob/master/src/udev/udev-builtin-net_id.c#L20

In short, for your case, the enpXsY signifies that it's a pci device (from the p), on pci bus X, in slot Y.


Ubuntu 12.04 Terminal Font appears smashed together regardless of font or font size. How do i fix this?

Open terminal Ctrl + Alt + T

Click at Edit, and go to Profile Preference.

In General tab, you can change your font and font size.


Xerus - missing L2TP plugin for Network-Manager?

Not sure if people are still interested 6 months after this question was asked, but I think I have a solution. This worked for me on Kubuntu 16.10.

Compiling

As user563731 mentioned, the network-manager-l2tp plugin is not available in the Ubuntu or Debian repositories, and must be compiled from source.

Install the required packages to compile:

sudo apt install git intltool libtool network-manager-dev libnm-util-dev libnm-glib-dev libnm-glib-vpn-dev libnm-gtk-dev libnm-dev libnma-dev ppp-dev libdbus-glib-1-dev libsecret-1-dev libgtk-3-dev libglib2.0-dev xl2tpd strongswan

Download the source code from the network-manager-l2tp GitHub repository and change into the newly created directory:

git clone https://github.com/nm-l2tp/network-manager-l2tp.git
cd network-manager-l2tp

Run the autogen.sh script downloaded from the repository:

./autogen.sh

Configure the compile options as specified for Debian/Ubuntu in the README file:

./configure \
--disable-static --prefix=/usr \
--sysconfdir=/etc --libdir=/usr/lib/x86_64-linux-gnu \
--libexecdir=/usr/lib/NetworkManager \
--localstatedir=/var \
--with-pppd-plugin-dir=/usr/lib/pppd/2.4.7

Compile with make. This may take some time:

make

Copy the produced files to the proper locations. As far as I can tell, only 4 files need to be copied, despite the massive amount the make process created:

cp nm-l2tp-service.name /usr/lib/NetworkManager/VPN/
cp nm-l2tp-service.conf /etc/dbus-1/system.d/
cp src/nm-l2tp-service /usr/lib/NetworkManager/
cp src/.libs/nm-l2tp-pppd-plugin.so /usr/lib/pppd/2.4.7/

Additional workarounds & troubleshooting

I'm only listing the problems I experienced. For additional troubleshooting, make sure to review the links in the "Sources" section below.

AppArmor denies access to charon or stroke

When you connect, you may see errors in /var/log/syslog along the lines of "apparmor DENIED /usr/lib/ipsec/charon" or "reading from socket failed: Permission denied". The workaround for this is to disable AppArmor profiles for charon and stroke:

sudo ln -s /etc/apparmor.d/usr.lib.ipsec.charon /etc/apparmor.d/disable/
sudo apparmor_parser -R /etc/apparmor.d/usr.lib.ipsec.charon
sudo ln -s /etc/apparmor.d/usr.lib.ipsec.stroke /etc/apparmor.d/disable/
sudo apparmor_parser -R /etc/apparmor.d/usr.lib.ipsec.stroke

Port 1701 is busy, use ephemeral

This error appearing in /var/log/syslog is indicative of xl2tpd already running. Make sure the daemon isn't running:

systemctl stop xl2tpd

Then disable it to make sure it doesn't start again on the next reboot:

systemctl disable xl2tpd

The network-manager-l2tp plugin likes to start and stop this daemon on demand, so it's best to leave it disabled.

Minor problems that I encountered that I don't have solutions for, but aren't too horrible to live with

For the duration of the time the VPN is connected, /var/log/syslog is flooded with "xl2tpd: network_thread: unable to find call or tunnel to handle packet." I don't know what this means or how to fix it.
When the VPN is disconnected, it leaves behind a "ppp0" network interface. When re-connected, it creates a new "ppp1" network interface. It seems to do this indefinitely and does not remove any of them until you reboot.
Remote DNS servers on the other side of the VPN tunnel are not automatically assigned. I have to manually add my DNS settings to the "IPv4" tab in the connection settings.

Sources

Steps 1, 6, and AppArmor workaround: https://github.com/nm-l2tp/network-manager-l2tp/issues/12
Steps 3 through 5: https://github.com/nm-l2tp/network-manager-l2tp/blob/master/README.md


When creating a .desktop file, what are valid categories?

See Desktop Entry Specifications for the official specifications for .desktop entries and that page also includes a link to categories.

Main Categories. Note that category names are case-sensitive.

AudioVideo
Audio
Video
Development
Education
Game
Graphics
Network
Office
Settings
Utility

it also has a very long list of "Additional categories"

Building
Debugger
IDE
GUIDesigner
Profiling
RevisionControl
Translation
Calendar
ContactManagement
Database
Dictionary
Chart
Email
Finance
FlowChart
PDA
ProjectManagement
Presentation
Spreadsheet
WordProcessor
2DGraphics
VectorGraphics
RasterGraphics
3DGraphics
Scanning
OCR
Photography
Publishing
Viewer
TextTools
DesktopSettings
HardwareSettings
Printing
PackageManager
Dialup
InstantMessaging
Chat
IRCClient
FileTransfer
HamRadio
News
P2P
RemoteAccess
Telephony
TelephonyTools
VideoConference
WebBrowser
WebDevelopment
Midi
Mixer
Sequencer
Tuner
TV
AudioVideoEditing
Player
Recorder
DiscBurning
ActionGame
AdventureGame
ArcadeGame
BoardGame
BlocksGame
CardGame
KidsGame
LogicGame
RolePlaying
Simulation
SportsGame
StrategyGame
Art
Construction
Music
Languages
Science
ArtificialIntelligence
Astronomy
Biology
Chemistry
ComputerScience
DataVisualization
Economy
Electricity
Geography
Geology
Geoscience
History
ImageProcessing
Literature
Math
NumericalAnalysis
MedicalSoftware
Physics
Robotics
Sports
ParallelComputing
Amusement
Archiving
Compression
Electronics
Emulator
Engineering
FileTools
FileManager
TerminalEmulator
Filesystem
Monitor
Security
Accessibility
Calculator
Clock
TextEditor
Documentation
Core
KDE
GNOME
GTK
Qt
Motif
Java
ConsoleOnly

and a "Reserved categories".

Screensaver
TrayIcon
Applet
Shell


Upgrade from Ubuntu 13.04 to 13.10 stuck at Restoring Previously Installed Packages

Had similar symptoms on a new laptop while installing 16.04LTS. But slightly worse in that it was a total freeze / zero response. Live DVD seemed to work ok though. Found inspiration in the following article:

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

In short:- disable secure boot AND uefi in the bios. Then fresh install.

(hardware was Intel Pentium Quad + Integrated HD Graphics)


Juju remove units stuck in dying state so I can start over?

I had same problem, here is solution:

1) Restart Node in MAAS

2) Charms will go to error state

3) juju resolved " your unit"

4) juju destroy-service " your service"

it worked for me!


Overheating after installing ubuntu 18.04

Getting hot near touchpad might mean your Hard Disk is overheating. It is more common in machines having 2GB or less RAM.

Step 1 (Decrease Swap Usage):

Open the Terminal and run:

sudo -i gedit /etc/sysctl.conf

Scroll to the bottom of the texts, create a newline and paste the following two lines:

# Decrease swap usage to a more reasonable level
vm.swappiness=10

Save the file and reboot the machine.

Step 2 (Enable HDD Spindown):

Download and open Disks (gnome-disk-utility) app.
Click the cogwheel icon on the top right and select "Drive Settings".

Active Standby. Grab the slider of the “Standby Timeout Setting” and increase it to 20 minutes. Click OK button and give password to authorize the operation.

Go to the next (APM) tab. Active “Apply Advanced Power Management Settings”. Make sure APM level is not more than 127.
Select OK and authorize the action using administrator password.


When I plug in headphones, my speakers mute, but nothing comes from the headphones

I have the same problem since a week ago, on a Dell Studio XPS, also on 11.10. In the past I usually fixed it by adding

options snd-hda-intel model=dell-eq or options snd-hda-intel model=dell-m6

to /etc/modprobe.d/alsa-base.conf

but it's not working anymore.


configure networkmanager to share internet

Try this:

Open Unity Dash, search Network, and open the resulting app.
Select your LAN adapter and then click "Options..." in the lower right corner.
Go to the "IPv4 Settings" tab.
Under the "Methods" dropdown, select "Shared to other computers."

That should hopefully do it.


You can use 10.0.0.0/24 for both the management network and the external network; in your MAAS configuration, allocate a subset of the IP range for physical server provisioning, and then once OpenStack is deployed, you can configure Neutron to use a different subset of the 10.0.0.0/24 IP range - Neutron will manage this as a separate pool so there is no dependency on floating IP's being allocated by MAAS DHCP.

Make sure that you have two network interfaces cables to 10.0.0.0/24 on the server running the quantum-gateway charm and use 'eth2' as the ext-port configuration.


Closing gnome-shell leaves ubuntu without a shell

You simply need to run

gnome-shell --replace &

This will put the gnome-shell process in the background and you can safely close the terminal window. You may return to the traditional GNOME Panel in GNOME 2 with the command

metacity --replace &

You can run apt-cache policy gnome-shell in order to figure out which version of GNOME Shell you are running, and who packaged it. Ideally, you should be able to select GNOME Shell (or GNOME Panel) from the log in screen.


Clock on task bar doesn't update until mouse moves

I have the same issue as well and it appears this is due to a bug in gnome-shell, which has been already corrected in version 3.38.2 (Ubuntu 20.10 comes with 3.38.1): https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/2973
This is also tracked in the dash-to-panel tracker too: https://github.com/home-sweet-gnome/dash-to-panel/issues/1206


Where to find snap packages published by official software project maintainers?

Snaps are created directly by the software vendor. This is in contrast to deb packages, where a Debian or Ubuntu developer acts as an intermediary, packaging the upstream software and releasing it for the distribution.

Provided you have snapd installed, you can find available apps by running snap find. You can also browse available apps at uappexplorer.com.


Macbook: To Dual Boot or to Run on a Virtual Machine?

If i were you i would dual boot. Running Ubuntu in a Virtual Machine won't give you the full experience and the full glamour of running Ubuntu in dual boot.


To add a particular user to a particular group use:

sudo usermod -a -G groupname username

Here a is very important because otherwise the user will be removed from all other groups

Your problem is probably because you missed the -a part in your command


It turned out to be a problem with the graphic driver. Installing NVIDIA drivers solved the issue.


vim on ubuntu desktop is very laggy and slow, but vim.tiny is fine

In case you also want to checkout the startup time for vim, you can use the --startuptime to create a file showing how much time each
plugin (and many other processes) is adding to the start up time:
vim --startuptime profile_vim_startup.vim

will make a file called 'profile_vim_startup.vim'
As an example, The end of my file shows that the YouCompleteMe plugin takes
about 100ms to load:
times in msec
 clock   self+sourced   self:  sourced script
 clock   elapsed:              other lines
   .        .           .
   .        .           .
   .        .           .
g62.216  000.010: start termcap
062.238  000.022: clearing screen
062.614  000.376: opening buffers
062.648  000.034: BufEnter autocommands
062.650  000.002: editing files in windows
064.780  000.578  000.578: sourcing /home/mattb/.vim/bundle/YouCompleteMe/autoload/youcompleteme.vim
157.396  094.168: VimEnter autocommands
157.401  000.005: before starting main loop
157.892  000.491: first screen update
157.893  000.001: --- VIM STARTED ---

The full file (100 lines) for mine is this:
times in msec
 clock   self+sourced   self:  sourced script
 clock   elapsed:              other lines

000.003  000.003: --- VIM STARTING ---
000.059  000.056: Allocated generic buffers
000.086  000.027: locale set
000.090  000.004: GUI prepared
000.092  000.002: clipboard setup
000.094  000.002: window checked
000.322  000.228: inits 1
000.337  000.015: parsing arguments
000.337  000.000: expanding arguments
000.350  000.013: shell init
003.271  002.921: xsmp init
003.442  000.171: Termcap init
003.474  000.032: inits 2
003.599  000.125: init highlight
003.908  000.220  000.220: sourcing /usr/share/vim/vim82/debian.vim
004.496  000.479  000.479: sourcing /usr/share/vim/vim82/syntax/syncolor.vim
004.566  000.586  000.107: sourcing /usr/share/vim/vim82/syntax/synload.vim
008.489  003.893  003.893: sourcing /usr/share/vim/vim82/filetype.vim
008.516  004.572  000.093: sourcing /usr/share/vim/vim82/syntax/syntax.vim
008.529  004.905  000.113: sourcing $VIM/vimrc
008.583  000.007  000.007: sourcing /usr/share/vim/vim82/filetype.vim
008.637  000.024  000.024: sourcing /usr/share/vim/vim82/ftplugin.vim
008.689  000.020  000.020: sourcing /usr/share/vim/vim82/indent.vim
008.879  000.130  000.130: sourcing /home/mattb/.vim/bundle/Vundle.vim/autoload/vundle.vim
009.042  000.103  000.103: sourcing /home/mattb/.vim/bundle/Vundle.vim/autoload/vundle/config.vim
012.043  000.006  000.006: sourcing /usr/share/vim/vim82/filetype.vim
012.228  000.005  000.005: sourcing /usr/share/vim/vim82/ftplugin.vim
012.404  000.005  000.005: sourcing /usr/share/vim/vim82/indent.vim
013.428  000.227  000.227: sourcing /usr/share/vim/vim82/pack/dist/opt/matchit/plugin/matchit.vim
013.476  000.516  000.289: sourcing /usr/share/vim/vim82/macros/matchit.vim
013.588  001.657  001.125: sourcing /home/mattb/.vim/bundle/vim-sensible/plugin/sensible.vim
018.137  000.168  000.168: sourcing /usr/share/vim/vim82/syntax/nosyntax.vim
018.439  000.089  000.089: sourcing /usr/share/vim/vim82/syntax/syncolor.vim
018.595  000.355  000.266: sourcing /usr/share/vim/vim82/syntax/synload.vim
018.614  000.671  000.148: sourcing /usr/share/vim/vim82/syntax/syntax.vim
022.585  000.116  000.116: sourcing /usr/share/vim/vim82/syntax/syncolor.vim
023.185  000.110  000.110: sourcing /usr/share/vim/vim82/syntax/syncolor.vim
023.529  000.107  000.107: sourcing /usr/share/vim/vim82/syntax/syncolor.vim
025.434  002.721  002.504: sourcing /home/mattb/.vim/bundle/vim-colorschemes/colors/seoul256.vim
025.446  003.198  000.361: sourcing /home/mattb/.vim/bundle/vim-colorschemes/colors/seoul256-light.vim
026.373  017.826  012.016: sourcing $HOME/.vimrc
026.376  000.046: sourcing vimrc file(s)
026.746  000.172  000.172: sourcing /home/mattb/.vim/bundle/vim-commentary/plugin/commentary.vim
026.810  000.009  000.009: sourcing /home/mattb/.vim/bundle/vim-sensible/plugin/sensible.vim
027.212  000.365  000.365: sourcing /home/mattb/.vim/bundle/vim-surround/plugin/surround.vim
027.502  000.236  000.236: sourcing /home/mattb/.vim/bundle/ReplaceWithRegister/plugin/ReplaceWithRegister.vim
027.716  000.169  000.169: sourcing /home/mattb/.vim/bundle/vim-indent-object/plugin/indent-object.vim
027.947  000.054  000.054: sourcing /home/mattb/.vim/bundle/ultisnips/autoload/UltiSnips/map_keys.vim
028.015  000.249  000.195: sourcing /home/mattb/.vim/bundle/ultisnips/plugin/UltiSnips.vim
028.225  000.163  000.163: sourcing /home/mattb/.vim/bundle/vim-tmux-navigator/plugin/tmux_navigator.vim
028.883  000.615  000.615: sourcing /home/mattb/.vim/bundle/vim-indentwise/plugin/indentwise.vim
029.048  000.117  000.117: sourcing /home/mattb/.vim/bundle/vim-slime/plugin/slime.vim
029.594  000.506  000.506: sourcing /home/mattb/.vim/bundle/fzf/plugin/fzf.vim
030.358  000.710  000.710: sourcing /home/mattb/.vim/bundle/fzf.vim/plugin/fzf.vim
030.636  000.228  000.228: sourcing /home/mattb/.vim/bundle/traces.vim/plugin/traces.vim
030.831  000.060  000.060: sourcing /home/mattb/.vim/bundle/vim-mundo/autoload/mundo/util.vim
031.019  000.338  000.278: sourcing /home/mattb/.vim/bundle/vim-mundo/plugin/mundo.vim
033.256  002.191  002.191: sourcing /home/mattb/.vim/bundle/vim-fugitive/plugin/fugitive.vim
055.155  009.211  009.211: sourcing /home/mattb/.vim/bundle/vim-unimpaired/plugin/unimpaired.vim
055.683  000.445  000.445: sourcing /home/mattb/.vim/bundle/YouCompleteMe/plugin/youcompleteme.vim
055.949  000.200  000.200: sourcing /home/mattb/.vim/bundle/vim-tmux-focus-events/plugin/tmux_focus_events.vim
056.059  000.045  000.045: sourcing /home/mattb/.vim/bundle/Tabmerge/plugin/Tabmerge.vim
056.300  000.202  000.202: sourcing /home/mattb/.vim/bundle/targets.vim/plugin/targets.vim
056.509  000.049  000.049: sourcing /usr/share/vim/vim82/plugin/getscriptPlugin.vim
056.691  000.170  000.170: sourcing /usr/share/vim/vim82/plugin/gzip.vim
056.858  000.155  000.155: sourcing /usr/share/vim/vim82/plugin/logiPat.vim
056.893  000.021  000.021: sourcing /usr/share/vim/vim82/plugin/manpager.vim
057.035  000.131  000.131: sourcing /usr/share/vim/vim82/plugin/matchparen.vim
057.473  000.424  000.424: sourcing /usr/share/vim/vim82/plugin/netrwPlugin.vim
057.522  000.027  000.027: sourcing /usr/share/vim/vim82/plugin/rrhelper.vim
057.558  000.020  000.020: sourcing /usr/share/vim/vim82/plugin/spellfile.vim
057.692  000.120  000.120: sourcing /usr/share/vim/vim82/plugin/tarPlugin.vim
057.797  000.085  000.085: sourcing /usr/share/vim/vim82/plugin/tohtml.vim
057.937  000.126  000.126: sourcing /usr/share/vim/vim82/plugin/vimballPlugin.vim
058.106  000.146  000.146: sourcing /usr/share/vim/vim82/plugin/zipPlugin.vim
058.179  000.015  000.015: sourcing /usr/share/vim/vim82/pack/dist/opt/matchit/plugin/matchit.vim
058.235  000.011  000.011: sourcing /home/mattb/.fzf/plugin/fzf.vim
058.242  014.195: loading plugins
058.293  000.051: loading packages
058.550  000.103  000.103: sourcing /home/mattb/.vim/bundle/ultisnips/after/plugin/UltiSnips_after.vim
058.671  000.275: loading after plugins
058.685  000.014: inits 3
059.101  000.416: reading viminfo
062.199  003.098: setup clipboard
062.206  000.007: setting raw mode
g62.216  000.010: start termcap
062.238  000.022: clearing screen
062.614  000.376: opening buffers
062.648  000.034: BufEnter autocommands
062.650  000.002: editing files in windows
064.780  000.578  000.578: sourcing /home/mattb/.vim/bundle/YouCompleteMe/autoload/youcompleteme.vim
157.396  094.168: VimEnter autocommands
157.401  000.005: before starting main loop
157.892  000.491: first screen update
157.893  000.001: --- VIM STARTED ---


apt not working, "Unable to fetch some archives"

As of January 13, 2018 Ubuntu 17.04 has reached end of life.

Now you can replace ca.archive.ubuntu.com and security.ubuntu.com in /etc/apt/sources.list with old-releases.ubuntu.com.

But be aware: With 17.04 you won't get any further security updates now and you might still be vulnerable to Meltdown!

The supported upgrade path from Ubuntu 17.04 is via Ubuntu 17.10.
Instructions and caveats for the upgrade may be found at:

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


How to get GNOME Shell Calendar to sync with Google Calendar with Thunderbird installed?

You could try: https://github.com/vintitres/gnome-shell-google-calendar

Few steps are enough:

Setup dependencies:

sudo apt-get install python-gtk2 python-dbus python-gdata python-iso8601 python-gnomekeyring
Download it from: https://github.com/vintitres/gnome-shell-google-calendar/zipball/master
Extract it in any folder you like.
Run gnome-shell-google-calendar.py:

/path/where/you/extracted/gnome-shell-google-calendar/gnome-shell-google-calendar.py
You should beforehand have a online account set up with Google (see: What are online accounts and how do they work?). You should get prompted with this text:

A list of existing accounts is below.
If you do not see a list of accounts, then you first need to add one.
For more information, see http://library.gnome.org/users/gnome-help/stable/accounts.html

0. yourname@gmail.com
Please choose the Account:
Enter the number of your account and the program will start to syncronize.
If you don't want to run it manually everytime, you should add gnome-shell-google-calendar.py to startup applications (see this answer: How do I manage applications on startup in GNOME 3? , insert in the field "command" the path of gnome-shell-google-calendar.py ).

Done!


Disable 4th title-bar button (menu) on Ubuntu 18.04

Open Terminal and run the following command

gsettings set org.gnome.desktop.wm.preferences button-layout :minimize,maximize,close