-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcloudlab-init.sh
More file actions
executable file
·30 lines (27 loc) · 1.29 KB
/
cloudlab-init.sh
File metadata and controls
executable file
·30 lines (27 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
sudo apt-get update
sudo apt-get install -y software-properties-common
sudo apt-get install -y python-software-properties
sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
wget -O - http://llvm.org/apt/llvm-snapshot.gpg.key | sudo apt-key add -
sudo add-apt-repository -y 'deb http://llvm.org/apt/jessie llvm-toolchain-jessie-3.7 main'
sudo apt-get update
sudo apt-get install -y build-essential gcc-4.9 g++-4.9 clang-3.7 lldb-3.7 gdb cmake3 git protobuf-compiler libprotobuf-dev flex bison libnuma-dev
sudo update-alternatives --install /usr/bin/clang clang /usr/bin/clang-3.7 20
sudo update-alternatives --install /usr/bin/clang++ clang++ /usr/bin/clang++-3.7 20
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.9 20
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.9 20
sudo apt-get install -y dstat
sudo apt-get install -y tmux vim htop
sudo apt-get install -y vagrant cmake curl
(echo n; echo ; echo ; echo ; echo ; echo w) | sudo fdisk /dev/sdb
sudo mkfs.ext4 /dev/sdb1
sudo mkdir /slowdisk
sudo mount /dev/sdb1 /slowdisk
(echo n; echo ; echo ; echo ; echo ; echo w) | sudo fdisk /dev/sdc
sudo mkfs.ext4 /dev/sdc1
sudo mkdir /fastdisk
sudo mount /dev/sdc1 /fastdisk
sudo chmod a+r /slowdisk
sudo chmod a+r /fastdisk
sudo chmod a+w /slowdisk
sudo chmod a+w /fastdisk