特殊:Badtitle/NS100:NumLock:修订间差异
小无编辑摘要 |
小无编辑摘要 |
||
第13行: | 第13行: | ||
/usr/bin/numlockx on | /usr/bin/numlockx on | ||
fi</nowiki></pre> | fi</nowiki></pre> | ||
* Also.. even if the numlock light on your keyboard is on.. there is a setting that can override it. System->Preferences->Keyboard.. then click the "Mouse Keys" tab and make sure to uncheck "Pointer can be controlled using the keypad". | |||
=== Enabling NumLock in KDM === | === 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> |
2009年5月12日 (二) 18:14的版本
文章出处: |
{{#if: | {{{2}}} | https://help.ubuntu.com/community/NumLock }} |
点击翻译: |
English {{#ifexist: {{#if: UbuntuHelp:NumLock | UbuntuHelp:NumLock | {{#if: | :}}NumLock}}/af | • {{#if: UbuntuHelp:NumLock|Afrikaans| [[::NumLock/af|Afrikaans]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NumLock | UbuntuHelp:NumLock | {{#if: | :}}NumLock}}/ar | • {{#if: UbuntuHelp:NumLock|العربية| [[::NumLock/ar|العربية]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NumLock | UbuntuHelp:NumLock | {{#if: | :}}NumLock}}/az | • {{#if: UbuntuHelp:NumLock|azərbaycanca| [[::NumLock/az|azərbaycanca]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NumLock | UbuntuHelp:NumLock | {{#if: | :}}NumLock}}/bcc | • {{#if: UbuntuHelp:NumLock|جهلسری بلوچی| [[::NumLock/bcc|جهلسری بلوچی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NumLock | UbuntuHelp:NumLock | {{#if: | :}}NumLock}}/bg | • {{#if: UbuntuHelp:NumLock|български| [[::NumLock/bg|български]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NumLock | UbuntuHelp:NumLock | {{#if: | :}}NumLock}}/br | • {{#if: UbuntuHelp:NumLock|brezhoneg| [[::NumLock/br|brezhoneg]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NumLock | UbuntuHelp:NumLock | {{#if: | :}}NumLock}}/ca | • {{#if: UbuntuHelp:NumLock|català| [[::NumLock/ca|català]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NumLock | UbuntuHelp:NumLock | {{#if: | :}}NumLock}}/cs | • {{#if: UbuntuHelp:NumLock|čeština| [[::NumLock/cs|čeština]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NumLock | UbuntuHelp:NumLock | {{#if: | :}}NumLock}}/de | • {{#if: UbuntuHelp:NumLock|Deutsch| [[::NumLock/de|Deutsch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NumLock | UbuntuHelp:NumLock | {{#if: | :}}NumLock}}/el | • {{#if: UbuntuHelp:NumLock|Ελληνικά| [[::NumLock/el|Ελληνικά]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NumLock | UbuntuHelp:NumLock | {{#if: | :}}NumLock}}/es | • {{#if: UbuntuHelp:NumLock|español| [[::NumLock/es|español]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NumLock | UbuntuHelp:NumLock | {{#if: | :}}NumLock}}/fa | • {{#if: UbuntuHelp:NumLock|فارسی| [[::NumLock/fa|فارسی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NumLock | UbuntuHelp:NumLock | {{#if: | :}}NumLock}}/fi | • {{#if: UbuntuHelp:NumLock|suomi| [[::NumLock/fi|suomi]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NumLock | UbuntuHelp:NumLock | {{#if: | :}}NumLock}}/fr | • {{#if: UbuntuHelp:NumLock|français| [[::NumLock/fr|français]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NumLock | UbuntuHelp:NumLock | {{#if: | :}}NumLock}}/gu | • {{#if: UbuntuHelp:NumLock|ગુજરાતી| [[::NumLock/gu|ગુજરાતી]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NumLock | UbuntuHelp:NumLock | {{#if: | :}}NumLock}}/he | • {{#if: UbuntuHelp:NumLock|עברית| [[::NumLock/he|עברית]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NumLock | UbuntuHelp:NumLock | {{#if: | :}}NumLock}}/hu | • {{#if: UbuntuHelp:NumLock|magyar| [[::NumLock/hu|magyar]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NumLock | UbuntuHelp:NumLock | {{#if: | :}}NumLock}}/id | • {{#if: UbuntuHelp:NumLock|Bahasa Indonesia| [[::NumLock/id|Bahasa Indonesia]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NumLock | UbuntuHelp:NumLock | {{#if: | :}}NumLock}}/it | • {{#if: UbuntuHelp:NumLock|italiano| [[::NumLock/it|italiano]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NumLock | UbuntuHelp:NumLock | {{#if: | :}}NumLock}}/ja | • {{#if: UbuntuHelp:NumLock|日本語| [[::NumLock/ja|日本語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NumLock | UbuntuHelp:NumLock | {{#if: | :}}NumLock}}/ko | • {{#if: UbuntuHelp:NumLock|한국어| [[::NumLock/ko|한국어]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NumLock | UbuntuHelp:NumLock | {{#if: | :}}NumLock}}/ksh | • {{#if: UbuntuHelp:NumLock|Ripoarisch| [[::NumLock/ksh|Ripoarisch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NumLock | UbuntuHelp:NumLock | {{#if: | :}}NumLock}}/mr | • {{#if: UbuntuHelp:NumLock|मराठी| [[::NumLock/mr|मराठी]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NumLock | UbuntuHelp:NumLock | {{#if: | :}}NumLock}}/ms | • {{#if: UbuntuHelp:NumLock|Bahasa Melayu| [[::NumLock/ms|Bahasa Melayu]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NumLock | UbuntuHelp:NumLock | {{#if: | :}}NumLock}}/nl | • {{#if: UbuntuHelp:NumLock|Nederlands| [[::NumLock/nl|Nederlands]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NumLock | UbuntuHelp:NumLock | {{#if: | :}}NumLock}}/no | • {{#if: UbuntuHelp:NumLock|norsk| [[::NumLock/no|norsk]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NumLock | UbuntuHelp:NumLock | {{#if: | :}}NumLock}}/oc | • {{#if: UbuntuHelp:NumLock|occitan| [[::NumLock/oc|occitan]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NumLock | UbuntuHelp:NumLock | {{#if: | :}}NumLock}}/pl | • {{#if: UbuntuHelp:NumLock|polski| [[::NumLock/pl|polski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NumLock | UbuntuHelp:NumLock | {{#if: | :}}NumLock}}/pt | • {{#if: UbuntuHelp:NumLock|português| [[::NumLock/pt|português]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NumLock | UbuntuHelp:NumLock | {{#if: | :}}NumLock}}/ro | • {{#if: UbuntuHelp:NumLock|română| [[::NumLock/ro|română]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NumLock | UbuntuHelp:NumLock | {{#if: | :}}NumLock}}/ru | • {{#if: UbuntuHelp:NumLock|русский| [[::NumLock/ru|русский]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NumLock | UbuntuHelp:NumLock | {{#if: | :}}NumLock}}/si | • {{#if: UbuntuHelp:NumLock|සිංහල| [[::NumLock/si|සිංහල]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NumLock | UbuntuHelp:NumLock | {{#if: | :}}NumLock}}/sq | • {{#if: UbuntuHelp:NumLock|shqip| [[::NumLock/sq|shqip]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NumLock | UbuntuHelp:NumLock | {{#if: | :}}NumLock}}/sr | • {{#if: UbuntuHelp:NumLock|српски / srpski| [[::NumLock/sr|српски / srpski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NumLock | UbuntuHelp:NumLock | {{#if: | :}}NumLock}}/sv | • {{#if: UbuntuHelp:NumLock|svenska| [[::NumLock/sv|svenska]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NumLock | UbuntuHelp:NumLock | {{#if: | :}}NumLock}}/th | • {{#if: UbuntuHelp:NumLock|ไทย| [[::NumLock/th|ไทย]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NumLock | UbuntuHelp:NumLock | {{#if: | :}}NumLock}}/tr | • {{#if: UbuntuHelp:NumLock|Türkçe| [[::NumLock/tr|Türkçe]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NumLock | UbuntuHelp:NumLock | {{#if: | :}}NumLock}}/vi | • {{#if: UbuntuHelp:NumLock|Tiếng Việt| [[::NumLock/vi|Tiếng Việt]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NumLock | UbuntuHelp:NumLock | {{#if: | :}}NumLock}}/yue | • {{#if: UbuntuHelp:NumLock|粵語| [[::NumLock/yue|粵語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NumLock | UbuntuHelp:NumLock | {{#if: | :}}NumLock}}/zh | • {{#if: UbuntuHelp:NumLock|中文| [[::NumLock/zh|中文]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NumLock | UbuntuHelp:NumLock | {{#if: | :}}NumLock}}/zh-hans | • {{#if: UbuntuHelp:NumLock|中文(简体)| [[::NumLock/zh-hans|中文(简体)]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NumLock | UbuntuHelp:NumLock | {{#if: | :}}NumLock}}/zh-hant | • {{#if: UbuntuHelp:NumLock|中文(繁體)| [[::NumLock/zh-hant|中文(繁體)]]}}|}} |
{{#ifeq:UbuntuHelp:NumLock|:NumLock|请不要直接编辑翻译本页,本页将定期与来源同步。}} |
{{#ifexist: :NumLock/zh | | {{#ifexist: NumLock/zh | | {{#ifeq: {{#titleparts:NumLock|1|-1|}} | zh | | }} }} }} {{#ifeq: {{#titleparts:NumLock|1|-1|}} | zh | | }}
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
exit 0
- Add the following code above that line
if [ -x /usr/bin/numlockx ]; then
/usr/bin/numlockx on
fi
- Also.. even if the numlock light on your keyboard is on.. there is a setting that can override it. System->Preferences->Keyboard.. then click the "Mouse Keys" tab and make sure to uncheck "Pointer can be controlled using the keypad".
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