How to setup numlock

I want numlock to come on when I start Linux Mandrake 6.
How do I do this?????
konastanAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

j2Commented:
setleds +num
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
konastanAuthor Commented:
Where do I add setleds +num????
0
j2Commented:
/etc/rc.d/rc.local (or any other place that gets run at system startup / user logon)
0
konastanAuthor Commented:
But it stops when I start XWindows.
How do I keep numlock on after XWindows starts????
0
j2Commented:
Try setting up a .Xmodmap file in your home directory.
If you already have the file, just add this to the end.
The "NumLock" light will not be lit but the keys should work.  The file should look thustly:
 
 
keycode 79=7
keycode 80=8
keycode 81=9
keycode 83=4
keycode 84=5
keycode 85=6
keycode 87=1
keycode 88=2
keycode 89=3
keycode 90=0
keycode 91=period
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Linux

From novice to tech pro — start learning today.