bristol@mailman.lug.org.uk
To subscribe or unsubscribe via the World Wide Web, visit
https://mailman.lug.org.uk/mailman/listinfo/bristol
or, via email, send a message with subject or body 'help' to
bristol-request@mailman.lug.org.uk
You can reach the person managing the list at
bristol-owner@mailman.lug.org.uk
When replying, please edit your Subject line so it is more specific
than "Re: Contents of Bristol digest..."
Today's Topics:
1. Keeping pppd running (jpff)
2. Re: Keeping pppd running (mark chard)
3. Re: Accessing Linux Samba from Mac (Steve King)
4. Re: Keeping pppd running (Amias Channer)
5. Re: Keeping pppd running (Steve King)
6. Re: Accessing Linux Samba from Mac (Martin Moore)
7. Re: Fwd: Keeping pppd running (Chris Boot)
----------------------------------------------------------------------
Message: 1
Date: Wed, 27 Jul 2016 14:58:16 +0100
From: jpff <jpff@codemist.co.uk>
To: bristol@mailman.lug.org.uk
Subject: [bristol] Keeping pppd running
Message-ID: <878-Wed27Jul2016145816+0100-jpff@codemist.co.uk>
I am sure this is trivial but I cannot remember/find how to do it!
I have FTTC serviced my a Debian box running pppd. The problem is
recently the connection is being dropped by BT (thanks) and not
coming back in time for pppd to restore the link. Off for say 2 hrs or
30 mins. Last time was at 3am so not sure when it returned.
I would like to restart pppd is it is not running, driven from say
crontab. I can use ps to see if it exists but I cannot find how to
script this. What am I missing? I seem to remember some log-watching
program from earlier, or is there a simple way to say
IF not_running(pppd) THEN start(pppd) FI
Sorry to ask such a simple thing.....
==John ffitch
------------------------------
Message: 2
Date: Wed, 27 Jul 2016 15:42:32 +0100
From: mark chard <machard.1984@gmail.com>
To: Bristol and Bath Linux User Group <bristol@mailman.lug.org.uk>,
jpff <jpff@codemist.co.uk>
Subject: Re: [bristol] Keeping pppd running
Message-ID:
<CAA7DJ2mY4g53ETgc02n+M0qEiKxgj60sacz=uosg3+4fYW=rCQ@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"
Hi jpff, I have forwarded your message to a colleague who is the maintainer
of this package in debian, he will respond to you shortly.
On 27 Jul 2016 2:58 pm, "jpff via Bristol" <bristol@mailman.lug.org.uk>
wrote:
> I am sure this is trivial but I cannot remember/find how to do it!
>
> I have FTTC serviced my a Debian box running pppd. The problem is
> recently the connection is being dropped by BT (thanks) and not
> coming back in time for pppd to restore the link. Off for say 2 hrs or
> 30 mins. Last time was at 3am so not sure when it returned.
>
> I would like to restart pppd is it is not running, driven from say
> crontab. I can use ps to see if it exists but I cannot find how to
> script this. What am I missing? I seem to remember some log-watching
> program from earlier, or is there a simple way to say
> IF not_running(pppd) THEN start(pppd) FI
>
> Sorry to ask such a simple thing.....
> ==John ffitch
>
> _______________________________________________
> Bristol mailing list
> Bristol@mailman.lug.org.uk
> https://mailman.lug.org.uk/mailman/listinfo/bristol
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.lug.org.uk/mailman/private/bristol/attachments/20160727/0d77076b/attachment-0001.html>
------------------------------
Message: 3
Date: Wed, 27 Jul 2016 15:58:54 +0100
From: "Steve King" <debian@invux.com>
To: "Martin Moore" <martinm@it-helps.co.uk>, "Bristol and Bath Linux
User Group" <bristol@mailman.lug.org.uk>
Subject: Re: [bristol] Accessing Linux Samba from Mac
Message-ID:
<e5436b1301e832c745e3f409f7242c9d.squirrel@dazzle.invux.com>
Content-Type: text/plain;charset=iso-8859-1
> Iâ™m trying to map a Debian drive from El Capitan.
>
> Iâ™ve installed Samba on the server. However the Mac wonâ™t
> authenticate. I know Samba is running as I get a â˜loginâ™ dialog. If I
> stop Samba I donâ™t.
>
> Canâ™t find any server logs. Not quite sure what should go into the
> â˜workgroupâ™ in smb.conf.
>
> Any pointers?
>
>
> Cheers,
>
> Martin
>
Obvious stuff:
Can you access the share using smbclient from linux?
Or explorer from windows?
Did you create a samba account with smbpasswd -a ?
--
Steve
------------------------------
Message: 4
Date: Wed, 27 Jul 2016 16:03:58 +0100
From: Amias Channer <me@amias.net>
To: mark chard <machard.1984@gmail.com>, Bristol and Bath Linux User
Group <bristol@mailman.lug.org.uk>
Subject: Re: [bristol] Keeping pppd running
Message-ID:
<CAMgU7XU7+=xT0YM78bdSbotR7OexAaA-kCkionE7dOdjuwwDFA@mail.gmail.com>
Content-Type: text/plain; charset=UTF-8
Hello Mark,
wouldn't this be better done by a init/upstart/systemd configuration
to run it as a service ?
All of these susbsystems have options for services to be run to always
restart on failure and this way you would get it serviced by events
rather than polling for it with cron,
this has the advantage that those subsystems have robust mechanisms
for dealing with failed services that you won't have to reimplement in
your cron scripts.
you also get better integration with the rest of the os if you do it
this way, with the cron solution it will cause problems when switching
runlevels and that sort of thing
Cheers
Amias
On 27 July 2016 at 15:42, mark chard via Bristol
<bristol@mailman.lug.org.uk> wrote:
> Hi jpff, I have forwarded your message to a colleague who is the maintainer
> of this package in debian, he will respond to you shortly.
>
>
> On 27 Jul 2016 2:58 pm, "jpff via Bristol" <bristol@mailman.lug.org.uk>
> wrote:
>>
>> I am sure this is trivial but I cannot remember/find how to do it!
>>
>> I have FTTC serviced my a Debian box running pppd. The problem is
>> recently the connection is being dropped by BT (thanks) and not
>> coming back in time for pppd to restore the link. Off for say 2 hrs or
>> 30 mins. Last time was at 3am so not sure when it returned.
>>
>> I would like to restart pppd is it is not running, driven from say
>> crontab. I can use ps to see if it exists but I cannot find how to
>> script this. What am I missing? I seem to remember some log-watching
>> program from earlier, or is there a simple way to say
>> IF not_running(pppd) THEN start(pppd) FI
>>
>> Sorry to ask such a simple thing.....
>> ==John ffitch
>>
>> _______________________________________________
>> Bristol mailing list
>> Bristol@mailman.lug.org.uk
>> https://mailman.lug.org.uk/mailman/listinfo/bristol
>
>
> _______________________________________________
> Bristol mailing list
> Bristol@mailman.lug.org.uk
> https://mailman.lug.org.uk/mailman/listinfo/bristol
------------------------------
Message: 5
Date: Wed, 27 Jul 2016 16:04:46 +0100
From: "Steve King" <debian@invux.com>
To: "jpff" <jpff@codemist.co.uk>, "Bristol and Bath Linux User Group"
<bristol@mailman.lug.org.uk>
Subject: Re: [bristol] Keeping pppd running
Message-ID:
<8083fd1836708365c213598967d2751f.squirrel@dazzle.invux.com>
Content-Type: text/plain;charset=iso-8859-1
> I am sure this is trivial but I cannot remember/find how to do it!
>
> I have FTTC serviced my a Debian box running pppd. The problem is
> recently the connection is being dropped by BT (thanks) and not
> coming back in time for pppd to restore the link. Off for say 2 hrs or
> 30 mins. Last time was at 3am so not sure when it returned.
>
> I would like to restart pppd is it is not running, driven from say
> crontab. I can use ps to see if it exists but I cannot find how to
> script this. What am I missing? I seem to remember some log-watching
> program from earlier, or is there a simple way to say
> IF not_running(pppd) THEN start(pppd) FI
>
> Sorry to ask such a simple thing.....
> ==John ffitch
>
Did you use pppoeconf to set it up?
If so it will have an entry in /etc/network/interfaces:
auto dsl-provider
iface dsl-provider inet ppp
pre-up /bin/ip link set eth0 up # line maintained by pppoeconf
provider dsl-provider
auto should bring the interface up at boot time.
and I *think* it will bring it up if it goes down.
If that isn't the case, and your cron script finds the interface down
ifup dsl-provider
will bring it back up.
(Probably need to experiment with that myself)
--
Steve
------------------------------
Message: 6
Date: Wed, 27 Jul 2016 16:08:40 +0100
From: Martin Moore <martinm@it-helps.co.uk>
To: <debian@invux.com>, Bristol and Bath Linux User Group
<bristol@mailman.lug.org.uk>
Subject: Re: [bristol] Accessing Linux Samba from Mac
Message-ID: <04AEA285-D1BD-4C45-AFA9-80D6FD586EF7@it-helps.co.uk>
Content-Type: text/plain; charset="UTF-8"
➢ Did you create a samba account with smbpasswd -a ?
Nope. Have done now and I'm in. Cheers all.
Martin.
On 27/07/2016, 15:58, "Steve King" <debian@invux.com> wrote:
> Iâ™m trying to map a Debian drive from El Capitan.
>
> Iâ™ve installed Samba on the server. However the Mac wonâ™t
> authenticate. I know Samba is running as I get a â˜loginâ™ dialog. If I
> stop Samba I donâ™t.
>
> Canâ™t find any server logs. Not quite sure what should go into the
> â˜workgroupâ™ in smb.conf.
>
> Any pointers?
>
>
> Cheers,
>
> Martin
>
Obvious stuff:
Can you access the share using smbclient from linux?
Or explorer from windows?
Did you create a samba account with smbpasswd -a ?
--
Steve
------------------------------
Message: 7
Date: Wed, 27 Jul 2016 18:33:29 +0100
From: Chris Boot <bootc@bootc.net>
To: bristol@mailman.lug.org.uk
Subject: Re: [bristol] Fwd: Keeping pppd running
Message-ID: <f0e9158b-69b2-d8bd-49ed-bdb2b99b0225@bootc.net>
Content-Type: text/plain; charset="utf-8"
[ please excuse me replying to a forward and breaking the threading ]
On 27/07/16 15:41, mark chard wrote:
> ---------- Forwarded message ----------
> From: "jpff via Bristol" <bristol@mailman.lug.org.uk>
> Date: 27 Jul 2016 2:58 pm
> Subject: [bristol] Keeping pppd running
> To: <bristol@mailman.lug.org.uk <mailto:bristol@mailman.lug.org.uk>>
>
> I am sure this is trivial but I cannot remember/find how to do it!
>
> I have FTTC serviced my a Debian box running pppd. The problem is
> recently the connection is being dropped by BT (thanks) and not
> coming back in time for pppd to restore the link. Off for say 2 hrs or
> 30 mins. Last time was at 3am so not sure when it returned.
>
> I would like to restart pppd is it is not running, driven from say
> crontab. I can use ps to see if it exists but I cannot find how to
> script this. What am I missing? I seem to remember some log-watching
> program from earlier, or is there a simple way to say
> IF not_running(pppd) THEN start(pppd) FI
Hi jpff,
As Mark suggested, I maintain pppd in Debian. I use it to run several
FTTC lines over PPPoE too. The trick here is to not have pppd give up
and exit in the first place. You probably want to include lines like the
following into your peer file in /etc/ppp/peers:
# Restart link on failure.
maxfail 0
# Use LCP pings, once a second, to detect failure - 10 pings failed ==
offline
lcp-echo-failure 10
lcp-echo-interval 1
# Hang around indefinitely
persist
holdoff 1
You may also run into the situation if your ISP has trouble and BT give
up talking to them: BT will accept your login and put you on a "default
accept" captive portal. Unfortunately you can only reliably detect this
if you have a static IP address and your ISP always uses the same IP
address on their end. I know AAISP do this, so I can easily overcome
this by adding to my peers file:
A.B.C.D:81.187.81.187
Where A.B.C.D is my static IPv4 address for that line, and 81.187.81.187
is *always* AAISP's remote end on PPP sessions. With this in place, pppd
will reject the IP address offered to it by BT's default accept.
Hope this helps!
Chris
--
Chris Boot
bootc@bootc.net
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 949 bytes
Desc: OpenPGP digital signature
URL: <https://mailman.lug.org.uk/mailman/private/bristol/attachments/20160727/64594c34/attachment.sig>
------------------------------
Subject: Digest Footer
_______________________________________________
Bristol mailing list
Bristol@mailman.lug.org.uk
https://mailman.lug.org.uk/mailman/listinfo/bristol
------------------------------
End of Bristol Digest, Vol 654, Issue 3
***************************************
Tidak ada komentar:
Posting Komentar