Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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.

share|improve this question

3 Answers 3

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

share|improve this answer
No, don't do that. 50-unity-greeter.conf belongs to the unity-greeter package, and any changes will be overwritten next time unity-greeter is upgraded. –  Gunnar Hjalmarsson Sep 14 '14 at 13:10
so what file should it be added to then? it tried adding it to the file/etc/lightdm/lightdm.conf.d/50-unity-greeter.conf to no avail –  drizzle Sep 14 '14 at 13:49
in fact it does work, i had forgotten to include the [SeatDefaults] line before. thanks for the help –  drizzle Sep 14 '14 at 14:51
The best approach IMO is to create a separate .conf file, either in /usr/share/lightdm/lightdm.conf.d or in /etc/lightdm/lightdm.conf.d. Enabling numlock has nothing to do with unity-greeter, has it? –  Gunnar Hjalmarsson Sep 14 '14 at 17:55
Thanks for responding. What is the unity-greeter about then, except for performing tasks that need to be done at the login interface? –  drizzle Sep 14 '14 at 18:39

For Lubuntu 14.04 I edited the file ~/.config/lxsession/Lubuntu/autostart and appended the line:

@/usr/bin/numlockx on
share|improve this answer

You can create the file, but you need to add an extra line, so it looks like:

greeter-setup-script=/usr/bin/numlockx on
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.