Last active
August 29, 2015 13:57
-
-
Save metalefty/9502092 to your computer and use it in GitHub Desktop.
EC2でFreeBSDを動かすときの初期設定をよろしくやるためのユーザデータ
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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