//

2009/06/29

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.

2009/06/26

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.

2009/06/23

闰月初一

今天是闰五月初一,农历闰月之年,都要为父母、长辈做「闰月鞋、袜」、送「闰月饼」,意思即在祈求父母长寿、免于灾难降临;在台湾南部的习俗中也有此一说,不过却是要「闰年」出嫁的女儿,得回娘家为父母添寿(台语称「抽寿」)的习俗,相传出嫁的女儿会在闰月来临之前或父母亲生日前,买猪脚面线回娘家给父母添寿(若父母已故则以兄嫂代替),现代人因为工作忙碌,于是也会利用这一天特地回娘家吃饭并给父母红包用以添福添寿之意,这种情形是因为一般人相信「父母逢闰年而减寿」因此为了避免会有不吉祥的事发生,子女们为了表示孝心就会用红包、猪脚面线来表示延年益寿、福禄万千的心意。而祭祀方面则要注意,可在父母生日前或闰七月前买鲜花、素果、麵线(须绑红线)、寿桃等祭品到「天公庙」的南北斗星君前为父母祈福延寿;另外也可以父母的名义捐献或默默做善事也是一样的道理。

2009/06/22

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)

2009/06/17

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@192.168.1.85

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


Ref:
http://www.linuxbasement.com/content/mrtg-ubuntu-server
http://www.cyberciti.biz/faq/centos-fedora-linux-multi-router-traffic-grapher-tutorial/

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
IP address