How to: Linux turn on Num Lock on GNOME startup

How to: Linux turn on Num Lock on GNOME startup

To turn on Num Lock on GNOME startup on a Linux system, follow these steps:

  1. Install the numlockx utility if it is not already installed. You can do this by running the following command:
‮er‬fer to:lautturi.com
sudo apt-get install numlockx

This will install the numlockx utility, which allows you to enable Num Lock on startup.

  1. Open the /etc/gdm3/greeter.dconf-defaults file in a text editor. This file contains default configuration options for the GNOME login screen.

  2. Add the following lines to the file:

[org/gnome/settings-daemon/peripherals/keyboard]
numlock-state='on'

This will enable Num Lock on the GNOME login screen.

  1. Save the changes and close the file.

  2. Run the following command to update the GNOME configuration:

sudo dconf update

This will apply the changes you made to the /etc/gdm3/greeter.dconf-defaults file.

  1. Reboot the system. Num Lock should now be enabled on the GNOME login screen.

That's it! Num Lock is now enabled on the GNOME login screen on your Linux system. Note that this change may not be persistent across reboots, as the /etc/gdm3/greeter.dconf-defaults file may be overwritten by updates or other changes. To make the change permanent, you may need to modify your system's GNOME configuration.

Created Time:2017-10-16 14:38:51  Author:lautturi