🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: uk.comp.os.linux
Article #748

Re: How many Linux users are there in.... (the UK)?

#748
From: Charles Blackburn
Date: Mon, 06 Dec 1999 00:00
113 lines
3910 bytes
On Sat, 4 Dec 1999 11:32:00 -0000, John Burton <jb@jbmail.com> wrote:
>Paul Brown wrote in message <4neh3RAR71Q4Ewts@tvwf.demon.co.uk>...
>And I have two windows machines sitting behind a linux machine which is
>doing the actual networking?
Me too,

>Which reminds me, does anyone know if there are any guides anywhere I
>can get on how to set up my linux machine for the best way to do this.
Yup.

>I.E. Getting it to download my email and serve it locally via pop3, same for
>newsgroups, cache DNS and web pages etc.
>I have the documentation for all of these things separately but wondered if
>anyone knows of any good guides that might be quicker to read.

try this, it works for me, set up a cron job to run the script at the end of
this message like this:

# /etc/crontab
# Cron format min sec * * * cmd
02 00 * * *    /usr/local/bin/getmail

restart cron (kill -HUP [pid of cron]) and it will reload the cron table.

in /etc/ppp/options add a connect line to the end. Mine is:

/etc/ppp/options

# /etc/ppp/options
ttyS1 
115200 
modem 
crtscts 
defaultroute 
mtu 576 
noipdefault
connect '/usr/sbin/chat -v -f /etc/ppp/peers/freenetname.chat.pap'
noauth
user [your ISP username] 

ipcp-accept-local
ipcp-accept-remote
lock
asyncmap 0
mru 542
lcp-echo-interval 30
lcp-echo-failure 4

# Specifies that pppd should disconnect if the link is idle for n seconds.
idle 600

# Disable the IPXCP and IPX protocols.
noipx

# Use ISP set name servers
usepeerdns

and in /usr/local/bin put this script

/usr/local/bin/getmail

#!/bin/bash
#
# Load up PPP
echo "Loading PPP"
/usr/sbin/pppd
#
# sleep till ppp link is up
echo "Waiting for PPP Link to go live"
sleep 40
#
if [ -f /var/run/ppp0.pid ]; then
	echo -n "Fetching mail - "
	# Fetch Mail
	/usr/bin/fetchmail -vvv >>/var/log/getmail.log 2>&1
	#
	# Fetch news
	echo "DONE"
	echo -n "Fetching News - "
	/usr/sbin/fetch -vvv >>/var/log/getmail.log 2>&1
	#
	# Send Mail
	echo "DONE"
	echo -n "Sending Mail - "
	/usr/sbin/sendmail -v -q >>/var/log/getmail.log 2>&1
	echo "DONE"

	# Stop ppp link
	echo "Stopping PPP"
	kill `cat /var/run/ppp0.pid`
fi


OK this script *MUST* be run as root because of sendmail and fetch.

I use fetchmail to collect mail and leafnode as a local caching news server.

if you want configs for them let me know.

once the mail and news is on the machine, you can use whatever mail/news
program you like, I use slrn to write news ad kmail under windows X server
for mail.

I hope this helps. any more info required, ring me or mail me
number's 07909 573 151

-- 
Charles Blackburn
Summerfield Technology Limited - Official SuSE Reseller
Sponser Of the Birmingham (UK) Linux User Group
E-MAIL: charlesb@summerfieldtechnology.co.uk
Birmingham UK LUG: BLUG@summerfieldtechnology.co.uk
WWW: http://www.summerfieldtechnology.co.uk
Technical Details
Message-ID: <slrn84n6m7.b9q.charlesb@local-gateway.summerfieldtechnology.co.uk>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <evrd18.9r.ln@brough> <4neh3RAR71Q4Ewts@tvwf.demon.co.uk> <82aufc$q12$1@uranium.btinternet.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: fd749,1b6488521f69fbfe
X-Google-Attributes: gidfd749,public
X-Google-Thread: 10d8ad,76dff0e27d5ee855
X-Google-Attributes: gid10d8ad,public
X-Google-Thread: 111053,1b6488521f69fbfe
X-Google-Attributes: gid111053,public
X-Google-Thread: fcfb9,1b6488521f69fbfe
X-Google-Attributes: gidfcfb9,public
From: charlesb@local-news.summerfieldtechnology.co.uk (Charles Blackburn)
Subject: Re: How many Linux users are there in.... (the UK)?
Date: 1999/12/06
Message-ID: <slrn84n6m7.b9q.charlesb@local-gateway.summerfieldtechnology.co.uk>
X-Deja-AN: 558086378
References: <evrd18.9r.ln@brough> <4neh3RAR71Q4Ewts@tvwf.demon.co.uk>  <82aufc$q12$1@uranium.btinternet.com>
X-Complaints-To: abuse@gxsn.com
X-Trace: 944648354 1NNUCNF1G8412C393C gxsn.com
Organization: Summerfield Technology Limited
Reply-To: charlesb@summerfieldtechnology.co.uk
Newsgroups: uk.comp.os.linux,comp.os.linux.advocacy,btinternet.linux,freeserve.help.unix