| 
  • If you are citizen of an European Union member nation, you may not use this service unless you are at least 16 years old.

  • You already know Dokkio is an AI-powered assistant to organize & manage your digital files & messages. Very soon, Dokkio will support Outlook as well as One Drive. Check it out today!

View
 

Turn_number-lock_on_at_startup

Page history last edited by Paul G. Taylor 15 years, 9 months ago

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:

 

 

Code:
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:

 

 

Code:
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, ...):

 

 

Code:
scite .xinitrc

and add the the following line:

 

 

Code:
/usr/bin/numlockx on

Reboot and that's it.  Wink

 

My .xinitrc file look like this:

 

 

Code:
#!/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  Cool

 

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.