Clean Up Ubuntu Grub Boot Menu

To remove these entries, we’ll need to edit the file /boot/grub/menu.lst. You can do this by using Alt+F2 and then typing in the following command:

gksu gedit /boot/grub/menu.lst

Save the file, and then the next time you boot up you’ll see a much nicer set of options.


Play .RMVB Files In Ubuntu

Ubuntu does not support .rmvb files by default. Even though you may have installed the Gstreamer codec plugin and VLC (an audio player that supposedly able to play any media format), there is still no way that you can get the .rmvb file to play. There may be many tutorials out there that tell you to configure mplayer to play .rmvb file, but the easiest and fastest way to tackle this is simply install the Real Player for Linux.
Go to Real player for Linux website. [http://www.real.com/linux] Download the deb package. (do not download the bin file)

Double click the downloaded deb file to install the Real Player 11 for Linux.





Install Java 6 on Ubuntu

For the former, the command is as follows:
sudo apt-get install sun-java6-jdk sun-java6-plugin

For JRE:
sudo apt-get install sun-java6-jre sun-java6-plugin

Once either one is done, run the sudo update-java-alternatives -s java-6-sun command and finally add the line “/usr/lib/jvm/java-6-sun” to the top of the /etc/jvm file (gksudo gedit /etc/jvm). Save and exit. To test your Java(TM) setup in the terminal type:-
java -version

If you get an output like below, then you are done!
java version “1.6.0″ Java(TM) SE Runtime Environment (build 1.6.0-b105) Java HotSpot(TM) Client VM (build 1.6.0-b105, mixed mode, sharing)


MRTG on Ubuntu Server

Assuming that you want to monitor your networking equipment with MRTG, you need to set up the snmp community on the piece of equipment. Usually its just a matter of enabling snmp, and the default community will be public. If you change the default community to another name, make sure you remember the name for later.

Now lets set up MRTG to read the data.
With Ubuntu server, MRTG will automatically set up /var/www/mrtg. In other distrobutions, it will set it up in a different area, so you will need to change the 'WorkDir:' variable in the following scenario to the directory where MRTG is installed.

I'm going to create an /etc/mrtg directory rather then move the mrtg.cfg file within /etc/ This will make it less confusing in the future.

mkdir /etc/mrtg

mv /etc/mrtg.cfg /etc/mrtg/

Now we run the cfgmaker command to get things up and running:

cfgmaker --global 'WorkDir:/var/www/mrtg' --global 'Options[_]: bits,growright' --output /etc/mrtg/mrtg.cfg public@

We need to make sure the following lines are correct in /etc/mrtg/mrtg.cfg If they are not there, add them.

EnableIPv6: no
RunAsDaemon: Yes
Interval: 5
Logdir: /var/log/mrtg

Now run:

indexmaker --output=/var/www/mrtg/index.html /etc/mrtg/mrtg.cfg

Which will build the index so you can view the output.

Then I run this command to set an environmental variable

env LANG=C /usr/bin/mrtg /etc/mrtg/mrtg.cfg

and open http://localhost/mrtg/index.html


Enable USB-Serial Port adapter (RS-232) in Ubuntu Linux

$ sudo aptitude install gtkterm

Install Skype on Ubuntu (or Debian)

This how to will show you how to install a Skype client in Ubuntu & Debian base operating system.

  1. First of all you need to start up Synaptic Package manager. Go to System->Synaptic Administration->Synaptic Package Manager,
  2. From Synaptic, go to Settings->Repositories. Click on Third Party Software Tab. Click Add, and put on this line :
    deb http://download.skype.com/linux/repos/debian/ stable non-free

    Click Add Sources.

  3. Click Close, and Click 'Reload' at the top of Synaptic. Now you can search for Skype, and install it from Synaptic.

$ sudo aptitude install skype