-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathkickstart.sh
More file actions
48 lines (37 loc) · 1.21 KB
/
kickstart.sh
File metadata and controls
48 lines (37 loc) · 1.21 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
#!/usr/bin/env bash
mkdir -p ~/.ssh
wget https://github.com/whalesalad.keys -O ~/.ssh/authorized_keys
chmod 700 ~/.ssh
chmod 644 ~/.ssh/authorized_keys
# debian
su
apt install sudo
adduser michael sudo
# end debian
sudo apt install git vim htop
git config --global user.email "michael@whalesalad.com"
git config --global user.name "Michael Whalen"
# Stress Testing
stress --cpu $(nproc) --io 4 --vm 2 --vm-bytes 128M --timeout 10s
stress --cpu --timeout 900
stress --hdd $(nproc) --hdd-bytes 100G --timeout 900
# vim https://github.com/amix/vimrc
git clone --depth=1 https://github.com/amix/vimrc.git ~/.vim_runtime
sh ~/.vim_runtime/install_awesome_vimrc.sh
sudo apt update
sudo apt install \
apt-transport-https \
ca-certificates \
curl \
gnupg2 \
software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu bionic stable"
sudo apt update
apt-cache policy docker-ce
sudo apt install docker-ce
sudo apt install nfs-common
sudo mkdir -p /valhalla/lab
sudo chown -R michael:staff /valhalla
sudo chmod -R 755 /valhalla
sudo mount valhalla.ws.internal:/volume3/lab /valhalla/lab