Re: [newbie] Automatically disconnecting

2004-04-05 Thread Keith Powell
On Sunday 04 Apr 2004 2:09 pm, et wrote:
> On Saturday 03 April 2004 02:28 pm, Keith Powell wrote:
> > I have been looking to see if it is possible to get KPPP to automatically
> > disconnect a dial-up Internet connection after a certain amount of time
> > (say, 3 minutes) of inactivity. Having searched all through the various
> > Internet configuration files, I can't find a way of doing it.
> > Disconnection appears to only to be able to be done manually.
> >
> > Any ideas, please, anyone?
> >
> > Many thanks
> >
> > Keith
>
> is this for everone using the dialup connection? if so,,, add (to the
> file /ect/ppp/options) the line (without the quotes, as root) "IDLE=300"
> will give you a 5 min idle time before disconnection.
> also the command "man pppd" can be your friend too...

Many thanks for your reply and the information.

There's only one user here - me!

I have activated the "idle" line in the /etc/ppp/options file as you 
suggested. It works.

At the moment I am using your suggestion, but I have installed WVDial (which 
has an "idle time" setting) and am also trying that program.

I had not noticed that /etc/ppp/options was the file to edit. I must have 
missed it when first checking through the Internet configuration files.

Next job is to read the ppd manual. 

Many thanks again.

Keith 



Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com
Join the Club : http://www.mandrakeclub.com



Re: [newbie] Automatically disconnecting

2004-04-05 Thread Keith Powell
On Sunday 04 Apr 2004 1:13 pm, Kaj Haulrich wrote:
> On Sunday 04 April 2004 12:52, Keith Powell wrote:
> > Robin.
> >
> > I would like some more help, please!
> >
> > You say that the WVDIAL binary is on the mirrors for downloading.
> >
> > I run Mandrake9.2 and it's not on my contrib, eslrahc, mpol,
> > NORLUG-9.2, or plf sources. Where is it, please?
> >
> > I have Googled for it and can only find tarballs, not any
> > binaries for Mandrake. I would rather use a binary than a
> > tarball.
> >
> > Many thanks.
> >
> > Keith
>
> Keith, try "rpmfind.net" :
> http://rpmfind.net//linux/RPM/mandrake/9.2/i586/Mandrake/RPMS/wvdial-1.53-3
>mdk.i586.html HTH
> Kaj Haulrich.

Thanks, Hal, for telling me where to download WVDdial.

It's not on my Download Edition CDs, so your information has saved a search 
with Google.

WVDial is now installed and working.

Cheers

Keith



Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com
Join the Club : http://www.mandrakeclub.com



Re: [newbie] Automatically disconnecting

2004-04-05 Thread Keith Powell
On Sunday 04 Apr 2004 5:02 am, robin wrote:
> > On Saturday 03 April 2004 13:28, Keith Powell wrote:
> > I have been looking to see if it is possible to get KPPP to
> > automatically disconnect a dial-up Internet connection after a
> > certain amount of time (say, 3 minutes) of inactivity. Having
> > searched all through the various Internet configuration files, I
> > can't find a way of doing it. Disconnection appears to only to be
> > able to be done manually.
> >
> I think the app you're all looking for is wvdial. You can set it to log
> you in automatically (even with ISPs that use terminal-based
> authentication), reconnect automatically, disconnect if idle for a
> specified period of time and a whole load of other stuff. It's not on
> the 10.0 CDs, but is on the mirrors. Just download it and edit
> /etc/wvdial.conf to your needs. No GUI required.
>
> The only glitch is that it normally only runs as root. There are three
> ways round this (other than doing "su" of course):
>
> 1. Make it suid (never tried this);
> 2. Change permissions of wvdial, wvdial.conf and /dev/modem (or
> whichever device your system works);
> 3. Have it started automatically on boot (this used to work fine on 9.2,
> but is rather flaky on 10.0 - sometimes it works, mostly it doesn't).
>
> Obviously you don't want to try option 3 if you're on a pay-per-minute
> connection! It's probably not advisable for situations where security is
> a major issue, such as a server, but then how many people run servers
> via a modem?
>
> Sir Robin

Thanks for your help, Robin.

I have installed wvdial, and it's working as I want. At the moment, it is only 
usable when running it as root, but I will experiment with permissions to 
make it run as a user (me!). It isn't on my Download Edition CDs (I've found 
before that there are some packages missing from them, which should be on 
them), So I had to get it from the Internet.

There has been another suggestion of adding an idle time in /etc/ppp/options. 
That works as well, so I now have the choice.

Cheers

Keith



Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com
Join the Club : http://www.mandrakeclub.com



Re: [newbie] Automatically disconnecting

2004-04-04 Thread et
On Sunday 04 April 2004 02:59 pm, robin wrote:
> Keith Powell wrote:
> > Robin.
> >
> > I would like some more help, please!
> >
> > You say that the WVDIAL binary is on the mirrors for downloading.
> >
> > I run Mandrake9.2 and it's not on my contrib, eslrahc, mpol, NORLUG-9.2,
> > or plf sources. Where is it, please?
> >
> > I have Googled for it and can only find tarballs, not any binaries for
> > Mandrake. I would rather use a binary than a tarball.
>
> IIRC, on 9.2 it was on one of the distro CDs. In 10.0 I couldn't find it
> there, but found it one on of the mirrors (main, not contrib). You can
> also find binaries at rpmfind.net
>
> Sir Robin

altho "man pppd" might be more what you need,,, since WVdial is setting the 
options file for you

-- 
linux counter #167806


Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com
Join the Club : http://www.mandrakeclub.com



Re: [newbie] Automatically disconnecting

2004-04-04 Thread et
On Saturday 03 April 2004 02:28 pm, Keith Powell wrote:
> I have been looking to see if it is possible to get KPPP to automatically
> disconnect a dial-up Internet connection after a certain amount of time
> (say, 3 minutes) of inactivity. Having searched all through the various
> Internet configuration files, I can't find a way of doing it. Disconnection
> appears to only to be able to be done manually.
>
> If our dial-up connections could be set to be automatically terminated, it
> would be a help. It would mean that we could leave the computer downloading
> something, knowing that the connection would be terminated a few minutes
> after the download had finished, rather than having to watch for the
> download to finish.
>
> Any ideas, please, anyone?
>
> Many thanks
>
> Keith

is this for everone using the dialup connection? if so,,, add (to the 
file /ect/ppp/options) the line (without the quotes, as root) "IDLE=300" will 
give you a 5 min idle time before disconnection.
also the command "man pppd" can be your friend too...

-- 
linux counter #167806


Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com
Join the Club : http://www.mandrakeclub.com



Re: [newbie] Automatically disconnecting

2004-04-04 Thread robin
Keith Powell wrote:
Robin.

I would like some more help, please!

You say that the WVDIAL binary is on the mirrors for downloading. 

I run Mandrake9.2 and it's not on my contrib, eslrahc, mpol, NORLUG-9.2, or 
plf sources. Where is it, please?

I have Googled for it and can only find tarballs, not any binaries for 
Mandrake. I would rather use a binary than a tarball.

IIRC, on 9.2 it was on one of the distro CDs. In 10.0 I couldn't find it 
there, but found it one on of the mirrors (main, not contrib). You can 
also find binaries at rpmfind.net

Sir Robin

--
"If the lion could speak, we would not understand it."
- Wittgenstein
Robin Turner
IDMYO
Bilkent Univeritesi
Ankara 06533
Turkey
www.bilkent.edu.tr/~robin



Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com
Join the Club : http://www.mandrakeclub.com



Re: [newbie] Automatically disconnecting

2004-04-04 Thread Kaj Haulrich
On Sunday 04 April 2004 12:52, Keith Powell wrote:
> Robin.
>
> I would like some more help, please!
>
> You say that the WVDIAL binary is on the mirrors for downloading.
>
> I run Mandrake9.2 and it's not on my contrib, eslrahc, mpol,
> NORLUG-9.2, or plf sources. Where is it, please?
>
> I have Googled for it and can only find tarballs, not any
> binaries for Mandrake. I would rather use a binary than a
> tarball.
>
> Many thanks.
>
> Keith

Keith, try "rpmfind.net" :
http://rpmfind.net//linux/RPM/mandrake/9.2/i586/Mandrake/RPMS/wvdial-1.53-3mdk.i586.html
HTH
Kaj Haulrich.
-- 
* Sent from a 100 % Microsoft-free computer *
* running Linux kernel 2.6.4 on Mandrake 10.0 *


Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com
Join the Club : http://www.mandrakeclub.com



Re: [newbie] Automatically disconnecting

2004-04-04 Thread Keith Powell
Robin.

I would like some more help, please!

You say that the WVDIAL binary is on the mirrors for downloading. 

I run Mandrake9.2 and it's not on my contrib, eslrahc, mpol, NORLUG-9.2, or 
plf sources. Where is it, please?

I have Googled for it and can only find tarballs, not any binaries for 
Mandrake. I would rather use a binary than a tarball.

Many thanks.

Keith



Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com
Join the Club : http://www.mandrakeclub.com



Re: [newbie] Automatically disconnecting

2004-04-03 Thread robin
Hoyt Bailey wrote:
On Saturday 03 April 2004 13:28, Keith Powell wrote:

I have been looking to see if it is possible to get KPPP to
automatically disconnect a dial-up Internet connection after a
certain amount of time (say, 3 minutes) of inactivity. Having
searched all through the various Internet configuration files, I
can't find a way of doing it. Disconnection appears to only to be
able to be done manually.
If our dial-up connections could be set to be automatically
terminated, it would be a help. It would mean that we could leave the
computer downloading something, knowing that the connection would be
terminated a few minutes after the download had finished, rather than
having to watch for the download to finish.
Any ideas, please, anyone?

Many thanks

Keith
Also how about whenever a connection is required that kppp starts and 
auto dials the ISP in addition to the above?
I think the app you're all looking for is wvdial. You can set it to log 
you in automatically (even with ISPs that use terminal-based 
authentication), reconnect automatically, disconnect if idle for a 
specified period of time and a whole load of other stuff. It's not on 
the 10.0 CDs, but is on the mirrors. Just download it and edit 
/etc/wvdial.conf to your needs. No GUI required.

The only glitch is that it normally only runs as root. There are three 
ways round this (other than doing "su" of course):

1. Make it suid (never tried this);
2. Change permissions of wvdial, wvdial.conf and /dev/modem (or 
whichever device your system works);
3. Have it started automatically on boot (this used to work fine on 9.2, 
but is rather flaky on 10.0 - sometimes it works, mostly it doesn't).

Obviously you don't want to try option 3 if you're on a pay-per-minute 
connection! It's probably not advisable for situations where security is 
a major issue, such as a server, but then how many people run servers 
via a modem?

Sir Robin

--
"If the lion could speak, we would not understand it."
- Wittgenstein
Robin Turner
IDMYO
Bilkent Univeritesi
Ankara 06533
Turkey
www.bilkent.edu.tr/~robin



Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com
Join the Club : http://www.mandrakeclub.com



Re: [newbie] Automatically disconnecting

2004-04-03 Thread Hoyt Bailey
On Saturday 03 April 2004 13:28, Keith Powell wrote:
> I have been looking to see if it is possible to get KPPP to
> automatically disconnect a dial-up Internet connection after a
> certain amount of time (say, 3 minutes) of inactivity. Having
> searched all through the various Internet configuration files, I
> can't find a way of doing it. Disconnection appears to only to be
> able to be done manually.
>
> If our dial-up connections could be set to be automatically
> terminated, it would be a help. It would mean that we could leave the
> computer downloading something, knowing that the connection would be
> terminated a few minutes after the download had finished, rather than
> having to watch for the download to finish.
>
> Any ideas, please, anyone?
>
> Many thanks
>
> Keith
Also how about whenever a connection is required that kppp starts and 
auto dials the ISP in addition to the above?
-- 
Regards;
Hoyt

Ignore the past and you will fail!
Ignore the future and you have already failed!



Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com
Join the Club : http://www.mandrakeclub.com