HOWTO: Install PCI Lucent winmodem (ltmodem/ltserial)
This guide covers how to install the Lucent winmodem driver under Dapper. I realize that the Lucent modules are included with Dapper, so downloading and compiling the driver is not necessary, but I feel that users should know how to compile them just in case. For example, in Breezy the modules were listed, but not included so users had no other choice but to learn how to compile them. Eventually this guide will include alternative instructions to use the precompiled modules that are included with Dapper.
Any and all comments are welcome! I want to improve this guide to make it as simple as possible for newbies and also make sure everything in it is accurate.
This guide assumes you know:
- how to use a Terminal
- how to use the "sudo" command
- how to use some basic commands such as "cp", "mv", "cd", "ls"...
- how to use gedit
- what a file archive is like zip, gz, bz2 etc...
1. DOWNLOAD THE DRIVER
a. Create a temporary directory called "lucent" (we will delete this directory after we are done)
b. Download the file ltmodem-2.6-alk-8.tar.bz2 into your ~/lucent directory
(NOTE: the ~ character in ~/lucent refers to your "home" directory...for example, if you login to Ubuntu as the user "neo", then ~/lucent would refer to the directory /home/neo/lucent)
c. Extract the contents of the archive file
Code:
cd ~/lucent
tar jxf ltmodem-2.6-alk-8.tar.bz2
2. COMPILE THE DRIVER
a. Insert your Ubuntu 6.06 CD into the drive and click on the "Start package manager" button when prompted
b. After Synaptic Package Manager has fully opened, close it
c. Install the stuff you need to compile the driver
Code:
sudo apt-get install build-essential linux-headers-`uname -r` wvdial
(NOTE: The expression `uname -r` in the above is surrounded by angled single quotes, not straight single quotes. On most keyboards, you can type an angled single quote by pressing the key above the TAB key)
d. Compile the driver
Code:
cd ~/lucent/ltmodem-2.6-alk-8
make
If your login name is neo, you may see something like this:
Code:
make -C /lib/modules/`uname -r`/build SUBDIRS=/home/neo/lucent/ltmodem-2.6-alk-8 modules
make[1]: Entering directory `/usr/src/linux-headers-2.6.15-23-386'
CC [M] /home/neo/lucent/ltmodem-2.6-alk-8/lt_modem.o
CC [M] /home/neo/lucent/ltmodem-2.6-alk-8/serial.o
LD [M] /home/neo/lucent/ltmodem-2.6-alk-8/ltmodem.o
LD [M] /home/neo/lucent/ltmodem-2.6-alk-8/ltserial.o
Building modules, stage 2.
MODPOST
Warning: could not find /home/neo/lucent/ltmodem-2.6-alk-8/.ltmdmobj.o.cmd for /home/neo/lucent/ltmodem-2.6-alk-8/ltmdmobj.o
CC /home/neo/lucent/ltmodem-2.6-alk-8/ltmodem.mod.o
LD [M] /home/neo/lucent/ltmodem-2.6-alk-8/ltmodem.ko
CC /home/neo/lucent/ltmodem-2.6-alk-8/ltserial.mod.o
LD [M] /home/neo/lucent/ltmodem-2.6-alk-8/ltserial.ko
make[1]: Leaving directory `/usr/src/linux-headers-2.6.15-23-386'
Compiling the driver created a bunch of files. However, there are only two files that we need; ltmodem.ko and ltserial.ko. These two files are the “kernel object” files for your modem—they are binary code for your modem driver.
3. INSTALL THE DRIVER
a. Uninstall the previous driver
Code:
sudo rmmod ltserial ltmodem
sudo rm /lib/modules/`uname -r`/volatile/ltmodem.ko
sudo rm /lib/modules/`uname -r`/volatile/ltserial.ko
b. Tell Ubuntu where the modem is located
Code:
sudo mknod --mode=0660 /dev/ttyLTM0 c 62 64
sudo ln -s /dev/ttyLTM0 /dev/modem
c. Install the driver
Code:
sudo mkdir /lib/modules/`uname -r`/other
sudo cp ~/lucent/ltmodem-2.6-alk-8/*.ko /lib/modules/`uname -r`/other
sudo depmod -a
sudo update-modules
sudo modprobe -v ltserial
The above modprobe command should output the following:
Code:
insmod /lib/modules/2.6.15-23-386/other/ltmodem.ko
insmod /lib/modules/2.6.15-23-386/other/ltserial.ko
d. Tell Ubuntu to remember the /dev/ttyLTM0 symbolic link
Code:
sudo gedit /etc/udev/rules.d/ltmodem.rules
Enter in the following lines in the new file and save it
Code:
# ltmodem
KERNEL="ttyLTM0", SYMLINK="modem"
e. Delete the temporary directory
Code:
cd ~
rm ~/lucent -r
4. CONNECT TO THE INTERNET WITH WVDIAL
Now that the modem driver has been installed, we can connect to the Internet. There are many ways of connecting to the Internet. This section explains how to connect with a program called wvdial.
a. Configure wvdial to dial your modem
Code:
sudo wvdialconf /etc/wvdial.conf
The wvdialconf command should output something like this:
Code:
Editing `/etc/wvdial.conf'.
Scanning your serial ports for a modem.
Modem Port Scan<*1>: Scanning ttyLTM0 first, /dev/modem is a link to it.
ttyLTM0<*1>: ATQ0 V1 E1 -- OK
ttyLTM0<*1>: ATQ0 V1 E1 Z -- OK
ttyLTM0<*1>: ATQ0 V1 E1 S0=0 -- OK
ttyLTM0<*1>: ATQ0 V1 E1 S0=0 &C1 -- OK
ttyLTM0<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 -- OK
ttyLTM0<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 -- OK
ttyLTM0<*1>: Modem Identifier: ATI -- LT V.92 Data+Fax Modem Version 8.30
ttyLTM0<*1>: Speed 4800: AT -- OK
ttyLTM0<*1>: Speed 9600: AT -- OK
ttyLTM0<*1>: Speed 19200: AT -- OK
ttyLTM0<*1>: Speed 38400: AT -- OK
ttyLTM0<*1>: Speed 57600: AT -- OK
ttyLTM0<*1>: Speed 115200: AT -- OK
ttyLTM0<*1>: Max speed is 115200; that should be safe.
ttyLTM0<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 -- OK
ttyS0<*1>: ATQ0 V1 E1 -- failed with 2400 baud, next try: 9600 baud
ttyS0<*1>: ATQ0 V1 E1 -- failed with 9600 baud, next try: 115200 baud
ttyS0<*1>: ATQ0 V1 E1 -- and failed too at 115200, giving up.
Modem Port Scan<*1>: S1 S2 S3 S4 S5 S6 S7 S8
Modem Port Scan<*1>: S9 S10 S11 S12 S13 S14 S15 S16
Modem Port Scan<*1>: S17 S18 S19 S20 S21 S22 S23 S24
Modem Port Scan<*1>: S25 S26 S27 S28 S29 S30 S31 S32
Modem Port Scan<*1>: S33 S34 S35 S36 S37 S38 S39 S40
Modem Port Scan<*1>: S41 S42 S43 S44 S45 S46 S47
Found a modem on /dev/ttyLTM0, using link /dev/modem in config.
Modem configuration written to /etc/wvdial.conf.
ttyLTM0<Info>: Speed 115200; init "ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0"
b. Configure wvdial to connect to your ISP
The wvdialconf command created the file /etc/wvdial.conf. We need to edit this file and specify your ISP's phone number and your username and password. If your ISP phone number is 759-3651 and your username/password is sandra/morph then your /etc/wvdial.conf file should look something like this:
Code:
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Modem Type = Analog Modem
ISDN = 0
New PPPD = yes
Phone = 7593651
Modem = /dev/modem
Username = sandra
Password = morph
Baud = 115200
To edit the wvdial.conf file enter
Code:
sudo gedit /etc/wvdial.conf
c. Dial out with wvdial
Dial out by entering:
You should see a bunch of text output and hear your modem dial. After it finishes dialing you should be connected to the Internet. Press CTRL-C to hang up.
5. CONNECT TO THE INTERNET WITH GNOME NETWORKING
Now that the modem driver has been installed, we can connect to the Internet. There are many ways of connecting to the Internet. This section explains how to connect with GNOME networking.
a. Configure GNOME networking to dial your ISP
- Goto System->Administration->Networking
- On the Connections tab, select the "Modem connection" item
- Click on the Properties button
- On the Interface properties->General tab, click "Enable this connection" and enter your ISP phone number, and the username/password you connect to your ISP with
- On the Modem tab, enter /dev/modem for the "Modem port"
- Click OK to go back to the Network settings dialog
b. Dial out with GNOME networking
- Goto System->Administration->Networking
- On the Connections tab, select the "Modem connection" item
- Click on the Activate button
You should hear your modem dial. After it finishes dialing you should be connected to the Internet. Press the Deactivate button to hang up.
NOTE: Sometimes the Activate/Deactivate buttons in the Network settings dialog in GNOME don't properly reflect the state of your connection to the Internet. Sometimes, you may find you have to close the Network settings dialog and open it up again, and/or play around with the Activate/Deactivate buttons.
6. USE THE NETWORK MONITOR APPLET
The Network Monitor applet is useful for monitoring your dialup connection. The Network Monitor applet is kind of like the "modem lights" that appear in the system tray in Windows 2000/XP.
a. Add the Network Monitor applet to a panel
- Right-click on a panel and select "Add to Panel..."
- Select the Network Montior applet and click on the Add button
b. Configure the Network Monitor applet
- Right-click on the applet and select "Properties"
- In the Connection section, select ppp0 for the "Name"
- Click on the Close button
NOTE: If you don't see ppp0 in the drop-down for the "Name", then close the applet properties dialog, connect to the Internet and try again. As with the Network settings dialog, the Network Monitor applet sometimes doesn't properly reflect the state of your connection to the Internet. Sometimes, you may find you have to reconfigure the applet by selecting something other than ppp0, then selecting ppp0 again to get it to work properly.
- version 1.0.0
Bookmarks