QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 2446|回复: 17

红帽子9.0下怎么设置启动系统后NumLock的开关?

[复制链接]
发表于 2003-11-2 12:31:16 | 显示全部楼层 |阅读模式
我用的是红帽子9.0,我发现每次系统启动后NumLock的灯是灭的,我习惯用小键盘输入数字,这样每次都得按下NumLock键才能输数字,有没有办法在进入系统后NumLock的灯自动亮的?谢谢!
发表于 2003-11-2 12:48:07 | 显示全部楼层
编辑/etc/rc.d/rc.local加一行
setleds -D +num

保存退出,reboot

就可以使进入系统后NumLock的灯自动亮
回复

使用道具 举报

发表于 2003-11-2 16:28:32 | 显示全部楼层
我先试试
回复

使用道具 举报

发表于 2003-11-2 16:33:14 | 显示全部楼层
好象没用
回复

使用道具 举报

 楼主| 发表于 2003-11-2 18:28:45 | 显示全部楼层
是呀,我试了也不行呀.
回复

使用道具 举报

发表于 2003-11-2 20:36:36 | 显示全部楼层
我是使用文字模式登陆的  是可以实现的

如果你开机是进入KDE图形界面在控制面板可以设定

我现在公司是windows要回去看看再服帖
回复

使用道具 举报

发表于 2003-11-3 06:04:59 | 显示全部楼层
http://www.start-linux.com/print.php?id=139

刚好看到,不过我还没试,很少用小键盘
回复

使用道具 举报

发表于 2003-11-3 06:29:08 | 显示全部楼层
装上了,好使

不过路径有点问题,make install后装去了/usr/bin/bin/numlockx
我不懂看这些安装脚本,直接把它移出来,放在/usr/bin/numlockx就算了
回复

使用道具 举报

发表于 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
回复

使用道具 举报

 楼主| 发表于 2003-11-3 22:34:48 | 显示全部楼层
谢谢各位.可是你们提供的两个下载软件包的站点都打不开.能不能另外再提供一些站点?谢谢!
回复

使用道具 举报

发表于 2003-11-4 00:08:49 | 显示全部楼层
..
回复

使用道具 举报

发表于 2003-11-4 00:32:42 | 显示全部楼层
前些时候看到一贴写的是: 可在/etc/X11/XF86Config里Keyboard段加入:
# Let the server do the NumLock processing. This should only be
# required when using pre-R6 clients
ServerNumLock

2、使用KDE:
KControl Center --> Peripherals(外设) --> Keyboard(键盘)-->KDE启动时NumLock的状态设置为打开。
回复

使用道具 举报

发表于 2003-11-4 22:41:03 | 显示全部楼层
好东西。。。怎么不早写出来。。。每次进入LINUX都要去按一下“Numlock”。。晕!!!
回复

使用道具 举报

发表于 2003-11-7 11:21:20 | 显示全部楼层
  
回复

使用道具 举报

发表于 2003-11-11 21:42:02 | 显示全部楼层
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-11-23 15:48 , Processed in 0.045442 second(s), 15 queries .

© 2021 Powered by Discuz! X3.5.

快速回复 返回顶部 返回列表