个人工具

“UbuntuHelp:NumLock”的版本间的差异

来自Ubuntu中文

跳转至: 导航, 搜索
第10行: 第10行:
 
<pre><nowiki>
 
<pre><nowiki>
 
exit 0</nowiki></pre>
 
exit 0</nowiki></pre>
** Add the following code above that line
+
* Add the following code above that line
 
<pre><nowiki>
 
<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>
 
 
*In Ubuntu Gutsy 7.10 use path: "/etc/gdm/Init/Default" instead.
 
*In Ubuntu Gutsy 7.10 use path: "/etc/gdm/Init/Default" instead.
 
 
=== Enabling NumLock in KDE (as used in Kubuntu) ===
 
=== 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.
 
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 ===
 
=== 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'''

2007年11月30日 (五) 20:52的版本

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
  • Edit /etc/X11/gdm/Init/Default
    • Find the line
exit 0
  • Add the following code above that line
if [ -x /usr/bin/numlockx ]; then
/usr/bin/numlockx on
fi
  • In Ubuntu Gutsy 7.10 use path: "/etc/gdm/Init/Default" instead.

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