Wednesday, May 7, 2008

Undefined Video Mode Number

If you happen to have "Undefined Video Mode Number" error message when you login into your Ubuntu, here is the solution!
1. Open your menu.lst file
sudo gedit /boot/grub/menu.lst
2. Change statement that says vga=xxx (xxx is some numbers) with vga=normal
3. Reboot and tha dha.

Tuesday, May 6, 2008

HowTo install .deb package in Ubuntu

1. Download the file.deb
2. Go to the directory where you save the file.deb
3. Type the following command in your terminal
sudo dpkg -i file.deb

If you don't like typing, open your File Browser then double click on the file. Follow the instruction. Ubuntu is getting smarter, it makes you easy.

HowTo create permanent aliases in Ubuntu

When you frequently need to type the same long command on your terminal, you need to create aliases so you can save time. To create permanent aliases, follow this command:
1. Open your ~/.bash_aliases file with text editor you like then add the alias you want. (If you don't have .bash_aliases, create a new one on your home directory).
Example:
alias any_name='ssh user_id@any_address.ca'

2. Uncomment these 3 lines on your ~/.bashrc file

if [ -f ~/.bash_aliases ]; then
. ~/.bash_aliases
fi

3. Restart your terminal, if it doesn't take effect you need to reboot system. I only need to restart the terminal to make the aliases take effect (I'm running 8.04).

Thursday, May 1, 2008

Configuring your Emacs

You may edit .emacs file in your home directory (/home/your_login_ID/.emacs) to satisfy your liking.
Some useful lines to add:
1. (transient-mark-mode t)
It will enable syntax highlighting when you select text(s).

2. (setq inhibit-splash-screen t)
It will ommit the emacs welcoming screen.