Setup 11.0 on Mac mini 2011
Operating System
- Install FreeBSD 11.0
- root password
- User(alex)
- /etc/fstab
- Comment unneccesary swap
- Add noatime option
- mkdir /home
- /etc/amd.map
- rc.conf
- /etc/resolv.conf
- /etc/ssh/sshd_config: +ChallengeResponseAuthentication no
- /etc/hosts.allow
- /etc/ipf.rules
- /etc/make.conf
- /etc/aliases
- Install /usr/ports/devel/subversion
- Install /usr/ports/net-mgmt/net-snmp
- rm -rf /usr/src ; mkdir /usr/src
- cd /usr/src
- svn co svn://svn.db.tokushima-u.ac.jp/base/releng/11.0/ .
- Configure /usr/src/sys/arch/conf/$KERNCONF
- rm -rf /usr/obj
- make buildworld
- make buildkernel
- make installkernel
- reboot
- mergemaster -p
- make installworld
- mergemaster -iFU
- yes | make delete-old
- reboot
- /etc/daily.local
- /etc/periodic.conf
- touch /etc/exports
- /etc/ttys
Mail System
- cd /etc/mail
- make install
- newaliases
Ports Collection / User Application
- rm -rf /usr/ports ; mkdir /usr/ports
- cd /usr/ports
- svn co svn://svn.db.tokushima-u.ac.jp/ports/head/ .
- Reinstall /usr/ports/ports-mgmt/pkg
- Install Ports
- /usr/ports/ports-mgmt/portupgrade
- portupgrade -afc
- Install Ports
- x11/xauth
- x11-toolkits/libXaw
- japanese/nkf
- japanese/less
- converters/base64
- devel/imake
- net/rsync
- java/openjdk7
Operating System
- cd /usr/src
- yes | make delete-old-libs
EDB/Java RMI
- Add user edb: group edb
- cd /usr/local/etc/rc.d/
- cp /home/private/edbjavarmi/rc.d/edbjavarmi .
Upgrading 11.0 to 11.1
Ports Collection
Operating System
- cd /usr/src/sys/arch/conf
- diff GENERIC $KERNCONF > $KERNCONF.diff
- cd /usr/src
- svn sw svn://svn.db.tokushima-u.ac.jp/base/releng/11.1/
- Configure /usr/src/sys/arch/conf/$KERNCONF
- rm -rf /usr/obj
- make buildworld
- make buildkernel
- make installkernel
- reboot
- mergemaster -p
- make installworld
- mergemaster -iFU
- yes | make delete-old
- reboot
Mail System
- cd /etc/mail
- make install
- newaliases
Ports Collection / User Application
- pkg-static install -f pkg
- cd /usr/local/lib/compat/pkg
- (remove old libraries)
- pkg update
- portupgrade -afc
- Recompile user applications
Operating System
- cd /usr/src
- yes | make delete-old-libs
Miscellaneous
EDB/Java RMI
- cd /usr/local/etc/rc.d/
- cp /home/private/edbjavarmi/rc.d/edbjavarmi .
ZFS
- zpool upgrade -a
- (upgrade boot partitions: gpart bootcode -b /boot/pmbr -p /boot/gptzfsboot -i 1 device)