<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Low End Box &#187; scripts</title>
	<atom:link href="http://www.lowendbox.com/tag/scripts/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.lowendbox.com</link>
	<description>Hosting Websites on Bare Minimum VPS/Dedicated Servers</description>
	<lastBuildDate>Wed, 08 Feb 2012 08:33:10 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Bootstraping Low End VPS with Pre-built Scripts</title>
		<link>http://www.lowendbox.com/blog/bootstraping-low-end-vps-with-pre-built-scripts/</link>
		<comments>http://www.lowendbox.com/blog/bootstraping-low-end-vps-with-pre-built-scripts/#comments</comments>
		<pubDate>Wed, 16 Sep 2009 01:52:57 +0000</pubDate>
		<dc:creator>LowEndAdmin</dc:creator>
				<category><![CDATA[Tuning]]></category>
		<category><![CDATA[scripts]]></category>

		<guid isPermaLink="false">http://www.lowendbox.com/blog/bootstraping-low-end-vps-with-pre-built-scripts/</guid>
		<description><![CDATA[It was fun setting up your very own server. I remembered the time when I received the root password to my very first virtual server back in March 2006 ($22/month for a merely 192MB of memory), it took me hours setting it up to exactly the way I wanted. At the end of the day [...]]]></description>
			<content:encoded><![CDATA[<p>It was fun setting up your very own server. I remembered the time when I received the root password to my very first virtual server back in March 2006 ($22/month for a <em>merely</em> 192MB of memory), it took me <em>hours</em> setting it up to <em>exactly</em> the way I wanted. At the end of the day when it started to pump out my websites on TCP port 80 &#8212; <b>joy</b>!</p>
<p>Well. It&#8217;s still fun the second time around when I moved hosting, but it wasn&#8217;t the same. 3<sup>rd</sup> time? Hmm. By now I probably have set up 30+ virtual servers due to expansion or migration, and it feels a lot like <em>work</em> than fun. In the effort to possess the 3 great virtues of a programmer according to Larry Wall, <em>laziness, impatience, and hubris</em>, I decided to write some simple scripts to quickly get my low end virtual servers up running <em>and configured</em> in no time!</p>
<p>Here is one that I want to share today.</p>
<ul>
<li><b style="font-size:120%">Download <a href="http://www.lowendbox.com/scripts/lowend-debian.sh">lowend-debian.sh</a></b></li>
</ul>
<p>Usage:</p>
<ol>
<li>Buy a new low end VPS from any provider</li>
<li>Build a standard <em>Debian 5</em> minimum install</li>
<li>Got the root password</li>
<li><code>ssh</code> into your new low end box, and
<pre class="code">
$ ssh root@my-new-box
Linux lowendbox 2.6.18-blah #1 SMP Wed Aug 26 15:47:17 MSD 2009 i686
...
Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
# <b>wget -q http://www.lowendbox.com/scripts/lowend-debian.sh</b>
# <b>bash ./lowend-debian.sh</b>
...
</pre>
</li>
</ol>
<p>What it does is:</p>
<ul>
<li>Remove <code>rsyslogd</code> (memory hog on OpenVZ system) and <code>portmap</code> (mostly useless).</li>
<li>Run <code>apt-get update &amp;&amp; apt-get upgrade</code> to get the server up to date.</li>
<li>Install and configure <code>dash</code> as <code>/bin/sh</code>.</li>
<li>Install and configure <code>inetutils-syslog</code> as default system logger.</li>
<li>Install and configure <code>dropbear</code> as OpenSSH replacement.</li>
</ul>
<p>Once done, it should bring the memory usage to around 4-5MB on a 32bit Debian (where 2.8MB is from <code>bash</code> and <code>dropbear</code> that handles the SSH connection). It should also work on Ubuntu-based distributions (tested on a 64MB Ubuntu 9.04 VPS). Feel free to check the code to make sure I am not doing anything malicious like hijacking the server and install a ssh key or something :)</p>
<div style="display:none">38.107.179.233</div><hr/><div>Copyright &copy; <a href="http://www.lowendbox.com/">LowEndBox.com</a>. All Rights Reserved.</div>]]></content:encoded>
			<wfw:commentRss>http://www.lowendbox.com/blog/bootstraping-low-end-vps-with-pre-built-scripts/feed/</wfw:commentRss>
		<slash:comments>15</slash:comments>
		</item>
	</channel>
</rss>

