Raspberry Pi

They are cool little computers. I have one as my media server, and I'm writing this on another. I don't have any projects planned next, but I do have a few ideas:

Things To-Do First

The first thing is setting up your standard configuration for the raspbian distro. The Raspberry Foundation has it all the locale stuff as UK, so lets make it US. Also, I want things to be a bit more secure then a typical "learning environment". So while this will break the "Raspberry Pi Configuration" GUI, don't worry. You can still use sudo raspi-config from a terminal window which we will use below.

So, after booting your newly created SD card you will be logged in as the "pi" user. I think the following should be done:

  1. Normally, I'd say update first, but lets make things a bit more secure by changing the "pi" user password.
  2. Open a terminal and type sudo rasp-config.
  3. Change the password for the "pi" user. I know I suggest to remove it later, but better safe then sorry.
  4. Update!!! Its always important to first update any new OS! Open a terminal and type sudo apt-get update && sudo apt-get dist-upgrade && sudo rpi-update.
  5. Reboot & login.
  6. Open a terminal and type sudo rasp-config.
  7. Go to "Localisation Options" -> "Change Local" & select "en_US.UTF-8 UTF-8".
  8. When asked for the "Default locale for the system environment", select the same as above.
  9. Go to "Localisation Options" -> "Change Timezone" & select "US" & then whatever is appropriate (E.g. "Eastern").
  10. Go to "Localisation Options" -> "Change Keyboard" & select whatever is appropriate, For example:
    • "Generic 101-key PC"
    • "English (US)"
    • "No AltGr key"
    • "Left Logo key"
    • "No" for terminating X server.
  11. Go to "Localisation Options" -> "Change Wi-Fi Country" & select US.
  12. Select "Finish" and then Reboot your Raspberry Pi.
  13. Create a new user; leaving the user pi makes things easier, but less secure: sudo adduser <newusername>.
  14. Give your new user permissions to sudo: sudo adduser <newusername> sudo.
  15. Login as <newusername> and test that they can do "sudo" things. This command should give a root prompt: sudo -i. I don't suggest you use that command frequently unless you know the risks.
  16. Go to "Preferences" -> "Keyboard & Mouse" -> "Keyboard Layout..." and be sure to select the "United States" then scroll up for "English US".
  17. Remove the "pi" user: sudo userdel -r pi. If you have trouble running that command try rebooting. Your OS might complain that there is a process running as the "pi" user. I don't like having a username known by convention, nor that the "pi" user does not need a password to get root access.

These are perhaps a long set of steps, but consider it practice for good Linux administration. :-)

Also, I created this bash script to help with updating in the future.