Instructions for creating the Parallels environment.
Created
December 10, 2011 15:08
-
-
Save BennettSmith/1455369 to your computer and use it in GitHub Desktop.
Create a 1Hut Linux Template on Parallels
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
.DS_Store | |
*.iso |
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/bash | |
BUILD=$1 | |
if [ "X$BUILD" == "X" ] | |
then | |
echo "Usage: apt-get.sh <machine-name>" | |
exit -1 | |
fi | |
prlctl exec "$BUILD" apt-get install --yes --force-yes build-essential | |
prlctl exec "$BUILD" apt-get install --yes --force-yes g++ | |
prlctl exec "$BUILD" apt-get install --yes --force-yes gdb | |
prlctl exec "$BUILD" apt-get install --yes --force-yes git-core | |
prlctl exec "$BUILD" apt-get install --yes --force-yes zip | |
prlctl exec "$BUILD" apt-get install --yes --force-yes unzip | |
prlctl exec "$BUILD" apt-get install --yes --force-yes zlib1g zlib1g-dbg zlib1g-dev zlib-bin zlibc | |
prlctl exec "$BUILD" apt-get install --yes --force-yes openssl openssl-doc libssl-dev | |
prlctl exec "$BUILD" apt-get install --yes --force-yes libncurses5 libncurses5-dbg libncurses5-dev | |
prlctl exec "$BUILD" apt-get install --yes --force-yes ncurses-base ncurses-bin ncurses-term | |
prlctl exec "$BUILD" apt-get install --yes --force-yes libbz2-dev | |
prlctl exec "$BUILD" apt-get install --yes --force-yes python-dev | |
prlctl exec "$BUILD" apt-get install --yes --force-yes python2.6-dev python2.6-doc python2.6-examples | |
prlctl exec "$BUILD" apt-get install --yes --force-yes python-software-properties | |
prlctl exec "$BUILD" apt-get install --yes --force-yes mesa-common-dev | |
prlctl exec "$BUILD" apt-get install --yes --force-yes libgl1-mesa-dev libglu1-mesa-dev | |
prlctl exec "$BUILD" apt-get install --yes --force-yes libsdl-image1.2 libsdl-image1.2-dev | |
prlctl exec "$BUILD" apt-get install --yes --force-yes openssh-server | |
prlctl exec "$BUILD" add-apt-repository ppa:pitti/postgresql | |
prlctl exec "$BUILD" apt-get update --yes --force-yes | |
prlctl exec "$BUILD" apt-get install --yes --force-yes postgresql-9.1 | |
prlctl exec "$BUILD" apt-get install --yes --force-yes postgresql-9.1-dbg | |
prlctl exec "$BUILD" apt-get install --yes --force-yes postgresql-client-9.1 | |
prlctl exec "$BUILD" apt-get install --yes --force-yes postgresql-contrib-9.1 | |
prlctl exec "$BUILD" apt-get install --yes --force-yes postgresql-doc-9.1 | |
prlctl exec "$BUILD" apt-get install --yes --force-yes postgresql-server-dev-9.1 |
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/bash | |
#export DISTRO=desktop | |
export DISTRO=server | |
#export BITS=32 | |
export BITS=64 | |
#export RELEASE=10.04-LTS | |
export RELEASE=11.10 | |
export URL="http://www.ubuntu.com/start-download?distro=${DISTRO}&bits=${BITS}&release=${RELEASE}" | |
export OUTPUT=ubuntu-${DISTRO}-${RELEASE}-${BITS}.iso | |
#export URL="http://releases.ubuntu.com/natty/ubuntu-11.04-alternate-i386.iso" | |
#export OUTPUT=ubuntu-11.04-alternate-i385.iso | |
# Only download the ISO if it is not already present. In order to | |
# re-download you must first remove the existing iso. | |
if [ ! -f $OUTPUT ]; then curl --location $URL --output $OUTPUT; fi | |
export BASEBOX="1Hut Base Box" | |
prlctl delete "$BASEBOX" | |
prlctl create "$BASEBOX" --ostype linux --distribution ubuntu | |
prlctl set "$BASEBOX" --cpus 1 | |
prlctl set "$BASEBOX" --memsize 384 | |
prlctl set "$BASEBOX" --description $BASEBOX | |
prlctl set "$BASEBOX" --device-set hdd0 --size 10000 | |
prlctl set "$BASEBOX" --device-set cdrom0 --image $OUTPUT | |
prlctl start "$BASEBOX" | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment