Building 32MB.ORG Pt. 1: Preparing the Box
Posted July 1, 2012, 2:27 am in How To
IPXCore doesn't provide a Debian 6 minimal install on their SolusVM control panel. So, I have to remove several process that considered "not-needed". After updating and upgrading,
apt-get update && apt-get -y upgradeand installing Nano, Localpurge and Dropbear
apt-get -y install nano localepurge dropbearI removed following process:
/etc/init.d/saslauthd stop /etc/init.d/apache2 stop /etc/init.d/xinetd stop /etc/init.d/samba stop /etc/init.d/bind9 stop /etc/init.d/ssh stopand prevent them to run on restart/start-up:
update-rc.d saslauthd remove update-rc.d apache2 remove update-rc.d xinetd remove update-rc.d samba remove update-rc.d bind9 remove update-rc.d ssh removeStart Dropbear as a replacement for OpenSSH, make it running by default by changing its config:
nano /etc/default/dropbearset NO_START=1 to NO_START=0 and add some config for security, change the port and prevent root login:
# disabled because OpenSSH is installed change to NO_START=0 to enable Dropbear NO_START=1 ;change to 0 # the TCP port that Dropbear listens on DROPBEAR_PORT=22 ;change to whatever port you want # any additional arguments for Dropbear DROPBEAR_EXTRA_ARGS="" ;add -w to prevent root loginYou can also replace Syslog by Syslog-ng:
/etc/init.d/syslog stop update-rc.d syslog remove apt-get install -y syslog-ng
reboot you will have a box running by (not more than) 10MB RAM.
Done for now, next post will be installing Lighttpd, PHP, and SQLite, and then Blite! itself.
Comments are closed for this post.