http://openmoko.org/api.php?action=feedcontributions&user=Tiantian&feedformat=atomOpenmoko - User contributions [en]2024-03-29T09:57:00ZUser contributionsMediaWiki 1.19.24http://openmoko.org/wiki/USB_NetworkingUSB Networking2007-08-10T21:02:47Z<p>Tiantian: link to Hotplugging usbnet corrected.</p>
<hr />
<div>= Neo1973 side =<br />
<br />
By default Neo1973 has usb0 interface working due to Ethernet gadget (g_ether) compiled into kernel.<br />
<br />
= Desktop side =<br />
<br />
== Manual method ==<br />
<br />
Modprobe usbnet module and configure usb0 interface (as root):<br />
<pre><br />
ifconfig usb0 192.168.0.200 netmask 255.255.255.0<br />
</pre><br />
If your eth0 interface is also in the same 'range' (e.g. 192.168.0.105) then you can do the following:<br />
<br />
1. ping the Neo with<br />
# ping -I usb0 192.168.0.202<br />
2. add a route to your Neo:<br />
# /sbin/route add -host 192.168.0.202/32 dev usb0<br />
3 log in to the Neo<br />
# ssh root@192.168.0.202<br />
<br />
== Automatic method ==<br />
<br />
Took from [http://blog.haerwu.biz/2007/03/22/hotpluging-usbnet/ Hotplugging usbnet] post by Marcin 'Hrw' Juszkiewicz.<br />
<br />
'''For Debian or similar distros:'''<br />
Edit /etc/network/interfaces file ():<br />
<pre><br />
allow-hotplug usb0<br />
iface usb0 inet static<br />
address 192.168.0.200<br />
netmask 255.255.255.0<br />
network 192.168.0.0<br />
post-up iptables -A POSTROUTING -t nat -j MASQUERADE -s 192.168.0.0/24<br />
post-up echo 1 > /proc/sys/net/ipv4/ip_forward<br />
post-up iptables -P FORWARD ACCEPT<br />
</pre><br />
<br />
<br />
'''For Red Hat or similar distros'''<br />
Edit /etc/sysconfig/network-scripts/net.hotplug:<br />
<br />
After this statement:<br />
<pre><br />
case $INTERFACE in<br />
# interfaces that are registered after being "up" (?)<br />
</pre><br />
<br />
Add the following:<br />
<pre><br />
usb0)<br />
ifconfig usb0 192.168.0.200 netmask 255.255.255.0<br />
route add 192.168.0.202 usb0<br />
iptables -I INPUT 1 -s 192.168.0.202 -j ACCEPT<br />
iptables -I OUTPUT 1 -s 192.168.0.200 -j ACCEPT<br />
exit 0<br />
;;<br />
</pre><br />
<br />
'''For Gentoo or similar distros:''' <br />
<br />
* Edit /etc/conf.d/net by adding:<br />
<pre><br />
# Neo1973<br />
config_usb0=( "192.168.0.200 netmask 255.255.255.0" )<br />
</pre><br />
* Create a new init script:<br />
<pre><br />
# cd /etc/init.d<br />
# ln -s net.lo net.usb0<br />
</pre><br />
<br />
And now when you connect phone (which has 192.168.0.202 IP) it gets connection to world automatically.<br />
<br />
= Connecting to phone =<br />
<br />
Then <tt>ssh root@192.168.0.202</tt> with empty password to get into phone.<br />
<br />
===SSH Extras===<br />
<br />
If you get fed up with typing root@192.168.0.202, on your PC edit /etc/hosts and add an entry for 'phone'<br />
<br />
192.168.0.202 phone<br />
<br />
then edit ~/.ssh/config (or create it) and add<br />
<br />
host phone<br />
user root<br />
<br />
then all you need to do is type <br />
<br />
# ssh phone<br />
<br />
You might want to use keys to bypass the login prompt too.<br />
<br />
===SSH Keys===<br />
<br />
To generate ssh keys for use as a login mechanism type<br />
<br />
ssh-keygen -t rsa<br />
<br />
when prompted for a password either hit enter for no password (''not really a good idea'') or enter a password for this key. ssh into the phone and create ~/.ssh<br />
<br />
# mkdir ~/.ssh<br />
<br />
then from your PC copy the '''.pub''' file to the phone.<br />
<br />
# scp ~/.ssh/id_rsa.pub phone:.ssh/authorized_keys<br />
<br />
You should now be able to ssh directly into the phone.<br />
<br />
To disable password logins ('''after setting up key access''') edit /etc/init.d/dropbear and change the following line:<br />
<br />
DROPBEAR_EXTRA_ARGS=<br />
<br />
to <br />
<br />
DROPBEAR_EXTRA_ARGS="-s"<br />
<br />
You will need to restart dropbear for this to take effect.<br />
<br />
===GUI on desktop through SSH===<br />
<br />
If you need to get the GUI on the phone onto the desktop via usb, you can use ssh as follows<br />
<br />
ssh -l root -X -v 192.168.0.202<br />
<br />
Login, and run openmoko-finger-demo for example, and it will open up on the desktop. To get landscape view, just resize the GUI window on the desktop.<br />
<br />
<span id="bottom"></span> <br />
{{Languages|USB Networking}}<br />
<br />
[[Category:Hardware]]<br />
[[Category:Implemented]]</div>Tiantianhttp://openmoko.org/wiki/Neo1973_compatible_cellphone_providersNeo1973 compatible cellphone providers2007-08-10T01:54:54Z<p>Tiantian: </p>
<hr />
<div>{|align=right<br />
|__TOC__<br />
|}<br />
The Neo1973 uses quad-band [[GSM]] (850/900/1800/1900 MHz) so any GSM provider in the world should be compatible. In general, when you are looking for a mobile solution in your region, you would need to be aware of:<br />
* the ''network coverage'' of available providers<br />
* different ''tariffs'' of these providers<br />
and choose the one that is right for you. If you haven't had any experience with GSM coverage in your area, you may want to inquire locally from the available providers and people you know that may already have experienced GSM at your location. You may also want to subscribe to our mailing list. If you have doubts about the coverage for your area, you may want to borrow a GSM phone or buy an inexpensive one so that you can get a feel for how the Neo1973 will work in your area. You can help keep your cost down by using a prepaid card for your testing.<br />
<br />
Here is some information on Prepaid GSM cards:<br />
* [http://www.prepaidgsm.net/ PrePaidGSM - worldwide overview about GSM prepaid offers]<br />
Think twice before choosing a tariff with long duration contracts (more than 12 months), because prices for the GPRS data tariffs are ''likely'' to lower in many countries. Also, long duration contracts are mostly combined with hardware (ie: free or steeply discounted phone with a 24 or 36 month contract). It will be worth your while to shop around for competing offers from the different providers in your area.<br />
<br />
We chose the GSM network format for the Neo1973 because GSM is in use by more countries than any other mobile phone standard. As a result, you will have better coverage with the Neo1973, and we felt that it was the best choice for our OpenMoko devices. When the Neo1973 is successful, and we believe that it will be, we will be developing new devices that we will be bringing to market. They will be running OpenMoko and supporting additional mobile phone network standards as well. So if GSM is not available in your area (ie: some areas in the USA), OpenMoko will be bringing other options to market in the future.<br />
<br />
Below is a list of Neo1973-compatible providers around the world. Please help by filling this out ''alphabetically'':<br />
<br />
There is also a [[Carriers]] page that should be merged with this section. <br />
<br />
==Argentina==<br />
* [http://www.movistar.com.ar/ Movistar]<br />
* [http://www.personal.com.ar/ Personal]<br />
* [http://www.cti.com.ar/ CTI]<br />
<br />
== Belgium ==<br />
* [http://www.proximus.be/ Proximus]<br />
* [http://www.base.be/ Base]<br />
* [http://www.mobistar.be/LanguageIndex.html Mobistar]<br />
<br />
== Canada ==<br />
* [http://www.fido.ca/ Fido]<br />
* [http://www.icewireless.ca/ IceWireless]<br />
* [http://www.rogers.ca/ Rogers]<br />
<br />
== China ==<br />
* China Mobile<br />
* China Unicom (CHINA UNICOM GSM)<br />
<br />
== Czech Republic ==<br />
<br />
* [http://www.vodafone.cz/ Vodafone]<br />
* [http://www.cz.o2.com/ o2]<br />
* [http://www.t-mobile.cz/ T-mobile]<br />
<br />
== Denmark ==<br />
* Sonofon ([http://www.sonofon.dk/english/index.shtml English] - [http://www.sonofon.dk/ Danish])<br />
* TDC A/S ([http://tdc.com English] - [http://privat.tdc.dk/mobil/ Danish])<br />
* Telia DK ([http://telia.dk/privat/produkter/mobil/ Danish])<br />
<br />
== Estonia ==<br />
<br />
* [http://www.emt.ee/ EMT]<br />
* [http://www.tele2.ee/ Tele2] - Very low rates for GPRS. You can get 3GB of bandwidth for 675EEK(~43€) per month.<br />
* [http://www.elisa.ee/ Elisa] - With M-internet plan you get free access to Elisa wifi hotspots <br />
<br />
== Finland ==<br />
<br />
* [http://www.cubio.fi Cubio]<br />
* [http://www.dnafinland.fi Dna] - Also a roaming network operator (Network operated under the name Dna Networks Ltd)<br />
* [http://www.elisa.fi Elisa] - Also a roaming network operator.<br />
* [http://www.go.fi Go mobile]<br />
* [http://www.hesburger.fi/heseliittyma/ Hesburger] - Do you want sim card(s) with that?<br />
* [http://www.kolumbus.fi Kolumbus] - Strangely they don't offer their website in English, but they're a part of the Elisa.<br />
* [http://www.teliasonera.com Teliasonera] - Also a roaming network operator.<br />
* [http://www.tele.fi Telefinland] - They haven't got an English site, but they're part of the Teliasonera.<br />
* [http://www.gsm.aland.fi/ Ålands Mobiltelefon] - Only in the Åland Islands in the southwestern Finland. Also a roaming network operator.<br />
<br />
== France ==<br />
<br />
All:<br />
* [http://www.sfr.fr SFR]<br />
* [http://www.bouyguestelecom.fr/ Bouygues]<br />
* [http://www.orange.fr Orange]<br />
<br />
== Germany ==<br />
All: <br />
* [http://www.vodafone.de/ Vodafone]<br />
* [http://www.o2online.de/ o2]<br />
* [http://www.eplus.de/ E-Plus]<br />
* [http://www.t-mobile.de/ T-mobile]<br />
== India ==<br />
All GSM:<br />
* [http://www.airtel.in/ Airtel]<br />
* Vodafone<br />
* [http://www.ideacellular.com/ Idea]<br />
* Reliance GSM<br />
* BPL Mobile<br />
* Spice<br />
* [http://www.bsnl.co.in/ BSNL]<br />
* [http://www.hutch.in/ Hutch]<br />
<br />
== Japan ==<br />
<br />
According to the [http://www.gsmworld.com/roaming/gsminfo/cou_jp.shtml GSM-Association] there is no GSM in Japan, except for UMTS.<br />
<br />
== Latvia ==<br />
* [http://www.lmt.lv/ LMT]<br />
* [http://www.bite.lv/ Bitė]<br />
* [http://www.tele2.lv/ Tele2]<br />
<br />
== Lithuania ==<br />
* [http://www.omnitel.lt/ Omnitel]<br />
* [http://www.bite.lt/ Bitė]<br />
* [http://www.tele2.lt/ Tele2]<br />
<br />
== Netherlands ==<br />
All.<br />
* [http://www.vodafone.nl/ Vodafone]<br />
* [http://www.telfort.nl/ Telfort]<br />
* [http://www.orange.nl/ Orange]<br />
* [http://www.t-mobile.nl/ T-mobile]<br />
* [http://www.kpn.com/mobiel KPN]<br />
* [http://www.hi.nl/ Hi]<br />
(There are more)<br />
<br />
For a breakdown of SIM-only plans, go to [http://www.bellen.com/mobiel_overzicht/default.asp?taal=nl&land=nl&prgr=4 Bellen.com]<br />
<br />
== New Zealand ==<br />
* [http://www.vodafone.co.nz/ Vodafone]<br />
<br />
== Norway ==<br />
* [http://www.netcom.no/ NetCom] (GSM900/1800 & UMTS)<br />
* [http://www.networknorway.no/ Network Norway] (GSM900)<br />
* [http://www.telenormobil.no/ Telenor] (GSM900/1800 & UMTS)<br />
<br />
== Poland ==<br />
<br />
* [http://www.eragsm.pl/ Era]<br />
* [http://www.plusgsm.pl/ Plus]<br />
* [http://www.orange.pl/ Orange] - europe wide provider<br />
* [http://www.playmobile.pl/ Play]<br />
<br />
== Romania ==<br />
<br />
* [http://www.vodafone.ro Vodafone] (226-01; GSM900)<br />
* [http://www.orange.ro Orange] (226-10; GSM900)<br />
* [http://www.cosmote.com Cosmote] (226-06; GSM1800)<br />
<br />
* [http://www.zapp.ro/ Zapp] is running CDMA (Qualcomm style) and as such it is incompatible with [[Neo1973]].<br />
<br />
== Russia ==<br />
=== global ===<br />
* [http://www.beeline.ru/ Билайн]/BeeLine (GSM900/1800)<br />
* [http://megafon.ru/ МегаФон]/MegaFon (GSM900/1800)<br />
* [http://www.mts.ru МТС]/MTS (GSM900/1800)<br />
=== regional ===<br />
* [http://www.smarts.ru/ СМАРТС]/SMARTS (GSM900/1800)<br />
* [http://www.tele2.ru TELE2] (GSM900/1800)<br />
* [http://www.u-tel.ru/ Ютел]/Utel (GSM900/1800)<br />
* [http://www2.sibirtelecom.ru/857 Сибирьтелеком]/Sibirtelecom (GSM-900/1800)<br />
* [http://www.ncc.nnov.ru/ НСС]/NSS (GSM900/1800)<br />
* [http://www.bwc.ru/ Байкалвестком]/Baykalvestcom (GSM900/1800)<br />
<br />
== Slovak Republic ==<br />
All:<br />
* [http://www.orange.sk/ Orange]<br />
* [http://www.sk.o2.com/ o2]<br />
* [http://www.t-mobile.sk/ T-mobile]<br />
<br />
== South Africa ==<br />
<br />
* [http://www.vodacom.co.za/ Vodacom]<br />
* [http://www.mtn.co.za/ MTN]<br />
* [http://www.cellc.co.za/ Cell C]<br />
<br />
== Sweden ==<br />
<br />
Operators with their own physical networks:<br />
* [http://comviq.se/ Comviq/Tele2]<br />
* [http://www.telia.se/ Telia]<br />
* [http://www.tre.se/ 3]<br />
* [http://www.telenor.se Telenor]<br />
<br />
Virtual Operators:<br />
* [http://www.tangomini.se TangoMini]<br />
* [http://www.halebop.se Halebop]<br />
* [http://www.djuice.se Djuice]<br />
<br />
== Switzerland ==<br />
(all)<br />
* [http://www.swisscom-mobile.ch/ Swisscom Mobile]<br />
* [http://www.sunrise.ch/ Sunrise]<br />
* [http://www.orange.ch/ Orange]<br />
<br />
== Taiwan ==<br />
<br />
* Chunghwa Telecom<br />
* Far EasTone Telecommunications Co Ltd<br />
* KG Telecom<br />
* MobiTai<br />
* Taiwan Mobile Co.Ltd<br />
<br />
== Ukraine ==<br />
* [http://www.umc.ua/ UMC] (including virtual [http://www.jeans.com.ua/ Jeans], [http://www.ekotel.com.ua/ Ecotel])<br />
* [http://www.kyivstar.net/ Kyivstar] (including virtual [http://www.djuice.com.ua/ DJUICE], [http://mobilych.com.ua/ Mobilych])<br />
* [http://www.life.com.ua/ life:)]<br />
* [http://www.beeline.ua/ Beeline]<br />
* [http://gsm.goldentele.com/ Golden Telecom]<br />
* [http://www.privatmobile.com.ua/ PrivatMobile]<br />
<br />
== United Kingdom ==<br />
* [http://www.vodafone.co.uk/ Vodafone]<br />
* [http://www.o2.co.uk/ O2]<br />
* [http://www.orange.co.uk/ Orange]<br />
* [http://www.t-mobile.co.uk/ T-mobile]<br />
* [http://www.three.co.uk/ 3]<br />
<br />
== United States ==<br />
<br />
* [[Carriers/ATT|AT&T]] - (Was Cingular) <br />
* [[Carriers/TMobile|T-Mobile]]<br />
* Other (more local) GSM-network providers can be found at [http://www.gsmworld.com/roaming/gsminfo/cou_us.shtml GSMworld.com]<br />
* [http://www.unicel.com/ UNICEL] - Has just been purchased by Verizon Wireless (Aug/1/07), they are planning on take down their GSM Network except to support roaming GSM customers. GSM customers will be transition to CDMA. :( <br />
* Wikipedia has a list of providers and technologies [http://en.wikipedia.org/wiki/List_of_United_States_mobile_phone_companies here]. Only GSM networks are compatible with the Neo1973.<br />
* [http://www.prepaidgsm.net/en/usa.html PrepaidGSM.net information about GSM prepaid cards in the USA]<br />
<br />
== Uruguay ==<br />
<br />
* [http://www.ancel.com.uy/ Ancel] -<br />
<br />
<br />
== Venezuela ==<br />
<br />
* [http://www.digitel.com.ve/ Digitel] - This works on the 900Mhz band.<br />
* [http://www.movistar.com.ve/ Movistar] - Previously named Telcel. It is moving from CDMA to GSM, but currently all its new phones are GSM. They work on the 850 Mhz band.<br />
<br />
== Rest of World (Africa, Asia, Australia, Europe, South America) ==<br />
<br />
* almost all use GSM thus they are compatible<br />
<br />
(More info available at: [http://www.gsmworld.com/roaming/gsminfo/index.shtml GSMworld.com])<br />
{{Languages|Neo1973_compatible_cellphone_providers}}<br />
<br />
[[Category:Information]]</div>Tiantian