Editing N900 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 409: Line 409:
If you just need a one-time connection quickly, with no need to edit configuration files or set things up for automatic detection/connection, then as an alternative to the above, the following has worked for this user (kwtm).  Make sure "usb-network-modules" and "rootsh" are installed (via Applications Manager or equivalent).
If you just need a one-time connection quickly, with no need to edit configuration files or set things up for automatic detection/connection, then as an alternative to the above, the following has worked for this user (kwtm).  Make sure "usb-network-modules" and "rootsh" are installed (via Applications Manager or equivalent).
-
<ol>
+
1. connect the N900 to the Other Computer via USB cable, and select "PC Suite mode" when asked. <br>
-
<li>
+
2. open a terminal on the N900 and type:
-
connect the N900 to the Other Computer via USB cable, and select "PC Suite mode" when asked.
+
<pre>   sudo gainroot
-
</li>
+
  ifconfig usb0 192.168.2.15
-
<li>
+
  ifconfig usb0 up</pre>
-
open a terminal on the N900 and type:
+
3. on your Other Computer, open a terminal and type the following for Ubuntu; modify appropriately for other computers:
-
<pre>
+
<pre>   sudo ifconfig usb0 192.168.2.14
-
sudo gainroot
+
  sudo ifconfig usb0 up
-
ifconfig usb0 192.168.2.15
+
  ssh -l user -v 192.168.2.15</pre>
-
ifconfig usb0 up
+
That is all. You should now be connected via terminal to your N900.  Whatever you type on your Other Computer, it will be as if you are typing on the N900 itself in a terminal.
-
</pre>
+
Non-Ubuntu Linux computers might not use the "sudo" command, so you will have to gain root another way.  One possibility that will probably work is to use the "su" command first, allowing you to omit "sudo" on the above commands:<pre>
-
</li>
+
  su  # (And then enter the root password when asked)
-
<li>
+
  ifconfig usb0 192.168.2.14
-
on your Other Computer, open a terminal and type the following for Ubuntu; modify appropriately for other computers:
+
  ifconfig usb0 up
-
<pre>
+
  exit # (This stops the root mode)
-
sudo ifconfig usb0 192.168.2.14
+
  ssh -l user -v 192.168.2.15</pre>
-
sudo ifconfig usb0 up
+
-
ssh -l user -v 192.168.2.15
+
-
</pre>
+
-
</li>
+
-
</ol>
+
-
 
+
-
That is all. You should now be connected via terminal to your N900.  Whatever you type on your Other Computer, it will be as if you are typing on the N900 itself in a terminal. Non-Ubuntu Linux computers might not use the "sudo" command, so you will have to gain root another way.  One possibility that will probably work is to use the "su" command first, allowing you to omit "sudo" on the above commands:
+
-
su  # (And then enter the root password when asked)
+
-
ifconfig usb0 192.168.2.14
+
-
ifconfig usb0 up
+
-
exit # (This stops the root mode)
+
-
ssh -l user -v 192.168.2.15
+
[I have no idea what to do for Windows computers.  Perhaps someone can post the equivalent commands?]
[I have no idea what to do for Windows computers.  Perhaps someone can post the equivalent commands?]

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)