Ubuntu – How Do you set up numlockx at startup in ubuntu 14.04


In ubuntu 13.10 in order to install numlockx you had to run:
sudo apt-get install numlockx
After you install numlockx you had to run:
gksudo gedit /etc/lightdm/lightdm.conf
At the end of this file you had to enter greeter-setup-script=/usr/bin/numlockx on
In 14.04 when you run gksudo gedit /etc/lightdm/lightdm.conf it opens up a blank file….
How do i set up numlockx in 14.04?

I have also tried to follow this answer but that did not work either.

Best Answer

Try adding this line:

greeter-setup-script=/usr/bin/numlockx on

to the file /usr/share/lightdm/lightdm.conf.d/50-unity-greeter.conf.

however this file will be overwritten when the unity-greeter is upgraded. For a more permanent solution, add these lines:

greeter-setup-script=/usr/bin/numlockx on

to a seperate .conf file that you create in either the /etc/lightdm/lightdm.conf.d/ or in the /usr/share/lightdm/lightdm.conf.d/ folder.

thanks Gunnar Hjalmarsson for pointing that out

Related Question