home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / os / linux / 23548 < prev    next >
Encoding:
Text File  |  1993-01-11  |  4.4 KB  |  104 lines

  1. Newsgroups: comp.os.linux
  2. Path: sparky!uunet!spool.mu.edu!wupost!gumby!destroyer!cs.ubc.ca!newsserver.sfu.ca!wonge
  3. From: wonge@fraser.sfu.ca (Edmund Wong)
  4. Subject: Re: quick q
  5. Message-ID: <1993Jan11.065508.6345@sfu.ca>
  6. Sender: news@sfu.ca
  7. Organization: Simon Fraser University, Burnaby, B.C., Canada
  8. References: <1993Jan6.071608.4248@wuecl.wustl.edu> <1993Jan10.202059.5632@csd.uwe.ac.uk> <1993Jan11.004800.22005@cbfsb.cb.att.com>
  9. Date: Mon, 11 Jan 1993 06:55:08 GMT
  10. Lines: 92
  11.  
  12. In article <1993Jan11.004800.22005@cbfsb.cb.att.com> wto@cbnewsg.cb.att.com (William T. O Connell) writes:
  13. >In article <1993Jan10.202059.5632@csd.uwe.ac.uk>, root@slave.uwe.ac.uk (Operator (Phil/Dylan)) writes:
  14. >> In article <1993Jan7.034007.26946@sfu.ca>, wonge@fraser.sfu.ca (Edmund Wong)
  15. >> writes:
  16. >> |> In article <1993Jan6.080443.10051@cbfsb.cb.att.com> wto@cbnewsg.cb.att.com
  17. >> |> (William T. O Connell) writes:
  18. >> |> >In article <1993Jan6.071608.4248@wuecl.wustl.edu> ppc1@cec2.wustl.edu (Peter
  19. >> |> Pui Tak Chiu) writes:
  20. >> 
  21. >> |> >Put 'hostname <something you like>' in you rc file.
  22. >> 
  23. >> it's usually specified in the rc.local (for linux)
  24. >> 
  25. >> 
  26. >> |> trying to ask is that (root@softland) thing.  Well. Considering he
  27. >> |> didn't specify where, I could be given some leeway in interpretation here.
  28. >> |> But like, for that (root@softland) to be changed to (root@?????), I think
  29. >> |> he'd need to recompile the kernel under the ????? hostname, am I correct?
  30. >> 
  31. >> wrong,....
  32. >> 
  33. >> several files come into play
  34. >> 
  35. >> /etc/issue
  36. >> /etc/motd
  37. >> /etc/rc.local (normally where the hostname is defined NOT the /etc/rc)
  38. >> 
  39. >
  40. >Agree, BUT it's the administrator's own preference where (s)he puts it.
  41.  
  42.   Which adds another tag to that where-should-I-put-<command>-?-type
  43. mail. :).   Which kinda makes me wonder though.   I placed my 
  44. '/bin/hostname eagles' in my rc.net file at first.  Then someone
  45. complained that it should be in the /etc/rc.local file.  FINE.. I 
  46. changed it and placed it in the /etc/rc.local file.  But figured, hell
  47. might as well put it in the /etc/rc file, considering that file
  48. executes /etc/rc.local which in turn executes /etc/inet/rc.net file.
  49.  
  50.    But my question is, not whether where I'd like to put my commands,
  51. but if I put my commands where they are, would it affect the system's
  52. actual performance, in the sense that, would the system start to
  53. choke when it can't find a command, or when it finds an extra 
  54. command in a particularly IMPORTANT file, like /etc/rc, or /etc/inet/rc.net.
  55.  
  56.    Which makes me wonder,  Since /etc/rc executes (in)directly /etc/rc.local
  57. and /etc/inet/rc.net file, why can't I just stick the contents of /etc/
  58. rc.local and the contents of /etc/inet/rc.net into /etc/rc?  
  59.  
  60.    I didn't do that because, being a beginner at Linux, I wasn't sure
  61. if that move would be deemed as wise, considering I don't REALLY know
  62. what gets executed, or if a missing file would kill the system.
  63. /
  64. >
  65. >
  66. >> depending on what shell (s)he runs, it can also be hard coded into your
  67. >> prompt statement rather tha using enviroment variables
  68. >
  69. >You say that the above responder is WRONG? Either we are talking about
  70. >two different things or your post is wrong. Since he was talking about 
  71. >recompiling the kernel, I believe the responder above was referring to 
  72. >the line at bootup time that contains (root@softland) as follows:
  73. >    . . .
  74. >    Partion table ok
  75. >    Linux Version 0.99.pl2-66 (root@ranger) 01/08/93 01:02:04
  76. >    ===== /etc/rc running ======    
  77. >    . . .
  78. >Where mine says (root@ranger).
  79. >
  80. >He's right, you do need to recompile the kernel. It has nothing to
  81. >do with /etc/issue or /etc/motd. Now, those two files might have also
  82. >contain (root@softland), my memory fades me :-), which the previous
  83. >poster could be referring to?
  84.  
  85.   Heck, at least someone agrees that, considering the fact that the
  86. ORIGINAL poster did not specify WHICH (root@softland) he wanted to
  87. change, I should be given the liberty of assuming that he was talking
  88. about the (root@softland) during boottime.   And I really don't
  89. believe that I got totally hassled because of that post.  *sigh*
  90.  
  91.   But tell me.  I was technically right, right?  I just want some
  92. reassurance because after two "No you are definitely wrong" email,
  93. I got kinda jittery with even posting on here...  
  94.  
  95. >
  96.  
  97.  
  98.  
  99.  
  100. -- 
  101. InterNet: wonge@fraser.sfu.ca  |  "Fail not; Learn Not.
  102.                                |  It is with failing, that one learns,
  103.                                |  So by Learning, one must fail." - Edmund Wong
  104.