Created
April 8, 2010 21:13
-
-
Save driedtoast/360547 to your computer and use it in GitHub Desktop.
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
## Update more packages | |
yum -c yum.all.repo --installroot="/mnt/$BASE_NAME" -y erase cups ## erase printing, can do more customization here as well | |
yum -c yum.all.repo --installroot="/mnt/$BASE_NAME" -y install fuse-devel fuse fuse-encfs fuse-libs fuse-sshfs java-1.6.0-openjdk xen-runtime ruby | |
## update services | |
/usr/sbin/chroot "/mnt/$BASE_NAME" /sbin/chkconfig --level 1345 sshd --add | |
/usr/sbin/chroot "/mnt/$BASE_NAME" /sbin/chkconfig --level 1345 sshd on | |
/usr/sbin/chroot "/mnt/$BASE_NAME" /sbin/chkconfig --level 345 ip6tables off | |
## add scripts to startup | |
cp -R /$SCRIPT_DIR/* "/mnt/$BASE_NAME/$SCRIPT_DIR" | |
chmod +x /mnt/$BASE_NAME/$SCRIPT_DIR/* | |
echo "source /$SCRIPT_DIR/awssetup" >> /mnt/$BASE_NAME/etc/rc.local | |
## wrap everything up | |
yum -c yum.all.repo --installroot="/mnt/$BASE_NAME" clean all | |
sync | |
umount "/mnt/$BASE_NAME/proc" | |
umount "/mnt/$BASE_NAME" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment