Archive for the ‘FreeBSD’ Category

FreeBSD Base System Quick Install Notes Part II

Tuesday, November 29th, 2005

install screen…

# cd /usr/ports/sysutils/screen
# make install distclean
install apache…

# cd /usr/ports/www/apache2
# make install distclean
install php4…

# cd /usr/ports/lang/php4
# make install distclean
install php4-extensions…

# cd /usr/ports/lang/php4-extensions
# make install distclean
install samba…

# cd /usr/ports/net/samba
# make install distclean
install python …

# cd /usr/ports/lang/python
# make install distclean
various python modules…

FreeBSD Base System Quick Install Notes

Monday, November 28th, 2005

I’ve recently discovered the FreeBSD GEOM project and while creating a server to house my many projects I recently had to dig out some old notes and come up with some new ones. Here are my quick and dirty notes to self so I don’t have to find paper anymore:

  • Install FreeBSD 5.4 or latest stable (minimum install)
  • Before rebooting [alt]-[F4] to open a new terminal then:

    # sysctl kern.geom.debugflags=16
    # gmirror label -v -b round-robin gm0 /dev/ad0
    # echo geom_mirror_load="YES" > /boot/loader.conf
    # pkg_add -r cvsup-without-gui
    # pkg_add -r bash2
    # pkg_add -r nano
    # rehash

    # cp /etc/fstab /etc/fstab.old

    (change all /dev/ad0 references to /dev/mirror/gm0)
    # nano -w /etc/fstab
    *or*
    # sed -e 's/\/dev\/ad/\/dev\/mirror\/gm/g' /etc/fstab.old > /etc/fstab

    Now change your default shell to BASH

    # chsh

    Change the Shell: /bin/csh line to: Shell: /usr/local/bin/bash2

  • Reboot
  • After a sucessful reboot:

    # gmirror insert gm0 /dev/ad2
    # gmirror list | more
    # gmirror status

  • Now to get ports up to date and rolling:

    # cp /usr/share/examples/etc/make.conf /etc/make.conf
    # cp /usr/share/examples/cvsup/standard-supfile /usr
    # cp /usr/share/examples/cvsup/ports-supfile /usr
    # chmod u+w /etc/make.conf /usr/standard-supfile /usr/ports-supfile

  • Edit these config files and change the CHANGE_THIS.FreeBSD.org to an official mirror between cvsup1.FreeBSD.org to cvsup9.FreeBSD.org
  • Finally, run cvsup -g -L 2 /usr/ports-supfile and cvsup -g -L 2 /usr/standard-supfile. Now is a good time to grab a drink, take a nap, read a book, etc.

References: