Greg's Setting up a new FreeBSD system
Greg's diary
Greg's home page
HOWTO index
Google
Note: this page is not just under development, it's mainly wrong. Please don't use it in this state; I'll remove this header when it's ready for use. In particular, I've almost completely changed how I do things.

Preparations

Installing new version of system, second system

  1. Install FreeBSD on second (backup) system.
  2. Install ports (see below).
  3. dump the backup system.
  4. restore to second root partition on primary system
  5. On primary system, edit /etc/fstab and /etc/rc.conf.
  6. On primary system, ciRCS
  7. On primary system, /destdir, check out any RCS stuff.
  8. Reboot primary system with new root partition.

After rebooting

The following problems need attention:

More old stuff

I set up enough new systems that it's becoming a pain to do all the routine things. This list is primarily for me so that I don't forget anything, but it might be useful to others as well. It's currently anything but complete, but will be updated in the course of time.

This example shows the way I use to upgrade a system wantadilla to a newer version of the system. Basically it completely replaces the /usr, /var and root file systems: it creates a new disk with the upgrade software and then installs the old configuration.

Preparations before setup

Assuming you're upgrading a system or making something very similar to another machine (in other words, cloning), you can make things easier like this:

Upgrade installation, different disk

Upgrade installation, same disk

New installation

Reinstalling ports

Current kludge, in /home/Sysconfig:
awk < installed-ports '{printf ("cd %s; %s %s %s %s %s %s %s %s\n", $7, $8, $9, $10, $11, \
$12, $13, $15, $15); }'|uniq > installports
mailme sh installports

After rebooting

This is all wrong. To be fixed.

Greg's home page Greg's diary Greg's photos Copyright

Valid XHTML 1.0!

$Id: newsystem-old.php,v 1.13 2010/09/06 02:11:36 grog Exp $