June 30, 2014

Packt is offering all of its eBooks and Videos at just $10 each for 10 days

Packt is celebrating 10 years anniversary and is celebrating that with offering all of its eBooks and Videos at just $10 each for 10 days.

How to Send Mail from the Command Line with Telnet

You can easily test your mail configuration from a linux server with telnet.

$ telnet rhel1 25
Connected to rhel1.
Escape character is '^]'.
220 rhel1.localdomain ESMTP Postfix
HELO rhel1                        # Note that "HELO" is not a misspelled. It is the command for telnet services.
250-SIZE 10240000
250 DSN
MAIL FROM: ivan@rhel2
250 2.1.0 Ok
RCPT TO: david@rhel1
250 2.1.5 Ok
354 End data with <CR><LF>.<CR><LF>
Subject: Subject goes here.
Body goes here.
.                                # End body with '.' and Enter                            
250 2.0.0 Ok: queued as 5C3E5E12EA
                                 # Quite interactive mail session with ctrl + ']'
221 2.0.0 Bye
Connection closed by foreign host.

For a more detail description, please see http://www.ehow.com/how_5209651_use-sendmail-command-line.html.

Server Comaparison between RHEL and Windows

An interesting comparison (in swedish) between RHEL server and Windows server.

Windows vs Linux


How to Install KVM on Ubuntu 14.04 LTS (Trusty)


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


Install required packages.


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

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:

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

Static Routes with RHEL 6

The new way to add static routes in RHEL 6 is

Or alternative via the old ip command style.

And to set the default gateway.

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.


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.

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.

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.

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

And to list the installed files.

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