I need to enable numlock on the console /dev/tty{1..6}
with setleds
(numlockx
for is dedicated to X11) :
#!/bin/sh -e
# Turn Numlock on for the TTYs:
for tty in /dev/tty[1-6]; do
/usr/bin/setleds -D +num < $tty
done
But there is no /etc/rc.local
file on my system, what is the canonical way to do that ?
numlockx
tool you propose in your first link is for X11 :man numlockx | grep X11
printsnumlockx is a program to control the NumLock key inside X11 session scripts.
– SebMa Feb 14 '22 at 14:17sudo touch /etc/rc.local
, add the commands, and finallysudo chmod +x /etc/rc.local
, thanks. – SebMa Feb 14 '22 at 14:27