-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathbootstrap.sh
More file actions
45 lines (29 loc) · 902 Bytes
/
bootstrap.sh
File metadata and controls
45 lines (29 loc) · 902 Bytes
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
#!/usr/bin/env bash
apt-get update
apt-get upgrade cmake
# Install development packages for MMD
apt-get install -y build-essential cmake libbsd-dev
# GTK-Editor
# Development stuff
apt-get install -y valgrind
# llvm/fuzzing tools
apt-get install -y clang llvm
# Cross-compilation for Windows
apt-get install -y mingw-w64 nsis
# libcurl development
apt-get install -y libcurl4-openssl-dev
# Create a git server
# Create account
if [ ! -d /home/git ]; then
useradd git --create-home --shell /bin/bash
mkdir /home/git/.ssh
# Use authorized keys file for public key authentication
# You will need to have generated this file and put it in
# the directory prior to provisioning
cp /vagrant/authorized_keys /home/git/.ssh/authorized_keys
# Fix permissions
chown -R git:git /home/git/.ssh
chmod go-w /home/git
chmod 700 /home/git/.ssh
chmod 600 /home/git/.ssh/authorized_keys
fi