diff --git a/vagrantSandbox/README b/vagrantSandbox/README index d631a58ea..1db210727 100644 --- a/vagrantSandbox/README +++ b/vagrantSandbox/README @@ -72,6 +72,9 @@ compiling Foam - opensuse13 :: OpenSUSE 13.1 machine. The current LTS-version of OpenSUSE + - archlinux :: An ArchLinux-machine. Might take a long time during + provisioning as the script updated the full + OS. Some machines (read: the BSD-boxes) need the =VirtualBox Extension Pack= installed (because they have USB 2.0) * Scripts in the machine diff --git a/vagrantSandbox/Vagrantfile b/vagrantSandbox/Vagrantfile index cdfb8ac6f..1b0403244 100644 --- a/vagrantSandbox/Vagrantfile +++ b/vagrantSandbox/Vagrantfile @@ -154,4 +154,14 @@ Vagrant.configure("2") do |config| opensuse13.vm.hostname="opensuse13."+config.vm.hostname end + config.vm.define :archlinux do |archlinux| + archlinux.vm.box = "terrywang/archlinux" + archlinux.vm.box_check_update = true + archlinux.vm.provision :shell do |s| + s.args = "archlinux" + s.path = "initArchlinuxScript.sh" + end + archlinux.vm.hostname="archlinux."+config.vm.hostname + end + end diff --git a/vagrantSandbox/initArchlinuxScript.sh b/vagrantSandbox/initArchlinuxScript.sh new file mode 100755 index 000000000..7c798d2cf --- /dev/null +++ b/vagrantSandbox/initArchlinuxScript.sh @@ -0,0 +1,40 @@ +#! /bin/bash + +boxName=$1 + +echo +echo "Init script for $boxName" +echo + +echo +echo "Full update of the system" +echo + +pacman -Syu + +yaourt --noconfirm -S rpm-org + +neededPackages=(gcc-fortran ccache mercurial bison flex git ) +bonusPackages=(emacs tcsh) +thirdpartyPackages=(openmpi cmake hwloc) + +for p in ${neededPackages[@]}; do + pacman --noconfirm -S $p +done + +for p in ${bonusPackages[@]}; do + pacman --noconfirm -S $p +done + +for p in ${thirdpartyPackages[@]}; do + pacman --noconfirm -S $p +done + +echo +echo "Archlinux-specific ended. Now doing general stuff" +echo + +/vagrant/initGeneralScript.sh + +echo +echo "Ended" diff --git a/vagrantSandbox/initGeneralScript.sh b/vagrantSandbox/initGeneralScript.sh index 086fdf1ed..01448705e 100755 --- a/vagrantSandbox/initGeneralScript.sh +++ b/vagrantSandbox/initGeneralScript.sh @@ -12,6 +12,7 @@ do else echo "Copying $target from skeleton" cp -r "/vagrant/skel/$f" $target + chown -R vagrant:vagrant $target fi done