Skip to content

Instantly share code, notes, and snippets.

@cabrinha
Last active August 29, 2015 14:19
Show Gist options
  • Save cabrinha/4c96d0746fb0afe8d70a to your computer and use it in GitHub Desktop.
Save cabrinha/4c96d0746fb0afe8d70a to your computer and use it in GitHub Desktop.
Install script for FreeBSD 10.1
#!/bin/sh
export BATCH=yes # Dont prompt me bro
freebsd-update fetch # fetch the update
freebsd-update install # install the update
portsnap fetch extract update # extract and update the ports
cd /usr/ports/editors/vim-lite && make all install clean
cd /usr/ports/shells/bash && make all install clean
cd /usr/ports/dns/bind-tools && make all install clean
cd /usr/ports/net/rsync && make all install clean
cd /usr/ports/editors/joe && make all install clean # who uses joe? lol
cd /usr/ports/ftp/wget && make all install clean
cd /usr/ports/ftp/curl && make all install clean
cd /usr/ports/security/sudo && make all install clean
echo 'source /usr/home/$SUDO_USER/.bashrc' >> /root/.bashrc
# Probably need to write more in the future to configure sudoers and my .vimrc and such
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment