CSE 190: Robotics

Connecting to the Internet

Now we'll connect the board to the internet so we can install SSH, ROS, and other programs. There are two options to connect to the internet. Putting the board on Wi-Fi is the preferred option.

Putting the Board on Wi-Fi

Using the GUI and the Network Manager you can setup to connect to the UCSD-PROTECT by following the directions on the UCSD website.

Once this is setup you will need to make two changes manually because of some bugs with the Network Manager. First you need open the UCSD-PROTECT setup file:

sudo vi /etc/NetworkManager/system-connections/UCSD-PROTECTED

And remove the command requiring a CA-certificate:

system-ca-certs=true

Then in addition you need to add the UCSD and Google DNS servers to the configuration manually. The routers will provide this information when you connect and normally the Network Manager would save this, but the bug causes this not to occur. Run these commands to manually add these DNS servers:

sudo sh -c "echo nameserver 8.8.8.8 > /etc/resolv.conf"
sudo sh -c "echo nameserver 132.239.1.52 > /etc/resolv.conf"
sudo sh -c "echo nameserver 132.239.1.50 > /etc/resolv.conf"

[Need to double check the two UCSD ones because this was from memory.]

Now restart the OS and you should be good. This connection may still be a bit finicky.

Sharing Internet with the Board over Ethernet

If you have a USB (or Thunderbolt, for newer Macs) to Ethernet adapter, you can share internet with the Snapdragon from your computer.

NOTE: If you are on a campus network (UCSD-Protected, UCSD-Guest, or Resnet), you will not be able to share your internet connection while on the network as the network settings prohibit it. [[[[ what do now??? ]]]]

Ubuntu 14.04 (native)

If you are running an Ubuntu computer, it should be very straightforward to share internet with your Snapdragon. Go to the connections configuration window. Edit your current connection, then go to the IPv4 Settings tab. Under the "Method" dropdown, select "Shared to other computers."

Mac OS X with Ubuntu virtual machine

Sharing internet with the Snapdragon from the VM side when running on a Mac has not worked successfully, though you are welcome to try. Fortunately, you can share internet from your Mac easily.

Go to System Preferences and select the Sharing pane. Check "Internet Sharing" from the list on the left, and when prompted hit "Start." In the "To computers using: " list, select USB Ethernet if using a USB adapter, or Thunderbolt Ethernet if using a Thunderbolt to Ethernet adapter.

Using this method, you will still use the Ubuntu VM to talk to the board over serial/SSH, but the Mac side of your computer will be providing the internet connection.

Windows with Ubuntu virtual machine

Google it.

And Putty.

Testing Connection

Your Snapdragon should now have access to the internet either via Ethernet or Wi-Fi. Test this by typing ping 8.8.8.8 (Google's DNS Server) at the command prompt.