[729] in NetBSD-Development

home help back first fref pref prev next nref lref last post

New 1.0A installation procedure

daemon@ATHENA.MIT.EDU (Greg Hudson)
Tue Apr 25 01:55:13 1995

Date: Tue, 25 Apr 1995 01:53:49 -0400
From: Greg Hudson <ghudson@MIT.EDU>
To: netbsd-dev@MIT.EDU


jhawk and I have come up with a new installation procedure for NetBSD
1.0A.  (I get most of the blame; he's mostly just hacked on my scripts
to reduce the number of forks and change a few things.)  The new
installation procedure requires only a single floppy and is much more
user-friendly than the old NetBSD one.  It assumes in various places
that you're at MIT, and mounts sipb-nfs in order to make use of a more
complete filesystem during installation.  It's able to guess which
network interface to use using ifconfig -a and pinging your router, is
able to figure out your hostname by reverse-resolving your IP address,
will search for NetBSD partitions using fdisk (you still have to
create the NetBSD partition beforehand; fixing that will take some
work), asks for your partition layout in megabytes (with defaults),
and copies the kernel and does the Athena installation without
requiring any reboots.

Some notes:

	* The server-side stuff is installed from
	  /usr/src/distrib/i386/server.  You need to have DESTDIR,
	  RELEASEDIR, and SERVERDIR environment variables set to the
	  locations of the system packs, the binary sets (generated
	  from ./maketars in /usr/src/distrib/sets), and the NFS
	  server directory (mounted read-write from sipb-nfs)
	  respectively.

	* The binary sets are generated using the system packs in
	  /afs/sipb/system/i386_nbsd1, including bin/athena,
	  etc/athena, and usr/vice (I've created "athena" and "afs"
	  packing lists in addition to the base, comp, etc. packing
	  lists).  Most of the binary sets are stored in the NFS
	  installation directory (under usr/distrib) along with the
	  old binary sets, while afs.tgz is stored in
	  /u1/ftp/installkits/i386_nbsd1 (so that the FTP server can
	  do IP address verification; our mountd doesn't do that).

	* Some of what were previous considered Athena changes have
	  been folded into the NetBSD source tree to be installed in
	  the AFS system packs.  Notably, /etc/localtime,
	  /etc/services, and /etc/namedb all have MIT defaults now.
	  Also, I've created an mit.mc file in
	  /usr/src/usr.sbin/sendmail/cf/cf as well as a
	  cf/domain/mit.m4 file.  The mit.cf file generated from
	  mit.mc gets installed as /etc/sendmail.cf, while the stock
	  netbsd-proto.cf gets installed as /etc/local-sendmail.cf for
	  people who don't want the masquerade host and the mail-hub
	  set to mit.edu.

	* The optional Athena part of the installation now consists
	  of:

		- Installing /usr/vice, /bin/athena, and /etc/athena
		  from the afs and athena binary sets
		- Creating /usr/{athena,andrew,X11,X11R6} and
		  /emul/linux symlinks
		- Adding Athena remote services to /etc/inetd.conf
		- Adding /usr/athena/etc/dm line to /etc/ttys
		- Adding invocation of rc.athena to /etc/rc.local
		- Replacing /usr/bin/login
		- Setting up the AFS cache

	* We still have a few problems with the distribution, which
	  make it unusable.

		- At boot time, the script hangs during or after
		  config_afs (I haven't determined exactly where).  If
		  you hit ^C, it skips the rest of rc.athena.  I have
		  the same problem on glacier right now, and I haven't
		  figured out what the cause is yet.
		- xlogin can't find its resources correctly, and looks
		  kind of funky.
		- attach will dump core with the attach.conf we
		  distribute.
		- Even after nuking attach.conf, when I tried to log
		  in as sipbtest, it couldn't attach sipbtest's home
		  directory.

	  All but the first problem should be pretty easy to fix once
	  I figure out what's going on.


home help back first fref pref prev next nref lref last post