User`s guide
4. Using USB Modem with Linux
4.1. Requirements
Modern Linux distribution with the USB CDC ACM class support in the kernel (either built-in or as
module cdc-acm.ko) is required.
4.2. Installation
Unzip the USB Modem archive anywhere on your Linux computer. Install USBModem.prc in the Treo
RAM (not a card) using a HotSync or by other means.
4.3. Setting up a PPP Connection
1. Obtain the user name, password and dial number from your wireless provider. For GSM
networks the access point name (APN) is also required.
2. Copy either ppp-script-edge-template (for GSM GPRS/EDGE networks) or ppp-script-evdo-
template (for CDMA 1xRTT or EvDO networks) file from the USB Modem distribution to
/etc/ppp/peers/ppp-script-treo (you may need to create the path manually), replacing the
USERNAME and APN (for GSM only) words with the correct values.
3. Add the user name and password line from the pap-secrets-template to the /etc/ppp/pap-
secrets file, replacing the USERNAME and PASSWORD words with the correct values.
4. Test the connection.
See the drivers/linux/mts folder for the complete pppd example scripts tuned up for the MTS GSM
operator.
4.4. Connecting via USB
First of all, configure the Linux PPP connection as described in the Setting up a PPP Connection
section above.
To connect your Treo using a USB cable to the Linux computer, start the USB Modem application on
the Treo, set the Connectivity method to USB and enable the modem mode. Now type in the
command prompt:
bash-2.05# pppd /dev/ttyACM0 call ppp-script-treo
It will print how the connection setup is performed. If it was successful a new network interface will be
created (usually ppp0). The only thing left is to copy the content of /etc/ppp/resolv.conf to system-wide
/etc/resolv.conf for proper name resolution:
bash-2.05# cat /etc/ppp/resolv.conf > /etc/resolv.conf
Note: for some newer Linux distributions (such as Fedora Core 3) do the following instead of the above
step:
bash-2.05# ln -s /var/run/ppp/resolv.conf /etc/resolv.conf
Page 10 of 12