User avatar
scruss
Posts: 1942
Joined: Sat Jun 09, 2012 12:25 pm
Location: Toronto, ON
Contact: Website

Wireless network sharing: how on Ubuntu 13.04?

Sun May 19, 2013 12:52 am

I used to be able to share my Mac's wireless connection from the ethernet port to my Raspberry Pi. Now I have a new Linux (Ubuntu 13.04) laptop, and I can't get very far. If I set up the wired connection with IPv4 ‘Shared with other computers’, the wireless seems to go off on my laptop when I plug the Raspberry Pi into the ether net port.

Any suggestions, please?
‘Remember the Golden Rule of Selling: “Do not resort to violence.”’ — McGlashan.

sprinkmeier
Posts: 410
Joined: Mon Feb 04, 2013 10:48 am
Contact: Website

Re: Wireless network sharing: how on Ubuntu 13.04?

Sun May 19, 2013 3:30 am

the wireless seems to go off is a bit vague.

what is the output of

Code: Select all

$ ip route
and

Code: Select all

$ ifconfig 
on the PC and RasPi before and after you plug in the RasPi?

User avatar
scruss
Posts: 1942
Joined: Sat Jun 09, 2012 12:25 pm
Location: Toronto, ON
Contact: Website

Re: Wireless network sharing: how on Ubuntu 13.04?

Sun May 19, 2013 1:26 pm

sprinkmeier wrote:the wireless seems to go off is a bit vague.
It used to disconnect completely. Anyway, it doesn't do it any more.

What you have to do is Edit Connections… → select Ethernet: Wired Connection 1 (or whatever it's called), Edit…IPv4 SettingsMethod: Shared to other computers. Your Raspberry Pi will be lurking somewhere in the 10.42.0.* range, and can be found with nmap:

Code: Select all

sudo nmap -sn 10.42.0.0/24

Starting Nmap 6.00 ( http://nmap.org ) at 2013-05-19 09:20 EDT
Nmap scan report for 10.42.0.1
Host is up.
Nmap scan report for 10.42.0.47
Host is up (0.00049s latency).
MAC Address: B8:27:EB:F3:CD:A4 (Raspberry Pi Foundation)
Nmap done: 256 IP addresses (2 hosts up) scanned in 2.59 seconds
So my Raspberry Pi is at 10.42.0.47. You don't strictly need to use sudo with nmap, but if you do it will report the MAC address and the vendor — which is a dead giveaway.

(thanks to John Martin on the GTALUG mailing list for helping with this.)
‘Remember the Golden Rule of Selling: “Do not resort to violence.”’ — McGlashan.

Return to “Advanced users”