Wednesday, December 25, 2013

KVM Virsh Console Access to Linux VM – RHEL 6

The console command within virsh is an excellent feature to have working for your virtual environments. For example, it can be really handy to watch a machine boot without launching a GUI tool ie. virt-manager. I personally find virsh console access a quicker way to configure networking settings which may not be able to be achieved via SSH, other than using virt-manager.

Step 1: Configure Serial Terminal
On your new RHEL 6 virtual machine, you’ll need to configure ttyS0. This serial interface is how “virsh console” gains access to your virtual machine.

Log into your virtual machine…

Create new ttyS0 config file.

Step 2: Allow login into ttyS0
By default RHEL 6 will not allow a user to login via ttyS0 unless we modify security.

Step 3: Start ttyS0
Make ttyS0 available, from your terminal execute the following command.

Step 3: Test Virsh Console
From your KVM server, connect to the console of your virtual machine.

Wednesday, December 18, 2013

Fedora 20 Heisenbug Post Installation Guide

Fedora 20 Post Installation Guide

Fedora 20 also known as 20 Heisenbug is the latest version of Fedora distro. It comes with many new features and software updates. Note: Almost every command shown here requires root privileges. So make sure you are logged in as root. Run su command to login as root.

Rpmfusion Repo
RPM Fusion Repository includes variety of applications which are not included in the main distro. Like mp3 codec, multimedia player for playing DVDs and many more.
It is recommended that you install RPM Fusion repo because most of the following packages require you to install RPM Fusion otherwise it may not work
#yum localinstall --nogpgcheck
#yum localinstall --nogpgcheck

Livna Repo
Some packages require you to install Livna Repo. Simply run he following commands to add and enable livna repo on your system.

#rpm -ivh
#rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-livna

MP3 playback Rythmbox

Rythmbox is likely that it will be installed by default. If not installed then you can install it very easily.

#yum install rhythmbox

The default installation of rhytmbox wont allow you to play mp3. To play mp3 you need to add the codes
#yum install gstreamer-plugins-good gstreamer-plugins-bad gstreamer-plugins-ugly


Amarok is the default audio player for KDE. It can also be installed on Gnome.

#yum install amarok phonon-backend-gstreamer


Audacious is a winamp like audio player

#yum install audacious audacious-plugins


XMMS is another winamp like audio player. And its one of my favorite. Its better than audacious in my eyes

#yum install xmms xmms-mp3
Banshee allows you to import CDs, sync your music collection to an iPod, play music directly from an iPod, create playlists with songs from your library, and create audio and MP3 CDs from your music library.

#yum install banshee banshee-community-extensions

Video and DVD Playback

VLC player
VLC player is the best video player for Linux. It is capable of playing almost every video format.

#yum install vlc

Xine is another video player for Linux. It is very much like vlc player

#yum install xine xine-lib xine-lib-extras-freeworld

Mplayer with SM Player GUI
Mplayer is a VLC player like player for Linux. It is capable of playing almost all video and audio formats.

#yum install mplayer smplayer

Totem is the default video player for Fedora.

#yum install totem-xine xine-lib xine-lib-extras-freeworld


K9Copy is a free, open source DVD backup and DVD authoring program for Linux

#yum install k9copy


libdvdcss is a free and open source software library for accessing and unscrambling DVDs encrypted with the Content Scramble System (CSS). libdvdcss is part of the VideoLAN project and is used by VLC media player and other DVD player software such as Ogle, xine-based players, and MPlayer.

#yum install libdvdcss

Adobe Flash Player Add the Adobe repo
#rpm -ivh
#rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-adobe-linux
#yum install flash-plugin

Install Flash Player
#yum install flash-plugin
Acrobat Reader
Add adobe YUM Repo
#rpm -ivh
#rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-adobe-linux
Install Adobe reader
#yum install AdobeReader_enu
Google Chrome
Add Google YUM Repo
#vi /etc/yum.repos.d/google.repo
And paste the following
Fedora 32-bit

name=google-chrome - 32-bit
Fedora 64-bit

name=google-chrome - 64-bit
Save the file using “:wq“.
Install Google Chrome

#yum install google-chrome-stable

Other Applications Filezilla
Filezilla is a FTP client and its one of the best

#yum install filezilla
7z or p7zip

#yum install p7zip


Unrar utility for extracting, testing and viewing the contents of archives created with the RAR archiver version 1.50 and above.
#yum install unrar

Transmission bittorrent client
Transmission is a lightweight bittorrent client for Linux platform.
#yum install transmission

Wine is a is a compatibility layer capable of running Windows applications on Linux. It can run many windows applications even some games in Linux.
#yum install wine

GParted is a free partition editor for graphically managing your disk partitions.
#yum install gparted

Gimp is the most advanced Image Editor for Linux. This gimp has lot of useful features useful.
#yum install gimp yum install gimp-data-extras gimpfx-foundry gimp-lqr-plugin gimp-resynthesizer gnome-xcf-thumbnailer

Eclipse IDE
Eclipse is a multi-language Integrated development environment (IDE)
#yum install eclipse

Yum Extender : yumex
Yum Extender (yumex) is a GUI for the yum package manager. If you do not like installing everything from the terminal you can add a GUI installer.
Follow This Article to install Yum Extender (yumex) on Fedora 20

Skype Installation Dependencies:-
#yum install alsa-lib.i686 libXv.i686 libXScrnSaver.i686 qt.i686 qt-x11.i686 pulseaudio-libs.i686 pulseaudio-libs-glib2.i686 alsa-plugins-pulseaudio.i686 qtwebkit.i686 -y


#yum localinstall skype-

Gnome Extension Installation

Using "Gnome Link" create a account. List of extension.

Tuesday, December 3, 2013

Use google-authenticator for Fedora Login

Install Google Authenticator for Fedora

If you set up 2-step verification using SMS text message or Voice call and also want to be able to generate codes using the Android, iPhone or a Blackberry, you can use the Google Authenticator app to receive codes even if you don’t have an Internet connection or mobile service.
Prerequisite :-
Android Phone.
Barcode scanner.
Google Authenticator App on Phone.
On Laptop as Follow.
[root@localhost rajat]# yum install google-authenticator -y
Loaded plugins: langpacks, presto, refresh-packagekit
Resolving Dependencies
--> Running transaction check
---> Package google-authenticator-1.0-0.gita096a62.fc19.1.x86_64 will be installed
--> Finished Dependency Resolution

Dependencies Resolved


 Package                      Arch           Version                                       Repository      Size
 google-authenticator         x86_64        1.0-0.gita096a62.fc19.1           fedora          33 k

Transaction Summary

Install  1 Package

Total download size: 28 k

Installed size: 56 k
Downloading Packages:
google-authenticator-1.0-0.gita096a62.fc19.1.x86_64.rpm                       |  33 kB  00:00:07
Running Transaction Check
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing : google-authenticator-1.0-0.gita096a62.fc19.1.x86_64                               1/1
  Verifying  : google-authenticator-1.0-0.gita096a62.fc19.1.x86_64                               1/1




Add line to following file:- 

#vi /etc/pam.d/gdm-password

auth         required


Save and close CTRL+D  (Become as normal user.)

once you type your password next screen you get which is google-authenticator