Greg's setting up a new FreeBSD system
started July 2017
Greg's diary
Greg's home page
HOWTO index
Google
Work in progress. Caveat lector

This is the current version of a saga that goes back decades. Gradually it's taking shape, but this page is laid out just barely sufficiently for me to understand it. Older versions include http://narrawin.lemis.com/grog/HOWTO/newsystem-newest.php, dated 25 December 2012.

The steps:

Configuration

Version of Tue 25 Dec 2012 15:39:55 EST

This is only (and barely) of historical interest. I'm keeping it here as a source of text blocks.

start again with VM

install system

mount /eureka, /eureka/home, /eureka/src -> /src

=== root@eureka (/dev/pts/6) /home/Sysconfig/scripts 29 -> cd /home
You have mail in /var/mail/grog
=== root@eureka (/dev/pts/6) /home 30 -> ls -l
total 1
drwxrwxr-x    2 root    operator     512 20 Dec 10:01 .snap
drwxr-xr-x  109 grog    wheel       2560  8 Oct 10:09 Book
drwxr-xr-x   11 root    wheel        512 26 Oct  2011 OLD-STUFF
lrwxr-xr-x    1 root    wheel         21  9 Jul 11:41 Sysconfig -> /src/Sysconfig/eureka
drwxr-xr-x   13 grog    wheel        512 12 Apr  2010 Texts
drwxr-xr-x   17 chris   wheel       1024  9 Nov  2011 chris
drwxr-xr-x  369 grog    lemis     123392 25 Dec 15:45 grog
drwxr-xr-x   20 grog    lemis       1024  8 Jul 11:53 grog.local
drwxr-xr-x    5 grog    wheel        512 21 Dec 11:45 house
drwxr-xr-x    4 root    wheel        512 26 Dec  2011 local
drwxr-xr-x    8 grog    wheel       2048 12 Jan  2007 monkey
lrwxr-xr-x    1 root    wheel         21 19 Dec  2011 ncvs -> /src/CVS/FreeBSD/ncvs
drwxr-xr-x   71 grog    lemis       2048 25 Dec 04:44 ports
drwxr-xr-x   23 grog    lemis       1024 26 Oct  2011 src
drwxrwxrwt  351 root    wheel      31744 25 Dec 15:56 tmp
drwxr-xr-x    7 root    wheel        512 11 Jul 08:19 var
drwxr-xr-x    5 grog    wheel        512 28 Feb  2011 w3
drwxr-xr-x   42 yana    home        4608 28 Dec  2011 yana
drwxr-xr-x   27 yvonne  home        1024 25 Dec 15:45 yvonne
=== root@eureka (/dev/pts/6) /home 31 -> pd /src/Sysconfig/
/src/Sysconfig /home
=== root@eureka (/dev/pts/6) /src/Sysconfig 32 -> l
total 1
drwxr-xr-x   4 grog  wheel  512 16 Feb  2007 Master
drwxr-xr-x   5 grog  wheel  512  5 Apr  2005 asterix
drwxr-xr-x   5 root  wheel  512  6 Oct 22:23 battunga
drwxrwxrwx   3 root  wheel  512 12 Apr  2008 boskoop
drwxr-xr-x   6 grog  wheel  512 21 Sep  2009 brewer
drwxr-sr-x   4 grog  50     512 23 Nov  2006 ceeveear
drwxr-xr-x   4 root  wheel  512 10 Mar  2007 cvr2
drwxr-xr-x  11 root  wheel  512 28 Sep 13:09 dereel

drwxr-xr-x  10 root  wheel  512 24 Dec 17:17 echunga
drwxr-xr-x   9 grog  wheel  512 10 Mar  2009 eucla
drwxr-xr-x   3 grog  wheel  512 14 Sep  2006 eucla-MySQL
drwxr-xr-x   9 grog  wheel  512 30 Oct  2005 eucla-Rocksoft
drwxr-xr-x  10 root  wheel  512 24 Dec 17:17 eureka
drwxr-xr-x   7 root  wheel  512 27 Jul  2008 eureka.old
drwxr-xr-x  10 root  wheel  512 21 Mar  2010 foo
drwxr-xr-x  10 root  wheel  512 21 Mar  2010 foofoo
drwxr-xr-x  10 root  wheel  512  2 Sep  2009 kimchi
drwxr-xr-x   5 root  wheel  512  6 Oct 22:23 lagoon
drwxr-xr-x   7 grog  wheel  512 21 Mar  2005 mojave
drwxr-xr-x   5 root  wheel  512 11 Apr  2007 monorchid
drwxr-xr-x   5 grog  wheel  512  4 Jan  2005 naan
drwxr-xr-x   7 grog  wheel  512 22 Mar  2005 obelix
drwxr-xr-x   6 grog  wheel  512 17 Sep  2006 oldteevee
drwxr-xr-x   4 root  wheel  512 11 Nov  2007 pong-gw
drwxr-xr-x   6 grog  wheel  512 27 Sep  2005 quartet
drwxr-xr-x   3 root  wheel  512 21 Mar  2010 src
drwxr-xr-x  10 grog  wheel  512  9 Jul  2009 swamp
drwxr-xr-x   9 root  wheel  512 11 Feb  2008 swamp.old
drwxr-xr-x   6 grog  wheel  512 18 Oct  2011 teevee
drwxr-xr-x   7 grog  wheel  512 21 Mar  2005 teevee-old
drwxr-xr-x   7 grog  wheel  512 12 Jun  2007 tv2
drwxr-xr-x   6 grog  wheel  512 26 Aug  2006 tv2-old
drwxr-xr-x   7 root  wheel  512 28 Jun  2008 w3
drwxr-xr-x  11 root  wheel  512 28 Sep 13:09 wantadilla
drwxr-xr-x   7 grog  wheel  512 23 Sep  2005 zaphod
=== root@eureka (/dev/pts/6) /src/Sysconfig 33 -> mkdir stable-amd64
drwxr-xr-x   7 grog  wheel  512 23 Sep  2005 zaphod
=== root@eureka (/dev/pts/6) /src/Sysconfig 33 -> mkdir stable-amd64
=== root@eureka (/dev/pts/6) /src/Sysconfig 34 -> cd eureka
=== root@eureka (/dev/pts/6) /src/Sysconfig/eureka 35 -> tar cf - .|(cd ../stable-amd64/ && tar xvf
-)


On stable:



cd /home
ln -s /src/Sysconfig/stable-amd64 Sysconfig
ln -s /eureka/home/local
kldload linux
cd scripts
make packages

This will take a long time. Meanwhile:

  • Add users. Check etc/master.passwd and /etc/group:

    === root@eureka (/dev/pts/13) /etc 115 -> mv group group.orig
    === root@eureka (/dev/pts/13) /etc 115 -> mv master.passwd master.passwd.orig
    === root@eureka (/dev/pts/13) /etc 115 -> co -d group master.passwd
    cd /etc
    
    rcsdiff -wu master.passwd group>/dev/null | less
    
    pwd_mkdb -p /etc /etc/master.passwd
    newaliases
    
  • Update files in /etc:
    cd /etc
    rcsdiff -wu RCS/* 2>/dev/null | less
    
    Fix any conflicts, in particular /etc/group and /etc/master.passwd. If you change /etc/master.passwd, note that you'll have to regenerate /etc/passwd after rebooting to the new system.
  • Check out any files missing in /etc:

    rcsdiff -wu RCS/* 2>&1 >/dev/null | grep "No such file"|sed 's/rcsdiff:/co -M /; s/:.*//'|sh
    

    For each file, decide what to do.

  • XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    This is a part of the new system HOWTO pages. It relates to upgrading an existing machine by installing a new system on a new disk. See the main page for other options. This is very much the way I do things, and certain aspects are not useful elsewhere.

    See also newsystem-scraps


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

    Valid XHTML 1.0!

    $Id: newsystem-newest.php,v 1.3 2013/01/06 04:33:11 grog Exp grog $