September 27, 2010

Enable Number Lock Keys on Startup or Before Login in Lucid Lynx Gnome


I am not comfortable with Ubuntu when changes are to be made through the use of the Terminal. Take for example how to enable the number lock in Ubuntu; to enable number lock you have to write codes in the terminal. Writing codes in Linux is my weakness; thankfully there are plenty of resources that can be found in the Internet to solve every Linux problem.

Here are the steps to enable the number lock key.

1. Click Applications > Accessories > Terminal. A terminal window opens.
2. Type the following code in the terminal and press Enter.
sudo apt-get install numlockx
3. Enter your password when prompted and press Enter.
4. A series of codes run through, wait till the line shows:
user_name@ubuntu:~$
terminal.jpg 5. Type the following code and press Enter. A gedit window should open.
sudo gedit /etc/gdm/Init/Default
6. Add the following code before the line exit 0 which is at the end of the code.
if [ -x /usr/bin/numlockx ]; then
/usr/bin/numlockx on
fi
gedit.jpg 7. Click Save in the gedit, and close the gedit and terminal windows.

To check if this works, turn on the numlock key and restart Ubuntu. If you turn it off before restart, it will only be turned on during logon and turns itself off once Ubuntu is running.

Reference: https://help.ubuntu.com/community/NumLock


0 comments:

Post a Comment