🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #204309

[leafnode] Now what?

#204309
From: Pseudo Silk Kimono
Date: Tue, 21 Aug 2007 01:26
116 lines
5250 bytes
Greetings,


I'd like to apologize in advance for the length of this post, but I
wanted everyone to see what I am doing and what I hope to achieve.
----------------------
I installed leafnode this evening by downloading the gz file from
SourceForge and doing the usual ./configure, make, sudu make install

So now what?  

I downloaded something called leafwa which is supposed to be a php
frontend for leafnode.  Splendid!  I copied the directory 
to my web root and was able to start the product up without any
problems.  So then I started to work my way through the instructions

1. Prerequisites

To use Leafwa, the following additional packages are required:

    * Leafnode - www.leafnode.org
    * Apache - www.apache.org
    * PHP - www.php.net
    * sudo - www.courtesan.com/sudo/

YUP... got that

2. Configuring Apache and PHP

You need to install Apache and PHP (assuming they are not already
installed on your system). A description of the installation of these
products is beyond the scope of this document - refer to their manuals
to find out more.


Yup.. got that

3. Pointing Apache at Leafwa

You need to tell Apache that when it is given certain URLs, it must
reply by serving Leafwa pages. Here is one way to do it; you may choose
to do it differently. With this method, the Leafwa home page will have
the URL http://localhost/leafwa/ on your server.

First, locate Apache's DocumentRoot directory (for RedHat systems, this
is /var/www/html/ by default). Copy the Leafwa directory to that
location (the Leafwa directory is the directory all the untarred Leafwa
files - such as this one - ended up). The command for this will be
something like:

cp -R leafwa-0.7.0xx-xx /var/www/html/leafwa

Then, make sure that the leafwa/ directory belongs to the user that the
webserver runs as:

chown -R apache:apache /var/www/html/leafwa

YUP..got that... http://localhost/leafwa/helpinstall.html is what I'm following
and since http://localhost/phpmyadmin works, I think it's safe to assume
that php knows how to work

4. Pointing Leafwa at Leafnode

[this step is only only required if you are using something other than
the Leafnode defaults]

Defaults sounds good to me.. so YUP... got that

5. Giving Leafwa privileges to manage Leafnode

Leafwa needs to alter files in the directory containing subscribed
groups. It needs to have the necessary privileges to do this. Leafwa
uses sudo to enable it to get the correct permissions, so you need to
alter the /etc/sudoers file.

As root, use the visudo command to edit /etc/sudoers:

# User alias specification
Runas_Alias	LN = news

# Cmnd alias specification
Cmnd_Alias	FILE = /bin/rm, /bin/cp, /bin/touch, /bin/chmod
Cmnd_Alias	NEWS = /usr/bin/newsq, /usr/bin/fetchnews,
/usr/bin/texpire

# User privilege specification
apache  ALL=(LN) NOPASSWD: FILE, NEWS 

(where apache is the user Apache runs as - you can find out which user
this should be from the View Leafwa Settings page).

YUP.. did that.. but what's this...when I save the sudoers file?

Warning: undeclared Host_Alias `FILE' referenced near line 26
Warning: undeclared Host_Alias `NEWS' referenced near line 27
Warning: undeclared Cmnd_Alias `FILE' referenced near line 30
Warning: undeclared Cmnd_Alias `NEWS' referenced near line 30
Warning: undeclared Host_Alias `FILE' referenced near line 27
Warning: undeclared Host_Alias `NEWS' referenced near line 28
Warning: undeclared Cmnd_Alias `FILE' referenced near line 31
Warning: undeclared Cmnd_Alias `NEWS' referenced near line 31

Not sure what to do now.  Is this a problem or can I ignore it.  Wrong
syntax for Ubuntu?  Seems to me that sudoers should work the same no
matter what distro.

Any ideas?  I'd really like to try this leafnode thing out and a GUI
front end, like phpmyadmin, is ideal for me.

Cheers

-- 
PSK - GG = bad slrn = good
><>    
http://www.the-company.com/journal.htm
Huddled in the safety of a Pseudo Silk Kimono
Technical Details
Message-ID: <fadf0a$j8l$1@registered.motzarella.org>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!feeder.news-service.com!news.motzarella.org!motzarella.org!not-for-mail

Show Full Headers
Complete Article Headers
Message-ID: <fadf0a$j8l$1@registered.motzarella.org>
Subject: [leafnode] Now what?
Date: Tue, 21 Aug 2007 01:26:34 +0000
From: Pseudo Silk Kimono <Pseudo_Silk_Kimono@marillion.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!feeder.news-service.com!news.motzarella.org!motzarella.org!not-for-mail
Newsgroups: news.software.readers
Organization: A noiseless patient Spider
Lines: 116
X-Trace: tomate.motzarella.org
 U2FsdGVkX1/CWCIiX78/xUpWWot9Xx/uDiQwg4celUYsFyT9ITXYTLJLBW9N72XvK26LdKx1qh9Y1JN2WtAKYPxu71FYL3sQPDfI6mKCIippnRFLqkAhjNql5QGs26CIQ3mChv6+jvA9dEjHqyYIA0UrIVcYu1Or
X-Complaints-To: Please send complaints to abuse@motzarella.org with full
 headers
NNTP-Posting-Date: Tue, 21 Aug 2007 01:26:34 +0000 (UTC)
User-Agent: slrn/0.9.8.1pl1 (Debian)
X-Auth-Sender: U2FsdGVkX1/R4N4wgBtdT8Vxd4sUTjZtE+M7sL+rjk4vKDuOlkL60CGlol/OOemwEi37sTRLlWw=
Cancel-Lock: sha1:X5zQDLyhTIKsKCITXlxwKJPV8BI=