Setup 11.0 on Mac mini 2011

Operating System

  1. Install FreeBSD 11.0
  2. root password
  3. User(alex)
  4. /etc/fstab
    • Comment unneccesary swap
    • Add noatime option
  5. mkdir /home
  6. /etc/amd.map
  7. rc.conf
  8. /etc/resolv.conf
  9. /etc/ssh/sshd_config: +ChallengeResponseAuthentication no
  10. /etc/hosts.allow
  11. /etc/ipf.rules
  12. /etc/make.conf
  13. /etc/aliases
  14. Install /usr/ports/devel/subversion
  15. Install /usr/ports/net-mgmt/net-snmp
  16. rm -rf /usr/src ; mkdir /usr/src
  17. cd /usr/src
  18. svn co svn://svn.db.tokushima-u.ac.jp/base/releng/11.0/ .
  19. Configure /usr/src/sys/arch/conf/$KERNCONF
  20. rm -rf /usr/obj
  21. make buildworld
  22. make buildkernel
  23. make installkernel
  24. reboot
  25. mergemaster -p
  26. make installworld
  27. mergemaster -iFU
  28. yes | make delete-old
  29. reboot
  30. /etc/daily.local
  31. /etc/periodic.conf
  32. touch /etc/exports
  33. /etc/ttys

Mail System

  1. cd /etc/mail
  2. make install
  3. newaliases

Ports Collection / User Application

  1. rm -rf /usr/ports ; mkdir /usr/ports
  2. cd /usr/ports
  3. svn co svn://svn.db.tokushima-u.ac.jp/ports/head/ .
  4. Reinstall /usr/ports/ports-mgmt/pkg
  5. Install Ports
    • /usr/ports/ports-mgmt/portupgrade
  6. portupgrade -afc
  7. Install Ports
    • x11/xauth
    • x11-toolkits/libXaw
    • japanese/nkf
    • japanese/less
    • converters/base64
    • devel/imake
    • net/rsync
    • java/openjdk7

Operating System

  1. cd /usr/src
  2. yes | make delete-old-libs

EDB/Java RMI

  1. Add user edb: group edb
  2. cd /usr/local/etc/rc.d/
  3. cp /home/private/edbjavarmi/rc.d/edbjavarmi .

Upgrading 11.0 to 11.1

Ports Collection

Operating System

  1. cd /usr/src/sys/arch/conf
  2. diff GENERIC $KERNCONF > $KERNCONF.diff
  3. cd /usr/src
  4. svn sw svn://svn.db.tokushima-u.ac.jp/base/releng/11.1/
  5. Configure /usr/src/sys/arch/conf/$KERNCONF
  6. rm -rf /usr/obj
  7. make buildworld
  8. make buildkernel
  9. make installkernel
  10. reboot
  11. mergemaster -p
  12. make installworld
  13. mergemaster -iFU
  14. yes | make delete-old
  15. reboot

Mail System

  1. cd /etc/mail
  2. make install
  3. newaliases

Ports Collection / User Application

  1. pkg-static install -f pkg
  2. cd /usr/local/lib/compat/pkg
  3. (remove old libraries)
  4. pkg update
  5. portupgrade -afc
  6. Recompile user applications

Operating System

  1. cd /usr/src
  2. yes | make delete-old-libs

Miscellaneous

EDB/Java RMI

  1. cd /usr/local/etc/rc.d/
  2. cp /home/private/edbjavarmi/rc.d/edbjavarmi .

ZFS

  1. zpool upgrade -a
  2. (upgrade boot partitions: gpart bootcode -b /boot/pmbr -p /boot/gptzfsboot -i 1 device)