Skip to content

Instantly share code, notes, and snippets.

@metalefty
Last active August 29, 2015 13:57
Show Gist options
  • Save metalefty/9502092 to your computer and use it in GitHub Desktop.
Save metalefty/9502092 to your computer and use it in GitHub Desktop.
EC2でFreeBSDを動かすときの初期設定をよろしくやるためのユーザデータ
#!/bin/sh
sed -i.bak -e 's/portsnap\.FreeBSD\.org/portsnap.club.kyutech.ac.jp/' /etc/portsnap.conf
portsnap fetch extract
echo 'DEFAULT_VERSIONS= ruby=2.1 perl=5.16' >> /etc/make.conf
echo 'MASTER_SITE_OVERRIDE?=http://mirror.club.kyutech.ac.jp/pub/FreeBSD/distfiles/${DIST_SUBDIR}/' >> /etc/make.conf
yes | pkg install sudo vim-lite lv portmaster
echo '%wheel ALL=(ALL) NOPASSWD: ALL' >> /usr/local/etc/sudoers
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment