1

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.

4 Answers4

1

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:

[SeatDefaults]
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

drizzle
  • 51
  • 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
  • unity-greeter is a greeter. The desire to enable numlock can be assumed to be the same if you use another greeter such as lightdm-gtk-greeter, right? It's lightdm itself you want to configure, not a particular greeter. – Gunnar Hjalmarsson Sep 15 '14 at 23:54
0

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

@/usr/bin/numlockx on
user35246
  • 146
0

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

[SeatDefaults]
greeter-setup-script=/usr/bin/numlockx on
Gunnar Hjalmarsson
  • 33,540
  • 3
  • 64
  • 94
0

I found that if you edit the file located in the following directory you can change the way he login screen displays on Ubuntu 14.04.

" /usr/share/lightdm/lightdm.conf.d/50-guest-wrapper.conf "

Enter one the following commands:

  1. sudo gedit /usr/share/lightdm/lightdm.conf.d/50-guest-wrapper.conf

  2. Now add: greeter-setup-script=/usr/bin/numlockx on

or

If you elevate to a root terminal you can skip "sudo".

  1. sudo su

  2. Enter you administrator password

  3. gedit /usr/share/lightdm/lightdm.conf.d/50-guest-wrapper.conf

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

Either way it will get you to the same spot.

YOU CANNOT JUST NAVIGATE TO THE FILE AND OPEN UNLESS YOU ARE LOGGED IN AS THE "ROOT USER" WHICH IS NOT RECOMMENDED BECAUSE OF SECURITY ISSUES.

If you want to make it so you have to enter a username and password at the login screen add the following line to that same file as "root":

greeter-show-manual-login=true

Eric
  • 1