On Mon, May 16, 2005 at 08:17:40AM -0500, Anthony Dean wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Is there a way of making sure the number lock turns on automatically in
Gnome when starting my PC?
If the Num Lock key being on at startup is important to you, two options
are to follow the below instructions OR switch desktops.
============ Below this line is the fix for Gnome desktop ===========
NOTE 1: To successfully do this you need the C compiler (series d,
package gcc) and the include files of the X libraries(package xdevel,
If you don't have the gcc (Gnu Compiler Collection) which includes the C
compiler, you should install it. You can fix LOTS of problems with these
very valuable tools (without a lot of programming knowledge).
If you DO NOT have the C compiler, and you DO NOT WANT the gcc package
on your machine, I am told you can use the "setleds +num &> /dev/null"
command in one of the X start-up scripts. I don't know if this method
works or not, but it probably will take more tinkering on your part
(unless you really know your scripting).
NOTE: For those of you *who boot to run level 3*, you can add "setleds
+num &> /dev/null" (which null routes any error output) to the end of
.bashrc but you must specify the "&> /dev/null", NOT just "setleds
+num". Otherwise, you will get an error message every time you start a
terminal from your desktop. Note that "setleds +num" doesn't work from
a virtual console (terminal) anyway; it's NOT quite the same as the
>-->This will turn Num Locks on when you log in to the console,
when you run startx.
END NOTE 1
>-->best to perform this procedure as root.
When you have gcc as explained above:
1. Download this very small program: setnumlock.tar.gz
a) here is the link --> ftp://ftp.silug.org/pub/ltsp/setnumlock.tar.gz
NOTE: I tested on Redhat 8/9 (probably works on other distributions too)
b) I suggest you create a directory named num-on to download the file
to. type command: mkdir num-on
c) When you have finished the download:
cd (change directory) to num-on (or wherever you downloaded the file)
gzip -d setnumlock.tar.gz
tar xvf setnumlock.tar
then type "make install"
Make install has now created /usr/bin/setnumlock
(a very small program that turns numlock on)
2. Now you need to run this program whenever you log in:
Click the start button and go to:
--> Preferences --> More Preferences --> Session
Click the Start Up Programs tab.
Click the Add button.
Browse to /usr/bin/setnumlock (or type in /usr/bin/setnumlock)
Logout and Log back in (to restart the X server)
Jeff Kinz, Emergent Research, Hudson, MA.