====== Gateway Windows Mobile 5 pour KUbuntu ======
{{tag>kubuntu activesync}}
par julien, mar. 09
Ce bloc note reprend ma configuration pour utiliser mon LG KS20 en tant que gateway internet 3G pour mon portable sous Kubuntu.
===== WM5 =====
Dans paramètres > connexions > USB vers PC, cochez "ActiveSync USB" et "Activer fonctionnalité de réseau avancé".
===== Kubuntu =====
Mon système possède un noyau 2.6.27 qui inclus le driver usb rndis. Il faut vérifier que les modules correspondants sont bien chargés par le système :
$ lsmod|grep rndis
rndis_wlan 29704 0
rndis_host 15360 1 rndis_wlan
cdc_ether 13312 1 rndis_host
usbnet 24072 3 rndis_wlan,rndis_host,cdc_ether
usbcore 149360 9 rndis_wlan,rndis_host,cdc_ether,usbnet,ndiswrapper,uvcvideo,ohci_hcd,ehci_hcd
Il faut ensuite installer synce-hal, mais pas odccm qui entre en conflit avec l´attribution d´adresse en DHCP.
**(note: verifier que synce-hal est necessaire)**
Brancher le device en USB.
Activer le partage de connexion Internet sur le mobile: Programmes > Partage Internet
Lancer un DHCP sur Kubuntu :
# dhclient eth2
There is already a pid file /var/run/dhclient.pid with pid 8758
killed old client process, removed PID file
Internet Systems Consortium DHCP Client V3.1.1
Copyright 2004-2008 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/sw/dhcp/
Listening on LPF/eth2/80:00:60:0f:e8:00
Sending on LPF/eth2/80:00:60:0f:e8:00
Sending on Socket/fallback
DHCPREQUEST of 192.168.0.103 on eth2 to 255.255.255.255 port 67
DHCPACK of 192.168.0.103 from 192.168.0.1
bound to 192.168.0.103 -- renewal in 115113 seconds.
On verifie l´interface :
eth2 Link encap:Ethernet HWaddr 80:00:60:0f:e8:00
inet addr:192.168.0.103 Bcast:192.168.0.255 Mask:255.255.255.0
inet6 addr: fe80::8200:60ff:fe0f:e800/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:11966 errors:11311 dropped:0 overruns:0 frame:0
TX packets:13291 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:9908255 (9.9 MB) TX bytes:2059021 (2.0 MB)
et la route :
$ route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth2
0.0.0.0 192.168.0.1 0.0.0.0 UG 0 0 0 eth2
===== Naviguer =====
Certains provider bloquent la navigation sur le User-Agent. Pour cela, il faut remplacer celui-ci par un user-agent autorise (´iphone´ par exemple).
~~DISCUSSION~~