Beruflich Dokumente
Kultur Dokumente
SharingWiFiInternetconnectionwithRaspberryPithroughLAN/Ethernet(HeadlessMode)SyedAnwaarullah
Syed Anwaarullah
Debugging Life, Simulating Experiences, Looping Output!
https://anwaarullah.wordpress.com/2013/08/12/sharingwifiinternetconnectionwithraspberrypithroughlanethernetheadlessmode/
1/15
1/20/2016
SharingWiFiInternetconnectionwithRaspberryPithroughLAN/Ethernet(HeadlessMode)SyedAnwaarullah
https://anwaarullah.wordpress.com/2013/08/12/sharingwifiinternetconnectionwithraspberrypithroughlanethernetheadlessmode/
2/15
1/20/2016
SharingWiFiInternetconnectionwithRaspberryPithroughLAN/Ethernet(HeadlessMode)SyedAnwaarullah
A large part of this post assumes youve read the earlier post on directly
accessing the shell on Raspberry Pi through a Ethernet/LAN connection. In
this post, well go about setting up the Raspberry Pi to access internet
through the Ras-Pis Ethernet/LAN port from a Laptop/PCs shared WiFi
connection.
Steps:
1. Firstly, enable the WiFi adapter of the PC/Laptop and make sure its
connected to a WiFi hotpspot. Open any Internet Browser and confirm
internet access by opening any website.
https://anwaarullah.wordpress.com/2013/08/12/sharingwifiinternetconnectionwithraspberrypithroughlanethernetheadlessmode/
3/15
1/20/2016
SharingWiFiInternetconnectionwithRaspberryPithroughLAN/Ethernet(HeadlessMode)SyedAnwaarullah
3. Now, right click the above Network Properties and then select the
Sharing tab
https://anwaarullah.wordpress.com/2013/08/12/sharingwifiinternetconnectionwithraspberrypithroughlanethernetheadlessmode/
4/15
1/20/2016
SharingWiFiInternetconnectionwithRaspberryPithroughLAN/Ethernet(HeadlessMode)SyedAnwaarullah
4. From the drop down list, choose Local Area Connection and enable
both the checkboxes and hit OK. Once done, head back to the Adapter
Settings page and you should now see the Shared info message on the
Wireless Network Connection
https://anwaarullah.wordpress.com/2013/08/12/sharingwifiinternetconnectionwithraspberrypithroughlanethernetheadlessmode/
5/15
1/20/2016
SharingWiFiInternetconnectionwithRaspberryPithroughLAN/Ethernet(HeadlessMode)SyedAnwaarullah
5. Now, right click Local Area Connection Properties and then select
Internet Protocol Version 4 and then click the Properties Button
https://anwaarullah.wordpress.com/2013/08/12/sharingwifiinternetconnectionwithraspberrypithroughlanethernetheadlessmode/
6/15
1/20/2016
SharingWiFiInternetconnectionwithRaspberryPithroughLAN/Ethernet(HeadlessMode)SyedAnwaarullah
Once the properties tab pops up, make sure that the Obtain IP address
automatically checkbox is selected. If not, check it and hit OK
https://anwaarullah.wordpress.com/2013/08/12/sharingwifiinternetconnectionwithraspberrypithroughlanethernetheadlessmode/
7/15
1/20/2016
SharingWiFiInternetconnectionwithRaspberryPithroughLAN/Ethernet(HeadlessMode)SyedAnwaarullah
6. Now, power up the Raspberry Pi (making sure that the Ras-Pi and the
Laptop/PC are connected to each other through the LAN/Ethernet cable)
and wait a minute or two while the Ras-Pi boots. Now, repeat step 5
(previous one) to make sure Obtain IP Address Automatically is still
checked.
7. Open up command prompt using the hotkey Windows Key + R and then
typing in cmd or simply keying in cmd in the start menu (Win 7)
8. In the command prompt, key in ipconfig and scroll to the top of the info
shown
https://anwaarullah.wordpress.com/2013/08/12/sharingwifiinternetconnectionwithraspberrypithroughlanethernetheadlessmode/
8/15
1/20/2016
SharingWiFiInternetconnectionwithRaspberryPithroughLAN/Ethernet(HeadlessMode)SyedAnwaarullah
Note the IPv4 address which is 169.254.39.68 in this example. Please make
a note of what you see as this will be required further.
9. Now, power off the Raspberry Pi and plug the Ras-Pis SD card into a
card reader and connect it to the PC. Once the disk opens up, open the
cmdline.txt file in any editor
https://anwaarullah.wordpress.com/2013/08/12/sharingwifiinternetconnectionwithraspberrypithroughlanethernetheadlessmode/
9/15
1/20/2016
SharingWiFiInternetconnectionwithRaspberryPithroughLAN/Ethernet(HeadlessMode)SyedAnwaarullah
where the first half is the static IP for Raspberry Pi (169.254.39.71) and the
other half is the IP of the IPV4 or Ethernet Adapter (169.254.39.68) which
we obtained earlier.
11. Save this file and plug the SD card back into the Raspberry Pi. Power up
the Raspberry Pi and wait for a min or two. Establishg a direct SSH
connection with the Raspberry Pi as explained in the previous post.
12. Now, to verify if our Ras-Pi is Internet-Connected, type in this
command in the Shell (PuTTY terminal connected to the Ras-Pi)
ping http://www.google.com
and you should see response from the servers as shown below:
10/15
1/20/2016
SharingWiFiInternetconnectionwithRaspberryPithroughLAN/Ethernet(HeadlessMode)SyedAnwaarullah
Note (Edited: 5th Feb, 2015): Midori browser is no longer coming preinstalled with the latest Raspbian version and has been replaced with
Epiphany Browser. Please use that instead to verify internet
connectivity.
Please let me your feedback or questions through comments.
Thanks
References:
1. http://pihw.wordpress.com/guides/direct-network-connection/supereasy-direct-network-connection/
2. https://anwaarullah.wordpress.com/2013/07/16/direct-accessraspberry-pi-shell-and-desktop/
P.S: Did this post help you? Please leave your feedback. If youve tried some
additional steps that helped you in getting this working, please share so we
all can benefit from.
https://anwaarullah.wordpress.com/2013/08/12/sharingwifiinternetconnectionwithraspberrypithroughlanethernetheadlessmode/
11/15
1/20/2016
SharingWiFiInternetconnectionwithRaspberryPithroughLAN/Ethernet(HeadlessMode)SyedAnwaarullah
If youve benefited from this post, please consider donating and help me
buy new development stuff and resources. Thanks!
YouMayLike
1.
15Star
Wars'ThingsYouNeverKnewYou
Needed2monthsago
huffingtonpost.comHuffingtonPost
AOLForexElanaTeitelbaumElana
Teitelbaum(sponsored)
Rate this:
1 Vote
Share this:
23
Like
2bloggerslikethis.
Related:
https://anwaarullah.wordpress.com/2013/08/12/sharingwifiinternetconnectionwithraspberrypithroughlanethernetheadlessmode/
12/15
1/20/2016
SharingWiFiInternetconnectionwithRaspberryPithroughLAN/Ethernet(HeadlessMode)SyedAnwaarullah
Direct Access Raspberry Pi Shell and Desktop on Laptop/PC without installing anything on
the Raspberry Pi OS or connecting it to a Display Unit
In "Raspberry Pi"
Author: Anwaarullah
Consultant Engineer, Designer, Developer, Maker, Speaker, Educator and
Dreamer. Tinkering with Embedded, Android, Open Soft/Hard/Firm ware,
Robotics and 3D Printer. Talk to me at syed {Shift+2} anwaarullah dash com
View all posts by Anwaarullah
https://anwaarullah.wordpress.com/2013/08/12/sharingwifiinternetconnectionwithraspberrypithroughlanethernetheadlessmode/
13/15
1/20/2016
SharingWiFiInternetconnectionwithRaspberryPithroughLAN/Ethernet(HeadlessMode)SyedAnwaarullah
Anwaarullah / August 12, 2013 / Linux, Raspberry Pi / Raspberry Pi, Sharing, WiFi
Shairul
December 18, 2015 at 3:40 PM
Anwaarullah
January 5, 2016 at 4:58 AM
Nizar Boussarsar
January 15, 2016 at 6:51 PM
14/15
1/20/2016
SharingWiFiInternetconnectionwithRaspberryPithroughLAN/Ethernet(HeadlessMode)SyedAnwaarullah
Anwaarullah
January 16, 2016 at 12:32 AM
The Twenty Sixteen Theme. Syed Anwaarullah / Create a free website or blog at
WordPress.com.
https://anwaarullah.wordpress.com/2013/08/12/sharingwifiinternetconnectionwithraspberrypithroughlanethernetheadlessmode/
15/15