Raspberry Pi: Fixing UK Keyboard Settings

Raspberry Pi: “Can’t open file to write”

Just got my first Raspberry Pi and was excited to get it booted up.  

First problem:  The keyboard is set to UK.
Solution: Edit the keyboard config file > etc\default\keyboard

Second problem: Can’t edit the keyboard file.
Solution: Start the GUI using the command line: sudo startx

Hope this helps!