In the package I bought, there was an SD card included containing the Raspbian operating system. This is a linux distribution especially created for the Raspberry Pi. It already contains quite some applications in a graphic user interface.
The fact that it comes with the package is handy, but for those who don’t have that privilege, there are some great tutorials out there that explain how to format any micro SD card and install Raspbian on it. It’s really straight forward, so it shouldn’t pose any problems.
The first thing we’ll be doing is configuring “ssh”. “ssh” is short for “secure shell”. A tool that lets you connect to the terminal of another computer remotely.
In order to do so, we need to make sure, the Raspberry Pi is correctly configured to accept such “ssh” connections.
While you’re logged into the user interface of your Pi, go to the menu in the top left corner, choose Preferences, and choose “Raspberry Pi Configuration”.
In the dialog that follows, make sure the “SSH” interface is enabled in the “Interfaces” tab.
If you own a windows computer, connecting to the Pi can be done using a tool called “putty”. You can find it here.
I happened to own a mac, and with mac you can do it simply via the terminal. And that’s what I will do.
Open a terminal.
In order to connect to the Pi we need its IP address. The IP address is the address on the network assigned to a network card through which a computer can be addressed. By default the Pi is configured to automatically obtain an IP address from your router using a protocol called DHCP (short for Dynamic Host Control Protocol). In short (very short), your Pi will get a random IP address. If you’re not into networking, go ahead and search on google for more information on that.
Anyhow. How to obtain the network address of the Pi. This is quite simple. By default the Pi is given a name through which it can be pinged on the network : “raspberry.local”. In order to get the IP address just type the following command in the terminal :
If all is well, you should be seeing some output like this. However, the output will keep on coming. Press ctrl-c to stop the output.
“ping” is a tool to check if a network card can be found on the network. You can see some stats, but most importantly, you can see the network address. It’s 192.168.0.164.
Armed with this knowledge, we can start the “ssh” tool using the following command :
the “pi@” prefix of the IP address denotes the user (“pi”) that’s used to connect. After pressing enter, the “ssh” tool will prompt you for a password. The default is “raspberry”. Mind the lower case.
That should do it. After you log on remotely, the prompt will change to something like this :