-
Notifications
You must be signed in to change notification settings - Fork 112
/
install.sh
42 lines (35 loc) · 939 Bytes
/
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
#!/bin/bash
# First uninstall any unnecessary packages.
apt-get update
apt-get -y install nano
apt-get -y install lsb-release
service apache2 stop
service sendmail stop
service bind9 stop
service nscd stop
apt-get -y purge nscd bind9 sendmail apache2 apache2.2-common
echo ""
echo "Configuring /etc/apt/sources.list."
sleep 5
./setup.sh apt
echo ""
echo "Installing updates & configuring SSHD / hostname."
sleep 5
./setup.sh basic
echo ""
echo "Installing LAMP or LNMP stack."
sleep 5
./setup.sh install
echo ""
echo "Optimizing AWStats, PHP, logrotate & webserver config."
sleep 5
./setup.sh optimize
## Uncomment to secure /tmp folder
#echo ""
#echo "Securing /tmp directory."
## Use tmpdd here if your server has under 256MB memory. Tmpdd will consume a 1GB disk space for /tmp
#./setup.sh tmpfs
echo ""
echo "Installation complete!"
echo "Root login disabled."
echo "Please add a normal user now using the \"adduser\" command."