Thread View: news.software.readers
12 messages
12 total messages
Started by teasmoke
Sun, 02 Jan 2000 00:00
trn & inews & slrnpull, oh my
Author: teasmoke
Date: Sun, 02 Jan 2000 00:00
Date: Sun, 02 Jan 2000 00:00
27 lines
1944 bytes
1944 bytes
Okay, this is me being really dim, but here goes: I'm attempting to change from slrn to trn, and... well, having problems. I've successfully compiled and install trn, and gotten it reading my local news spool and news.giganews.com happily, but I'm unable to post. Whenever I invoke Pnews, either from inside of trn or from the commandline, it accepts all my input and everything, but when I go and hit S for send, it thinks for a bit, and then says 'Sorry, you can't post from this machine.' I've gone into /etc/news/inn.conf , and set my newsserver (it's just as well, $NNTPSERVER is set correctly), but nowhere does inews seem to accept my username and password, which are kindof necessary. I wouldn't mind having trn/Pnews/inews put things into /var/spool/slrnpull/out.going/ , but inews doesn't seem to be configurable for that. Looking around on the web, it seems that this is a known problem with inews. (How this sort of thing could be allowed to go escapes me.) How, then, can I post from out of trn? Served with a smile, -- Kerne
Re: trn & inews & slrnpull, oh my
Author: Russ Allbery
Date: Sun, 02 Jan 2000 00:00
Date: Sun, 02 Jan 2000 00:00
15 lines
1447 bytes
1447 bytes
teasmoke <kmfahey@erudite.toast.net> writes: > Spoke too soon. From the looks of things, neither INN's inews, Cnews' > inews nor the perl inews will function properly with my local news > spool. They keep assuming that I am using INN and Cnews, respectively, > for my spool, which is not true. INN's inews is really bad for use as anything other than an inews on a full INN server. It's on my list to generalize and generally improve it's ability to work standalone, since I need that for my day job anyway. -- Russ Allbery (rra@stanford.edu) <URL:http://www.eyrie.org/~eagle/>
Re: trn & inews & slrnpull, oh my
Author: Jeremy
Date: Sun, 02 Jan 2000 00:00
Date: Sun, 02 Jan 2000 00:00
17 lines
1266 bytes
1266 bytes
teasmoke <kmfahey@toast.net> wrote: > Whenever I invoke Pnews, either from inside of trn or from the commandline, > it accepts all my input and everything, but when I go and hit S for send, it > thinks for a bit, and then says 'Sorry, you can't post from this machine.' > > I've gone into /etc/news/inn.conf , and set my newsserver (it's just as > well, $NNTPSERVER is set correctly), but nowhere does inews seem to accept > my username and password, which are kindof necessary. Is this trn 4.0? If so, are you using the inews that came with it? If your server requires authentication, you'll have to use trn's inews. -- Jeremy ( jeremy@exit109.com | bofh@netscum.dk )
Re: trn & inews & slrnpull, oh my
Author: teasmoke
Date: Sun, 02 Jan 2000 00:00
Date: Sun, 02 Jan 2000 00:00
41 lines
2510 bytes
2510 bytes
Still, questions about Jeremy's hands, which might one day hold *my* Myst book, are unsettling to me: > teasmoke <kmfahey@toast.net> wrote: > > > Whenever I invoke Pnews, either from inside of trn or from the > > commandline, it accepts all my input and everything, but when I go and hit > > S for send, it thinks for a bit, and then says 'Sorry, you can't post from > > this machine.' > > > > I've gone into /etc/news/inn.conf , and set my newsserver (it's just as > > well, $NNTPSERVER is set correctly), but nowhere does inews seem to accept > > my username and password, which are kindof necessary. > > Is this trn 4.0? If so, are you using the inews that came with it? If your > server requires authentication, you'll have to use trn's inews. Oog. Sorry for being so clueless. Yes, this is trn 4, test 72, and I was trying to use normal inews. (inewsinn_1.7.2-11_i386.deb .) At any rate, okay, I recompiled trn to use /usr/local/bin/inews for posting, but, when I go to send, it now says "Unable to execute inews for local posting". Okay, now what? I may be able to apply to standard-issue inews a quick & dirty patch I saw to get it authenticate, and I could also write up my own inews stand-in in perl, and, heck, I could download the .deb for the rewritten perl inews and see what I can do with that, but I don't know. Is there a way to get either inews to drop things in /var/spool/slrnpull/out.going ? That seems to be the best way of doing things, if they would just cooperate. -- Kerne
Re: trn & inews & slrnpull, oh my
Author: teasmoke
Date: Mon, 03 Jan 2000 00:00
Date: Mon, 03 Jan 2000 00:00
24 lines
1983 bytes
1983 bytes
Still, questions about Jeremy's hands, which might one day hold *my* Myst book, are unsettling to me: >teasmoke <kmfahey@erudite.toast.net> wrote: >You should be able to "fool" trn's inews by arranging for there to be an >NNTPSERVER variable in its environment. However, this will not work if you >need to authenticate to your news server with a username and password. For >that, you'd probably need to change some code. When you are using a server >that needs authentication, trn's inews will actually piggyback on trn's own >NNTP connection; it won't do the authentication itself. Tricky. Especially seeing as I more or less don't know C. Beyond switching to Cnews and/or giving up on one or the other, I think my only other option would be to code a stand-in for /usr/bin/inews in perl which posts the way I want. Which is probably what I'm going to have to do. -- Kerne
Re: trn & inews & slrnpull, oh my
Author: teasmoke
Date: Mon, 03 Jan 2000 00:00
Date: Mon, 03 Jan 2000 00:00
31 lines
2265 bytes
2265 bytes
Still, questions about Jeremy's hands, which might one day hold *my* Myst book, are unsettling to me: > teasmoke <kmfahey@toast.net> wrote: > > >> Since trn's inews will just hand off the job to your "other" inews, > >> whether you can do this is up to that other inews knowing where you spool > >> is. > > > > Ook. I take it that, as with trn, I tell inews where the various parts of > > my spool are at compile-time. Which means I have to compile it instead of > > just taking the .deb. Geez, I should've thought of that. > > This, I don't know. I've no idea what's in a .deb, so I don't know if it > would "just know" or what. Hmm. Right now, I've removed all traces of standard inews from my system, and reinstalled. Configuration doesn't ask me for where my news spool is or anything, though the man page does make mention of authenticating with NNTPsendpassword(3) and passwd.nntp(5) . Both of those, however, are part of the main INN distribution. Looking through the source, it does seem to be possible to compile *just* inews, and configure it to drop things into /var/spool/slrnpull/out.going , though it promises to be difficult. -- Kerne
Re: trn & inews & slrnpull, oh my
Author: teasmoke
Date: Mon, 03 Jan 2000 00:00
Date: Mon, 03 Jan 2000 00:00
48 lines
2519 bytes
2519 bytes
Still, questions about my own dang hands, which might one day hold *my* Myst book, are unsettling to me: > Beyond switching to Cnews and/or giving up on one or the other, I think my > only other option would be to code a stand-in for /usr/bin/inews in perl > which posts the way I want. Which is probably what I'm going to have to do. Solved it. No coding involved. (Which is how I like it.) Answer: switch to leafnode. Leafnode is on the same scale as slrnpull, maybe a little higher. Happy to maintain a private newsspool for a single user. (Unlike Cnews or INN, which both expect to be running newsservers.) However, unlike slrnpull, leafnode is capable of accepting NNTP connections. By default it inserts leafnode: 127.0.0.1 into hosts.allow, and, after asking, leafnode: ALL into hosts.deny. Which allows localhost and only localhost to connect to leafnode-as-nntp-daemon. Then, I installed the inewsinn .deb. (There's also the option of compiling standalone inews from the INN sources, but it's really tricky.) In inn.conf, I set the server to 'localhost', and, in inetd.conf, I uncommented nntp stream tcp nowait news /usr/sbin/tcpd /usr/sbin/leafnode .. And off we go. Inews will pass articles through port 119 to leafnode, and leafnode will be a good little NNTP daemon and send them along to the news server it pulls from. -- Kerne
Re: trn & inews & slrnpull, oh my
Author: teasmoke
Date: Mon, 03 Jan 2000 00:00
Date: Mon, 03 Jan 2000 00:00
40 lines
2508 bytes
2508 bytes
Still, questions about Jeremy's hands, which might one day hold *my* Myst book, are unsettling to me: > teasmoke <kmfahey@toast.net> wrote: < much good explanation snipped > > It sounds like something is wrong with your trn configuration. When you run > the Configure script, if you're intending to read and post to a local spool, > it will ask you first where you want trn's inews installed (this should be > in /usr/local/bin). Then it will ask you which inews should be used to post > local articles (meaning, to post to the local spool). The answer to this > question is the location of your *other* inews, the one from your server > that can post to the local spool. Ahh, yes, that's how it was. (That's how the defaults are set when you tell it to default to reading locally.) I'd misunderstood your initial advice and set both to /usr/local/bin/inews . > > Is there a way to get either inews to drop things in > > /var/spool/slrnpull/out.going ? That seems to be the best way of doing > > things, if they would just cooperate. > > Since trn's inews will just hand off the job to your "other" inews, whether > you can do this is up to that other inews knowing where you spool is. Ook. I take it that, as with trn, I tell inews where the various parts of my spool are at compile-time. Which means I have to compile it instead of just taking the .deb. Geez, I should've thought of that. Thank you very much. -- Kerne
Re: trn & inews & slrnpull, oh my
Author: teasmoke
Date: Mon, 03 Jan 2000 00:00
Date: Mon, 03 Jan 2000 00:00
31 lines
2125 bytes
2125 bytes
Still, questions about my own dang hands, which might one day hold *my* Myst book, are unsettling to me: >Looking through the source, it does seem to be possible to compile *just* >inews, and configure it to drop things into /var/spool/slrnpull/out.going , >though it promises to be difficult. Or not. Spoke too soon. From the looks of things, neither INN's inews, Cnews' inews nor the perl inews will function properly with my local news spool. They keep assuming that I am using INN and Cnews, respectively, for my spool, which is not true. Trn's own inews for posting NNTP-wise seems to work okay, but, reasonably, trn doesn't want to use it when reading from the news spool. I had been using slrn with my spool, and posting via nntp. I am not limited in my connections-- a 56k or so more or less constantly-- it's just that having a local news spool is a good deal more convenient. < shrugs > I think I will have to go through trn's source and correct it, so < that it goes through the NNTP inews regardles of whether it's reading from < the spool or via nntp, if that's even possible. -- Kerne
Re: trn & inews & slrnpull, oh my
Author: Jeremy
Date: Mon, 03 Jan 2000 00:00
Date: Mon, 03 Jan 2000 00:00
18 lines
1371 bytes
1371 bytes
teasmoke <kmfahey@toast.net> wrote: >> Since trn's inews will just hand off the job to your "other" inews, >> whether you can do this is up to that other inews knowing where you >> spool is. > > Ook. I take it that, as with trn, I tell inews where the various parts > of my spool are at compile-time. Which means I have to compile it > instead of just taking the .deb. Geez, I should've thought of that. This, I don't know. I've no idea what's in a .deb, so I don't know if it would "just know" or what. Can you use that inews manually from the command line to post to your local spool? (As "inews -h".) -- Jeremy ( jeremy@exit109.com | bofh@netscum.dk )
Re: trn & inews & slrnpull, oh my
Author: Jeremy
Date: Mon, 03 Jan 2000 00:00
Date: Mon, 03 Jan 2000 00:00
47 lines
2857 bytes
2857 bytes
teasmoke <kmfahey@toast.net> wrote: > At any rate, okay, I recompiled trn to use /usr/local/bin/inews for posting, > but, when I go to send, it now says "Unable to execute inews for local > posting". It thinks you're trying to post to a local server, rather than by NNTP. Are you reading news via a local spool, or via NNTP? If you're reading by NNTP, then something is very wrong with your setup or your configuration, because this shouldn't happen. If you're reading from a local spool, then what is happening is that inews is basically trying to run your other inews for local posting. Trn's inews doesn't post to a local spool, so it will try to use your existing inews (the one that you were trying to use before) when you post, figuring that the other inews is the one that came with whatever local server you have, and thus that inews will know how to post to the local spool. It sounds like something is wrong with your trn configuration. When you run the Configure script, if you're intending to read and post to a local spool, it will ask you first where you want trn's inews installed (this should be in /usr/local/bin). Then it will ask you which inews should be used to post local articles (meaning, to post to the local spool). The answer to this question is the location of your *other* inews, the one from your server that can post to the local spool. If this is done correctly, then when you have trn reading from a local spool, and you post something, trn's inews will see that you want to post to the local spool and will hand the job off to your other inews. But, it has to know where that inews is, and that is done by the Configure script. > Okay, now what? Re-run Configure, making sure to answer those questions correctly, and recompile and reinstall trn. > Is there a way to get either inews to drop things in > /var/spool/slrnpull/out.going ? That seems to be the best way of doing > things, if they would just cooperate. Since trn's inews will just hand off the job to your "other" inews, whether you can do this is up to that other inews knowing where you spool is. -- Jeremy ( jeremy@exit109.com | bofh@netscum.dk )
Re: trn & inews & slrnpull, oh my
Author: Jeremy
Date: Mon, 03 Jan 2000 00:00
Date: Mon, 03 Jan 2000 00:00
36 lines
2315 bytes
2315 bytes
teasmoke <kmfahey@erudite.toast.net> wrote: > Spoke too soon. From the looks of things, neither INN's inews, Cnews' > inews nor the perl inews will function properly with my local news > spool. They keep assuming that I am using INN and Cnews, respectively, > for my spool, which is not true. > > Trn's own inews for posting NNTP-wise seems to work okay, but, > reasonably, trn doesn't want to use it when reading from the news > spool. > > I had been using slrn with my spool, and posting via nntp. I am not > limited in my connections-- a 56k or so more or less constantly-- it's > just that having a local news spool is a good deal more convenient. > > < shrugs > I think I will have to go through trn's source and correct > it, so that it goes through the NNTP inews regardles of whether it's > reading from the spool or via nntp, if that's even possible. When you're reading from the local spool, there is no news server name in use. Trn's inews looks for a server name; if it finds one, it tries to post via NNTP, and if it doesn't, it hands off to the local inews for posting to the spool. You should be able to "fool" trn's inews by arranging for there to be an NNTPSERVER variable in its environment. However, this will not work if you need to authenticate to your news server with a username and password. For that, you'd probably need to change some code. When you are using a server that needs authentication, trn's inews will actually piggyback on trn's own NNTP connection; it won't do the authentication itself. -- Jeremy ( jeremy@exit109.com | bofh@netscum.dk )
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads