Skip to content

Instantly share code, notes, and snippets.

@danielgindi
Last active January 17, 2016 09:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save danielgindi/6ad65be3f2ea17bf14b2 to your computer and use it in GitHub Desktop.
Save danielgindi/6ad65be3f2ea17bf14b2 to your computer and use it in GitHub Desktop.
Enable NumLock on Ubuntu by default
sudo apt-get -y install numlockx
sudo sed -i 's|^exit 0.*$|# Numlock enable\n[ -x /usr/bin/numlockx ] \&\& numlockx on\n\nexit 0|' /etc/rc.local
# http://askubuntu.com/questions/155679/how-to-enable-numlock-at-boot-time-for-login-screen
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment