On Sat, 09 Oct 2004 05:30:51 +1300 Rik Tindall <[EMAIL PROTECTED]> wrote:
> Hi list, installbase as per sig below. > > Almost online with laptop Ubuntu Debian. This contact mail here is via > RedHat gateway/firewall box - 192.168.0.254 > > Problem: wvdial runs & connects, if I follow this instruction first: > > Ubuntu-P4-2660:/home/rik# pppd > pppd: pppd is unable to open the /dev/ppp device. > You need to create the /dev/ppp device node by > executing the following command as root: > mknod /dev/ppp c 108 0 > > ... done ... > > --> Sending: (password) > Entering PPP Session. > annex:202.[clip].[].[] > MTU is 1524. > --> Looks like a welcome message. > --> Starting pppd at Sat Oct 9 05:09:54 2004 > --> pid of pppd: 6832 > --> Using interface ppp0 > --> pppd: /dev/modem > > I am monitoring the connection with Modem Lights (0 data in/out) > > Q1: how do I automate this node creation please? /etc/init.d/rc.local is the simplest hack (not sure of the debian equivalent, look for some startup file that is convenient and put the extra line in) > > Q2: what must I do to connect my browser & mail client to this node? > I've tried deleting the eth1 gateway setting, but that's not it (can > connect both ways on other installs anyway). > > This is what I've got: > > Ubuntu-P4-2660:/home/rik# route > Kernel IP routing table > Destination Gateway Genmask Flags Metric Ref Use > Iface > 202.37.101.202 * 255.255.255.255 UH 0 0 0 ppp0 > localnet * 255.255.255.0 U 0 0 0 eth1 > default 192.168.0.254 0.0.0.0 UG 0 0 0 eth1 > from here you need to delete the default gateway to your router (which i assume is 192.168.0.254) and add one for the ppp0 connection. wvdial should add a default gateway, perhaps it doesn't because one already exists. perhaps you should write a small bash script which does this: delete default route wvdial replace default route and call that instead of wvdial > Q3: Ctrl-C used to hang up wvdial. Any more graceful methods I can employ? > from the manual: "Unlike other ppp dialers you might have used, the wvdial program runs in the foreground and never exits until you disconnect or have some kind of fatal error. You can also quit (and disconnect the phone, and clean up politely) by pressing CTRL-C. I think this is more user-friendly, myself. Of course if you want it to work like pppd you can always do it in the usual way: wvdial >/var/log/wvdial.log 2>&1 & It is interesting to note that almost all of WvDial's functionality is found in a C++ class called WvDialer. That means it's easy for a programmer to take WvDial and put in whatever kind of user interface he wants. The "wvdial" program serves as a simple example. So with WvDial, if someone (say) wanted to write an X-Windows dialup button bar, they could simply link in the C++ class and not have to worry about messy interactions with self-backgrounding pppd scripts and other gruesome stuff." > Sorry this is such entry-level stuff. > > Cheers, Rik > > -- > Ubuntu Debian GNU/Linux i686 2.6.8.1-2-386, Gnome 2.8 desktop > Evolution 2.0.0 email, OpenOffice.org 1.1.2 office suite > Mozilla 1.7.3 Gecko/20040924 Firefox/0.10 browser -- Nick Rout <[EMAIL PROTECTED]>
