This night before sleeping I was read articles 'bout this use case, and now I tried this. And connection works! I want to share this knowledge, I think it can help someone to connect to 2G and 2.5G networks (don't know about 3G, have no 3G devices now, and will have no).
SYSTEM: SliTaz Cooking/Rolling with Kernel 3.2.50 made by Kultex & Arun.
ADDITIONAL DOWNLOADS: no
ACTIONS:
- Open SpaceFM-root (File manager with root access) and don't close it until finished.
- Make new file /etc/ppp/peers/gprs and fill it with this content:
/dev/ttyACM0 460800 connect 'chat -f /etc/ppp/chat/gprs' defaultroute usepeerdns
Note that /dev/ttyACM0 is my modem (mobile phone, smartphone). Connect it and check /dev folder. 460800 is modem's speed.
- Make new folder /etc/ppp/chat and new file /etc/ppp/chat/gprs and fill it with this content:
#ECHO ON ABORT 'BUSY' ABORT 'ERROR' ABORT 'NO ANSWER' ABORT 'NO CARRIER' '' AT OK ATZ OK 'ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0' OK AT+CGDCONT=1,"IP","www.umc.ua" OK ATDT*99**1*1#
Note that www.umc.ua is my APN (Access Point Name) and *99**1*1# is dialing number, it have variants: *99# or *99***1# or something else. As far as I remember, my old 3G CDMA modem has #777 number.
- Open terminal (I prefere Sakura), become root by typing
su
androot
password. - Connect to internet:
pppd call gprs
- Nothing happened visual, but maybe we connected now? Click "Network Status Monitor" in the LXPanel and select/type
ppp0
in the combo-box. Yes, we connected. - Open Midori web-browser, and go to SliTaz Forum to share this happyness! ;)
- I have internet connection, but I can't use this connection. Check /etc/resolv.conf, it have something strange! Check /etc/ppp/resolv.conf, it have actual content -- two lines with provider's DNS servers. Copy /etc/ppp/resolv.conf to /etc/resolv.conf
- Reload page in Midori, it works!
Note, if your connection need user/password then you need some tweaking here. But it is out of this short topic.
Happy connection ;)
Happy SliTaz!