Mobile internet on OpenSolaris
By user12625760 on Feb 13, 2009
I have a new mobile phone which is less steam driven than the one it replaces and, hopefully, will not power itself off and reset to factory defaults every few days. Being modern it can act as a USB modem device and therefore allows me to have my OpenSolaris Laptop work with it.
Following the instructions from James Leggs blog and some from an Email I had been sent (James' instructions were the same as the email) it all worked just fine except: The phone is a Nokia E71 and by default the USB setting was menu->connectivity->usb was set with "USB mode" to mass storage and "Ask on connection" to Yes. It seems that that was enough for OpenSolaris to see it as a disk drive and then not plumb up the serial devices. Changing the "USB mode" to "PC Suite" resolved this.
The only addition I have made was to add these scripts into /etc/ppp to disable nwam and fix resolv.conf when the link comes up and reverse that when it is taken down.
cjg@brompton:~$ cat /etc/ppp/ip-up #!/bin/ksh -p /usr/sbin/svcadm disable -t svc:/network/physical:nwam mv /etc/resolv.conf /etc/resolv.conf.preppp cp /etc/ppp/resolv.conf /etc/resolv.conf chmod 644 /etc/resolv.conf cjg@brompton:~$
cjg@brompton:~$ cat /etc/ppp/ip-down #!/bin/ksh -p test -f /etc/resolv.conf.preppp && mv /etc/resolv.conf.preppp /etc/resolv.conf /usr/sbin/svcadm enable nwam cjg@brompton:~$
Not rocket science and when nwam knows about ppp they will surely go but until then quite satisfactory.
Finally create a launcher that will start this at the click of a button. I have cheated here and simply have it starting in a terminal so I can stoop it by quitting the terminal:
cjg@brompton:~/Desktop$ cat 3G\\ network.desktop [Desktop Entry] Encoding=UTF-8 Version=1.0 Type=Application Terminal=true Icon[en_GB]=/usr/share/icons/gnome/24x24/actions/call-start.png Name[en_GB]=3G network Exec=\\spfexec pppd call vodafone\\n Name=3G network Icon=/usr/share/icons/gnome/24x24/actions/call-start.png cjg@brompton:~/Desktop$