You (bug me not) wrote:
> Hi there,
> I recently decided to switch to any unix-based OS from windows. I chose
> opensolaris, I got its C.D. from my friend (and because I've got too slow
> internet, I can't really d/l ubuntu, fedora or any other linux distro).
> Installation of OpenSolaris went fine, but now I'm stuck while trying to get
> my internet connection working on it. I use my mobile's GPRS (mobile office
> of airtel, a telecom service in India) on my PC using data cable (I've got no
> other alternative 'cause I live in bit remote area and no good broadband
> services available :/). My cell is Motorolla L6. So basically, my question is
> how to get my internet working on my solaris, or rather, how to use my cell
> as modem. Had it been dsl or other type of connection, I might have been able
> to get it done but I've got no idea where to set my mobile as my modem :S Any
> help?? Btw, I don't have bluetooth on my PC either. I can only use data-cable
> :( Also, I'm a newbie @ UNIX tbh.
>
> P.S. Just in case you're wondering, I'm currently on Windows.
A mobile can be used as a modem, and the tool, that does manage modems inside
Unix is PPPD.
So, what you need is a correct config file for ppp for your cell-phone. That
will add itself to the USB devices list, once you plug it in, and as long as
it is an EVDO capable device, which the Motorola L6 is!
So, all infos will be needed to be put into files under
/etc/ppp
Start with a file, that you give the name of your ISP, in my case, I named it
t-ic, for t-interconnect:
========================================================================
ABORT BUSY
ABORT 'NO CARRIER'
REPORT CONNECT
TIMEOUT 10
"" "AT&F1"
OK "AT&C1&D2"
SAY "Calling t-ic\n"
TIMEOUT 60
OK "ATDT01234567890"
CONNECT \c
========================================================================
For debugging purpuses, I then added the following to a script "ip-up" (make
sure to perform a "chmod 755 ip-up" after you created that file!):
And also did some DNS stuff in there also...
========================================================================
#!/bin/sh
echo "From ip-up:" >> /etc/ppp/connect-errors
echo "===========" >> /etc/ppp/connect-errors
echo "interface-name: $1" >> /etc/ppp/connect-errors
echo "tty-device: $2" >> /etc/ppp/connect-errors
echo "speed: $3" >> /etc/ppp/connect-errors
echo "local-IP-address: $4" >> /etc/ppp/connect-errors
echo "remote-IP-address: $5" >> /etc/ppp/connect-errors
echo "ipparam: $6" >> /etc/ppp/connect-errors
echo "DEVICE: $DEVICE" >> /etc/ppp/connect-errors
echo "IFNAME: $IFNAME" >> /etc/ppp/connect-errors
echo "IPLOCAL: $IPLOCAL" >> /etc/ppp/connect-errors
echo "IPREMOTE: $IPREMOTE" >> /etc/ppp/connect-errors
echo "PEERNAME: $PEERNAME" >> /etc/ppp/connect-errors
echo "SPEED: $SPEED" >> /etc/ppp/connect-errors
echo "ORIG_UID: $ORIG_UID" >> /etc/ppp/connect-errors
echo "PPPLOGNAME: $PPPLOGNAME" >> /etc/ppp/connect-errors
echo "DNS1: $DNS1" >> /etc/ppp/connect-errors
echo "DNS2: $DNS2" >> /etc/ppp/connect-errors
mv /etc/resolv.conf /etc/resolv.conf-preppp
cp /etc/ppp/resolv.conf /etc/resolv.conf
chmod 644 /etc/resolv.conf
mv /etc/nsswitch.conf /etc/nsswitch.conf-preppp
cp /etc/nsswitch.dns /etc/nsswitch.conf
chmod 644 /etc/nsswitch.conf
========================================================================
That has to be reverted, once the connection goes down, so I added something
to "ip-down" (make sure to perform a "chmod 755 ip-up" after you created that
file!):
========================================================================
#!/bin/sh
echo "From ip-down:" >> /etc/ppp/connect-errors
echo "=============" >> /etc/ppp/connect-errors
echo "interface-name: $1" >> /etc/ppp/connect-errors
echo "tty-device: $2" >> /etc/ppp/connect-errors
echo "speed: $3" >> /etc/ppp/connect-errors
echo "local-IP-address: $4" >> /etc/ppp/connect-errors
echo "remote-IP-address: $5" >> /etc/ppp/connect-errors
echo "ipparam: $6" >> /etc/ppp/connect-errors
echo "DEVICE: $DEVICE" >> /etc/ppp/connect-errors
echo "IFNAME: $IFNAME" >> /etc/ppp/connect-errors
echo "IPLOCAL: $IPLOCAL" >> /etc/ppp/connect-errors
echo "IPREMOTE: $IPREMOTE" >> /etc/ppp/connect-errors
echo "PEERNAME: $PEERNAME" >> /etc/ppp/connect-errors
echo "SPEED: $SPEED" >> /etc/ppp/connect-errors
echo "ORIG_UID: $ORIG_UID" >> /etc/ppp/connect-errors
echo "PPPLOGNAME: $PPPLOGNAME" >> /etc/ppp/connect-errors
echo "CONNECT_TIME: $CONNECT_TIME" >> /etc/ppp/connect-errors
echo "BYTES_SENT: $BYTES_SENT" >> /etc/ppp/connect-errors
echo "BYTES_RCVD: $BYTES_RCVD" >> /etc/ppp/connect-errors
echo "LINKNAME: $LINKNAME" >> /etc/ppp/connect-errors
mv /etc/resolv.conf-preppp /etc/resolv.conf
mv /etc/nsswitch.conf-preppp /etc/nsswitch.conf
========================================================================
The file /etc/ppp/resolv.conf looks like:
========================================================================
nameserver xxx.yyy.zzz.www
nameserver aaa.bbb.ccc.ddd
========================================================================
Then, under /etc/ppp/peers I also added a file named t-ic:
========================================================================
/dev/cua/pc3
115200
connect "/usr/bin/chat -f /etc/ppp/t-ic"
user "YYYYYYY"
password "XXXXXXXXXXX"
debug
defaultroute
usepeerdns
========================================================================
What you now need to figure is the name of the device (first line!), that will
be assigned, when you plug it in... Should show up in /var/adm/messages
Starting the internet would then be:
pppd call t-ic
Hope, this get's you started!
Matthias
--
Matthias Pfützner | Tel.: +49 700 PFUETZNER | Hätte Gott nicht am Sonn-
Lichtenbergstr.73 | mailto:[email protected] | tag geruht, er hätte Zeit
D-64289 Darmstadt | AIM: pfuetz, ICQ: 300967487 | gehabt, die Welt zu
Germany | http://www.pfuetzner.de/matthias/ | beenden. G. García Márquez
_______________________________________________
opensolaris-discuss mailing list
[email protected]