
Originally Posted by
mikegsmith
Option 3, regarding sudo sed -i command, which I guess is making changes to the /etc/rc.local file. This suggestion is so bewildering that I've avoided it.
Instead, I've edited the /etc/rc.local file by adding the line: "user/bin/numlockx on". It didn't work.
If Option 3 is indeed my solution, will someone please explain it to me?
It just sets "/etc/rc.local" like shown below, which you've supposedly done yourself manually, only without the prior check if "numlockx" is installed.
Either just copy & paste the content from below, or at least make sure you have both set the path right (as you've stated it incorrectly twice in your post) and placed the command above the "exit 0" line.
"/etc/rc.local":
Code:
#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.
# Numlock enable
[ -x /usr/bin/numlockx ] && numlockx on
exit 0
Regards.
Bookmarks