home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / os / linux / 23501 < prev    next >
Encoding:
Internet Message Format  |  1993-01-10  |  3.5 KB

  1. Path: sparky!uunet!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!rutgers!att-out!cbfsb!cbnewsg.cb.att.com!wto
  2. From: wto@cbnewsg.cb.att.com (William T. O Connell)
  3. Newsgroups: comp.os.linux
  4. Subject: Re: quick q
  5. Summary: clarification
  6. Message-ID: <1993Jan11.004800.22005@cbfsb.cb.att.com>
  7. Date: 11 Jan 93 00:48:00 GMT
  8. References: <1993Jan6.071608.4248@wuecl.wustl.edu> <1993Jan10.202059.5632@csd.uwe.ac.uk>
  9. Sender: news@cbfsb.cb.att.com
  10. Organization: AT&T
  11. Lines: 83
  12.  
  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. > |> >Put 'hostname <something you like>' in you rc file.
  21. > it's usually specified in the rc.local (for linux)
  22. > |> trying to ask is that (root@softland) thing.  Well. Considering he
  23. > |> didn't specify where, I could be given some leeway in interpretation here.
  24. > |> But like, for that (root@softland) to be changed to (root@?????), I think
  25. > |> he'd need to recompile the kernel under the ????? hostname, am I correct?
  26. > wrong,....
  27. > several files come into play
  28. > /etc/issue
  29. > /etc/motd
  30. > /etc/rc.local (normally where the hostname is defined NOT the /etc/rc)
  31.  
  32. Agree, BUT it's the administrator's own preference where (s)he puts it.
  33.  
  34.  
  35. > depending on what shell (s)he runs, it can also be hard coded into your
  36. > prompt statement rather tha using enviroment variables
  37.  
  38. You say that the above responder is WRONG? Either we are talking about
  39. two different things or your post is wrong. Since he was talking about 
  40. recompiling the kernel, I believe the responder above was referring to 
  41. the line at bootup time that contains (root@softland) as follows:
  42.     . . .
  43.     Partion table ok
  44.     Linux Version 0.99.pl2-66 (root@ranger) 01/08/93 01:02:04
  45.     ===== /etc/rc running ======    
  46.     . . .
  47. Where mine says (root@ranger).
  48.  
  49. He's right, you do need to recompile the kernel. It has nothing to
  50. do with /etc/issue or /etc/motd. Now, those two files might have also
  51. contain (root@softland), my memory fades me :-), which the previous
  52. poster could be referring to?
  53.  
  54. That line is actually constructed from /usr/src/linux/tools/version.h
  55. and is be updated when you patch the kernel, i.e., these following
  56. lines were in the last patch which updated version.h.
  57.  
  58. <<< extraction from last patch >>>
  59. ***************
  60. *** 141,147 ****
  61.   
  62.   Version: dummy
  63.       @./makever.sh
  64. !     @echo \#define UTS_RELEASE \"0.99.pl1-`cat .version`\" > tools/version.h
  65.       @echo \#define UTS_VERSION \"`date +%D`\" >> tools/version.h
  66.       @echo \#define LINUX_COMPILE_TIME \"`date +%T`\" >> tools/version.h
  67.       @echo \#define LINUX_COMPILE_BY \"`whoami`\" >> tools/version.h
  68. --- 142,148 ----
  69.   
  70.   Version: dummy
  71.       @./makever.sh
  72. !     @echo \#define UTS_RELEASE \"0.99.pl2-`cat .version`\" > tools/version.h
  73.       @echo \#define UTS_VERSION \"`date +%D`\" >> tools/version.h
  74.       @echo \#define LINUX_COMPILE_TIME \"`date +%T`\" >> tools/version.h
  75.       @echo \#define LINUX_COMPILE_BY \"`whoami`\" >> tools/version.h
  76. ***************
  77. *** 149,155 ****
  78.  
  79. My copy of version.h looked like this after the patch:
  80.  
  81. #define UTS_RELEASE "0.99.pl2-66"
  82. #define UTS_VERSION "01/08/93"
  83. #define LINUX_COMPILE_TIME "01:02:09"
  84. #define LINUX_COMPILE_BY "root"
  85. #define LINUX_COMPILE_HOST "ranger"
  86.  
  87. - Bill O'Connell    wto@ihlpx.att.com
  88.