Bash Completion on CentOS 5

I use the command line everyday at for work and home. Command switches a part of life but the problem is remembering switches. The man files have always helped and always will continue doing so.

Bash-completion came along to help in this area. It displays a list of a available switched for a specific command by simply hitting the TAB key twice. See screenshots below for clearer picture.

1. Download the rpm . Currently no packages available from the CentOS repos.
#”wget http://www.caliban.org/files/redhat/RPMS/noarch/bash-completion-20060301-1.noarch.rpm”

2. Install the rpm
#”rpm -ivh bash-completion-20060301-1.noarch.rpm”

3. Start a new shell or execute the command below
#”. /etc/bash_completion”

4. Test out your new shell enhancement
#”ls — [TAB][TAB]”

bash-completion1.jpg

bash-completion2.jpg

Other Sources:

All About Linux

Debian Administration

Installing yum fastest mirror plugin on CentOS 5

Being in Malaysia don’t expect the best speeds when running “yum -y update“. I recommend installing the yum fastest mirror plugin to see some better results.

The plugin basically goes through the list of mirrors and determines which mirrors have the best response time. The results are then sorted and stored in a local cached copy.

Installation is simple,

1. # “yum install yum-fastestmirror” for CentOS 5 and “yum -y install yum-plugin-fastestmirror” for previous versions.

2. # “vi /etc/yum/pluginconf.d/fastestmirror.conf” ensure the settings described below and set properly.

[main]
enabled=1
verbose=0
socket_timeout=3
hostfilepath=/var/cache/yum/timedhosts.txt
maxhostfileage=1

3. # “yum -y update” and you should start seeing a difference.

# yum -y update
Loading “fastestmirror” plugin
Loading “installonlyn” plugin
Setting up Update Process
Setting up repositories
Loading mirror speeds from cached hostfile

More help available at the CentOs Wiki .

Linux guide for a windows user

An awesome book for the average Windows user who is thinking about getting started in Linux or maybe just curious about what Linux looks and feels like. The book will show you how, where and what is needed to get you  started on you Linux journey.

The book is authored by Scott Morris from openSUSE Linux Rant. 25 versions from 5 different OS platforms and 20 years of experince is what he bring to the table. Read his bio.

I have gone through the book and personally found it to be really good for those who are eager to get started in the Linux world but don’t want to be overwhelmed by too much information. The information is simple and supported by detailed screenshots. One can never go wrong with screenshots.

The book stresses that Linux today is fully functional through it GUI interface alone and the need for the command line is more suitable for those with more experience who prefer working in the CLI environment. Limited packages and complicated installation procedures are something of the past as now there are tons of quality software packages bundled with Linux and with the addition of the GUI based package managers the end user is able to easily install/uninstall the packages of their choice.

If you eager to start then please add this book to your “must have” list of books.

Get the the book

Source: openSUSE Linux Rants

Top Antivirus Applications

Antivirus applications are installed on almost every computer today. The threat of virus attacks is always growing and the technology evolving. The best defense anyone can have today is a good antivirus application.

PC World has published a list of the top performers in the antivirus space. This is helpful information for those looking to get antivirus application to secure their computers.

The Top Performers are;

1. Kaspersky Anti-Virus 6

2. Symantec Norton AntiVirus 2007

3. BitDefender Antivirus 10

4. Eset NOD32

Source: PC World – Top Antivirus Performers

Funny Comics

Got these comics in my mail today.

© 2008-2012 The Danesh Project
Powered by Wordpress and made by Guerrilla. Hosted at ServerFreak