[AuckLUG] NEC Slmodem problem
Nevyn
nevynh at gmail.com
Tue Jan 29 00:26:34 NZDT 2008
On Jan 28, 2008 2:45 PM, Ron Johns <ronaldj at orcon.net.nz> wrote:
> Hello all,
> Have a modem problem that I'm hoping someone can cast some
> light on...
>
> We are running a NEC Versa C160 laptop with a smart modem. To get this
> thing running with Fedora 7 I have to use SLMODEM which after going
> through the hoops works fine...but ;
>
> To get SLMODEMA working you have to bring up a terminal ,SU and run the
> command (slmodemd -c COUNTRY=NEWZEALAND --alsa modem:1)
>
> This is OK but several people use the laptop some of whom cannot have
> root privileges. I have fiddled around with permissions etc but no way
> will this app run except in SU.
>
> Can anyone tell me how to go deeper and change the permission without
> affecting SL Linux or other security settings ;or even better , how to
> get SL Modem to run on start up ?. I have set it in
> /SYSTEM/Personal/Sessions but it does not fire up.
>
> Any help gratefully accepted
> Regards
> Ron
Hi Ron,
There are a couple of ways of doing this. I can think of three but
unfortunately, two are incredibly insecure so I'll only describe the
option that I see as the best option here:
Run it at startup.
In fedora you'd place a script in /etc/init.d which contains the line
that you have up there. I.e. the file would look something like this:
#!/bin/bash
slmodemd -c COUNTRY=NEWZEALAND --alsa modem:1
You'd probably want to call this file something like slmodem or
something.... (assume it's slmodem for the rest of this email). To
create the file, open a terminal and use an editor (nano is probably
the easiest for new users) to create the file:
sudo nano /etc/init.d/slmodem
and type in the contents as above.
When you exit and save, set the permissions. Do this by typing in:
sudo chmod 755 /etc/init.d/slmodem
Then find out what runlevel the laptop defaults to:
In a console type in:
less /etc/inittab
You'll see a line that says something like:
id:5:initdefault:
Only the number will change and it'll be somewhere at the top of the
file. It's the number that's important. I'll call this number [n] for
the remainder of this email.
sudo ln /etc/init.d/slmodem /etc/rc[n].d/S99slmodem
Now whenever you start the computer the modem should initialize.
Strictly speaking, this isn't the Fedora way, but it's a quick and
dirty way of getting it going.
More information about the AuckLUG
mailing list