Taken from DreamLinux forums here : --
http://dreamlinuxforums.org/index.php/topic,2321.msg18474.html#msg18474
I did a quick search on the DreamLinux forums for "numlock" or "num lock" as I wanted to turn on the keypad in Xfce on startup, and didn't get any results. I was a bit surprised about this. So I googled the internet and found a simple procedure for Xfce.
First you need to install numlockx:
sudo apt-get install numlockx
At this point it is possible that you may be missing some dependencies, especially after a fresh install of DL 3.3. If that happens, you will get an error message in the terminal saying that you have missing dependencies. If that occurs, simply type the following:
sudo apt-get install -f
sudo apt-get install numlockx
Then all you have to do is edit the .xinitrc located in your home directory file with your favorite text editor (scite, mousepad, nano, ...):
and add the the following line:
Reboot and that's it.
My .xinitrc file look like this:
#!/bin/sh
# $Xorg: xinitrc.cpp,v 1.3 2000/08/17 19:54:30 cpqbld Exp $
# /etc/X11/xinit/xinitrc
#
# global xinitrc file, used by all X sessions started by xinit (startx)
# invoke global X session script
/usr/bin/startxfce4
/usr/bin/numlockx on
Ghoti
Note: it is possible that you might not need to put /usr/bin/ before numlockx on, as simply typing numlockx on and numlockx off in the terminal turn the keypad on and off, respectively.
Comments (0)
You don't have permission to comment on this page.