Archive for the ‘Tutorials’ Category

How to install Firefox-3.5 with Firefox-3.0 in Ubuntu

Thursday, September 17th, 2009

Firefox is a great browser when it comes to usability, innovations and features. But there is a huge problem in most GNU/Linux Operating systems, which dont have the latest Firefox 3.5 on its repositories replacing Firefox 3.0. So one has to test by downloading from Mozilla website and some times it might not work (that was my case) so how do we use both Firefox 3.0 and 3.5 side by side? Here is how to do it ubuntu’s way.

Go to Applications –> Add and Remove –> and type in Shiretoka Web Browser (which is a beta test available in ubuntu repository) and install it.

Now you can test both Firefox 3.0 and Firefox 3.5 side by side and njoy browsing.

GNU/Linux Command Line Web Browser – w3m

Monday, August 31st, 2009

Command line tool is very powerful in Unix based operating systems, there are times when one has access only to a Command Line Interface but in need of Internet to solve the problem or no Graphical browsers are currently installed. So what is the solution? In fact there are many command line web browsers like www-browser, lynx, w3m….. and so on. So now I am talking about the one I use that is w3m.

  • Syntax: type in command w3m www.example.com
  • Get Help: type in command w3m / man w3m
  • Navigation: Click on the link/Navigate through tab and press Enter key
  • Enter Text in Forms/Search Engines: Click on text boxes/Navigate through tab and press enter then enter text which displays at the left bottom corner again a enter once text writing is finished
  • Quit: type in q and then y

More Information about w3m is found in http://w3m.sourceforge.net/

Ubuntu: How to disable automount-open usb media

Thursday, August 27th, 2009

Ubuntu is a great Operating System to work on, though it is relatively new compared some of the other distributions like Debian, Mandriva. There is an annoying feature(atleast I feel) in Ubuntu in which- newly connected usb drive is auto-mounted and poped up. So here is a tip to disable that feature,

Press Alt + F2 and type gconf-editor (or) type in gconf-editor in the command line

Navigate theought / –> apps –> nautilus —> preferences —> uncheck media_automount_open.

So thats it. Happy ubuntuing

Upgrade Pidgin to 2.6.0 (GNU/Linux)

Wednesday, August 19th, 2009

Some good news for Pidgin fans despite its drop from Ubuntu 9.10 latest alpha. Pidgin has released 2.6.0 with support to Voice and Video and currently these features support available only on XMPP. Here is the upgrade process on some popular Linux Distrubutions.

  • Ubuntu:
    Open Terminal, copy and paste these commands

    1. sudo apt-key adv –recv-keys –keyserver keyserver.ubuntu.com \     67265eb522bdd6b1c69e66ed7fb8bee0a1f196a8
    2. echo deb http://ppa.launchpad.net/pidgin-developers/ppa/ubuntu \     `lsb_release –short –codename` main | \ sudo tee /etc/apt/sources.list.d/pidgin-ppa.list
    3. sudo apt-get update  (more…)

Linux Tip: Email Alert on Root Partition Almost Full

Friday, August 14th, 2009

GNU/Linux is known for its stability and reliability, but there are times when a GNU/Linux system may not work at all due to not having enough space on its root partition without any notification. So how will one know that this is the error, unless one has troubleshooting experiences. Don’t worry there is a simple solution. The following command will echo the amount of disk space used on root partition

echo df / | grep / | awk ‘{ print $5}’

Description: df / —> disk free of root partition,   grep / —>select line with root partition,  awk ‘{ print $5}’ —> gets the 5th parameter.

Now you can create a script, which can be added to crontab and email you whenever the disk free space is less than critical amount say 10%. Here is a sample script,

#!/bin/bash
CURRENT=$(df / | grep / | awk ‘{ print $5}’ | sed ’s/%//g’)
THRESHOLD=90

if [ "$CURRENT" -gt "$THRESHOLD" ] ; then
mail -s “Disk Space Alert” mail@domainname.com << EOF
Your root partition remaining free space is critically low. Used: $CURRENT%
EOF
fi (more…)


CC License
This work by Mallikarjun is licensed under a Creative Commons Attribution 2.5 India.