Numlock

Annoyed that numlock is turned off by default? This will help you have it automatically turned on.

For Console Users
Add numlock service to your preferred runlevel (usually default) and you are done.

For users of graphical environments

 * First step: install numlockx package


 * Second step consist of starting numlockx and varies with your desktop environment. You can to choose to enable numlock per-user (e.g. after login) and/or sytem-wide (e.g. before you enter password to your login manager)

Alternatives:
 * gnome-extra/lock-keys-applet Installing this enables you to put a small applet on your gnome panel that shows you the current state of your keys. Apart from being good for people with keyboards without status leds it also remembers your current states for eg numlock between sessions. http://www.wh-hms.uni-ulm.de/~mfcn/lock-keys-applet/


 * Some desktop environments have built-in support for numlock, so you can avoid installing numlockx.

For KDM users
Assuming you have kde 3.5 series:

For KDE 4.X series :

numlock x isn't needed to enable numlock on kdm startup, kdm can handle it automatically just add NumLock=On (case sensitive) to /usr/kde/3.5/share/config/kdm/kdmrc

About KDE 4.X, same issue about kdrmc

For GDM Users
If you are using gdm, try adding the following code to /etc/X11/gdm/Init/Default above exit 0

Putting it at the top of the file should work, and then run gdm-safe-restart as root.

For SLiM Users
The slim login manager does not require numlockx

For Fluxbox and other Desktop Environment Users
You can add the location of numlockx tool (for instance /usr/X11R6/bin/numlockx) to the relevant session script in /etc/X11/Sessions. For example, the editted version of fluxbox session script looks like: /usr/X11R6/bin/numlockx /usr/bin/startfluxbox

For KDE Users
KDE users have it fairly straightforward. See Control Center -> Peripherals -> Keyboard


 * If you installed KDE using split ebuilds, this requires kde-base/kxkb.

Under KDE4.X, you are be able to set for all user by one script under /etc/kde/startup for exemple numlockon.sh

For Gnome Users

 * Start the gnome-session-properties tool.
 * At the top of the Window, select Startup Programs and click the Add button.
 * Now insert the location of the numlockx tool (for instance /usr/X11R6/bin/numlockx) and exit.

For XFCE4.6 Users
Go to Settings -> Sessions and Startup and, under the tab Application Autostart, add a new application with this command :

For E17 Users
Go to "Configuration > Applications > Create a new application" and fill the fields as you normally would. Once created simply click "Add application.." inside the "startup" folder.

For other freedesktop Environments
You can put all kinds of programs that you want to autostart during startup in this folder. ~/Desktop/Autostart/ You can do this by making a symlink (not tested) or writing a small script that just starts it.. for example:

[[Category:X]]