-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathconfigure-system.sh
executable file
·50 lines (33 loc) · 1007 Bytes
/
configure-system.sh
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
49
50
#!/bin/bash
apt-get install --yes ubuntu-cloud-keyring
cat << EOF > /etc/apt/sources.list.d/cloud-archive.list
# The primary updates archive that users should be using
deb http://ubuntu-cloud.archive.canonical.com/ubuntu precise-updates/havana main
# Public -proposed archive mimicking the SRU process for extended testing.
# Packages should bake here for at least 7 days.
deb http://ubuntu-cloud.archive.canonical.com/ubuntu precise-proposed/havana main
EOF
#cat << EOF > /etc/apt/preferences.d/local.pref
#Package: openvswitch-*
#Pin: release o=Ubuntu
#Pin-Priority: 501
#
#Package: novnc
#Pin: release o=Ubuntu
#Pin-Priority: 501
#EOF
apt-get update
apt-get install --yes \
python-dev \
python-setuptools \
htop
easy_install pip
apt-get -y install ntp
cat << EOF >> /etc/sysctl.conf
net.ipv4.ip_forward = 1
net.ipv4.conf.all.forwarding = 1
net.ipv4.conf.all.rp_filter = 0
net.ipv4.conf.default.rp_filter = 0
EOF
/etc/init.d/networking restart
sysctl -e -p /etc/sysctl.conf