Mer/Documentation/USB Networking

Line 5: Line 5:
== Preparation ==  
== Preparation ==  
-
refer to the instructions given here
+
refer to the instructions given here </ br>
-
[http://www.internettablettalk.com/wiki/index.php/Debian#HOWTO] :
+
[http://www.internettablettalk.com/wiki/index.php/Debian#HOWTO/ http://www.internettablettalk.com/wiki/index.php/Debian] :
-
on host: open (with root privileges) file /etc/network/interfaces
+
on host: open (with root privileges) file <code>/etc/network/interfaces</code>
add the following at the end of the lines:
add the following at the end of the lines:
-
<nowiki>auto usb0
+
 
 +
 
 +
<pre>auto usb0
iface usb0 inet static
iface usb0 inet static
       address 192.168.2.1
       address 192.168.2.1
Line 21: Line 23:
       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</nowiki>
+
       down iptables -t nat -F POSTROUTING</pre>
== Enter rescue mode ==  
== Enter rescue mode ==  
Line 27: Line 29:
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.
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:
+
Shortly after this screen appeared, the rescue mode will appear. It gives you five choices:<br />
-
- start Mer;
+
- start Mer;<br />
-
- activate console;
+
- activate console;<br />
-
- act as an ethernet USB gadget;
+
- act as an ethernet USB gadget;<br />
-
- act as a serial USB tool;
+
- act as a serial USB tool;<br />
-
- reboot.
+
- reboot.<br />
Select the option that says "act as an ethernet USB gadget".
Select the option that says "act as an ethernet USB gadget".
Line 44: Line 46:
On host: open a shell, and type
On host: open a shell, and type
-
<nowiki>modprobe usbnet</nowiki>
+
<pre>modprobe usbnet</pre>
then
then
-
<nowiki>sudo ifdown usb0</nowiki>
+
<pre>sudo ifdown usb0</pre>
then  
then  
-
<nowiki>sudo ifup usb0</nowiki>
+
<pre>sudo ifup usb0</pre>
You should get no message from the shell.
You should get no message from the shell.
Line 60: Line 62:
(on host) In Ubuntu, they should be in  
(on host) In Ubuntu, they should be in  
-
/etc/resolv.conf  
+
<code>/etc/resolv.conf</code>
On the Tablet: open the shell, and type
On the Tablet: open the shell, and type
-
sudo echo nameserver A.B.C.D > /etc/resolv.conf
+
<pre>sudo echo nameserver A.B.C.D > /etc/resolv.conf</pre>
[where A.B.C.D represent the figures in your DNS.
[where A.B.C.D represent the figures in your DNS.
Line 72: Line 74:
on host: open a shell, and type
on host: open a shell, and type
-
ping 192.168.2.2 -c 5
+
<pre>ping 192.168.2.2 -c 5</pre>
It should return five lines proving that contact was established with the Tablet.
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.
This means that you are ready to use the internet connection of your computer.

Revision as of 21:43, 12 April 2009

This is a method to use your PC internet connection on your tablet.

This was tried with an N810 with an Ubuntu laptop.

Contents

Preparation

refer to the instructions given here </ br> http://www.internettablettalk.com/wiki/index.php/Debian :

on host: open (with root privileges) file /etc/network/interfaces

add the following at the end of the lines:


auto usb0
iface usb0 inet static
      address 192.168.2.1
      netmask 255.255.255.0
      broadcast 192.168.2.255
      up echo 1 > /proc/sys/net/ipv4/ip_forward
      up iptables -P FORWARD ACCEPT
      up iptables -A POSTROUTING -t nat -j MASQUERADE -s 192.168.2.0/24
      down echo 0 > /proc/sys/net/ipv4/ip_forward
      down iptables -t nat -F POSTROUTING

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: open a shell, and type

modprobe usbnet

then

sudo ifdown usb0

then

sudo ifup usb0

You should get no message from the shell.

find your DNS

(on host) In Ubuntu, they should be in

/etc/resolv.conf

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.