Skip to content

Instantly share code, notes, and snippets.

@srounet
Last active December 15, 2015 09:49
Show Gist options
  • Save srounet/5241061 to your computer and use it in GitHub Desktop.
Save srounet/5241061 to your computer and use it in GitHub Desktop.
FREEBSD_9_1_EMACS_HTOP_MONGODB_ARBITRER
# VMWare 9
# Freebsd 9.1 Bootimage
# Network: Bridged
# DHCP: Auto
# Disk: 5.0 Go
# Ram: 128.0 Mo
# AllocateFullDiskSpace: Yes
#Disable rsyslog listen
echo "yslogd_flags=\"-s -s\" >> /etc/rc.conf
#Disable bootloader
touch /boot/loader.conf
echo beastie_disable=\"YES\" >> /boot/loader.conf
echo autoboot_delay=\"-1\" >> /boot/loader.conf
#Ports
portsnap fetch
portsnap extract
#Compat linux
kldload linux
cd /usr/ports/emulators/linux_base-f10 && make install distclean
echo linux_enable=\"YES\" >> /etc/rc.conf
#Emacs
cd /usr/ports/editors/emacs-nox11 && make install distclean
#Wget
cd /usr/ports/ftp/wget && make install distclean
#linproc to fstab
echo "linproc /compat/linux/proc linprocfs rw 0 0" >> /etc/fstab
mkdir -p /usr/compat/linux/proc; ln -s /usr/compat /compat; mount linproc
#Htop
cd /usr/ports/sysutils/htop && make install distclean
#Mongodb
cd /usr/ports/lang/spidermonkey17 && make install distclean
cd /usr/ports/databases/mongodb && make install distclean
echo mongod_enable=\"YES\" >> /etc/rc.conf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment