|
发表于 2003-11-3 11:08:28
|
显示全部楼层
正如redhat71 Linux中级社员所提供的网址那里有解
正如redhat71 Linux中级社员所提供的网址那里有解决方案
文本登陆可以使用的方法,对X界面无效:
编辑/etc/rc.d/rc.local加入
for t in 1 2 3 4 5 6 7 8
do
setleds -D +num < /dev/tty$t > /dev/null
done
现在无论你在什么虚拟终端都可以自动打开小键盘,确实好办法
X界面登陆请看编辑.xinitrc加入
# This is my X server start up file
# Add any programs you want to have running when X starts here
# Make sure they all end with a &
numlockx on &
# Now add your windows manager here.
# I have included some examples, just remove the # in the beginning for yours
如果简单点的直接下载网站提过的安装包
In your X server
You would think that if you set the default setting to on in the console, that it would carry over to you X server, but NO. That would not be that easy. (Hopefully they will fix this in future versions) As of now the only way I know how to do this is with the help of a little program called numlockx. You can find numlockx at http://dforce.sh.cvut.cz/~seli/en/numlockx/ or I have also placed a copy at my website http://ourworld.cs.com/kvsmaster/files/numlockx-1.0.tar.gz.
Installing numlockx
If you have never installed from source, don't worry this one is simple. If you have installed from source before, then you can skip this section.
1. Change to the directory where you saved the file, and extract the archive by typing:
tar -zxvf numlockx-1.0.tar.gz
2. Change into the new directory by typing:
cd numlockx-1.0
3. Install the program. I know there are different ways to do this, but to keep it simple, I use the following method:
1. su to root if you are not already logged in as root.
2. Type http://www.start-linux.com/configure && make && make install
You will see a lot of text fly by, but as long as you do not see the word ERROR, your ok.
4. I usually check to see if things went O.K. by logging out as root (if you used su then just type exit), then type numloc and press TAB, if the command is completed, your OK.
Now that you have numlockx installed, you will have to include it into your X server start-up file. This should be a hidden file named .xinitrc in your HOME directory. You can check by doing a ls -a at your HOME directory. If you do not have one, then you can just create one.
# exec gnome-session
# exec startkde
# exec blackbox |
|