Editing Mer/Documentation/USB Networking
Warning: You are not logged in.
Your IP address will be recorded in this page's edit history.
The edit can be undone.
Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 1: | Line 1: | ||
- | |||
- | |||
This is a method to use your PC internet connection on your tablet. | This is a method to use your PC internet connection on your tablet. | ||
Line 7: | Line 5: | ||
== Preparation == | == Preparation == | ||
- | + | refer to the instructions given here | |
+ | [http://www.internettablettalk.com/wiki/index.php/Debian#HOWTO] : | ||
- | < | + | on host: open (with root privileges) file /etc/network/interfaces |
+ | |||
+ | add the following at the end of the lines: | ||
+ | |||
+ | <nowiki>auto usb0 | ||
iface usb0 inet static | iface usb0 inet static | ||
address 192.168.2.1 | address 192.168.2.1 | ||
Line 18: | Line 21: | ||
up iptables -A POSTROUTING -t nat -j MASQUERADE -s 192.168.2.0/24 | up iptables -A POSTROUTING -t nat -j MASQUERADE -s 192.168.2.0/24 | ||
down echo 0 > /proc/sys/net/ipv4/ip_forward | down echo 0 > /proc/sys/net/ipv4/ip_forward | ||
- | down iptables -t nat -F POSTROUTING</ | + | down iptables -t nat -F POSTROUTING</nowiki> |
+ | == Enter rescue mode == | ||
- | + | Put your tablet on. As soon as the "Nokia" screen appears, press the "home" button of your tablet, the one that is just under the camera, and keep it pressed until the "Mer" screen appears. | |
- | + | Shortly after this screen appeared, the rescue mode will appear. It gives you five choices: | |
+ | - start Mer; | ||
+ | - activate console; | ||
+ | - act as an ethernet USB gadget; | ||
+ | - act as a serial USB tool; | ||
+ | - reboot. | ||
- | + | Select the option that says "act as an ethernet USB gadget". | |
- | + | A console screen will scroll, then the Mer screen will appear. | |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | Connect the USB cable between your PC and the Tablet. | |
- | == | + | == configure your network interface == |
- | On host | + | On host: open a shell, and type |
- | < | + | <nowiki>modprobe usbnet</nowiki> |
- | sudo ifdown usb0 | + | |
- | sudo ifup usb0</ | + | then |
+ | |||
+ | <nowiki>sudo ifdown usb0</nowiki> | ||
+ | |||
+ | then | ||
+ | |||
+ | <nowiki>sudo ifup usb0</nowiki> | ||
You should get no message from the shell. | You should get no message from the shell. | ||
- | == | + | == find your DNS == |
+ | |||
+ | (on host) In Ubuntu, they should be in | ||
- | + | /etc/resolv.conf | |
- | On the | + | On the Tablet: open the shell, and type |
- | + | sudo echo nameserver A.B.C.D > /etc/resolv.conf | |
- | + | [where A.B.C.D represent the figures in your DNS. | |
- | == | + | == test by pinging == |
- | + | on host: open a shell, and type | |
- | + | ping 192.168.2.2 -c 5 | |
- | + | It should return five lines proving that contact was established with the Tablet. | |
- | + | This means that you are ready to use the internet connection of your computer. |
Learn more about Contributing to the wiki.