Difference between revisions of "BBB Internet over the USB cable"
From Klaus' wiki
Line 10: | Line 10: | ||
echo "Starting the Internet-over-USB script" | echo "Starting the Internet-over-USB script" | ||
/sbin/route add default gw 192.168.7.1 | /sbin/route add default gw 192.168.7.1 | ||
− | echo "nameserver 8.8.8.8" >> /etc/resolv.conf | + | grep -q 8.8.8.8 /etc/resolv.conf |
+ | if [ "$?" -ne "0" ]; then | ||
+ | echo "nameserver 8.8.8.8" >> /etc/resolv.conf | ||
+ | fi | ||
/usr/sbin/ntpdate -b -s -u dk.pool.ntp.org | /usr/sbin/ntpdate -b -s -u dk.pool.ntp.org | ||
echo "End of the settings script" | echo "End of the settings script" | ||
</source> | </source> | ||
+ | |||
+ | At first login on the BBB execute this script as root (or use sudo). |
Revision as of 12:56, 16 February 2016
It is rather easy to get internet over the USB interface cable.
If you're running Linux you can follow these instructions.
If you're running Windows Derrek Molloy has some advices on this page.
On the BBB create this file and make it executable
#!/bin/bash echo "Starting the Internet-over-USB script" /sbin/route add default gw 192.168.7.1 grep -q 8.8.8.8 /etc/resolv.conf if [ "$?" -ne "0" ]; then echo "nameserver 8.8.8.8" >> /etc/resolv.conf fi /usr/sbin/ntpdate -b -s -u dk.pool.ntp.org echo "End of the settings script"
At first login on the BBB execute this script as root (or use sudo).