home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.os.linux
- Path: sparky!uunet!cs.utexas.edu!qt.cs.utexas.edu!yale.edu!jvnc.net!darwin.sura.net!Sirius.dfn.de!Urmel.Informatik.RWTH-Aachen.DE!gandalf!michael
- From: michael@gandalf.moria (Michael Haardt)
- Subject: Re: HOSTNAME usage?
- Message-ID: <9208311775@gandalf.moria>
- Lines: 59
- Sender: news@Urmel.Informatik.RWTH-Aachen.DE (Newsfiles Owner)
- Nntp-Posting-Host: messua
- Reply-To: u31b3hs@pool.informatik.rwth-aachen.de (Michael Haardt)
- Organization: An old and gray machine, somewhere in Moria.
- References: <1992Aug28.185449.22092@serval.net.wsu.edu>
- Date: Mon, 31 Aug 92 20:48:22 +0100
- Lines: 59
-
- In article <1992Aug28.185449.22092@serval.net.wsu.edu>, hlu@fili.eecs.wsu.edu (H.J. Lu) writes:
- > In article <1425@yetti.UUCP>, frank@cs.yorku.ca (Frank Pikelner) writes:
- > |> Since the installation of Linux I have decided to change the name of the machine
- > |> from the original. I have tried to use the HOSTNAME program but it only changes
- > |> the name temporarily until I reboot. Is there a way to make it permanent? It is
- > |> probably something simple that I've overlooked like a file or an option when
- > |> running the HOSTNAME program.
- >
- > Put that line in /etc/rc.local.
-
- I wanted to ask that since a while, but now where you bring it up: What rc
- files etc. should be used and how?
-
- When I used Minix, things were simple. I had /etc/rc, and that's it. Now
- I have a real init with runlevels. I read about mount table files which
- specify the disks to mount. (btw: Is that finished?)
-
- There is documentation about all these things, you just never get told *how
- things usually are installed*, and for various reasons I don't want to look
- at the HPs in uni and install it like that :(
-
- To make a start, here is my /etc/rc:
-
- #!/bin/sh
- /bin/rootdev > /etc/mtab
- /usr/bin/cat /dev/null > /etc/utmp
- /bin/hostname gandalf
- /bin/swapon /dev/swap
- TERM=con80x25 /usr/bin/setterm -blank 10
- /usr/bin/rm -f /etc/nologin
-
- That is my /etc/inittab: (using the SYS V init, of course:)
-
- # Level to run in
- id:5:initdefault::
- #dt::sysinit:/usr/bin/date -h
- ud::boot:/etc/update
- rc::bootwait:/etc/rc
- pwr::powerfail:/bin/echo Power failure test ...
- # Test entry for ondemand (works!)
- od:a:ondemand:/usr/bin/sleep 2
- cr::boot:/etc/crond
- # Bootlevel 0: test purposes
- c0:0:respawn:/bin/getty 9600 tty1
- # Normal levels:
- c1:123456:respawn:/bin/getty 9600 tty1
- c2:23456:respawn:/bin/getty 9600 tty2
- c3:3456:respawn:/bin/getty 9600 tty3
- c4:456:respawn:/bin/getty 9600 tty4
- t1:56:respawn:/bin/getty 19200 ttys3
-
- Ok, what about /etc/fastboot, /etc/rc.local and these? What should be
- done in /etc/rc? Where should filesystems be checked (assuming I would
- have more HDs)? Are there scripts to be executed when changing to
- single user more? What run levels are usually used for what?
-
- Perhaps we can come up with something to add to the FAQ or rootdisk.
-
- Michael
-