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.
- Cookies must be enabled to post comments.
- Allowed HTML tags: <b>, <a>, <i>, <pre>, <code>.
- Use <pre><code> ... </code></pre> to display a raw HTML or PHP code snippet.
- You may edit your comment one time, within 5 minutes of posting.
- blogspam.net is used for spam detection. Comments judged to be spam are reviewed by the administrator and may be published later.