-
Notifications
You must be signed in to change notification settings - Fork 2
/
install.sh
executable file
·62 lines (44 loc) · 1.41 KB
/
install.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
51
52
53
54
55
56
57
58
59
60
61
62
#!/bin/sh
IMA=$1
# http://snowulf.com/archives/540-Truly-non-interactive-unattended-apt-get-install.html
export DEBIAN_FRONTEND=noninteractive
OPTS='-y -q=2 --force-yes'
INSTALL='apt-get '${OPTS}' install'
# I have no idea why this is sometimes necessary
# It's really annoying...
FIX_DPKG='dpkg --configure -a'
apt-get update
apt-get ${OPTS} upgrade
# this assumes you've already installed git-core because
# otherwise you wouldn't be reading this...
${INSTALL} sysstat
${INSTALL} htop
${INSTALL} git-core
${INSTALL} apache2
${INSTALL} memcached
${INSTALL} php5
${INSTALL} php5-curl
${INSTALL} php5-mcrypt
${INSTALL} php5-memcache
# ${INSTALL} mysql-server
# ${INSTALL} php5-mysql
${INSTALL} python-gevent
${INSTALL} python_setuptools
${INSTALL} python-pyproj
${INSTALL} gdal-bin
${INSTALL} libmapnik-dev
${INSTALL} python-mapnik
${EASY_INSTALL} ModestMaps
${EASY_INSTALL} TileStache
${EASY_INSTALL} gunicorn
${EASY_INSTALL} shapely
${EASY_INSTALL} geojson
${EASY_INSTALL} Geohash
${INSTALL} openjdk-6-jre-headless
${FIX_DPKG}
ln -s /etc/apache2/mods-available/rewrite.load /etc/apache2/mods-enabled/
ln -s /etc/apache2/mods-available/proxy.conf /etc/apache2/mods-enabled/
ln -s /etc/apache2/mods-available/proxy.load /etc/apache2/mods-enabled/
ln -s /etc/apache2/mods-available/proxy_http.load /etc/apache2/mods-enabled/
ln -s /etc/apache2/mods-available/headers.load /etc/apache2/mods-enabled/
/etc/init.d/apache2 restart