Installing FreeBSD 10.1 in VMWare

Install FreeBSD 10.1

Create a new VM machine with

  • OS Type Other, then select FreeBSD 64bit
  • 1 CPU
  • 512M DRAM
  • 50 G Disk with can be allocate as we go along

Download the a FreeBSD 10.1 AMD64 Boot ISO and boot off this image. Then select the following

  • Standard Install (others don’t fully install unless you pick all the options manually)
  • All distributions
  • Yes to the mouse
  • No packages (will build them from the ports)
  • Use the full disk for FreeBSD
  • Accept all the default mount sizes and options
  • Set the root password
  • Add your first user and invite them to the “wheel” group

Let the VM complete install and reboot. Now do the initial tasks

  • Update the ports & source tree using the process described here, make sure to use the correct RELENG tag
  • Add a cronjob to the root user to get this happening weekly. The crontab below does the following
    • Update the time
    • Update the ports tree
    • Update the docs
    • Update src tree
    • Update the locate database (which the locate command uses)
# Update time at 1am
0 1 * * * /usr/sbin/ntpdate au.pool.ntp.org > /dev/null 2>&1

# Update ports tree at 2am
0 2 * * * portsnap fetch update > /dev/null 2>&1

# Update docs tree at 3am
0 3 * * * svn update /usr/doc > /dev/null 2>&1

# Update src tree at 4am
0 4 * * * svn update /usr/src > /dev/null 2>&1

# Update locate db at 5am
0 4 * * * /usr/libexec/locate.updatedb > /dev/null 2>&1
  • Build a specific kernel if you like as shown here
  • Update your ip addressing and resolve.conf as required
  • Update your fstab & SMB mounts

I then I like to install the following packages:

  • Install zsh (/usr/ports/shells/zsh)
  • Install vim without X11 support (/usr/ports/editors/vim-lite)
    • The editors/vim includes gvim, the gtk version of vim.  If you just want the command-line vim, install editors/vim-lite
  • Install net-snmp (/usr/ports/net-mgmt/net-snmp/)
  • Install nmap (/usr/ports/security/nmap/)
  • Install calc (/usr/ports/math/calc)
  • Install whatmask (/usr/ports/net-mgmt/whatmask)
  • Install expect (/usr/ports/lang/expect)
  • Install wget (/usr/ports/ftp/wget)
  • Install quagga (/usr/ports/net/quagga)
  • Install SOAP:Lite (/usr/ports/net/p5-SOAP-Lite)
  • Install Dumper (/usr/ports/devel/p5-Data-Dumper)
  • Install XML:Xpath (/usr/ports/textproc/p5-XML-XPath)
  • Install Expect for perl (/usr/ports/lang/p5-Expect)
  • Install Net::SNMP (/usr/ports/net-mgmt/p5-Net-SNMP)
  • Install Socket (/usr/ports/net/p5-Socket)
  • Move the users crontabs
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s