How to turn numlock on by default on startup on ubuntu 10.04 using LXDE?
Have you tried editing /etc/xdg/lubuntu/lxdm/lxdm.conf
instead?
Uncomment # numlock=0
and make it numlock=1
Worked for me :)
More Info:
You need to have "admin" permission (a.k.a. root, or sudo) to make the change, so use...
Works for Lubuntu 16.04:
Go to your "Start button" > System Tools > LXTerminal
In terminal, type: sudo pcmanfm
After entering your password a new folder window will open, it gives you admin/root permission. Click "Up" arrow twice to find /etc
folder.
Then navigate to /etc/xdg/lubuntu/lxdm/lxdm.conf
Right-click on lxdm.conf
and choose Leafpad to edit and make changes.
To make changes, replace # numlock=0
with numlock=1
Now click Save, and close Leafpad. Done.
You no longer have admin/root permission after window is closed. To "Uncomment" simply means removing # symbol, which will "activate" the command.
bootup numlock for Lubuntu 14.04.1 steps:
- dl numlockx via synaptic
- then edit the file /usr/share/lightdm/lightdm.conf.d/50-greeter-wrapper.conf.
Use e.g. this command in a terminal:
sudo gedit /usr/share/lightdm/lightdm.conf.d/50-greeter-wrapper.conf
add this line:
greeter-setup-script=/usr/bin/numlockx on
- save file and reboot your system
This works for me:
sudo su -
apt-get install numlockx
echo "/usr/bin/numlockx on" >> /etc/xdg/lxsession/Lubuntu/autostart
Best regards!