Is there a working SACD iso player for Ubuntu?

Audio players found in the repositories (VLC, Totem amongst others), do not play DSD natively.

DeaDBeeF plays both DSD64 and DSD128 through ffmeg. From comment in a release topic:

  waker Owner  Maxim • 4 years ago
  dsd is supported, sorta. you need to use ffmpeg plugin, linked with the system version of ffmpeg, which has DSD support compiled. then all you need is to include the needed file extension to the list of ffmpeg plugin's file ext list.

MPD has a SACD plugin. But the DSD files must be extracted from the SACD image. The SACD image cannot be loaded directly into mpd unfortunately.


Google chrome bug, disrupts the kernel update

That's a warning (that's what the W: in front of it means), and it doesn't disrupt anything other than not receiving upgrade information for Google Chrome. In particular, it won't prevent kernel upgrades.

You can either continue on to whatever you were going to do next or try sudo apt-get update again to try to get Chrome upgrade information.


Installing another Python 3 version in parallel to the system one

It will be easier to rely on a python version management tool such as pyenv if it manages the python version you want.

A complete tutorial is located here.

However, if you choose to do it manually (or if the version you want is not managed by pyenv), you might need to download it from the official site and unzip it where you want.


How do I find out which of my apps are snaps? Also, can I go Snap-less?

At this time, snaps are not required to run Ubuntu.  However the Ubuntu software store does depend to some extent upon the availability of snaps.
To list the snaps that are installed on your system, open a terminal window and enter the command snap list - this will give a list similar to
$ snap list
Name               Version             Rev    Tracking         Publisher   Notes
core18             20210128            1988   latest/stable    canonical✓  base
gnome-3-34-1804    0+git.3556cb3       66     latest/stable/…  canonical✓  -
gtk-common-themes  0.1-50-gf7627e4     1514   latest/stable/…  canonical✓  -
snap-store         3.38.0-59-g494f078  518    latest/stable/…  canonical✓  -
snapd              2.48.2.1            11036  latest/stable    canonical✓  snapd

It is possible to remove some or all of the snaps.  Many (most) applications are available in different packaging options, but this is something that the application maintainer decides.
My current method for removing all snaps:
snap list | awk '!/^Name|^core|^snapd/ {system ("sudo snap remove " $1)}'
sudo apt remove --purge -y snapd gnome-software-plugin-snap

This does disable the ubuntu software store.  However, running sudo apt install gnome-software will call as a dependancy snapd.  You could simply omit the second line of my snap removal.


I accidentally deleted my DE, then broke dpkg

At this point, your system is probably pretty much toast, and has been through a lot.

While repairing it is possible (but very hard now), there could be a lot of very large problems that should be solved with something stronger than duck tape.

Ideally, you should just reinstall your system, making a backup of any important to be restored later.

Now, if a reinstall is not an option, you can duck-tape the system to try to fix it.

First off, get your (handy) backup of /var/lib/dpkg/status out. You do have one, no? If you don't, sorry, you're toast Linux decided to be very nice to you. You have a working version at /var/backups/dpkg.status.0.

Copy your backup over:

sudo cp /var/backups/dpkg.status.0 /var/lib/dpkg/status

Now, you need to get dpkg back up and running. cd /tmp to get to somewhere not important, and get the `dpkg binary:

apt download dpkg

Try to reinstall it, and pray that it works. If not, we have much bigger problems.

sudo dpkg -i dpkg*.deb

Once that works, reinstall your Ubuntu base:

apt-get download base-files
sudo dpkg -i base-files*.deb

If all still looks well, instruct dpkg to clean and rebuild everything:

dpkg --audit
sudo apt-get update
sudo apt-get check

Once everything is back where it belongs and the lesson of the day (Don't ever interrupt an active dpkg task, or mess with dpkg/status), we need to re-install your graphical interface:

sudo apt install --reinstall ubuntu-mate-desktop

This will then take everything that's needed for MATE and install it (again) to ensure that everything works how it's supposed to.

As for cleaning up hard drive space, you can use du and df to trace where all of that space is, and clean it up by hand.

Some info sourced from here


Hamster Time Tracker Broken After Upgrade to 11.10

The only way I've been able to get hamster going is by building it from source:

git clone git://git.gnome.org/hamster-applet
cd hamster-applet
./waf configure build --prefix=/usr
sudo ./waf install

From Project Hamster


Multiple users on the same machine on the same time

Here are the things worked for me.. (success using this tute  http://www.howtoforge.com/how-to-install-vnc-server-on-ubuntu-14.04 and kudose for Charles Tassell for right directions and advice)

What I did is as follows,

(1) run sudo apt-get update && sudo apt-get upgrade

(2)run sudo apt-get install gnome-core xfce4 vnc4server

(3)then add users (vncserver/unix)

sudo adduser test1

(you will have to fill details afterwards for the user, I have added 3 users (test1, test2, test3 etc for vnc server)

(4)Then you have to switch users one by one and run vncserver and add password for vncuser login (I have three vnc users, so that i had to repeat this for all three user test 1, test2, test3)

su - test1

then run

vncserver

out put will be like this prompting for a vnc password..

You will require a password to access your desktops.

Password:
Verify:

xauth:  file /home/test1/.Xauthority does not exist
New 'server1:1 (test1)' desktop is server1:1
Creating default startup script /home/test1/.vnc/xstartup
Starting applications specified in /home/test1/.vnc/xstartup
Log file is /home/test1/.vnc/server1:1.log

(5) Important : you will have to replace /home/test1/.vnc/xstartup content with below (Else you will not get the desktop, instead you will stuck with blank screen without user interfaces or menus )

vim /home/test1/.vnc/xstartup

and add

#!/bin/sh
unset SESSION_MANAGER
unset DBUS_SESSION_BUS_ADDRESS
startxfce4 &

[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
xsetroot -solid grey
vncconfig -iconic &

(6) startup script for the vncserver was created using "Further I will make the startup script for the vncserver like this" section of this tute

sudo vim /etc/init.d/vncserver

and add below content..

#!/bin/bash

unset VNCSERVERARGS
VNCSERVERS=""
[ -f /etc/vncserver/vncservers.conf ] && . /etc/vncserver/vncservers.conf
prog=$"VNC server"
start() {
 . /lib/lsb/init-functions
 REQ_USER=$2
 echo -n $"Starting $prog: "
 ulimit -S -c 0 >/dev/null 2>&1
 RETVAL=0
 for display in ${VNCSERVERS}
 do
 export USER="${display##*:}"
 if test -z "${REQ_USER}" -o "${REQ_USER}" == ${USER} ; then
 echo -n "${display} "
 unset BASH_ENV ENV
 DISP="${display%%:*}"
 export VNCUSERARGS="${VNCSERVERARGS[${DISP}]}"
 su ${USER} -c "cd ~${USER} && [ -f .vnc/passwd ] && vncserver :${DISP} ${VNCUSERARGS}"
 fi
 done
}
stop() {
 . /lib/lsb/init-functions
 REQ_USER=$2
 echo -n $"Shutting down VNCServer: "
 for display in ${VNCSERVERS}
 do
 export USER="${display##*:}"
 if test -z "${REQ_USER}" -o "${REQ_USER}" == ${USER} ; then
 echo -n "${display} "
 unset BASH_ENV ENV
 export USER="${display##*:}"
 su ${USER} -c "vncserver -kill :${display%%:*}" >/dev/null 2>&1
 fi
 done
 echo -e "\n"
 echo "VNCServer Stopped"
}
case "$1" in
start)
start $@
;;
stop)
stop $@
;;
restart|reload)
stop $@
sleep 3
start $@
;;
condrestart)
if [ -f /var/lock/subsys/vncserver ]; then
stop $@
sleep 3
start $@
fi
;;
status)
status Xvnc
;;
*)
echo $"Usage: $0 {start|stop|restart|condrestart|status}"
exit 1
esac

to make it an executable run the following..

chmod +x /etc/init.d/vncserver

(7) To make vnc desktop sessions allocated for users at start up automatically, create following script in /etc/vncserver

sudo mkdir -p /etc/vncserver
sudo vim /etc/vncserver/vncservers.conf

add this in vncservers.conf (this is because i have my users as test1, test2, test3 change it according to )

VNCSERVERS="3:test3 2:test2 1:test1"
VNCSERVERARGS[1]="-geometry 1024x768"
VNCSERVERARGS[2]="-geometry 1024x768"
VNCSERVERARGS[3]="-geometry 1024x768"

(8) Then run

sudo `update-rc.d vncserver defaults 99`

(9) reboot server (you are almost done by now) step 10 and the rest is how to login part

(10)download http://www.realvnc.com/download/viewer/

enter servername/ipaddress and session id
for example my server is 172.16.70.17 and if i use 172.16.70.17:2 it will login to test2 user desktop.. and 172.16.70.17:3 will login to test3 user desktop like wise

make sure encryption to be selected "Prefer off"

http://i.stack.imgur.com/MQ36F.png

http://i.stack.imgur.com/tmMoc.png

Then you can access your desktop and applications in this manner..

http://i.stack.imgur.com/rN7UK.png


Trying to configure autologin for Ubuntu 12.04 as XBMC

There are GUI settings for this. Go to settings and then Users. Find the account and set it to automatically log in. Then go to the login screen and log into the account as XBMC (not Unity). When it logs in at boot, it will select the last used setting (XBMC).

You could also have it boot into Unity and then launch XBMC. In that account, search for the Startup Applications program and add the command 'XBMC'. I do it this way so that I can have better control over the display settings (XBMC's display settings didn't work).


Completely drop Unity for Gnome on Ubuntu 14.04

Why not wipe your install and put on http://ubuntugnome.org/ ?


How to make selected tab in terminal more prominent

For 12.10–15.04 you can create a CSS theme for GTK 3.0 as explained in this comment by Kees (kees-vanveen) on the bug report posted above by Alessio.

Create the file ~/.config/gtk-3.0/gtk.css
Paste this as the contents using your desired color:

TerminalWindow .notebook tab:active {
    background-color: #def;
}

Close all Terminal windows and relaunch the application to see the change.


Update Errors on Ubuntu- I get this message

This means that you added an PPA (repository that is not supported by Cannonical), and the PPA is unreachable. To fix, simply remove the PPA: edit the file /etc/apt/sources.list and remove this link from the file. You will need root (sudo) to save after you are done.


Grub on gpt partitioned drives can boot in either UEFI mode using ESP - efi system partition (FAT32) or in BIOS mode using a tiny 1 or 2 MB bios_grub partition.

It looks like you converted UEFI boot Ubuntu to BIOS boot with a huge bios_grub. The bios_grub probably was the ESP?? I would convert your sda1 back to an ESP, by formatting to FAT32 with boot flag with gparted. Either use version in Ubuntu live installer or a gparted live ISO version.

https://gparted.sourceforge.io/index.php

Then in Boot-Repair's advanced options do a total reinstall of grub to get UEFI version of grub. Be sure to boot Ubuntu installer in UEFI mode to run Boot-Repair in UEFI mode.

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

Not sure if you recover the ESP, it it will have the Windows UEFI boot entry. If totally new partition it will not. Grub only boots working Windows and looks for the Windows ESP entry to boot from. But if Windows turns fast start back on, grub will not boot it and you must boot from UEFI boot entry to turn fast start off, or make other repairs. You can add a Windows entry by running repairs from your Windows repair disk or use efibootmgr in Ubuntu. See IV and restore Windows entry:

Dual boot Win 8 / Ubuntu loads only Win


How to drag and drop a picture from a home folder into an open application in full size?

I'm not sure I understand your question 100%, but here's trying :-)

So, consider you have Eye of Gnome opened somewhere (maximized or not) and you have a maximized Nautilus (the file manager) window open and you have found a picture in there you want to see in EOG. In this situation it is normally impossible to drag the file outside the maximized file manager window - I guess this is your problem?

If it is, then here's the solution: Drag the image out of the file manager over the launcher (the application bar on the left side of the screen). Now all applications that can open the particulat file type you are dragging should light up (all others will dim out). Then just drop the image file on top of the shining EOG tile.

In the case of Rhythmbox you mention there may be a slight problem. From my tests it doesn't light up, meaning that it's not registered as being able to open PNG files (which is what I am dragging). You can easily fix this, though. Just do:

sudo nano -w /usr/share/applications/rhythmbox.desktop

Find the line that starts with MimeType= and append to the end of that line image/jpeg;image/png; so it looks like:

MimeType=application/x-ogg;application/ogg;audio/x-vorbis+ogg;audio/x-scpls;audio/x-mp3;audio/x-mpeg;audio/mpeg;audio/x-mpegurl;audio/x-flac;image/jpeg;image/png;

Then hit Control-X to exit the editor and remember to choose "save" when it asks you.

Now restart Rhythmbox and the dragging exercise from above again, maybe hovering over the launcher for a while until the Rhythmbox window pops up, then move over that window until it goes fullscreen and drop the image in the artwork zone.

Good luck!


I got myself connected by using the following ofono script commands
in adb shell, first issue "cd /usr/share/ofono/scripts/"
"activate-connection"
"create-internet-context payandgo" (payandgo being my APN)

Still not sure why this worked as the default context did not contain any other details relating to O2 - for example, the password - but it did give me working 3G data.

For anyone else reading this, the command "set-context-property {context} {property} {value}" allows you to set any of the parameters contained in the given context (connection). For example, "set-context-property 0 Password payandgo" will set Password to "payandgo" in the default context. Also, the command "list-contexts" will show you the content of the context. If, while editing, it says the context is in use just issue "deactivate-context", make your changes, then "activate-context".
HTH


Yeah I hit this too. You just need put the settings back into Compiz.

Download CCSM. Either search the software centre or pump this into a terminal.

sudo apt-get install compizconfig-settings-manager

Run it. Whack ccsm into a run dialogue.
Under the "Enhanced Zoom Desktop" plugin, look at the "Zoom In/Out" tab. You want to alter the gestures so that you have something like the following:

Zoom in: <Super>Button4
Zoom out: <Super>Button5
Zoom box: <Super>Button2

That should return things to how they were. You should have a look at the other tabs too because they have improved some of the features. I've fallen for the panning mode.


Can I install new version of python on ubuntu 14.04?

I would take a look at python virtual environments.  This question has a guide for installing virtualenv (or another link to another guide).  Virtualenv can be used to set up isolated python environments that do not do anything to the system python.

Here is a guide on how to use python virtual environments.  They are extremely useful for projects that require different versions of python or python modules.


Erased External Hard Drive after installing Ubuntu

Windows will not be able to read Ubuntu (ext4) formatted drives. I have no experience with Recuva, and whether it can recover from ext4 formatted drives.

What I know however is that you will be able to recover those files, or directories that were not yet overwritten using Open Source Linux tools such as TestDisk. This tool can be installed in an Ubuntu live session (i.e. by booting from an Ubuntu installation USB choosing "try out Ubuntu").

To do so you need the following:

a working Internet connection on the live Ubuntu (prefer LAN over wireless).
an Ubuntu USB drive from where you can boot.
a spare drive to store the rescued files on.

In case TestDisk fails to recover all files we may also give PhotoRec a chance.


With Banshee open go to  Edit -> Preferences  and ensure you have the checkbox enabled to show Banshee in the sound menu.

Ensure you have enabled the Extension as well.

Once this is done you should have the on screen notification show up when the track playing changes, one thing to note is it works best when Banshee is minimised to the Unity Launcher.


File added to project doesn't get added to packages

I didn't notice the MANIFEST.in file in the top-level of the source tree (not in debian directory).


Grub does not show up at start, cannot select older kernel

As inaccurate as this answer may seem, the only way I can get grub to show up is if I spam right-shift and space-bar just before the OS is starting to boot (just after the BIOS splash screen flashes off).

My own anecdotal efforts seem to indicate that I have the best luck when I interchange my key presses, as opposed to just spamming the 2 keys at the same time.

Having said that, I've successfully had grub show up by just holding the shift key, and just spamming the space-bar - it seems a bit temperamental, and it sometimes takes me a few reboots just to get it.


Google Chrome browser on Lubuntu 18.04 becomes colorless

It seems you are using Text Mode extension which is causing the issue. Excerpt from Text Mode extension page:

  Declutter the web by activating Text Mode. All pages load in text form
  (no images, animation or video) so content is easier to scan and read.

  ★ View text only pages
    ★ Images, video, flash, are never loaded
    ★ Color-free pages are easier on the eye

"Color-free pages" generally mean gray or B&W pages. Disabling the extension would solve the issue.


I recently have installed Ubuntu 12.10 onto my computer

There was a problem with your install that doesn't require a fix.

I recommend going and remaking the boot-able USB, before that, try to see if you can open up terminal to execute commands, Press Ctrl +alt+T. If it doesn't there's a serious problem with the install, try to install it again off the same boot-able USB you made for this Ubuntu, and see if that fixes the problem. If not, just remake a new boot-able USB then re-install from there.


Gimp (here on Gimp 2.8) lets you define the location of brushes in the Edit  > Preferences menu:

By default it is a (hidden) folder in your HOME directory but you can choose any other location. All files and folders in your HOME are accessible withhout sudo permission.

Hidden directories can be viewed in the file manager by pressing Ctrl+H or by ticking "show hidden files" in preferences.


How to get 32 bit version of libraries on Ubuntu 64 bit?

You can install 32bit libraries on a 64bit machine by installing the ia32-libs package:

sudo apt-get install ia32-libs


How to properly install graphics drivers in 12.10

I find jockey-gtk the best tool to install and remove graphics drivers. I do not whey they removed it from 12.10. Search in the software center and install it. If it is available then you are done. Use it to install the drives. If not let us know.


Juju not deploying zookeeper when deploying on OpenStack

When you bootstrap, the zookeeper machine is not supposed to exist already, but you should be able to boot new  vm with nova.

Here is how it looks like here:

melmoth@x220:~$ nova list
+----+------+--------+----------+
| ID | Name | Status | Networks |
+----+------+--------+----------+
+----+------+--------+----------+
melmoth@x220:~$ juju bootstrap
2013-06-20 14:00:44,252 INFO Bootstrapping environment 'kikoo' (origin: ppa type: openstack)...
2013-06-20 14:00:58,079 INFO 'bootstrap' command finished successfully
melmoth@x220:~$ nova list
+--------------------------------------+-----------------------+--------+----------+
|                  ID                  |          Name         | Status | Networks |
+--------------------------------------+-----------------------+--------+----------+
| 705b97fa-6579-43e2-af3a-f504b74b7ee2 | juju kikoo instance 0 | BUILD  |          |
+--------------------------------------+-----------------------+--------+----------+

The new "juju kikoo instance 0" machine is the one where zookeeper will be installed.

I can see how the boot process is going with:

nova console-log 705b97fa-6579-43e2-af3a-f504b74b7ee2

You may want to run "juju --verbose bootstrap" in order to learn more about why is there no new vm launched.

Here is my environments.yaml file:

environments:
    kikoo:
      type: openstack
      control-bucket: pierre-bucket
      admin-secret:  asecretphrase
      default-series: precise
      #be sure you can boot machine using nova boot with this image:
      default-image-id: f2ca48ce-30d5-4f1f-9075-12e64510368d
      juju-origin: ppa

See https://juju.ubuntu.com/docs/provider-configuration-openstack.html for details.


How can I change the Hidden Attribute of a file/folder? (Alternative to attrib FILENAME -h)

Have a look at fatattr  if the disc is vfat.

  FAT filesystems contain several attributes which do not map cleanly onto Unix attributes; this utility allow these to be controlled directly by unprivileged users on any mounted FAT partition.

Syntax is

fatattr [+-hsra] [files]

The letters are...

h hidden
s system
r read only
a archive


What are the steps for using axel-kapt in Ubuntu 12.04?

Axel-kapt is just a GUI for Axel downloader, and provides some settings for Axel. It seems to me that you want to download with Axel, and for that you should use it with FlashGot addon in Firefox.
There you can set Axel as default downloader or to use it just for capturing media.


While you are in your terminal tab.

Go the the window settings and select the "Edit" menu. In that there is a "Profile Preferences".

Now select the "Colors" and adjust your transperancy or unselect it.


Shouldn't there be a specific Wayland ATI driver?

Ubuntu still uses X.org (and will do so in 12.04, too).


Is there an easy way to reorganize tags in shotwell?

There is currently no way to select multiple tags in Shotwell.  There is an open ticket on this feature, feel free to add a comment on it.

Update: the original link is no longer available, so an archived link to the bug report was linked.


No connections being shown on wireless BCM43228 18.04

I have the same configuration and I found solution

(if you already know you have BCM43228 than skip next line)

sudo lshw -class network

than install drivers (you have to connect to internet via Ethernet cable or Bluetooth)

sudo apt install bcmwl-kernel-source

restart network manager

sudo systemctl restart network-manager

now you have wifi card installed and can connect to internet with wifi :)


How long will the 2D Gnome be available?

Indefinitely, hopefully. There will always be video cards that either aren't powerful enough or just aren't supported. And there'll probably always be users (like me) who have both powerful and supported graphics but that don't want Unity or Gnome Shell.

Moving to a scenario where you're forced to use a UI that requires accelerated graphics would be a dark day for Ubuntu.

It's important to note that this doesn't just apply to old graphics hardware but also new hardware that doesn't have a Linux driver (or at least one accessible in a given release of Ubuntu).

I suspect the actual kill-date will be determined when Gnome announces it'll stop supporting the 2.x interface.


Windows 7 is not accessible or can't be repaired after installing Ubuntu 11.10 using live USB

Oh sorry to interrupt but really your question gave me a shot of laughter especially the line "While installing the ubuntu, my pen-drive came out and everything stopped". I could not imagine that even today "DIE HARD 4" is going live somewhere. Well the only problem you are having seems to be the grub loader issue. Just put in the window repair disk and open up the command prompt. After that, you can type there:

x:\sources>diskpart
x:\sources>select disk 0
x:\sources>list partition
x:\sources>select partition 4 //in case partition 4 is the one you have windows installed on
x:\sources>active

Well, if does not seems to help you, then why not just repair boot issue? Do it in following way:

x:\sources>bootrec /fixboot
x:\sources>bootrec /fixmbr

Maybe that could help you


It's possible that you got a corrupted download, or that the burn was bad. You can check the iso you dowloaded by testing its md5sum to make sure it is good.

HowToMD5SUM


Unable to install QT5 .run file on ubuntu

You do not mention that you have the file renamed after download. Therefore:

chmod +x qt-unified-linux-x64-online.run
./qt-unified-linux-x64-online.run

Or all steps

cd
wget http://download.qt.io/official_releases/online_installers/qt-unified-linux-x64-online.run
chmod +x qt-unified-linux-x64-online.run
./qt-unified-linux-x64-online.run

And you will see this


How Do You Remove the Terminal Titlebar for Neovim?

I just found that Vim has the command set title which at least removes "Terminal" from the titlebar, which is a good start.


Mechanical keyboard Sharkoon PureWriter not working after resume from suspend

I think Intel virtual technology  was a problem. When I resume from suspend from power button works good.

Maybe it was connected with graphics card driver. I update to nvidia 440.


How to troubleshoot a wireless networking regression?

Determine where the regression is: Test Maverick with the Lucid kernel and vice versa, and also test kernels from the mainline PPA. If you can make it work in Maverick with an older kernel and break in Lucid with a newer kernel, it's a kernel regression. If not, it's a problem in the userland.

If it is a kernel regression, determine the newest working kernel and then perform a git bisection to find the exact commit where it stopped working.

If it is a userland bug you will have to dig into the packages involved with wireless.


Bluetooth option is gray and not activated

It can be the Bluetooth kernel module was not loaded. Can you share lsmod command output? For example:

root@myvivid:~# lsmod | grep blue

bluetooth             491520  1 bnep


Mediamonkey ratings imported into Rhythmbox/Banshee/Quod Libet

I can only answer for Quod Libet, but like many others, this uses a decimal 0.0 - 1.0 rating system. In the user interface this appears as "stars" (now any symbol actually). The original value is rounded to the nearest number of stars configured (4 by default), i.e 0.5 = 2 stars. You can even search by ratings, e.g. #(rating>=0.8)

Note that this number of stars is itself configurable, so you see your 10 (5 and 5 halves) distinct ratings (See Can I show more than 0 to 4 notes when rating songs?). I'm not sure how MM stores them though (I seem to remember QL does understand them though). If you're seeing roughly the correct ratings already, it should work at the higher accuracy too.

Note there's some discussion about potential improvements to the interface and configurability for all this.


Use a live USB and boot your system.

Make sure you can mount your main partition in which your Ubuntu is installed. Lets assume it is /dev/sda1

Unmount that partition (NECESSARY).

Now run this command which will fix errors in partition:

sudo fsck -a /dev/sda1

Make sure you you can mount the partition.

Restart your system. it should work now.

(I faced with this problem today, I did exactly same thing and problem solved)


Logging wireless access point connections

You can find some last connections in

sudo less /etc/NetworkManager/system-connections/*

But the timestamp is of the form

1293853087

To make it readable, you would use:

date -d "1970-01-01 +1293853087 seconds"
Sa 1. Jan 03:38:07 CET 2011

For future use, it might be better to insert a few code lines to /etc/networks/ifup.d/YourScript

echo $(date) "  "$(if [ "$IFACE" = eth1 ]; then
    iwconfig | egrep -o "ESSID:*"
fi) >> /var/log/myip.log

or something similar.

I haven't done so, so there are surely some problems to solve. Maybe you don't have write access to /var/log/myip.log, and have to create it with sudo touch ... before, and allow some group (network?) to write to it.


Drive not visible from terminal after boot

Use lsblk to determine where your device is mapped. The output is a tree structure that lists each block device. You are looking for the NAME of the partition that you want to auto-mount at startup. For example:

NAME                   MAJ:MIN RM   SIZE RO TYPE  MOUNTPOINT
sda                       8:48   0   2.7T  0 disk
├─sda1                    8:50   0   1.7T  0 part  /media/STORAGE

Here I have mounted the device /dev/sda1 (which is really just a drive partition) to mountpoint /media/STORAGE. Note that if your partition is already mounted, you should already see a mount point (in your question, you mention /media/jorn/Data). If your drive isn't mounted, however, you will not see a mountpoint. To make things easier, you may want to use your "filesystem explorer" trick to get the drive to mount. My suspicion is that you will not see a mount point for this drive after startup until you open the drive in file explorer. If you do, then there is likely something else going on.
Use sudo blkid to determine what the UUID of your device is. In the previous step, we determined that the device NAME was sda1. sudo blkid shows the following for me:

/dev/sda1: LABEL="STORAGE" UUID="70F1E34232C78194" TYPE="ext4"

Copy that UUID. Also note that the full path to this device is /dev/sda1. And finally, I am assuming that you have formatted your drive as ext4, which you mention in your question. If you haven't, you will see something different for TYPE, perhaps TYPE="ntfs". This is important later on!
Create a new directory where your device should be mounted. For example, here I am using /media/STORAGE. If this directory doesn't already exist, the device will fail to mount there.

sudo mkdir /media/WHAT_YOU_WANT_TO_NAME_IT

Edit your fstab file: sudo nano /etc/fstab (you may want to make a backup copy of this file first, in case something goes wrong here). See if there is already an entry in this file that starts with either the full device path (/dev/sda1 in my case) or the UUID you found in the last step (UUID="70F1E34232C78194" in my case). If so, then perhaps this entry isn't formatted properly. If not, then add the following line to the end of this file (using your own UUID and mountpoint, of course):

UUID=70F1E34232C78194 /media/STORAGE ext4 rw,noexec,nosuid,nodev,uhelper=udisks2 0 0

Remember back in step 2 I mentioned the device type being ext4? Notice that the type in the above line is ext4. If your drive was formatted as something else, like ext3, ntfs, etc., then you will need to use the correct type for your device in fstab! See the documentation for details.
Save that file and reboot. The drive should now auto-mount at startup.
If for some reason your machine fails to boot afterwards, there is likely an issue with the content you added to /etc/fstab. This is easily fixable by rolling back the change you made to this file earlier.

See also the fstab format documentation and the relevant man pages for these commands.


The netmask determines the portion of the "network" IP that defines the subnet.
Skip down past this whole part about IP addresses as HEX and binary if you already understand those things. Otherwise, start here:
Let's only consider IPv4 addresses to simplify the explanation. IP addresses are really decimal numbers. For example, when I ping (or dig) google.com, I see that the IP address resolves to 172.217.8.78 for me.
If I ping that address:
ping 172.217.8.78

I get this response, just as expected:
PING 2899904590 (172.217.8.78) 56(84) bytes of data.

Did you notice the "2899904590" at the beginning of the response? Keep that number in mind as we continue...
Convert each of the octets of the Google IP address to HEX. The equivalent of the decimal value, 172, is the HEX value, AC. Next, 217 is D9, 8 is 08, and 78 is 4E. The IP address as expressed in HEX is then ACD90878. If I convert this entire HEX number to decimal, I get 2899904590. That's the same number my ping command returned. Now if I do this:
ping 2899904590

I get the same response:
PING 2899904590 (172.217.8.78) 56(84) bytes of data.

Quick Aside: you can also just ping the HEX value:
ping 0xACD90878

All version 4 IP addresses (IPv4) are just 4 HEX octets. Each HEX digit, 0 through F, is made up of 4 binary bits. An "octet" is 2 HEX digits, 00 through FF, made up of 8 (hence "octet") binary bits.
Now lets look at the netmask in your config file. The first 3 octets are all 255, which is HEX FF, which is binary 11111111. The last octet is 0, which is HEX 00, which is 00000000 binary. The mask defines which bits of the network IP address, 192.168.0.0, constitute the subnet. When the value of any mask bit is 1, then the corresponding network bit is part of the subnet definition. Since the bits of the first three octets of the netmask are all 1's, then the corresponding first 3 octets, 192.168.0, of the network IP are what defines the subnet. So the last octet of the network IP, 0, is not part of the subnet definition and is ignored. It can be set to any number between 0 and 255 but we conventionally set it to 0.
Addresses on this subnet must all begin with 192.168.0 since that is the part of the network IP that is masked. So IPs that are part of this subnet can range from 192.168.0.1 to 192.168.0.254 (0 and 255 are always reserved in the last octet)
A logical AND function is defined like this: binary 1 AND binary 1 = binary 1. Binary 1 AND binary 0 = binary 0. Binary 0 AND binary 1 = binary 0. Binary 0 AND binary 0 = binary 0 (so anything AND'ed with 0 is 0).
broadcast is the range of IPs that a broadcast message may be sent to. A broadcast message is a message sent to ALL IPs on a subnet, rather than to a specific IP. In this case, the available IPs must be on the subnet (192.168.0), and may be any binary number that is "AND'ed" with the last octet of the broadcase IP (255).  Since 255 is 11111111 in binary, AND'ing each of those binary bits with each binary bit of any IP quadrant with a value from 00000000 to 11111111 (0 to 255) gives you back the value of the original IP quadrant. So the broadcast range is from 192.168.0.1 to 192.168.0.254.
Putting it all together:
If an IP address AND'ed with the netmask = the network value AND'ed with the netmask, then the IP address is on the subnet. In this case:
192.168.0.99 (address) AND 255.255.255.0 (netmask) = 192.168.0.0

and
192.168.0.0 (network) AND 255.255.255.0 (netmask) = 192.168.0.0

so 192.168.0.99 is on the subnet - I can sent an IP packet to that address directly.
Conversely:
192.168.88.99 (address) AND 255.255.255.0 (netmask) = 192.168.88.0

and
192.168.0.0 (network) AND 255.255.255.0 (netmask) = 192.168.0.0

The 2 values are different which means that 192.168.88.99 is not on my subnet - I have to sent to that IP via the gateway.


try this...

sudo apt-get remove nautilus-dropbox


Xbox One controller not working on Ubuntu kernel 4.3.3

I am having the same issue with Ubuntu 14.04 and kernal 4.2, but ran across this post:

  Btw, it may be an issue with the newer Xbox One controller model not in the upstream 4.2 and 4.3 kernels: https://github.com/ValveSoftware/steamos_kernel/commit/45a23472199e21c710fc3bc5e6f0246ebcfb6d76

  Support is in the SteamOS kernel though and that PPA I mentioned.

That states the Xbox one controller support has not been carried upstream past 4.1 (so 4.2 and 4.3 would be non-functional).

Hope it helps!


Gparted cannot increase or decrease the size when resizing a partition

Login using the live USB and then try to resize it using gparted. Your partition(/dev/sda1) needs to be unmounted before they can be resized from gparted.


Why is there no simple method for using animated GIFs as a background?

Animated GIF has much worse compression-to-quality ratio than video file. Using animated GIF where a video could be used instead is discouraged. With the onset of HTML5 and video support in Web, animated GIFS should be forgotten totally.


Using pip3 with sudo permission problem in Ubuntu 16.04

First remove your local pip:

/home/benyamin/.local/bin/pip3 uninstall pip

Install it using apt:

sudo apt install python3-pip

or for "python2":

sudo apt install python-pip

then run:

sudo pip3 install zmq

you can also update pip using:

sudo pip3 install pip --upgrade

Alternative solution is to creat an alias:

alias pip3='sudo /home/benyamin/.local/bin/pip3'


You don't mention if you want to keep them from viewing other files, so this may work for you.

Sudo allows you to define an entry in the sudoers file that will allow a specific non-privileged user to issue a specific command with with specific arguments at elevated privilege.

From the sample suoders

# joe may su only to operator
joe     ALL = /usr/bin/su operator

It seems something like this would serve you;

joe     ALL = /bin/vi /etc/network/interfaces

or, even better

joe     ALL = /bin/vi /etc/network/interfaces.d/eth0.cfg


Keyboard shortcut equivalent to right-clicking

Shift+F10 worked in my case. I guess the need of Fn depends on the keyboard you are using.

P.S. I used this combination on a file in Nautilus (Ubuntu 14.04 LTS).


The numbers you have pointed out are referred to as exit status value of a process. If a process terminates properly then the exit status will always be 0, if it does not terminate properly then the exit status will be some number other than 0.

You can found the exit status of the last executed command by running the following in the terminal:

echo $?

Here is an example:

$ lsb_release -sc
trusty
$ echo $?
0

The execution was a success indicated by the value 0.

$ lsb_releasedd
lsb_releasedd: command not found
$ echo $?
127

The command was not found hence unsuccessful indicated by the value 127.


Dual display setup - only one displayed after logon

With the proprietary Nvidia driver installed, you should use Nvidia Settings, to setup dual monitors. Look for it in the menu (or just search for 'nvidia'), it should have been installed along with the driver.


OpenVPN routes my web traffic, but not outbound SSH traffic?

I just didn't want to leave SSH exposed to the Internet especially if I had a nice and secure VPN solution in place. any other thoughts on that by chance?

Two choices - change where ssh listens, or firewall:

Change how sshd listens

Yes. Set ssh not to listen on the public address, but only on the VPN address.

If you run sudo editor /etc/ssh/sshd_config you'll see two lines defining this:

# Use these options to restrict which interfaces/protocols sshd will bind to
#ListenAddress ::
#ListenAddress 0.0.0.0

They are commented out, and the default is to listen to all interfaces. To restrict it, simply add a line like so:

ListenAddress 10.1.2.3

The IP should be the IP defined for your VPN interface. Restart sshd with sudo systemctl restart sshd

Firewall

Add a firewall rule that drops ssh on your public interface:

sudo ufw deny in on eno0 to any port 22 proto tcp

This will drop ssh on interface eno0

In either case you will not be able to ssh to the public IP anymore, but you'll have to use the one defined for the VPN interface.

The reason you see this behavior is that the VPN clients needs to talk to the VPN server. It therefor adds a route against that single host via your networks gateway, before it replaces the route. SSH will, of course, use the same route.

Note that I would not do this at all. If VPN stops working, you'll be locked out of ssh access. Further, ssh is made to be secure. It's supposed to be used over the public internet. If you set it up with key based authentication, and disallow password authentication, it's basically as good authentication as a VPN solution.


Password asterisk feedback mysteriously enabled

Check into /etc/sudoers and /etc/sudoers.tmp and /etc/sudoers.d.

Make sure the line

Defaults        pwfeedback

is deleted.

If it is along like this

Defaults        env_reset,pwfeedback

change it into

Defaults        env_reset


This sounds like an issue with the asus acpi kernel module, try running the latest version from ACPI for Asus Laptops and see if that fixes the issue. Additionally take a look in /etc/acpi/ folder and see if you have any asus specific scripts and settings there yet. Does xev show only the normal letters that were being repeated, or also the XF86 keyevents?


Lubuntu 13.04 minimal auto-login deosn't work

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

sudo su
nano /etc/lightdm/lightdm.conf or nano /etc/lxdm/lightdm.conf

Make sure that the following two lines are in there, save the file and exit, reboot to test.

autologin-user=USERNAME
autologin-user-timeout=0


Windows 7 will replace boot menu without entry for Ubuntu. To make ubuntu entry in boot menu, you can use EasyBCD which can be downloaded from here.


I solved it by moving Title style into Paragraph 1, Paragraph 1 into Paragraph 2, and so on. Those are enlisted in the TOC within the pdf.


Is there any groups for software development in ubuntu?

Welcome to AskUbuntu. The best place to start is the UbuntuForums; register there and share your ideas at the Development & Programming section.

You are not alone. Enjoy Ubuntu!


How can I get the music from my iPhone 3G to my hard drive using Banshee?

I had a bit of a hard time with this at first.

First try just right clicking on your iPhone in Banshee and selecting "Import to Library" that should theoretically import everything.

If not, install GTK-Pod from the Ubuntu Software Center, it works great for pulling music off of iPods / iPhones and organizes them with proper file titles.

Once you've loaded the iPhone and selected all the music that you want copied to your hard drive, direct it to the location of your Banshee music library. This will put all of your music where you want it and make sure that future sync's don't remove your currently loaded music.


How to check battery status with the Ubuntu SDK?

You can do this using QtSystemInfo which is in the qtdeclarative5-systeminfo-plugin  package.

There is a more complete  demo in the upstream git repository that shows how you can check various battery properties in pure QML/JavaScript. Here's a quick example:

import QtQuick 2.0
import QtSystemInfo 5.0
import Ubuntu.Components 0.1

MainView {
    id: root
    width: units.gu(50)
    height: units.gu(75)

    Page {
        id: home
        visible: true
        title: "Battery Info"

        BatteryInfo {
            id: batinfo
            property real percentage: 0

            monitorRemainingCapacity: true
            monitorChargingState: true

            onRemainingCapacityChanged: {
                var battery = 0
                batinfo.percentage = (100/batinfo.maximumCapacity(battery)*batinfo.remainingCapacity(battery)).toFixed(1)
                level.text = percentage + "%"
            }
        }

        UbuntuShape {
            id: image
            anchors.bottom: level.top
            anchors.horizontalCenter: level.horizontalCenter
            anchors.margins: units.gu(2)
            image: Image {
                // here you would obviously want differet icons based on the percentage, but I'm lazy
                source: Qt.resolvedUrl("/usr/share/icons/ubuntu-mobile/status/scalable/battery_full.svg")
            }
        }

        Label {
            id: level
            anchors.centerIn: parent
            fontSize: "x-large"
        }
    }
}


How do I remove Bluetooth devices from my Ubuntu phone

Had the same problem and solved it by using terminal commands.

Start bluetoothctl
Then type remove xx:xx:xx:xx (replacing the xx stuff with the appropriate device address)


snap list doesn't match snap related loop mounts

It appears that this isn't really a problem to be solved as the number of versions to retain are adjustable and can't be less than 2 which is what I appear to have. This makes a certain amount of sense so that if you have trouble with the latest snap you can always run a previous version.


Open Gimp, click on Windows --> Dockable Dialogs --> Templates

Once the new window opens you can either create or edit a template.


The language of many buttons for kde applications (e.g. Konsole, kate, gimp) appear to be in Arabic

Follow as below:

System Settings → Locale
→ Country tab: select country then apply
→ Languages tab: add language and sort them then apply

Reference:

System Settings/Locale/How To Install and Apply Interface Translation


cannot add sudo add-apt-repository ppa:kubuntu-ppa/backports in ubuntu 16.04

I had a similary problem.
It's worked well with my case.
Try this!
sudo add-apt-repository throws an exception


simulate hdmi/displayport "plug"/"unplug" event via command line

I had this problem as well.  I resigned myself to unplugging and replugging frequently, and decided that I should get an adapter cable in order to avoid wearing out the displayport connection on my laptop.  I picked up a USB-C-to-HDMI adapter and connected to my monitor that way.  After all, cables and adapters are a lot cheaper than either laptops or monitors.
But it works just fine with the USB-C-to-HDMI adapter.  I no longer have to unplug and replug my monitor.  Solved by accident!  ;-)


How to run pidgin and login automatically on startup

The easiest way is probably to add "pidgin" to the list of startup applications in ubuntu.

See the following:

How do I start applications automatically on login?


Unable to Run Midnight Commander (MC) on 14.04

Errors with a message like this:
error while loading shared libraries: libXXX.so.1: cannot open shared object file: No such file or directory

(for some value of XXX; in your case, replace XXX by ssh2) are not uncommon. They can often be solved by creating a symbolic link. First, find out in what directory the shared file is expected to be found. You can do that by running find -name libXXX.so. Most often there will be a file libXXX.so found in some subdirectory of /usr/lib, where this mechanism is widely used.
Let's say there is a file /usr/lib/YYY/libXXX.so. Now navigate to that directory:
cd /usr/lib/YYY
and create the link:
sudo ln -s libXXX.so libXXX.so.1
The link name libXXX.so.1 is taken from the error message. It is the name of the file that was not found. Now whenever the system looks for libXXX.so.1 it will use libXXX.so.


How to manage udisk with the udisk utilities?

To use the udisks2 utility commands, type

udisksctl

And you see the options:

$ udisksctl
Usage:
  udisksctl COMMAND

Commands:
  help            Shows this information
  info            Shows information about an object
  dump            Shows information about all objects
  status          Shows high-level status
  monitor         Monitor changes to objects
  mount           Mount a filesystem
  unmount         Unmount a filesystem
  unlock          Unlock an encrypted device
  lock            Lock an encrypted device
  loop-setup      Set-up a loop device
  loop-delete     Delete a loop device
  power-off       Safely power off a drive
  smart-simulate  Set SMART data for a drive

Use "udisksctl COMMAND --help" to get help on each command.

Example

You wanted to unmount a flash drive with udisksctl  you will need to get the name of the mounted partition. You can find out with:

lsblk

example output:

NAME         MAJ:MIN RM  SIZE RO TYPE MOUNTPOINT
sda            8:0    1 15.2G  0 disk
└─sda1         8:1    1 15.2G  0 part /media/zanna/4C45-110F

so I can unmount this device:

udisksctl unmount -b /dev/sda1

This is reversible with udisksctl mount -b /dev/sda1


Fairly straightforward and courtesy of ubuntu.com:

Download Ubuntu Desktop
Open OS X Terminal
Convert the .iso file to .img using the convert option of hdiutil e.g.,

hdiutil convert -format UDRW -o ~/path/to/target.img ~/path/to/ubuntu.iso

Note: OS X tends to put the .dmg ending on the output file automatically.
Run diskutil list to get the current list of devices.
Insert your flash media
Run diskutil list again and determine the device node assigned to your flash media, like /dev/disk2
Run diskutil unmountDisk /dev/diskN replacing N with the disk number from the last command. (In the previous example, N would be 2)
Execute sudo dd if=/path/to/downloaded.img of=/dev/rdiskN bs=1m replacing /path/to/downloaded.img with the path where the image file is located, e.g., ./ubuntu.img or ./ubuntu.dmg).

Note:

Using /dev/rdisk instead of /dev/disk may be faster
If you see the error dd: Invalid number '1m', you are using GNU dd. Use the same command but replace bs=1m with bs=1M
If you see the error dd: /dev/diskN: Resource busy, make sure the disk is not in use. Start the Disk Utility app and unmount (don't eject) the drive

Run diskutil eject /dev/diskN and remove your flash media when the command completes.
Restart your Mac and press alt / option key while the Mac is restarting to choose the USB stick.


How to reduce the tearing while watching videos?

Tearing in videos is caused by the video drawing not being synchronised with the refresh-rate of the display.  This results in displaying the top part of one frame and the bottom half on the previous frame at the same time, which is particularly noticeable on sections of video with horizontal panning.

The open-source drivers, with DRI2, should be able to synchronise their drawing with the screen refresh properly, even when running with desktop effects enabled¹.  The proprietary nVidia and ATi drivers may not do this properly.

Finally, disabling desktop effects should eliminate the tearing regardless of what driver you're using - all (sensible) drivers can sync-to-vblank for video in this case.

¹: Technically, the problem is having a compositing manager running, because that means that all windows are first drawn off-screen and then composited to the display by the compositing manager.  Since the video is first “drawn” offscreen, it's not possible to synchronise this to the screen refresh.


That was fun ! I fixed the issue and thought I would share for any body interested.

The ownership of my ~/.ICEauthority file was incorrect. That file should be owned by me but it was in fact owned by root.

Turns out that I had ran the startx command as root, which changed the  ownership of the file. ( I really didn't think I had, but a quick search through my history revealed the truth).

Apparently it is also possible for root to claim ownership of the ~/.Xauthority file as well, but in my case it didn't.

To change ownership of the file back to me, I used chown (as root).

sudo chown myusername.myusername .ICEauthority

So, in short don't run startx as root. If you do, and end up stuck in a login loop, then check the ownership of ~/.ICEauthority and ~/.Xauthority.


Natty should have direct support for installing printer drivers from the Epson site.

Your NX125 printer is a supported printer.

If either you are not using Natty, or Natty doesn't for whatever reason automatically recognise your printer when you plug-it in, then go to the above website and search for your model number "NX125"

You'll see various download options - download either the i386.deb file or the amd64,deb file together with the manual.  The choice of the deb depends on whether you are using 32bit desktop or 64bit desktop respectively.

The instructions for installing the deb files are in the manual.

In summary

cd Downloads
sudo dpkg -i <debfilename>

The SimpleScan utiility should again see your scanner part of the printer without any issues - if it doesnt though, it might need some extra drivers - the drivers are in the similar area of the website here


Ubuntu 18.10 installation fails: AMD-Vi Completion-Wait loop timed out [Ryzen 3 2200G + Radeon RX580]

Upgrade to Ubuntu 19.04 kernel 5.0.0-8 and BIOS update solved it. I thought ASUS Prime B450-M v.0409 08/04/2018 was the latest. This time I used EzUtility live internet update from the BIOS itself and I got upgraded to v.0604 12/07/2018. Although I have no idea if the kernel 5.0 is necessary for this setup to work.

I now have a fully working Ubuntu 4k 60Hz display.

Previously, my workaround was to connect the HDMI cable rather than the DisplayPort. The system would boot, but I was stuck at 30Hz if 4k (this hurts real bad), or stuck FHD if I wanted 60Hz. Fortunately this was not my primary setup.


Hadoop 2.6 start-dfs.sh errors on Centos 6.7

This is not the solution to your problem but it will point to something which can really help you out. At least it worked in my case without any issues.
Few months back I wrote a blog about installing single node hadoop cluster in Ubuntu. You can refer to this here

I made use of these two links for Hadoop1(MRv1)
link1
link2

And this one for Hadoop2(MRv2)

link3

Both the times  I have successful in terms of running them on my Ubuntu destkop machines. You can refer these links for this purpose.


Why does Ubuntu 14.04 keep shutting down when playing video?

Try checking the Brightness & Lock in the System Settings, it sounds like it is set to 15 minutes, if there is no key or mouse/touch pad movement detected after 15 minutes the screen will go into "sleep mode" usually blanking the display. You can set it a suitable time-out so it doesn't occur too early or turn it off. It applies what ever program is running so it will happen if you are watching a film or video longer than the time-out time.


Power Off button is gone on Ubuntu 20.04 LTS

You may use this extension which brings out the submenu and rearrange the order.

 Bring Out Sub Menu Extension

If you need installation Instructions..

Download the Extension from the above link like this.

Go to the downloaded location/Directory/path.
Right-click in the empty place and click "Open in Terminal"
run the command

gnome-extensions install BringOutSubmenuOfPowerOffLogoutButtonpratap.fastmail.fm.v5.shell-extension.zip

(Note that tab completion is available, you dont need to type entire file name, Just type "BringOut" and hit tab)
Refresh the gnome-shell with "Alt+F2 r" Enter method.
run the command

gnome-extensions enable BringOutSubmenuOfPowerOffLogoutButton@pratap.fastmail.fm

Refresh the gnome-shell with "Alt+F2 r" Enter method.

Now you will see the submenu out of it and merged with system menu.


In the mean time I got some form of lock capability back by just purging gnome-screensaver reinstalling xscreensaver and adding a custom keyboard shortcut of Ctrl+Alt+L (after disabling the existing one in system) to launch the xscreensaver-command --lock command and lock my screen with that. I still don't have a Lock Screen in the drop down nor can I work out how I got rid of the original lock screen for this user.


You have two possibilities here:

install the version released with your Ubuntu. For example, 14.04 ships with TeXLive 2013 (not 2014). This is the easiest way; just type

sudo apt-get texlive-full

and be done.
You can install directly the newest version of TeXLive. Follow for example the instruction in https://tex.stackexchange.com/questions/1092/how-to-install-vanilla-texlive-on-debian-or-ubuntu/95373#95373. Be warned that installing software outside the package management can led to some complex situation; in that post you have some hint.
There are instruction also in Upgrade from Tex Live from 2013 to 2014 on Ubuntu 14.04

The option #1 is the recommended one, unless you really need some cutting edge version of the packages (I am for example a quite advanced LaTeX user, and rarely do).

That said, it seems that the only problem you have is that the installation path is not in your PATH. It is explained in "finishing the installation" in the first linked post, or in point #5 of the second one(1). If you find that part too complex, I really advise to follow option #1.

(1) they are different methods/philosophies, but they have the same final effect.


Fixing links on sidebar of file explorer after changing username

(edited in 2020 for current versions of Ubuntu)
Edit the file /home/dkumar/.config/gtk-3.0/bookmarks manually and correct the wrong paths.
Then, restart nautilus: nautilus -q.


Grub error, can't boot without USB drive inserted

Normally this process - installing Ubuntu on top of Windows works perfectly. However, the boot disk fixer often - in my experience- messes it up. Furthermore Windows uses UEFI not MBR disks now, and so should you. Assuming Windows boots properly, you may still be able to get the MBR disk to work, but its going to be  a little painful. I would delete everything you did with the Ubuntu install and get back to a stable Windows. If you can get Windows off the second disk, thats going to simplify a bit. Then I would carefully install Ubuntu on the second disk, and let the installer take care of putting Grub in the boot sector of the first disk.

The second disk can be wiped and installed UEFI by the Ubuntu installer.

Confused already? The best tool to manage your disks is gparted, which can do everything for disk structure, but needs Linux. So you need a bootable Linux stick, with gparted which runs as an X application. Gparted will show you disk structure and allow you to delete the new partitions, and expand any you wish to.

Warning Grub is notoriously finicky, so try to use the automatic tools once the disks are cleaned up and Windows is backed up. Oh yeah backing up Windows is also notoriously difficult, but there are two free USB-stick tools that absolutely will do a disk image backup-  ActiveBoot for Windows ( the linux tools in it are crap) and clonezilla, which can do everything but make you breakfast. I've used both these tools for our 2000 strong fleet of windows devices.

Here's hoping it all. just. works. but if you take a disk image backup first, you'll be able to get back to point zero if things aren't what you want, and try again. I strongly advise this disk-image practice for taking the fear and frustration out of a messy job.


How to convert flv file(s) to mp3 from PCManFM's (Open with) context menu?

Initially I was not thinking about a GUI. But, this is a way of doing it too. It will not convert directly, but will add selected files to Soundconverter list. (The main advantage is that supplementary settings are at hand.)

First did this procedure after selecting audio files, and then again after selecting video files. Each time, after selecting the files, context menu/"open with"/"open with"/custom command line. Each time browsed for soundconverter in usr/bin. Then edited the two resulting ".desktop" files in ~/.local/share/applications to make them look like this:

[Desktop Entry]
Type=Application
Name=Send audio to Soundconverter
Exec=/usr/bin/soundconverter %F
Categories=Other;
NoDisplay=true
MimeType=audio
Icon=soundconverter

and

[Desktop Entry]
Type=Application
Name=Send video to Soundconverter
Exec=/usr/bin/soundconverter %F
Categories=Other;
NoDisplay=true
MimeType=video
Icon=soundconverter

One entry will appear for video files and the other for audio.


There is a netbeans plugin that works around this problem: http://plugins.netbeans.org/plugin/40321/unity-launcher


found answer on android.stackexchange.com by user @Rat2000 on AskUbuntu.com:

  Open a terminal in Ubuntu(Ctrl+Alt+T) and type this commands:

sudo add-apt-repository ppa:langdalepl/gvfs-mtp
sudo apt-get update

  Then, launch Software Updater (previously known as Update Manager) and
  install the available updates. After you update everything restart pc.

  if you want to revert back before making any changes:

sudo ppa-purge ppa:langdalepl/gvfs-mtp


Install Zotac NVIDIA Linux x86_64 drivers in Ubuntu 14.10

Here's what I did to finish the installation:

Hit Ctrl+Alt+F1 to get to a TTY.
Login as yourself (or whatever user).
Run sudo init 3

Now kill the lightdm service:

sudo service lightdm stop

Check it with:

sudo service lightdm status

Start installing the driver:

cd ~/Downloads
chmod +x NVIDIA-Linux-x86_64-343.13.run ## or the appropriate version of the driver
sudo sh NVIDIA-Linux-x86_64-343.13.run

Follow the prompts to uninstall Nouveau driver when it complains!

You will have to reboot, then restart this process from the top. Eventually you will get through the whole installation without any errors except the pre-install script has failed error, which is harmless.


As with other applications (text editors, web browsers, web servers ) I would assume you can install as many as you wish. Each (web) interface would need to be configured to use a unique port or URL.

I Just as you would not edit the same file with two different editors at the same time, I would not configure the same service with both tools at the same time. You might manage apache with one and iptables with another. If you try to, for example, manage apache with both the may or may not conflict. I could potentially see virtual hosts and/or virtualization becoming confusing if the two control panels used different configuration methods.


How to mount FTP resources with fstab when connection is available?

As your goal is "to syncronize a local folder with the ftp folder with a crontab rsync", I suggest you to write a small script that mounts the FTP, rsync, unmount FTP. Then run this script from crontab.

It should go something like this:

#!/bin/bash
curlftpfs user:pwd@myhost:port/folder/ /mnt/mymountfolder
#might need sleep 1 here
rsync -a /mnt/mymountfolder /local/folder
fusermount -uz /mnt/mymountfolder

Make sure you chmod +x on the script.

crontab -e

#m h d M wd
0 * * * * /usr/local/bin/backup-script

Also, if you really want the FTP folder mounted all the time, you could make a script that mounts/unmounts your drive. If you also add it to fstab, you could manually mount the drive.

fstab:

curlftpfs#user:pwd@myhost:port/folder/ /mnt/mymountfolder fuse noauto,user,uid=1000,gid=1000,umask=0022 0 0

network-mount.sh:

#!/bin/bash
folder=/media/ftp
# check if host is alive
ping=`/usr/bin/fping -q host.dyn.org`
if [ $? == 0 ]; then
  # check if folder is mounted
  mountpoint $folder > /dev/null
  if [ $? != 0 ]
    # mount, timeout in case something goes wrong
    then timeout 10s mount $folder
  fi
  else
  mountpoint $folder > /dev/null
  if [ $? = 0 ]
    #unmount lazy (network down)
    then umount -l $folder
  fi
fi

Add this to crontab (crontab -e):

* * * * * /usr/local/bin/network-mount.sh

Also watch out for your rsync not completing before the next is run. This could be done automatically(check if rsync running), or based upon how much data that need to be in sync(amount of time rsync takes, worst case scenario).

Assuming you don't run rsync for anything else, checking if it's running could be done like this:

pgrep rsync
if [ $? == 0 ]; then
  # rsync running
  exit
else
  # rsync not running
  #do stuff
fi


Software center is not working with proxy

Instead of editing the conf file, try going to System settings in Ubuntu and select Network. Here you can configure the proxy setup for the entire system (see picture below).

Please remember to delete your lines in the conf file first before you do this.


Why can't I run any Android NDK commands?

I found the answer.

I installed ia32-libs, and everything started working. It's bizarre that running an executable of the wrong architecture results in "command not found". I was trying all the wrong things.


yes click at settings of that channel , there you will find the option as hide join/part Messages .


On what date does Ubuntu Server 10.04 reach end of life (EOL)?

I have now found the date on the Ubuntu Releases Site. It is April the 30th 2015.


How to resolve Perl module error while trying to run NGS QC Toolkit?

Execute following commands:

shrujan@ubuntu:~$ cpan

cpan[1] install String::Approx

Then try your NGSQCTool


How to select a directory with the highest version?

Newer versions of the GNU sort utility have an option to sort based on version number: from man sort

   -V, --version-sort
          natural sort of (version) numbers within text

So you could do

find . -maxdepth 1 -type d -name 'program*' | sort -V | tail -1


Can I use Yum

I wouldn't recommend it. You probably could compile it but you wouldn't have any Ubuntu-compatible package repositories for it to handle.

You can convert single RPM files into DEBs with Alien:

sudo apt-get install alien
sudo alien my_package.rpm
sudo dpkg -i my_package.deb

Note: It might change the filename a little more than just the extension.

This won't work for everything as packages link to other packages to fulfil dependencies. Obviously Red Hat/Fedora/CentOS use different package names to Ubuntu so you're likely going to run into a whole load of pain.

Chances are if a DEB doesn't exist, you'll be better off just getting the source and compiling it.


Hostapd Failed to update rate sets in kernel module

Even if it shows this message it seems to be working for me...

sudo hostapd thirdParty/hostapd-test.conf
Configuration file: thirdParty/hostapd-test.conf
Failed to update rate sets in kernel module
Using interface wlan0 with hwaddr 00:25:d3:64:49:35 and ssid 'test'
wlan0: STA f8:0c:f3:5e:a1:14 IEEE 802.11: authenticated
wlan0: STA f8:0c:f3:5e:a1:14 IEEE 802.11: associated (aid 1)
wlan0: AP-STA-CONNECTED f8:0c:f3:5e:a1:14
wlan0: STA f8:0c:f3:5e:a1:14 RADIUS: starting accounting session 529118DC-00000000

and worked for me with this tuto: Here


Direct driver downloads helped me with this issue. After getting the right driver's, installed them and did a apt-get update/upgrade rebooted the system and was good to go no issues.

Here is the web site for intel driver's.

https://www.intel.com/content/www/us/en/support/articles/000005520/graphics-drivers.html


How can I change the default folder location that nautilus opens?

Just to be sure, you mean this icon here?

If yes, edit the file /usr/share/applications/nautilus-home.desktop and alter the line (#4):

Exec=nautilus %U

to

Exec=nautilus /your/path/

and save the file. But notice, it will be system wide.


Lenovo Z50-70 realtek dirver RTL7823BE wi-fi does not connect

I was able to fix this issue after lot of research and facing kernel panic issues. Here is how I fixed it.

Note This can be used for installing any realtek wireless driver

lspci | grep Network

Note: If in this process you get kernel panic issue. DONT PANIC Solution for it is at the end. You dont need to re-install Ubuntu.

Upgrade linux kernel
Install following

sudo apt-get install git build-essential linux-headers-$(uname -r) linux-headers-generic

git clone https://github.com/lwfinger/rtlwifi_new
cd rtlwifi_new
make clean
make

sudo make install

sudo depmod -a

sudo modprobe rtl8723be

echo "options rtl8723be fwlps=0" | sudo tee /etc/modprobe.d/rtl8723be.conf

Reboot

Sources:

https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1320070/comments/29
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1320070/comments/30

Kernel panic
If you run into kernel panic issue where the system does not reboot

Reboot into recovery mode
Log in with root
Mount file system in read write mode

mount -o rw,remount /

Add the driver that you just added to the blacklist

vim /etc/modprobe/blacklist.conf

Add line blacklist rtl8723be
Reboot


Edit Gnome-Terminal profile from command line on 18.04

In fact dconf-editor does show the keys and values of each profile, in the subdirectories of /org/gnome/terminal/legacy/profiles:/. Their names are UUID's, with a colon prefix. But the default profile only shows up if it's been modified.

If you still want to use the command line, dconf seems like a better choice, since as far as I can tell, gsettings doesn't have access to the individual profile settings, only the default settings for new profiles (not the settings of the default profile). Though on the other hand, dconf doesn't seem to have access to the default settings.

dconf

Get profiles:

dconf list /org/gnome/terminal/legacy/profiles:/

Get profiles with their names (from Sergiy's answer here):

dconf dump /org/gnome/terminal/legacy/profiles:/ | awk '/\[:/||/visible-name=/'

List all settings:

dconf dump /org/gnome/terminal/legacy/profiles:/

gsettings

Get profiles:

gsettings get org.gnome.Terminal.Legacy.ProfileList list

Get default profile:

gsettings get org.gnome.Terminal.Legacy.ProfileList default

Get settings (I think these are the default settings for new profiles):

gsettings list-recursively org.gnome.Terminal.Legacy.Profile:/


virsh list is empty when run from user crontab

Better to test grep directly.

d=${1:?Missing name argument}

if ! virsh -c qemu:///system list | \
         grep -Eq "\ +${d}\ +running$"
then
    log "Start VM: $1"
    virsh start "$1"
else
    log "VM already running: $1"
fi


You need the libdvdcss package which on Xenial can be installed with the following two commands:

sudo apt-get install libdvd-pkg
sudo dpkg-reconfigure libdvd-pkg

This should be enough to kick start your copy of vlc...


Is it possible to set Dash to show a black background instead of generated from the wallpaper?

So far I have not found an option for this. You are welcome to report a bug on launchpad (just run ubuntu-bug unity) or bring this up on the Ayatana mailing list.


How can i use apt-get install without interrupting? While assigning with large package lists

--ignore-missing will do the trick for you.


Keep /home on HDD and move other files into an SSD

There are several ways to achieve what you want but it’s always best to backup your data first.

Since you only have 80GB in your home directory I would be inclined to do the following:

Shrink your system partition (including home) so it’s smaller than your SSD.
Clone the HDD to the SSD and get it booting
Delete the HDD partition and make a new partition on the HDD
Copy the home directories to the new partition
Sort out FSTAB so the new home is mounted and delete the old home

Ask or search here if you don’t know how to complete these steps


As per this answer: How to set default Java version?

Try providing the explicit path along with update-alternatives --install first, and then run update-alternatives to make your selection:

sudo update-alternatives --install "/usr/bin/java" "java" "/usr/lib/jvm/java-7-oracle/jre/bin/java" 1

sudo update-alternatives --config java

sudo update-alternatives --install "/usr/bin/javac" "javac" "/usr/lib/jvm/java-7-oracle/bin/javac" 1

sudo update-alternatives --config javac


Help on Installing Ubuntu on a Late 2008 MacBook with No Operating System and a Broken Disk Drive?

You might want to consider partitioning the drive from the install usb, and making it a dual boot system with one partition for OS X and another for ubuntu. You can use disk editor to create a partition (Mac OS X Extended Journaled) and install OS X onto there.

You can then boot from a live usb created on another computer (use rEFInd if you cant boot using the option key) and format and install onto the other partition (ext4).

Hopefully this vague answer will set you on the right track. Your welcome in advance!


How to show comma separation in numbers on Ubuntu's calculator?

ubuntu 14.04 / calculator 3.10.3 && calculator 3.18.3 - ubuntu 16.04
The solution took me a few minutes too long to find given the simplicity and obviousness of it so here it is in case anybody else overlooks it like I did and will again next time I reinstall Ubuntu.

(calculator 3.10.3 - ubuntu 14.04) click Edit
(calculator 3.18.3 - ubuntu 16.04) click Calculator

click Preferences

check Show thousands separators

click Close
no reboot needed

Bonus Tip - The menus for Ubuntu software programs are not intuitive, especially when the app is not full screen (like the calculator app). To reveal the menu, hover your cursor at the top of the screen and it will show itself. (thanks to Raymond)


How can I install a Canon printer or scanner driver?

PPA
I found the solution!
sudo add-apt-repository ppa:michael-gruz/canon-trunk
sudo apt-get update

for older releases use ppa:michael-gruz/canon.
Finally,
sudo apt-get install [model]
Printer
Where [model] would be for:
Canon Pixma iP Series Ubuntu driver
Canon iP100 Ubuntu Driver -  cnijfilter-ip100series
Canon iP1800 Ubuntu Driver - cnijfilter-ip1800series
Canon iP1000 Ubuntu Driver - cnijfilter-pixmaip1000series
Canon iP1500 Ubuntu Driver - cnijfilter-pixmaip1500series
Canon iP1900 Ubuntu Driver - cnijfilter-ip1900series
Canon iP 2200 Ubuntu Driver - cnijfilter-ip2200series
Canon iP2500 Ubuntu Driver - cnijfilter-ip2500series
Canon iP2600 Ubuntu Driver - cnijfilter-ip2600series
Canon iP2700 Ubuntu Driver - cnijfilter-ip2700series
Canon iP3300 Ubuntu Driver - cnijfilter-ip3300series
Canon iP3500 Ubuntu Driver - cnijfilter-ip3500series
Canon iP3600 Ubuntu Driver - cnijfilter-ip3600series
Canon iP4200 Ubuntu Driver - cnijfilter-ip4200series
Canon iP4500 Ubuntu Driver - cnijfilter-ip4500series
Canon iP4700 Ubuntu Driver - cnijfilter-ip4700series
Canon iP4800 Ubuntu Driver - cnijfilter-ip4800series
Canon iP5200 Ubuntu Driver - cnijfilter-ip5200series
Canon iP6600 Ubuntu Driver - cnijfilter-ip6600series
Canon iP7500 Ubuntu Driver - cnijfilter-ip7500series

Canon Pixma MG Series Ubuntu Driver
Canon MG5100 Ubuntu Driver - cnijfilter-mg5100series
Canon MG5200 Ubuntu Driver - cnijfilter-mg5200series
Canon MG6100 Ubuntu Driver - cnijfilter-mg6100series
Canon MG8100 Ubuntu Driver - cnijfilter-mg8100series

Canon PIXMA MP Series Ubuntu Driver
Canon MP140 Ubuntu Driver - cnijfilter-mp140series
Canon MP160 Ubuntu Driver - cnijfilter-mp160series
Canon MP190 Ubuntu Driver - cnijfilter-mp190series
Canon MP210 Ubuntu Driver - cnijfilter-mp210series
Canon MP240 Ubuntu Driver - cnijfilter-mp240series
Canon MP490 Ubuntu Driver - cnijfilter-mp490series
Canon MP500 Ubuntu Driver - cnijfilter-mp500series
Canon MP510 Ubuntu Driver - cnijfilter-mp510series
Canon MP520 Ubuntu Driver - cnijfilter-mp520series
Canon MP540 Ubuntu Driver - cnijfilter-mp540series
Canon MP550 Ubuntu Driver - cnijfilter-mp550series
Canon MP560 Ubuntu Driver - cnijfilter-mp560series
Canon MP600 Ubuntu Driver - cnijfilter-mp600series
Canon MP610 Ubuntu Driver - cnijfilter-mp610series
Canon MP630 Ubuntu Driver - cnijfilter-mp630series
Canon MP640 Ubuntu Driver - cnijfilter-mp640series

Canon MX Series Ubuntu Driver
Canon MX320 Ubuntu Driver - cnijfilter-mx320series
Canon MX330 Ubuntu Driver - cnijfilter-mx330series
Canon MX350 Ubuntu Driver - cnijfilter-mx350series
Canon MX360 Ubuntu Driver - cnijfilter-mx360series
Canon MX410 Ubuntu Driver - cnijfilter-mx410series
Canon MX420 Ubuntu Driver - cnijfilter-mx420series
Canon MX860 Ubuntu Driver - cnijfilter-mx860series
Canon MX870 Ubuntu Driver - cnijfilter-mx870series
Canon MX880 Ubuntu Driver - cnijfilter-mx880series

Canon PIXUS Series Ubuntu Driver
Pixus 550 Ubuntu Driver - cnijfilter-pixus5510iseries
Pixus 560 Ubuntu Driver - cnijfilter-pixus560iseries
Pixus 850 Ubuntu Driver - cnijfilter-pixus850iseries
Pixus 860 Ubuntu Driver - cnijfilter-pixus860iseries
Pixus 865 Ubuntu Driver - cnijfilter-pixus865iseries
Pixus 950 Ubuntu Driver - cnijfilter-pixus950iseries
Pixus 990 Ubuntu Driver - cnijfilter-pixus990iseries
Canon Pixus ip3100 Ubuntu Driver - cnijfilter-pixusip3100series
Canon Pixus ip4100 Ubuntu Driver - cnijfilter-pixusip4100series
Canon Pixus ip8600 Ubuntu Driver - cnijfilter-pixusip8600series

Reference: http://www.ubuntubuzz.com/2011/06/download-install-canon-printer-driver.html
Scanner
If you would like to download the scanner application (and driver) install one of these packages (according to your model number):
scangearmp-mg5100series
scangearmp-mg5200series
scangearmp-mg6100series
scangearmp-mg8100series
scangearmp-mp140series
scangearmp-mp160series
scangearmp-mp190series
scangearmp-mp210series
scangearmp-mp240series
scangearmp-mp250series
scangearmp-mp270series
scangearmp-mp280series
scangearmp-mp490series
scangearmp-mp495series
scangearmp-mp510series
scangearmp-mp520series
scangearmp-mp540series
scangearmp-mp550series
scangearmp-mp560series
scangearmp-mp600series
scangearmp-mp610series
scangearmp-mp630series
scangearmp-mp640series
scangearmp-mx320series
scangearmp-mx330series
scangearmp-mx340series
scangearmp-mx350series
scangearmp-mx360series
scangearmp-mx410series
scangearmp-mx420series
scangearmp-mx860series
scangearmp-mx870series
scangearmp-mx880series

Then look for "Scan Gear MP" or run from the terminal:
scangearmp


Auto-Hide of side bar (or Ubuntu dock in 17.10 and later) in Ubuntu desktop can be easily done as following:

Go to System Settings.
Then go to Appearance (Dock in Ubuntu 18.04).
Click on Behavior.
Turn on the Auto Hide Launcher (Auto-hide the Dock in Ubuntu 18.04). By default it is off.


With the bash built-in version of read, you can use the -s option. From help read:

-s      do not echo input coming from a terminal


Another great and tiny program for this is PDF-Shuffler.

  merge or split pdf documents and rotate, crop and rearrange their
  pages using an interactive and intuitive graphical interface

Installation

You can install it from the software center, or through the command-line:

sudo apt-get install pdfshuffler

Screenshot

Rotate a page

open a PDF (click the + button) ;
select the page you want to rotate ;
click the rotate icon ↺ or ↻ (or use the menu) ;

Rotate several pages

If you want to rotate all pages, click on one, then press Ctrl+a to select all.

Or you can select as many as you want individually by holding down Ctrl as you select.


Any idea how to use tail -f in Squid to see logging and processing on localhost?

Squid logs are configured by default in /var/log/squid/access.log. You can change this setting via cache_access_log in /etc/squid/squid.conf (but remember to sudo service squid restart after making the change). You could tail -f that file.

For site-blocking, I recommend using jesred, which is available in the Ubuntu archive already. You can find details on using it here: http://www.linofee.org/~jel/webtools/jesred/

See the redirect_program /usr/lib/squid/jesred example in /etc/squid/squid.conf.


Apache server randomly stops service on Ubuntu 16.04

Try running the

  dmesg

command.

If you see:

[26509757.351826] Out of memory: Kill process 10467 (apache2) score 77 or sacrifice child

You can be sure the OS killed your process due to lack of resources.

I've also seen Apache fail to restart after a log rotation, which is caused by the logrotate command.


In the contacts list:

Click the contact you wish to remove
Right-click the name on the right-hand side (where you would usually left-click to edit the name)
A delete option will appear, click that and the contact will be removed.


Can I safely add secure login to a bootable usb created from a live cd

As far as I know, the LiveCD environment is not meant to be changed so much. Yes you can add files, as in the persistent data storage portion. However, most of the programs and files are kept in a squashfs file system, which does not easily allow any change. I can't remember whether the configuration files and password files would be in the persistent storage or the squashfs system.

The LiveCD environment, although it is faster, doe snot easily allow changes of programs, or even update thereof. When you update a deb file, it is actually ADDED to the persistent storage portion of your disk.

With my experience of the USB-based Linux installations, I would rather have a full installation of Linux on a USB disk, from which I boot, just as if it was an external hard disk over USB. I then have a full access to all the files in an ext4 file system, for example, and I easily can replace any file I want, be it program, DEB module, data or config. It is a bit slower, but better if you plan on using it on a regular basis, not only to deo some boots here and there.

If you want to go ahead with a full installation, you just have to remember that the GRUB must be installed on the right device (/dev/sdb, for example, NOT SDA), and it should be the master boot record of the disk, not the partition. Also I found with experience that not all USB keys are created equal. Some are giving me more headache than others.

Make sure you have a good backup of all data files you have on your computer internal hard disk before proceeding. I overwrote the boot record of my hard disk once, and it was once too many. I learned the lesson.

UPDATE:

Since Linux use swap file partition, you should manually partition the USB key you use, and have no swap partition. Because of its nature, a swap partition will cause too many read/writes on the USB key, which may shorten the lifetime of the key on this part of the storage area, eventually causing problems.


How to download a playlist without the videos

Open the terminal and type:

sudo apt install jq # command-line JSON processor
cd Desktop/
youtube-dl -j --flat-playlist "https://<yourYoutubePlaylist>" | jq -r '.id' | sed 's_^_https://youtu.be/_' > result.txt

Example command:

youtube-dl -j --flat-playlist "https://www.youtube.com/watch?v=iwhuPxJ0dig&list=PLei96ZX_m9sU3dLM2I5LKcqXeqth-GTe6" | jq -r '.id' | sed 's_^_https://youtu.be/_' > result.txt

The results of example command in result.txt are shown below. Unfortunately the -j (--dump-json) option does not return data about the dates that the videos were uploaded, but it can return the titles of the videos. Another nice feature is that the videos don't need to all be in the same playlist. The same command can also return the URLs of all the videos on the same channel or user webpage.

https://youtu.be/iwhuPxJ0dig
https://youtu.be/ArDT5NsROMk

Explanation:

-j, --dump-json
       Simulate, quiet but print JSON information. See the "OUTPUT
       TEMPLATE" for a description of available keys.

--flat-playlist
       Do not extract the videos of a playlist, only list them.

jq is like sed for JSON data – you can use it to slice and filter and map and transform structured data with the same ease that sed, awk, grep and friends let you play with text.


How to uninstall manually installed Nvidia drivers?

Yeap, was going to say what Karasu said. Just to add some information. If the driver you downloaded is called for example NVIDIA-Linux-x86-310.19.run then you would run:
sudo ./NVIDIA-Linux-x86-310.19.run --uninstall

If you want to get the help for your Nvidia driver then do this:
NVIDIA-Linux-x86-310.19.run --help or a more extended version for it:
NVIDIA-Linux-x86-310.19.run -A which shows you the uninstallation option:
--uninstall
  Uninstall the currently installed NVIDIA driver.

There are a couple of other nice options in case you want to use them like:
-a - Accept License
-s - Silent Mode
-q - no questions
-i - Driver information
--update - Check Nvidia site and update to the latest
For cases where you use the CUDA installer, in the documentation for it you can find more options on how to uninstall it, like this excerpt:
To uninstall the CUDA Toolkit, run the uninstallation script provided in the bin directory of the toolkit. By default, it is located in /usr/local/cuda-11.0/bin:
sudo /usr/local/cuda-11.0/bin/cuda-uninstaller
To uninstall the NVIDIA Driver, run nvidia-uninstall:
sudo /usr/bin/nvidia-uninstall
And others that can be seen when you run the --help parameter


Is it possible to get deb packages of older VLC versions?

Some 2.0.x. versions - including 2.0.8: here.

Click here to download v.2.0.8 i386.


Ubuntu 16.10 how to install some Live Wallpapers?

I had no trouble getting it to work with 16.10.

After adding the repository, I had to navigate to System Settings > Software & Updates. Then under the "Other Software" tab you have to edit the livewallpaper repository's settings where it says "distribution". Change it from "yakkety" to "xenial". Only then could I successfully download the packages.

Log out and back in after launching the program to see the live-wallpaper indicator.


Why does my keyboard stop working sometimes in Chrome and Opera?

In Kubuntu, I had this problem due to a recent iBus  update.

By uninstalling the iBus  package the problem stopped. And nothing else bad has arisen.


Sharing between Host and Guest in Virtualbox

The solution although a little bit confusing is this:

Ubuntu Guest with Ubuntu Host

After installing the Guest Ubuntu:

Load the Guest Addition ISO from the Virtualbox Menu

In the guest Ubuntu open a terminal and install some essential files for the Guest Addition to install correctly:

sudo apt-get install dkms build-essential linux-headers-generic in my case of 32Bit
Run the Linux Guest Addition installer in the Guest Ubuntu. Open the terminal, cd yourself to the mounted image (In my case is cd /media/cyrex/VBOXADDITIONS_4.1.6_74713). In your case you need to input cd /media/USER/VBOXADDITIONS_VIRTUALBOX_VERSION where USER is your username and VIRTUALBOX_VERSION is the current version you are installing. After that run the Guest Addition:

sudo ./VBoxLinuxAdditions.run (It is in the root directory of the ISO image)

Since you installed the needed packages in step 2, you should be fine after installing the Linux Addition since it will configure with no problems. Say yes to a question or two it might ask but this will not do you harm since it will be checking to see if you have the guest addition installed already. Reboot after finishing the install.
Now when the guest starts again you should see that you have several new options available like input devices, views, etc.. but the one you are needing is SHARE FOLDERS!!. To share a folder you already know that is done from the Virtualbox Menu.

But what we need is to connect to this Shared folder from the Host. To do this first create a folder in the guest which will link to the shared folder from the host. For example lets create in the guest home folder the directory virtual. Now assuming the shared host folder is also called virtual we would set this up in the guest like this:

sudo mount -t vboxsf virtual ~/virtual

Now you can access the shared folder.

NOTES ON HOW TO SHARE, AUTO MOUNT AND 3D

The name of the shared host folder must be the same as the guest folder. In the example mentioned above you have both named virtual, but it could be both named bck, shared, virtualbox, etc... This will solve several "protocol" errors.
Since mounted shares have by default root as owner, to mount them as YOU, you can do for example:

sudo mount -t vboxsf -o uid=1000, gid=1000 virtual ~/virtual when mounting them
To automount a share folder add it to /etc/fstab. This way when you load the guest it will have the shared folder already mounted.
If (JUST IF!!) you by change have a editing/saving problem directly in the shared folder. Just copy over the file to another place. Edit the file, save it, copy over back to the shared folder, replacing the one in there.
If the 3D Acceleration support was not enabled when you did the virtualbox setup. Do not worry just run the guest addition again after activating it as seen here:

You can also do the Guest Addition setup from the Proprietary Driver Manager. That is, jockey-gtk As seen in this picture (This is the same as Step 2)

After all of this you should have a Virtualbox that shares folders with the host and back and has 3D acceleration. Here is an image of the outcome:

Windows Guest with Ubuntu Host

If you are using Windows Vista and up, by simply installing the Guest Addition, Sharing the folder (The same procedure as in the Ubuntu example) and rebooting the Windows Guest session you will automatically see the Shared folder between both systems.

If you are using Windows XP, 2000 or 2003 you can use the answer shown in: How do I set up shared folders in a Windows XP virtualbox guest?

To do the sharing via a command line, Takkat has a nice tutorial in How to access a shared folder in VirtualBox? and in How do I set up shared folders in a Windows XP virtualbox guest?

To understand how the network works inside a virtual environment (in this particular case) see Wireless Network in Virtualbox


Unable to change resolution back to normal

This helped me, just for anyone who has the same problem: How set my monitor resolution?

The first answer, from BuZZ-dEE did the job.


Reinstalling Ubuntu 15.10: "Removing conflicting operating system files" has been running for almost 24 hours

The main question is: do you have a separate /home partition?
If so then just erase your / and leave /home untouched, just set mountpoint to it.

If not and there is some important files then I recommend you mount your partition and remove everything except /home, e.g.

fdisk -l

Examine the output and find appropriate device name

mount /dev/sdaXY /mnt  # use the device name from fdisk -l here
mkdir /mnt/2rm         # create working dir
mv /mnt/* /mnt/2rm     # move all dirs to work dir
mv /mnt/2rm/home /mnt  # return home back
rm -rfv /mnt/2rm       # now we can safely delete the rest

After the above manipulations you can easily install Ubuntu on the same partition. Ubiquity, the Ubuntu installer, will preserve your /home directory.


Can't install Ubuntu, log goes crazy, pops the low disk space error, installation crashes

A LiveUSB works entirely in your computer's PC, writing nothing to disk, until you tell it to install something. An initial ramdisk loads a temporary root file system into memory then the Linux startup begins. That's what's taking up your memory, and once the installation completes and the PC reboots, the memory consumption goes away.

FYI, all LiveUSB filesystem writes to a casper filesystem overlay (casper-rw) which writes back to the USB flashdrive.


How do I add the default radio stations from Rhythmbox into Banshee?

The default stations are:

80s

http://network.absoluteradio.co.uk/core/audio/ogg/live.pls?service=a8bb

http://network.absoluteradio.co.uk/core/audio/ogg/live.pls?service=a8

Classic Rock

http://network.absoluteradio.co.uk/core/audio/ogg/live.pls?service=vcbb

90s

http://network.absoluteradio.co.uk/core/audio/ogg/live.pls?service=a9bb

POP

http://network.absoluteradio.co.uk/core/audio/ogg/live.pls?service=vrbb

dabbl

http://network.absoluteradio.co.uk/core/audio/ogg/live.pls?service=albb

HBR1 – Dream Factory

http://ubuntu.hbr1.com:19800/ambient.ogg

Trance

http://ubuntu.hbr1.com:19800/trance.ogg

You can take any of these URLs and add them to Banshee. To do this start Banshee up and then follow the images below to add the stations you prefer.


If you're running 18.04.1, then replace your /etc/modprobe.d/blacklist.conf with this...

# This file lists those modules which we don't want to be loaded by
# alias expansion, usually so some other driver will be loaded for the
# device instead.

# evbug is a debug tool that should be loaded explicitly
blacklist evbug

# these drivers are very simple, the HID drivers are usually preferred
blacklist usbmouse
blacklist usbkbd

# replaced by e100
blacklist eepro100

# replaced by tulip
blacklist de4x5

# causes no end of confusion by creating unexpected network interfaces
blacklist eth1394

# snd_intel8x0m can interfere with snd_intel8x0, doesn't seem to support much
# hardware on its own (Ubuntu bug #2011, #6810)
blacklist snd_intel8x0m

# Conflicts with dvb driver (which is better for handling this device)
blacklist snd_aw2

# causes failure to suspend on HP compaq nc6000 (Ubuntu: #10306)
blacklist i2c_i801

# replaced by p54pci
blacklist prism54

# replaced by b43 and ssb.
blacklist bcm43xx

# most apps now use garmin usb driver directly (Ubuntu: #114565)
blacklist garmin_gps

# replaced by asus-laptop (Ubuntu: #184721)
blacklist asus_acpi

# low-quality, just noise when being used for sound playback, causes
# hangs at desktop session start (Ubuntu: #246969)
blacklist snd_pcsp

# ugly and loud noise, getting on everyone's nerves; this should be done by a
# nice pulseaudio bing (Ubuntu: #77010)
blacklist pcspkr

# EDAC driver for amd76x clashes with the agp driver preventing the aperture
# from being initialised (Ubuntu: #297750). Blacklist so that the driver
# continues to build and is installable for the few cases where its
# really needed.
blacklist amd76x_edac


How can I use an newer package to satisfy an older dependency?

This answer will be disappointing. .deb installation packages are recreated for each specific distribution to match dependencies available on the current version.  A specific .deb file is designed to connect to specific dependencies. Thus, by design, you cannot have an older .deb use newer dependencies.
Even if you unpack the .deb with the aim to repackage it, the binary code of the application may not work with the current versions of the dependencies, and there is no way you can change/edit these binaries.
For older software that is no longer supported, and that does not anymore run on newer versions, you may have no other option than to attempt recompiling the code on your current system. That may require adapting the program code as well.


How do I adjust the volume without pulseaudio?

Type alsamixer in terminal to adjust your volume levels.

Note:

Open your home folder and Press Ctrl+H to show hidden folders
Delete the .pluse folder
Reboot
Now you can access System>>Preferences>>Sound


eth0 ERROR while getting interface flags: no such device

According to your ifconfig -a output, enp58s0f1 is your Ethernet, not eth0.

When Ubuntu switched to systemd (at Ubuntu 15.04), it switched away from the old system with eth0 and so on to what are called Predictable Network Interface Names. Ethernet interfaces start with en (so yours is enp58s0f1). Wireless interfaces start with wl.


How do I access files on my Windows partition from Ubuntu?

Ubuntu supports Windows File Systems by default and you should be able to access them out of the box. What do you see when you open the file manager? There should be a list of your Windows partitions of the left side of the file manager.

If you don't see anything, please click the Ubuntu button on the top-left of the screen. In the Dash, search for "disk" and click on the disk utility application. In here you are able to see your hard disk and partitions. Are they showing up in here?


Can I reformat a disk partition in order to install Windows alongside Ubuntu?

Keep using Ubuntu.

If you absolutely need to run a windows program, don't mess around with partitioning, just download VirtualBox, install Windows in that and voilà, not only can you have your cake, you can eat it too.


Maven only invokable from terminal while root

First need to grand ownership of the folder to myself:

sudo chmod -R 755 /usr/local/apache-maven-3.2.2/

Then I opened ~/.bash_aliases with:

sudo gedit ~/.bash_aliases

And I added:

alias mvn='/usr/local/apache-maven-3.2.2/bin/mvn

Thanks to @Ploutox for the right commands and I also did a bit of editing / corrections myself.


Is there any other way to do a clean install withot formatting /home?

Ubuntu has always supported this, but it's hard to kill the myth that you need a separate partition in order to preserve your data. Stick the CD in and just reinstall over it:

The Ubuntu installers for both the desktop CD and server/alternate CD have the ability to install over an existing system, preserving your home directory (and the local system driectories: /usr/local, /usr/src, and /var/local). This functionality also reuses the user ID and group ID of an existing user, if it has the same username as the user you're creating during installation.
To use this option when installing, choose the option for advanced partitioning, then select your existing / or /home partition. In the box that appears, make sure the filesystem selected matches the existing filesystem of that partition, and that the format box is not checked. Proceed as normal through the rest of the options.

References:

What's your recommendation on drive partitioning schemes for a desktop and home server?
http://www.jorgecastro.org/2010/09/09/no-need-to-complicate-your-life


From what you said you want to do, reorder the default boot order, the best mechanism for that is to renumber/rename the files in /etc/grub.d to put the (Windows?) boot first (30_os-prober to 06_os-prober for instance).  Then the update-grub will rewrite the grub.cfg the way you want it, and will keep that order for every update.  Editing grub.cfg directly is not recommended because it is frequently rewritten by kernel updates.

Now you can install grub to a FAT filesystem, but not during the Ubuntu install.  I did that once when I wiped out the Windows MBR on a disk and had no way to reinstall it, so I used grub for the bootloader, putting the boot directory on a small FAT tools or recovery Windows partition.  Note, that I was not trying to dual boot with this setup, so I didn't need to worry about grub.cfg updates.

Don't confuse how the Ubuntu install limits grub to what grub can do if run manually.  Install Ubuntu to your ext4, accept default grub install (MBR and grub files in /boot/grub).  Run Ubuntu, and mount your FAT at /mnt  (assuming your description of FAT at second partition):

sudo mount -tvfat /dev/sda2 /mnt

Create a directory there named boot

sudo mkdir /mnt/boot

Manually install grub to the FAT partition:

sudo grub-install --boot-directory=/mnt

Your grub install now runs off files on your FAT partition, and you can edit them from Windows.  Watch out for any "garbage" like carriage returns Windows editors may put into your grub.cfg file (Ubuntu and most unixes just use the line-feed as the line terminator).  Updates of kernels however will cause the new grub information to be put into /boot/grub/grub.cfg, so you will need to edit your FAT grub.cfg, or copy the new grub.cfg over to FAT and edit it again (or the new kernel will not show up in the boot menu).


trouble accessing www folders - permission or ownership?

www-data is the user apache uses for the website. This is set in the config file for apache.

$ grep wwww-data /etc/apache2
envvars:export APACHE_RUN_USER=www-data
envvars:export APACHE_RUN_GROUP=www-data

The Apache user/group should only have read access to the files in the web root so keep them as they are.

You should create a new group (something like www-admin) that has write access to those files and then add yourself to that group instead.

usermod -a -G www andy