Bash script with a bit of unicornian magic dust to set up and tweak your Debian/Ubuntu server.
Nota bene: If your antivirus complains that this package is infected, dont't worry: it's just the EICAR test file to assess ClamAV.
As root, copy+paste the following on your command-line:
cd ~ && wget -q https://github.com/alixaxel/halBox/archive/master.tar.gz -O ~/halBox.tar.gz && tar -xzvf ~/halBox.tar.gz && chmod +x ~/halBox-master/halBox.sh && sudo ~/halBox-master/halBox.sh
A default install should take less than 5 minutes to complete.
halBox is VPS-oriented, it has been crafted to consume as little memory as possible.
Here's what a default install looks like after a fresh reboot (under Ubuntu 12.04 LTS minimal):
# ps_mem
Private + Shared = RAM used Program
100.0 KiB + 40.5 KiB = 140.5 KiB sleep
80.0 KiB + 85.0 KiB = 165.0 KiB dash
104.0 KiB + 83.0 KiB = 187.0 KiB ondemand
128.0 KiB + 71.0 KiB = 199.0 KiB syslogd
304.0 KiB + 75.5 KiB = 379.5 KiB cron
304.0 KiB + 105.0 KiB = 409.0 KiB xinetd
476.0 KiB + 89.0 KiB = 565.0 KiB exim4
472.0 KiB + 116.5 KiB = 588.5 KiB dropbear
748.0 KiB + 119.5 KiB = 867.5 KiB init
664.0 KiB + 598.5 KiB = 1.2 MiB nginx (3)
784.0 KiB + 3.3 MiB = 4.1 MiB php5-fpm (3)
7.1 MiB + 160.0 KiB = 7.2 MiB mysqld
---------------------------------
16.0 MiB
=================================
Of course, some features and configurations had to be sacrificed, most notably:
- InnoDB engine is disabled
- MyISAM
key_buffer_size
directive is set to 8MB - non-PDO database drivers are disabled by default (this includes
mysql
andmysqli
)
As of version 0.26.0, halBox comes with two scripts for nginx: n1ensite
/ n1dissite
that mimic a2ensite
/ a2dissite
.
These may not reflect the current version of the script / packages.
This script is inspired by: