Reply
Thread Tools
smoku's Avatar
Posts: 1,716 | Thanked: 3,007 times | Joined on Dec 2009 @ Warsaw, Poland
#1
  • First install SSH server on the device. I use 'dropbear' package.
  • Check for the following lines in /etc/network/interfaces and if there aren't there, add them (using root):
    Code:
    iface usb0 inet static
            address 192.168.2.15
            netmask 255.255.255.0
  • Connect N900 with USB cable.
  • Select "PC Suite Mode" in popup.
  • Switch to 'root' on N900 and issue the following commands:
    Code:
    ifup usb0
    /etc/init.d/dropbear start
  • If you're using NetworkManager (Ubuntu etc.) wait for the address search to stop (notification area stops "connecting" animation) and you have a "disconnected" popup.
  • Issue the following command on the PC:
    Code:
    sudo ifconfig usb0 192.168.2.14 netmask 255.255.255.0 up
  • Then you may:
    Code:
    ssh root@192.168.2.15
__________________
smoku @xiaoka.com (SMTP/XMPP) ...:.:....:... pebbled . Poky Fish : sixaxis . psx4m . uae4all
Jolla Phone post-mortem . . . . . . . . . . -> 1+1 VGN-UX390N
 

The Following 3 Users Say Thank You to smoku For This Useful Post:
Posts: 521 | Thanked: 296 times | Joined on Sep 2009
#2
Originally Posted by smoku View Post
  • First install SSH server on the device. I use 'dropbear' package.
  • Check for the following lines in /etc/network/interfaces and if there aren't there, add them (using root):
    Code:
    iface usb0 inet static
            address 192.168.2.15
            netmask 255.255.255.0
  • Connect N900 with USB cable.
  • Select "PC Suite Mode" in popup.
  • Switch to 'root' on N900 and issue the following commands:
    Code:
    ifup usb0
    /etc/init.d/dropbear start
  • If you're using NetworkManager (Ubuntu etc.) wait for the address search to stop (notification area stops "connecting" animation) and you have a "disconnected" popup.
  • Issue the following command on the PC:
    Code:
    sudo ifconfig usb0 192.168.2.14 netmask 255.255.255.0 up
  • Then you may:
    Code:
    ssh root@192.168.2.15

If I want to connect using Windows, what is the equivalent of:
sudo ifconfig usb0 192.168.2.14 netmask 255.255.255.0 up

Does ipconfig provide this same functionality?
 

The Following User Says Thank You to bugelrex For This Useful Post:
debernardis's Avatar
Posts: 2,142 | Thanked: 2,054 times | Joined on Dec 2006 @ Sicily
#3
Please add it to the wiki, too
 
Posts: 432 | Thanked: 645 times | Joined on Mar 2009
#4
Originally Posted by bugelrex View Post
If I want to connect using Windows, what is the equivalent of:
sudo ifconfig usb0 192.168.2.14 netmask 255.255.255.0 up

Does ipconfig provide this same functionality?
The problem in Windows is, that you need a driver to be installed to use your device as a usb-networking device. This driver should come with PC Connectivity, MADDE and the Nokia Qt SDK. Then you can use the Windows UI to configure your usb connection (IP address etc.)


Originally Posted by smoku View Post
[LIST][*]First install SSH server on the device. I use 'dropbear' package.[*]Check for the following lines in /etc/network/interfaces and if there aren't there, add them (using root):
Code:
iface usb0 inet static
        address 192.168.2.15
        netmask 255.255.255.0
[*]Connect N900 with USB cable.[*]Select "PC Suite Mode" in popup.[*]Switch to 'root' on N900 and issue the following commands:
Code:
ifup usb0
/etc/init.d/dropbear start

It's a matter of taste, but I like MAD developer, as it does all the steps, offering a UI. Maybe you want to have a look at that one.


Originally Posted by debernardis View Post
Please add it to the wiki, too
There is a wiki-page already


Daniel

Last edited by danielwilms; 2010-06-18 at 12:30. Reason: changed link to N900 usb networking page
 

The Following 2 Users Say Thank You to danielwilms For This Useful Post:
Posts: 68 | Thanked: 56 times | Joined on Sep 2011 @ Melbourne, Australia
#5
Hi guys.
I am having problems doing this but with OpenSSH (not Dropbears). I have WinSCP on my Windows XP machine, but I cannot get it to recognise my Nokia N900 (192.168.2.15). However my PC has a totally different IP address. Do I have to stipulate the IP address on the Nokia N900? Or can I comment out the line in the /etc/network/interfaces file?
I've installed PC Suite 7 and it works (I was shocked), but I want to be able to use WinSCP to access all the other folders and root files, etc on my phone. Thanks
 
jellyroll's Avatar
Posts: 435 | Thanked: 684 times | Joined on Apr 2012 @ Netherlands 020
#6
Can you please post the link where I can download MADDE?
 
Halftux's Avatar
Posts: 862 | Thanked: 2,511 times | Joined on Feb 2012 @ Germany
#7
Originally Posted by elcaito View Post
but I cannot get it to recognise my Nokia N900 (192.168.2.15).
Do you have a usb lan device, when connecting the phone.
When not you need to install the driver or load the usb lan modul on N900 for windows.

Originally Posted by elcaito View Post
However my PC has a totally different IP address.
If you have a usb lan device put a fixed IP address. For example 192.168.2.14 or start dhcp server on N900.

Originally Posted by elcaito View Post
Do I have to stipulate the IP address on the Nokia N900? Or can I comment out the line in the /etc/network/interfaces file?
This will not change the ip from your pc.

I attached the usb driver in case you have no usb lan.

P.S.: For loading the usb lan windows modules and change ip address you can use genwall or mad developer. With genwall you can also set a dhcp server.
Attached Files
File Type: zip usbdriver.zip (231.1 KB, 373 views)

Last edited by Halftux; 2016-03-17 at 10:38.
 
Halftux's Avatar
Posts: 862 | Thanked: 2,511 times | Joined on Feb 2012 @ Germany
#8
Originally Posted by jellyroll View Post
Can you please post the link where I can download MADDE?
Madde is also included in the qt sdk. For the stand alone madde version it could be that I have somewhere a copy I will have a look.
 
Halftux's Avatar
Posts: 862 | Thanked: 2,511 times | Joined on Feb 2012 @ Germany
#9
 

The Following 4 Users Say Thank You to Halftux For This Useful Post:
jellyroll's Avatar
Posts: 435 | Thanked: 684 times | Joined on Apr 2012 @ Netherlands 020
#10
Thank you for uploading this file I couldn't find it anywhere on the internet.
 

The Following User Says Thank You to jellyroll For This Useful Post:
Reply

Thread Tools

 
Forum Jump


All times are GMT. The time now is 13:42.