How can I create a bond interface in Ubuntu 18.04?

I installed Ubuntu Server and surprising enough it asked me if I wanted to to setup bonding.

This is the yaml file that was setup:

Location: /etc/netplan/

File Name: 50-cloud-init.yaml

File Structure:

# This file is generated from information provided by
# the datasource. Changes to it will not persist across an instance.
# To disablecloud-init's network configuration capabilities, write a file
# /etc/cloud/cloud.cfg.d/99-disable-network-config.cfg with the following:
# network: {config: disabled}
network:
   bonds:
       bond0:
           addresses: []
           interfaces:
           - enp5s4
           - enp5s9
           - enp64s0
           parameters:
               lacp-rate: fast
               mode: 802.3ad
               transmit-hash-policy: layer2
       ethernets:
           enp5s4:
               addresses: []
               dhcp4: false
               dhcp6: false
           enp5s9:
               addresses: []
               dhcp4: false
               dhcp6: false
           enp64s0:
               addresses: []
               dhcp4: false
               dhcp6: false
version: 2

I will update this as I learn more about the newer style of networking configuration in Ubuntu.

UPDATE

To change this to be static address do the following:

 sudo mv /etc/netplan/50-cloud-init.yaml /etc/netplan/50-cloud-init.old

!Note! Your default *.yaml file name may be different.

 sudo touch /etc/netplan/my-network-file.yaml

!Note! You can name your config file whatever you want just make sure it ends with .yaml

sudo nano /etc/netplan/my-network-file.yaml

In this file (my-network-file.yaml) copy from above and append the following changes:

network:
   bonds:
       bond0:
           addresses: [192.168.0.8/24]
           gateway4: 192.168.0.1
           nameservers:
              addresses: [8.8.8.8,8.8.4.4]
           interfaces:
           - enp5s4
           - enp5s9
           - enp64s0

Make sure you change the ip addresses to reflect your network. After this, I just rebooted the machine and my new network config was loaded and working.

You can alternatively use:

sudo netplan apply

This should apply the new config without a need for a reboot.

Side Note You may want to observe spacing and not use tabs as this may cause issues with your config file.

If you're unsure of your network interfaces you can do one of the following

lshw -class network

or

ip link show

Hope this helps!


The conf file are:

/var/jupiter/battery (for battery mode)

/var/jupiter/power (for AC mode)

Each file contains just one text entry that can be: powersave, high or super.

Create these files if they're missing.


which version of ubuntu should I install?

I advice you to install Ubuntu 11.10 64bits. You'll get the most from your computer.
Installing additional drivers is very easy and will be automatically proposed after the installation if it is necessary. If you are used to Windows, Ubuntu should seem far easier on that point.

If you encounter any other problem in the future, feel free to ask here on Ask Ubuntu !


OCRA is not compatible with Linux. See here and here and also on Stack Overflow. It should however work if you execute it on Windows. So that's a way to achieve what you want, but not on Ubuntu unfortunately.


Emacs keybindings for textboxes in firefox?

Is this an insane request?

No! :-)

You can install the  Firemacs addon to get emacs keybindings in Firefox:

There's also a rather technical article on MozillaZine on how to enable Emacs-style key bindings for Firefox via GTK. Both work very well, but I recommend the extension since it's so easy to install.


Problem after update: blue screen with only the mouse cursor

I experienced the same issue. After a lot of painful efforts, solved the problem in my box.

Doing the below steps fixed the problem in my machine:

* press ctrl+alt+f1 and login as root in the tty1
* cd /usr/lib/*arch-name*/gdk-pixbuf-2.0/
* find *some-version-number*/loaders/ > ~/pixbuf-files
  *(not the pkg-version,try ls cmd,only one dir would list out)*
* vim ~/pixbuf-files and delete 1st line
* cat ~/pixbuf-files | xargs -n1  gdk-pixbuf-query-loaders > *the-version-number-in-step-3*/loaders.cache
* reboot

in my case:

* press ctrl+alt+f1 and login as root in the tty1
* cd /usr/lib/x86_64-linux-gnu/gdk-pixbuf-2.0/
* find 2.10.0/loaders/ > ~/pixbuf-files
* vim ~/pixbuf-files and delete 1st line
* cat ~/pixbuf-files | xargs -n1  gdk-pixbuf-query-loaders > 2.10.0/loaders.cache
* reboot


Over the desktop Firefox icon right click → Properties
Select Basic tab
Left click on the Firefox icon.
Select path: /usr/share/icons/elementary-xfce/apps/48/firefox.png

Done!


When I try to install any package through the command line, I get an error. Can anyone help me on this?

The r-base-core package is in the "universe" repository. You may need to enable "universe" manually before you can install that package.

To enable the "universe" repository on Ubuntu 14.04, run:

sudo add-apt-repository "deb http://archive.ubuntu.com/ubuntu trusty universe"

Then refresh your package lists:

sudo apt-get update

and now you should be able to install the r-base-core package:

sudo apt-get install r-base-core

Please let me know if this was helpful!


I cant configure rhythmbox as gobject-introspection 1 is not installed

You need to install the gobject-introspection development package (library) in order for ./configure (or pkg-config) to see it. This package is libgirepository1.0-dev . However, on my machine, ever after installing this package, I kept encountering errors on other missing dependencies for the compiling to work.

The easiest way to satisfy all the requirements for compiling Rhythmbox is to execute the command:

sudo apt-get build-dep rhythmbox

This will install a bunch of libraries and packages that are needed for compiling Rhythmbox (it will need to get around 76 MB at the time of this answer).

Once it's done, do ./configure again and it should not spit out any errors. Continue with sudo make and sudo make install.

After installing, rhythmbox might not run, and running it from the terminal will give you:

rhythmbox: error while loading shared libraries: librhythmbox-core.so.7: cannot open shared object file: No such file or directory

To fix this, do:

sudo cp /usr/local/lib/librhythmbox-core.so.7 /usr/lib

Source: [Rhythmbox-devel] Problem with 2.99.1 installation.

I just tried all of this, and it worked.


How to fix sound effects in Sonic Adventure 2 using Steam and Playonlinux

Well I finally solved the problem. It turns out that it doesn't work properly if you install it through playonlinux. To solve this issue, it requires you to install Steam and Sonic Adventure 2 manually with WINE.

!!!WARNING: This tutorial will only work with a WINE version 7.46 or greater!!!

Firstly, open a terminal with Ctrl + Alt + T create the wineprefix folder with mkdir /home/$USER/.local/wineprefixesand then create a clean WINE prefix with the following command:

WINEPREFIX="/home/$USER/.local/share/wineprefixes/[name for the wineprefix]" winecfg

This will create your wineprefix and then open the configuration panel for that wineprefix. make sure that Windows Version is set to Windows XP. Close that Window and then run winetricks from start menu. Download the applications dotnet20 and xact (That is the component that gets the sound to work) through yourwineprefix => install a Windows DLL or Component. After you have installed each component, click cancel two times to close winetricks. Then you want to install the Steam install package here. Next in the termianl cd to the directory containing the file and run:

env WINEDEBUG="fixme-all" WINEPREFIX="/path/to/your/wineprefix" wine msiexec /i SteamInstall.msi

Log into your Steam after it has finished updating and install Sonic Adventure 2 normally (you might want to close the terminal running in the backround). From there the game should play normally with the sound effects :).

Notes:
If your computer is any better than my generic Intel then the game should run perfectly. If not then the game would be running in slow motion. I am yet to solve this, and hope that its just my computer.

EDIT: Turns out it may or may not have anything to do with the computer. It turns out that its either a glitch with the FPS or something to do with the graphics card (But why would I need a new graphics card for a game that is 11 years old!). Either way, it is still as slow...

For more information, visit the following links:

https://appdb.winehq.org/objectManager.php?sClass=version&iId=19444
https://appdb.winehq.org/objectManager.php?sClass=version&iId=27139


Add entry 127.0.0.1 for localhost in /etc/hosts file.

127.0.0.1 localhost


I am unable to connect my Google Pixel 4a to Ubuntu 20.4 or 20.10 to tranfer files

I think I've sorted it only some USB a male to usb C male leads work, by chance I tried a different lead and it works.
I have several leads, but only two out of five work.  Strange but true.


How to get to the GRUB menu in Ubuntu 19.04?

You need to hold down the Shift key. The right-side Shift key. I found lots of references about holding down Shift, but only after considerable digging did I find one that says it needs to be right Shift.


No launcher and menus in Ubuntu 12.10 after changing from Nvidia to Intel Graphics

You need to look at his:-

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

specifically for yourself down the bottom, where there is:-

Luckily if you find yourself in the same situation as me, you can very easily revert to the standard Open Source driver [ATI/Radeon] as follows:-
Get the System Settings screen after clicking the top right settings icon.
Select Software Sources and Additional Drivers tab.
Select the AMD/ATI dispaly driver wrapper option and Apply Changes
Logout and back in again

Good luck pardner!


How to add a new drop down menu in top panel in Ubuntu 15.10

I think what you would like to do would involve creating an Appindicator. This can be done in python or in C. An example can be found here: http://conjurecode.com/create-indicator-applet-for-ubuntu-unity-with-python/

In order to run a shell script, you would need to use the subprocess module in python. In order to start using the appindicator module in python you would need to install the package python-appindicator by running sudo apt-get install python-appindicator:


Laptop not waking up from suspend (plugged-in) since 14.10 upgrade

I'm not sure if my issue is the same as yours, but I experience something similar on my Lenovo T440 running Ubuntu 14.10. After I leave my desk for a while, I come back, the screen is blank and doesn't come back to life when I move the mouse or press keys.

I found that going in to one of the terminal screens (i.e. CTRL + ALT + F1) and then back to the Unity screen (i.e. CTRL + ALT + F7) brings the login screen back.


when i am trying to run a perl file i am getting permission denied error

/usr/local/share/lxr/lxr-2.0.3/scripts$ su perl configure-lxr.pl

try this after running this  will be asked for password, enter password and proceed.
if this not works than let me know ok .


Ubuntu 12.10 over Ubuntu 11.10 seems to hang

While you can upgrade directly from 10.04 LTS to 12.10 LTS, that is the exception.

Any other Ubuntu upgrade must be to the next release, so for 11.10 you need to first upgrade to 12.04 LTS.

Any other approach is untested, unsupported, and not recommended ..


Can't install Manuskript on Ubuntu 20.04

Well, I have succeeded to install the application but through Synaptic with all the dependencies needed, and it works well. But the installation with Snap was failed.


How do I reinstall Windows 7 (from Dell recovery partition) while keeping my dual boot configuration?

According to at least one person (comrademike's comment), this is a bad idea. It's better to get installation media.

The way I did it was, I filled out the form to get the Windows 7 installation CD (and another CD with drivers) from Dell:

https://www.dell.com/support/diagnostics/us/en/19/nondiagnostichome

For me (with a 1.5-year-old computer in USA), Dell fulfilled this request for free, and they used overnight shipping (fedex) so I had the CDs the next day. Very convenient!

There are other ways too. The comment by comrademike says it's supposed to be possible to download Windows 7 free from microsoft.com (but you still need a product key; the Windows 7 product key is written on a sticker on the underside of Dell laptops). But he also said that the link may be hard to find on the website. So you may need to contact microsoft to ask for help.

Once I had the Windows installation CD, I just followed the instructions at the other question, How do I reinstall Windows 7 while keeping my dual boot configuration?


NetworkManager resets resolv.conf on every reboot

One way to stop Network Manager from adding dns-servers to /etc/resolv.conf file is to do this. So first open the nm conf file /etc/NetworkManager/NetworkManager.conf:

sudo vim /etc/NetworkManager/NetworkManager.conf

And add this to the [main] section:

dns=none

Save and exit.

Source:
network manager: how to stop nm updating /etc/resolv.conf


How to improve Graphics in Virtual Machine VirtualBox?

Solved by disabling the GPU Accelerated Canvas 2D flag in chrome:

Access chrome and type about:flags in the address box, hit Enter.
Look for GPU Accelerated Canvas 2D and hit on Disable.


LXD - How to execute a script inside a container from host

When you run lxc exec on an Ubuntu container, you get a root shell and your home directory is /root.

If you are using a non-root account (like ubuntu from ubuntu:18.04), then you can get a shell into that account with

lxc exec mycontainer -- sudo --login --user ubuntu

And if you want to run a command as user ubuntu, then you can

$ lxc exec mycontainer -- sudo --login --user ubuntu whoami
ubuntu

You have a typo in lxc exec container-name --sh -c "cd ~ && ll". There should be a space after -- because -- is a special instruction to your host's shell which says that the lxc exec command should stop reading any subsequent options as options for lxc exec. For example, the following is wrong, because the -l option is processed by lxc exec instead of being given verbatim as a command to run in the container.

$ lxc exec mycontainer ls -l
Error: unknown shorthand flag: 'l' in -l

The correct would be

$ lxc exec mycontainer -- ls -l

You can push a directory from the host to the container by running

$ lxc file push --recursive /home/myusername/myfiles/ mycontainer/home/ubuntu/

The directory tree /home/myusername/myfiles/ on the host will get copied into the container mycontainer inside the (existing) directory /home/ubuntu/ (in that container).


Where to report Ubuntu 14.04.5 nvidia-370 prime select black screen issue?

It seems the bug has been already reported:
https://bugs.launchpad.net/ubuntu/+source/ubuntu-drivers-common/+bug/1610476


Which ruby version is included in Ubuntu 16.04?

Information about packages can be found online at Ubuntu Packages.

You can easily search a packages by putting its name at the end of the url: https://packages.ubuntu.com/ruby. Then you get a list with all packages with ruby in its name.

Package ruby in Ubuntu 16.04. Version 2.3.0.


Can my aborted 10.04 to 12.04 upgrade be rescued?

Was able to fix it up with this, thanks to advice elsewhere:

sudo fuser -vki /var/lib/dpkg/lock

sudo dpkg --configure -a

All systems go now. Thanks for the assistance.


Make a carbon copy of Ubuntu 14.04 and reinstall it later

You could simply use dd to dump your partition into a file, like so:

sudo dd if=/dev/sda1 of=dump.img

Then you can easily restore it by running the following command from a live DVD / USB stick:

sudo dd if=dump.img of=/dev/sda1

Replace /dev/sda1 with your root partition. Obviously, you will need to place the dump file to another partition.

Another method would be to create a duplicate partition. Use any partitioning tool (e.g. GParted) to create a partition the same size as your original, then use dd to clone your partition:

sudo dd if=/dev/sda1 of=/dev/sda2

Do the inverse to restore, using a live DVD / USB stick.


How to update my just my kernel version on Ubuntu 20.04?

you can try a mainline kernel. Search for how to install them. Or
sudo add-apt-repository ppa:cappelikan/ppa -y
sudo apt update
sudo apt install mainline -y

To install the mainline kernel installer.
You could also upgrade to the latest oem kernel
sudo apt install linux-oem-20.04b -y

Either solution will get you a newer kernel and retain 20.04LTS


RAM doubled from 8 gb to 16 gb, now ubuntu 13.04 is SO SLOW!

Possible known hardware issue:

Performance issues with ProBook 4540s with 16GB RAM

Performance degrades in Probook 4540s after memory upgrade

Processor hangs after adding more RAM to probook 4540s

Although the PDF spec. sheet does suggest support for 16 GB, under 64-bit Windows or Linux.

ProBook 4540s Notebook PC (datasheet)


Trust desktop icons without clicking them manually in Ubuntu 18.04 Gnome 3

Desktop files can be trusted via command line:

gio set Your_desktop_file.desktop "metadata::trusted" yes

and the trust state can be obtained by:

gio info Your_desktop_file.desktop | grep "metadata::trusted"

NOTE:

You have to run this command with the same user as the owner of the desktop files
It only works if you run the command in the gnome shell (not via SSH)
To do this automatically at logon, you have to make a logon script what will execute an script, as this only run when Gnome is started. For example you can create an .desktop file in ~/.config/autostart/ what execute some shell script including the gio commands
Make sure nautilus-desktop is really started. You can create an while loop with a sleep 1 till nautilus-desktop run
Icon's will not refresh automatically. You can achieve this with pressing F5 on the desktop or restart nautilus in your autostart script. killall nautilus && nautilus-desktop & (the last & sign is to make sure the rest of your code will run. Otherwise it will stop the script there till you close nautilus-desktop process again)


As Jorge Castro has said, this should be a bug report.

...Unless the problem is due to bad installation media, or is a known graphics problem. You gave us some information about your computer, but you did not tell us the make and model of your graphics card. You should edit your question to include that. If you end up reporting a bug, you should make sure to include that information in the bug report as well.

You should MD5 test the Ubuntu .iso you downloaded. If that fails, it means the .iso file is corrupted, so you'll need to download it again and start over.

If that succeeds, then verify the installation media (whether it's a CD/DVD or USB flash drive). You can use these instructions.

If no errors are found, then try using the nomodeset kernel boot option. That can work around some graphics card problems. If that does the trick, you can set nomodeset permanently (also using the instructions available through that link).


Creating a 3 disk raid5 without losing data?

Creating a ZFS pool with your existing disk would erase the data, so make sure you don't create a raid5 or mirror with it.
I would create a zfs mirror pool with the two new disks, set compression on, create some zfs filesystems and copy the data from the existing disk onto the mirror.  The zfs compression normally works quite well, I get 1.66x compression with a mix of binary and text files (4TB). This way your data will be on a mirror which is safer than it is at this moment and you should have some free space.  Raid 5 would give you more space but you cannot build that with your available hardware.
I find mirrors offer more flexibility in the future than raid5, you can, for example, add larger disks to the mirror wait for a resilver to complete and then detach the smaller ones to move to a larger capacity mirror.


Try to create a boot-able flash drive using "Universal USB Installer",

use  downloaded version of the ubuntu desktop .iso file either the 32- or 64-bit.


These are 100% normal Ubuntu checks and background processes. If you look into what /usr is it is  a root installation file which is necessary for Ubuntu. This is nothing to be worried about.


block remote access via IP (or allowing access only from known IPs)

Fail2ban blocks IPs based on specified parameters (such as attempts).  It does so automatically.  You can also set it up to email you when it does so.  You can find a nice setup guide here.  It is for Debian Wheezy, but it should work for Ubuntu.  As far as banning IP addresses, you can do it using this command:

iptables -A INPUT -s IP-ADDRESS -j DROP

For example, to block 210.212.20.238 (the first one listed on websworld when I checked it):

iptables -A INPUT -s 210.212.20.238 -j DROP


Change default installation directory for a program

Apps tend to install themselves to several different places in the filesystem, it's generally not straightforward to install them somewhere other than the default (although though some will work fine if you shift them.

4GB should be enough for an Ubuntu install, assuming user data is not on the same partition. In the meantime it might be worth having a cleanup. Ditching old kernels will create 100MB of space per kernel, so that's a quick way to free a lot of space.


Upgrade with ISO - User Name, password, computer name

If you have done a fresh install after a mess up, it won't make much difference, your data is probably lost.

If it isn't lost and you want it, then I advise that you enter everything the same (although it may not allow the same system name). If it is lost, you need to look into recovering it first. Use the live CD to browse the hard drive and copy it off to an external hard drive or network computer. If not, do a search for data recovery tools.

If you don't care about the data that was there, go wild! Enter whatever you want there. I suggest wombatjellyfishcathippo as a system name.


Hard lock-up and skype window shows up after reboot

I've seen this on a few difference occasions - I haven't figured out why either.

So the answer to your question is that "Yes, other people have seen it".

As for the lockup, if you could report that bug (more on that here and here) that'd be great.


The first generation of core i7 processors should run fine. Just grab a bootable Ubuntu USB stick and boot the computer using the USB stick. If you are still unsure get the LTS 16.04 version and boot it. It is still supported until 2021.


No Video Playback in Web (Epiphany), Videos (Totem)and Gthumb

To add a little more detail i was geting audio but no image just a green screen in all the named apps.
This solved it: sudo apt purge gstreamer1.0-vaapi


I have same.

I wrote a ./restart.sh script,

gnome-shell --replace & disown

until the issue is fixed.


Allow only predefined devices to connect to my device via IP tables

Got the result in following way(make sure proper IP addresses and ports are filled up in ip.txt file):

First make everything connectable to avoid losing existing connections by running the following 3 commands on terminal:

iptables -P INPUT ACCEPT
iptables -P OUTPUT ACCEPT
iptables -P FORWARD ACCEPT

Then, flush all the existing IP tables settings:

iptables -F

Finally run the script that blocks all the connections and then enables only the IPs those are mentioned in IP.txt file (sample of this file at the end):

iptables -P INPUT DROP
iptables -P OUTPUT DROP
iptables -P FORWARD DROP

while read line; do
var=$line
var1="$(cut -d' ' -f 1 <<< $var)"
case $var1 in

     jumper)
          ip="$(cut -d' ' -f 2 <<< $var)"
      port="$(cut -d' ' -f 3 <<< $var)"
      iptables -A INPUT -p tcp --dport $port -s $ip -m state --state NEW,ESTABLISHED -j ACCEPT
      iptables -A OUTPUT -p tcp --sport $port -d $ip -m state --state NEW,ESTABLISHED -j ACCEPT
      ;;

     mqtt)
      ip="$(cut -d' ' -f 2 <<< $var)"
      port="$(cut -d' ' -f 3 <<< $var)"
      iptables -A INPUT -p tcp --sport $port -s $ip -m state --state ESTABLISHED -j ACCEPT
      iptables -A OUTPUT -p tcp --dport $port -d $ip -m state --state NEW,ESTABLISHED -j ACCEPT
          ;;

     rest)
      ip="$(cut -d' ' -f 2 <<< $var)"
      port="$(cut -d' ' -f 3 <<< $var)"
          iptables -A INPUT -p tcp --dport $port -s $ip -m state --state NEW,ESTABLISHED -j ACCEPT
      iptables -A OUTPUT -p tcp --sport $port -d $ip -m state --state NEW,ESTABLISHED -j ACCEPT
      iptables -A INPUT -p tcp --dport $port -m state --state NEW -j ACCEPT
          ;;

     server)
      ip="$(cut -d' ' -f 2 <<< $var)"
      port="$(cut -d' ' -f 3 <<< $var)"
          iptables -A INPUT -p tcp -s $ip --dport $port -j ACCEPT
          iptables -A OUTPUT -p tcp -s $ip --dport $port -j ACCEPT
          ;;

     rangeJumper)
          ip="$(cut -d' ' -f 2 <<< $var)"
          port="$(cut -d' ' -f 3 <<< $var)"
          iptables -A INPUT -p tcp -m iprange --src-range $ip --dport $port -m state --state NEW,ESTABLISHED -j ACCEPT
          iptables -A OUTPUT -p tcp -m iprange --dst-range $ip --sport $port -m state --state NEW,ESTABLISHED -j ACCEPT
          ;;

     *)
          echo "Sorry, invalid input"
          ;;
esac

done < $input

Sample IP.txt file:

jumper 10.100.100.249 22
jumper 10.100.100.76 22
mqtt 10.100.99.238 8883
rest 10.100.100.76 34568
rest 10.100.100.249 34568
server 10.100.100.76 154
rangeJumper 10.100.99.71-10.100.99.100 22
rangeJumper 10.100.97.72-10.100.97.100 22


To change the password of a user account in Ubuntu use the following way

Press Alt + Ctrl + T

Then type in the terminal

   sudo passwd user-name

It will ask for new password like:

Enter new UNIX password:

Enter the new password and confirm it then your good to go.

EDIT 1.

To know the user-name (I believe you know that) you are using type the command in the Terminal

whoami


A Kubuntu Mobile technology preview was part of the 10.10 release. I don't believe it is being shipped on any real hardware yet, but you can download it to try out in a virtual machine. Builds for Natty are also available.


Libre Office presentation background with dark GTK theme

Have you tried to turn off "Automatically detect high-contrast"?

  Tools > Options > LibreOffice > Accessibility > Automatically detect
  high-contrast [off]


League of Legends patcher crashes on playonlinux

So that's simple, the problem is you don't have installed the Adobe Air PlayOnLinux component on your LoL instalation. I installed it this evening and voilà!! The installation succeeded the 60% and I've played the game 1 hour ago.
Try this and good luck >:D


ubuntu has been blocked by the current security policy in ubuntu 17.10

ubuntu has been blocked by the current security policy

This probably means you boot in legacy mode and the system can not find a legacy installation. Generally I would use boot repair to fix this. Besides a download+burn ISO you can also do this from a live session with an internet connections:

sudo add-apt-repository ppa:yannubuntu/boot-repair
sudo apt-get update
sudo apt-get install -y boot-repair && boot-repair

  Default Boot Device Missing or Boot Failed

Same but for EFI. To reinstall EFI from a live session see Reinstalling Grub2 (EFI partition) and cl-netbox's answer.


Virtual Ubuntu 18.04 running on Windows 10 with VirtualBox Manager connection volume-limited

This problem is related to the VPN connection issues a lot of people have posted about (e.g. using apt-get and connecting and pinging), only in my case, when I tried connecting with VPN active it magically worked. Why, who knows, but if you are having connection issues, it might be instructive to compare short connection requests (like pings) to long connection requests (like software updates)


How do I resize app icons in applications overview on Ubuntu 18.04?

You can edit /usr/share/gnome-shell/theme/gnome-shell.css.

Don't forget to make a backup of the original file!
Search for a line starting with #dash {.
In the following lines you can change the properties like .icon-grid { spacing and icon-grid .overview { icon-size.
After your changes you have to restart the Gnome Shell with Alt+F2 and typing r and Enter.


unable to enter BIOS after dual booting with Ubuntu 15.04

When running Windows, hold down the shift key and select "restart" instead of "shutdown".  At the restart, you will get an options screen, select "trouble shooting", then on the next screen, select the "UEFI settings" (the BIOS).


Why running clamtk on 12.04 with kernel-update of today crashes the system?

Yes, you should typically run clamtk as a regular user.  Also, if the problem is not fixed by the linux-headers-generic answer above, please run clamtk from the commandline (just type

clamtk

and post back any errors or messages upon the crash.


I too need a solution to this problem. I am using Ubuntu 16.04. After boot, the cursor blinks at the password input field and then freezes; while it blinks, typing in my password does not work.

The problem occurred after the computer woke up from a suspend due to low battery. When I plugged in the charger the computer came back up and froze at the password field. After that no matter how many restarts I do the issue persists.

Lenovo Flex Pad 15, 8GB, Intel Core i5-4200U @1.60hz, 2.30hz.

These guys solved it by doing this:
https://unix.stackexchange.com/questions/368748/ubuntu-16-04-gui-freezes-on-login-start-page

Boot in Recovery Mode and Enable Networking -

apt-get update
apt-get install xserver-xorg-input-all
apt-get install ubuntu-desktop
apt-get install ubuntu-minimal
apt-get install xorg xserver-xorg
apt-get install xserver-xorg-input-evdev

reboot


Woha! Isn`t that small :p
Have you tried MyUnity? It is available in the Software Center or using sudo apt-get install myunity . It has a lot of cool features, and I think that one of them is resizing icons... it also has the option to go back to the Ubuntu defaults...


Lock Hard drive partition using ubuntu password

The only way to do this is encrypting it, because even if you make Ubuntu ask for a password to access it, anyone can still boot up another operating system Live CD and access it.

If you're not that worried than simply creating a good root password is enough, since mounting devices require root password.

That's only about accessing the partition. Now about wiping your data there isn't much you can do but preventing your computer to be physically accessed by someone else, since anyone can simply boot up a GParted live CD or a live CD of any other partitioning program or operating system and wipe your hard drive, or just put it on fire or something.


Ubuntu 14.04 Nautilus "connect to server..." window changed

Finally solved it!

I don't know why but Nautilus 3.10 treats in an odd way the ~/.ssh/config file, or at least this is what I've experienced.

This is how my ~/.ssh/config file looks like:

Host aws_host
  HostName [host ip addres]
  User ubuntu
  IdentityFile ~/.ssh/your_key.pem

DO NOT use your DNS name on your "Host" OR "HostName" variables or you may get an error saying Unable to find the requested location. Please check the spelling or the network settings. or an error saying Don't have permission to access the requested location.

The next step is to go to File -> Connect to Server... and in the Server Address bar write: sftp://ubuntu@aws_host and you should get your sftp drive mounted.

I'm really surprised of how difficult it was to find this simple answer on the internet, everybody just goes around and sugests that you use Filezilla.


Found the problem,

It appears that dch will open an editor if it doesn't get all the information that it considers mandatory. So in order to create a debian/changelog without opening an editor I've found that the following combination of options is sufficient:

dch --create --distribution unstable --package "pkgpkg" --newversion 0.0.0.0-0.test "some nice message"


How get rid of -bash: /usr/{package}: No such file or directory

Bash hashes the entries in the PATH to avoid unnecessary expensive lookups. Due to this, sometimes outdated entries may remain in the hash. You can clear a specific hash entry using:

hash -d sl

Or clear the entire hash table:

hash -r

Reference:

How do I clear Bash's cache of paths to executables?


Problem starting JACK server "Jack Server is not running or cannot be started"

First you need to kill the existing pulseaudio process, start the jack_control process and re-start the pulseaudio process.

Please use the below commands:

pulseaudio --kill

jack_control start

jack_control exit

pulseaudio --start


Invalid video mode specification `text' with no further display

This is a very weird problem. I solved it by manually changing the

gfxmode $linux_gfx_mode

line in /boot/grub/grub.cfg to:

gfxmode auto

after reboot, the console is now able to show the startup message, and for me to find where the real issue is. It turned out that one of my auto mount in fstab has some issues with the journal index. After running fsck from a live cd the system now starts flawlessly.

But this leads to two more questions:

Why would an automount in fstab crash the entire startup sequence? The volume is for external data and non-essential to the system.
Why there is no display due to this issue? After fixing the volume, I ran grub-mkconfig again and the line was restored to $linux_gfx_mode, and the system runs fine. It feels to me like some bug in grub where the video mode string was not correctly passed to kernel on startup issues. But guess only grub developers could tell.


First lets go over the loop. The loop is supposed to go over certain range of numbers given by $nj variable, and on each iteration print raw_mfcc_$name.1.scp , raw_mfcc_$name.2.scp and so on, until the $nj number. So all those files get dumped into one feats.scp.

Now, if you were to take all those files manually and paste them into feats.scp one by one , then sure - that's the same. If you pasted just one file into feats.scp that's not the same.

There's also small problem here with cat $mfccdir/raw_mfcc_$name.$n.scp || exit 1; part. If the $nj number is 5 , and files are numbered 1,2,3,5 (missing 4), the script would exit at 4, and it wouldn't include  5 in the output. It is unclear whether it was intended or not, but I would recommend you edit that to at least have continue statement instead of exit and still deliver the other content into feats.scp


Messed up with sysctl settings on Precise. Is there a way to restore defaults?

/etc/sysctl.conf comes from the "procps" package:

  steven@wind:~$ dpkg -S /etc/sysctl.conf
  procps: /etc/sysctl.conf

If you move your bad copy and re-install procps with the "--force-confmiss" dpkg option, it will restore the original sysctl.conf file.

sudo mv /etc/sysctl.conf /etc/sysctl.conf.bad
sudo apt-get -o Dpkg::Options::="--force-confmiss" install --reinstall procps

Then reboot.

On every boot, the kernel loads with the default parameters. Later, the values in sysctl.conf are applied. If you reboot with the default sysctl.conf in place, you should have all the same values as a clean install (assuming no other hacks being applied in other init scripts).

Once you're back to normal, do yourself a favor and:

sudo apt-get install git-core etckeeper

It's a version tracking system for all your config files in /etc. It'll let you view the history for all your config files, see what changed when, and roll them back as needed.

http://evilrouters.net/2011/02/18/using-etckeeper-with-git-on-ubuntu/


I think you may have burned the wrong CD image, perhaps the one for servers. The current Precise CDs for i386 Desktop have the pink/purple screen and allow you to select the language, and then go through the F6 option to set kernel options for booting the installation system--just as you described.


Can I use Ubuntu installers partition tool (Win 8.1 and Ubuntu 13.04)

Yes,"Install alongside Windows" option will make the D drive to loss it's files or even the whole partition also.

So first partition the disk and fomat it to ext4 partition using Gparted partition Editor.Then run the Ubuntu installer and then choose "something else" option to manually install Ubuntu on a selected ext4 partition.


Thinkpad X200t Volume mute button not recognised to use as shurtcut

I'm using a X200 and faced the same Problem. The reason for this malfunction is explained here.

I finally made the mute-button work by installing a patched kernel-version. It's quite easy; just add the PPA given here and update your system. That should to the trick.


How to install db2-client on Ubuntu 12.04 LTS?

Well first of all try to found out that the client has deb packages, because rpms won't work in Ubuntu. But I guess only RHEL will be supported.


X230 touchpad stops working after upgrade to 16.04

I have the same problem.£ days ago On my ubuntu 16.04 LTS started to do problem with touch pad. When I try to touch the right bar with icons all screen get crazy...All bar with icons disappear for few seconds, even the corner with clock and date. all screen becoming purple with nothing on and everything flashing . I installed again yesterday and i used without updates and was fine. over night i run updates and today , same problem. i think is something regarding updates . I think you can try to reinstall without updates and see how is work.. if is working fine this mean your laptop is fine...If is about updates...we need to wait for developers to solve this problem.I am not good with this think but i answer you hare just to let you know - you are not alone with problems on 16.04 LTS. All this thinks started  last week. I hope somebody will help you and will help me too. I have a question too regarding this but so far nobody answer me. Good look anyway


How to see command lines from app sent to Bluetooth

Install wireshark

sudo apt-get install wireshark

configure it to capture packets as normal user

sudo chgrp wireshark /usr/bin/dumpcap
sudo chmod o-rx /usr/bin/dumpcap
sudo setcap 'CAP_NET_RAW+eip CAP_NET_ADMIN+eip' /usr/bin/dumpcap
sudo usermod -a -G wireshark $USER

launch it and start capture of bluetooth packets: on welcome screen in Capture part of window double click bluetooth0, perform some bluetooth-related actions on laptop or on iPad then analyze packets. You can stop the capture by Capture->Stop (or CtrlE).


When is the expected stable release date of Ubuntu Phone and Ubuntu Tablet?

More robust versions of Ubuntu for Tablets will likely be available for the Nexus 7 and Nexus 10 tablets by the end of the year. However, Ubuntu tablets won't ship until the UI layer is folded into the fully unified Ubuntu 14.04 in the spring of 2014. Canonical expects to integrate a stable Ubuntu Phone with Ubuntu 13.10 ("Saucy Salamander") this October, making it available for Nexus 4 and Nexus Phone users, prior to a native Ubuntu-based phone launch in 1Q 2014.

You can see more informations at: http://www.linux.com/news/embedded-mobile/mobile-linux/702049-ubuntu-for-tablets-joins-canonicals-convergence-crusade


Resize four windows to occupy the screen without overlap on Ubuntu 18.04

There is an extension named Put Windows.

Available in Ubuntu Software. All that you need to do is install and that's it. Super + Numpad will work afterwards.

You may need to tinker with the default settings, though. It was not quite the one quarter of the screen at first for me. It was either bigger or smaller.

Update: There is also gTile which is what I use now. It is more versatile, modifiable and has more options for splitting, but you might need to do a little more tinkering setting up the hotkeys and the behavior. I found it to be much more useful, nonetheless. It also works well with multiple displays.


No wireless connectivity on Dell Inspiron 1520

Connect to your router via ehternet cable. It will be detected and
configured automatically as auto eth0.

Now you have internet connection.

Click toe Ubuntu icon on the top left. It will open the "Dash" (Similar to Windows'Start Menu).
On the Dash's search box, type drivers and you'll see an option called Adtional drivers.
Your wireless driver may be listed. Select it and click on activate. It will be downloaded and installed.


Type exit
exit

then type
 fsck /dev/sda
 fsck /dev/sda1
 fsck /dev/sda2
 fsck /dev/sda3
 fsck /dev/sda4
 fsck /dev/sda5

above any command ask for permission then press Y
then wait for a while.
after that type
reboot

again wait and type
exit

and wait . It will solve automatically.


apt-get remove  installs alternative package

Kudos for figuring out the root of your problem. Something to watch for in your future endeavors - meta-packages can cause this issue as well; for example if you installed the 'lubuntu' meta-package and attempted to change/remove components, many have automatic replacements that will leave you running in circles as you attempt to adjust your installed packages.


Is there any advantage to Rsync moving files on the same machine?

I assume the point is to transfer the content of magento to /var/www/html. That's to say, if we had:

magento
├── .bar
└── foo

We'd get:

html
├── .bar
└── foo

This is annoying, but not difficult, to accomplish this with mv. You'd have to use some form of find, or enable dotglob in bash, to include the .bar.

rsync is simpler.

With find:

find magento -mindepth 1 -maxdepth 1 -exec mv -t /var/www/html {} +

With dotglob in bash:

shopt -s dotglob
mv magento/* /var/www/html


Is there a terminal that allows setting of a background image

You can always run any of the terminal emulators in any of the desktop environments, there's no need to switch desktop just for that. E.g. you can run konsole (KDE's terminal emultor) under the GNOME desktop, or gnome-terminal under KDE, etc.

Newer gnome-terminal version have indeed removed the support for background image. Notable terminal emulators that use the same terminal emulation widget as gnome-terminal (namely vte, preferably the GTK+-3 based version rather than the old unmaintained and quite buggy GTK+-2 based one) and do support background image are Terminix as well as xfce4-terminal version 0.8, both are easy to compile and install on Xenial.

There are plenty of other terminal emulators (not based on vte) out there, I'm sorry but I cannot tell which ones support background image (if any) of out the box on Xenial.


unable to load login page over public ip

What SSL connection error are you getting?

Things to check:

Is you TLS/SSL cert signed by a CA that you trust in the browser that you are trying to pull it up on?
Does the cert have the ip address as the cn or a subjectAltName?
I don't see a CA bundle. Do you have a cert bundle that has all the intermediate/CA certs that are needed for your cert?


What is the dash equivalent for .bashrc?

There is no default file, you should set its name in the ENV environment variable. So add to your .profile the line

ENV=$HOME/.shinit; export ENV

so that .shinit becomes the equivalent of .bashrc.

But take into account that dash is not suitable for interactive use, given that do not provide any line editing capabilities (this can be solved: see How to have editing capabilities in command line apps that do not provide them).


But I prefer foremost

Install foremost

sudo apt-get install foremost

Take a look at

man foremost

to learn how to use foremost.

First make an empty writable directory to save recover files in a partition other than that you are going to recover.

Then run foremost.

I am going to recover my home partition ( let's say /dev/sda5).

$ sudo foremost -t jpg -i /dev/sda5 -o /recovery/data

Finally set user permission to /recovery/data/ to view image. type

$ sudo chown YOUR_USER_NAME /recovery/data -R

Some important foremost command line arguments.

-i  :- partition/image to recover
-o :- location to store recovered files.
-t  :- built in file filter options.  you can give multiple filters by separating using commas. (e.g: for jpg and pdf: -t jpg,pdf )
-q :- quick mode.


During the startup (grub menu) you can choose the old version of the kernel.

go to "*Advanced options for Ubuntu"

and choose the previous version.


What worked for me was this guide.

from https://stackoverflow.com/a/40516974 (YOUR_DNS_IP_HERE is my addition)

  Put this in /etc/docker/daemon.json:

{
    "dns": ["YOUR_DNS_IP_HERE", "YOUR_DNS_IP_HERE"]
}

  Exit from root:

 exit

  Now restart docker:

sudo service docker restart

  VERIFICATION:

  Now check that adding the /etc/docker/daemon.json file allows you to
  resolve 'google.com' into an IP address:

docker run busybox nslookup google.com


Automatically switch sound output device to Bluetooth headset & force to A2DP profile on connection

This worked for me: https://sandalov.org/blog/2146/

Instructions copied here for posterity:

Add to /etc/pulse/default.pa to automatically switch pulseaudio sink to Bluez:

.ifexists module-bluetooth-discover.so
load-module module-bluetooth-discover
load-module module-switch-on-connect  # Add this
.endif

Modify/Create /etc/bluetooth/audio.conf to auto select A2DP profile (instead of HSP/HFP):

[General]
Disable=Headset # Add this

Apply changes:

pulseaudio -k # Restarts pulseaudio

# You may need to turn your bluetooth headphones off, then back on


How to Dual boot Ubuntu along with another Linux Distribution?

Using the same home can cause problems, especially with the configuration files that are in your home directory. All of your personal settings and configurations for numerous applications are contained in your home folder. In addition to the UID (user ID) issue, it is possible that Fedora and Ubuntu use different versions of some applications, which may have conflicting/incompatible config file format(s) and/or locations within your HOME.

But I have a better idea for you: make both Fedora and Ubuntu their own home on a minimum partition and use a shared data partition where you store your own files. When you are done installing both systems remove on both system ~/Desktop and make a symbolic link to a directory on the data partition with ln -s /datapartition/Desktop ~/Desktop. You can do that with all directories and have 1 desktop, 1 downloads, 1 pictures folder all with the same files.

This not only prevents you overwriting files in your home directory that are different for another OS but when you add a 3rd,4th, 5th OS or when you need to reinstall you can have all the important files back by recreating the symlinks.

edit: here is an example of what can go wrong: Why are my two ubuntu installs on separate partitions sharing the same apt-get data?

This user has 2 Ubuntu's installed: one with classic and one with Unity both using the same /home/.

~/.config/software-center
~/.cache/software-center

are being used by both systems since these are in /home/ so updates and software installed affect both installations.


I had the same issues but I finally found a way to use AMD drivers while keeping the Unity launcher working.

First in the terminal update your kernel with

   sudo apt-get install linux-headers-3.8.0-30-generic

Next go to the AMD website (this link) and download the 13.8 Beta drivers

Download the drivers and place the drive file (.run file) on the desktop

In the terminal run the following:

cd /home/yourname/Desktop (Replace yourname w/ your Ubuntu login username)

Followed by

sudo sh the-run-file-name

The AMD driver/catalyst installer should open, follow the step by step and restart!

Your unity bar should work while you have the latest drivers! WOo!

Also - to remove the watermark (For AMD testing only) simply open the terminal and run

sudo gedit /etc/ati/signature

Then replace "Unsigned" with 9777c589791007f4aeef06c922ad54a2:ae59f5b9572136d99fdd36f0109d358fa643f2bd4a2644d9efbb4fe91a9f6590a145:f612f0b01f2565cd9bd834f8119b309bae11a1ed4a2661c49fdf3fad11986cc4f641f1ba1f2265909a8e34ff1699309bf211a7eb4d7662cd9f8e3faf14986d92f646f1bc

Source: How can I get the AMD driver running on Ubuntu 12.10 (AMD Radeon HD 7310& AMD Vision E1-1200 APU) (I've edited it as per your needs)


can updates be automated without all the fuss?

I'm not sure of a way to do this with regular updates, but you can definitely do it with security updates. In fact, Ubuntu does this by default.
If you are using vanilla Ubuntu, just open up the "Software and Updates" application, and click on the "Updates" tab, and set "Security Updates" to "Download and Install Automatically". You will also need to make sure you are subscribed to "Security and Recommended Updates".
As for shutting down the system automatically when you are done, there is no way to do that in vanilla Ubuntu, but you can certainly automatically put the system into "suspend" (sleep) mode after a certain about of time of inactivity (in fact, vanilla Ubuntu also does this by default). Just go into "Settings" > "Power" > "Automatic Suspend".


Unable to login after failed update and black screen

Try user-name: ubuntu
with no password.

Default user:
Live CD asks for a username and password

If that doesn't work, try this:
How do I reset a lost administrative password?

If nothing works reinstall

I hope this helps.


Cannot find install-sh, install.sh, or shtool in ac-aux

I got it to create the configure script using the following tools:

libtoolize --force
aclocal
autoheader
automake --force-missing --add-missing
autoconf
./configure

I don't have all the dependencies so I can't test it right now, but this is generally how you would create a configure script from an ac file.


Have a look at this from the Ubuntu wiki.


Ideas for my MSc project and Google Summer of Code 2011

Personally I Would check out brainstorm.ubuntu.com for some Ideas of a program sized hole in Ubuntu that would fit your requirements.

My own suggestion for something cool (not a programmer) would be to create a torrent based package management system making it almost impossible to have problems getting updates.

Any way I'm sure other people have better ideas than me but I think is a good question I thought I would get the ball rolling.

Hope this helps.


How To Get Rid of This? Ubuntu is Definitely Consuming More Power Than Windows!

Try to use:

http://linrunner.de/en/tlp/docs/tlp-linux-advanced-power-management.html

Windows 7 lasts 4.5 on battery, Ubuntu lasted only 2 hours at best... later I installed TLP and Im at 5 1/2 - 6 hours (with Intel GPU in use instead of NVIDIA)

Not to mention the fact, that this has been discussed a lot of times...else I wouldnt know about this


Mouse and keyboard don't work after update

(I can't add comment to an answer, because of low rep)
I'm the one that reported the bug a few days ago.  You should click the button that say this bug affect me too to mark the bug as confirmed.

(Solution / Workarround)
Like I said in the bug report, the previous kernel is working.  By default, Ubuntu doesn't remove previous installed kernel.  You can select the previous working kernel in grub (you may have to press escape to get the grub boot menu).


How do I manage Google Chrome updates with the update manager?

No, you don't need to do anything else. Just let Update Manager install the update, and that's it.

If you had Chrome running already, you might want to close Chrome and start it again: the running instance will be the previous version (maybe with some of the updated assets), which can sometimes cause problems. That isn't required, though. Update Manager will tell you if you need to restart your computer, and otherwise it should just work.


Want to test Ubuntu touch or Ubuntu phone os on a virgin mobile device. Any recommendations?

I am not a programmer - It took me many attempts with both Precise and Trusty desktops to get Ubuntu Touch on a Nexus 4 - which should be the"easy" one. I had issues with getting the tools, booting the device- getting the device recognised by the desktop - and I had to add PPA's plus get a PPA management tool. Your chosen phone is not on the list https://developer.ubuntu.com/en/phone/devices/devices/ If you are determined like I was - buy an old Nexus. there is not a great deal of apps yet - that will change as time goes on. Hopefully you have read this already? https://developer.ubuntu.com/en/phone/devices/devices/ If you search Ubuntu Touch here you will see the usual issues people have. Good luck


To check the file system on your Ubuntu partition...

boot to the GRUB menu
choose Advanced Options
choose Recovery mode
choose Root access
at the # prompt, type sudo fsck -f /
repeat the fsck command if there were errors
type reboot

If for some reason you can't do the above...

boot to a Ubuntu Live DVD/USB
open a terminal window
type sudo fdisk -l
identify the /dev/XXXX device name for your "Linux Filesystem"
type sudo fsck -f /dev/XXXX # replacing XXXX with the number you found earlier
repeat the fsck command if there were errors
type reboot

Update #1:

The user's computer is booting up to a grub> command prompt, not a GRUB menu.

Update #2:

Ubuntu is not installed on /dev/sda, and /dev/sdb is totally empty. Somehow /dev/sdb got wiped.


Some icons and text randomly become invisible after waking up from sleep (Ubuntu GNOME)

Restart the GNOME shell without interfering with any already opened windows using the following command and the missing Panel icons will reappear.
setsid gnome-shell --replace

Press Enter again before closing the terminal.
In case you need to run setsid gnome-shell --replace every time you boot to the desktop, you can automate the command by creating an alias for it. An alias declaration starts with the alias keyword followed by the alias name, an equal sign and the command you want to run when you type the alias. For more information see How do I create a permanent Bash alias?.


Virtualbox switches workspace automatically after suspend on Ubuntu 16.04

Rather than using your own script to move the VB window to another workspace, try using CompizConfig Settings Manager "Place Windows" panel, and set the "Windows with fixed viewport" as you can see in my example.


i386-linux-gnu_EGL.conf: No such file or directory

This seems to be a leftover from a previous nvidia driver package.

Just remove the broken link:

    sudo rm /etc/ld.so.conf.d/i386-linux-gnu_EGL.conf

But I am not sure this will solve the other problems you briefly mention.


Ubuntu Software Center buy button doesn't work

This seems a problem with Firefox integration with Software Center. I also have come across it many times. Yesterday, while using an accounting software-"Manager", same message was appeared as it also uses browser integration.

It worked for me when I copied the URL "http://......." and pasted in Firefox’s address bar, hence further process will happen in Firefox's window. But I am not sure if it works with Ubuntu Payment service. You can try with any application with 'zero' price, if it works, then I suggest to proceed for transaction.

Problem occurred in Ubuntu 12.04


Can I backup all files, settings, apps, etc. for restoration after reinstalling Ubuntu?

I think the better solution is to move all your /home to another partition like explained here
https://help.ubuntu.com/community/Partitioning/Home/Moving

After that reinstall your System. You will touch the partition / but not the /home partition.

After installation, following the same tutorial:
https://help.ubuntu.com/community/Partitioning/Home/Moving
see the paragraph "Moving /home into /old_home"

You can move your home to your old_home.

I did it in my last work and y recovery information, schema_databases, emails an account from Thundebird, svn properties, and a lot of more thinks.

I hope it can help you!


Solution to get data from memory of a process

You can browse through the virtual /proc/kcore file (the image of the RAM) and look for a string you typed. So for example (all as root)

strings /proc/kcore | grep unbelievable

will look for a string unbelievable

hd /proc/kcore | less

will give you a hex formatted output of all the RAM.

As a sidenote, I would recommend using the Lazarus FF/Chromium extension, which can save your bacon/forms and prevent these problems.


See if you can hash-check the ISO you downloaded against the hash provided on the site.

If the hash checks out, you may have accidentally downloaded the wrong build or your computer might not have sufficient memory to run the liveCD.


Win + D no longer brings me to dekstop screen

It should be Ctrl+Super+D.

Changing it to Super+D wouldn't be a good idea, since Super opens the overview (it might even be impossible).


Ubuntu is there any frame by frame video editor software which can allow to place a picture?

You may wish to give a chance to kdenlive, which includes several keyframable plugins like those you may need in order to do that work.

It comes to my mind the track plugin "MaskOMate" to "cut" the part of the image that you wish to put overlaying the video. Of course, it will be useful if you first prepare the images in order to fit the project's size, with transparency, then simply use the "Composite" track's transition in order to put the images over the video.

Both "MaskOMate" and "Composite" plugins are keyframable, so you can choose where to place your video elements in a certain moment of the video play.

See the official kdenlive site and the Creative effects page for further information.

In the next screenshot, I am using a pre-made transparency image with an amazed girl in order to place it on the background video where a man is appearing over a green screen wall. Of course, I also used the "Pan and Zoom" Plugin in order to make the image bigger. Remember: The best your sources are, the best results you'll get.

What you wish to achieve is complicated and a hard work but with patience and creativity you can create an awesome video.

Good luck!


It will have no difference at all, other than a performance gain.


How to prevent Evince from automatically opening PDF files?

Explanation:
AFAIK, Google chrome remembers the downloading preference for each file type (exe, pdf, zip... etc) that a user inputs. This has nothing to do with a specific program (in your case evince) because, Ubuntu itself uses necessary programs which are set as default to open file types. Such like, if the option seen in below image is selected for each file type, it will inherit the same preference to that selected types individually & opens/executes with a default assigned program.

I'd say this is quiet simple yet an unnoticeable option. Below should fix your problem as it took me a while to figure out why.. :)

Just right click or hit on a PDF file to download from any link
While the process shows downloading; simply click on the arrow shows next the file; un-tick "Always Open Files of This Type" if its select (ticked).

Just tested on my pc which sorted the issue. Hope it helps! :)


find : command
/external-disk/postgresql_wals_backup : the path we are searching in
-type f: only look for files (No directories, links, etc)
-mtime -2: only look for files that have been modified 48 hours ago (-2: 2*24)
-exec cp {} /work-disk/postgresql-scripts/wal_backup_script_dir/ \;:

execute cp command on each file you have found
{} is just a placeholder for files that we found
Which copies all files that have been found to /work-disk/postgresql-scripts/wal_backup_script_dir/.


Why does my Ubuntu 20.04 computer keep freezing?

The speed of your processor (2400MHz = 2.4GHz) seems to be fast enough from my experience (running Ubuntu 20.04 with a single-core 1.3GHz processor here with no issues) so I suspect it might have to do with insufficient RAM.
To check the total amount of RAM on your computer, fire up a terminal and run:
$ grep MemTotal /proc/meminfo
MemTotal:        2035504 kB

In my case, I have about 2G of RAM which is just enough for Ubuntu to run reasonably smoothly. If you only have 1G of RAM (= approx. 1000000 kB) then Ubuntu will easily freeze whenever you try to fire up a browser or anything GUI-related. Unfortunately, there's probably nothing much you can do to speed up Ubuntu in this case.
For reviving an old computer with Ubuntu, I would recommend a lighter flavor of Ubuntu such as Lubuntu which should work well with just 1G of RAM.


Boot problems Ubuntu 12.10 Samsung Series 9 900x3c

It seems the problem originates from the UEFI implementation done by Samsung. I did a clean install of Ubuntu 12.10 64 Bit but deactivated UEFI before in the BIOS ever since then no problems.


error: file ‘/boot/' not found while running ubuntu 16.04 live CD on MacBook Air (64bit) in either EFI boot mode or MBR boot mode

Change the BIOS to Legacy first and not UEFI did it for me.


VSFTPD installed, but I can't restart/stop it

Use Command sudo service vsftpd restart

you can see below i have done

sysadmin@localhost:~$ sudo service vsftpd restart
vsftpd stop/waiting
vsftpd start/running, process 21140
sysadmin@localhost:~$


vsftpd - Can't login with a custom shell enabled

According to this article, vsftpd config file has a line:
pam_service_name=vsftpd

This points to vsftpd pam service, which only allows valid shells.
So, if you comment out this line:
auth   required    pam_shells.so

in /etc/pam.d/vsftpd and then restart the vsftpd service (systemctl restart vsftpd or service vsftpd restart), users will be able to log in.
Hope this helps someone :)


Doubled auto start entry for Google chrome?

It's 100% okay. The first one - google-chrome --no-startup-window is default chrome process starter, which makes the user experience much more fluent (for opening new browser windows etc).
The second  - chrome --type=service is chrome printing service (you can disable/enable it in chrome settings).


Permanently disable WiFi power management in Ubuntu Server 18.04

Workaround: try adding the command to /etc/rc.local so that it automatically gets executed at boot:

#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.

iwconfig wlan0 power off   ### this line added

exit 0

Have tested this on 16.04. If you face any issue on 18.04 let us know.

Another way reported is to install TLP and disable wifi power management there: https://unix.stackexchange.com/a/473753/45945


It looks like the drive is toast and has reverted to its factory program mode, where it claims to be a blank 128 GiB drive.  You might check with the manufacturer to see if they have diagnostic tools.


Traditionally , Unix motd would live in /etc/motd directory.RHEL still does that. Ubuntu on the other hand places login messages in  /etc/update-motd.d/ directory.

$ ls /etc/update-motd.d/
00-header*     90-updates-available*  98-fsck-at-reboot*
10-help-text*  91-release-upgrade*    98-reboot-required*

Each of these scripts is responsible for dynamically assembling the whole message and provide specific parts.

It is still , however, possible to create a custom message in /etc/motd and place it into /etc/motd . File itself doesn't exist, but you just have to create it.

Here's how I tested it:

$ sudo sh -c 'echo  "THIS IS A TEST" >> /etc/motd'
[sudo] password for xieerqi:


Wi-Fi speed on my laptop with RTL8723DE is a bit slow and its range is also very low, what to do?

Quite often, the weak signal is a symptom of the antenna wire being connected to connection #1 on the card when the default driver is expecting to see the signal at connection #2. Of course, you could open the laptop and switch the wire or you could try a driver parameter that permits antenna selection at the driver level.

From the terminal:

sudo modprobe -r rtl8723de
sudo modprobe rtl8723de ant_sel=2

Any improvement? If so, we'll write one conf file and make it permanent.

If there is no improvement, try the sequence again with ant_sel=1and report the result.

EDIT: Since you have determined that 2 is helpful, create a file that will make the parameter permanent:

sudo -i
echo "options rtl8723de ant_sel=2"  >  /etc/modprobe.d/rtl8723de.conf
exit

You should be all set.


The easiest way in my opinion is this:
Open directory /usr/share/applications with sudo rights (easiest way with command 'gksu pcmanfm', gksu must be installed) and create the file appname.desktop and put this inside:

[Desktop Entry]
Name='appname'
Exec=/'path-to-app'/'appname'
Terminal=false
Type=Application

The menu will detect it automatically (a reboot may be needed).


FYI, you don't need a dedicated /boot partition; you can just leave /boot in your lvm root volume.  Either way, run sudo dpkg-reconfigure grub-pc to reinstall it.


No boot on Ubuntu 20.04 or 18.04 with ThinkPad T430u without nolapic option

Problem solved on kernel 5.8.0-43, which ships with the 20.04.2 image.


How to delete lines starting with certain strings

sed -i '/\[youtube\]/d' /path/to/file

will delete lines, containing "[youtube]".

As one command you can combine patterns like

sed -i '/\[youtube\]\|\[ffmpeg\]\|\[avconv\]/d' /path/to/file

Or right from your command

youtube-dl --extract-audio --audio-quality 0 --newline --audio-format mp3 \
 https://www.youtube.com/playlist?list=PL1C815DB73EC2678E |
    sed '/\[youtube\]\|\[ffmpeg\]\|\[avconv\]/d' > output.txt

This will write the result to a file output.txt.

If you want to delete lines not just containing [youtube], but starting with [youtube], then add ^ to the pattern, like sed '/^\[youtube\]/d'.

But in your case it does not matter.


You can use the following commands:

service <servicename> stop

service <servicename> start

service <servicename> restart

Note service --status-all doesn't stop or start anything, it just returns a status (and there's some known bugs in it).

If you have upstart then you can use these:

stop <servicename>

start <servicename>

restart <servicename>


You don't say what calibration app you are using, but I found using xinput_calibrator the app spits out a code snippet for you to cut and paste into a persistence file. The catch is, the correct location of that file (if you are using Ubuntu) is NOT the same as the one it prescribes. The correct location on Ubuntu is in /usr/share/X11/xorg.conf.d/.

After creating the 99-calibration.conf file in the correct location, logging out and logging in again should not affect the calibration.

You can download and install xinput_calibrator via apt-get from the Ubuntu repositories:

    sudo apt-get install xinput-calibrator


I am also currently using a script utilizing the mentioned GitHub project polling and showing on my taskbar the battery level.
Something like:
BATTERY_STATUS=$(bluetooth_battery $(bluetoothctl devices | grep HS70 | awk '{print $2}') | awk '{print $6}' | cut -d'%' -f1)

And then I print the battery level of my device HS70.
Sometimes it works, some times it fails and I have to turn off and on again the bluetooth or switch between High Fidelity Playback and Headset Unit.
I haven't managed to find a better solution for this one.
upower -e or upower --dump ain't working either.
I believe that the problem comes from the way the driver works due to the fact that my headset comes with 2 interfaces (one for music playback and one for sound and microphone).


Here is the problem : http://archive.ubuntu.csg.uzh.ch one of the repository for Switzerland is completely out of date.

I switched to http://mirror.switch.ch who is up to date and everything is all right again.


A recent article (January 2019) suggests the default repository will not give you all features and recommends Kodi 18 from stable PPA:

First remove older versions of Kodi:
sudo apt remove --autoremove kodi kodi-data kodi-bin

Then install from Kodi repository:
sudo add-apt-repository ppa:team-xbmc/ppa
sudo apt update && sudo apt install kodi

Personally I would simply run Kodi within Ubuntu 16.04 Unity Desktop but I have a GeForce GTX 970M. I guess with a GeForce 210 card that would be too much overhead.

Option 2
Inspired from comments under this new question: How to make Kodi something you can run from Ubuntu login screen without password?
You could create a new user ID called TV that auto starts Kodi in full-screen mode and does nothing else. It would not load up unnecessary apps that come with a regular user auto start after signon.


Project Hamster notifications missing on upgrade to 12.04

Update: the notifications are now back in git master.
Follow the instructions here for how to install (it's pretty straight forward).

Also when looking for hamster answers i can recommend always checking with the buglist ;)
https://github.com/projecthamster/hamster/issues?sort=created&state=open


You should add your encfs drive to /etc/fstab with the noauto option, this should tell to systemd unit not to mount the drive automatically. So you should add something similar:

/dev/sdb1 /media/extdisk fuse noauto,x-systemd.automount 0 0


It sounds like grub did not get installed to the disk MBR. Either:

Use Boot-Repair, check "Reinstall GRUB" and click "Apply"
Boot the install CD, open a terminal, and do grub-install /dev/sda

Basically this is the same as RecoveringUbuntuAfterInstallingWindows


How to install a driver for HP LaserJet P1102 printer?

There is a topic on Answers Launchpad regarding your printer:

  Smart Installer is enabled in your device. If this is enabled, your device will be detected as CDRom from where you can install the software on windows.

The solution there involves downloading and running the Windows-driver on a Windows computer to disable this "feature" using SIUtility.exe.

If that is not an option you may have a look at this (closed) question where the OP said they succeeded with hp-setup after they deleted all printers,

Alternatively, in case your printer is not recognized as a printer but as CD-ROM drive, you could try to change or define a new Udev rule for the printer. This method is suitable for advanced users only and it is may not work (we could not test this here). See also Debian bug #630648 on further details.


How do I get terminator to use syntax highlighting?

Syntax highlighting is not done by the terminal, is done by the shell; hence you'll need to setup syntax highlighting for the shell.

For Zsh there's zsh-syntax-highlighting:

Install git:

sudo apt-get install git

Install zsh-syntax-highlighting:

git clone git://github.com/zsh-users/zsh-syntax-highlighting.git
echo "source ${(q-)PWD}/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh" >> ~/.zshrc
source ~/.zshrc


Firefox history & bookmarks don't save, tried everything in the book

Open your Firefox & go to Help > Troubleshooting Information

There you will have a reset button , that will restores the Firefox to its normal behavior.

For more information

https://support.mozilla.org/en-US/products/firefox/fix-problems/firefox-wont-save-settings-or-remember-information


Recursive bash script to collect information about each file in a directory structure

While find solutions are simple and powerful, I decided to create a more complicated solution, that is based on this interesting function, which I saw few days ago.

More explanations and two other scripts, based on the current are provided here.

1. Create executable script file, called walk, that is located in /usr/local/bin to be accessible as shell command:

sudo touch /usr/local/bin/walk
sudo chmod +x /usr/local/bin/walk
sudo nano /usr/local/bin/walk

Copy the below script content and use in nano: Shift+Insert for paste; Ctrl+O and Enter for save; Ctrl+X for exit.

2. The content of the script walk is:

#!/bin/bash

# Colourise the output
RED='\033[0;31m'        # Red
GRE='\033[0;32m'        # Green
YEL='\033[1;33m'        # Yellow
NCL='\033[0m'           # No Color

file_specification() {
        FILE_NAME="$(basename "${entry}")"
        DIR="$(dirname "${entry}")"
        NAME="${FILE_NAME%.*}"
        EXT="${FILE_NAME##*.}"
        SIZE="$(du -sh "${entry}" | cut -f1)"

        printf "%*s${GRE}%s${NCL}\n"                    $((indent+4)) '' "${entry}"
        printf "%*s\tFile name:\t${YEL}%s${NCL}\n"      $((indent+4)) '' "$FILE_NAME"
        printf "%*s\tDirectory:\t${YEL}%s${NCL}\n"      $((indent+4)) '' "$DIR"
        printf "%*s\tName only:\t${YEL}%s${NCL}\n"      $((indent+4)) '' "$NAME"
        printf "%*s\tExtension:\t${YEL}%s${NCL}\n"      $((indent+4)) '' "$EXT"
        printf "%*s\tFile size:\t${YEL}%s${NCL}\n"      $((indent+4)) '' "$SIZE"
}

walk() {
        local indent="${2:-0}"
        printf "\n%*s${RED}%s${NCL}\n\n" "$indent" '' "$1"
        # If the entry is a file do some operations
        for entry in "$1"/*; do [[ -f "$entry" ]] && file_specification; done
        # If the entry is a directory call walk() == create recursion
        for entry in "$1"/*; do [[ -d "$entry" ]] && walk "$entry" $((indent+4)); done
}

# If the path is empty use the current, otherwise convert relative to absolute; Exec walk()
[[ -z "${1}" ]] && ABS_PATH="${PWD}" || cd "${1}" && ABS_PATH="${PWD}"
walk "${ABS_PATH}"
echo

3. Explanation:

The main mechanism of the walk() function is pretty well described by Zanna in her answer. So I will describe only the new part.
Within the walk() function I've added this loop:

for entry in "$1"/*; do [[ -f "$entry" ]] && file_specification; done

That means for each $entry that is a file will be executed the function file_specification().
The function file_specification() has two parts. The first part gets data related to the file - name, path, size, etc. The second part output the data in well formatted form. To format the data is used the command printf. And if you want to tweak the script you should read about this command - for example this article.
The function file_specification() is good place where you can put the specific command that should be execute for each file. Use this format:

command "${entry}"

Or you can save the output of the command as variable, and then printf this variable, etc.:

MY_VAR="$(command "${entry}")"
printf "%*s\tFile size:\t${YEL}%s${NCL}\n" $((indent+4)) '' "$MY_VAR"

Or directly printf the output of the command:

printf "%*s\tFile size:\t${YEL}%s${NCL}\n" $((indent+4)) '' "$(command "${entry}")"
The section to the begging, called Colourise the output, initialise few variables that are used within the printf command to colourise the output. More about this you could find here.
To the bottom of the scrip is added additional condition that deals with absolute and relative paths.

4. Examples of usage:

To run walk for the current directory:

walk      # You shouldn't use any argument,
walk ./   # but you can use also this format

To run walk for any child directory:

walk <directory name>
walk ./<directory name>
walk <directory name>/<sub directory>

To run walk for any other directory:

walk /full/path/to/<directory name>

To create a text file, based on the walk output:

walk > output.file

To create output file without colour codes (source):

walk | sed -r "s/\x1B\[([0-9]{1,2}(;[0-9]{1,2})?)?[mGK]//g" > output.file

5. Demonstration of usage:


Dell XPS 15: Trying to install Ubuntu 16.04 and not able to get past select partition screen

This should apply to the XPS 15 also... in the BIOS, your disk is set to RAID, and Ubuntu can't install on RAID.
Make sure to have a backup of your important Windows files!
You've got a single SSD/HDD set up in RAID mode, and the Ubuntu installer won't recognize your SSD/HDD until you switch your disk setting in the BIOS from RAID to AHCI.
Making that switch comes with some problems though, as Windows will no longer boot. Looking at this article https://samnicholls.net/2016/01/14/how-to-switch-sata-raid-to-ahci-windows-10-xps-13/ will show you how to make the change without having to reinstall Windows.
Boot to Windows with your current SATA controller configuration
Open Device Manager
Expand Storage Controllers and identify the Intel SATA RAID Controller
View properties of the identified controller
On the Driver tab, click the Update driver… button
Browse my computer…, Let me pick…
Uncheck Show compatible hardware
Select Microsoft as manufacturer
Select Microsoft Storage Spaces Controller as model3
Accept that Windows cannot confirm that this driver is compatible
Save changes, reboot to BIOS and change RAID SATA Controller to AHCI
Save changes and reboot normally, hopefully to Windows

Now you should be able to install Ubuntu in a dual-boot configuration.
ps: Also see http://triplescomputers.com/blog/uncategorized/solution-switch-windows-10-from-raidide-to-ahci-operation/


The following two steps are required:

Start the window manager with dbus-launch in ~/.xinitrc:

exec dbus-launch --exit-with-session <your-wm>

This makes the disks show up in PCManFM.
Add a file named (e.g.) udisks.pkla to /etc/polkit-1/localauthority/50-local.d/ with the content:

[Allow mounting removable media]
Identity=unix-group:plugdev
Action=org.freedesktop.udisks2.filesystem-mount
ResultActive=yes
ResultInactive=yes
ResultAny=yes

Though this also allows unmounting of removable media I still get a (false) error message from PCManFM saying "Not authorized to perform operation".


Try to do sudo apt-get update && sudo apt-get upgrade before installing vim. Sometimes not-upgraded packages mess up installation of others.


Something wrong on the installation like:
-There is not a swap partition
-You could have installed a 64bit on a 32bit computer or viceversa
-There could be a process (even if you don´t notice) that is try to run
-You are trying and imposible situation whith the installation, or have an error on it

You have to be more especific, give details of how do you install it


If the output of echo $0 command is -bash it means that  bash was invoked as a login shell. man bash says somewhere at line 126:

A  login shell is one whose first character of argument zero is a -, or
one started with the --login option.

See more about here: Difference between Login Shell and Non-Login Shell.

So your shell is still /bin/bash (this can be checked with echo $SHELL command) and I suggest you to use that command which give you error as normally:

exec /usr/share/debconf/frontend bash


Why not try rEFIt instead  ?

check out http://mabelmzhang.blogspot.com/2013/02/how-to-guide-for-triple-booting-mac-os.html

rEFIT / Ubuntu 12.04 LTS / Kernel 3.9.x worked for me


Help Creating Rsync/Crontab script that checks if ExtHD is mounted before running

sudo mount /dev/sXX && rsync whatever

I have tested and i receive email errors if mount fails. Therefore this uses crontab/rsync and notifies me of failed mounts via email.

Not really a script, but hey, why do extra work, K.I.S.S. !


The .bash_history file only stores the command history, not the output. Skimming through man bash it does not seem to support that kind of logging.

However there is the script command that is able to log the output of any terminal. The usage is quite simple:

script ~/mylog
Script started, file is /home/-----/mylog
...
(commands that produce output)
...
exit
Script done, file is /home/------/mylog

The output can be read from ~/mylog.


47 GB of 64 GB Ram full after new install

--edit--
Please post the contents of "/etc/fstab" - we may find the answer there...

It looks like you may have somehow loaded the SWAP file and tmpfs into main memory.
Try temporarily turning off the swap file "swapoff -a" and see if it drops by 10GB.


I found a solution.

The 4.13.0-25 on 17.10 and 4.4.0-109 on 16.04 updates for Meltdown affect how the Linux kernal operates in a virtual environment. This is important because anyone running a large number of Linux servers is doing it on ESXI and VBox VM environments. My bare metal cloud servers seem unaffected and gladly took the changes with no complaint. The VMs were another story..

For those who are using Oracle VirtualBox there was a change in how 'Enable VT-x/AMD-V' and 'Enable Nested Paging' work in response to how the Meltdown changes in the released Linux kernal (with respect how VBox runs them). Modifying the values do not have any affect - the only resolution is upgrade 5.0.x to a version that 're-connects' this functionality.

I used VB 5.0.x and found that VirtualBox 5.2.x will totally work with the newest Meltdown Ubuntu kernels. So my fix was the following:

(1) Stop current VBox activities:

Issued these commands and kill-9'd everything I could:

  ps aux | grep vbox
  ps aux | grep virtualbox

(2) Install the 5.2.x version of VirtualBox on my Ubuntu 17.10 server:

  sudo apt-get update
  sudo apt-get install virtualbox-5.2

  and don't forget: sudo /sbin/vboxconfig

(3) Rebooted server and crossed fingers hoping that I did not bring down a dozen PROD VMs (and I didn't).

My administrative version of phpVirtualBox runs fine with 5.2 and all of my VMs came up with the Meltdown kernal updates (and host server is 16.04LTS and has the 4.4.0-109 kernal).

I am Meltdown patched, and have an updated Oracle VBox headless to v5.2 and my startup scripts I wrote worked unaffected.

I hope this helps someone else in my situation. Here is some more details on this known issue: https://forums.virtualbox.org/viewtopic.php?f=3&t=86185

The VBox logs on my system showed this too: emR3Debug: rc=VERR_PGM_INVALID_CR3_ADDR

tags: Linux kernal updates for meltdown, meltdown changes affect how updated kernels on VMs run, Linux kernal 13.0.25, Linux kernal 4.4.0-109


Digital pen or smart pen which has support for Ubuntu 14.04

The only thing I found looking around on the Linux Hardware Compatibility List (HCL) is the Waltop QPad which is also sold by Aiptek under the designation "Aiptek HyperPen Mini".

No personal experience, the post is from 2010, so I advise you to start an e-mail campaign on Linux to the providers of the other digital pens that are around...  Maybe one will bite! :(


You can try the following (exchange wlp5s0 with your interface name):

Flush your configuration: sudo ip addr flush wlp5s0

Set your own configuration: sudo ip addr 10.149.40.49/24 broadcast 10.149.40.255 dev wlp5s0

Add a default route via your gateway: sudo ip route add default via 10.149.40.1

Add your dns-nameservers to resolv.conf: sudo nano /etc/resolv.conf

# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
#     DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
nameserver 127.0.1.1
nameserver 10.149.32.2
nameserver 10.156.33.53

All these settings will be lost after reboot.


I think it's possible that you're just misremembering the correct shortcut.

To rename a file in Nautilus, simply select the file and press F2 (without pressing the Fn key).


I finally found the answer here:
http://ubuntuforums.org/showthread.php?t=1467441

User "gojan" wisely noted the following,

  "I had the same problem, everything mounted perfectly but I was
  receiving "an error occured while mounting static" It turned out I
  mistakenly erased # from the first line of fstab."

Somehow I'd done the same thing so the first line of /etc/fstab was the uncommented comment,

  "/etc/fstab: static file system information."

Oh, that explains why it was having an error trying to mount static.  :)


Google's Chromecast may be a good way to do this, although it is limited in what it can display... It's only $35 US, and works quite well... You may find this interesting, especially in regards to HDMI video over WiFi: http://thewirecutter.com/reviews/the-best-wireless-hdmi-video-transmitter/


Your problem is that /dev/sda2 ends at sector 219,426,815, but /dev/sda3 begins at sector 219,426,814 -- thus, they overlap. Writing to the very end of /dev/sda2 will trash /dev/sda3, which is extremely dangerous, because /dev/sda3 is an extended partition, meaning that it's a container for /dev/sda5 and /dev/sda6. Such a write (to the end of /dev/sda2) would likely cause those last two partitions to be completely lost.

If I'm reading those values correctly, fixing this will be difficult. The problem is that logical partitions require at least one free sector immediately before they begin. Your /dev/sda1, /dev/sda2, and /dev/sda6 all have such gaps; but /dev/sda4 and /dev/sda5 lack such gaps and so must remain primaries. Logical partitions also must be contiguous. Given that you've got five primary or logical partitions, you must convert at least two of them to logical form to make a legal partition table. The only two that can be so converted are /dev/sda1 and /dev/sda2 -- but it looks like /dev/sda1 is your Windows boot partition, and converting it to logical form will render it unbootable. (Converting partitions from one form or another can be done with my FixParts program, which is part of the gdisk package in Ubuntu.)

Overall, my first recommendation is to BACK UP EVERYTHING ON THAT DISK! This is because the disk is in an UNSAFE STATE. Anything you attempt to do to repair the disk runs the risk of creating even worse problems, so having a backup is critical.

Once you have a backup, one approach to fixing the problem is as follows:

Using an Ubuntu live boot and gdisk, convert the disk from MBR to GPT format, as described in the gdisk documentation. This will render Windows unbootable!
Using GParted or a tool in an emergency Windows disk, resize your partitions such that there's a short gap before any partition you want to be logical. A single sector is big enough, but with GParted, it's likely to create a ~1MiB gap. That's fine. Since you're trying to install Ubuntu, you might as well open up gaps that are big enough for the Ubuntu installation -- but I wouldn't create new partitions for Ubuntu just yet.
Using gdisk, do a reverse conversion from GPT to MBR. You'll be able to select which partitions will be primary and which will be logical. Be sure that /dev/sda1 is primary.
Using a Windows emergency disk, re-install the boot loader.
Hope it works.

This procedure is very risky; there are any number of things that can go wrong. In the long run, though, it's probably no riskier than leaving it as-is, since your /dev/sda5 and /dev/sda6 could disappear at any moment.

Another approach is to back everything up, repartition, and restore everything. It may come to this if you run into serious problems with the procedure I've outlined, so be prepared to do this even if you try my suggested "fix." You could also try a sort of hybrid procedure -- back up /dev/sda5 and /dev/sda6, delete them and /dev/sda3 (the extended partition that houses them) using fdisk in Ubuntu, create new partitions in their place, and then restore the data.

Yet another approach is to convert the disk to GPT form and install an EFI-mode boot loader. This will work only if you have EFI firmware, which became common starting in mid-2011; it most likely won't work on earlier computers. If you've got a newer machine, you can read about the boot mode conversion here. This approach works because GPT doesn't use logical partitions, so converting to GPT removes /dev/sda3, leaving only the partitions it contains, and the overlap is gone. (That's also why my earlier procedure converts temporarily to GPT -- your partition layout is legal in GPT, which will enable GParted to resize partitions.)


Don't know why, but yelp works normally now. Many updates have been installed and I have changed preferences on many other things, but nothing specifically related to yelp.


i have downloaded yED-3.14.3_64-bit_setup.sh, but i don't know what code to run next

Open a terminal with Ctrl+Alt+T:

Move to the working directory with cd /path/to/file.
Make it executable with chmod +x yED-3.14.3_64-bit_setup.sh.
Run it with sudo yED-3.14.3_64-bit_setup.sh


Nautilus custom folder icons in /home disappeared and i cant change them anymore

In case someone comes to this, i was able to solve this by doing the following:

sudo rm -rf ~/.gconf/apps/*
sudo rm -rf ~/.config/nautilus
sudo reboot

When back at the desktop session i was able to use custom icons for my folders in ~/ again


How to add Firefox Bookmarks (from Windows) to Ubuntu Firefox bookmarks

Is there a way to merge the bookmarks on my old pc to those on my new
  pc?

  Unfortunately, Firefox does not have good tools for merging and
  de-duplicating bookmarks. I'm going to suggest a round-about way to do
  this. Here's a general overview:

  Create a new blank profile (profile #3) in your current Firefox (see details at the end)
  While using profile #3, restore a JSON-format backup file from your old system (profile #1) (see Restore bookmarks from backup or move
  them to another computer)
  Export the restored bookmarks to an HTML format in a convenient location, with a unique file name (see Export Firefox bookmarks to an
  HTML file to back up or transfer bookmarks)
  Exit Firefox and start up again in your normal profile (profile #2)
  Import the HTML-format bookmarks file (see Import Bookmarks from an HTML file)
  Create a backup in case anything goes wrong in step 7 (see Restore bookmarks from backup or move them to another computer)
  Reorganize the bookmarks from the Imported Bookmarks folder (see https://support.mozilla.org/kb/use-bookmarks-to-save-and-organize-w...),
  possibly using a deduplicating add-on

  Create a new Firefox profile

  A new profile will have your system-installed plugins (e.g., Flash)
  and extensions (e.g., security suite toolbars), but no themes, other
  extensions, or other customizations. It also should have completely
  fresh settings databases and a fresh cache folder.

  Exit Firefox and start up in the Profile Manager using Start > search
  box (or Run):

firefox -P

  Do not delete anything here. Any time you want to switch profiles,
  exit Firefox and return to this dialog.

  Click the Create Profile button, assign a name like OldBookmarks, and
  skip the option to change the folder. Then start Firefox in the new
  profile you created.

  You're ready to restore to this new profile and create the HTML-format
  export.

  When returning to the Profile Manager, you might be tempted to use the
  Delete Profile button. But... it's a bit too easy to accidentally
  delete your "real" profile, so I recommend resisting the temptation.
  If you do want to clean up later, I suggest making a backup of all
  your profiles first in case something were to go wrong.


Middle-button scrolling with trackpoint Thinkpad T540p

According to the comment #88 on bug report Middle button does not work for scrolling, the problem can be immediately solved with the following package installation:

sudo apt-get install xserver-xorg-input-libinput

Worked for me on T440 with Ubuntu 16.04.1 LTS


Dependency Loop When Trying to Install Firefox Xvfb

Consider to purge Mozilla's PPA:

sudo apt install ppa-purge
sudo ppa-purge ppa:mozillateam/firefox-next

to resolve dependency errors.

Also please note that official Ubuntu repository has Firefox 63.0 which is not too different from 64...


Error mounting 16.10 with non-zero exit status 32: mount: Bad message

Upd: Using this helpful answer
i've tried to update fsck:

wget http://downloads.sourceforge.net/project/e2fsprogs/e2fsprogs/v1.43.1/e2fsprogs-1.43.1.tar.gz
tar xzf e2fsprogs-1.43.1.tar.gz
cd e2fsprogs-1.43.1
./configure # <== if this step fail, check the config.log file, it could just be that you are missing the "libc6-dev" package on your system
make
cd e2fsck/
./e2fsck

Then done as follows:

./e2fsck -p -b 32768 /dev/sdb1
./e2fsck -p -b 32768 /dev/sdb9
./e2fsck -p -v /dev/sdb1
./e2fsck -p -v /dev/sdb9

Fascinating, now i can access the both devices as mediums just fine.
Apologize for cause the commotion with my lack of expertise here in the first place.


A Bug report: Bug 40461 - Tooltips get written Black on Black with KDE default theme bound to LibreOffice / https://bugs.freedesktop.org/show_bug.cgi?id=40461

Workaround:

http://chakra-project.org/bbs/viewtopic.php?id=5895

  An easier "solution" for this issue is select oxygen cold theme color
  instead oxygen in System Settings... :-)

http://irclogs.ubuntu.com/2012/02/18/%23kubuntu-devel.html

  Ezim  that way libreoffice and other gtk application on toolbar tips
  look so damn ugly oxygen cold solves that problem easy


Upstart will resolve the symlink. You cannot work around this by using a script section and cd /path.

Edit: it looks like it was figured out what the problem was. cd was setting $PWD to the symlink, not the resolved directory, and chdir was not setting $PWD at all, so the app was getting its current working directory and receiving the resolved path.


How do I shrink the root logical volume (LV) on LVM?

BEFORE YOU CHANGE ANYTHING MAKE SURE YOU HAVE A CURRENT BACKUP. This all worked for me, but it might not work for you. If it blows up for some reason, you don’t want to lose anything that you can’t recover. Continuing on…

It is not possible (to my knowledge) to shrink a filesystem while it is mounted, so we need to do the actual resizing from a Live CD. All the following instructions assume you have booted off of the 11.10 Desktop Install CD.

After the Live CD boots up to the desktop, open up the Terminal.

The LVM tool are not built-in to the Live CD, so first we must install them:

sudo apt-get install lvm2

Find the name of the Volume Group (henceforth “somevg”) that contains the root Logical Volume:

sudo lvs

(If it’s not showing up, try running sudo lvmdiskscan and sudo pvscan then try again.)

If you run ls /dev/mapper/ you may see that the Logical Volumes is not showing up. If it’s not there, you need to run the following command to make the kernel aware of the logical volumes:

sudo vgchange --available y <somevg>

Since we haven’t mounted the root filesystem, it should be safe to resize. Proceed to perform the actual resizing of the Logical Volume. Note that this command (--size -50G) shrinks the volume by 50GB — read the lvreduce(8) man page to learn how to specify a different size.

sudo lvreduce --resizefs --size -50G /dev/<somevg>/root

(My Logical Volume is called “root”, but yours may be named something different.)

This command will first shrink the filesystem, then shrink the Logical Volume that contains it, which is the only safe way to do it.

You can now restart the system and boot into your now-resized root filesystem.


Well AMD Radeon graphics cards (especially the recent ones) are difficult to use with Linux. It happens exactly the same with my AMD Radeon HD6850, until I install the FGLRX proprietary driver package.

To install it, you must go into the Recovery Mode. To do that, hold SHIFT at startup so the GRUB menu is displayed, choose Ubuntu Recovery Mode after that. Choose to mount the disk as read/write, then drop to the root shell with networking (this is very important).

Then do the following commands once you're dropped to the root shell:

sudo apt-get update
sudo apt-get upgrade
sudo apt-get install fglrx
sudo aticonfig --initial
sudo reboot

If everything worked, you should be fine and see the desktop after this.


Preventing 'read-only' error in USB pen drive

If you are using NTFS on the drive, the open source NTFS utility is not capable of handling all the errors that the Windows utility can handle. In such cases, you have to check the disk from Windows. However, if you are going to format anyway, you can do that from Ubuntu, since Ubuntu does mount it as a read-only system, allowing you to backup content from it, while preventing further damage.


Ubuntu 17.10 Drivers Not Found/Working Properly?

With a working internet connection, open a terminal and enter these commands one at a time:

sudo apt update && sudo apt install git

If it is already installed, please just continue.

First, let's clean away the steps that we've shown are not working:

sudo dkms uninstall rtl8812au/5.2.9
sudo rm /usr/src/rtl8812au-5.2.9
sudo rm ~/rtl8812au-driver-5.2.9
rm -rf rtl8812au

Next, please do:

git clone https://github.com/gnab/rtl8812au.git
sudo cp -r rtl8812au  /usr/src/rtl8812au-4.2.2
sudo dkms add -m rtl8812au -v 4.2.2
sudo dkms build -m rtl8812au -v 4.2.2
sudo dkms install -m rtl8812au -v 4.2.2

Reboot and tell us if the wireless is working.


Try to use TiLP instead of Ti Connect. TiLP should work without problems on Ubuntu.

Install it using this command

sudo apt-get install tilp2


Yes you will need to run

sudo dpkg --configure -a

if you want to install anything else on your system. As far as it taking a long time...in my experience it shouldn't take long at all, but the problem maybe more akin to a harddrive issue than memory.

If you would like to check the memory the ubuntu installation media has a memory checker called memtest. You can run it by booting to the installation media and hitting enter when the initial screen comes up. This will give you the option to change the language ,among other things, but the item you want is "Test Memory".

If memtest finds an error you will get information regarding the location of the fault.

Good luck


Play music even if the computer is closed

You can achieve it by installing gnome-tweak-tool.
Once installed just go to power and turn off suspend when laptop lid is closed.


Juju requires a real cloud to work which means you can't use it for most VPSes. For VPSs that have an API someone would need to write a provider for it so Juju can use it.

If anyone is interested in working on "scaling Juju down" here are some getting started pointers, but as of now the project is focused on scaling up:

https://juju.ubuntu.com/the-juju-unprovider/

For 2.0 there might be a way to leverage the local provider and docker.io to make it easy to shoot Juju containers over to a VPS, but there hasn't been much discussion on that yet.


installation of flashplugin-installer is failing

I haven't tested it, but looking at the postinst script, the file is supposed to be in /var/cache/flashplugin-installer. Try keeping the file there and running sudo dpkg-reconfigure flashplugin-installer:

sudo cp adobe-flashplugin_20150811.1.orig.tar.gz /var/cache/flashplugin-installer
sudo dpkg-reconfigure flashplugin-installer