Sysadmin > FreeBSD > FreeBSDAfterboot

FreeBSD afterboot

  • config domain and nameserver in /etc/resolv.conf
  • add normal user (ssh) to wheel
  • proxy-config in //etc/csh.cshrc and /etc/profile
  • ntp viewtopic
    • server
    • leapsecond
    • .. wip
  • add CHANGES log
  • add TODO
  • add EXPL example commands viewtopic
  • freebsd pkg
    • pkg update
    • pkg install vim-lite
    • ... basic tools via pkg ...
    • pkg info # list installed packages
  • add handbook
    • pkg install en-freebsd-doc
    • pkg install de-freebsd-doc
    • add alias for handbook alias handbook  w3m /usr/local/share/doc/freebsd/de/books/handbook/book.html in .cshrc
  • pkgsrc (preferred tp freebsd ports) viewtopic
    • zfs create -o compress=lz4 -o mountpoint=/usr/pkgsrc -o quota=30G zroot/usr/pkgsrc
    • ./bootstrap --pkgdbdir /opt/pkg/db/pkg --prefix /opt/pkg --sysconfdir /opt/pkg/etc --workdir=/tmp/work --varbase /var/pkg
    • edit mk.conf
      • add PACKAGES= /opt/packages
      • add DISTDIR= /opt/distfiles
    • add pkgsrc to path
    • add fetch alterts to cron
    • add pkgsrc-update.sh
    • add
      • vim
      • lsof
      • screen
      • ansible
      • w3m, ...
      • misc/tmux
      • devel/scmcvs
      • devel/subversion-base
      • pkgtools/pkgclean
  • /usr/src
  • ~/bin viewtopic
  • boot environment wip
  • check hash algo (obsolet)
  • create locate database
  • configure sshd (root, port, keys) and tighten security

obsolet

  • change password hash algo in /etc/login.conf

Update the ports tree
portsnap fetch update
Eventually upgrade pkg
cd /usr/ports/ports-mgmt/pkg; make install clean
Then convert your /var/db/pkg database to the new pkg format
pkg2ng
Install update tool
cd /usr/ports/ports-mgmt/portmaster; make install clean
List categories and search for updates
portmaster -L
upgrade all outdated ports
portmaster -a