maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   MeeGo / Harmattan (https://talk.maemo.org/forumdisplay.php?f=45)
-   -   [N9] How to connect to internet over usbnet? (https://talk.maemo.org/showthread.php?t=79929)

sunc 2011-11-12 17:50

[N9] How to connect to internet over usbnet?
 
The Harmattan dev docs have a section on setting up internet connection over USB. Despite an error in the docs I kind-of got it working. "Kind-of" because although it works from terminal, web browser and the like still think I'm offline.

I found N900 usbnet wiki page which says that I have to install libicd-network-dummy. Is there anything similar for N9? It would be cool to have an app/plugin which would show USB in network connections, and perform the necessary setup when connected. Also I miss an option to use DHCP for usb0 (I mean with N9 as the client instead of server).

PS. The error in dev docs - instead of
Code:

devel-sh -c 'route add defalt gw 192.168.2.14'
one should use
Code:

develsh -c '/sbin/route add default gw 192.168.2.14'
It seems that /sbin is not in the $PATH (at least not for me, neither for user nor root) and develsh is necessary to do some Aegis massage.

harbind 2011-11-28 14:00

Re: [N9] How to connect to internet over usbnet?
 
Quote:

Originally Posted by sunc (Post 1122472)
Also I miss an option to use DHCP for usb0 (I mean with N9 as the client instead of server).

You can do this by
Code:

develsh
/sbin/udhcpc -i usb0


aik 2012-05-03 01:37

Re: [N9] How to connect to internet over usbnet?
 
Configured internet via usb, it works, ok.
Now I am wondering how to cheat N9 not to check for internet connection. I mean 3rd party software (Firefox, meecast) or system software (apt-get, ping, etc) work perfect but Nokia's browser, skype, ovistore do not.

Found this:
http://maemo.gitorious.org/icd2-netw.../master/README
Installed the module, can see it in the network list BUT when I try to connect manually, it says that it failed.

So does anyone have any ideas how to make N9 think that it is online when internet-via-usb is activated?

YavkatA 2012-05-03 22:07

Re: [N9] How to connect to internet over usbnet?
 
About the module on gitorious: Are you sure Aegis isn't blocking it?

aik 2012-05-04 00:31

Re: [N9] How to connect to internet over usbnet?
 
Quote:

Originally Posted by YavkatA (Post 1201580)
About the module on gitorious: Are you sure Aegis isn't blocking it?

Hm. It blocked installation so I used dpkg.real to install it and checked that the lib appears in /usb/lib/icd (or whatever it is). Can it block the module in icd2 service?

rainisto 2012-05-07 13:27

Re: [N9] How to connect to internet over usbnet?
 
if you use libicd-network-dummy you can make a working fake IAP for your usbnet. That lib-network-usb fails by some reason.

I just tested and created dummy iap and seems to work nicely.

aik 2012-05-07 13:35

Re: [N9] How to connect to internet over usbnet?
 
Quote:

Originally Posted by rainisto (Post 1203001)
if you use libicd-network-dummy you can make a working fake IAP for your usbnet. That lib-network-usb fails by some reason.
I just tested and created dummy iap and seems to work nicely.

My colleague found another solution - simply make an empty adhoc network, once enabled, it does what dummy/usb are supposed to do - shuts the icd up :-)

loky 2012-06-01 07:02

Re: [N9] How to connect to internet over usbnet?
 
Quote:

Originally Posted by aik (Post 1203003)
My colleague found another solution - simply make an empty adhoc network, once enabled, it does what dummy/usb are supposed to do - shuts the icd up :-)

is there any step by step tutorial? is the gitorius still needed to installed?

thanks.


(sorry for my bad english)

kollin 2012-09-02 16:46

Re: [N9] How to connect to internet over usbnet?
 
Quote:

Originally Posted by loky (Post 1215826)
is there any step by step tutorial? is the gitorius still needed to installed?

thanks.


(sorry for my bad english)

You don't need nothing from gitorius.
Follow up this guide: http://harmattan-dev.nokia.com/docs/...onnection.html

But instead:

Code:

devel-sh -c 'route add defalt gw 192.168.2.14'
type:

Code:

develsh -c '/sbin/route add default gw 192.168.2.14'
How to make an empty adhoc network on n9:

Tap "Settings"
Tap "Internet connection"
Tap "Crate new connection"
name that connection "USB"
Tap "Network mode" and select "Ad hoc"
Tap "Save"
You are done!


All times are GMT. The time now is 01:40.

vBulletin® Version 3.8.8