“UbuntuHelp:NumLock”的版本间的差异
来自Ubuntu中文
小 |
小 |
||
第1行: | 第1行: | ||
{{From|https://help.ubuntu.com/community/NumLock}} | {{From|https://help.ubuntu.com/community/NumLock}} | ||
{{Languages|UbuntuHelp:NumLock}} | {{Languages|UbuntuHelp:NumLock}} | ||
− | == Enabling | + | == Enabling NumLock during startup and before login == |
Here's how to enable numlock to stay on during startup and before you login so it is on before you enter your username password into the logon screen | Here's how to enable numlock to stay on during startup and before you login so it is on before you enter your username password into the logon screen | ||
− | === Enabling | + | === Enabling NumLock in GDM (as used in Ubuntu Gnome and Xubuntu XFCE) === |
If you are using GDM you can use numlockx: | If you are using GDM you can use numlockx: | ||
* Install '''numlockx''' using apt-get, aptitude or Synaptic | * Install '''numlockx''' using apt-get, aptitude or Synaptic | ||
第13行: | 第13行: | ||
/usr/bin/numlockx on | /usr/bin/numlockx on | ||
fi</nowiki></pre> | fi</nowiki></pre> | ||
− | === Enabling | + | === Enabling NumLock in KDM === |
This is similar to the instructions for GDM. Edit '''/etc/kde3/kdm/Xsetup''' and ad the code to it:<pre><nowiki> | This is similar to the instructions for GDM. Edit '''/etc/kde3/kdm/Xsetup''' and ad the code to it:<pre><nowiki> | ||
if [ -x /usr/bin/numlockx ]; then | if [ -x /usr/bin/numlockx ]; then | ||
/usr/bin/numlockx on | /usr/bin/numlockx on | ||
fi</nowiki></pre> | fi</nowiki></pre> | ||
− | === Enabling | + | === Enabling NumLock in KDE (as used in Kubuntu) === |
− | From the K Menu, launch System Settings and click on Keyboard (Edgy users: K Menu -> System Settings -> Keyboard and Mouse -> Keyboard). You can see in the middle section the options for " | + | From the K Menu, launch System Settings and click on Keyboard (Edgy users: K Menu -> System Settings -> Keyboard and Mouse -> Keyboard). You can see in the middle section the options for "NumLock on KDE Startup", where you can choose to Turn On, Turn Off, or Leave Unchanged. Select "Turn On" to turn NumLock on at startup. |
− | === Enabling | + | === Enabling NumLock from startx === |
If you are not using a graphical display manager then add the following line to '''/etc/X11/xinit/xinitrc''' | If you are not using a graphical display manager then add the following line to '''/etc/X11/xinit/xinitrc''' | ||
<pre><nowiki> | <pre><nowiki> |
2008年10月20日 (一) 00:12的版本
点击翻译: |
English |
请不要直接编辑翻译本页,本页将定期与来源同步。 |
目录
Enabling NumLock during startup and before login
Here's how to enable numlock to stay on during startup and before you login so it is on before you enter your username password into the logon screen
Enabling NumLock in GDM (as used in Ubuntu Gnome and Xubuntu XFCE)
If you are using GDM you can use numlockx:
- Install numlockx using apt-get, aptitude or Synaptic
- In Hardy and Gutsy, edit /etc/gdm/Init/Default. For older versions of ubuntu edit /etc/X11/gdm/Init/Default instead.
- Find the line
- Add the following code above that line
if [ -x /usr/bin/numlockx ]; then
/usr/bin/numlockx onfi
Enabling NumLock in KDM
This is similar to the instructions for GDM. Edit /etc/kde3/kdm/Xsetup and ad the code to it:if [ -x /usr/bin/numlockx ]; then /usr/bin/numlockx on fi
Enabling NumLock in KDE (as used in Kubuntu)
From the K Menu, launch System Settings and click on Keyboard (Edgy users: K Menu -> System Settings -> Keyboard and Mouse -> Keyboard). You can see in the middle section the options for "NumLock on KDE Startup", where you can choose to Turn On, Turn Off, or Leave Unchanged. Select "Turn On" to turn NumLock on at startup.
Enabling NumLock from startx
If you are not using a graphical display manager then add the following line to /etc/X11/xinit/xinitrc
/usr/bin/numlockx on