How to run Raspberry pi without additional hardware only using ethernet cable on Ubuntu .


    When I got my hand on Raspberry Pi A, I think it's a bugger that I need an extra keyboard,hdmi cable and monitor to make it run. Since I connect my laptop to the internet using  wireless usb , I can make use of my free ethernet port to connect directly to pi.

      In this post, I'm going to share how we can run Raspberry pi without additional  hdmi,keyboard,mouse  . All you need is laptop, wireless internet connection ,an ethernet cable and a running Raspberry Pi . If you have an empty sd card without any OS in it, Please visit my previous post on how you can write to your SD card .

    The idea behind this project  is that, I can make my system run as an Access point to my Pi.I will use a lightweight DHCP,DNS,TFTP server function call Dnsmasq .I will share my internet connection with Pi and my system will assign a DHCP IP to it. Once we know the Pi IP, we can directly SSH to the Pi and install VNC server application. We should be able then to remotely log to Pi from our system. To cut everything short I summarize steps in points below.

What you need?

1. Laptop
2.Wireless internet connection
3.Ethernet cable
4. Raspberry Pi 


Steps
-
1. Prepare setup as below photo. You can use your builtin  wireless card for this project.

Network Setup

.

2.Share Internet connection with the Pi
Share internet with other computer


3.Get the Raspberry Pi IP assign by our system . in my case, my Pi IP is 10.42.0.68

shark_attack@Positive-Space:~/Programming/bash$ cat /var/lib/misc/dnsmasq.leases

Raspberry Pi IP address assign by System


4.SSH to Raspberry Pi

 shark_attack@Positive-Space:~/Programming/bash$ ssh 10.42.0.68 -l pi


Connect to  Pi via ssh command

5.(Optional) If this is the first time you login to your Pi,you can choose what selection  you want for your Raspberry Pi  .For more information on this, you can visit here . We can always go back to config mode whenever we want later on by typing "sudo raspi-config" on terminal.
Raspi config

After finish, Choose to reboot system. Your new configuration will take effect after reboot

6. Install VNC server application to Pi .

pi@raspberrypi ~$ sudo apt-get install tightvncserver


Installing Raspberry Pi VNC server
7.Configure the password for remote access and enable the  vncserver at display 1 .
pi@raspberrypi ~$ vncserver :1

8.Install VNC client application on your system
shark_attack@Positive-Space:~$ sudo apt-get install xtightvncviewer

Installing xtightvncviewer on Ubuntu


9.Remotely login Raspberry Pi.
shark_attack@Positive-Space:~$ sudo ssh 10.42.0.68 -1 pi

10.Enter your Pi IP ,display port "10.42.0.68:1"  follow with  "password ".


11.You should be able to remote login  your Pi .

Walla..


    I found one website that connect their Mac computer to Pi using the same way as I did.Please visit the link Raspberry Pi Macgyver style


That's it for today. Drop some comment below and have a good day . :-)

My Pi setting

Previous
Next Post »