# get latest updates apt-get update # install found updates apt-get upgrade # install support packages apt-get install binutils cpp fetchmail flex gcc libarchive-zip-perl libc6-dev libcompress-zlib-perl libdb4.3-dev libpcre3 libpopt-dev linux-kernel-headers lynx m4 make ncftp nm ap openssl perl perl-modules unzip zip zlib1g-dev autoconf automake1.9 libtool bison autotools-dev g++ # Set the host name prompt myhostname hostname -v $myhostname # install mysql apt-get install mysql-server mysql-client libmysqlclient15-dev # bind mysql to all interfaces, not just 127.0.0.1 cat /etc/mysql/my.cnf | sed s/bind-address/#bind-address/ > /tmp/my.cnf mv -f /tmp/my.cnf /etc/mysql/my.cnf /etc/init.d/mysql restart # set a mysql root password echo "Choose a MySQL password: " read mysqlrootpass mysqladmin -u root password $mysqlrootpass mysqladmin -h server1.example.com -u root password $mysqlrootpass # Install postfix with SMTP-AUTH and TLS # Choose all defaults apt-get install postfix libsasl2 sasl2-bin libsasl2-modules libdb3-util procmail dpkg-reconfigure postfix # Configure Postfix here /etc/init.d/postfix restart # Add Dovecot install here # install apache apt-get install apache2 apache2-doc apache2-mpm-prefork apache2-utils libexpat1 ssl-cert # install php5 apt-get install libapache2-mod-php5 php5 php5-common php5-curl php5-dev php5-gd php5-idn php-pear php5-imagick php5-imap php5-json php5-mcrypt php5-memcache php5-mhash php5-min g php5-mysql php5-ps php5-pspell php5-recode php5-snmp php5-sqlite php5-tidy php5-xmlrpc php5-xsl # install apc apt-get install apache2-dev php5-dev php-pear make ln -s /usr/bin/apxs2 /usr/bin/apxs pecl install apc # add port 443 (https) to Apache's listen ports echo "Listen 443" >> /etc/apache2/ports.conf # enable some Apache modules a2enmod ssl a2enmod rewrite a2enmod suexec a2enmod include # add the vdr setup cp ~/bin/vdr /etc/apache2/sites-available/vdr a2ensite vdr /etc/init.d/apache2 force-reload # sync system clock apt-get install ntp ntpdate # set timezone tzconfig # install subversion apt-get install libapache2-svn subversion subversion-tools