Useful Ubuntu Commands

For my own use, I’ve just started collecting various Ubuntu commands and tips on this page – saves me searching every time. I’ll add to it as I go. I hope you may find it useful too. After each command I will link to more information. Please view the links before executing potentially dangerous commands like ntfsfix. I’ll prefix the title of such commands with a (WARN).

(WARN) Mounting an NTFS parition which didn’t shutdown cleanly.

My laptop shutdown suddenly and refused to boot anymore. The SSD couldn’t mount from an external drive because the NTFS partition wasn’t shutdown cleanly. The solution:

sudo ntfsfix /dev/sdb2

For more information, see here.

Increasing or decreasing the volume of a video using FFMPEG

ffmpeg -i input.wav -af 'volume=2' output.wav

Replace volume=X with a suitable number. For example 0.5 will half, 2 will double the volume. For more information see here and here.

Mounting a USB Device in Virtual Box

After installing VirtualBox I was unable to connect to any USB Devices from within my virtual machine. The solution was to add my user to the vboxusers group:

sudo usermod -a -G vboxusers $USER

You’ll need to log out and back in to effect the change. See here for more information.

Finding a Missing Shared Library

I like to use Clipgrab on KDE Neon, but when I try to run it, I get the following error:

error while loading shared libraries:

The solution is to use apt-file to identify the package which provides this shared library, and then install it:

apt-file search
sudo apt install libqtwebkit4

See here for more information.

Wierd mouse in KDE

Change the “System setting -> Display and Monitor -> Compositor -> Rendering Backend” from openGL 2.0 to XRender.

see here


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s