This repository was archived by the owner on Jan 28, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathVagrantfile
More file actions
50 lines (41 loc) · 1.29 KB
/
Vagrantfile
File metadata and controls
50 lines (41 loc) · 1.29 KB
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
Vagrant.configure("2") do |config|
config.vm.box = "ubuntu/jammy64"
config.vm.network "public_network"
config.vm.network "forwarded_port", guest: 4242, host: 4242, auto_correct: true, protocol: "tcp"
config.vm.provider "virtualbox" do |vb|
vb.gui = true
vb.cpus = 2
vb.memory = "4096"
vb.customize ["modifyvm", :id, "--vram", "128"]
vb.customize ["modifyvm", :id, "--clipboard-mode", "bidirectional"]
vb.customize ["modifyvm", :id, "--draganddrop", "bidirectional"]
end
config.vm.provision "shell", inline: <<-SHELL
apt-get update -y
DEBIAN_FRONTEND=noninteractive apt-get install -y build-essential git nasm wget jq ffmpeg btop
DEBIAN_FRONTEND=noninteractive apt-get install -y \
xfce4 \
lightdm \
lightdm-gtk-greeter \
mousepad \
thunar \
xorg \
libx11-dev \
libxrandr-dev \
libxinerama-dev \
libxcursor-dev \
libxi-dev \
libxext-dev
rm -f /bin/sh
ln -s /bin/bash /bin/sh
systemctl enable lightdm
systemctl set-default graphical.target
wget https://apt.llvm.org/llvm.sh
chmod +x llvm.sh
./llvm.sh 20
rm -rf llvm.sh*
bash /vagrant/make/vagrant-build.sh
SHELL
config.vm.provision "shell", inline: "shutdown -r now", run: "once"
end
# vi: set ft=ruby :