Updating etc fstab
Start a terminal session on your Mac and login to your Pi with ssh by typing: For example: ssh [email protected] Enter your password (we're gonna change this to SSH Key Pair Autentication later) and you're logged into your Pi.
Lets perfrom an update on our operating system now. To update the system type: Before I can mount my USB Drive I have to format it correctly.
As soon as I posted a picture of my routers, switch, USB Drive and most important of all my Raspberry Pi 2 B, people asked if I wanted to write it all down in a guide. This guide is a step-by-step compilation of all those parts I used.
I combined bits and pieces until I got what I was looking for.
The 'pi' user and its associated files are now removed from the system.
Make sure your Pi gets a fixed IP address assigned by your router.
The necessary files will then be transferred to your SD card.
Removed the Pi from the television and moved it to the room with my routers and external harddisks.
Plug in your keyboard, mouse and monitor cables (I connected the Pi to my TV). Your Raspberry Pi will boot, and a window will appear with a list of different operating systems that you can install.
I picked Raspbian Lite as I don't need the desktop environment - tick the box next to Raspbian Lite and click on Install.
If it doesn't ask to reboot then force a reboot so the new hostname and other changes take effect; type: For the next part I used a guide Setting up a (reasonably) secure home web-server with Raspberry Pi written by Matt Wilcox. I want to control my Raspberry from a terminal on my Mac (or Putty in Windows). Type the following into the command prompt but remember to use your list of groups (minus the first 'pi' item) and replace USERNAME with the username you want to create.
That step is described at the bottom of Matt's guide. As Matt describes it's a good idea to change the user Pi. Make sure you type it all on one line (if you're seeing the line wrap here that's just to make things readable for you). The latest Raspbian Jessie changed the automatic login of the Pi.