In this post:
Connect to RPi with an without monitor
There are several ways to accomplish this – it’s not intended to describe all of them (it is possible that in a future post will be described others, for example, via serial interface)
1)Connect the Raspberry Pi – with monitor:
With the RPi without being plugged -> introduce the SD card, connect the monitor, keyboard, mouse and the Ethernet cable.
Next, plug the RPi with the Micro USB Power Supply to the power grid.
If everything is OK, you will be prompt with the login menu:
– login: pi
– password: raspberry
2) Connect the Raspberry Pi – without monitor
This one can be tricky and depending on your current network, can be easier or not.
Note: connect your computer also with an Ethernet cable, this way your computer and RPi, will be in the same network.
2.1) If you are in a home network follow the next steps [easier way]:
– I followed the answer from Diego in this link source
– On the terminal :
ssh -X pi@raspberrypi (optional -X -> to run a graphical client through your SSH session)
“If this FAILS, try finding out what IP address is assigned to the Raspberry Pi. (For example, by using your browser to take a look at your modems website (if you don’t know where, you could try on:
Linux:on terminal write
Windows:on terminal write
Take note of the IP of the gateway, then write this IP in your browser
If you cannot find your gateway, you could try by guess and check (not recommended) the following IPs:
http://192,168.0.1/ or http://192,168.1.1/ or http://192,168.0.254/ or http://192,168.1.254/ or http://192,168.0.138/ or http://10.0.0.1/ or http://10.0.0.138/ or http://10.0.0.254/ or http://10.0.1.1/ or http://10.0.1.254/
Look up the device named something like raspberrypi and copy the IP address. Paste it into the command you tried from above where it now states raspberrypi and you’re good to go!”
2.2) If you are in a school network or in other type of network
Sometimes you cannot access the RPi by his hostname or access to the modem’s page to discover the IP.
In these cases I advice you to follow the guide in: http://www.raspberrypi.org/documentation/troubleshooting/hardware/networking/ip-address.md
In summary (under Linux – I tested it):
-if not installed:
apt-get install nmap
(maybe you require to write
sudo in the beginning)
-discover your subnet:
-Now use the nmap command with the -sn flag (ping scan) on the whole subnet range (use your IP address but change 4th part of the IP to 0). This may take a few seconds:
nmap -sn 192.168.1.0/24
After a while, you should see something like:
Nmap scan report for raspberrypi (192.168.1.8)
Host is up (0.0030s latency).
Now you can connect from the terminal using ssh to your RPi:
ssh -X firstname.lastname@example.org