Hardware Reference
In-Depth Information
8. Log in as
pi
and enter the password you chose earlier with
raspi-config
.
9. You're now logged in as the user
pi
. When you've had enough pranking for
the day, type
exit
to quit your SSH session.
Connecting to the Pi from Mac OS X or Linux
Both Mac OS X and Linux come with command-line SSH clients. Follow these steps:
1.
Open up a terminal (located in
/Applications/Utilities
on the Mac).
2.
Type in the following command, but replace
[IP address]
with the
particular IP address of your Pi that we found out previously:
$ ssh pi@[IP address]
If your network provides a convenient local DNS service, you might be
able to type
raspberrypi
instead of the IP address try it and see whether
it works.
3. The first time you connect to the Pi or any foreign system over SSH, you'll
be prompted with a warning and a chance to verify the remote system's
RSA key fingerprint before continuing. This is a security feature designed to
ensure the authenticity of the remote system. Since we know that our Pi is
indeed
our
Pi, select
Yes
to trust this key and continue the connection.
4. Type the password of the user
pi
that you chose earlier with
raspi-config
.
5. You're now logged in as the user
pi
. When you've had enough pranking for
the day, type
exit
to quit your SSH session.
The importance of a sneaky headless
setup
You might be wondering why we bother with SSH and typing stuff in the command
line at all when Raspbian comes with a perfectly nice graphical desktop environment
and a whole repository of GUI applications. Well, the first reason is that we need all
the CPU power we can get out of the Pi for our projects. With the current graphics
drivers for
X
(the graphics system), the desktop eats up too much of the Pi's resources
and the CPU is more concerned with redrawing fancy windows than with running our
mischievous applications.