-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathVagrantfile
69 lines (47 loc) · 1.94 KB
/
Vagrantfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
# -*- mode: ruby -*-
# vi: set ft=ruby :
VAGRANT_COMMAND = ARGV[0]
Vagrant.configure(2) do |config|
if VAGRANT_COMMAND == "ssh"
config.ssh.username = 'other_username'
end
config.vm.box = "archlinux/archlinux"
config.vm.provider "virtualbox" do |vb|
vb.gui = true
vb.memory = "2048"
end
# pacman_conf = <<-CONF
# [archlinuxfr]
# SigLevel = Optional TrustAll
# Server = http://repo.archlinux.fr/\\$arch
# CONF
# echo "Pacman conffiguration"
# egrep --quiet "^[archlinuxfr]" /etc/pacman.conf
# if [ $? -ne 0 ]; then
# sudo sh -c "echo '#{pacman_conf}' >> /etc/pacman.conf"
# fi
config.vm.provision "shell", privileged: false, inline: <<-SHELL
sudo pacman -Suy --noconfirm
sudo pacman -S --noconfirm binutils gcc pkg-config fakeroot
sudo pacman -S --noconfirm make git wget
cd /tmp/
wget --quiet https://aur.archlinux.org/cgit/aur.git/snapshot/package-query.tar.gz
tar xzvf package-query.tar.gz
cd package-query
makepkg -si --noconfirm # -s, checks for dependencies; -i, installs the pkg with pacman
cd ..
wget --quiet https://aur.archlinux.org/cgit/aur.git/snapshot/yaourt.tar.gz
tar xzvf yaourt.tar.gz
cd yaourt
makepkg -si --noconfirm
mkdir -p /home/vagrant/projects/personal/
git clone https://github.com/hicolour/.personal-exmaple.git /home/vagrant/projects/personal/.personal-example
ln -s /home/vagrant/proje--noconfirm cts/personal/.personal-example /home/vagrant/.personal
echo "this=hal9000" > /home/vagrant/.personal/this
git clone https://github.com/hicolour/env.git /home/vagrant/projects/personal/env
cd /home/vagrant/projects/personal/env
make base
# sudo wget -O /opt/eclipse-java-luna-SR2-linux-gtk-x86_64.tar.gz http://ftp.fau.de/eclipse/technology/epp/downloads/release/luna/SR2/eclipse-java-luna-SR2-linux-gtk-x86_64.tar.gz
# cd /opt/ && sudo tar -zxvf eclipse-java-luna-SR2-linux-gtk-x86_64.tar.gz
SHELL
end