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:
-
{{Mer}}
 
-
 
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 ==  
-
On host, open (with root privileges) file <code>/etc/network/interfaces</code> and add the following at the end of the lines:
+
refer to the instructions given here
 +
[http://www.internettablettalk.com/wiki/index.php/Debian#HOWTO] :
-
<pre>auto usb0
+
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</pre>
+
       down iptables -t nat -F POSTROUTING</nowiki>
 +
== Enter rescue mode ==
-
(in Mer 0.15testing9, the address line above should be <code>address 192.168.2.14</code> as Mer is hardcoded to use that as a gateway address)
+
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.
-
== Enter rescue mode ==
+
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.
-
Turn your tablet on. As soon as the Nokia screen appears, press the Home button on your tablet and keep it pressed until the Mer screen appears.
+
Select the option that says "act as an ethernet USB gadget".
-
Shortly after this screen appeared, the rescue mode will appear. It gives you five choices:<br />
+
A console screen will scroll, then the Mer screen will appear.  
-
* 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.
+
Connect the USB cable between your PC and the Tablet.
-
== Configure your network interface ==
+
== configure your network interface ==
-
On host, open a shell, and type:
+
On host: open a shell, and type
-
<pre>modprobe usbnet
+
<nowiki>modprobe usbnet</nowiki>
-
sudo ifdown usb0
+
 
-
sudo ifup usb0</pre>
+
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 ==  
+
== find your DNS ==  
 +
 
 +
(on host) In Ubuntu, they should be in
-
On host, on Ubuntu, they should be in <code>/etc/resolv.conf</code>.
+
/etc/resolv.conf  
-
On the tablet, open the shell, and type
+
On the Tablet: open the shell, and type
-
<pre>sudo echo nameserver A.B.C.D > /etc/resolv.conf</pre>
+
sudo echo nameserver A.B.C.D > /etc/resolv.conf
-
Where A.B.C.D represent the figures in your DNS. For instance 208.67.222.222 (public nameserver).
+
[where A.B.C.D represent the figures in your DNS.
-
== Test by pinging ==
+
== test by pinging ==
-
On host, open a shell, and type
+
on host: open a shell, and type
-
<pre>ping 192.168.2.2 -c 5</pre>
+
ping 192.168.2.2 -c 5
-
(in Mer 0.15testing9, the address line above should be <code>address 192.168.2.15</code> as Mer is hardcoded to use that as a device address)
+
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.

Learn more about Contributing to the wiki.


Please note that all contributions to maemo.org wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see maemo.org wiki:Copyrights for details). Do not submit copyrighted work without permission!


Cancel | Editing help (opens in new window)

Templates used on this page: