To turn on Num Lock on GNOME startup on a Linux system, follow these steps:
numlockx
utility if it is not already installed. You can do this by running the following command:sudo apt-get install numlockx
This will install the numlockx
utility, which allows you to enable Num Lock on startup.
Open the /etc/gdm3/greeter.dconf-defaults
file in a text editor. This file contains default configuration options for the GNOME login screen.
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.
Save the changes and close the file.
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.
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.