|
|
方法1、先开机,等到提示要输入密码的时候,按NUM LOCK,这时灯亮了。此时,别输入密码,只要重新启动就行了。8 _' Z2 F5 P9 [
方法2、首先在BIOS中把NumLock项设为Enable,然后在BIOS中将PnPWithOS项亦设为Enable即可。不过注销用户时NumLock小键盘锁是关闭的,要手工打开。+ ]6 \; Z; b( t0 j
方法3、进HKEY_CURRENT_USER\Control Panel\Keyboard,将“KeyboardDelay”的值改为2。或者把下面的保存成*.reg,运行。% Q% f& I4 u8 p- ]0 V Z
方法4、仅需要对config.sys文件动点小手术即可达到此目的。设置方法如下:4 W4 h z5 n. G6 w8 r: H6 [3 J% R
单击“开始”菜单中的“运行”命令,然后在“打开”框中键入“sysedit”,按下回车键,打开“系统配置编辑程序”窗口。5 o! a+ R+ D. G a% r
单击“Config.sys”标题栏,将它切换为当前编辑窗口,u盘装系统然后在编辑区中键入“NumLock=ON”这一行命令。
0 }: }6 n7 h0 b* ]) M8 X& E 保存修改并关闭“系统配置编辑程序”窗口。4 i2 d3 g6 s( O' r- e/ p& r
方法5、把下面的保存成VBS脚本,执行。- Z b! p) s- j! M8 [* g* n
set WshShell=CreateObject(“WScript.shell”)
$ e, s3 [3 D" l i' y WshShell.SendKeys“{NUMLOCK}”% b3 M9 ]3 ]; t
Linux+ f/ I- S3 }( v* M4 d
1.
- P# \" h$ G% v- m( y [root@localhost ~]# cat /etc/rc.d/rc.local; g% c6 @/ s9 I- q
#!/bin/sh! \! t& |/ c: d+ O
#3 S! f" g. g y) |$ b, E9 z9 b
# This script will be executed *after* all the other init scripts.
9 Q: c3 g7 y8 E2 t$ T # You can put your own initialization stuff in here if you don‘t
& y6 \. [; ~9 a( W- p( J # want to do the full Sys V style init stuff.
/ B4 d( G/ b5 K8 W: {9 o INITTY=/dev/tty[1-8]
: o: }4 F. L' O- W1 a3 t; Z for tty in $INITTY; do" P9 B) [8 ^9 v( t8 k0 W/ h
setleds -D +num 《 $tty
% v) y1 ?* Z0 V0 ]: j2 P) d, l5 [ done7 o' G; a+ {/ @0 f8 b ~
touch /var/lock/subsys/local
- Q, h3 {. A4 z5 L; c 2.在man setleds的描述中,有一段设置字符控制台数字灯的脚本 注意的是:番茄花园设置字符控制台数字灯 在字符模式下,也可以这样: setleds -D +num/+caps/+scroll, I) C# _: d% ^2 Q
Windows Registry Editor Version 5.00
\ O- l- \6 D* {* O; H3 A5 e [HKEY_USERS\.DEFAULT\Control Panel\Keyboard]7 @/ j3 P* D% O; }
“InitialKeyboardIndicators”=“2”
1 E3 x# A( j2 [$ X! a2 U |
|