Hi,
Simple problem, no solution (at least I was not able to find a simple one). I'm using Debian for my servers. Up until now I activated num lock for the bash console in /etc/kbd/config (LEDS=+num).
/etc/kbd/config doesn't exist any more in Stretch. What is the proper replacement for this (activation of num lock for the bash console on booting)?
BR,
CyberMCM
Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230
Num Lock in Stretch [SOLVED]
Re: Num Lock in Stretch
Sorry, I can't remember that specific instruction but the tool you want is setxkbmap
Also, there was a similar thread on keyboard settings about two weeks ago so search this forum. Search Googles database.
Code: Select all
man setxkbmap
Re: Num Lock in Stretch
believe me, I searched here and on Google but found nothing.
setxkbmap seems to be for a x environment, I only use terminal with bash, I don't think this helps. But if anyone has specific instructions I'd love to hear it....
setxkbmap seems to be for a x environment, I only use terminal with bash, I don't think this helps. But if anyone has specific instructions I'd love to hear it....
- alan stone
- Posts: 269
- Joined: 2011-10-22 14:08
- Location: In my body.
Re: Num Lock in Stretch
Is it this you're looking for: enabling NumLock for Virtual Consoles (TTYs)?
For reference: for a X11 session there's numlockx.
For reference: for a X11 session there's numlockx.
Re: Num Lock in Stretch
Thanks for your answers. I finally ended up with
1) nano /etc/rc.local
2) chmod +x /etc/rc.local
Comparing to versions < Debian 9 this seems rather complicated and also deprecated, I think it should be setup as a systemd service after all.
Alternative:
1) nano /usr/bin/numlock
take code from above
2) nano /etc/systemd/system/numlock.service
3) systemctl enable numlock.service
1) nano /etc/rc.local
Code: Select all
#!/bin/bash
# Turn Numlock on for the TTYs:
for tty in /dev/tty[1-6]; do
/usr/bin/setleds -D +num < "$tty";
done
Comparing to versions < Debian 9 this seems rather complicated and also deprecated, I think it should be setup as a systemd service after all.
Alternative:
1) nano /usr/bin/numlock
take code from above
2) nano /etc/systemd/system/numlock.service
Code: Select all
[Unit]
Description=numlock
[Service]
ExecStart=/usr/bin/numlock
StandardInput=tty
RemainAfterExit=yes
[Install]
WantedBy=multi-user.target