🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
4 messages
4 total messages Started by root Sat, 03 May 1997 00:00
slrn and USER variable
#33322
Author: root
Date: Sat, 03 May 1997 00:00
8 lines
747 bytes
When attempting to launch slrn it tells me that it is unable to find my username and that I should set the USER environment variable. How do I do this? In my profile? What's the exact syntax?

I'm running Red Hat Linux 4.1.

Thanks,

Re: slrn and USER variable
#33300
Author: A. Deckers
Date: Sat, 03 May 1997 00:00
33 lines
1392 bytes
En news.software.readers,
	<root@truck.com.au> comentaba hace un rato:
>When attempting to launch slrn it tells me that it is unable to find
>my username and that I should set the USER environment variable. How do
>I do this? In my profile? What's the exact syntax?

Please wrap your text to no more than 80 columns when posting to Usenet. Thanks.

[Hey, that's a coincidence. :-) ]

You can set this in your .slrnrc file, as follows:

set username "my_name"
set hostname "my_domain"

slrn will use this to compose the address that goes in your From
header, which will be:

 my_name@my_domain

(for suitable values of "my_name" and "my_domain")

>I'm running Red Hat Linux 4.1.

Good for you. :-)

Cheers,

Alain


Re: slrn and USER variable
#33316
Author: Greg Wooledge
Date: Sat, 03 May 1997 00:00
29 lines
1825 bytes

On 3 May 1997 14:11:06 GMT, root <root@truck.com.au> wrote:

>When attempting to launch slrn it tells me that it is unable to find my username and that I should set the USER environment variable. How do I do this? In my profile? What's the exact syntax?

Please keep your lines below 80 characters.

>I'm running Red Hat Linux 4.1.

I noticed a funny thing a while ago.  If you login with getty+login on
a virtual console, you get $LOGNAME defined (SysV behavior).  However,
if you login with xdm (under X), you get $USER defined (BSD behavior).
That really shocked me.  A good fix for this, if you and all other users
on your system use bash, is to add something like this to /etc/profile:

[ -z "$LOGNAME" ] && export LOGNAME=$USER       # for xdm
[ -z "$USER" ] && export USER=$LOGNAME          # for login

I'll leave [t]csh bastar^H^H^H^H^H^Hconversion as an exercise for the
reader.

I've included comp.os.linux.setup in posting this message.
-- 
------------                  Greg Wooledge                  -------------
-------                   wooledge@kellnet.com                     -------
---              http://kellnet.com/wooledge/main.html                 ---

Re: slrn and USER variable
#33338
Author: John E. Davis
Date: Sun, 04 May 1997 00:00
25 lines
1166 bytes
On 3 May 1997 14:11:06 GMT, root <root@truck.com.au>
wrote:
>
>When attempting to launch slrn it tells me that it is unable to find
> my username and that I should set the USER environment variable. How
> do I do this? In my profile? What's the exact syntax? 

(Note: I manually wrapped your lines.  The default behavior of slrn is
 to reject posting an article that contains lines beyond 80
 characters.  You should setup your edit to wrap using ``hard''
 newline characters.)
 
Add:  

   set username "Your-User-Name"
   set hostname "truck.com.au"
   
to your .slrnrc file.

--John

 

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