Over a million developers have joined DZone.

Raspberry Pi B+: Connect to your Pi with no display monitor, keyboard or mouse

· IoT Zone

Access the survey results 'State of Industrial Internet Application Development' to learn about latest challenges, trends and opportunities with Industrial IoT, brought to you in partnership with GE Digital.

The new Raspberry Pi B+ was released on July 14th 2014. The following link does all justice to explaining the improved features of B+.  Please refer it here : Raspberry Pi B+

The moment I had this credit card sized thing on my palm, I was so excited to get started with it. I downloaded Raspbian from Raspberry Pi Downloads Page and unzipped it. This is the image file you get after the unzip operation: 2014-06-20-wheezy-raspbian.img. I used the SanDisk 8GB Class 4 Micro SD card and dd tool to write to it. Refer Installing images on Linux here ( Please note, I did bs=1M with dd tool while writing). This was one of the guide I was following Quick Start Guide

But then, wait! Do you need a HDMI TV or display monitor, USB keyboard and a USB mouse to connect to it? Oh really!? I was not interested to invest any further. 
Here is what I did:

  1. I inserted the Micro SD card into the slot behind. 
  2. I had a micro USB cable my for Nexus 5. I used the same for the 5V power supply
  3. I had an Ethernet crossover cable already with me for some VPN stuffs. I took one of them and connected  one end to the router and the other end to the Pi Ethernet Port (next to 4 USB Ports) 
  4. Next, I used my laptop to connect to my Pi in the same network.
  5. On my laptop, 
    1. Opened Terminal. Typed in $ ifconfig  to get to know the IP address. 
      • For ex: if  inet addr:192.168.0.101 then our Pi should have inet addr:192.168.0.*
  6. Next, for my rescue came the nmap tool. If you do not have it already installed, $ sudo apt-get install nmap 
    • Execute $ nmap -T4 -F 192.168.0.* on the terminal ( as per the example considered ) This will scan all the hosts which are up and then lists out the open ports. You will find Pi as one among them.
  7. If you like GUI Based, you may like Zenmap and can be installed by $ sudo apt-get install zenmap.
    • After installing, type $ sudo zenmap
    • Type Target as 192.168.0.*
    • Choose Profile as Quick Scan
    • Click on Scan
    • This will list the Raspberry Pi MAC Address and the IP Address
  8. Now, you know the IP Address of Pi. The default login for Raspbian is username "pi" with the password "raspberry"
  9. Time to ssh!
  10. Need to change your configuration settings after login? Type $ sudo raspi-config and change it accordingly!
Happy hacking! :)

The IoT Zone is brought to you in partnership with GE Digital.  Discover how IoT developers are using Predix to disrupt traditional industrial development models.

Topics:

Published at DZone with permission of Swathi Venkatachala, DZone MVB. See the original article here.

Opinions expressed by DZone contributors are their own.

The best of DZone straight to your inbox.

SEE AN EXAMPLE
Please provide a valid email address.

Thanks for subscribing!

Awesome! Check your inbox to verify your email so you can start receiving the latest in tech news and resources.
Subscribe

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}