-
Notifications
You must be signed in to change notification settings - Fork 0
/
Vagrantfile
41 lines (34 loc) · 1.42 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
Vagrant.configure("2") do |config|
config.vm.box = "debian/bullseye64"
config.vm.provider "virtualbox" do |vb|
vb.memory = 10240
vb.cpus = 10
end
config.vm.provision "shell", inline: <<-SHELL
export DEBIAN_FRONTEND=noninteractive
apt-get update
apt-get install -y binutils build-essential bzip2 clang curl git \
libpcap-dev libssl-dev make net-tools openssl \
python3 python3-distutils tcpdump valgrind wget zsh
wget https://nmap.org/dist/nmap-7.94.tar.bz2
bzip2 -cd nmap-7.94.tar.bz2 | tar xvf -
cd nmap-7.94
./configure
make -j
make install
cp nmap-services /etc/services
cd ..
rm -rf nmap-*
su -l vagrant -s "/bin/sh" -c "curl -fsSO https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh; chmod 755 install.sh; ./install.sh --unattended"
sed -i 's/ZSH_THEME=".*"/ZSH_THEME="jonathan"/g' /home/vagrant/.zshrc
chsh -s /bin/zsh vagrant
echo "cd /vagrant" >> /home/vagrant/.zshrc
ln -fs /usr/share/zoneinfo/Europe/Paris /etc/localtime
echo "Europe/Paris" > /etc/timezone
dpkg-reconfigure -f noninteractive tzdata
echo "vagrant hard nofile 1048576" >> /etc/security/limits.conf
echo "vagrant soft nofile 1048576" >> /etc/security/limits.conf
echo "root hard nofile 1048576" >> /etc/security/limits.conf
echo "root soft nofile 1048576" >> /etc/security/limits.conf
SHELL
end