Search Members Help

» Welcome Guest
[ Log In :: Register ]

Mini-ITX Boards Sale, Fanless BareBones Mini-ITX, Bootable 1G DSL USBs, 533MHz Fanless PC <-- SALE $200 each!
Get The Official Damn Small Linux Book. DSL Market , Great VPS hosting provided by Tektonic
 

[ Track this topic :: Email this topic :: Print this topic ]

reply to topic new topic new poll
Topic: Make wvdial easier to use, Script or automate use of wvdial script< Next Oldest | Next Newest >
tncummings Offline





Group: Members
Posts: 3
Joined: Jan. 2006
Posted: Nov. 24 2007,14:54 QUOTE

I've installed 3.4.6 on an old Dell Latitude CPi and set up a wvdial script to tether a cell phone as a modem. As it is working now, the root user must activate the script at the command line using the command

Code Sample
wvdial --config tether.conf


I stop the script using CTR+C.

I'd like to set this up so a non-Linux user can easily point and click to activate and deactivate the script. I've futzed around with PPPD some, and have about abandoned that idea. I've been thinking about a shell script with a desktop icon, but I'm not sure I want to compromise the root password.

I'd appreciate any thoughts or ideas!
Back to top
Profile PM 
roberts Offline





Group: Members
Posts: 4983
Joined: Oct. 2003
Posted: Nov. 24 2007,15:15 QUOTE

wvdial is not in DSL, must be using an extension?
Why not use sudo in front of your wvdial command?
With 3.4.6 you can use the icontool to attach a desktop icon.
Back to top
Profile PM WEB 
^thehatsrule^ Offline





Group: Members
Posts: 3275
Joined: July 2006
Posted: Nov. 24 2007,22:11 QUOTE

You could also setuid on wvdial instead (assuming wvdial is a setuid safe binary)
Back to top
Profile PM 
tncummings Offline





Group: Members
Posts: 3
Joined: Jan. 2006
Posted: Nov. 26 2007,02:15 QUOTE

thanks for the ideas and options. I'll start plugging through these.

Yes, I did add wvdial through the extensions. To further explain the issue, the laptop will be used in a retail store to demo the modem capabilities of cell phones. I was able to get a Motorola V3 RAZR, Nokia 6555, and a Sony Erricson W580 using ATT cellular service to work with this single wvdial script. I'm now trying to make the execution of the script as easy as possible for the sales staff without compromising the security of the laptop.
Back to top
Profile PM 
tncummings Offline





Group: Members
Posts: 3
Joined: Jan. 2006
Posted: Dec. 19 2007,03:22 QUOTE

Thought I should post the resolution to this...

As suggested, I used the icontool to automate the script.

First, though, I created my wvdial.conf file
Code Sample

[Dialer Defaults]
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Init3 = AT+cgdcont =1, "IP", "isp.cingular"
Modem Type = USB Modem
Baud = 460800
New PPPD = yes
Modem = /dev/ttyACM0
ISDN = 0
Phone = *99#
Password = CINGULAR1
Username = ISP@CINGULARGPRS.COM
Stupid mode = 1


Next, I created a small shell script called wvdstart.sh:

Code Sample
#!/bin/sh
sudo su -c "wvdial --config /home/dsl/wvdial.conf"


Then, I used icontool to create a "Tether" icon to start wvdial in a terminal window:
Code Sample

aterm -e /home/dsl/wvdstart.sh


I've tested this with a Motorola RAZR, Nokia 6555, and Sony Ericsson W580i. They all work perfectly! Thanks again for your help.
Back to top
Profile PM 
4 replies since Nov. 24 2007,14:54 < Next Oldest | Next Newest >

[ Track this topic :: Email this topic :: Print this topic ]

 
reply to topic new topic new poll
Quick Reply: Make wvdial easier to use

Do you wish to enable your signature for this post?
Do you wish to enable emoticons for this post?
Track this topic
View All Emoticons
View iB Code