new to Linux. I've been having a few problems since I installed some time ago, one of the main issues being my keyboard layout defaults to US on a GB keyboard.
I've found the command setxkbmap -layout gb
fixes this. Problem is, I have to run it each time I restart the laptop.
I've tried creating a shell script as follows in /etc/init.d
#!/bin/bash
# A she-bang - says what interpreter to use
### BEGIN INIT INFO
# Provides: SetKeyboardGB
# Required-Start: $remote_fs $syslog
# Required-Stop: $remote_fs $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Change Keyboard to GB
# Description: Changes Keyboard to GB on satrtup.
### END INIT INFO
# This will always run (Hopefully)
setxkbmap -layout gb
exit 0
This executes absolutely fine when I just run it, and I've already ran update-rc.d SetKeyboardGB defaults
but it won't seem to run when restarting the laptop. I feel like I've missed something in setting up my init.d script, but I haven't found the documentation easy to follow.
Any help is appreciated.