Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

How-to: winmodem with Debian Sarge

Share your HowTo, Documentation, Tips and Tricks. Not for support questions!.
Post Reply
Message
Author
Rodolfo Medina
Posts: 35
Joined: 2006-05-06 10:39

How-to: winmodem with Debian Sarge

#1 Post by Rodolfo Medina »

Operating system: Debian GNU/Linux 3.1 ("Sarge") r2, kernel 2.4.
Modem: Hamlet Silver Surfer 56K-V92 USB


Thanks to the precious help of Jacques Goldberg and Marvin Stodolsky at

http://linmodems.org/

I managed to configure my USB winmodem. Here's the whole procedure I followed,
hoping it may be useful to others.

-----------------------------------------------------------------------------------------
After the Debian base installation, I had chosen the manual
packages selection and installed the following packages:

make gcc less x-window-system gnome-session gnome-panel nautilus gnome-applets gnome-control-center gnome-system-tools gnome-core epiphany-browser

When you edit a file, always remember to hit 'return' after the last
line containing characters.

I did:

# uname -r

and got the following output:

2.4.27-2-386

. I identified my modem's chipset:

$ lsusb
Bus 002 Device 001: ID 0000:0000
Bus 002 Device 002: ID 046d:c001 Logitech, Inc. N48/M-BB48 [FirstMouse Plus]
Bus 001 Device 001: ID 0000:0000
Bus 001 Device 002: ID 0483:7554 SGS Thomson Microelectronics 56k SoftModem

From this it came out that the chipset was an SGS Thomson etc.
From a short investigation in Internet it also came out
that this modem should work with a driver provided by SmartLink: see:

http://www.qbik.ch/usb/devices/showdev.php?id=2637

, and then we came to:

http://www.smlink.com/main/item.php?ln= ... main_id=32

, from where it is possible to download the driver (see below).
. Then,

# apt-get install libc6-dev

# apt-get install kernel-source-2.4.27

# cd /usr/src

# tar xjvf kernel-source-2.4.27.tar.bz2

# cd kernel-source-2.4.27

# make mrproper

# cp /boot/config-2.4.27-2-386 .config

# make oldconfig

. I modified the file /usr/src/kernel-source-2.4.27/Makefile:
I changed the fourth line from:

EXTRAVERSION =

into:

EXTRAVERSION = -2-386

. Then,

# make dep


. From:

http://www.smlink.com/main/item.php?ln= ... main_id=32

I downloaded my modem's drive, the file slmodem-2.9.10.tar.gz.
I copied it into the directory ~/tmp and within this directory I did:

$ gzip -dc slmodem-2.9.10.tar.gz | tar xf -

. In the file `~/tmp/slmodem-2.9.10/Makefile' I changed the line:

KERNEL_DIR:=/lib/modules/$(shell uname -r)/build

into:

KERNEL_DIR:=/usr/src/kernel-source-2.4.27

, then:

$ cd slmodem-2.9.10

$ make clean

$ make

# make install

# modprobe slusb

. At

http://internet.libero.it/dialup56k/ipass.phtml

it was found the following:

--------------------------------------------------------------------
Dati tecnici:
Verificare sempre che le seguenti configurazioni siano correttamente
impostate:

- Connessione con DNS Assegnati dal Server.
In alternativa è possibile specificare:
DNS Primario: 193.70.192.25
DNS Secondario: 193.70.152.25
--------------------------------------------------------------------

. Then I created the file /etc/resolv.conf, that didn't exist, and filled
it with:

nameserver 193.70.192.25
nameserver 193.70.152.25
domain libero.it

. I automated slmodem, to make it start directly at boot:
I copied ~/tmp/slmodem-2.9.10/scripts/debian/slmodemd into /etc/init.d;
In the file /etc/inittab there was:

# The default runlevel.
id:2:initdefault:

, so in /etc/rc2.d, I did `ln -s /etc/init.d/slmodemd S92slmodemd';
in /etc/rc6.d, I did `ln -s /etc/init.d/slmodemd K29slmodemd'.
I modified the /etc/init.d/slmodemd:
I changed every occurrence of 'slamr' into 'slusb' and changed the line

SLMODEMD_COUNTRY=USA

into

SLMODEMD_COUNTRY=ITALY

. Now, whenever I want to stop slmodemd I just say:

# /etc/rc.d/init.d/slmodemd stop

, and

# /etc/rc.d/init.d/slmodemd start

to restart it.
I created the file /etc/chatscripts/modem and filled it with:

ABORT BUSY
ABORT 'NO CARRIER'
ABORT VOICE
ABORT 'NO DIALTONE'
ABORT 'NO DIAL TONE'
ABORT 'NO ANSWER'
ABORT DELAYED

'' ATZ
OK-AT-OK ATX3
OK-AT-OK ATQ0V1E1S0=0&C1&D2X3+MS=34
OK-AT-OK "ATDT10550813521010"
CONNECT \d\c

. Then I did:

# cp /etc/ppp/options /etc/ppp/options-original

, emptied the file /etc/ppp/options and filled it with:

asyncmap 0
auth
crtscts
lock
hide-password
modem
proxyarp
lcp-echo-interval 30
lcp-echo-failure 4
noipx
defaultroute
noauth

. Then,

# cp /etc/ppp/pap-secrets /etc/ppp/pap-secrets-original

, and this was my /etc/ppp/pap-secrets:

--------------------------------------------
* hostname "" *


"romeomedina@libero.it" modem "<password>"
--------------------------------------------

. Then,

# cp /etc/ppp/chap-secrets /etc/ppp/chap-secrets-original

, and my /etc/ppp/chap-secrets included only one line:

"romeomedina@libero.it" modem "<password>"

. I created the file /etc/ppp/peers/modem and filled it with:

noauth
connect "/usr/sbin/chat -v -s -f /etc/chatscripts/modem"
#connect "/usr/sbin/chat -e -f /etc/chatscripts/modem"
debug
crtscts
/dev/ttySL0
57600
defaultroute
noipdefault
user "romeomedina@libero.it"
remotename modem
#ipparam modem
usepeerdns
nodetach

. Then,

# adduser rodolfo dip

. I removed ~/tmp/slmodem-2.9.10.tar.gz and ~/tmp/slmodem-2.9.10,
then rebooted. I could start connection with: `$ pon modem',
and close connection with: `C-c'.

Post Reply