Hi guys,
Don't have any display unit ?
Stuck finding it and other accessories?
Headless mode of Pi is all you need to work on!
The steps below are not valid for 'noobs' installed sd card,if you need this to work out with noobs installed sd card you need a monitor and a hdmi cable atleast once to install Raspbian os and then follow the same steps.
What you have:
- Raspberry Pi running the latest Raspbian Wheezy
- PC/Laptop with WiFi Internet connection and a Ethernet Jack (LAN Connector / RJ45)
- A working SSH connection with Raspberry Pi (direct access, explained here)
What you don’t have:
- Display Device for the Raspberry Pi (HDMI enabled display unit / Old TV)
- Direct Internet connection for the Raspberry Pi (LAN or WiFi)
Extra Stuff you need:
- Standard Network Cable (Cat 5, Standard or Crossover)
- PutTTY Software (will be used to SSH into the Pi)
- SD Card Writer
Please follow the below steps to have a working SSH connection:
- Install and burn the latest Raspbian Wheezy OS onto the SD card for the Raspberry Pi
- While the Raspberry Pi is switched off, connect one side of the Ethernet cable to Raspberry Pi and other side to the RJ45 jack of the PC/Laptop
- Open LAN properties and make sure that IPV4 properties are set to Obtain IP address automatically.
- We now need to determine the IP of our PC/Laptop when it’s connected to the Raspberry Pi
- Now power on the Raspberry Pi while making sure that the network cable is connected on both ends
- Wait for a min or two. You’ll notice that the PC/Laptop will scan and then show a small warning indicating the presence of an unidentified network.
- Now, open command prompt and type ipconfig. Note the IP of the Ethernet Adapter Local Area Connection as shown below:
8. Now, power off the Raspberry Pi and take out the SD Card. Plug in the SD card into a card reader and open it. You should see a couple of files
9. Open the cmdline.txt file and append this to the end of it:
ip=169.254.39.71
Please change the IP accordingly and assign a unique value (while making sure you don’t go beyond the subnet mask). Preferably, change only the last parameterFor example, if your LAN’s ip is 169.254.0.1, we recommend using 169.254.0.3 as the IP for Raspberry Pi in cmdline.txt
- Save the cmdline.txt file without making any other changes
- Plug this back into the Raspberry Pi and with the Ethernet cables connected, power on the Raspberry Pi
- Wait a couple of minutes while the Raspberry Pi tries to establish a local network connection with our PC/Laptop
- Once you see the network warning message as shown above, ping the Raspberry Pi to see if it’s live on the network as follows
- Open CMD prompt
- Type ping ipaddress_of_raspberry-pi
Ex: ping 169.254.39.71
If all went good, you should see the Pi responding back to the ping requests.
- Now its time to SSH into the R Pi. Open PuTTY client and type in the IP address of the Raspberry Pi (169.254.39.71) and hit Open
You should get a certificate trust warning message (if SSHing for the first time) which you should accept. Once done, you’ll see the login terminal:
Enter pi
The password should be raspberry.
Now, moving on to access the Raspberry Pi’s desktop, we first need to install Xming X Server for windows from this link:
http://sourceforge.net/project/downloading.php?group_id=156984&filename=Xming-6-9-0-31-setup.exe
Make sure you install the SSH components also when prompted to do so.
Once that gets successfully installed, simply click the Xming icon and make sure it’s running in the background.
Now, open PuTTY terminal and first enable X11 forwarding as shown below:
Now, direct SSH into the Raspberry Pi as explained previously
Hit in lxsession or startlxde and that should pop up the desktop of the Raspberry Pi.
Few pics of Pi in action.....
I loved this as I was able easily move in between my laptop os and simultaneously remote access the Raspberry pi.
If you have any queries comment below.
Next post on Enabling Wipi and using it to connect to Internet.I already worked it out waiting for freetime to post it.
--R.R.
Reference :
Top Comments