maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Nokia N900 (https://talk.maemo.org/forumdisplay.php?f=44)
-   -   Is there anyone who can tell me - How to get internet on n900 with USB_Networking! (https://talk.maemo.org/showthread.php?t=58931)

n0ak 2010-07-22 07:17

Is there anyone who can tell me - How to get internet on n900 with USB_Networking!
 
Hello ! :)
I have tried lots of things and the steps u need to do to get internet working on n900 with USB ! ,but still can't get internet working on my n900 with USB !
I have downloaded Mad-Developer !!
But still can't get the internet working :(
  1. Or probarly I do someting wrong with mad-developer !
  2. Or there is something more I need to do !
Help please maybe ur the one who can help me and tell me step by step to get this woking properly !! :o

Also check-out this - http://talk.maemo.org/showthread.php?t=58742
I have done what this guy says "ivyking" but still can't get internet working !!
Maybe he had missed something "ivyking"
Or u can explain me more desriptive to make me understand well !
Thank u very much ! :)
I will appreciate ur replies ! ;)

PathFinder@9GS 2010-07-22 07:38

Re: Is there anyone who can tell me - How to get internet on n900 with USB_Networking!
 
You just need internet right, I don't think you need to use MAD developer for that
You can always use PC suite or create a dial up connection yourself.
Connect ur n900 to ur pc, select the PC suite mode and use the PC suite to connect to the internet.
This would do in-case you are just looking to run internet through usb.

Edit : I suppose you are talking the other way around :p In that case, it would be sth to try out first cos I haven't tried before. Lemme see

PathFinder@9GS 2010-07-22 07:49

Re: Is there anyone who can tell me - How to get internet on n900 with USB_Networking!
 
another not-so-simple way I can think of right now is...
get a cheap wifi dongle( if u are already using wifi on ur pc to connect to internet) and setup a adhoc network through your pc with that dongle.
Thts it.
You wil have a wireless network setup and use that for your n900 :D

n0ak 2010-07-22 07:55

Re: Is there anyone who can tell me - How to get internet on n900 with USB_Networking!
 
Quote:

Originally Posted by PathFinder@9GS (Post 760364)
another not-so-simple way I can think of right now is...
get a cheap wifi dongle( if u are already using wifi on ur pc to connect to internet) and setup a adhoc network through your pc with that dongle.
Thts it.
You wil have a wireless network setup and use that for your n900 :D

I made ad-hoc already but doesnt work cos of PR 1.2 update !!
Only windows 7 conectify!! Is gr8 for ad-hoc

PathFinder@9GS 2010-07-22 08:04

Re: Is there anyone who can tell me - How to get internet on n900 with USB_Networking!
 
I'm not sure what you mean by the last line.
But yeah I just checked , you're right , I dont think n900 reads any adhoc anymore.
I'll see If terminal can read anything different than what is displayed in available connections

a1291762 2010-07-22 08:14

Re: Is there anyone who can tell me - How to get internet on n900 with USB_Networking!
 
All the info you need should be on the wiki page (http://wiki.maemo.org/N900_USB_networking). I used that no probs but I have a Linux desktop. What OS do you run on your desktop?

If you're having problems with the device-side setup, here's my condensed instructions (I made these because I've had to rebuild my N900 a few times already) which are based on the wiki page.

Connect to a network (Wifi/3G) to install required software: rootsh, openssh.
Connect via USB and select PC Suite mode.
Run X-Terminal: sudo gainroot then ifup usb0.
Confirm that you can login via SSH.

On the device:
edit /etc/network/interfaces:
Code:

        up route del default
        up route add default gw 192.168.2.14
        up run-standalone.sh dbus-send --type=method_call --system --dest=com.nokia.icd /com/nokia/icd com.nokia.icd.connect string:DUMMY uint32:0
        down run-standalone.sh dbus-send --system --dest=com.nokia.icd /com/nokia/icd_ui com.nokia.icd_ui.disconnect boolean:true

Run those route commands now.
Verify that you can ping a server on the internet (traffic is going out via USB cable).
Create /etc/apt/sources.list:
Code:

deb http://repository.maemo.org/extras-testing/ fremantle free non-free
deb http://repository.maemo.org/extras-devel/ fremantle free non-free

Install some required bits and set them up:
Code:

apt-get update
apt-get install libicd-network-null
gconftool-2 -s -t string /system/osso/connectivity/IAP/DUMMY/type DUMMY
gconftool-2 -s -t string /system/osso/connectivity/IAP/DUMMY/name "Dummy Network"
gconftool-2 -s -t boolean /system/osso/connectivity/IAP/DUMMY/autoconnect false

Edit /usr/sbin/pcsuite-*:
Before the exit 0 line at the end add ifup usb0 or ifdown usb0 depending on the script.
Edit /etc/resolv.conf
Code:

# Google DNS
nameserver 8.8.8.8
nameserver 8.8.4.4

MAC address fixing:
Code:

echo options g_nokia host_addr=00:11:22:33:44:55 > /etc/modprobe.d/g_nokia
Turn off extras-devel in /etc/apt/sources.list.
Run apt-get update

If you get to something that doesn't work, please reply letting me know which step failed. If it's that you can't ping after running the route commands your desktop machine isn't setup right.

The_Solutor 2010-07-22 08:22

Re: Is there anyone who can tell me - How to get internet on n900 with USB_Networking!
 
n0ak

You have to:

#1 unload any g_nokia and g_storage_file modules eventually present

#2 load the module g_ether (and install the related driver in windows)

#3 bring up and configure the usb0 network adapter

If you want to share the 3g connection you ave also
to

#4 enable the ip forwarding

#5 set the iptables roule[s]

#6 configure statically the ip/gw/dns on the pc side or (better) configure dnsmasq on the n900 to act as DHCP/DNS server.


P.S. You need the power kernel to use iptables,

If you don't need the Internet sharing, you can use the stock kernel but you need the mad deveper package which provide the g_ether module

n0ak 2010-07-22 08:51

Re: Is there anyone who can tell me - How to get internet on n900 with USB_Networking!
 
Quote:

Originally Posted by a1291762 (Post 760389)
All the info you need should be on the wiki page (http://wiki.maemo.org/N900_USB_networking). I used that no probs but I have a Linux desktop. What OS do you run on your desktop?

Windows Vista ! :)
thank u very much I will try! :)

har4oo2 2010-07-22 09:09

Re: Is there anyone who can tell me - How to get internet on n900 with USB_Networking!
 
Quote:

Originally Posted by The_Solutor (Post 760398)
n0ak

You have to:

#1 unload any g_nokia and g_storage_file modules eventually present

#2 load the module g_ether (and install the related driver in windows)

#3 bring up and configure the usb0 network adapter

If you want to share the 3g connection you ave also
to

#4 enable the ip forwarding

#5 set the iptables roule[s]

#6 configure statically the ip/gw/dns on the pc side or (better) configure dnsmasq on the n900 to act as DHCP/DNS server.


P.S. You need the power kernel to use iptables,

If you don't need the Internet sharing, you can use the stock kernel but you need the mad deveper package which provide the g_ether module

Can u wrie more desriptive please ! :)
Please !
I will be very thankful! :)

n0ak 2010-07-22 09:13

Re: Is there anyone who can tell me - How to get internet on n900 with USB_Networking!
 
Quote:

Originally Posted by har4oo2 (Post 760469)
Can u wrie more desriptive please ! :)
Please !
I will be very thankful! :)

Yeah ! :) that would be very perfect ! :)


All times are GMT. The time now is 21:27.

vBulletin® Version 3.8.8