2010-12-02 03:32:06 +00:00
|
|
|
#!/bin/sh
|
2013-07-03 14:25:57 +00:00
|
|
|
size=1048576 #in MB
|
|
|
|
arch=amd64 #i368 or amd64
|
|
|
|
password=pandora
|
|
|
|
|
|
|
|
hypervisor=vbox #vbox or kvm
|
|
|
|
|
|
|
|
extra=""
|
|
|
|
|
|
|
|
#make available as pandora.local
|
|
|
|
extra="--addpkg avahi-daemon"
|
|
|
|
|
|
|
|
#to create and include in libvirt:
|
|
|
|
#hypervisor=kvm
|
|
|
|
#extra="--libvirt qemu:///system"
|
|
|
|
|
2010-12-02 03:32:06 +00:00
|
|
|
base=$(pwd)
|
2012-04-19 12:43:54 +00:00
|
|
|
sudo vmbuilder vbox ubuntu --suite=precise \
|
2010-12-02 03:32:06 +00:00
|
|
|
--verbose --debug \
|
2013-07-03 14:25:57 +00:00
|
|
|
--arch $arch \
|
2012-03-23 20:57:43 +00:00
|
|
|
--flavour generic \
|
2010-12-02 03:32:06 +00:00
|
|
|
--dest $base/pandora \
|
|
|
|
--hostname pandora \
|
|
|
|
--swapsize 512 \
|
2013-07-03 14:25:57 +00:00
|
|
|
--rootsize $size \
|
2010-12-02 03:32:06 +00:00
|
|
|
--user pandora \
|
2013-07-03 14:25:57 +00:00
|
|
|
--pass $password \
|
2010-12-02 03:32:06 +00:00
|
|
|
--components main,universe,multiverse \
|
|
|
|
--ppa j/pandora \
|
|
|
|
--addpkg openssh-server \
|
|
|
|
--addpkg acpid \
|
|
|
|
--addpkg vim \
|
|
|
|
--addpkg wget \
|
|
|
|
--addpkg pwgen \
|
|
|
|
--addpkg nginx \
|
|
|
|
--addpkg rabbitmq-server \
|
|
|
|
--addpkg bzr \
|
|
|
|
--addpkg git \
|
|
|
|
--addpkg subversion \
|
|
|
|
--addpkg mercurial \
|
2012-10-09 10:44:36 +00:00
|
|
|
--addpkg update-manager-core \
|
|
|
|
--addpkg python-software-properties \
|
2010-12-02 03:32:06 +00:00
|
|
|
--addpkg python-setuptools \
|
|
|
|
--addpkg python-pip \
|
|
|
|
--addpkg python-virtualenv \
|
|
|
|
--addpkg python-imaging \
|
|
|
|
--addpkg python-dev \
|
|
|
|
--addpkg python-imaging \
|
|
|
|
--addpkg python-numpy \
|
|
|
|
--addpkg python-psycopg2 \
|
2013-01-31 08:44:30 +00:00
|
|
|
--addpkg python-pyinotify \
|
2010-12-02 03:32:06 +00:00
|
|
|
--addpkg python-simplejson \
|
2011-12-30 20:47:40 +00:00
|
|
|
--addpkg python-lxml \
|
|
|
|
--addpkg python-html5lib \
|
2012-06-11 10:25:10 +00:00
|
|
|
--addpkg python-ox \
|
|
|
|
--addpkg python-gst0.10 \
|
|
|
|
--addpkg gstreamer0.10-plugins-good \
|
|
|
|
--addpkg gstreamer0.10-plugins-bad \
|
2010-12-02 03:32:06 +00:00
|
|
|
--addpkg oxframe \
|
2012-12-16 18:56:54 +00:00
|
|
|
--addpkg libavcodec-extra-53 \
|
|
|
|
--addpkg libav-tools \
|
2012-04-19 12:43:54 +00:00
|
|
|
--addpkg ffmpeg2theora \
|
2013-03-24 12:28:57 +00:00
|
|
|
--addpkg imagemagick \
|
2013-07-03 14:25:57 +00:00
|
|
|
--firstboot=$base/firstboot.sh \
|
|
|
|
$extra
|