Lubuntu開機自動將鍵盤數字鍵啟用
如何在Lubuntu系統一開機就啟用鍵盤數字鍵:
How to default keyboard Num Lock active:
首先安裝一個小程式。
sudo apt-get install numlockx
If you are not using a graphical display manager then add the following line to
sudo vim /etc/X11/xinit/xinitrc
/usr/bin/numlockx on
or
sudo vim /etc/rc.local add below:
/usr/bin/numlockx on
如果是在終端機模式下,可設定如下:
# or Turn Numlock on for the TTYs:
for tty in /dev/tty[1-6]; do
/usr/bin/setleds -D +num < $tty
done
How to default keyboard Num Lock active:
首先安裝一個小程式。
sudo apt-get install numlockx
If you are not using a graphical display manager then add the following line to
sudo vim /etc/X11/xinit/xinitrc
/usr/bin/numlockx on
or
sudo vim /etc/rc.local add below:
/usr/bin/numlockx on
如果是在終端機模式下,可設定如下:
# or Turn Numlock on for the TTYs:
for tty in /dev/tty[1-6]; do
/usr/bin/setleds -D +num < $tty
done
留言
張貼留言