June 30, 2014

How to Install KVM on Ubuntu 14.04 LTS (Trusty)

Prerequisite

Verify that you have enabled virtualization in BIOS. For detail see Virtualization with KVM on RHEL 6

Install

Install required packages.

$ sudo apt-get install qemu-kvm libvirt-bin bridge-utils virt-manager

Run

Now you ready to run virt-manager and install new virtual guests.

$ sudo virt-manager

If you are new to kvm, please read Virtualization with KVM on RHEL 6 for a detailed description.

June 21, 2014

Tweak Unity in Ubuntu 14.04

The preferred way to tweak the user interface (Unity) in Ubuntu 14.04 is via the unity-tweak-tool. You can also use ccsm - CompizConfig Settings Manager, but I would recommend to stick with the recommended unity-tweak-tool, since settings can be messed up, when manipulating settings with different tools.

To install:

$ sudo apt-get install unity-tweak-tool

And if you have got lost when configure, you can always get back to original configuration with:

$ unity-tweak-tool --reset-unity

Static Routes with RHEL 6

The new way to add static routes in RHEL 6 is

$ vi /etc/sysconfig/network-scripts/route-<interface>

ADDRESS0=X.X.X.X
NETMASK0=X.X.X.X
GATEWAY0=X.X.X.X

Or alternative via the old ip command style.

$ vi /etc/sysconfig/network-scripts/route-<interface>

X.X.X.X/Y via X.X.X.X dev <interface>

And to set the default gateway.

$ vi /etc/sysconfig/network
...
GATEWAY=X.X.X.X
...

How to Install Minecraft in Ubuntu 14.04

Kids go crazy over the swedish developed game Minecraft. Below is a link how to install it on Ubuntu 14.04.

http://ubuntuhandbook.org/index.php/2014/04/install-minecraft-in-ubuntu-14-04/

How to Merge Multiple PDF Files in Ubuntu

You can easily merge several pdf files into on file with 'pdftk - A handy tool for manipulating PDF'

Example how to merge file1.pdf and file2.pdf to mergedfile.pdf.

$ pdftk file1.pdf file2.pdf cat output mergedfile.pdf

June 12, 2014

Convert MP4 to MP3 on Ubuntu 14.04 Trusty

There is a program available on Ubuntu youtube-dl, that can download videos from youtube.com or other video platforms. But it stores the file in mp4, since it contains video. But sometimes you do not want the video and only the audio. To extract only the audio part, you can use the pacpl comamnd line tool.

pacpl --to mp3 -v -r- -bitrate 320 targetfile.mp4

June 9, 2014

Bash Programming Documentation in RHEL 6

I'm not a bash script guru, so I need documentation. Here I will show you how to get/install that for RHEL 6.

All the BASH documentation is available via the bash-doc RPM, but it is not located in the RHEL base channel (rhel-x86_64-server-6), but in the RHEL Server Optional channel (rhel-x86_64-server-optional-6).

To add or remove channels from the command line you use the rhn-channel.

rhn-channel --channel=rhel-x86_64-server-optional-6 --add --user=<RHNREG_USERNAME> --password=<RHNREG_PASSWORD>

Now you are ready to install the bash-doc package.

yum install bash-doc

And to list the installed files.

$ rpm -ql bash-doc
...
/usr/share/doc/bash-4.1.2/doc/bashref.pdf
...

And the most interesting file is the BASH Reference Manual, as highlighted above.