🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
6 messages
6 total messages Started by Arthur Thu, 10 Dec 1998 00:00
setenv in slrn
#45293
Author: Arthur
Date: Thu, 10 Dec 1998 00:00
23 lines
1515 bytes
I'm new to all this so please bear with me.

I'm running redhat linux 5.2, using the bash shell and trying to learn how
to use slrn.

Everytime I start the program, I get an error msg "you need to set the
NNTPSERVER environment variable to your host name". I've found that I can do
this with the -h switch, but I don't know how to set this permanently.

 I've reviewed the man pages, the slrn web pages and my books Linux in a
Nutshell, Running Linux and A Practical Guide to Linux. If the answer is in
any of them, I can't find it or figure it out.

I have managed to get slrn working in Windows 98 (even managed to follow the
directions and write a batch file to start it from an icon on the desktop,
altho I'm not confident enough yet to post with it) but could someone please
explain how it''s done in Linux?

Thanks very much; I appreciate the help.



Re: setenv in slrn
#45286
Author: Gerfried Fuchs
Date: Thu, 10 Dec 1998 00:00
23 lines
1538 bytes
On Thu, 10 Dec 1998 00:03:00 -0500, Arthur <augie@interport.net> wrote:
> 
> Everytime I start the program, I get an error msg "you need to set the
> NNTPSERVER environment variable to your host name". I've found that I can do
> this with the -h switch, but I don't know how to set this permanently.

 That depends on the shell you are using: If you are using e.g. tcsh, add the
following line to your ~/.login file:
setenv NNTPSERVER "your.news.server"
 If you are using the bash, the line has to go to ~/.bash_login and look like
this:
export NNTPSERVER="your.news.server"
 If you are using some other shell, look at the man page to see which file will
be read on login and how the syntax for setting environment variables might
look - or feel free to ask again; with more precise informations  ;)

 Alfie
-- 
"We have reason to believe that man first walked upright to free his
hands for masturbation."
                -- Lily Tomlin

Re: setenv in slrn
#45295
Author: Sylvan Butler
Date: Thu, 10 Dec 1998 00:00
25 lines
1534 bytes
On 10 Dec 1998 17:51:14 GMT, Frank Hahn <fhahn@zdnetmail.com> wrote:
>On Thu, 10 Dec 1998 00:03:00 -0500, Arthur <augie@interport.net> wrote:
>>I'm running redhat linux 5.2, using the bash shell and trying to learn how
                                 ^^^^^^^^^^^^^^^^^^^
>You don't mention which shell program you are using.  Probably

Missed it???

[tcsh]
>setenv NNTPSERVER "yournewsserver.com"
>
>I don't remember the systax to bash, but is should be something similar.

export NNTPSERVER="yournewsserver.domain"

sdb

-- 
 | Sylvan Butler | Not speaking for Hewlett-Packard | sbutler-boi.hp.com |
 | Watch out for my e-mail address. Thank UCE.   #### change ^ to @ #### |
    They that can give up essential liberty to obtain a little temporary
    safety deserve neither liberty nor safety. --Benjamin Franklin, 1755
 "Don't Tread On Me!"

Re: setenv in slrn
#45298
Author: Heikki Kantola
Date: Thu, 10 Dec 1998 00:00
22 lines
1528 bytes
Arthur <augie@interport.net> informed
news.software.readers with the following:
>I'm new to all this so please bear with me.
>
>I'm running redhat linux 5.2, using the bash shell and trying to learn how
>to use slrn.
>
>Everytime I start the program, I get an error msg "you need to set the
>NNTPSERVER environment variable to your host name". I've found that I can do
>this with the -h switch, but I don't know how to set this permanently.

Use your favourite editor to insert following line to your .bashrc:
	
	export NNTPSERVER=news.who.knows.whe.re

-- 
Heikki "Hezu" Kantola, <Heikki.Kantola@IKI.FI>
L�hett�m�ll� mainoksia tai muuta asiatonta s�hk�postia yll� olevaan
osoitteeseen sitoudut maksamaan oikolukupalvelusta FIM500 alkavalta
tunnilta.

Re: setenv in slrn
#45300
Author: Frank Hahn
Date: Thu, 10 Dec 1998 00:00
36 lines
2229 bytes
On Thu, 10 Dec 1998 00:03:00 -0500, Arthur <augie@interport.net> wrote:
>I'm running redhat linux 5.2, using the bash shell and trying to learn how
>to use slrn.
>
>Everytime I start the program, I get an error msg "you need to set the
>NNTPSERVER environment variable to your host name". I've found that I can do
>this with the -h switch, but I don't know how to set this permanently.
>
> I've reviewed the man pages, the slrn web pages and my books Linux in a
>Nutshell, Running Linux and A Practical Guide to Linux. If the answer is in
>any of them, I can't find it or figure it out.
>
>I have managed to get slrn working in Windows 98 (even managed to follow the
>directions and write a batch file to start it from an icon on the desktop,
>altho I'm not confident enough yet to post with it) but could someone please
>explain how it''s done in Linux?
>
You don't mention which shell program you are using.  Probably
either bash or csh but either of these has a configuration file.
Something like .cshrc or .bashrc in your home directory.  If they
are not there, you can create one or see if there is a beginning
skelton file somewhere on your system.

Anyways, in the .cshrc file, you would place a command similar to the
following in it:

setenv NNTPSERVER "yournewsserver.com"

I don't remember the systax to bash, but is should be something similar.
When you log in, that variable should be set.  Try typing "setenv" to
see them.

-- 
Frank Hahn

Re: setenv in slrn
#45303
Author: Gerfried Fuchs
Date: Fri, 11 Dec 1998 00:00
19 lines
1259 bytes
On 10 Dec 1998 22:03:07 GMT, Thomas K. <Thomas.K@POBoxes.com> wrote:
> Or, of course, you could write yourself a little script like this:
> 
> #!/bin/sh
> /usr/local/bin/slrn -h your.news.server
> 
> chmod 755 it and put it in your ~/bin. If you call it `slrn' make
> sure it's in your path before /usr/local/bin or wherever the program
> itself lives on your machine.

 For only that purpose an 'alias' would be much better!
alias slrn='slrn -h your.news.server'
 in your .bash_login (or something adequate for shells != bash ;)

 Alfie
-- 
"Life needs an undo button."

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