You need newer versions of libmlt6 and libmlt++3 than what Ubuntu 14.10 shipped.  15.04 already has the newer packages.

You can work around the problem on your 14.10 system by simply grabbing the newer version from 15.04 and installing them:

cd $(mktemp -d)
wget https://launchpad.net/ubuntu/+archive/primary/+files/libmlt%2B%2B3_0.9.2%2Bgit20141027-1_amd64.deb
wget https://launchpad.net/ubuntu/+archive/primary/+files/libmlt6_0.9.2%2Bgit20141027-1_amd64.deb
sudo dpkg -Oi *deb


Grub issue after update from ubuntu 10.04 to 12.04

Using gparted of live CD, remove 'boot flag' from first drive (Windows partition). So the machine will boot from next drive (Ubuntu partition which already is boot-able).


Rename files found after search in Thunar

Linux (Ubuntu as extension) has the ability to work and host technologies and tools from several graphical interfaces. Although we know that each interface has its own file manager, there is no problem in testing, approving and adopting another one.

In this issue, I suggest you to install Nautilus, a native file manager for Gnome and Unity. In my opinion, he is more mature and interactive. Just
sudo apt install nautilus and you will have it in your Ubuntu flavor.

You can also extend the scope of Nautilus by installing extensions.


You can fix missing items in your setting or control panel by uninstalling and reinstalling the control center.

unity-control-center

sudo apt-get remove unity-control-center && sudo apt-get install unity-control-center

Or

sud apt-get install --reinstall unity-control-center

You can reinstall the update manager by doing the following in a terminal please check if you have it first with

update-manager

If not run updates and upgrade

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

Then install.

sudo apt-get install update-manager

or

sudo apt-get install --reinstall update-manager


VPN between Ubuntu server (14.04.1 LTS ) AND Cisco ASA 5510

I finally managed to set up the tunnel. I can now ping the host behind the Cisco ASA device. Originally, I wanted a GUI tool, but I realized the digitalocean VPS console access has a wrong mouse pointer so I kept running into problems trying to use GUI tools like vpnc in the method described here.
I ended up using openswan. Here is how.

Install openswan.

sudo apt-get install openswan

Enable kernel IP packet forwarding and disable ICP redirects

echo "net.ipv4.ip_forward = 1" |  tee -a /etc/sysctl.conf
echo "net.ipv4.conf.all.accept_redirects = 0" |  tee -a /etc/sysctl.conf
echo "net.ipv4.conf.all.send_redirects = 0" |  tee -a /etc/sysctl.conf
echo "net.ipv4.conf.default.rp_filter = 0" |  tee -a /etc/sysctl.conf
echo "net.ipv4.conf.default.accept_source_route = 0" |  tee -a /etc/sysctl.conf
echo "net.ipv4.conf.default.send_redirects = 0" |  tee -a /etc/sysctl.conf
echo "net.ipv4.icmp_ignore_bogus_error_responses = 1" |  tee -a /etc/sysctl.conf

sysctl -p

Configure Openswan. The file is /etc/ipsec.conf Here's how mine ended up looking like;

config setup
        dumpdir=/var/run/pluto/
        nat_traversal=yes
virtual_private=%v4:!,%v4:10.0.0.0/8,%v4:192.168.0.0/16,%v4:172.16.0.0/12,%v4:25.0.0.0/8,%v6:fd00::/8,%v6:fe80::/10
        oe=off
        protostack=netkey
        plutostderrlog=/var/log/openswan.log
        force_keepalive=yes
        keep_alive=60
conn myVpnConn
    authby=secret
    pfs=no
    auto=start
    keyingtries=%forever
    ikelifetime=8h
    keylife=1h
    ike=3des-md5;modp1024
    phase2alg=3des-md5
    type=tunnel
    leftsourceip=202.x.x.101    #my_local_ip aka encryption domain
    left=202.x.x.100
    aggrmode=no
    right=41.x.x.x
    rightsourceip=172.x.x.x
    dpddelay=10
    dpdtimeout=3600
    dpdaction=restart
Start ipsec/openswan

service ipsec start

That was it in a short summary.

I stumbled upon well written articles showing how to configure openswan vpn.

Remy van Elst's post
Gregg's post


You can temporarily disable the internal speaker with this command:

  sudo modprobe -r pcspkr

Or to permanently disable it create a new file in /etc/modprobe.d/ called something like blacklist-pcspkr.conf or whatever you'll recognize.  Add the following line to that file:

  blacklist pcspkr

Of course, that will completely disable the speaker while the OS is running, so things like command line typos that make it beep as feedback won't happen either (BIOS errors will still work as the OS won't have disabled it by that point).  If you want it to beep when it normally would on certain errors, but not to play music through it, then that will require some further troubleshooting into your sound settings to see why everything is playing through that output.


Missing Settings of online accounts in Ubuntu 18.04 with GNOME 3.28.2

You have to reinstall GNOME Online Accounts with:

sudo apt-get install --reinstall gnome-online-accounts

and then retry starting GNOME Control Center.

Or try to launch GNOME Online Accounts directly by gnome-control-center online-accounts.

Other possibility is that you have messed permissions in the home folder. Restore them with

sudo chown -R $USER:$USER ~/.cache ~/.config ~/.local

Note: providing the env XDG_CURRENT_DESKTOP=GNOME before command is needed only if your current desktop environment differs from GNOME.


Ubuntu 16.04 ssh connection permission denied error

Follows the below steps:
By default, the SSH server denies password-based login for root. In /etc/ssh/sshd_config, change:

PermitRootLogin without-password

to

PermitRootLogin yes

And restart SSH:

sudo service ssh restart


Write result for each pair of files in directory to file

Give a try to this:

#!/bin/bash --
(cd some_directory ;\
 for file1 in *.txt ; do
   for file2 in *.txt ; do
#    here python script should be run
     printf "%s " "$(python /path/to/script.py "${file1}" "${file2}")"
   done
   printf "\n"
 done ) > result.file

note: /path/to/script.py must be replaced with the full pathname of script.py script.

The whole block is inclosed in (...). All commands inside are executed into a subshell. This is used to group and capture their output and to make all commands execute in the some_directory, thanks to the first line with cd command.

"${file1}" and "${file2}" are used to reference the values of these variables safely.

"$( ... )" is executing the command inside, and group output into a single string thanks to the double-quotes.

printf "%s " "$( ... )" prints the result of the python script with an additional space.

printf "\n" prints a new line.

> result.file redirects all output generated with all commands inside the subshell into the file named result.file in the current directory.

It has been tested with weird filenames and it seems safe.


run-parts with and without "--lsbsysinit" to update motd

Read man run-parts. It says, in part:

   If  the  --lsbsysinit option is given, then the names must not end in .dpkg-old  or .dpkg-dist or .dpkg-new or .dpkg-tmp, and must belong to one or more of the following
   namespaces: the LANANA-assigned namespace (^[a-z0-9]+$); the LSB hierarchical and reserved namespaces (^_?([a-z0-9_.]+-)+[a-z0-9]+$); and the Debian cron  script  names‐
   pace (^[a-zA-Z0-9_-]+$).


Why when I run Gedit can't I change the theme?

Since Ubuntu 11.04 (Natty Narwhal) was released, menubars are no longer located directly underneath the application's titlebar. They are located in the top panel which you can access by moving the mouse over. This is called the global menu.


Cannot revert sound output back after using HDMI[14.04]

If you're using the default Ubuntu desktop (Unity):

Click on the speaker icon near the right edge of the bar at the top of the screen.
When the menu appears, select "Sound Settings".

If you're using any other desktop, open an xterm and type the command

unity-control-center sound

In either case: A window will pop up on the screen, and you'll see "Play Sound Through:".  You can select either HDMI or "Analog Output, Built-In Audio"; that last one is the one you want.

You can then click on "Test sound" to make sure sound is now going where you want it to go.


Selecting proper laser printer driver to allow embeding of PCL-3 escape sequences

You don't need a "driver" if you have the properly prepared PCL file.  You just copy that file to the USB(?) port the printer is attached.  First find the printer with

lsusb

Find the output line for the printer, looks like:

Bus 001 Device 013: ID 03f0:3112 Hewlett-Packard

Look in /dev/bus/usb/001 and you should see the character device 013:

crw-rw-r--+ 1 root lp      189, 12 Jul 19 14:41 013

Note the permissions, either put yourself into the lp group, or just use sudo on the copy:

sudo cp mypclfile.pcl /dev/bus/usb/001/013

cp does not care what file name or extension you use.
The above does not use a spooler, it is direct to printer.
The above is an example of a printer attached to the USB bus, your situation may differ, but what you would have to do, finding the device file for the printer is the same.
Randomly copying to /dev/lp0 may not work because lp0 may not even exist, it doesn't on my HP (the above USB examples are real).


On every single kernel update, I need to reinstall the NVidia driver and Unity is broken

After digging around a bit for you... I found that version 340.65 the latest update via the Ubuntu repo claims to have fixed all of these bugs... Wouldn't hurt to give it a shot...

How to install latest nvidia drivers Ubuntu ppa


Download VLC. Does .mkvs out-of-the-box flawlessly.


How to run a batch (.bat) file on Ubuntu using Wine (with complete steps)?

The solution by OP

Install Wine & configure it to relevant Windows version for game

Open Gedit (notepad of Ubuntu)>Edit>Preferences>Plugins>select 'External tools execute external commands shell scripts'>Close

Go to your .bat file>right click>Properties>Permissions>select 'allow executing file as program'>Close

Double-click the .bat file, it will open in gedit>Tools>External Tools>Run command>in the popped up box type 'wineconsole cmd' (without inverted commas)>OK. 5. A Wine console terminal will pop up, in it type 'start yourfilename.bat' and hit enter. That'll run it.


Root directory '/' locked after using chmod

As you can't use sudo, try the following command instead (you'll get root privileges with pkexec):

pkexec chmod 755 /

Tested ok in a VM:

u@u-VirtualBox:/$ sudo chmod 3 /
[sudo] password for u:
u@u-VirtualBox:/$ ll
ls: cannot open directory .: Permission denied
u@u-VirtualBox:/$ sudo chmod 755 /
sudo: unable to stat /etc/sudoers: No such file or directory
sudo: no valid sudoers sources found, quitting
sudo: unable to initialize policy plugin
u@u-VirtualBox:/$ pkexec chmod 755 /
==== AUTHENTICATING FOR org.freedesktop.policykit.exec ===
Authentication is needed to run `/bin/chmod' as the super user
Authenticating as: u,,, (u)
Password:
==== AUTHENTICATION COMPLETE ===
u@u-VirtualBox:/$ ll
total 104
drwxr-xr-x  23 root root  4096 oct.  12 20:22 ./
drwxr-xr-x  23 root root  4096 oct.  12 20:22 ../
[...]
u@u-VirtualBox:/$


It sounds like a disk i/o error at the sector it is trying to install to. Go into advanced options in install, then resize the windows partition to be slightly smaller and the ubuntu partition to start slightly sooner on the disk. See if the error disappears or if it happens later on and post back


Using the terminal to open a folder which contains japanese characters

It could be the Ubuntu Mono font not supporting Japanese characters. Try installing the Advanced Settings tool, and changing the Monospace font to something that supports Japanese characters.


Reinstalling Ubuntu through wubi not working

It's corrupted. That's why you don't have permission. When it 'froze', it was not 'frozen' - just your screen probably. The hard reboot corrupted the root.disk most likely.

So, two things. First with linux you can often safely reboot even if the screen is frozen via some special keys that the kernel responds to: https://en.wikipedia.org/wiki/Magic_SysRq_key

That would have avoided the problem in the first place.

The second thing is that it likely froze due to some hardware incompatibility. Commonly this is that your graphics driver isn't adequately supported by the open source drivers installed by default with Ubuntu. So you should boot with nomodeset and install closed source drivers instead. It could be something else, e.g. wireless card, as well, so it's a good idea to research your computer's specs via Google (w/Ubuntu).

Finally, to fix the problem you have now, you will need to run chkdsk /f from Windows. You can either run it from a repair command prompt (booting from a repair CD) or you can request it from the drive tools menu - since it's on C:\ you need to reboot to complete it. After that you should be able to remove the C:\ubuntu directory.

This answer shows how to run chkdsk (but it's written from the perspective of recovering a Wubi install, not removing it). Note that when chkdsk fixes the corruption it could place the whole root.disk in the hidden \found.000 directories so you might need to find these are remove them to recover all your disk space.


Booting under MAAS direction error: File not found

I had the same issue this morning.

Check under settings "Default Ubuntu release used for commissioning"
I wasn't able to use 14.04 anymore.

After adding Image 16.04 commissioning is working again.

With best regards,
Jockel


Cannot update Eclipse due to conflicting dependencies

You can just download the latest release from eclipse.org. Many people myself included cannot get past errors when updating or attempting to install software into the eclipse version from the repo's.


Installed ubuntu 14.04 on mac now I want to go back to osx

You will need a friend with OSX/Mac

They will need to download the Yosemite installer from the app store and make a bootable USB.

You can then use that usb to boot on your mac and install OSX.

This is a good guide I've used before to install OSX.


Can't scroll with laptop "pointing stick"

Problem solved. Here's how:

In your host (Windows), go to the SynTP folder. Probably C:\Program Files\Synaptics\SynTP
Locate the file TP4table.dat and copy it to your desktop (or to somewhere else).

Open your copy of TP4table.dat and find the line marked in blue in the following screenshot (line 26, right after all the ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;).

put the following line in there:  *,*,VirtualBox.exe,*,*,*,WheelStd,0,9

Now replace the original TP4table.dat (in C:\Program Files\Synaptics\SynTP) with the modified one (you can backup the original before you replace it).
restart your computer.
The thing works.


How many users can I create with useradd without having a visible performace degradation

Since about kernel 2.4 linux defines uid_t as an unsigned int which gcc compiles as 4 bytes (so the max UID is 4294967296) but you can also have multiple users sharing the same UID (not that it's too practical). But then, as the number of users increase you'll have performance problems with the lookup of users in unsorted flat files (/etc/{passwd,shadow,group}), you should at this point switch to a database (PAM and NSS are the keywords to look for).


Remapped CapsLock key is ignored (set by XKBOPTIONS in /etc/default/keyboard)

I still don't know the correct solution, but it seems that the XKBOPTIONS and changes to files in xkb directory affect everything except Gnome, so if I use it in addition to gnome tweaks then it works in both situations.


Installing 18.04 on ASUS GL552VW (-CN108T)

In addition to nouveau-modeset=0, you can use nvidia.modeset=0 for a pure Intel HD 530 graphics environment which is many times easier to use than nVidia.

Many users find less screen-tearing and crisper fonts with Intel. Additionally there is less power drain and heat.

After installation and successful booting into Ubuntu you can type into the terminal:

sudo prime-select intel # turn on intel graphics

or:

sudo prime-select nvidia # turn on nvidia graphics

Then reboot to implement the configuration change.

Note you don't type # and the comment that follows.

HTH.


Can i calculate the total size of a website available for public?

Based on similar Q&A - get file size of a file to wget before wget-ing it? - I made bash shell wrapper script that will do exactly what you need. :)

The latest code repository could be found on Github over here:

https://github.com/mariomaric/website-size

#!/bin/bash
# Info: https://github.com/mariomaric/website-size#readme

# Prepare wget logfile
log=/tmp/wget-website-size-log

# Do the spider magic
echo "### Crawling ${!#} website... ###"
sleep 2s
echo "### This will take some time to finish, please wait. ###"

wget \
  --recursive --level=inf \
  --spider --server-response \
  --no-directories \
  --output-file="$log" "$@"

echo "Finished with crawling!"
sleep 1s

# Check if prepared logfile is used
if [ -f "$log" ]; then
    # Calculate and print estimated website size
    echo "Estimated size: $(\
        grep -e "Content-Length" "$log" | \
        awk '{sum+=$2} END {printf("%.0f", sum / 1024 / 1024)}'\
    ) Mb"

    # Delete wget log file
    rm "$log"
else
    echo "Unable to calculate estimated size."
fi

exit

Also, this answer helped tremendously: Shell command to sum integers, one per line?


What is the difference between "Spread all Windows" and "Window Spread" in unity-tweak-tool?

While both of them are almost similar, there is a subtle difference that makes them different.

"Window Spread" scales all open windows in a particular workspace. Whereas, "Spread all Windows" scales all open windows in all of the workspaces.


I've installed AMD Propietary drivers with Additional drivers feature, believe me they are too good. Ubuntu proprietary drivers for graphic cards are not that good. for installing the AMD Proprietary drivers follow this link:
What is the correct way to install proprietary ATI Catalyst Video Drivers (fglrx) directly from AMD?

hope this is helpful.


ubuntu support intermittent connectivity ssh session

Since I'm new, I can't leave a comment, so I'll leave it here. You could try iperf to check your connection speed and how moving devices around changes it. There was a recent video that showed how you hold a cell phone changes your connectinon speeds.

With moving and new router you have a lot of other variables also to consider.

I have a laptop doing the same thing. ssh will hang for 1 to 3 minutes, but resumes connection. Moving around doesn't change anything. In this case, it's just getting old. If not for it's 17 insch screen I would be using my other.


If this is a new install and no personal files are going to be lost;  I'd suggest re-installing.  But first check the md5 sum of the .iso (the down loaded image) .  And make sure your hardware is supported i.e. if it is a 32bit system you can't install 64 bit.

BIOS is (Basic Input/Output System) – firmware on the motherboard and grub (GRand Unified Bootloader) is the boot loader that loads the OS


how to check if PPA is already added to apt sources list in a bash script

You can do something like this:

the_ppa=...  # e.g. the_ppa="ondrej/apache2"

if ! grep -q "^deb .*$the_ppa" /etc/apt/sources.list /etc/apt/sources.list.d/*; then
    # commands to add the ppa ...
fi

Notes:

grep exits with success if it finds a match
The ! negates this, so the commands will be executed if there is no match = ppa not added
The -q flag makes grep quiet, so it doesn't print the matched lines. It would be just noise, we need only to know if there is a match or not, for which the exit code is perfect
The ^deb .* prefix is to make sure the matched line starts with deb, to exclude lines that are commented out


Splitting a pdf with pdftk into batches of 2 pages

First obtain the number of pages in the document:
TOTAL=`pdftk file.pdf dump_data | grep NumberOfPages | awk '{print $2}'`

Check the result with
echo $TOTAL

Now let's insert that into a loop where we loop from 1 to $TOTAL, skipping 1 each time. Each time around the loop, we will get the i-th and the i-th plus one pages and put them into a file.
for i in `seq 1 2 $TOTAL`
do
j=$((i+1))
echo "pdftk source.pdf cat $i-$j output output_$i-$j.pdf"
done


Can not delete files containing special characters in the file name

I just found out how to delete such files witch special characters:

cd <directory with that file>

ls -ali

At the very left of the directory listing you see the ID of the inode of each file.

Delete your file via inode ID:
find . -inum <inode ID of your file> -exec rm -i {} \;

This worked fine for my issue. Hope this helps!


Battery threshold for Asus VivoBook Pro 15

I wrote a command line application that does this.
The easiest way to get started is download the app from the releases page and run
$ ./bat --help

from the terminal in the directory where it is located which should show the help documentation.
If there's an error, it might have to do with permissions. The following command might solve the problem.
chmod +x ./bat

Basically, running
$ ./bat --threshold

will print out the current threshold.
To set a new threshold, say 60%, run
./bat --threshold 60

To persist the current threshold between restarts, run
sudo ./bat --persist

Note: Persisting uses systemd under the hood but this is bundled with most Linux distributions including Ubuntu.
Tip: Putting the app in a directory like /usr/local/bin/ that is in the $PATH will enable you to run it from anywhere and not just in the directory the app is in. Then the above commands become,
bat --help

bat --threshold 60

bat --persist

respectively.


Trying to fix my ubuntu installation and I am getting this EFI error

I encountered this recently myself.

You need to go back a step and choose "do something else" to get to the partition listing, find the efi partition and right-click, select 'change'.

I forget the exact wording, but in the dialogue that pops up there will be a "use as" option select, choose efi, and accept changes. You should also make sure / and swap partitions are set correctly ("use as" / or swap respectively).

Then continue with the installation.

Worked for me, seems the installer can miss the partition for some reason.


How do I get the value of Display -> "Scale for menu and title bars:" from the command line?

This setting is stored by dconf in /com/ubuntu/user-interface/scale-factor.

Use the command

dconf watch /com/ubuntu/user-interface/scale-factor

to watch how it changes when you move the scale. Note that, apparently, the scale factor displayed in the GUI corresponds to exactly 1/8 of this value, e.g., when I set the scale factor, via the GUI, to 1 for my primary display (on DisplayPort-1) the value /com/ubuntu/user-interface/scale-factor is set to

{'DisplayPort-0': 8, 'HDMI-0': 8, 'DVI-1': 8, 'DisplayPort-1': 8}

When I set the scale factor to 2 I obtain

{'DisplayPort-0': 8, 'HDMI-0': 8, 'DVI-1': 8, 'DisplayPort-1': 16}

When I set the scale factor to 0.5 I obtain

{'DisplayPort-0': 8, 'HDMI-0': 8, 'DVI-1': 8, 'DisplayPort-1': 4}

etc.

This is analogous for the other displays, of course. Do note that this is not one value, but an array of values, keyed with the display identifiers as returned by xrandr.

To change the setting via the command line, use something like

dconf write /com/ubuntu/user-interface/scale-factor "{'DisplayPort-0': 8, 'HDMI-0': 8, 'DVI-1': 8, 'DisplayPort-1': 8}"


Log in to server after mistakingly having changed /etc/ssh/sshd_config 16.04

The directives you were trying to add are for clients, not the server. Therefore you should have edited local /etc/ssh/ssh_config files instead of the server's /etc/ssh/sshd_config file. Because you now have directives that will not be understood by the openssh-server, it will not start. Example:

...
--
-- Unit ssh.service has begun starting up.
Jan 22 10:46:25 s15 sshd[18079]: /etc/ssh/sshd_config: line 91: Bad configuration option: ServerAliveInterval
Jan 22 10:46:25 s15 sshd[18079]: /etc/ssh/sshd_config: line 92: Bad configuration option: ServerAliveCountMax
Jan 22 10:46:25 s15 sshd[18079]: /etc/ssh/sshd_config: terminating, 2 bad configuration options
Jan 22 10:46:25 s15 systemd[1]: ssh.service: Main process exited, code=exited, status=255/n/a
Jan 22 10:46:25 s15 systemd[1]: Failed to start OpenBSD Secure Shell server.
-- Subject: Unit ssh.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit ssh.service has failed.
--
...

For future reference, a suggestion is to re-start the service rather than re-boot:

$ sudo systemctl restart sshd.service

Why? Because then you might not lose your current SSH session (I did not lose mine just now, but I am unable to establish a new connection) and you have a possibility to recover from a mistake.

To answer your actual questions:

"How can I connect to the server to change this?" You can not, at least not via ssh.

"Is it at all possible?" Not via ssh. I do not know if you have other connection options.


Installing packages by apt-get is not possible because Ubuntu touch devices have a readonly filesystem by default.

It can be disabled through USB:
Just enable the developer mode on your device,install the fablet-tools on your desktop and run. 'phablet-config writable-image'.

But be aware, OTA-Updates will be disabled and your device might crash, because this is not the usual way of developing applications for Ubuntu touch. You should do this just for experimental usage.

Further information can be found here underthe topic 'enablethe read-write mode: https://developer.ubuntu.com/en/start/ubuntu-for-devices/installing-ubuntu-for-devices/


A script or application to tell me how far apart two dates are

The package dateutils is in most distributions and will accomplish this for you.

sudo apt-get install dateutils

The default seems to be in months with short dates.

$ dateutils.ddiff now "01/22/1992" -i "%m/%d/%y"
612

But the format string can be changed.

$ dateutils.ddiff now "01/22/1992" -i "%m/%d/%y" -f '%S'
52876800

As it appears to have built in timezone and locale support it would probably be a safer bet than trying to write a function off of epoch time.


New To Ubuntu; Have Reboot issues after Updates

Open the Terminal in Recovery Mode and try to update the manager using the below command. After doing so try to boot the GUI.

 sudo update-manager -d

Hope this will help you to fix the issue.


multiple gmail account notifier ubuntu 13.04

Unity Mail
With Unity Mail we can handle multiple gmail accounts. You will get an OSD notification whenever you receive a new mail showing the sender, and the subject of a mail.

In addition it adds a launcher icon to display the count of unread messages, integrates with the mail indicator to turn it blue, and displays a list of mails in the drop down menu there.

For newer releases (>= 15.10) Unity-Mail can be installed from the official ppa:
ppa:robert-tari/main


If you have logged out and back in and it hasn't resolved itself, likely some of your settings have become corrupt.

The easiest way to fix this is with UbuntuTweak

sudo add-apt-repository ppa:tualatrix/ppa
sudo apt-get update
sudo apt-get install ubuntu-tweak

You can read more about it at webup8.org

The programs first page looks like this:

Click on the Tweaks and you will see:

Select Unity and then click on the arrow next to Launcher Hide Mode

As you are using Unity 2D you will have the option to Auto-Hide which will always hide it or Intelli Hide  which will only hide it if a window is in the way(The way it worked in both 2D and 3D until 12.04) just select one of the Hide options and then log out and back in, you should then have the launcher hiding correctly again.


Ubuntu 20.04 freezes when some apps are opened

I would think that the non working apps need to be updated for their v20.04 compatible ones. Some changes between Ubuntu versions might affect the apps that was made for v18.04.

Even some shell (terminal) commands might be different between versions. Try to uninstall the non working apps. Clean the apps catalogs. Reinstall the new ones, check the apps description if it should work in the v20.04.

Update Applications

To update the applications, just perform sudo apt upgrade -y; if you read man apt you can also specify a command to auto-remove packages that are not compatible.


Brother MFC-L2710DN printer and scanner for Ubunto18.04 - How to install?

Thank you very much for your quick answers.
I solved the problem by installing

sudo ./linux-brprinter-installer-2.2.1-1

I went through all possible tutorials several times, but nothing helped but the installation of this Brother support entity.

This solved the problem.

I suspect a possible USB port corruption or lack of support for USB 3.0, because the scanner came to life when I passed it to another USB 2.0 port on my HPG255 laptop.

I will add that Ubuntu was upgraded from an older version on which drivers were already installed with a working scanner (on this port) and a working printer.


media shortcut and media commands not work ubuntu 19.04 unity

You must install mpd Music Player Daemon:

reference

$ sudo apt-get update
$ sudo apt-get install mpd sonata


Reason for really slow 14.04 LTS performance

You will be better of with a different flavor of Ubuntu. I am running Lubuntu on my old computer with low resources (also Intel celeron around the same specs).

For a full list of flavors:

http://www.ubuntu.com/about/about-ubuntu/flavours


Actually I think  I've found the error, the Firefox package was corrupted, I've uninstalled It completelly and reinstalled it, appears that it's working


Since the owner changed the status to [SOLVED] but the solution is nowhere to be seen, I'll show what I did to fix this.

upgrade to the latest version of docky.
Follow this instructions:
Press Alt + F2
Type command gconf-editor and hit enter/return
Navigate to “apps/docky-2/docky/DockController/ActiveDocks” in the gconf-editor
Remove the second dock.
Restart Docky

Here is the site I got the instructions from: Remove the Anchor icon in Docky

PD: I STILL can't create a second dock without it being empty (and thus unusable) and I STILL can't uncheck 'manage windows without launcher'

copied from ubuntuforums


How can I install Ubuntu 14 64 bit along side a 32bit Ubuntu on a dual boot system?

Here is what you can do:

Take a large usb or hard drive, connect it to your computer and download the files on the ubuntu os that you want.

Next, go into windows and remove all the ubuntu files.

Then re install the new ubuntu on the partition.

Your good to go!

Hope this helps.


Ubuntu does not boot up on my PC, whether installed or from a Live CD/USB. Help?

If you can install Ubuntu 10.04, then install it. After installing it, just upgrade it to the latest distribution version. Try doing this on the terminal after successfully installing Ubuntu 10.04.

sudo apt-get install update-manager-core

Since Ubuntu 10.04 is an LTS release and I am assuming that you want to install the newest version, you need to edit the release-updates file to reflect the latest dist instead of the LTS (12.04.3) or you may skip this step if you want to use the LTS version.

sudo vi /etc/update-manager/release-upgrades

Change the line which shows prompt=lts to prompt=normal then upgrade the packages before you run a distribution upgrade.

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

After everything finishes, issue the following command to the terminal to upgrade to the latest distribution.

sudo do-release-upgrade

It should do the trick. However, I am not sure if it is a hardware issue on your side which is causing Grub to act up. You may want to check with your Motherboard Manufacturer about your new BIOS.


Use:

 killall -y 5m -i -r ".*"

Or use a combination of ps and kill:

kill $(ps -eo pid,etimes | awk '{if ($2 < 300) { print $1}}')

First we find the id of process that are running less than of 5 minutes using:

ps -eo pid,etimes | awk '{if ($2 < 300) { print $1}}'

Then we kill them using kill.

Base of command comes from here.


If the correct device is already highlighted under Settings > Sound > Output, try selecting a different device then the desired device.

I'm having the same problem but couldn't find a workaround other than this.


Windows does not play nice with other operating systems. When you ran that repair it would have overwritten whatever bootloader you had on there, attempted to replace it with MBR, and with it as the only OS. It also would have deleted any partitioning and formatted your HDD with NTFS.

It's probably too late to go back. Windows discs delete everything to an extent where you'll need data recovery software to get that drive back as it was.

What has worked for me with Win7 and dual booting is to install Windows first. This will help with certain hardware like some wireless cards as well. Then you can shrink the NTFS partitions in Computer Management>Disc Management to make space for Linux. If you install Ubuntu second it should install GRUB which can then either boot you straight in or pass you to the Windows 7 loader. If the Windows install breaks for any reason, definitely back up before using a setup disc.


Will reverting Windows to an earlier restore point mess up Linux?

No. Using a system restore point only affects files within Windows.


I like System Monitor Indicator, but there are several of them. Have a look at the Ask Ubuntu community wiki on application indicators here. You might prefer System Load Indicator or Hardware Sensors Indicator.


Cannot SSH over the internet even port forwarded

The problem is I configured port forwarding wrong.
On some huawei router (eg. HG8247H) you need to set external ports mapping to the internal ports, But I forgot to set external ports for some rules.

It's makes my router wrong port mapping behavier. (eg. client request access to port xxx, but client get access to port yyy that is on a previous rules)

I fixed it by add external port on each rules.


NVIDIA Optimus GEFORCE GT 540M not recognised as a proprietary driver

I was able to fix this by myself with a lot of trial and error and finding a useful program called Ironhide, a project continued from Bumblebee.

Install instructions can be found here:

http://hybrid-graphics-linux.tuxfamily.org/index.php?title=Ironhide

I did as they said, configured it twice, restarted and everything works like a charm.

Hopefully this will help others otu there if you have the same problem as I did.


Opening racket source files in DrRacket by default?

Ok i got the solution.
.rkt isnt a default mimetype in ubuntu, though .scm.
All i needed was to set up a new mimetype.

This video tutorial helped me.
(Still have to figure out if there's a way it shows Drracket icon for .rkt files)

Cheers :D.


Click on de power icon in the upper right corner of your screen, there you will find system preferences.


Install sublime text 3 on digitalocean droplet running ubuntu os

cd to /var/cache/sublime-text
bzip2 and untar sublime_text_3_build_3083_x64.tar.bz2
Re-run apt-get install
Run SublimeText: /usr/bin/subl


Login problem after failed update from 14.04

It sounds like you really messed something up bad.  Try this:

Boot from Live DVD/USB
Mount your / partition if not already mounted
Copy all your files from your old installation onto another drive (preferably an external USB)
Reinstall Ubuntu 16.04, with a clean install
Copy all your files back into the new installation.

That should do it.  Without more information I can't tell you what to do other than recover data and reinstall.


I found it under Settings and inside About me so it's easy after all.


you do not need 2 controllers for your 2 charms:

You can deploy them in your model by juju deploy mediawiki and juju deploy mysql
then you can add a relation between them: juju add-relation mediawiki:db mysql

On each controller you have a superuser that is created when the controller is bootstrapped. by using juju show-controller you can see this:

account:
user: admin
access: superuser

this user can create new models or add new users to a controller/model. This user can do anything on your controller.

The way charms communicate with each other is by the help of interfaces. Mysql will provide a DB and that Interface has a provides.py file where all the necessary information will be provided to the requires side (MediaWiki). The Requires side of the interface has a requires.py file that will get the information and pass it to the charm.

Every interface can provide or require different things. you can find them on http://interfaces.juju.solutions/
now the 2 charms are connected Mediawiki will know what the IP address is of MySql to make a connection with it.

If you still need extra information, you can find a lot of information on the JUJU docs


Strange message in syslog regarding ufs filesystem

The error message is being triggered when running update-grub. It calls out to os-prober to determine if you have any alternative operating systems installed. The message occurs because a UFS mount fails because the partitions being probed are not actually in ufs format.

The error can be safely ignored.

A bug against os-prober is open on this very issue, https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1374759


You should know 3 commands for your Terminal:

  sudo apt-get update
  sudo apt-get upgrade
  sudo apt-get dist-upgrade

This should work ;)


RTL8723be: poor and unstable wireless in Ubuntu (from 14.04 to 15.04)

You tried an old solution. You need to install another driver.  Run in terminal

sudo apt-get install git build-essential
git clone https://github.com/lwfinger/rtlwifi_new.git
cd rtlwifi_new
make
sudo make install

Then reboot.

You also can remove that file with options rtl8723be fwlps=0 ips=0.

Note You will have to re-install it after each kernel upgrade.

New option:

You can now use a ppa instead of manual compiling:

sudo add-apt-repository ppa:hanipouspilot/rtlwifi
sudo apt-get update
sudo apt-get install rtlwifi-new-dkms linux-firmware


ffmpeg: installing from repository or compiling from source?

got some errors during ffmpeg compilation, on last steps

Do you remember what the errors were? Is there a ffmpeg binary in ~/bin?

  1) Is there any sense compiling when we have binaries in the repo?

Yes:

Ubuntu (at least until 14.04 I believe) offered a fake "ffmpeg" from a fork. It's not from FFmpeg! This makes some users unhappy and some users feel misled.
The fake version (and also avconv) is buggy and lacks many features.
FFmpeg development is very active.
Compiling gives you the choice to customize the build the way you want it and to suit your needs. For example you can encode with libfdk_aac which is a great AAC encoder.
All of the guides, articles, and tutorials in the FFmpeg Wiki are for ffmpeg from FFmpeg and not guaranteed to work with any third-party counterfeits.

If you want some benefits of using a recent, real ffmpeg without needing to compile then you can download a static build from the FFmpeg Download page. No installation necessary: you just download, exract, and run. It has most of the useful features, but lacks x11grab support (for screen grabbing) and also lacks a few useful encoders.

  2) Have I spoiled everything with my unsuccessful compilation?

No. The guide is meant to be non-intrusive and non-interfering. See Reverting Changes Made by This Guide if you wanted to undo everything.

  I've removed source and build directories, but now I'm not sure if my ffmpeg works correctly. How can I check?? :(

Enter ffmpeg in your console. If the first line contains:

FFmpeg developers then you're using your compiled version.
Libav developers then you're using the imitation from the repository.


Nvidia 319.17 - 640 x 480 screen and no unity post reboot

I just had the same issue. This driver is not compatible with Ubuntu 13.04 and linux kernel 3.8. I removed the Nvidia driver by using  the command sudo nvdia-uninstall

Then restart the system. If you have optimus graphics, install bumblebee or else install the nvidia-310 driver for a dedicated Nvidia graphics card.

Restart the system and then move the .config file

mv .config .config-bk

Log out and log back in. This will bring back the Unity WM.


Use findmnt:

$ findmnt /
TARGET SOURCE       FSTYPE OPTIONS
/      /dev/md127p1 ext4   rw,relatime,stripe=256,data=ordered
$ findmnt / -o UUID
UUID
046a554b-d9f5-4b23-82e6-ffaeb98284aa
$ findmnt / -o UUID -n
046a554b-d9f5-4b23-82e6-ffaeb98284aa

It also has several options to control how it looks up information, and how it presents it (including JSON output!). It's part of the mount package, so available on any Ubuntu installation.


Ubuntu 16.04 desktop won't boot after clean install on Dell 5G 5090 - no bootable device found

For Ubuntu 16.04 to recognise the M.2 PCIe SSD, change the SATA setting to AHCI on the BIOS Setup (F12 on my machine at boot-up) https://www.dell.com/support/article/ca/en/cabsdt1/sln299303/loading-ubuntu-on-systems-using-pcie-m2-drives?lang=en.  Once I did this, I was able to load Ubuntu 16.04 onto the SSD and reformat the HDD as a data-only drive.


How to make password show asterisks as I type it when running `sudo` command?

Open your terminal and edit /etc/sudoers.tmp file with:

sudo visudo

Modify the following line:

Defaults env_reset

to:

Defaults env_reset,pwfeedback

Save and exit.
Restart your terminal and now, when you run a command with sudo, you should get visual feedback when you type in your password.

Credit goes to: Make Password Asterisks Visible in Your Mac or Linux Terminal


Since Ubuntu 19.04 and 19.10 are EOL now, you might have to do a fresh install. Make a backup of all the important files. Download a new Desktop image ISO file from the official site, make an installation media and try installing afresh.
https://releases.ubuntu.com/20.04/ubuntu-20.04.1-desktop-amd64.iso
Hope that helped.


What does the percent of an update process represent

Apt-get typically looks at multiple repositories instead of just one. Why check them all just to see what the total is when you check them all just to pull a text file anyway? It would make the process a little less than twice as long.

So to answer your points...

There is no total percent since apt-get would have to check every repository just to see how much there was. Like Joe said, it would create a lot of overhead.
Adding a 3rd party repository would affect the total percent, but neither you nor apt-get knows what it is. When apt-get came to that repository the percentage on the left would have it's own iteration through 100%.
The jumps are actually (usually) really fast iterations through 100% as it goes through each repository, and you only catch a glimpse as it flies through 100% multiple times. When it appears to go down it's actually not quite as far in the next scan through the next repository.

I am not an expert on this kind of thing so someone correct me if that's not right.


I have a laptop with Xubunutu, want to reinstall Windows 8, but can't enter bios on reload

Your BIOS (or probably UEFI menu if it's an 8.1 system) is the first component of your computer to start, it bootstraps everything else. It will never be affected by an operating system install.

Please give us the model of the device, so we can find out what you have to press to make it boot into UEFI/BIOS.


Is it possible to create an Ubuntu swapfile on an NTFS partition?

I'm not quite sure whether a swap file on an NTFS partition is the best solution for you. You may be better off creating an actual swap partition on your hard drive and use that. You could use a tool such as gparted to resize your NTFS partition, reducing it by the size you want your swap file to be, say, 2 GB. Then you could allocate a 2 GB swap partition on the newly freed space on your hard drive.

(Of course that assumes you have at least 2 GB of free space on your NTFS partition. But that's just the same space a swap file would consume as well.)

The reason I'm saying that a swap file on your NTFS partition may not be the right solution is because it may impact performance significantly, for two reasons:

Your NTFS partition is not fresh, it's been used for a long time, and your 2 GB swap file will likely be fragmented. Hence, reading and writing to that swap file may be much slower since it is not a contiguous memory region (as opposed to a swap partition). See this excellent answer on Server Fault for some more information.
On top of that, the NTFS drivers are rather slow, as mentioned in the Arch Linux forums in the thread that you linked to yourself.

If you are nevertheless determined to create a swap file on your NTFS partition, that's easy. All you have to do is this:

Ensure your NTFS partition is mounted somewhere. For the sake of example, let's assume the mountpoint for your NTFS partition is /media/windows.
Create a swap file with 2 GB on your NTFS partition like so:

dd if=/dev/zero of=/media/windows/swapfile.img bs=1M count=2048
mkswap /media/windows/swapfile.img

Enable the swap with

swapon /media/windows/swapfile.img

That's it really. Those are exactly the instructions from that Arch Linux thread, I merely changed the size of the swap file to 2 GB.

The whole rest of the Arch Linux thread only deals with the issue that the OP wants to have his swap file enabled automatically at boot, so that they don't have to run that swapon command every time after rebooting the system. For that to work, you have to somehow make sure that the NTFS partition is mounted before the swap is enabled, since the swap file is on the NTFS partition, and that can get a bit messy, which is why someone there suggests creating a systemd service to enable the swap after the NTFS partition is mounted.

But if you only want to test how a swap file on your NTFS partition solves the problems with your game, you don't need to worry about that right now. You can just go ahead with the above steps. It simply means that, every time you reboot your system, you have to re-run steps (1) and (3) above, i.e., make sure your NTFS partition is mounted (hint: put it in your /etc/fstab and have it mounted at boot time) and run that swapon command. Note that you only have to perform step (2) once: Once the swap file is created, you don't need to create it anew. Unless you want to change its size.

Then, if that works for you and you're really happy with the results and you can play your game and one day you're annoyed that you have to run that swapon command every time you reboot your system, then you can worry about writing a systemd service to run that swapon command every time automatically at boot. And then, if you have trouble with that, you're welcome to ask another specific question about that problem here. Or perhaps, by then you will like Ubuntu so much that you decide to get rid of Windows 7 and install Ubuntu for good. ;)


Is it possible to mirror the apt repositories?

You might want to use apt-proxy instead of a full mirror, since it will then take considerably less space and time to get set up:

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

You would then need to update the repository lists for anyone wanting to use your proxy.


How to install Ruby plugin on Eclipse Indigo under Ubuntu 11.10

If it throws an error about .eclipse/org.eclipse.platform_3.7.0_155965261/plugins/com.aptana.swt.webkitbrowser.linux.x86_64_1.0.0.1295409059/os/linux/x86_64/libcefjni.so:libjpeg.so.62

Just:
sudo apt-get install libjpeg62

Installed the full Aptana plugin on 12.04 LTS with eclipse from repo.


uname -r isn't properly substituted in the directory path. You should use $(uname -r) in order for the right kernel version to be appended to your path.
Try the following command instead:

sudo cp ~/dev/clevo-wmi-code/clevo_wmi.ko /lib/modules/$(uname -r)/kernel/drivers/platform/x86/

Also make sure to run depmod -a and to add your module name to the /etc/modules file.


Weird error while trying to install python3.5-dev on ubuntu 16.04.6

never mess-up with default python version, because many system pacakges depend on them

If you need specific version, use pyenv


Are you using jackd? If so, try increasing the frames per period. Also, if you're not using low latency kernel, try it. Make sure the sample rate is set appropriately.

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


To repair the broken/interrupted package, at a terminal type
sudo dpkg --configure -a


Can ubuntu be installed using a networked drive?

Are you sure that your laptop doesn't allow booting from USB?

You may need to enable legacy USB support in the BIOS setup to enable it, then reboot with the bootable USB in the drive, then go into BIOS setup a second time and select the boot devices, looking for the removable drive.

Otherwise, you may have success installing using WUBI, by running the WUBI installer from within Windows.  Note that this will install to a small partition within Windows, rather than replacing Windows.


Moving file based on extension from old to new folder, and then adding prefix to the file in new folder based on previous folder name

That would be a one liner:
for f in *.txt; do mv "$f" ../Folder\ B/"${PWD##*/}"_"$f"; done

or the multi line equivalent:
for f in *.txt
    do
    mv "$f" ../Folder\ B/"${PWD##*/}"_"$f"
    done

Asuming Folder A and Folder B are in the same level, run the above code ( either one ) from within Folder A.


time wrong on sdcard images in Ubuntu, okay on camera and Windows

The FAT filesystem does not store the timezone, and the specification does not say whether timestamps should be taken as UTC (as on any other filesystem) or as local time. Windows interprets timestamps on FAT filesystems as being in the current local timezone. Linux, by default, interprets them as UTC.

Example: The timestamp on the file says 8:03. Linux believes this to be UTC. Your local timezone is 6 hours behind (that is, west of) UTC, so Linux displays this as 2:03 local time.

Mount the filesystem with -o time_offset=-360 to tell the kernel that timestamps on the FAT filesystem are to be considered 6 hours behind UTC. See the manual page of the mount command for details.


Kernel won't boot on start up of first time install "this kernels requires an x86_64 CPU

It appears you have a 32 bit processor so you need to use 32 bit (i386) version of Ubuntu

http://releases.ubuntu.com/16.04/ download the i386 version

http://releases.ubuntu.com/16.04/ubuntu-16.04.2-desktop-i386.iso

Or you can use 17.04

http://releases.ubuntu.com/17.04/ubuntu-17.04-desktop-i386.iso


One way of doing so is using the Ubuntu Tweak tool.  To install it, if you don't have it installed, just press Ctrl+Alt+T on your keyboard to open Terminal. When it opens, run the commands below:

sudo add-apt-repository ppa:tualatrix/ppa
sudo apt-get update && sudo apt-get install ubuntu-tweak

Once it done, type tweak in Dash, and click on the icon.

When it opens, click on the Tweaks tab, and then Login Settings.

When that window opens, click on Unlock, and then turn Play Login sound off.


How to install deb files on kubuntu without using terminal?

You can use a different GUI installer. First, install GDebi Package Installer using your Discover software center app.
Next, open your Dolphin file manager and navigate to the deb file. Right-click on the deb file and then select "Properties".
On the "General" tab, click on "File Type Options".
Under "Application Preference Order", click on GDebi Package Installer and then click on "^ Move Up" until GDebi is at the top of the list.
Click "OK" to close the File Type Options window.
Click "OK" to close the Properties window.
Now, you can double click on a deb file and GDebi will open. You can install the package if you click on "Install".


How to disable wifi power management (rtlwifi, rtl8192cu)

There are several access points nearby with greater signal strength than Becks, to whom you are connected. I suspect Network manager is seeing these access points with better strength and attempting to roam to another. I suggest you right-click the Network Manager icon and select Edit Connections. Edit the wireless connection Becks as here:

Mark it to connect automatically and fill in Becks BSSID (MAC address) to tell Network Manager that you wish to connect to only Becks and only the MAC address you specified.


NGINX Reverse Proxy to Kestrel/ .NET Core application returns 404

Turns out the problem was inside location / on the try_files $uri $uri/ =404; which starts looking for files. The problem is that this is a Web API which serves JSON so there was never any content to be found to begin with. Deleting this and the virtual host configuration got everything working.


alias to take a parameter and exit after execution

Don't use an alias for that.  Use a function:

yye() { youtube-dl -f 'bestvideo[ext=mp4]+bestaudio[ext=m4a]' "$@" && exit; }

The above command defines the alias.  If you want it to be permanent, put the above in your ~/.bashrc file.

The command yye may be invoked as:

yye <url list>


How to use a network video stream (from an ip webcam) as a webcam

What you might use is an application that puts the ip input on a video4linux device:

DroidCam

I use droidcam (http://www.dev47apps.com/). Install the droidcam app on android (free version should suffice) and the client on your ubuntu machine. Go to the folder in which you extracted the droidcam tar bal (tar.gz).

chmod u+x install
sudo ./install

Run it :

droidcam

It does all the work for you. The only thing you should provide is the (local) ip adress of your android device.

Test it using vlc:

vlc v4l2:///dev/video0

To let skype use the v42l device:

LD_PRELOAD=/usr/lib/libv4l/v4l2convert.so skype

This is what i do, but there might be other ways to convert to have an ip stream convert as a video device which can be displayed by skype,etc.


how to make a binary file to start as a service

You need to create a systemd service. Create the file /lib/systemd/system/cmak.service with the following content:
[Unit]
Description=
After=network.target

[Service]
Type=simple
ExecStart=/bin/cmak

[Install]
WantedBy=multi-user.target

You can enable/start the service with systemctl enable cmak.service ; systemctl start cmak.service. This is just a very simple example and can/should be modified to suit your needs.


SSH: Permission denied, please try again. While tryng to connect to remote 12.04 server

I'm not sure exactly what is going on but you should try changing the password using the console. Open a VNC session and open a console. Then enter:

passwd

You will then be prompted for a new password. Enter a good password and then confirm it. Now restart the server and see if the password sticks. Like I said, you should disable root login to your ssh server. If you want to change the root password, then login to your root account and use the passwd command. If you forgot your root password, then enter:

sudo passwd

This will set the password for the root user. See if that helps your situation.


Create custom keyboard shortcut in Ubuntu 17.10 / 18.04

Follow the steps below.

Go to Settings -> Devices -> Keyboard.
Scroll to bottom, and click the "+" (plus) sign.
Enter the command and assign a shortcut key.


If you install Ubuntu, your data in /home will be preserved, separate partition or not.

  Since Hardy it is possible to reinstall Ubuntu without losing the content of the /home folder (the folder that contains program settings, internet bookmarks, emails and all your documents, music, videos and other user files). This can be done even if /home is not on a separate partition.

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

If you install another distro, Fedora, Mint, Debian, you will loose your data in /home if it is not on a separate partition.

Either way, if you value your data, back it up.

You can, of course, delete everything outside of /home , shrink the partition, and use it as a new home.

Personally, I give each distro a unique /home directory and use a data partition.


Refer to this article for instructions regarding how to manually download Windows Subsystem for Linux distro packages that aren't in the Microsoft store (this includes Ubuntu 16.04).

As @user535733 pointed out in the comments, WSL is a proprietary service created by Microsoft. Therefore, you will be able to do more by either using a virtual machine (VMWare or VirtualBox) or by dual booting Ubuntu with your existing windows installation.


How to configure bluetooth applet to start OFF or as the last state when logging in?

If you're sure you don't want Bluetooth, you can untick it from the list of applications that run at start-up. How exactly you do it will depend on your desktop environment but in Lubuntu 12.10, here is where you untick it:


Borken bar instead of vertical bar Ubuntu Server 14.04

As a workaround you can use Unicode for that:

Ctrl+Shift+u

007C

Enter

or with this command:

xmodmap -e "keycode 24 = bar"

check the value for keycode with:

xev

sample output:

KeyPress event, serial 36, synthetic NO, window 0x2a00001,
    root 0x233, subw 0x0, time 31839373, (54,162), root:(54,226),
    state 0x90, keycode 94 (keysym 0x7c, bar), same_screen YES,
    XLookupString gives 1 bytes: (7c) "|"
    XmbLookupString gives 1 bytes: (7c) "|"
    XFilterEvent returns: False

make it permanent with this steps:

Open the file .xinitrc

nano ~/.xinitrc

and add this line:

xmodmap ~/.Xmodmap

Open the file .Xmodmap

nano ~/.Xmodmap

and add this line

keycode 24 = bar


There's an old bug about this here.

I am currently using a forked version of reprepro from here. This forked version was actually created to enable multiple versions but also has support for ddeb files. It's not perfect and has some annoyances, primary being that the ddeb files are put into a special component. I opened a bug report about it here that talks about how to configure your sources.list to get them to actually be available to install after adding them to the repo using the custom reprepro.


Cannot mount external HDD because of checksum error on a specific file

Because I had another machine running macOS I mounted the external hard disk on my MacBook and deleted that file.

Seems like that was a file which was corrupted somehow.

Then it worked.


Ubuntu 12.04 host – Virtualbox 4.1.12 Guest=Windows 7 – Network will not connect

Chances are that the kernel has been updated but the virtualbox drivers haven't been rebuilt. Try commands:

find /lib/modules | grep vboxnet
uname -a

To fix that use sudo /etc/init.d/vboxdrv setup


Just type exit in grub and ubuntu will boot normally


Bluetooth not working with xHCI (USB 3.0) on Intel 7260 chipset in Asus UX301LA

I solved this problem on my Asus Zenbook UX301L by replacing the Intel 7260 wifi/BT adaptor with an Intel 7265 wifi/BT adaptor. The problem immediately vanished. The only problem was getting the back off the UX301L. Not easy.


How do I get my old xmodmap settings back?

This should work:

xmodmap -e "pointer = 1 2 3 4 5 6 7 8 9"

just replace the 25 with 2.

Or, if you added this to your ~/.Xmodmap file, delete the line.


Wireless doesn't connect in Ubuntu 10.04 Lxde

This is a weird issue, it sounds like network manager is broken or the configuration is broken. Although I can't see how lxde could have caused that issue.

Can you boot up using a LiveUSB and see if your broadcom wireless works? Make sure to add in the binary blob using jocky from System > Administration > Hardware Drives. Once you've confirmed the hardware is fine, you have three options:

Reinstall Ubuntu
Attempt to investigate the issue (you really need direct access to the machine to do this right)
Attempt to find an expert to look at it.

Sorry that I can't find an easy solution for you.


Easiest way to package a directory of MATLAB scripts into a Launchpad PPA

You can follow the documentation in Debian New Maintainer's Guide: http://www.debian.org/doc/manuals/maint-guide/dreq.en.html (chapter 4).

Also, take a look at the package anarchism for insight:

apt-get source anarchism

whose ./debian directory contents should very closely follow what your project needs. Making necessary changes or rolling your own control, copyright, changelog and rules is sufficient for building a debian package (issue dpkg-buildpackage -rfakeroot).


How to install aptitude without an internet connection?

To install aptitude without internet you first need to have it with all of its dependencies.

Go to: http://packages.ubuntu.com/natty/aptitude to grab aptitude and all of its dependencies.
Put all the deb packages inside a folder and when on the PC you want to install aptitude go to the folder in the terminal and do sudo dpkg -i *.deb

It will install aptitude with all of the dependencies in that folder.

NOTE - I am also one of those that enjoys Aptitude over apt-get, not only because you do everything from one single command but when you do a show, search or install it is more human friendly than the other.


Which directories should I include in my backup to use pass on another computer?

It stores everything in your home directory, specifically in ~/.password-store

Note that you can look up documentation for most Ubuntu commands by finding their manpage - for example, for the pass command you can either use the command man pass from a console window, or do a Google search for ubuntu manpage pass

In this case the latter found me this: http://manpages.ubuntu.com/manpages/trusty/en/man1/pass.1.html


It's recommended to create important data backup first.

Boot Ubuntu Live CD/USB
Open GParted
Resize down your current parttion to free enough space for the second partition
Create new partion at the free space you've made

(Please, note if more details required.)


I think it would be easier to format from scratch and then encrypt again.
Anyway, as suggested by David Foerster, it is possible to resize encrypted partitions from the command line.

You should find all information here:
https://help.ubuntu.com/community/ResizeEncryptedPartitions


Trying To Install Skype On Ubuntu 12.04LTS

Try the below command and remove the broken package,

apt-mark showhold
sudo apt-mark unhold <package name>

After doing so remove the package for skype and install it again.


I have the same APU, but in a Desktop.  I'm really not much into gaming, but a friend of mine is, and also an AMD fanatic.  He installed this Driver on my machine, and it works like a charm.  Keep in mind that this is still a beta driver.

Also you can visit this page, for fixes, and enchantments that are available in this driver.


I solved this problem by going to Oracles mysql documentation on MySQL APT Repository which was a huge help, following all the instructions on the page allowed me to install mysql successfully.

What I did:

Download the mysql-apt-conf tool from http://dev.mysql.com/downloads/repo/apt/
Install the package using sudo dpkg -i /PATH/version-specific-package-name.deb
When installing select MySQL Server & Cluster to whatever you want by pressing enter and selecting one of mysql-5.7 or mysql-8.0 then go to Ok and press enter
Then sudo apt-get update(this step is required only for Ubuntu 17.10 or below)
Run sudo apt install mysql-server
After the main packages are installed run mysql_secure_installation, this will configure the password and other security stuff for mysql

Update

If anyone ran or had to run mysql_secure_installation withsudo, please note that you might not be able to login into mysql unless you use sudo. When this happens login to mysql console created a new user for mysql then flush all privileges. Check this question right here Connect to mysql server without sudo


Apache with xDebug loaded but not working?

Of ocourse, one must remember to pass a HTTP "GET" parameter named 'XDEBUG_SESSION_START` and setting it to the IDE KEY.


Not sure if you fixed this problem. I just upgraded fro Ubuntu 14.10 to Ubuntu 16.04.1. when rebooting I went into busybox. I used an old live cd of Ubuntu 13.10 but any live cd prob work and I typed in disks, in the launcher and opened the program disks and made sure the hard drive was not mounted, then opened a terminal and on my case the busybox msg said sda1 needed manual check or something so i did fsdk /dev/sda1 in the terminal with the drive not mounted (booted into live CD). Then rebooted and went into the recovery menu and selected fsck on the menu again to make sure then it booted OK.


First, there is no such thing as a HomeGroup in Linux, MacOS, or Windows starting with Win10.
Second, if you are talking about that specific error when running smbclient you would need to enable SMB1 ( Samba calls it NT1 ) on the client side in /etc/samba/smb.conf. Right under the workgroup = WORKGROUP line add this one:
client min protocol = NT1

Of course the server you are trying to connect to must have SMB1 enabled on its side. If you kept your Win10 machine up to date it is disabled so you will have to enable it there. If the server is running Ubuntu 20 or anything with the same version of samba you would have to edit smb.conf on that machine and add:
server min protocol = NT1

Then restart samba:
sudo service smbd restart
sudo service nmbd restart

If you don't do that on the server you will likely get a protocol negotiation failed: error.
That will probably eliminate the SMB1 error message. Whether you can "discover" all the workgroups and hosts in Nautilus is another matter. If you have to turn the clock back to SMB1 days you need to follow the rules set at that era ... name resolve order, host name length restrictions, etc ...


Just checked the wine site, and 1.4 is available from their PPA. Head to your terminal, and add the PPA manually:

sudo add-apt-repository ppa:ubuntu-wine/ppa

Then update your APT package information by:

sudo apt-get update

You should then be able to install 1.4 with the following command in the Terminal:

sudo apt-get install wine1.4

Let me know if that works.


Enabling and disabling Ethernet in ubuntu 15.10

This tutorial is for Ubuntu Unity (the default version/download). If you have another flavor (MATE, KDE, GNOME, etc.), comment on this answer and I will update it.

Click the gear and wrench icon in the launcher to open System Settings. If you can't find this icon, or it isn't there, just search for it in the Dash (~Start Menu).
Once Settings opens, double click the Network tile.
Once there, select the Wired or Ethernet option in the panel on the left.
Toward the top right of the window, there will be a switch that says On. Flip it off.

That should disable the adapter. Just turn the switch back on to reset it.

Terminal Method (advanced, but works for all flavors)

Open a terminal by pressing Ctrl+Alt+T.
In the terminal, type sudo ip link set down eth0.
Enter your password when prompted and hit Enter (NOTE: you will not see anything being entered. This is a security feature, and your password is indeed being entered.)
Now, enable the Ethernet adapter by running sudo ip link set up eth0.

If you need any clarification, or have a different version of Ubuntu than Unity, please leave a comment and I'll do my best to help :-).


You need to activate the Canonical Partners repository.

Start Software & Updates (find it in the Dash)
Select the Other Software tab
Mark Canonical Partners


Ok, I guess I found a work around. You need to right click on the panel and add a shutdown applet from the list available online


I have solved the issue.

I found a setting in the alsamixer called auto mute, disabling this did the trick!
exact steps:
open terminal and type "alsamixer"
Press f6 and choose the soundcard making the popping noise.
Navigate to automute and press down.

Hopefully, this can save other the trouble I been through


Always prompts for username and password when printing

Ok, so I've decided to take a different approach and connect via LPD server. Windows 7, 8 and 10 have a built-in LPD server. It can be activated in the Control Panel under Programs -> Activate Windows functions in the section Print services. Then the printer can be added in CUPS, choosing LPD protocol.

The printer address will look like this: lpd://windowspc/printersharename (in my case, I had to use an IP address. So, it looked like this: lpd://192.168.1.x/printersharename).

And it works! Yay! :)


Updating from 10.04 to 14.04 with minimal disruption

There are two types of upgrades:

Normal package upgrades
Release upgrades

The first don't change the version of Ubuntu, only the specific packages involved.

Yes. You have to upgrade to 12.04 before upgrading to 14.04.
The second type of upgrade, release upgrades, changes the version of Ubuntu, and affects every package (almost all of them will get upgraded, some very stable packages get version bumps but remain the same).

Q3: Upgrade advice

Don't do release upgrades (to 12.04 and onwards) now. Stick to 10.04 for a while until you get comfortable with the environment. 10.04 Server will continue to receive security upgrades until April, 2015. So you have until then to make the upgrade to 14.04. However, don't save it until the last minute!

Study the changelog carefully before upgrading packages. You can use the Synaptic Package Manager, if you have a GUI, to do so, or aptitude. There will be interruptions if a service is involved (most service packages stop and restart the service concerned). However, major breaking upgrades won't be available (such as between Apache 2.4 and Apache 2.2), so the service should restart up fine in most cases.

Do not use the backports or proposed repositories. They may introduce packages which may break things. Until you know for sure that absolutely need one, don't enable backports. Never enable proposed on a production server.


Using Inkscape with Ubuntu (files on another partition)

It would appear you've installed the snap version of inkscape which has no ability to use the removeable-media plugin so you're restricted to only opening files in $HOME. To check run this

snap list

If so either continue as you're presently doing if wanting to use the snap version, use the snap edge version or install the .deb version which has no restrictions.

The edge (dev) snap can be connected to removeable media though isn't by default. Maybe at some point the stable version will also get that possibility..
To do that,

sudo snap refresh inkscape --edge

Then connect to plugin

snap connect inkscape:removable-media

For the .deb version just,

 sudo apt-get install inkscape

You can keep both versions or remove the snap. The snap version is shown as Inkscape, the .deb as Inkscape Vector Graphics Editor though from context menu both are just inkscape..


Create a named pipe like this:

mkfifo ~/.mplayer/pipe

Then, put the following line in ~/.mplayer/config:

input=file=/home/<username>/.mplayer/pipe

or you can run mplayer with input argument:

mplayer -input file=/home/<username>/.mplayer/pipe

Now use System Setting->Keyboard->Shortcut and add a shortcut with the command parameter as (see mplayer -input cmdlist for the command list):

echo "<mplayer command>" > /home/<username>/.mplayer/pipe

e.g. echo "pt_step 1" > /home/<username>/.mplayer/pipe for next track.

and then assign a key to this shortcut.


How to make numpad arrows emit EXACTLY the same keycode (or key event) as the arrow keys?

Create a xmodmaprc file:
keycode  79 =  Home   Home   Home   Home
keycode  80 =  Up     Up     Up     Up
keycode  81 =  Prior  Prior  Prior  Prior
keycode  83 =  Left   Left   Left   Left
keycode  85 =  Right  Right  Right  Right
keycode  87 =  End    End    End    End
keycode  88 =  Down   Down   Down   Down
keycode  89 =  Next   Next   Next   Next

To certify that the above keycodes are correct
in your machine, launch xev, press the keys, and see the keycode they generate.
Load the file at every X login with xmodmap xmodmaprc.


ffmpeg / avconv follow_mouse not working?

Option placement matters. -follow_mouse is an input option, but you're attempting to apply it to the output, so ffmpeg will ignore it. Try:

ffmpeg -f alsa -i pulse -f x11grab -show_region 1 -follow_mouse 100 -r 10 \
-s 960x540 -i :0.0+10,200 -acodec pcm_s16le -qscale 0 screencast.avi


How to tar the n most recent files with spaces in filename?

xargs to the rescue! One way is to use xargs to create argument list but put each file inside of quotes:

echo `ls -t1 | head -10 | xargs -I'{}' echo \"{}\"`

Other option it to use xargs to directly call tar in append mode (-r) and then compressing it at the end (you cannot create compressed archives in append mode):

ls -t | head -10 | xargs -I'{}' tar -rvf ~/backup/"$i".tar '{}'
gzip ~/backup/"$i".tar

The advantage of the 2nd approach is that you can change 10 to any other, even very high number and it will still work without getting too long argument list.


What's the easiest way to unrar a file on Ubuntu 12.04

First you need to install unrar:

sudo apt-get install unrar

If you want to unpack all files within the .rar files in the same directory:

unrar e -r /home/work/software/myfile.rar

if you want to unpack the files in full path:

unrar x -r /home/work/software/myfile.rar


Best Way To Mass Install Ubuntu 12.10 over 1000 PC

Install Ubuntu via PXE Boot and take the configuration from a preseed file. https://help.ubuntu.com/lts/installation-guide/i386/preseed-intro.html

You need a TFTP-, DHCP-, NFS- and a Webserver, which can be one machine in your local network. After the full configuration, you will have an unattended install of ubuntu.

If you need further configuration on all the pc you can use puppet to provide the same configuration to all machines.
https://help.ubuntu.com/12.04/serverguide/puppet.html

This is a lot of configuration bevor the installation, but it is less work then installing every pc by hand.

Another option is to create an image of your customized Ubuntu an share it via multicast with clonezilla: http://www.corbacho.info/clonezilla/clonezilla.html

Further configurations can be done with puppet again.


Ubuntu 13.10 Installation Issues on a Lenovo W510

Install 3rd party software during installation.


How can I download THEN install packages?

Just add the -d (or --download) option to any apt-get command. This approach is simple and effective.

Don't worry about dependencies, they're downloaded as well.
Security is maintained, all integrity checks are still done just like a regular installation.

E.g.:

$ sudo apt-get dist-upgrade -d
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following NEW packages will be installed:
  linux-headers-3.19.0-39 linux-headers-3.19.0-39-generic linux-image-3.19.0-39-generic linux-image-extra-3.19.0-39-generic
  linux-signed-image-3.19.0-39-generic
The following packages will be upgraded:
  keepassx linux-headers-generic linux-libc-dev linux-signed-generic linux-signed-image-generic
5 upgraded, 5 newly installed, 0 to remove and 0 not upgraded.
Need to get 67,0 MB of archives.
After this operation, 289 MB of additional disk space will be used.
Do you want to continue? [Y/n]
Get:1 http://nl.archive.ubuntu.com/ubuntu/ vivid-updates/main linux-image-3.19.0-39-generic amd64 3.19.0-39.44 [16,9 MB]
[...]
Fetched 67,0 MB in 4s (13,5 MB/s)
Download complete and in download only mode

At a later time when you're offline, you can run sudo apt-get dist-upgrade to complete the installation. (Note the Need to get 0 B/67,0 MB of archives.)

$ sudo apt-get dist-upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following NEW packages will be installed:
  linux-headers-3.19.0-39 linux-headers-3.19.0-39-generic linux-image-3.19.0-39-generic linux-image-extra-3.19.0-39-generic
  linux-signed-image-3.19.0-39-generic
The following packages will be upgraded:
  keepassx linux-headers-generic linux-libc-dev linux-signed-generic linux-signed-image-generic
5 upgraded, 5 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/67,0 MB of archives.
After this operation, 289 MB of additional disk space will be used.
Do you want to continue? [Y/n]

It also works with install or other commands:

$ sudo apt-get install -d libpcap-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
  libpcap0.8-dev
The following NEW packages will be installed:
  libpcap-dev libpcap0.8-dev
0 upgraded, 2 newly installed, 0 to remove and 5 not upgraded.
Need to get 214 kB of archives.
After this operation, 749 kB of additional disk space will be used.
Do you want to continue? [J/n]
Get:1 http://nl.archive.ubuntu.com/ubuntu/ vivid/main libpcap0.8-dev amd64 1.6.2-2 [210 kB]
Get:2 http://nl.archive.ubuntu.com/ubuntu/ vivid/main libpcap-dev all 1.6.2-2 [3448 B]
Fetched 214 kB in 0s (1776 kB/s)
Download complete and in download only mode

To clear the cache (stored in /var/cache/apt/archives):

sudo apt-get clean


Ubuntu 17.10 Desktop: is there a limit of maximum 8 Nvidia GPUs simoultaneously connected?

I am using two 850 watt power supplies on a Z170-AR motherboard along with one of those 4 way PCI-E  splitters and a m2 to  PCI-E adapter to get 10 PCI-E sockets. I have 5 GPUs on each 850 watt supply, each GPU set to 90 watts each using "sudo nvidia-smi -pl 90" and I also had two problems going from 8 to 10 nvidia GPU.

First was a bad SATA power connector, on the SATA cable going to the GPU 9 and 10 riser, one of the wires to the last SATA socket has its insulation melted off, so I guess it wasn't properly crimped at the factory (caused the miner to give an error message about losing communication with the PCI bus after it started running, causing all the GPU fans to go to 100% and the miner crashing).

The second issue I had was the xserver was not starting once I went over 8, i solved this by choosing advanced at the boot menu going into recovery mode, picking root shell from the menu and then trying xinit which ended with a seg fault, so I tried running "nvidia-xconfig" to write out a default config with one gpu and one display. I then exited and hit resume from the recovery menu and the xserver started as normal, and then I opened a xterminal ran nvidia-smi and saw 10 cards and started the claymore miner on its merry way


Try fn+F11.

fn is found just beside the left Ctrl key on my keyboard.


How can I make "sed" be specific when looking for a phrase

it depends how the strings are delimited

Say thy are delimited by spaces then something like this may do the trick:

sed 's/ .*foobox.*\.com / /g'

The 'g' will make sure that if there is more than one match in a line all matches will be substituted

tested with

DEF  dl-web.foobox.com XYZ
DEF dl.foobox.com XYZ
DEF  foobox.com XYZ
DEF  fooboxdownloads.com XYZ
DEF  www.foobox.com XYZ
DEF  www.fooboxdownloads.com XYZ

producing

DEF XYZ
DEF XYZ
DEF XYZ
DEF XYZ
DEF XYZ
DEF XYZ


How to get 12.04.3 to a supported LTS kernel (3.13.xx kernel or 3.2.xxx kernel)?

You can install kernel 3.13 by running

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

Next time it is better to download and install the latest point release, like 12.04.5. You will not need to install lot's of updates and will have the latest major kernel for this LTS release.


Short answer : No.

Long answer : Maybe it will become available if :

One day TOOKY decides to port Ubuntu Touch for your device (most unlikely).
Xda-developers decide to port it (depending on the popularity of your phone).
You develop it (it's not as easy to do as to say).

What is sure though, is that for now, Ubuntu Touch is still in development and is only aiming Nexus devices. All other phones and tablets should wait and hope. That's all we know for sure.


Insert value from JSON file into filename path

You can use command substitution

cp ~/foo.js /$(jq '.folderName' info.json)/foo.js

Since JSON strings are quoted by default (unless jq is used with the -r raw output flag), there's no need to quote the $(...) in this case.


Infinite boot loop - Ubuntu 18.04 (System Boot Order not Found)

You can use Boot Repair. It will regenerate your GRUB and boot installation. To install it:

sudo add-apt-repository ppa:yannubuntu/boot-repair
sudo apt install --assume-yes boot-repair
boot-repair

If you cannot access to Ubuntu anymore, use a live CD/USB: https://ubuntu.com/tutorials/try-ubuntu-before-you-install#1-getting-started and select the "Try Ubuntu" option. Then install there Boot Repair and follow instructions.

Also, as you have an "old" laptop, you should use Xubuntu or Lubuntu, which are lightweight distributions, maybe more suitable for your laptop's configuration.


How to get more space in the / partition in this specific case

Create a backup of all important files. Just in case you mess up.
Remove swap. How can I turn off swap permanently?

From gparted live session ...

enlarge /home/ with the 411Gb unallocated
shrink /home/ and create unallocated space at the beginning of /home/
enlarge / with the unallocated space

When done ...

Recreate swap. How do I add a swap partition after system installation?

By the way: I myself have used a desktop with size of 10Gb for / and never ran out of space. You could also spend a little time investigating why it is growing. Maybe there is something to remove. Or files that should be on /home/. Log files that keep growing. Etc. 10Gb is a lot if you refrain yourself from installing anything you see. Also check software center for software you never use anymore. Got mysql installed because you wanted to check how a database works?


Tabs and new windows don't differ a lot - they're all a new instance of an interactive shell.  There is a set of default variables which will show up in any instance of the shell : PS1 , USER, SHELL , etc. These are all documented in the bash manual , or whichever shell you use.

If you manually declare a variable in a window , it won't be visible to new tab or new window unless you use export keyword.  For example, export FOO=BAR will make variable FOO visible to all new tabs or windows. If you declare it as FOO=BAR  , it won't be visible.


Why absolute path doesn't work for binary execution?

Figured it out. After running file /path/to/mybinary I realized it was a 32bit binary so I had to install 32 libs. Then the problem went away!


Primary drive not detected during installation via liveUSB

First, you may be conflating two unrelated things. You wrote:

  When booting the liveUSB in UEFI mode, Ubuntu is unable to find other devices. My SSD does shows up when booting the liveusb with SATA operations in AHCI mode but than my windows doesn't work with AHCI what is not an option in my case.

You describe two issues as if they were related, but they aren't:

Boot Mode (BIOS/CSM/legacy vs. EFI/UEFI) -- This refers to the type of code the computer runs as a boot loader. Since the 1980s, most PCs have used BIOS firmware. BIOS is primitive and 16-bit in nature. Since late 2011, though, manufacturers have shifted rapidly from BIOS to the newer UEFI (which is EFI 2.x; I generally use "EFI," as it's the more generic term, and Macs still use EFI 1.1). UEFI is written in C and uses the same bit depth as the CPU and OS (32-bit or 64-bit; although there's some wiggle room in matching CPU, EFI, and OS bit depth, no EFI uses 16-bit code natively). Most EFIs have a feature called the Compatibility Support Module (CSM), which enables them to run BIOS-mode boot loaders. Your pre-installed Windows almost certainly boots in native EFI mode, and enabling the CSM to install Ubuntu would be much more likely to create problems than to solve them, so I strongly recommend sticking with EFI mode unless you have a compelling reason to do otherwise. You've described no such reason.
Disk access mode (IDE, AHCI, or RAID) -- All hard disks are accessed via a chipset on the motherboard or plug-in card or interface device. In most modern motherboards, you can tell the system to require the OS to understand the specific chipset by setting a disk access tool to "IDE" mode. More recently, AHCI mode provides a sort of software standardization, that enables AHCI drivers in the OS to be used rather than IDE drivers. This can be helpful for getting disks to work on newer motherboards, for which the IDE drivers might not yet be available. Finally, many motherboards put RAID control in the same menu as an IDE-vs-AHCI toggle, although this isn't really the same dimension. RAID enables multiple disks to be bundled together and accessed as if they were one disk, resulting in improvements in speed, reliability, or both. The type of RAID implemented by most motherboards is a type of software RAID mediated by the firmware, aka "fake RAID" -- although it's not really fake, just based in software. This RAID type generally causes more problems than it's worth, IMHO, because it can be difficult to get it to work in a multi-boot environment, so I recommend against using it.

The effect you describe is almost certainly caused by the IDE-vs.-AHCI setting; it sounds like your disk/SSD controller is not yet supported by Ubuntu 16.04, but it can be made to work via the AHCI setting. This has nothing to do with the BIOS-vs.-EFI setting, and since Windows is almost certainly installed in EFI mode, you should leave your firmware configured to boot in EFI mode (with "CSM," "BIOS," or "legacy boot" options disabled). In principle, there are four ways you could proceed:

Switch the IDE/AHCI setting whenever you reboot -- This would be awkward in the extreme, so I'm mentioning it merely for the sake of completeness.
Get Ubuntu to work with IDE mode -- You say you're using Ubuntu 16.04 LTS. If by this you mean the original version that was released in April of 2016, then it's got a somewhat old kernel (in the 4.4 series). Using the latest in the 16.04 series, though (16.04.2) will upgrade the kernel to something in the 4.8 series, which may be enough to get Ubuntu working with your hardware's IDE mode. If that fails, try 17.04, which comes with a 4.10 kernel. If that fails, then you'd need to try custom-built kernels, possibly patched with experimental drivers, or in the worst case with a driver you write yourself. This becomes progressively more difficult and is likely beyond your skill level.
Use another Linux distribution -- Fedora, OpenSUSE, Arch, and other Linux distributions all compile their kernels independently of one another. Thus, one or another of these may have a newer kernel, or may have compiled it with different options that might enable it to work with IDE mode on your hardware when Ubuntu won't. Note that Ubuntu derivatives, such as Mint, are unlikely to do any better than Ubuntu, since these Ubuntu derivatives generally use unaltered kernels from Ubuntu.
Get Windows to work with AHCI mode -- Windows certainly supports AHCI mode, and if you were to re-install it with AHCI mode enabled, it should work. It's probably easier to switch your existing installation to use AHCI mode, though. I'm not a Windows expert, and this isn't a Windows forum, so I can't provide detailed directions here; but a quick Web search turned up quite a few pages on how to do this. This page is one of the first I found; but as I've never done this and I'm not a Windows expert, I can't promise that this procedure will work.

Overall, I'd say you should try a more recent Ubuntu version first with IDE mode; but that's mostly because I'm unfamiliar with the Windows procedures for switching disk mode and I therefore can't assess the risks of that approach. If a Windows expert tells you that switching Windows to AHCI mode is safe, you might want to try that approach instead. Of course, if even Ubuntu 17.04 doesn't work, then switching Windows' boot mode may be your best choice, unless you're willing to try another Linux distribution.


I figured it out myself:
I installed gnome tweaks and go to Power -> Suspend when lid is closed uncheck that.


When laptop suspends (sleep mode) it goes in a low power mode keeping all your opened programs' data in RAM, and when it ran out of battery and shut down it could have been in the process of writing some data, all I can tell is not only you you lost some data which weren't saved but also got important files and settings corrupted thus the system could not understand what those half-written data were and set most things back to default or whatever.

It's always best to hibernate if you're going away for a long time so the OS saves all your data on your hard disk.

And also, about the keyrin issue, it seems like Ubuntu automatically turned on Auto-login. Refer to the answer on this question.


I was able to make a slight variation on your command successful using the -r300 option from @drN  The -r option allows you to set the output resolution in the pdf as well as png.

gs -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dPDFSETTINGS=/default \
    -dNOPAUSE -dQUIET -dBATCH -dDetectDuplicateImages \
    -dCompressFonts=true -r150 -sOutputFile=output.pdf input.pdf


How to mount unused space to my ubuntu partition?

Your 95 GiB system partition, sdb3, is at the end, after a small EFI partition, sdb2. First on your drive is the very large 836 GiB, ext4 formatted /dev/sdb1 partition. There is no "best way" to partition. In the end, it depends on the preference of the user. I see following options:
Leave the partitions as they are
This partitioning is not straighforward, but still is perfectly fine and useable as is.

95 GiB is quite large, certainly much more than needed by the Ubuntu system files. An Ubuntu system needs 15 tot 20 Gib, thus you can perfectly use that partition also for storing quite some user data. This is how your system currently is configured. You therefore could keep things as is, and use that partition to store all files that are in active use.
The 836 GiB could then be used as a larger data storage area, for storing archived data, photo's, movies, music, .... It could also be used for audio or video editing, tasks that require large amounts of data.

Reinstall
A reinstall would be by far the easiest to get to a more "straightforward" partitioning. You then let the installer erase and use the whole disk. You will end up with an EFI partition at the start, and then one single partition on the entire disk. This is the most simple, but also the default, setup.
Repartition
The same could be achieved if you repartition manually. That, however, would be a lengthy process because it would require moving partitions, making the system bootable again, etc. Not recommended, unless you have very good technical knowledge about linux.
Remark
Whatever you do, make sure you have a good backup of your personal user data anytime. In any of the scenario's, but also during daily computer use, something can go wrong, causing you to loose your personal data. An operating system is downloaded for free and installed in less than an hour. Your personal data, once lost, can never be replaced.


Why am I offered Nvidia driver 440 for a GTX 550?

It will often offer you the newest stable version. For myself it took some time to get version 384 running smoothly so I decline all newer versions. It's better with the devil you know than the devil you don't know.


OpenGL apps (Games) disappear after leaving fullscreen

Go to the steam and reclick the steam icon again this should make you select things that runs on steam well atleast it is for me


There is some driver for a Epson AcuLaser c1700 printer enable for Linux (Ubuntu)?

As mentioned in the comments, you can use the compatible printer driver of Xerox Phaser 6000B. The driver can be downloaded from https://www.support.xerox.com/support/phaser-6000/file-download/engb.html?operatingSystem=linux&fileLanguage=en_GB&contentId=116065&from=downloads&viewArchived=false


Performance issues running Ubuntu 10.04 as guest OS in VmWare with Windows 7 host?

I suppose that running VirtualBox on a USB key is the problem. USB keys have slower write times than harddrives. So what happens is that the Ubuntu VM writes data to it's disk (which is also stored on the USB key I suppose) and the data can't be written fast enough on the key so the VM hangs.

If you copy the Ubuntu hard disk image to your harddrive and use this one to boot Ubuntu are you experiencing the same problems?


Sounds to me like you're having driver issues, could you try booting up Ubuntu 16.04 from a USB stick and check if you're still experiencing the problem?

(Doesn't matter whether it's Kubuntu or Ubuntu here, and btw - checking your computer's characteristics makes me think that Lubuntu might be better for you in the end, since it's desktop environment is LXDE, which is lighter on your computer's resources)

Maybe a lower kernel (Ubuntu 16.04 has 4.04, 17.10 has 4.13) would work with your hardware.


Pip install with weird behavior (not failing but also not working)

I don't quite get the reason for this, but apparently this stems from the fact that pip was installed via apt and I'm trying to upgrade it with pip. So the solution was to remove pip via apt and install it with get-pip.py, which is independent of apt.

Now both commands work well.


How to install DevStack when there's a proxy with self-signed ssl certificate?

try this

https://ask.openstack.org/en/question/88105/erros-devstack-stableliberty-install-behind-proxy-self-signed-ssl-certificate/?answer=88293#post-id-88293

I've managed to get it working, but I also had to disable the tempest service (the testing integration tool)

basicly i added the disable_service tempest into the local.conf file.

Good luck :)


Change background from terminal for user as root [Gnome3]

You don't need to set up a cron job as root. You can simply run crontab -e as the user you want to run the job as, and configure the job to run once daily for that user. It will then run for that user, and you can just delete the cron job for the root user.


Wifi for Centrino Wireless-N 1000 Intel Corporation (HP Pavilion dm4 - 2070us) is not working

After trying out different distributions and struggling with my wireless card I finally stumbled upon a link that gives a work around to the problem. Apparently the new kernel fails to detect the Centrino 1000 N wireless card in some laptops(hp dm4) while there are other laptops on which it works completely fine like Lenovo Y560P.

The following link gives the solution!! Even though I am not sure whether this work around will have any greater impacts later or not, but for now its working fine.

http://community.linuxmint.com/tutorial/view/608

"To (temporarily) get the wireless working on newer kernels:

sudo mv /lib/firmware/iwlwifi-1000-5.ucode /lib/firmware/iwlwifi-1000-5.ucode.backup
sudo modprobe -r iwlagn
sudo modprobe iwlagn

This should make the wireless use the old 1000-3.ucode which works at the moment."


I cant push my app to ppa with quickly submitubuntu command

You need to create a SSH key and upload it into Launchpad.

Instructions:

Step 1: Install OpenSSH. On Ubuntu, you can install OpenSSH by opening your terminal and typing:

sudo apt-get install openssh-client

Step 2: Once OpenSSH is installed, stay in the terminal and type:

ssh-keygen -t rsa

Step 3: When prompted, press Enter to accept the default file name for your key.

Step 4: Next, enter then confirm a password to protect your SSH key. Your key pair is stored in ~/.ssh/ as id_rsa.pub (public key) and id_rsa (private key)

Now you need to upload the public portion of your SSH key to Launchpad.

Source: Launchpad - https://help.launchpad.net/YourAccount/CreatingAnSSHKeyPair


GNOMEish file managers need a place to put the trashed files.

Deleted files on your "home" partition go to:  /home/$USER/.local/share/Trash
Deleted files on other partitions can't be copied "home" for performance and space reasons.

So it tries to put them in the /[partition mount]/.Trash-$UID folder.  Without rw access to that folder, no trash.

Run this bash in the partition root as the user who needs a trash.

sudo mkdir .Trash-$UID && sudo chown $USER:$USER .Trash-$UID

You can delete this folder and secure the partition / to disable that feature.

sudo rm -rf /[partition mount]/.Trash-xxxx
sodo chown root:root /[partition mount]/


Is it normal for WiFi signal levels to fluctuate this wildly?

In order to check if other Wifi routers in your area use the same channel as you, you can run this command in a terminal:

sudo iwlist <adapter_name> scan

You can configure your router to support n exclusively in order to eliminate g connections that are slower.
You can switch the bandwidth setting to 20 MHz so that the router uses one channel only for n connections.  One channel supports up to 60 Mbps actual speed which is more than enough for your internet needs.  The 40 MHz setting uses two channels and if the area is not very clean, the second channel may disconnect and create speed fluctuations.


Ubuntu 14.04 how to change icon for .docx file type?

Change the icon in your current icon theme. The themes can be found in /usr/share/icons or ~/.icons directory.


Why do file transfers over USB slow down my whole computer?

This sounds like a classic case of system load to me.

When you read/write something to/from a drive, it needs to lookup file information. However, that file may be fragmented, in different locations, or even organized.

When you copy something from your drive to a USB, you have to read a (potentially) fragmented file and then re-write it to another storage medium. With some systems (read EXT), it is often faster than other systems (cough NTFS cough). Also, if you have a bad processor, it wastes cycles for other things trying to copy things over.

There is really nothing you can do to solve this issue. There are workarounds, however:

Defragment your hard drive.
Use an EXT formatted flash drive where possible.
Install more memory as a "cache" space.

Use excess memory as a ramdisc.

Use a better USB protocol.
Upgrade your processor/PC.
Get an SSD.


PPA for the Macbuntu theme in Ubuntu 20.04

The PPA for the Macbuntu transformation pack for Ubuntu (ppa:noobslab/macbuntu) works in Ubuntu 18.04 and earlier, but it hasn't been updated for Ubuntu 20.04. In Ubuntu 20.04 follow the instructions in the accepted answer to How to install MacBuntu on an Ubuntu minimal install?. They are up-to-date for Ubuntu 20.04.
To add the Macbuntu PPA to your software sources in Ubuntu 18.04 and earlier run the following commands.
sudo add-apt-repository ppa:noobslab/macbuntu
sudo apt-get update
apt-cache search macbuntu-os

Results of apt-cache search macbuntu-os in Ubuntu 18.04:
macbuntu-os-icons-v1804 - MacBuntu Icons & cursors uploaded on NoobsLab.com PPA
macbuntu-os-ithemes-v1804 - MacBuntu Themes available on NoobsLab.com PPA
macbuntu-os-plank-theme-v1804 - These themes are intended to use with Macbuntu by NoobsLab.com


Consult this for your answer

https://askubuntu.com/a/110374/46312


Try looking for the file in
/home/USERNAME/.config/xfce4/xfconf/xfce-perchannel-xml/displays.xml (replacing USERNAME as appropriate) instead of
/.config/xfce4/xfconf/xfce-perchannel-xml/displays.xml.

The path to the file you wrote above is an absolute path starting in the root file system.


How to enable multitouch for a trackpad?

I am pretty sure the eee's touchpad is a Synaptics type and not compatible with multitouch.