From: wonge@fraser.sfu.ca (Edmund Wong)
Subject: Re: quick q
Organization: Simon Fraser University, Burnaby, B.C., Canada
Date: Mon, 11 Jan 1993 06:55:08 GMT

In article <1993Jan11.004800.22005@cbfsb.cb.att.com> wto@cbnewsg.cb.att.com (William T. O Connell) writes:
>In article <1993Jan10.202059.5632@csd.uwe.ac.uk>, root@slave.uwe.ac.uk (Operator (Phil/Dylan)) writes:
>> In article <1993Jan7.034007.26946@sfu.ca>, wonge@fraser.sfu.ca (Edmund Wong)
>> writes:
>> |> In article <1993Jan6.080443.10051@cbfsb.cb.att.com> wto@cbnewsg.cb.att.com
>> |> (William T. O Connell) writes:
>> |> >In article <1993Jan6.071608.4248@wuecl.wustl.edu> ppc1@cec2.wustl.edu (Peter
>> |> Pui Tak Chiu) writes:
>> 
>> |> >Put 'hostname <something you like>' in you rc file.
>> 
>> it's usually specified in the rc.local (for linux)
>> 
>> 
>> |> trying to ask is that (root@softland) thing.  Well. Considering he
>> |> didn't specify where, I could be given some leeway in interpretation here.
>> |> But like, for that (root@softland) to be changed to (root@?????), I think
>> |> he'd need to recompile the kernel under the ????? hostname, am I correct?
>> 
>> wrong,....
>> 
>> several files come into play
>> 
>> /etc/issue
>> /etc/motd
>> /etc/rc.local (normally where the hostname is defined NOT the /etc/rc)
>> 
>
>Agree, BUT it's the administrator's own preference where (s)he puts it.

  Which adds another tag to that where-should-I-put-<command>-?-type
mail. :).   Which kinda makes me wonder though.   I placed my 
'/bin/hostname eagles' in my rc.net file at first.  Then someone
complained that it should be in the /etc/rc.local file.  FINE.. I 
changed it and placed it in the /etc/rc.local file.  But figured, hell
might as well put it in the /etc/rc file, considering that file
executes /etc/rc.local which in turn executes /etc/inet/rc.net file.

   But my question is, not whether where I'd like to put my commands,
but if I put my commands where they are, would it affect the system's
actual performance, in the sense that, would the system start to
choke when it can't find a command, or when it finds an extra 
command in a particularly IMPORTANT file, like /etc/rc, or /etc/inet/rc.net.

   Which makes me wonder,  Since /etc/rc executes (in)directly /etc/rc.local
and /etc/inet/rc.net file, why can't I just stick the contents of /etc/
rc.local and the contents of /etc/inet/rc.net into /etc/rc?  

   I didn't do that because, being a beginner at Linux, I wasn't sure
if that move would be deemed as wise, considering I don't REALLY know
what gets executed, or if a missing file would kill the system.
/
>
>
>> depending on what shell (s)he runs, it can also be hard coded into your
>> prompt statement rather tha using enviroment variables
>
>You say that the above responder is WRONG? Either we are talking about
>two different things or your post is wrong. Since he was talking about 
>recompiling the kernel, I believe the responder above was referring to 
>the line at bootup time that contains (root@softland) as follows:
>	. . .
>	Partion table ok
>	Linux Version 0.99.pl2-66 (root@ranger) 01/08/93 01:02:04
>	===== /etc/rc running ======    
>	. . .
>Where mine says (root@ranger).
>
>He's right, you do need to recompile the kernel. It has nothing to
>do with /etc/issue or /etc/motd. Now, those two files might have also
>contain (root@softland), my memory fades me :-), which the previous
>poster could be referring to?

  Heck, at least someone agrees that, considering the fact that the
ORIGINAL poster did not specify WHICH (root@softland) he wanted to
change, I should be given the liberty of assuming that he was talking
about the (root@softland) during boottime.   And I really don't
believe that I got totally hassled because of that post.  *sigh*

  But tell me.  I was technically right, right?  I just want some
reassurance because after two "No you are definitely wrong" email,
I got kinda jittery with even posting on here...  

>




-- 
InterNet: wonge@fraser.sfu.ca  |  "Fail not; Learn Not.
                               |  It is with failing, that one learns,
                               |  So by Learning, one must fail." - Edmund Wong
Newsgroups: comp.os.linux
From: jaggy@purplet.demon.co.uk (Mike Jagdis)