Skip to content

Commit add80f0

Browse files
Create setup.sh
1 parent 6bfd8c1 commit add80f0

File tree

1 file changed

+82
-0
lines changed

1 file changed

+82
-0
lines changed

standalone/setup.sh

+82
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,82 @@
1+
#!/bin/bash
2+
3+
# this script is used to build a generic development VM
4+
# after the initial setup performed with packer/base-xubuntu-prepare-for-vagrant.sh
5+
# the ROSE specific part is not included
6+
# the Docker installation is not included
7+
8+
9+
HOME_DIR="$HOME"
10+
WORKSPACE_DIR="$HOME_DIR/workspace"
11+
ROSE_VM_SCRIPTS="$WORKSPACE_DIR/rose-vm/scripts"
12+
13+
ROSE_SYS_DIR="$HOME_DIR/.rose"
14+
ROSE_SYS_INITIAL_SETUP="$ROSE_SYS_DIR/rose-vm-build/initial-setup"
15+
VENV_PATH="$HOME/.envs"
16+
17+
export TERM="linux"
18+
19+
echo "HOME=$HOME"
20+
echo "HOME_DIR=$HOME_DIR"
21+
echo "WORKSPACE_DIR=$WORKSPACE_DIR"
22+
23+
cd "$HOME_DIR" || {
24+
echo "Failure"
25+
exit 1
26+
}
27+
28+
mkdir -p "$WORKSPACE_DIR"
29+
mkdir -p "$ROSE_SYS_DIR"
30+
31+
# Update apt
32+
export DEBIAN_FRONTEND=noninteractive
33+
sudo apt-get update
34+
sudo DEBIAN_FRONTEND=noninteractive apt-get -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" upgrade -y
35+
36+
sudo apt-get autoremove -y
37+
38+
sudo apt-get install -y git \
39+
bison \
40+
flex \
41+
curl \
42+
wget \
43+
tcpdump \
44+
debconf-utils \
45+
python2 \
46+
python3 \
47+
python3-venv \
48+
python3-pip \
49+
vim \
50+
mininet \
51+
gdebi-core
52+
53+
git config --global user.email "rose_project@rose_project.org"
54+
git config --global user.name "The ROSE project"
55+
56+
# Install Chrome
57+
echo -e "\n\n#####################################"
58+
echo -e "\n-Installing Chrome"
59+
60+
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
61+
sudo gdebi -n google-chrome-stable_current_amd64.deb
62+
rm google-chrome-stable_current_amd64.deb
63+
64+
# Install sublime evaluation version
65+
echo -e "\n\n#####################################"
66+
echo -e "\n-Installing sublime evaluation version"
67+
#wget -qO - https://download.sublimetext.com/sublimehq-pub.gpg | sudo apt-key add -
68+
wget -qO - https://download.sublimetext.com/sublimehq-pub.gpg | gpg --dearmor | sudo tee /etc/apt/trusted.gpg.d/sublimehq-archive.gpg > /dev/null
69+
echo "deb https://download.sublimetext.com/ apt/stable/" | sudo tee /etc/apt/sources.list.d/sublime-text.list
70+
sudo apt-get update
71+
sudo DEBIAN_FRONTEND=noninteractive apt-get install -y sublime-text
72+
73+
echo "wireshark-common wireshark-common/install-setuid boolean true" | sudo debconf-set-selections
74+
75+
# Install wireshark
76+
echo -e "\n\n#####################################"
77+
echo -e "\n-Installing wireshark"
78+
sudo DEBIAN_FRONTEND=noninteractive apt-get install -y wireshark
79+
80+
echo -e "\n\n#####################################"
81+
echo -e "\n- Terminal config"
82+
sudo ln -s /usr/bin/xfce4-terminal /usr/bin/gnome-terminal

0 commit comments

Comments
 (0)