[PLUTO-help] Modem USB su mandrake 10.1

diego.tosato a ilberichino.it diego.tosato a ilberichino.it
Mar 21 Dic 2004 14:35:32 CET


Grazie per la chicca! :)

Diego

>>Salve, qualcuno di voi ha mai provato a collegare un modem usb (quelli
>>su linea normale PTSN) su un pc con Mandrake 10.1. Se si con quali
>>risultati e con quali modelli di modem.
>
> Ciao, Diego:
>
> con l'aiuto che ho trovato sul sito
> 	www.linmodems.org
> (e che raccomando a chiunque voglia riuscire a connettersi in rete con
> linux
> e incontra problemi di configurazione del modem)
> sono riuscito a configurare il mio USB Thomson con Mandrake 10.1
> Community Edition.
> Ti riporto (in inglese) il resoconto completo dell'operazione,
> che potrai anche trovare nell'archivio della mailing list
> discuss a linmodems.org, sullo stesso sito.
>
> Rodolfo
>
> %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%> %%%%%
> SGS Thomson Microelectronics 56k SoftModem with Mandrake Linux 10.1
> Community Edition
>
> When I installed Mdk 10.1 CE, I chose the default package installation.
> When you edit a file, always remember to hit 'return' after the last
> line that contains characters.
>
>
> 1)  I identified my modem's chipset:
>
>   	 [root a localhost rodolfo]# lsusb
>   	 Invalid product/subclass spec at line 2650
>   	 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
>   	 Bus 001 Device 003: ID 05d8:4002 Ultima Electronics Corp. Lifetec
> LT9385 Scanner
>
>    From this it came out that the chipset was an
> 				SGS Thomson Microelectronics 56k SoftModem.
>    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=en&item_id=84&main_id=32 ,
>    from where it is possible to download the driver (see step 3).
>
> 2)  # urpmi kernel-source-2.6
>
> 3)  From:
>    http://www.smlink.com/main/item.php?ln=en&item_id=84&main_id=32 I
>    downloaded the file slmodem-2.9.10.tar.gz (see step 1)
>    and copied it into the directory '~/tmp'.
>
> 4)  Within the same directory I did:
>    $ gzip -dc slmodem-2.9.10.tar.gz | tar xf -
>
> 5)  I modified the file '~/tmp/slmodem-2.9.10/drivers/st7554.c':
>    I changed the line 1083:
>    	#define CLEAR_ENDPOINT(s,pipe) { \
>    into:
>    	#define CLEAR_ENDPOINT(s,pipe)
>    and deleted lines 1084, 1085, 1086.
>
> 6)  $ cd /usr/src
>    and made sure that the command '$ ls' gave the following output:
> 	linux@  linux-2.6.8.1-10mdk/  RPM/
>    and the command '$ ls -l linux' gave the following output:
>    	lrwxrwxrwx  1 root root 19 Dec  8 23:00 linux ->
>    	linux-2.6.8.1-10mdk/
>
> 7)  In the directory ~/tmp/slmodem-2.9.10,
>    $ make clean
>    $ make
>    # make install
>
> 8)  In the same directory,
>    # modprobe slusb
>
> 9)  From 'http://rpm.pbone.net' I downloaded the packages
>    libwvstreams3.74-3.74.0-4mdk.i586.rpm and
>    wvdial-1.54.0-2mdk.i586.rpm and copied them into the directory
>    ~/tmp; then in that directory:
>    	# urpmi libwvstreams3.74-3.74.0-4mdk.i586.rpm
>    and
>    	# urpmi wvdial-1.54.0-2mdk.i586.rpm
>    . During these installations I got error messages, but went on just
>    the
> same.
>    This is the output I got:
>
>    ------------------------------------------------------------------------
> -------------
>    [root a localhost tmp]# urpmi libwvstreams3.74-3.74.0-4mdk.i586.rpm
>
>    The following packages have bad signatures:
>    libwvstreams3.74-3.74.0-4mdk.i586.rpm: Invalid signature ((SHA1) DSA
> sha1 md5 (GPG) (MISSING KEY) GPG#70771ff3 NOT OK)
>    Do you want to continue installation ? (y/N) y
>    installing libwvstreams3.74-3.74.0-4mdk.i586.rpm
>    Preparing...
> ##################################################
>       1:libwvstreams3.74
> ##################################################
>    [root a localhost tmp]# urpmi wvdial-1.54.0-2mdk.i586.rpm
>    To satisfy dependencies, the following 3 packages are going to be
> installed (1 MB):
>    libpcap0-0.8.3-2mdk.i586
>    ppp-2.4.2-7mdk.i586
>    wvdial-1.54.0-2mdk.i586
>    Is this OK? (Y/n) y
>    Please insert the medium named "Installation CD 1 (x86) " on device
> [/dev/hdc]
>    Press Enter when ready...
>
>    The following packages have bad signatures:
>    wvdial-1.54.0-2mdk.i586.rpm: Invalid signature ((SHA1) DSA sha1 md5
> (GPG) (MISSING KEY) GPG#70771ff3 NOT OK)
>    Do you want to continue installation ? (y/N) y
>    installing /mnt/cdrom/media/main/libpcap0-0.8.3-2mdk.i586.rpm
> /mnt/cdrom/media/main/ppp-2.4.2-7mdk.i586.rpm
> wvdial-1.54.0-2mdk.i586.rpm
>    Preparing...
> ##################################################
>       1:libpcap0
> ##################################################
>       2:ppp
> ##################################################
>       3:wvdial
> ##################################################
>    ------------------------------------------------------------------------
> -------------
>
> 10) I created a symbolic link:
>    # ln -sf /dev/ttySL0 /dev/modem
>    and then made sure it was there: I did
>    # ls -l /dev/modem
>    , and got the output:
>    lrwxrwxrwx  1 root root 11 Dec 17 17:43 /dev/modem -> /dev/ttySL0
>
>
> 11) # /usr/sbin/slmodemd --country=ITALY /dev/slusb0
>    and, in another terminal console, let's call it 2,
>    # wvdialconf /etc/wvdial.conf
>
> 12) In terminal console 2:
>    # emacs /etc/wvdial.conf
>    , and I edited the last lines of the file so that it looked exactly
> like:
>
>    <blank line>
>    [Dialer Defaults]
>    Modem = /dev/ttySL0
>    Baud = 460800
>    Init1 = ATZ
>    Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
>    ISDN = 0
>    Modem Type = Analog Modem
>    Phone = 10550813521010
>    Username = romeomedina a libero.it
>    Password = mypassword
>    # Stupid mode = yes
>    Carrier Check = no
>
>    , then closed Emacs.
>
> 13) In 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,
>    # emacs /etc/resolv.conf
>    , and I added to the file (that was empty) the following lines:
>
>    nameserver 193.70.192.25
>    nameserver 193.70.152.25
>    domain libero.it
>
>    , then closed Emacs.
>
> 14) With slmodemd still running from step 11:
>    	# wvdial
>    (more than one attempt might be necessary, and `C-c' to stop wvdial)
>
> 15) I launched the web browser and enjoyed the connection
>
> 16) I closed the web browser
>
> 17) I closed wvdial with 'Ctrl-c'
>
> 18) I closed slmodemd (in the first terminal console) with 'Ctrl-c'
>
> 19) I automated slmodem, to make it start directly at boot:
>    19a) I copied the file
>    '~/tmp/slmodem-2.9.10/scripts/mandrake/slmodemd'
>         into '/etc/rc.d/init.d';
>    19b) in /etc/rc.d/rc3.d, I did `# ln -s /etc/rc.d/init.d/slmodemd
> S92slmodemd';
>    19c) in /etc/rc.d/rc6.d, I did `# ln -s /etc/rc.d/init.d/slmodemd
> K29slmodemd'.
>    19d) I modified the file /etc/rc.d/init.d/slmodemd:
>    I changed lines 17 and 18:
>    	SLMODEMD_DEVICE=slamr0
>    	SLMODEMD_COUNTRY=USA
>    into:
>    	SLMODEMD_DEVICE=slusb0
>    	SLMODEMD_COUNTRY=ITALY
>    , and line 31:
>    	cat /proc/modules | grep 'slamr' >/dev/null || {
>    into:
>    	cat /proc/modules | grep 'slusb' >/dev/null || {
>    , and line 33:
>    	modprobe slamr && echo "done." || {
>    into:
>    	modprobe slusb && echo "done." || {
>
> 20) I wanted to start wvdial as a non root user:
>    	# emacs /etc/sudoers
>    and added the line:
>    	rodolfo ALL=/usr/bin/wvdial
>    , then rebooted. Now, when I want to start wvdial I say
>    	$ sudo wvdial
>    , then I'm prompted for my password.
>    To turn off wvdial, simply C-c.
>
> _______________________________________________
> pluto-help mailing list
> pluto-help a lists.pluto.it
> http://lists.pluto.it/listinfo/pluto-help






More information about the pluto-help mailing list