<?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>The Tech Tutorial &#187; Fix It</title>
	<atom:link href="http://www.the-tech-tutorial.com/?feed=rss2&#038;cat=45" rel="self" type="application/rss+xml" />
	<link>http://www.the-tech-tutorial.com</link>
	<description>Just a blog of free technology tutorials</description>
	<lastBuildDate>Tue, 04 Dec 2012 15:43:13 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.1</generator>
		<item>
		<title>How to safely kill rails WEBrick server running in daemon mode</title>
		<link>http://www.the-tech-tutorial.com/?p=1964</link>
		<comments>http://www.the-tech-tutorial.com/?p=1964#comments</comments>
		<pubDate>Tue, 04 Dec 2012 15:43:13 +0000</pubDate>
		<dc:creator>Tyler Allen</dc:creator>
				<category><![CDATA[Fix It]]></category>
		<category><![CDATA[Main]]></category>
		<category><![CDATA[dont shutdown]]></category>
		<category><![CDATA[Easy]]></category>
		<category><![CDATA[no shutdown]]></category>
		<category><![CDATA[rails]]></category>
		<category><![CDATA[restart]]></category>
		<category><![CDATA[ruby]]></category>
		<category><![CDATA[Server]]></category>
		<category><![CDATA[shutdown]]></category>
		<category><![CDATA[Simple]]></category>
		<category><![CDATA[stop]]></category>
		<category><![CDATA[Stop WEBrick]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[WEBrick]]></category>

		<guid isPermaLink="false">http://www.the-tech-tutorial.com/?p=1964</guid>
		<description><![CDATA[Ruby on rails and the WEBrick Daemon are great for testing however there are times when you start a WEBrick server in daemon mode and later find you need to stop this without restarting the box. This can sometimes be troublesome, especially if you accidently kill a live server. In this tutorial I’ll go through [...]]]></description>
				<content:encoded><![CDATA[<p><span><span><a href="http://www.the-tech-tutorial.com/wp-content/uploads/2011/11/rails.png"><img class="alignleft size-full wp-image-1851" title="rails" src="http://www.the-tech-tutorial.com/wp-content/uploads/2011/11/rails.png" alt="" width="87" height="111" /></a>Ruby</span> on <span>rails</span></span> and the <span><span>WEBrick</span> <span>Daemon</span><span> are great for testing however there are times when you start a <span><span>WEBrick</span> <span>server</span></span> in <span><span>daemon</span> mode</span> and later find you need to <span>stop</span> this <span>without <span>restarting</span></span> the box. This can sometimes be troublesome, especially if you accidently kill a live server. In this tutorial I’ll go through ensuring you <span>kill</span> the correct process.<span id="more-1964"></span></span></span><br />
<center><br />
<script type="text/javascript"><!--
google_ad_client = "ca-pub-2094089617852812";
/* 2011 Bottom */
google_ad_slot = "5825267234";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script><br />
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></center><br />
First we need to find the <a href="http://en.wikipedia.org/wiki/Process_identifier"><span>PID</span></a> of the <span><span>WEBrick</span> <span>Daemon</span></span> in order to <span>stop</span> it, to do this we&#8217;ll <span><span>find the PID</span> that has port <span>3000</span></span> bound to it:</p>
<pre>sudo netstat -lp | grep 3000</pre>
<p>This should give an output like this: <em>Note: if you started your <span><span>WEBrick</span> server</span> under a different port just change the <span>3000</span> in this command to the <span>port</span> you used.</em></p>
<p><a href="http://www.the-tech-tutorial.com/wp-content/uploads/2012/12/tech1.jpg"><img class="aligncenter size-full wp-image-1965" title="tech1" src="http://www.the-tech-tutorial.com/wp-content/uploads/2012/12/tech1.jpg" alt="" width="644" height="31" /></a></p>
<p>This output tell you that <span>PID</span> (in my instance) that&#8217;s running the <span>WEBrick</span> server is 22673, this will be different for you server so please note down the PID <em>(its the number before /ruby)</em>. Now we just need to kill this process to do this we use the following command <em>(substitute [PID] for the PID you noted in the previous step)</em>:<br />
<center><br />
<script type="text/javascript"><!--
google_ad_client = "ca-pub-2094089617852812";
/* 2011 Bottom */
google_ad_slot = "5825267234";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script><br />
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></center></p>
<pre>sudo kill -9 [PID]</pre>
<p>Now the <span><span><span>WEBrick</span> <span>server</span><span> will <span>stop</span></span> and you didn’t have to <span>restart</span> the machine.</span></span></p>
<p>&nbsp;</p>
<div name="googleone_share_1" style="position:relative;z-index:5;float: right; margin-left: 10px;"><g:plusone size="standard" count="" href="http://www.the-tech-tutorial.com/?p=1964"></g:plusone></div>

<div class="shr-bookmarks shr-bookmarks-expand shr-bookmarks-center shr-bookmarks-bg-knowledge">
<ul class="socials">
		<li class="shr-digg">
			<a href="http://www.shareaholic.com/api/share/?title=How+to+safely+kill+rails+WEBrick+server+running+in+daemon+mode&amp;link=http://www.the-tech-tutorial.com/?p=1964&amp;notes=Ruby%20on%20rails%20and%20the%20WEBrick%20Daemon%20are%20great%20for%20testing%20however%20there%20are%20times%20when%20you%20start%20a%20WEBrick%20server%20in%20daemon%20mode%20and%20later%20find%20you%20need%20to%20stop%20this%20without%20restarting%20the%20box.%20This%20can%20sometimes%20be%20troublesome%2C%20especially%20if%20you%20accidently%20kill%20a%20live%20server.%20In%20this%20tutorial%20I%E2%80%99&amp;short_link=&amp;shortener=google&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=3&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="shr-facebook">
			<a href="http://www.shareaholic.com/api/share/?title=How+to+safely+kill+rails+WEBrick+server+running+in+daemon+mode&amp;link=http://www.the-tech-tutorial.com/?p=1964&amp;notes=Ruby%20on%20rails%20and%20the%20WEBrick%20Daemon%20are%20great%20for%20testing%20however%20there%20are%20times%20when%20you%20start%20a%20WEBrick%20server%20in%20daemon%20mode%20and%20later%20find%20you%20need%20to%20stop%20this%20without%20restarting%20the%20box.%20This%20can%20sometimes%20be%20troublesome%2C%20especially%20if%20you%20accidently%20kill%20a%20live%20server.%20In%20this%20tutorial%20I%E2%80%99&amp;short_link=&amp;shortener=google&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=5&amp;tags=&amp;ctype=" rel="nofollow" title="Share this on Facebook">Share this on Facebook</a>
		</li>
		<li class="shr-googlebuzz">
			<a href="http://www.shareaholic.com/api/share/?title=How+to+safely+kill+rails+WEBrick+server+running+in+daemon+mode&amp;link=http://www.the-tech-tutorial.com/?p=1964&amp;notes=Ruby%20on%20rails%20and%20the%20WEBrick%20Daemon%20are%20great%20for%20testing%20however%20there%20are%20times%20when%20you%20start%20a%20WEBrick%20server%20in%20daemon%20mode%20and%20later%20find%20you%20need%20to%20stop%20this%20without%20restarting%20the%20box.%20This%20can%20sometimes%20be%20troublesome%2C%20especially%20if%20you%20accidently%20kill%20a%20live%20server.%20In%20this%20tutorial%20I%E2%80%99&amp;short_link=&amp;shortener=google&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=&amp;tags=&amp;ctype=" rel="nofollow" class="external" title=""></a>
		</li>
		<li class="shr-reddit">
			<a href="http://www.shareaholic.com/api/share/?title=How+to+safely+kill+rails+WEBrick+server+running+in+daemon+mode&amp;link=http://www.the-tech-tutorial.com/?p=1964&amp;notes=Ruby%20on%20rails%20and%20the%20WEBrick%20Daemon%20are%20great%20for%20testing%20however%20there%20are%20times%20when%20you%20start%20a%20WEBrick%20server%20in%20daemon%20mode%20and%20later%20find%20you%20need%20to%20stop%20this%20without%20restarting%20the%20box.%20This%20can%20sometimes%20be%20troublesome%2C%20especially%20if%20you%20accidently%20kill%20a%20live%20server.%20In%20this%20tutorial%20I%E2%80%99&amp;short_link=&amp;shortener=google&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=40&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a>
		</li>
		<li class="shr-stumbleupon">
			<a href="http://www.shareaholic.com/api/share/?title=How+to+safely+kill+rails+WEBrick+server+running+in+daemon+mode&amp;link=http://www.the-tech-tutorial.com/?p=1964&amp;notes=Ruby%20on%20rails%20and%20the%20WEBrick%20Daemon%20are%20great%20for%20testing%20however%20there%20are%20times%20when%20you%20start%20a%20WEBrick%20server%20in%20daemon%20mode%20and%20later%20find%20you%20need%20to%20stop%20this%20without%20restarting%20the%20box.%20This%20can%20sometimes%20be%20troublesome%2C%20especially%20if%20you%20accidently%20kill%20a%20live%20server.%20In%20this%20tutorial%20I%E2%80%99&amp;short_link=&amp;shortener=google&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=38&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="shr-twitter">
			<a href="http://www.shareaholic.com/api/share/?title=How+to+safely+kill+rails+WEBrick+server+running+in+daemon+mode&amp;link=http://www.the-tech-tutorial.com/?p=1964&amp;notes=Ruby%20on%20rails%20and%20the%20WEBrick%20Daemon%20are%20great%20for%20testing%20however%20there%20are%20times%20when%20you%20start%20a%20WEBrick%20server%20in%20daemon%20mode%20and%20later%20find%20you%20need%20to%20stop%20this%20without%20restarting%20the%20box.%20This%20can%20sometimes%20be%20troublesome%2C%20especially%20if%20you%20accidently%20kill%20a%20live%20server.%20In%20this%20tutorial%20I%E2%80%99&amp;short_link=&amp;shortener=google&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=%2524%257Btitle%257D%2B-%2B%2524%257Bshort_link%257D&amp;service=7&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a>
		</li>
		<li class="shr-linkedin">
			<a href="http://www.shareaholic.com/api/share/?title=How+to+safely+kill+rails+WEBrick+server+running+in+daemon+mode&amp;link=http://www.the-tech-tutorial.com/?p=1964&amp;notes=Ruby%20on%20rails%20and%20the%20WEBrick%20Daemon%20are%20great%20for%20testing%20however%20there%20are%20times%20when%20you%20start%20a%20WEBrick%20server%20in%20daemon%20mode%20and%20later%20find%20you%20need%20to%20stop%20this%20without%20restarting%20the%20box.%20This%20can%20sometimes%20be%20troublesome%2C%20especially%20if%20you%20accidently%20kill%20a%20live%20server.%20In%20this%20tutorial%20I%E2%80%99&amp;short_link=&amp;shortener=google&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=88&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Share this on LinkedIn">Share this on LinkedIn</a>
		</li>
</ul><div style="clear: both;"></div><div class="shr-getshr" style="visibility:hidden;font-size:10px !important"><a target="_blank" href="https://shareaholic.com/?src=pub">Get Shareaholic</a></div><div style="clear: both;"></div></div>

]]></content:encoded>
			<wfw:commentRss>http://www.the-tech-tutorial.com/?feed=rss2&#038;p=1964</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Installing Ruby on Rails Ubuntu 12.04 using RVM and Ruby 1.9.3</title>
		<link>http://www.the-tech-tutorial.com/?p=1868</link>
		<comments>http://www.the-tech-tutorial.com/?p=1868#comments</comments>
		<pubDate>Mon, 21 Nov 2011 13:06:13 +0000</pubDate>
		<dc:creator>Tyler Allen</dc:creator>
				<category><![CDATA[Fix It]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[configure]]></category>
		<category><![CDATA[Easy]]></category>
		<category><![CDATA[install]]></category>
		<category><![CDATA[rails]]></category>
		<category><![CDATA[Rails 3.1]]></category>
		<category><![CDATA[ruby]]></category>
		<category><![CDATA[Ruby 1.9.2]]></category>
		<category><![CDATA[RVM]]></category>
		<category><![CDATA[Server]]></category>
		<category><![CDATA[Setup]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[Ubuntu 11.10]]></category>

		<guid isPermaLink="false">http://www.the-tech-tutorial.com/?p=1868</guid>
		<description><![CDATA[Ruby Rails is a Web application framework created in 2004 intended as a rapid development web framework that runs the Ruby programing language. The latest version of the Ruby is &#8216;Ruby 1.9.2&#8216; and was realised in August 2011, it brings many new features and bug fixeses. The most signifiant changes are Block local variables, An [...]]]></description>
				<content:encoded><![CDATA[<p><a href="http://www.the-tech-tutorial.com/wp-content/uploads/2011/11/rails.png"><img class="alignleft size-full wp-image-1851" title="rails" src="http://www.the-tech-tutorial.com/wp-content/uploads/2011/11/rails.png" alt="" width="87" height="111" /></a><span><span>Ruby</span> <span>Rails</span></span> is a Web application framework created in 2004 intended as a rapid development web framework that runs the <span>Ruby</span> programing language. The latest version of the <span>Ruby</span> is &#8216;<span>Ruby 1.9.2</span>&#8216; and was realised in <span>August 2011</span>, it brings many new features and bug fixeses. The most signifiant changes are <a href="http://en.wikipedia.org/wiki/Local_variable" target="_blank">Block local variables</a>, An additional <a href="http://en.wikipedia.org/wiki/Anonymous_function" target="_blank">lambda</a> syntax, Per-string <a href="http://en.wikipedia.org/wiki/Character_encoding" target="_blank">character encodings</a> are supported and a new New socket API (<a href="http://en.wikipedia.org/wiki/IPv6" target="_blank">IPv6</a> support). You can find a great walkthrough of all the new features at <a href="http://rubyinside.com/19walkthrough/" target="_blank">Ruby Inside</a>. coinciding with the release of <span><span>Ruby</span> 1.9</span> is the <span>Rails 3.1</span> framework which requires <span>Ruby 1.8.7</span> or higher. <span><span>Ruby</span>on<span>Rails</span> 3.1</span> brings many new features, most notably: jQuery as default, HTTP Streaming, a new assets pipeline powered by <a href="https://github.com/sstephenson/sprockets/" target="_blank">Sprockets 2.0</a>. So this is all good stuff and I’m sure you want to be working with the latest version of Ruby and RubyonRails, especially if you setting up a new server.<span id="more-1868"></span></p>
<div style="width:350px; height:330px;background-image: url(http://www.the-tech-tutorial.com/wp-content/uploads/2011/03/add_back1.png); display: block; float: left; padding: 20px 25px 0px 30px;">
<script type="text/javascript"><!--
google_ad_client = "pub-2094089617852812";
/* 2011 In Text Box */
google_ad_slot = "1777411765";
google_ad_width = 336;
google_ad_height = 280;
//-->
</script><br />
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></div>
<p>Well if your using Ubuntu you can setup <span>Ruby</span> and <span><span>Ruby</span>on<span>Rails</span></span> quickly using the supplied repository’s, a good tutorial for this can be <a href="http://www.the-tech-tutorial.com/?p=1801" target="_blank">found here</a>. However this is not recommended as the <span>Ubuntu</span> repositories are often out of date and if you install ruby or <span>rails</span> via the repository’s it can be pain to <span>upgrade</span>. So in this guide we are going to go through <span>installing <span>RVM</span></span> (this allows you to <span>install</span>, <span>change</span> and <span>upgrade</span> the installed <span>Ruby</span> version), <span>Ruby</span> <span>1.9.2</span></span> and <span><span>Rails</span> <span>3.1</span></span>. This Guide has been tested on <span>Ubuntu 11.10</span> however it should work on all versions of <span>Ubuntu</span> later then <span>Ubuntu 9.04</span>.</p>
<p>First of all you&#8217;ll need to install some packages that <span>Ruby</span>, <span>RVM</span> and <span><span>Ruby</span>On<span>Rails</span></span> will require later, the easiest way to do this is using the repositories so go to your terminal and type:</p>
<pre>sudo apt-get update
sudo apt-get install build-essential git-core curl libmysqlclient18 nodejs</pre>
<p>Now let’s install the latest version of <span>RVM</span> using <span>curl</span>:</p>
<pre>sudo bash -s stable < <(curl -s https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer)
umask g+w
source /etc/profile.d/rvm.sh 
</pre>
<p>Now you'll need to ask <span>RVM</span> if it needs any more programs and if so you'll need to install them to do this type:</p>
<pre>rvm requirements</pre>
<p>Two things could happen here if you see the following message saying you need to install '<span>rvm</span>', ignore this it and restart your terminal, this should fix the problem.</p>
<pre><span><span>The program <span>'rvm'</span> is currently <span>not <span>install</span>ed</span></span>.  You can install it by typing:
<span>sudo apt-get install ruby-rvm</span></span></pre>
<p>You should see something that looks like this <strong>after you restart your terminal</strong>:<br />
<a href="http://www.the-tech-tutorial.com/wp-content/uploads/2011/11/rvm_req.jpg"><img src="http://www.the-tech-tutorial.com/wp-content/uploads/2011/11/rvm_req.jpg" alt="" title="rvm_req" width="641" height="355" class="aligncenter size-full wp-image-1885" /></a></p>
<p>This tells you which packages you need to install using <span>apt-get</span>, just copy and paste the apt-get section under "# For <span>Ruby</span>" and run using the sudo command, this should look something like this:</p>
<pre>
sudo apt-get install build-essential openssl libreadline6 libreadline6-dev curl git-core zlib1g zlib1g-dev libssl-dev libyaml-dev libsqlite3-0 libsqlite3-dev sqlite3 libxml2-dev libxslt-dev autoconf libc6-dev ncurses-dev automake libtool bison subversion
</pre>
<p>Now you just need to give the user account access to the rvm files, you do this with the following command substituting [user] for the user you wish to use</p>
<pre>
sudo chown -R [user]:[user] /usr/local/rvm
</pre>
<p>Before completing this step I would recomend restarting your console otherwise you may run into problems. Once you have installed all these packages its time to install <span>Ruby 1.9.3</span> herself. The following command will install <span>Ruby 1.9.3</span> using the <span>rmv</span> package. However this can take a few minutes <em>(15 in my case)</em> to install so I recommend getting a drink, or my favourite, a pizza <img src='http://www.the-tech-tutorial.com/wp-includes/images/smilies/icon_lol.gif' alt=':lol:' class='wp-smiley' />  .</p>
<pre>rvm install 1.9.3</pre>
<p>Once <span>ruby</span> is installed you should set <span><span>Ruby</span> <span>1.9.3</span></span> as your <span><span><span>default</span> <span>Ruby</span></span> version</span>, to do this enter:</p>
<pre>
source "/usr/local/rvm/scripts/rvm"
rvm --default use 1.9.3
</pre>
<p>You can test that <span>Ruby</span> is installed correctly and running at version <span>1.9.2</span> by typing</p>
<pre>ruby -v</pre>
<div style="width:350px; height:330px;background-image: url(http://www.the-tech-tutorial.com/wp-content/uploads/2011/03/add_back1.png); display: block; float: right; padding: 20px 25px 0px 30px;">
<script type="text/javascript"><!--
google_ad_client = "pub-2094089617852812";
/* 2011 In Text Box */
google_ad_slot = "1777411765";
google_ad_width = 336;
google_ad_height = 280;
//-->
</script><br />
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></div>
<p>This should output something like "ruby 1.9.2p290.." showing you that <span>version 1.9.2p290</span> is installed and is now the default <span>Ruby</span> version. </p>
<p>The nice thing about <span>RVM</span> is you can use it to install any version of <span>Ruby</span> and switch between the versions your have installed, to do this just enter "rvm install [Version Number]" then "rvm --default use [Version Number", you can then use "rvm --default use" to change to any installed version.</p>
<p>Now that you have the latest version of ruby installed I’m sure you want to get the <span><span>latest version of <span><span>Rails</span> install</span></span>ed</span>, at the time of writing this tutorial that’s <span>Rails 3.1</span>. To install <span>Rails</span> we can use <span>GEM</span> which is installed along with <span>RVM</span> and <span>Ruby</span>, to install the latest version of <span>Rails</span> just type, <em>(this can take also take a while)</em>:</p>
<pre>gem install rails</pre>
<p>And that’s it you have now installed <span><span>RVM</span>, <span>Ruby 1.9.2</span> and <span>Rails 3.1</span> on <span>Ubuntu 11.10</span></span> configured to use <span>sqlite3<span>, you can now setup your new <span><span>Rails</span> package</span> with </p>
<pre>rails new [project name]</pre>
<p>Just as a final note, If you want to <span>use MySQL</span> instead of <span>sqlite3</span> you&#8217;ll need to enter the following</p>
<pre>
sudo apt-get install mysql-server
gem install <span>mysql2</span>
rails new [project name] -d mysql
</pre>
<div name="googleone_share_1" style="position:relative;z-index:5;float: right; margin-left: 10px;"><g:plusone size="standard" count="" href="http://www.the-tech-tutorial.com/?p=1868"></g:plusone></div>

<div class="shr-bookmarks shr-bookmarks-expand shr-bookmarks-center shr-bookmarks-bg-knowledge">
<ul class="socials">
		<li class="shr-digg">
			<a href="http://www.shareaholic.com/api/share/?title=Installing+Ruby+on+Rails+Ubuntu+12.04+using+RVM+and+Ruby+1.9.3&amp;link=http://www.the-tech-tutorial.com/?p=1868&amp;notes=Ruby%20Rails%20is%20a%20Web%20application%20framework%20created%20in%202004%20intended%20as%20a%20rapid%20development%20web%20framework%20that%20runs%20the%20Ruby%20programing%20language.%20The%20latest%20version%20of%20the%20Ruby%20is%20%27Ruby%201.9.2%27%20and%20was%20realised%20in%20August%202011%2C%20it%20brings%20many%20new%20features%20and%20bug%20fixeses.%20The%20most%20signifiant%20changes%20are&amp;short_link=&amp;shortener=google&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=3&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="shr-facebook">
			<a href="http://www.shareaholic.com/api/share/?title=Installing+Ruby+on+Rails+Ubuntu+12.04+using+RVM+and+Ruby+1.9.3&amp;link=http://www.the-tech-tutorial.com/?p=1868&amp;notes=Ruby%20Rails%20is%20a%20Web%20application%20framework%20created%20in%202004%20intended%20as%20a%20rapid%20development%20web%20framework%20that%20runs%20the%20Ruby%20programing%20language.%20The%20latest%20version%20of%20the%20Ruby%20is%20%27Ruby%201.9.2%27%20and%20was%20realised%20in%20August%202011%2C%20it%20brings%20many%20new%20features%20and%20bug%20fixeses.%20The%20most%20signifiant%20changes%20are&amp;short_link=&amp;shortener=google&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=5&amp;tags=&amp;ctype=" rel="nofollow" title="Share this on Facebook">Share this on Facebook</a>
		</li>
		<li class="shr-googlebuzz">
			<a href="http://www.shareaholic.com/api/share/?title=Installing+Ruby+on+Rails+Ubuntu+12.04+using+RVM+and+Ruby+1.9.3&amp;link=http://www.the-tech-tutorial.com/?p=1868&amp;notes=Ruby%20Rails%20is%20a%20Web%20application%20framework%20created%20in%202004%20intended%20as%20a%20rapid%20development%20web%20framework%20that%20runs%20the%20Ruby%20programing%20language.%20The%20latest%20version%20of%20the%20Ruby%20is%20%27Ruby%201.9.2%27%20and%20was%20realised%20in%20August%202011%2C%20it%20brings%20many%20new%20features%20and%20bug%20fixeses.%20The%20most%20signifiant%20changes%20are&amp;short_link=&amp;shortener=google&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=&amp;tags=&amp;ctype=" rel="nofollow" class="external" title=""></a>
		</li>
		<li class="shr-reddit">
			<a href="http://www.shareaholic.com/api/share/?title=Installing+Ruby+on+Rails+Ubuntu+12.04+using+RVM+and+Ruby+1.9.3&amp;link=http://www.the-tech-tutorial.com/?p=1868&amp;notes=Ruby%20Rails%20is%20a%20Web%20application%20framework%20created%20in%202004%20intended%20as%20a%20rapid%20development%20web%20framework%20that%20runs%20the%20Ruby%20programing%20language.%20The%20latest%20version%20of%20the%20Ruby%20is%20%27Ruby%201.9.2%27%20and%20was%20realised%20in%20August%202011%2C%20it%20brings%20many%20new%20features%20and%20bug%20fixeses.%20The%20most%20signifiant%20changes%20are&amp;short_link=&amp;shortener=google&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=40&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a>
		</li>
		<li class="shr-stumbleupon">
			<a href="http://www.shareaholic.com/api/share/?title=Installing+Ruby+on+Rails+Ubuntu+12.04+using+RVM+and+Ruby+1.9.3&amp;link=http://www.the-tech-tutorial.com/?p=1868&amp;notes=Ruby%20Rails%20is%20a%20Web%20application%20framework%20created%20in%202004%20intended%20as%20a%20rapid%20development%20web%20framework%20that%20runs%20the%20Ruby%20programing%20language.%20The%20latest%20version%20of%20the%20Ruby%20is%20%27Ruby%201.9.2%27%20and%20was%20realised%20in%20August%202011%2C%20it%20brings%20many%20new%20features%20and%20bug%20fixeses.%20The%20most%20signifiant%20changes%20are&amp;short_link=&amp;shortener=google&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=38&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="shr-twitter">
			<a href="http://www.shareaholic.com/api/share/?title=Installing+Ruby+on+Rails+Ubuntu+12.04+using+RVM+and+Ruby+1.9.3&amp;link=http://www.the-tech-tutorial.com/?p=1868&amp;notes=Ruby%20Rails%20is%20a%20Web%20application%20framework%20created%20in%202004%20intended%20as%20a%20rapid%20development%20web%20framework%20that%20runs%20the%20Ruby%20programing%20language.%20The%20latest%20version%20of%20the%20Ruby%20is%20%27Ruby%201.9.2%27%20and%20was%20realised%20in%20August%202011%2C%20it%20brings%20many%20new%20features%20and%20bug%20fixeses.%20The%20most%20signifiant%20changes%20are&amp;short_link=&amp;shortener=google&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=%2524%257Btitle%257D%2B-%2B%2524%257Bshort_link%257D&amp;service=7&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a>
		</li>
		<li class="shr-linkedin">
			<a href="http://www.shareaholic.com/api/share/?title=Installing+Ruby+on+Rails+Ubuntu+12.04+using+RVM+and+Ruby+1.9.3&amp;link=http://www.the-tech-tutorial.com/?p=1868&amp;notes=Ruby%20Rails%20is%20a%20Web%20application%20framework%20created%20in%202004%20intended%20as%20a%20rapid%20development%20web%20framework%20that%20runs%20the%20Ruby%20programing%20language.%20The%20latest%20version%20of%20the%20Ruby%20is%20%27Ruby%201.9.2%27%20and%20was%20realised%20in%20August%202011%2C%20it%20brings%20many%20new%20features%20and%20bug%20fixeses.%20The%20most%20signifiant%20changes%20are&amp;short_link=&amp;shortener=google&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=88&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Share this on LinkedIn">Share this on LinkedIn</a>
		</li>
</ul><div style="clear: both;"></div><div class="shr-getshr" style="visibility:hidden;font-size:10px !important"><a target="_blank" href="https://shareaholic.com/?src=pub">Get Shareaholic</a></div><div style="clear: both;"></div></div>

]]></content:encoded>
			<wfw:commentRss>http://www.the-tech-tutorial.com/?feed=rss2&#038;p=1868</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>How To Install Ruby on Rails Ubuntu Server 11.10</title>
		<link>http://www.the-tech-tutorial.com/?p=1801</link>
		<comments>http://www.the-tech-tutorial.com/?p=1801#comments</comments>
		<pubDate>Fri, 11 Nov 2011 09:56:48 +0000</pubDate>
		<dc:creator>Tyler Allen</dc:creator>
				<category><![CDATA[Fix It]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[Basic]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[Easy]]></category>
		<category><![CDATA[installing mysql2]]></category>
		<category><![CDATA[installing sqlite3]]></category>
		<category><![CDATA[rails]]></category>
		<category><![CDATA[ruby]]></category>
		<category><![CDATA[ruby on rails]]></category>
		<category><![CDATA[Server]]></category>
		<category><![CDATA[Simple]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[ubuntu 11.04]]></category>
		<category><![CDATA[ubutnu 11.10]]></category>

		<guid isPermaLink="false">http://www.the-tech-tutorial.com/?p=1801</guid>
		<description><![CDATA[Ruby Rails is a Web application framework created in 2004 intended as a rapid development web framework. It was intended to emphasize Convention over Configuration (CoC) meaning the developer only needs to specify unconventional aspects of the application. For example, if there is a class Sale in the model, the corresponding table in the database [...]]]></description>
				<content:encoded><![CDATA[<p><a href="http://www.the-tech-tutorial.com/wp-content/uploads/2011/11/rails.png"><img src="http://www.the-tech-tutorial.com/wp-content/uploads/2011/11/rails.png" alt="" title="rails" width="87" height="111" class="alignleft size-full wp-image-1851" /></a><span>Ruby Rails</span> is a <span><span><span>Web</span> application</span> framework</span> created in 2004 intended as a <span>rapid development</span> <span>web framework</span>. It was intended to emphasize <span>Convention over Configuration</span> (CoC) meaning the developer only needs to specify unconventional aspects of the application. For example, if there is a class Sale in the model, the corresponding table in the database is called sales by default. It is only if one deviates from this convention, such as calling the table &#8220;products sold&#8221;, that the developer needs to write code regarding these names. It has also been designed around the &#8220;Don&#8217;t repeat yourself&#8221; principle. Both of these ways of thinking allow you, with <span>Ruby Rails<span>, to create excellent, <span>dynamic websites</span> very quickly. So to get started we need to setup a <span><span><span>Ruby</span> Rails</span> <span>development server</span></span> on <span>Ubuntu</span> (<span>Ubuntu 11.04</span>, <span>Ubuntu 11.10</span>)<span id="more-1801"></span></p>
<div style="width:350px; height:330px;background-image: url(http://www.the-tech-tutorial.com/wp-content/uploads/2011/03/add_back1.png); display: block; float: right; padding: 20px 25px 0px 30px;">
<script type="text/javascript"><!--
google_ad_client = "pub-2094089617852812";
/* 2011 In Text Box */
google_ad_slot = "1777411765";
google_ad_width = 336;
google_ad_height = 280;
//-->
</script><br />
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></div>
<p>In this <span>tutorial</span> we are going to go through an install of <span><span><span>Ruby Rails</span> on Ubuntu</span> 11.10</span> using <span>Ruby 1.8</span>. This will work on previous Ubuntu versions however Ubuntu 11.10 is the version I tested this walk-through. </p>
<p>Before we go anywhere we need to install and setup a <span>MySQL</span> server as <span>Ruby Rails</span> requires a database to function correctly, to do this open your terminal and type:</p>
<pre>sudo apt-get install mysql-server</pre>
<p>when prompted enter the root password for your database server, remember this as you&#8217;ll need it later.</p>
<p>Once your <span><span>MySQL</span> database</span> is installed we need to install the <span>Ruby</span> language. The <span>Ruby</span> language is the programing that <span>Ruby Rails</span> runs on. <span>Ruby</span> itself was designed before <span>Ruby Rails</span> as a dynamic, reflective, general-purpose object-oriented programming language. It was inspired by Perl with Smalltalk-like features. I strongly recommend you learn to make a few programs in ruby before moving onto working work ruby rails, a great free e-book to teach you <span>Ruby</span> can be <a href="http://ruby-doc.org/docs/ProgrammingRuby/">found here</a>. There are also a few other programs that are needed to run <span>Ruby Rails</span>, these will all be installed in this step so it may take a while:</p>
<pre>sudo apt-get install ruby ruby-full libzlib-ruby rvm rdoc irb make sqlite3 libmysql-ruby libmysqlclient-dev nodejs</pre>
<p>Now we need to install <span>Gem</span>, this is a little like &#8220;Apt-get&#8221; or &#8220;Aptitude&#8221; however it’s designed just to download modules for <span>Ruby</span> &#038; <span>Ruby Rails</span>. Personly I&#8217;ve had problems when <span>installing <span>Gem</span></span> on <span>Ubuntu</span> using <span>apt-get</span> so for this tutoiral we&#8217;ll install using the <span>Ruby</span> file downloaded frm the <span>rubyonrails</span>.org website. </p>
<pre>
cd ~
wget http://rubyforge.org/frs/download.php/75475/rubygems-1.8.11.tgz
tar -xf rubygems-1.8.11.tgz
cd rubygems-1.8.11
sudo ruby setup.rb
</pre>
<p>Once gem is installed we need to use it to download a few packages (or <span>Gems</span>),</p>
<pre>
sudo gem1.8 install mysql2 -v '0.3.10'
</pre>
<p>Once this is downloaded and installed by <span>Gem</span> its time to download and install <span>Rails</span> itself. Installing Rails from <span>Gem</span> can take a while and on my install it always appears to <span>hang</span> for a while. If this happens to you don’t worry it is doing its job, just wait a few more minutes.</p>
<pre>sudo gem1.8 install rails</pre>
<p>Now its time to <span>setup</span> a new site, the following step will create the site new_<span>rails</span>, feel free to change this to what you like for the remainder of this tutorial,</p>
<pre>rails new new_rails -d mysql </pre>
<p>Once this completed your ready to setup your database, todo this open your mysql client with</p>
<pre>mysql -u root -p</pre>
<p>and create the database for youe app (here we use [APPNAME]_development, you should subsituite your app name in the APPNAME section)</p>
<pre>CREATE DATABASE new_rails_development;</pre>
<p>Now you can exit your mysql client with the &#8220;Exit&#8221; command. Now you&#8217;ll need to enter your <span><span><span>MySQL</span> database</span> password</span> into the rails config. You do this by editing a config file saved in the config directory of your new site,</p>
<pre>nano ~/new_rails/config/database.yml</pre>
<p>Once you have this file open you&#8217;ll need to fill in the password fields with your database password, you only need to do this for the password field (i.e the development DB). </p>
<p>Now its time to start your Ruby Rails Server,</p>
<pre>cd new_rails
sudo rails server</pre>
<p>you should see something that looks like this:<br />
<a href="http://www.the-tech-tutorial.com/wp-content/uploads/2011/11/ServStarted.jpg"><img class="aligncenter size-full wp-image-1818" title="ServStarted" src="http://www.the-tech-tutorial.com/wp-content/uploads/2011/11/ServStarted.jpg" alt="" width="505" height="378" /></a></p>
<p>Now that your <span>server</span> is running go to your <span>web</span> browser and enter the address</p>
<pre>http://[YOUR IP]:3000/</pre>
<p><center><br />
<script type="text/javascript"><!--
google_ad_client = "ca-pub-2094089617852812";
/* 2011 Bottom */
google_ad_slot = "5825267234";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script><br />
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></center><br />
If your development server is setup correclty then you should see the folowing window:<br />
<a href="http://www.the-tech-tutorial.com/wp-content/uploads/2011/11/Running.jpg"><img class="aligncenter size-full wp-image-1819" title="Running" src="http://www.the-tech-tutorial.com/wp-content/uploads/2011/11/Running.jpg" alt="" width="500" height="366" /></a><br />
If you see this screen then you’ve setup your Ruby Rails development server on Ubuntu 11.04. There are many more steps required in building a website using ruby rails, these are all out of the scope of this tutorial, however you can find a great starting <a href=" http://guides.rubyonrails.org/getting_started.html">guide here</a>, just scroll down to Step 4 to start where we have left off.</p>
<p>If you have any problems or comments please feel free to leave them in the comments section and I&#8217;ll try and get back to you asap. </p>
<p>When I was setting up this tutorial I ran into several problems with <span>Ubuntu</span> and <span>Ruby Rails</span>, these were the following error messages:</p>
<pre><span><span><span>An error</span> occured</span> while <span>installing mysql2</span> (0.3.10)</span>
<span>An<span> <span>error</span> occured</span></span> while <span>installing sqlite3</span> (1.3.4)</pre>
<p>If have tried installing <span>Ruby Rails on Ubuntu</span> then start again following the above steps in order and you won’t have these problems. However if cant be botherd to install <span><span>Ruby</span> On <span>Rails</span></span> again then running the following commands should fix the problem:</p>
<pre>
sudo apt-get install ruby ruby-full libzlib-ruby rdoc irb make sqlite3 libmysql-ruby libmysqlclient-dev nodejs
rails new new_rails -d mysql</pre>
<div name="googleone_share_1" style="position:relative;z-index:5;float: right; margin-left: 10px;"><g:plusone size="standard" count="" href="http://www.the-tech-tutorial.com/?p=1801"></g:plusone></div>

<div class="shr-bookmarks shr-bookmarks-expand shr-bookmarks-center shr-bookmarks-bg-knowledge">
<ul class="socials">
		<li class="shr-digg">
			<a href="http://www.shareaholic.com/api/share/?title=How+To+Install+Ruby+on+Rails+Ubuntu+Server+11.10&amp;link=http://www.the-tech-tutorial.com/?p=1801&amp;notes=Ruby%20Rails%20is%20a%20Web%20application%20framework%20created%20in%202004%20intended%20as%20a%20rapid%20development%20web%20framework.%20It%20was%20intended%20to%20emphasize%20Convention%20over%20Configuration%20%28CoC%29%20meaning%20the%20developer%20only%20needs%20to%20specify%20unconventional%20aspects%20of%20the%20application.%20For%20example%2C%20if%20there%20is%20a%20class%20Sale%20in%20th&amp;short_link=&amp;shortener=google&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=3&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="shr-facebook">
			<a href="http://www.shareaholic.com/api/share/?title=How+To+Install+Ruby+on+Rails+Ubuntu+Server+11.10&amp;link=http://www.the-tech-tutorial.com/?p=1801&amp;notes=Ruby%20Rails%20is%20a%20Web%20application%20framework%20created%20in%202004%20intended%20as%20a%20rapid%20development%20web%20framework.%20It%20was%20intended%20to%20emphasize%20Convention%20over%20Configuration%20%28CoC%29%20meaning%20the%20developer%20only%20needs%20to%20specify%20unconventional%20aspects%20of%20the%20application.%20For%20example%2C%20if%20there%20is%20a%20class%20Sale%20in%20th&amp;short_link=&amp;shortener=google&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=5&amp;tags=&amp;ctype=" rel="nofollow" title="Share this on Facebook">Share this on Facebook</a>
		</li>
		<li class="shr-googlebuzz">
			<a href="http://www.shareaholic.com/api/share/?title=How+To+Install+Ruby+on+Rails+Ubuntu+Server+11.10&amp;link=http://www.the-tech-tutorial.com/?p=1801&amp;notes=Ruby%20Rails%20is%20a%20Web%20application%20framework%20created%20in%202004%20intended%20as%20a%20rapid%20development%20web%20framework.%20It%20was%20intended%20to%20emphasize%20Convention%20over%20Configuration%20%28CoC%29%20meaning%20the%20developer%20only%20needs%20to%20specify%20unconventional%20aspects%20of%20the%20application.%20For%20example%2C%20if%20there%20is%20a%20class%20Sale%20in%20th&amp;short_link=&amp;shortener=google&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=&amp;tags=&amp;ctype=" rel="nofollow" class="external" title=""></a>
		</li>
		<li class="shr-reddit">
			<a href="http://www.shareaholic.com/api/share/?title=How+To+Install+Ruby+on+Rails+Ubuntu+Server+11.10&amp;link=http://www.the-tech-tutorial.com/?p=1801&amp;notes=Ruby%20Rails%20is%20a%20Web%20application%20framework%20created%20in%202004%20intended%20as%20a%20rapid%20development%20web%20framework.%20It%20was%20intended%20to%20emphasize%20Convention%20over%20Configuration%20%28CoC%29%20meaning%20the%20developer%20only%20needs%20to%20specify%20unconventional%20aspects%20of%20the%20application.%20For%20example%2C%20if%20there%20is%20a%20class%20Sale%20in%20th&amp;short_link=&amp;shortener=google&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=40&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a>
		</li>
		<li class="shr-stumbleupon">
			<a href="http://www.shareaholic.com/api/share/?title=How+To+Install+Ruby+on+Rails+Ubuntu+Server+11.10&amp;link=http://www.the-tech-tutorial.com/?p=1801&amp;notes=Ruby%20Rails%20is%20a%20Web%20application%20framework%20created%20in%202004%20intended%20as%20a%20rapid%20development%20web%20framework.%20It%20was%20intended%20to%20emphasize%20Convention%20over%20Configuration%20%28CoC%29%20meaning%20the%20developer%20only%20needs%20to%20specify%20unconventional%20aspects%20of%20the%20application.%20For%20example%2C%20if%20there%20is%20a%20class%20Sale%20in%20th&amp;short_link=&amp;shortener=google&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=38&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="shr-twitter">
			<a href="http://www.shareaholic.com/api/share/?title=How+To+Install+Ruby+on+Rails+Ubuntu+Server+11.10&amp;link=http://www.the-tech-tutorial.com/?p=1801&amp;notes=Ruby%20Rails%20is%20a%20Web%20application%20framework%20created%20in%202004%20intended%20as%20a%20rapid%20development%20web%20framework.%20It%20was%20intended%20to%20emphasize%20Convention%20over%20Configuration%20%28CoC%29%20meaning%20the%20developer%20only%20needs%20to%20specify%20unconventional%20aspects%20of%20the%20application.%20For%20example%2C%20if%20there%20is%20a%20class%20Sale%20in%20th&amp;short_link=&amp;shortener=google&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=%2524%257Btitle%257D%2B-%2B%2524%257Bshort_link%257D&amp;service=7&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a>
		</li>
		<li class="shr-linkedin">
			<a href="http://www.shareaholic.com/api/share/?title=How+To+Install+Ruby+on+Rails+Ubuntu+Server+11.10&amp;link=http://www.the-tech-tutorial.com/?p=1801&amp;notes=Ruby%20Rails%20is%20a%20Web%20application%20framework%20created%20in%202004%20intended%20as%20a%20rapid%20development%20web%20framework.%20It%20was%20intended%20to%20emphasize%20Convention%20over%20Configuration%20%28CoC%29%20meaning%20the%20developer%20only%20needs%20to%20specify%20unconventional%20aspects%20of%20the%20application.%20For%20example%2C%20if%20there%20is%20a%20class%20Sale%20in%20th&amp;short_link=&amp;shortener=google&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=88&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Share this on LinkedIn">Share this on LinkedIn</a>
		</li>
</ul><div style="clear: both;"></div><div class="shr-getshr" style="visibility:hidden;font-size:10px !important"><a target="_blank" href="https://shareaholic.com/?src=pub">Get Shareaholic</a></div><div style="clear: both;"></div></div>

]]></content:encoded>
			<wfw:commentRss>http://www.the-tech-tutorial.com/?feed=rss2&#038;p=1801</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>How to mass/bulk delete all unapproved comments from wordpress</title>
		<link>http://www.the-tech-tutorial.com/?p=1761</link>
		<comments>http://www.the-tech-tutorial.com/?p=1761#comments</comments>
		<pubDate>Thu, 03 Nov 2011 11:18:21 +0000</pubDate>
		<dc:creator>Tyler Allen</dc:creator>
				<category><![CDATA[Fix It]]></category>
		<category><![CDATA[Main]]></category>
		<category><![CDATA[Short]]></category>
		<category><![CDATA[bulk delete]]></category>
		<category><![CDATA[comments]]></category>
		<category><![CDATA[delete all]]></category>
		<category><![CDATA[delete all comments]]></category>
		<category><![CDATA[mass delete]]></category>
		<category><![CDATA[spam]]></category>
		<category><![CDATA[unaproved]]></category>
		<category><![CDATA[unaproved comments]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://www.the-tech-tutorial.com/?p=1761</guid>
		<description><![CDATA[Do you have the problem of hundreds of comments building up on your WordPress site, we&#8217;ll the best solution is to check it regularly and delete the unwanted comments, just leaving the appropriate ones. However what happens if you go on holiday for a week and don’t check your blog, or if your forget to [...]]]></description>
				<content:encoded><![CDATA[<p><a href="http://www.the-tech-tutorial.com/wp-content/uploads/2011/11/slef_destruct.jpg"><img src="http://www.the-tech-tutorial.com/wp-content/uploads/2011/11/slef_destruct.jpg" alt="" title="slef_destruct" width="186" height="122" class="alignleft size-full wp-image-1791" /></a>Do you have the problem of <span>hundreds</span> of <span>comments building up</span> on your <span><span>WordPress</span> site</span>, we&#8217;ll the best solution is to check it regularly and <span>delete</span> the unwanted comments, just leaving the appropriate ones. However what happens if you go on holiday for a week and don’t check your blog, or if your forget to look at your comments for a few day (i.e. lost weekend down the pub) well you&#8217;ll probably find <span>several <span>hundred <span>comments</span></span></span> have built up in this time. Now you can <span>delete</span> these <span>comments manually</span> but this is time consuming. To make your life easier I’m going to go through some simple ways of <span><span><span>deleting</span> <span>all</span></span> <span>unapproved <span><span>comments</span></span></span></span> while <strong><span>not</strong> using phpMyAdmin</span> (as every other tutorial I’ve seen does use phpMyAdmin).<span id="more-1761"></span></p>
<div style="width:350px; height:330px;background-image: url(http://www.the-tech-tutorial.com/wp-content/uploads/2011/03/add_back1.png); display: block; float: right; padding: 20px 25px 0px 30px;">
<script type="text/javascript"><!--
google_ad_client = "pub-2094089617852812";
/* 2011 In Text Box */
google_ad_slot = "1777411765";
google_ad_width = 336;
google_ad_height = 280;
//-->
</script><br />
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></div>
<p>Just a quick warning before we start this method is pretty brutal, <strong>it is not a spam filter</strong> and these methods will <span><span>delete <strong>all</span></strong> your comments</span> weaver they are spam or not, so I only recommend using it when you have let your comments get out of hand and really don’t have time to go through manually, otherwise you might as well just disable <span>comments</span> in your <span>WordPress</span> settings.</p>
<p>I said at the beginning this tutorial is for those who <span>don’t have phpMyAdmin</span>, well as I’m nice I’ve included a quick video for the phpMyAdmin method at the bottom of the page. However <span>if you don’t have phpMyAdmin</span> installed there are a few other way you can <span><span>delete all</span> your <span>unapproved comments</span></span>. The easiest way is to have shell access to your box, if you don’t know just skip to the next step. All you need to do is access the box and run one <span>MySQL statement</span>, this can be done as follows:</p>
<pre>mysql -u [USERNAME] -p -e "DELETE FROM wordpress.wp_comments WHERE comment_approved=0;" wordpress</pre>
<p>And thats it <span><span>all your unappoved comments</span> will be <span>delted</span></span> saving your many hours of manualy <span>deleting comments</span>.</p>
<p><strong>NEXT STEP</strong>: If you don’t have access to your shell and you <span>don’t have phpMyAdmin</span> installed there is another way to do this, you create a simple PHP page that <span><span>delete</span>s all comments</span> and access it form your <span>web browser</span>. This should only really be used as a last resort as it will create a page <strong>that anyone can access</strong> that once opened will <span>delete all your unread comments</span>. This is fine to-do so long as your delete/restrict the page after you&#8217;ve finished. So let’s get started first open Notepad or some other html editor and create a page with the following code while adding your own username, password, and database name:<br />
<center><br />
<script type="text/javascript"><!--
google_ad_client = "ca-pub-2094089617852812";
/* 2011 Bottom */
google_ad_slot = "5825267234";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script><br />
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></center></p>
<pre class="brush:php">&lt;?php

//Warning this page will delete all your WordPress comments once opened and can accessed by anyone so you should delete or restrict once used!

//Please replace the following with your details

$usrName="[REPLACE WITH YOUR USERNAME]";
$usrPass="[REPLACE WITH YOUR PASSWORD]";
$usrDB="[REPLACE WITH YOUR DATABASE NAME]";

$con = mysql_connect("localhost",$usrName,$usrPass);
if (!$con)
{
	die('Could not connect: Please check your usrName &amp; usrPass settings');
}

mysql_select_db($usrDB, $con);

$result = mysql_query("DELETE FROM wp_comments WHERE comment_approved=0;");
if (!$result)
{
	die('Could not delete: Please check your usrDB setting');
}
else
{
	echo 'All unapproved comments now deleted';
}

?&gt;</pre>
<p>Now you&#8217;ll need to save this page to something like wp-coment-remove.php then upload it to your site via your normal file transfer method (either ftp or via a http file uploader) once you have done this all you&#8217;ll need to do is access the page, so for this site I would go to the page http://www.the-tech-tutorial.com/wp-coment-remove.php , just substitute the-tech-tutorial for your sites address. Now that you have run this page, <span>all your unapproved comments will be gone</span>, hooray. Just remember that this page is a security risk because anyone can access it so either restrict is access once you’re done or delete the page.</p>
<p>As I promised here is the YouTube video showing <span>how to</span> do this <span>with phpMyAdmin</span>:<br />
<center><iframe width="420" height="315" src="http://www.youtube.com/embed/QCA4loQi7yM" frameborder="0" allowfullscreen></iframe></center></p>
<div name="googleone_share_1" style="position:relative;z-index:5;float: right; margin-left: 10px;"><g:plusone size="standard" count="" href="http://www.the-tech-tutorial.com/?p=1761"></g:plusone></div>

<div class="shr-bookmarks shr-bookmarks-expand shr-bookmarks-center shr-bookmarks-bg-knowledge">
<ul class="socials">
		<li class="shr-digg">
			<a href="http://www.shareaholic.com/api/share/?title=How+to+mass%2Fbulk+delete+all+unapproved+comments+from+wordpress&amp;link=http://www.the-tech-tutorial.com/?p=1761&amp;notes=Do%20you%20have%20the%20problem%20of%20hundreds%20of%20comments%20building%20up%20on%20your%20Wordpress%20site%2C%20we%27ll%20the%20best%20solution%20is%20to%20check%20it%20regularly%20and%20delete%20the%20unwanted%20comments%2C%20just%20leaving%20the%20appropriate%20ones.%20However%20what%20happens%20if%20you%20go%20on%20holiday%20for%20a%20week%20and%20don%E2%80%99t%20check%20your%20blog%2C%20or%20if%20your%20forge&amp;short_link=&amp;shortener=google&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=3&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="shr-facebook">
			<a href="http://www.shareaholic.com/api/share/?title=How+to+mass%2Fbulk+delete+all+unapproved+comments+from+wordpress&amp;link=http://www.the-tech-tutorial.com/?p=1761&amp;notes=Do%20you%20have%20the%20problem%20of%20hundreds%20of%20comments%20building%20up%20on%20your%20Wordpress%20site%2C%20we%27ll%20the%20best%20solution%20is%20to%20check%20it%20regularly%20and%20delete%20the%20unwanted%20comments%2C%20just%20leaving%20the%20appropriate%20ones.%20However%20what%20happens%20if%20you%20go%20on%20holiday%20for%20a%20week%20and%20don%E2%80%99t%20check%20your%20blog%2C%20or%20if%20your%20forge&amp;short_link=&amp;shortener=google&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=5&amp;tags=&amp;ctype=" rel="nofollow" title="Share this on Facebook">Share this on Facebook</a>
		</li>
		<li class="shr-googlebuzz">
			<a href="http://www.shareaholic.com/api/share/?title=How+to+mass%2Fbulk+delete+all+unapproved+comments+from+wordpress&amp;link=http://www.the-tech-tutorial.com/?p=1761&amp;notes=Do%20you%20have%20the%20problem%20of%20hundreds%20of%20comments%20building%20up%20on%20your%20Wordpress%20site%2C%20we%27ll%20the%20best%20solution%20is%20to%20check%20it%20regularly%20and%20delete%20the%20unwanted%20comments%2C%20just%20leaving%20the%20appropriate%20ones.%20However%20what%20happens%20if%20you%20go%20on%20holiday%20for%20a%20week%20and%20don%E2%80%99t%20check%20your%20blog%2C%20or%20if%20your%20forge&amp;short_link=&amp;shortener=google&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=&amp;tags=&amp;ctype=" rel="nofollow" class="external" title=""></a>
		</li>
		<li class="shr-reddit">
			<a href="http://www.shareaholic.com/api/share/?title=How+to+mass%2Fbulk+delete+all+unapproved+comments+from+wordpress&amp;link=http://www.the-tech-tutorial.com/?p=1761&amp;notes=Do%20you%20have%20the%20problem%20of%20hundreds%20of%20comments%20building%20up%20on%20your%20Wordpress%20site%2C%20we%27ll%20the%20best%20solution%20is%20to%20check%20it%20regularly%20and%20delete%20the%20unwanted%20comments%2C%20just%20leaving%20the%20appropriate%20ones.%20However%20what%20happens%20if%20you%20go%20on%20holiday%20for%20a%20week%20and%20don%E2%80%99t%20check%20your%20blog%2C%20or%20if%20your%20forge&amp;short_link=&amp;shortener=google&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=40&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a>
		</li>
		<li class="shr-stumbleupon">
			<a href="http://www.shareaholic.com/api/share/?title=How+to+mass%2Fbulk+delete+all+unapproved+comments+from+wordpress&amp;link=http://www.the-tech-tutorial.com/?p=1761&amp;notes=Do%20you%20have%20the%20problem%20of%20hundreds%20of%20comments%20building%20up%20on%20your%20Wordpress%20site%2C%20we%27ll%20the%20best%20solution%20is%20to%20check%20it%20regularly%20and%20delete%20the%20unwanted%20comments%2C%20just%20leaving%20the%20appropriate%20ones.%20However%20what%20happens%20if%20you%20go%20on%20holiday%20for%20a%20week%20and%20don%E2%80%99t%20check%20your%20blog%2C%20or%20if%20your%20forge&amp;short_link=&amp;shortener=google&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=38&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="shr-twitter">
			<a href="http://www.shareaholic.com/api/share/?title=How+to+mass%2Fbulk+delete+all+unapproved+comments+from+wordpress&amp;link=http://www.the-tech-tutorial.com/?p=1761&amp;notes=Do%20you%20have%20the%20problem%20of%20hundreds%20of%20comments%20building%20up%20on%20your%20Wordpress%20site%2C%20we%27ll%20the%20best%20solution%20is%20to%20check%20it%20regularly%20and%20delete%20the%20unwanted%20comments%2C%20just%20leaving%20the%20appropriate%20ones.%20However%20what%20happens%20if%20you%20go%20on%20holiday%20for%20a%20week%20and%20don%E2%80%99t%20check%20your%20blog%2C%20or%20if%20your%20forge&amp;short_link=&amp;shortener=google&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=%2524%257Btitle%257D%2B-%2B%2524%257Bshort_link%257D&amp;service=7&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a>
		</li>
		<li class="shr-linkedin">
			<a href="http://www.shareaholic.com/api/share/?title=How+to+mass%2Fbulk+delete+all+unapproved+comments+from+wordpress&amp;link=http://www.the-tech-tutorial.com/?p=1761&amp;notes=Do%20you%20have%20the%20problem%20of%20hundreds%20of%20comments%20building%20up%20on%20your%20Wordpress%20site%2C%20we%27ll%20the%20best%20solution%20is%20to%20check%20it%20regularly%20and%20delete%20the%20unwanted%20comments%2C%20just%20leaving%20the%20appropriate%20ones.%20However%20what%20happens%20if%20you%20go%20on%20holiday%20for%20a%20week%20and%20don%E2%80%99t%20check%20your%20blog%2C%20or%20if%20your%20forge&amp;short_link=&amp;shortener=google&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=88&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Share this on LinkedIn">Share this on LinkedIn</a>
		</li>
</ul><div style="clear: both;"></div><div class="shr-getshr" style="visibility:hidden;font-size:10px !important"><a target="_blank" href="https://shareaholic.com/?src=pub">Get Shareaholic</a></div><div style="clear: both;"></div></div>

]]></content:encoded>
			<wfw:commentRss>http://www.the-tech-tutorial.com/?feed=rss2&#038;p=1761</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Enable potentially unsafe attachments in outlook</title>
		<link>http://www.the-tech-tutorial.com/?p=1739</link>
		<comments>http://www.the-tech-tutorial.com/?p=1739#comments</comments>
		<pubDate>Wed, 31 Aug 2011 09:51:10 +0000</pubDate>
		<dc:creator>Tyler Allen</dc:creator>
				<category><![CDATA[Fix It]]></category>
		<category><![CDATA[Short]]></category>

		<guid isPermaLink="false">http://www.the-tech-tutorial.com/?p=1739</guid>
		<description><![CDATA[Ahh the &#8220;Outlook blocked access to the following potentially unsafe attachments&#8221; message, one of the most annoying things you can see when you in a hurry to get an attachment. However there is a good reason that attachments are disabled in outlook, some attachments can potentially be unsafe, as the warning says. But so long [...]]]></description>
				<content:encoded><![CDATA[<p><a href="http://www.the-tech-tutorial.com/wp-content/uploads/2011/08/outlook_exe_top.jpg"><img class="aligncenter size-full wp-image-1743" title="outlook_exe_top" src="http://www.the-tech-tutorial.com/wp-content/uploads/2011/08/outlook_exe_top.jpg" alt="" width="407" height="36" /></a>Ahh the &#8220;<span><span><span>Outlook</span> <span>blocked access</span></span> to the following <span>potentially unsafe <span>attachments</span></span></span>&#8221; message, one of the most annoying things you can see when you in a hurry to get an <span>attachment</span>. However there is a good reason that <span><span>attachments</span> are disabled</span> in <span>outlook</span>, some <span><span>attachment</span>s</span> can <span><span>potentially</span> be <span>unsafe</span></span>, as the <span>warning</span> says. But so long as you know were an <span>attachment</span> is from and you know the risks why <span><span>can&#8217;t <span>you enable</span><span> these</span>, after all you did pay for your computer and Office so you should be able to do what you want, right? Well in outlooks default setting there is no way to <span>enable unsafe attachments</span>, however there is a setting in the registry to <span><span>enable</span> them</span>:<span id="more-1739"></span></p>
<p>Just before I begin I want to remind you that there is a <strong>GOOD RESON</strong> why <span>outlook</span> blocks certain types of files and that for <span>security</span>. However when there is a file I <span>need to <span>open</span></span> and I know it <strong>IS SAFE</strong> I go through these steps to <span>enable</span> it then <span>disable</span> the after I’ve <span>download the file</span>. So let’s start:<br />
<strong><br />
Windows 95 &#8211; XP:</strong></p>
<pre>Start &gt; Run &gt; Type <em>regedi</em>t &gt; Click Ok

Navigate through the tree on the left panel to:

+HKEY_CURRENT_USER
++Software
+++Microsoft
++++Office
+++++14.0(or your version of office (14.0 for Office 2010))
++++++Outlook
+++++++Security

Once found Right Click on the Right Hand panel and select
New&gt;String Value &gt; Name it <em>Level1Remove</em>

Now double click on the new string, add <em>exe</em> in the Value Data field to enable .exe files.

Once this is complete restart outlook to save the changes.</pre>
<p><center><br />
<script type="text/javascript">// <![CDATA[
 google_ad_client = "ca-pub-2094089617852812"; /* 2011 Bottom */ google_ad_slot = "5825267234"; google_ad_width = 468; google_ad_height = 60;
// ]]&gt;</script><br />
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js">// <![CDATA[</p>
<p>// ]]&gt;</script></center><br />
<strong>Windows Vistsa &#8211; 7</strong></p>
<pre>Start &gt; Type <em>regedit</em> in the search bar &gt; click Registry Editor in the programs window

Navigate through the tree on the left panel to:

+HKEY_CURRENT_USER
++Software
+++Microsoft
++++Office
+++++Outlook
++++++Security

Once found Right Click on the Right Hand panel and select
New&gt;String Value &gt; Name it <em>Level1Remove</em>

Now double click on the new string, add <em>exe</em> in the Value Data field to enable .exe files.

Once this is complete restart outlook to save the changes.</pre>
<div style="width: 350px; height: 330px; background-image: url('http://www.the-tech-tutorial.com/wp-content/uploads/2011/03/add_back1.png'); display: block; float: right; padding: 20px 25px 0px 30px;"><script type="text/javascript">// <![CDATA[
 google_ad_client = "pub-2094089617852812"; /* 2011 In Text Box */ google_ad_slot = "1777411765"; google_ad_width = 336; google_ad_height = 280;
// ]]&gt;</script><br />
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js">// <![CDATA[</p>
<p>// ]]&gt;</script></div>
<p>You can add multiple allowed types by editing this new Registry Entry like so:<br />
exe;mdb;vbs</p>
<p>Please remember you should only allow dangerous file types <strong>temporarily</strong>. Once you have the file you need you disable the file type by removing the value of the new Registry Value.</p>
<p>Please feel free to add any comments or questions, thanks.</p>
<div name="googleone_share_1" style="position:relative;z-index:5;float: right; margin-left: 10px;"><g:plusone size="standard" count="" href="http://www.the-tech-tutorial.com/?p=1739"></g:plusone></div>

<div class="shr-bookmarks shr-bookmarks-expand shr-bookmarks-center shr-bookmarks-bg-knowledge">
<ul class="socials">
		<li class="shr-digg">
			<a href="http://www.shareaholic.com/api/share/?title=Enable+potentially+unsafe+attachments+in+outlook&amp;link=http://www.the-tech-tutorial.com/?p=1739&amp;notes=Ahh%20the%20%22Outlook%20blocked%20access%20to%20the%20following%20potentially%20unsafe%20attachments%22%20message%2C%20one%20of%20the%20most%20annoying%20things%20you%20can%20see%20when%20you%20in%20a%20hurry%20to%20get%20an%20attachment.%20However%20there%20is%20a%20good%20reason%20that%20attachments%20are%20disabled%20in%20outlook%2C%20some%20attachments%20can%20potentially%20be%20unsafe%2C%20as%20the%20&amp;short_link=&amp;shortener=google&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=3&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="shr-facebook">
			<a href="http://www.shareaholic.com/api/share/?title=Enable+potentially+unsafe+attachments+in+outlook&amp;link=http://www.the-tech-tutorial.com/?p=1739&amp;notes=Ahh%20the%20%22Outlook%20blocked%20access%20to%20the%20following%20potentially%20unsafe%20attachments%22%20message%2C%20one%20of%20the%20most%20annoying%20things%20you%20can%20see%20when%20you%20in%20a%20hurry%20to%20get%20an%20attachment.%20However%20there%20is%20a%20good%20reason%20that%20attachments%20are%20disabled%20in%20outlook%2C%20some%20attachments%20can%20potentially%20be%20unsafe%2C%20as%20the%20&amp;short_link=&amp;shortener=google&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=5&amp;tags=&amp;ctype=" rel="nofollow" title="Share this on Facebook">Share this on Facebook</a>
		</li>
		<li class="shr-googlebuzz">
			<a href="http://www.shareaholic.com/api/share/?title=Enable+potentially+unsafe+attachments+in+outlook&amp;link=http://www.the-tech-tutorial.com/?p=1739&amp;notes=Ahh%20the%20%22Outlook%20blocked%20access%20to%20the%20following%20potentially%20unsafe%20attachments%22%20message%2C%20one%20of%20the%20most%20annoying%20things%20you%20can%20see%20when%20you%20in%20a%20hurry%20to%20get%20an%20attachment.%20However%20there%20is%20a%20good%20reason%20that%20attachments%20are%20disabled%20in%20outlook%2C%20some%20attachments%20can%20potentially%20be%20unsafe%2C%20as%20the%20&amp;short_link=&amp;shortener=google&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=&amp;tags=&amp;ctype=" rel="nofollow" class="external" title=""></a>
		</li>
		<li class="shr-reddit">
			<a href="http://www.shareaholic.com/api/share/?title=Enable+potentially+unsafe+attachments+in+outlook&amp;link=http://www.the-tech-tutorial.com/?p=1739&amp;notes=Ahh%20the%20%22Outlook%20blocked%20access%20to%20the%20following%20potentially%20unsafe%20attachments%22%20message%2C%20one%20of%20the%20most%20annoying%20things%20you%20can%20see%20when%20you%20in%20a%20hurry%20to%20get%20an%20attachment.%20However%20there%20is%20a%20good%20reason%20that%20attachments%20are%20disabled%20in%20outlook%2C%20some%20attachments%20can%20potentially%20be%20unsafe%2C%20as%20the%20&amp;short_link=&amp;shortener=google&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=40&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a>
		</li>
		<li class="shr-stumbleupon">
			<a href="http://www.shareaholic.com/api/share/?title=Enable+potentially+unsafe+attachments+in+outlook&amp;link=http://www.the-tech-tutorial.com/?p=1739&amp;notes=Ahh%20the%20%22Outlook%20blocked%20access%20to%20the%20following%20potentially%20unsafe%20attachments%22%20message%2C%20one%20of%20the%20most%20annoying%20things%20you%20can%20see%20when%20you%20in%20a%20hurry%20to%20get%20an%20attachment.%20However%20there%20is%20a%20good%20reason%20that%20attachments%20are%20disabled%20in%20outlook%2C%20some%20attachments%20can%20potentially%20be%20unsafe%2C%20as%20the%20&amp;short_link=&amp;shortener=google&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=38&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="shr-twitter">
			<a href="http://www.shareaholic.com/api/share/?title=Enable+potentially+unsafe+attachments+in+outlook&amp;link=http://www.the-tech-tutorial.com/?p=1739&amp;notes=Ahh%20the%20%22Outlook%20blocked%20access%20to%20the%20following%20potentially%20unsafe%20attachments%22%20message%2C%20one%20of%20the%20most%20annoying%20things%20you%20can%20see%20when%20you%20in%20a%20hurry%20to%20get%20an%20attachment.%20However%20there%20is%20a%20good%20reason%20that%20attachments%20are%20disabled%20in%20outlook%2C%20some%20attachments%20can%20potentially%20be%20unsafe%2C%20as%20the%20&amp;short_link=&amp;shortener=google&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=%2524%257Btitle%257D%2B-%2B%2524%257Bshort_link%257D&amp;service=7&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a>
		</li>
		<li class="shr-linkedin">
			<a href="http://www.shareaholic.com/api/share/?title=Enable+potentially+unsafe+attachments+in+outlook&amp;link=http://www.the-tech-tutorial.com/?p=1739&amp;notes=Ahh%20the%20%22Outlook%20blocked%20access%20to%20the%20following%20potentially%20unsafe%20attachments%22%20message%2C%20one%20of%20the%20most%20annoying%20things%20you%20can%20see%20when%20you%20in%20a%20hurry%20to%20get%20an%20attachment.%20However%20there%20is%20a%20good%20reason%20that%20attachments%20are%20disabled%20in%20outlook%2C%20some%20attachments%20can%20potentially%20be%20unsafe%2C%20as%20the%20&amp;short_link=&amp;shortener=google&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=88&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Share this on LinkedIn">Share this on LinkedIn</a>
		</li>
</ul><div style="clear: both;"></div><div class="shr-getshr" style="visibility:hidden;font-size:10px !important"><a target="_blank" href="https://shareaholic.com/?src=pub">Get Shareaholic</a></div><div style="clear: both;"></div></div>

]]></content:encoded>
			<wfw:commentRss>http://www.the-tech-tutorial.com/?feed=rss2&#038;p=1739</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Installing and Configuring Nagios Ubuntu 11.04</title>
		<link>http://www.the-tech-tutorial.com/?p=1433</link>
		<comments>http://www.the-tech-tutorial.com/?p=1433#comments</comments>
		<pubDate>Mon, 18 Jul 2011 14:08:14 +0000</pubDate>
		<dc:creator>Tyler Allen</dc:creator>
				<category><![CDATA[Fix It]]></category>
		<category><![CDATA[News]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[add host]]></category>
		<category><![CDATA[configure]]></category>
		<category><![CDATA[Easy]]></category>
		<category><![CDATA[Host]]></category>
		<category><![CDATA[install]]></category>
		<category><![CDATA[nagios]]></category>
		<category><![CDATA[Setup]]></category>
		<category><![CDATA[Simple]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[ubuntu 11.04]]></category>

		<guid isPermaLink="false">http://www.the-tech-tutorial.com/?p=1433</guid>
		<description><![CDATA[Nagios is the Industry Standard Network Monitoring Engine. OK great so what’s that mean, well Nagios is a server that monitors your hosts and services and will inform you if something goes wrong and when it is fixed again. It can monitor network services, host resources and even network probes such as temperature and moisture. [...]]]></description>
				<content:encoded><![CDATA[<p><a href="http://www.the-tech-tutorial.com/wp-content/uploads/2010/07/nagios.jpg"><img class="alignleft size-full wp-image-394" title="Nagios" src="http://www.the-tech-tutorial.com/wp-content/uploads/2010/07/nagios.jpg" alt="Nagios Logo" width="160" height="129" /></a></p>
<p><a href="http://www.nagios.org/"><span>Nagios</span></a> is the <span>Industry Standard <span><span>Network Monitoring</span> Engine</span></span>. OK great so what’s that mean, well <span>Nagios</span> is a <span>server</span> that <span>monitors</span> your <span>hosts</span> and <span>services</span> and will inform you if something goes wrong and when it is fixed again. It can monitor network services, host resources and even network probes such as temperature and moisture.</p>
<p>These features as well as many more make <span>Nagios</span>, by far, the most complete <span>open-source</span> <span><span>Network Monitoring</span> tool</span> on the market, however with all these features comes complexity and <span>Nagios</span> has obviously been designed with the experienced Network Administrator in mind. But don&#8217;t worry too much, its not that difficult to learn as long as you take it one step at a time, and in today&#8217;s tutorial we&#8217;re going to look at the first step, actually getting it installed <span id="more-1433"></span></p>
<p>So let’s get started, the first thing we need to <span>install</span> in <span>LAMP</span> as this is the <span>base</span> in which runs, simply type in the following command in your terminal and follow the onscreen commands:</p>
<pre>sudo tasksel install <span>lamp-server</span></pre>
<p>For more information on <span>LAMP</span> you can view my complete <span>LAMP server</span> tutorial <a href="http://www.the-tech-tutorial.com/?p=229">here</a></p>
<p>Now we need to install <span>Nagios</span>, to do this type:</p>
<pre>sudo <span>apt-get install</span> -y <span>nagios3</span></pre>
<p>This will install and configure <span>Nagios</span> 3 along with any the required dependencies you don’t already have. It may ask for a few input parameters such as internet address and login password, just follow the onscreen guidelines and you should be fine.</p>
<p>If you have completed these stops correctly you should be able to view your <span>Nagios</span> dashboard by typing in the following in your web browser substituting [IP ADDR] for your servers IP address.</p>
<pre>http://[IP ADDR]/nagios3/</pre>
<p>You&#8217;ll need to enter a <span>username</span> and <span>password</span>. Your <span>username</span> will be <em>&#8216;nagiosadmin&#8217;</em>, the password will be the same as the one you entered during setup.</p>
<p><strong>Username:</strong><em>nagiosadmin</em><br />
<strong>Password:</strong><em>entered during setup</em><br />
<center><br />
<script type="text/javascript"><!--
google_ad_client = "ca-pub-2094089617852812";
/* 2011 Bottom */
google_ad_slot = "5825267234";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script><br />
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></center></p>
<h4><span><span>Add hosts</span> to your <span><span>Nagios</span> <span>Server</span></span></span></h4>
<p>No you have <span>Nagios</span> up and running you should be able to see your current server stats, (if not click on &#8220;Services&#8221; on the left side of the Nagios dashboard), but what if you want to add <span>more hosts</span>. Well it’s a little complicated at first but once you get used to it you&#8217;ll be fine. First we need to edit some <span>config files</span> to tell <span><span>Nagios</span> to <span>monitor</span> a new <span>host</span></span>, below is a diagram of all the Nagios config files:</p>
<p><center><a href="http://www.the-tech-tutorial.com/wp-content/uploads/2011/07/nagios-config.png"><img class="size-full wp-image-1455 aligncenter" title="Nagios-config" src="http://www.the-tech-tutorial.com/wp-content/uploads/2011/07/nagios-config.png" alt="" width="550" height="387" /></a></center><br />
As we can see from this diagram every setting for <span>Nagios</span> is stored in a <span><span>config</span> file</span>, most of these can be found in your /etc/nagios3/conf.d folder. To add some new hosts we need to add some lines to your <span><em>/etc/nagios3/conf.d/localhost_nagios2.cfg</em></span> file. First off we are only going to be <span>adding new hosts</span>, not services (see my <a href="http://www.the-tech-tutorial.com/?p=816">NRPE tutorial</a> if you want to monitor services aswell), so we only need add a small amount of code. The <span>local <span>host <span>definition</span></span></span> in your <span>/etc/nagios3/conf.d/localhost_nagios2.cfg</span> should look like this:</p>
<pre>
define host{
        use                     generic-host            ; Name of host template to use
        host_name               localhost
        alias                   localhost
        address                 127.0.0.1
        }
</pre>
<div style="width:350px; height:330px;background-image: url(http://www.the-tech-tutorial.com/wp-content/uploads/2011/03/add_back1.png); display: block; float: right; padding: 20px 25px 0px 30px;">
<script type="text/javascript"><!--
google_ad_client = "pub-2094089617852812";
/* 2011 In Text Box */
google_ad_slot = "1777411765";
google_ad_width = 336;
google_ad_height = 280;
//-->
</script><br />
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></div>
<p>Here we can see then the <span>template</span> is <span>generic-host</span>, the <span>hostname</span> and <span>alias</span> are set to localhost(127.0.0.1) and the <span>address</span> is set to 127.0.0.1. The use filed is important as if you enter a name here that doesn’t correspond to a template then <span>Nagios</span> will fail to start. The <span>address</span> field is also important, this is where you put the actual address for the server you want to <span>monitor</span> (either <span>domain name</span> or <span>IP</span> will work here). The <span>host_name and alies fields</span> are not as important and are only there to help the user <span>distinguish between <span>hosts</span></span>. The difference between the two is <span>host_name</span> is read internally (so <strong>don&#8217;t</strong> use spaces or special characters) and alias is actually show to the user (you <strong>can</strong> use spaces and special characters).</p>
<p>So now it’s time to <span>add your own host</span> to your <span><span>Nagios</span> server</span>, in this example we are going to add www.google.com as your <span>new host</span>, if you want you can subtitle your own attributes however I like to have Google as a host just to ensure my setup is correct. So start your favourite text editor and add the hollowing lines to the end of your <strong>/etc/nagios3/conf.d/localhost_nagios2.cfg</strong></p>
<pre>define host{
        use                     generic-host            ; Name of host template to use
        host_name               google
        alias                   Google
        address                 www.google.com
        }</pre>
<p>to see the changes on your dashboard you need to restart Nagios, type:</p>
<pre>sudo /etc/init.d/nagios3 restart</pre>
<p>Now if you want to add your own hosts to your Nagios server repeat the last two steps substituting host_name, alias and address to your hosts details and restart Nagios to see the changes.</p>
<p>Please leave any comments or questions, thanks.</p>
<div name="googleone_share_1" style="position:relative;z-index:5;float: right; margin-left: 10px;"><g:plusone size="standard" count="" href="http://www.the-tech-tutorial.com/?p=1433"></g:plusone></div>

<div class="shr-bookmarks shr-bookmarks-expand shr-bookmarks-center shr-bookmarks-bg-knowledge">
<ul class="socials">
		<li class="shr-digg">
			<a href="http://www.shareaholic.com/api/share/?title=Installing+and+Configuring+Nagios+Ubuntu+11.04&amp;link=http://www.the-tech-tutorial.com/?p=1433&amp;notes=%0D%0A%0D%0ANagios%20is%20the%20Industry%20Standard%20Network%20Monitoring%20Engine.%20OK%20great%20so%20what%E2%80%99s%20that%20mean%2C%20well%20Nagios%20is%20a%20server%20that%20monitors%20your%20hosts%20and%20services%20and%20will%20inform%20you%20if%20something%20goes%20wrong%20and%20when%20it%20is%20fixed%20again.%20It%20can%20monitor%20network%20services%2C%20host%20resources%20and%20even%20network%20probes&amp;short_link=&amp;shortener=google&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=3&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="shr-facebook">
			<a href="http://www.shareaholic.com/api/share/?title=Installing+and+Configuring+Nagios+Ubuntu+11.04&amp;link=http://www.the-tech-tutorial.com/?p=1433&amp;notes=%0D%0A%0D%0ANagios%20is%20the%20Industry%20Standard%20Network%20Monitoring%20Engine.%20OK%20great%20so%20what%E2%80%99s%20that%20mean%2C%20well%20Nagios%20is%20a%20server%20that%20monitors%20your%20hosts%20and%20services%20and%20will%20inform%20you%20if%20something%20goes%20wrong%20and%20when%20it%20is%20fixed%20again.%20It%20can%20monitor%20network%20services%2C%20host%20resources%20and%20even%20network%20probes&amp;short_link=&amp;shortener=google&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=5&amp;tags=&amp;ctype=" rel="nofollow" title="Share this on Facebook">Share this on Facebook</a>
		</li>
		<li class="shr-googlebuzz">
			<a href="http://www.shareaholic.com/api/share/?title=Installing+and+Configuring+Nagios+Ubuntu+11.04&amp;link=http://www.the-tech-tutorial.com/?p=1433&amp;notes=%0D%0A%0D%0ANagios%20is%20the%20Industry%20Standard%20Network%20Monitoring%20Engine.%20OK%20great%20so%20what%E2%80%99s%20that%20mean%2C%20well%20Nagios%20is%20a%20server%20that%20monitors%20your%20hosts%20and%20services%20and%20will%20inform%20you%20if%20something%20goes%20wrong%20and%20when%20it%20is%20fixed%20again.%20It%20can%20monitor%20network%20services%2C%20host%20resources%20and%20even%20network%20probes&amp;short_link=&amp;shortener=google&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=&amp;tags=&amp;ctype=" rel="nofollow" class="external" title=""></a>
		</li>
		<li class="shr-reddit">
			<a href="http://www.shareaholic.com/api/share/?title=Installing+and+Configuring+Nagios+Ubuntu+11.04&amp;link=http://www.the-tech-tutorial.com/?p=1433&amp;notes=%0D%0A%0D%0ANagios%20is%20the%20Industry%20Standard%20Network%20Monitoring%20Engine.%20OK%20great%20so%20what%E2%80%99s%20that%20mean%2C%20well%20Nagios%20is%20a%20server%20that%20monitors%20your%20hosts%20and%20services%20and%20will%20inform%20you%20if%20something%20goes%20wrong%20and%20when%20it%20is%20fixed%20again.%20It%20can%20monitor%20network%20services%2C%20host%20resources%20and%20even%20network%20probes&amp;short_link=&amp;shortener=google&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=40&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a>
		</li>
		<li class="shr-stumbleupon">
			<a href="http://www.shareaholic.com/api/share/?title=Installing+and+Configuring+Nagios+Ubuntu+11.04&amp;link=http://www.the-tech-tutorial.com/?p=1433&amp;notes=%0D%0A%0D%0ANagios%20is%20the%20Industry%20Standard%20Network%20Monitoring%20Engine.%20OK%20great%20so%20what%E2%80%99s%20that%20mean%2C%20well%20Nagios%20is%20a%20server%20that%20monitors%20your%20hosts%20and%20services%20and%20will%20inform%20you%20if%20something%20goes%20wrong%20and%20when%20it%20is%20fixed%20again.%20It%20can%20monitor%20network%20services%2C%20host%20resources%20and%20even%20network%20probes&amp;short_link=&amp;shortener=google&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=38&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="shr-twitter">
			<a href="http://www.shareaholic.com/api/share/?title=Installing+and+Configuring+Nagios+Ubuntu+11.04&amp;link=http://www.the-tech-tutorial.com/?p=1433&amp;notes=%0D%0A%0D%0ANagios%20is%20the%20Industry%20Standard%20Network%20Monitoring%20Engine.%20OK%20great%20so%20what%E2%80%99s%20that%20mean%2C%20well%20Nagios%20is%20a%20server%20that%20monitors%20your%20hosts%20and%20services%20and%20will%20inform%20you%20if%20something%20goes%20wrong%20and%20when%20it%20is%20fixed%20again.%20It%20can%20monitor%20network%20services%2C%20host%20resources%20and%20even%20network%20probes&amp;short_link=&amp;shortener=google&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=%2524%257Btitle%257D%2B-%2B%2524%257Bshort_link%257D&amp;service=7&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a>
		</li>
		<li class="shr-linkedin">
			<a href="http://www.shareaholic.com/api/share/?title=Installing+and+Configuring+Nagios+Ubuntu+11.04&amp;link=http://www.the-tech-tutorial.com/?p=1433&amp;notes=%0D%0A%0D%0ANagios%20is%20the%20Industry%20Standard%20Network%20Monitoring%20Engine.%20OK%20great%20so%20what%E2%80%99s%20that%20mean%2C%20well%20Nagios%20is%20a%20server%20that%20monitors%20your%20hosts%20and%20services%20and%20will%20inform%20you%20if%20something%20goes%20wrong%20and%20when%20it%20is%20fixed%20again.%20It%20can%20monitor%20network%20services%2C%20host%20resources%20and%20even%20network%20probes&amp;short_link=&amp;shortener=google&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=88&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Share this on LinkedIn">Share this on LinkedIn</a>
		</li>
</ul><div style="clear: both;"></div><div class="shr-getshr" style="visibility:hidden;font-size:10px !important"><a target="_blank" href="https://shareaholic.com/?src=pub">Get Shareaholic</a></div><div style="clear: both;"></div></div>

]]></content:encoded>
			<wfw:commentRss>http://www.the-tech-tutorial.com/?feed=rss2&#038;p=1433</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Setting up FTP for your website Ubuntu 11.04</title>
		<link>http://www.the-tech-tutorial.com/?p=1467</link>
		<comments>http://www.the-tech-tutorial.com/?p=1467#comments</comments>
		<pubDate>Thu, 07 Jul 2011 15:34:16 +0000</pubDate>
		<dc:creator>Tyler Allen</dc:creator>
				<category><![CDATA[Fix It]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[/var/www]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[Easy]]></category>
		<category><![CDATA[ftp]]></category>
		<category><![CDATA[ftp configure]]></category>
		<category><![CDATA[ftp setup]]></category>
		<category><![CDATA[install]]></category>
		<category><![CDATA[Tech]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[ubuntu 11.04]]></category>
		<category><![CDATA[wesbite]]></category>

		<guid isPermaLink="false">http://www.the-tech-tutorial.com/?p=1467</guid>
		<description><![CDATA[File Transfer Protocol (FTP) is a standard network protocol used to transfer files from one host to another over a TCP-based network, such as the Internet. Its most common use is uploading your website files to your webserver, allowing you to develop your website, upload it via FTP then refresh the page to see the [...]]]></description>
				<content:encoded><![CDATA[<p><a href="http://www.the-tech-tutorial.com/wp-content/uploads/2011/07/j0409355_278799_7.png"><img src="http://www.the-tech-tutorial.com/wp-content/uploads/2011/07/j0409355_278799_7.png" alt="" title="Transfer_Vis" width="100" height="100" class="alignleft size-full wp-image-1480" /></a>File Transfer Protocol (<span>FTP</span>) is a standard <a href="http://en.wikipedia.org/wiki/Network_protocol">network protocol</a> used to transfer files from one host to another over a TCP-based network, such as the Internet. Its most common use is uploading your <span>website</span> files to your <span>webserver</span>, allowing you to develop your <span>website</span>, upload it via <span>FTP</span> then refresh the page to see the updated page. If you’re setting up your own <span>webserver</span>s its essential you have some way of uploading files and the best way to do this is with <span>FTP</span>. First you need to setup and configure an <span>ftp</span> server on your <span>webserver</span>, in this tutorial we are going to be using <span>Pro<span>FTP</span></span>. <span>Pro<span>FTP</span></span>D is a proven, high-performance and scalable <span>FTP</span> server, with a focus toward simplicity, security, and ease of configuration.<span id="more-1467"></span></p>
<div style="width:350px; height:300px;background-image: url(http://www.the-tech-tutorial.com/wp-content/uploads/2011/03/add_back1.png); display: block; float: right; padding: 20px 25px 0px 30px;">
<script type="text/javascript"><!--
google_ad_client = "pub-2094089617852812";
/* 2011 In Text Box */
google_ad_slot = "1777411765";
google_ad_width = 336;
google_ad_height = 280;
//-->
</script><br />
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></div>
<p>I’ve gone through many <span>FTP</span> server tutorials in the past and they all work fine for uploading to your home directory but in this situation we <span>don’t want to just upload to our <span>home directors</span></span>, we want <span><span>to upload to our <span>website</span></span> directors</span>, in this case <span>/var/wwwr</span>. First off we need to setup a new <span>user</span> for our <span>ftp</span> <span>login</span> details:</p>
<pre>
sudo <span>user</span>add [<span>user</span>name]
sudo passwd [<span>user</span>name]
</pre>
<p>Now we need to add the <span>www-data</span> group so it can write to you <span>webserver</span> storage, be warned this will set the <span>user</span>s primary group to <span>www-data</span> so ensure you have created a new <span>user</span> especially for use as an <span>ftp</span> account.</p>
<pre>
sudo <span>user</span>mod  -g <span>www-data</span> [<span>user</span>name]
</pre>
<p>Now in most situations your <span>website</span> is stored in <span>/var/wwwr</span>, this often restricts writing from the <span>www-data</span> group so we need to change the permissions to allow any <span>user</span> in the <span>www-data</span> group to write to the <span>/var/wwwr</span> folder:</p>
<pre>
sudo chmod -R g+w <span>/var/wwwr</span>
</pre>
<p>Now we are ready to actually install the server, simply type:</p>
<pre>
sudo apt-get install pro<span>ftp</span>d
</pre>
<p>and select the Stand Alone option when asked. Now we need to make some small configuration changes to<br />
<center><br />
<script type="text/javascript"><!--
google_ad_client = "ca-pub-2094089617852812";
/* 2011 Bottom */
google_ad_slot = "5825267234";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script><br />
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></center><br />
<span>Pro<span>FTP</span></span>, first open then pro<span>ftp</span>d.conf file:</p>
<pre>
sudo nano /etc/pro<span>ftp</span>d/pro<span>ftp</span>d.conf
</pre>
<p>and edit the following lines to match my example,</p>
<pre>
# Use this to jail all <span>user</span>s in their homes
DefaultRoot                     <span>/var/wwwr</span>
# Set the <span>user</span> and group that the server normally runs at.
User                            <span>www-data</span>
Group                           <span>www-data</span>
</pre>
<p>Now we need to restart <span>Pro<span>FTP</span></span> so that it recognises the new settings:</p>
<pre> 
sudo /etc/init.d/pro<span>ftp</span>d restart
</pre>
<p>and thats it your <span>ftp</span> server should be setup to allow you to upload, edit and download your <span>website</span>, to test this simply type in:</p>
<pre><span>ftp</span> 127.0.0.1</pre>
<p>and enter your login details, now try making a folder with the following command</p>
<pre>mkdir test</pre>
<p>if you can do this with no errors that your <span>ftp</span> server has been correctly configured.</p>
<div name="googleone_share_1" style="position:relative;z-index:5;float: right; margin-left: 10px;"><g:plusone size="standard" count="" href="http://www.the-tech-tutorial.com/?p=1467"></g:plusone></div>

<div class="shr-bookmarks shr-bookmarks-expand shr-bookmarks-center shr-bookmarks-bg-knowledge">
<ul class="socials">
		<li class="shr-digg">
			<a href="http://www.shareaholic.com/api/share/?title=Setting+up+FTP+for+your+website+Ubuntu+11.04&amp;link=http://www.the-tech-tutorial.com/?p=1467&amp;notes=File%20Transfer%20Protocol%20%28FTP%29%20is%20a%20standard%20network%20protocol%20used%20to%20transfer%20files%20from%20one%20host%20to%20another%20over%20a%20TCP-based%20network%2C%20such%20as%20the%20Internet.%20Its%20most%20common%20use%20is%20uploading%20your%20website%20files%20to%20your%20webserver%2C%20allowing%20you%20to%20develop%20your%20website%2C%20upload%20it%20via%20FTP%20then%20refresh%20the%20&amp;short_link=&amp;shortener=google&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=3&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="shr-facebook">
			<a href="http://www.shareaholic.com/api/share/?title=Setting+up+FTP+for+your+website+Ubuntu+11.04&amp;link=http://www.the-tech-tutorial.com/?p=1467&amp;notes=File%20Transfer%20Protocol%20%28FTP%29%20is%20a%20standard%20network%20protocol%20used%20to%20transfer%20files%20from%20one%20host%20to%20another%20over%20a%20TCP-based%20network%2C%20such%20as%20the%20Internet.%20Its%20most%20common%20use%20is%20uploading%20your%20website%20files%20to%20your%20webserver%2C%20allowing%20you%20to%20develop%20your%20website%2C%20upload%20it%20via%20FTP%20then%20refresh%20the%20&amp;short_link=&amp;shortener=google&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=5&amp;tags=&amp;ctype=" rel="nofollow" title="Share this on Facebook">Share this on Facebook</a>
		</li>
		<li class="shr-googlebuzz">
			<a href="http://www.shareaholic.com/api/share/?title=Setting+up+FTP+for+your+website+Ubuntu+11.04&amp;link=http://www.the-tech-tutorial.com/?p=1467&amp;notes=File%20Transfer%20Protocol%20%28FTP%29%20is%20a%20standard%20network%20protocol%20used%20to%20transfer%20files%20from%20one%20host%20to%20another%20over%20a%20TCP-based%20network%2C%20such%20as%20the%20Internet.%20Its%20most%20common%20use%20is%20uploading%20your%20website%20files%20to%20your%20webserver%2C%20allowing%20you%20to%20develop%20your%20website%2C%20upload%20it%20via%20FTP%20then%20refresh%20the%20&amp;short_link=&amp;shortener=google&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=&amp;tags=&amp;ctype=" rel="nofollow" class="external" title=""></a>
		</li>
		<li class="shr-reddit">
			<a href="http://www.shareaholic.com/api/share/?title=Setting+up+FTP+for+your+website+Ubuntu+11.04&amp;link=http://www.the-tech-tutorial.com/?p=1467&amp;notes=File%20Transfer%20Protocol%20%28FTP%29%20is%20a%20standard%20network%20protocol%20used%20to%20transfer%20files%20from%20one%20host%20to%20another%20over%20a%20TCP-based%20network%2C%20such%20as%20the%20Internet.%20Its%20most%20common%20use%20is%20uploading%20your%20website%20files%20to%20your%20webserver%2C%20allowing%20you%20to%20develop%20your%20website%2C%20upload%20it%20via%20FTP%20then%20refresh%20the%20&amp;short_link=&amp;shortener=google&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=40&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a>
		</li>
		<li class="shr-stumbleupon">
			<a href="http://www.shareaholic.com/api/share/?title=Setting+up+FTP+for+your+website+Ubuntu+11.04&amp;link=http://www.the-tech-tutorial.com/?p=1467&amp;notes=File%20Transfer%20Protocol%20%28FTP%29%20is%20a%20standard%20network%20protocol%20used%20to%20transfer%20files%20from%20one%20host%20to%20another%20over%20a%20TCP-based%20network%2C%20such%20as%20the%20Internet.%20Its%20most%20common%20use%20is%20uploading%20your%20website%20files%20to%20your%20webserver%2C%20allowing%20you%20to%20develop%20your%20website%2C%20upload%20it%20via%20FTP%20then%20refresh%20the%20&amp;short_link=&amp;shortener=google&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=38&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="shr-twitter">
			<a href="http://www.shareaholic.com/api/share/?title=Setting+up+FTP+for+your+website+Ubuntu+11.04&amp;link=http://www.the-tech-tutorial.com/?p=1467&amp;notes=File%20Transfer%20Protocol%20%28FTP%29%20is%20a%20standard%20network%20protocol%20used%20to%20transfer%20files%20from%20one%20host%20to%20another%20over%20a%20TCP-based%20network%2C%20such%20as%20the%20Internet.%20Its%20most%20common%20use%20is%20uploading%20your%20website%20files%20to%20your%20webserver%2C%20allowing%20you%20to%20develop%20your%20website%2C%20upload%20it%20via%20FTP%20then%20refresh%20the%20&amp;short_link=&amp;shortener=google&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=%2524%257Btitle%257D%2B-%2B%2524%257Bshort_link%257D&amp;service=7&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a>
		</li>
		<li class="shr-linkedin">
			<a href="http://www.shareaholic.com/api/share/?title=Setting+up+FTP+for+your+website+Ubuntu+11.04&amp;link=http://www.the-tech-tutorial.com/?p=1467&amp;notes=File%20Transfer%20Protocol%20%28FTP%29%20is%20a%20standard%20network%20protocol%20used%20to%20transfer%20files%20from%20one%20host%20to%20another%20over%20a%20TCP-based%20network%2C%20such%20as%20the%20Internet.%20Its%20most%20common%20use%20is%20uploading%20your%20website%20files%20to%20your%20webserver%2C%20allowing%20you%20to%20develop%20your%20website%2C%20upload%20it%20via%20FTP%20then%20refresh%20the%20&amp;short_link=&amp;shortener=google&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=88&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Share this on LinkedIn">Share this on LinkedIn</a>
		</li>
</ul><div style="clear: both;"></div><div class="shr-getshr" style="visibility:hidden;font-size:10px !important"><a target="_blank" href="https://shareaholic.com/?src=pub">Get Shareaholic</a></div><div style="clear: both;"></div></div>

]]></content:encoded>
			<wfw:commentRss>http://www.the-tech-tutorial.com/?feed=rss2&#038;p=1467</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Nagios Memeory Check Plugin &#8211; download &amp; install</title>
		<link>http://www.the-tech-tutorial.com/?p=1435</link>
		<comments>http://www.the-tech-tutorial.com/?p=1435#comments</comments>
		<pubDate>Wed, 06 Jul 2011 14:11:17 +0000</pubDate>
		<dc:creator>Tyler Allen</dc:creator>
				<category><![CDATA[Fix It]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[11.04]]></category>
		<category><![CDATA[check]]></category>
		<category><![CDATA[download]]></category>
		<category><![CDATA[Easy]]></category>
		<category><![CDATA[free]]></category>
		<category><![CDATA[guide]]></category>
		<category><![CDATA[install]]></category>
		<category><![CDATA[Memory]]></category>
		<category><![CDATA[memory plugin]]></category>
		<category><![CDATA[nagios]]></category>
		<category><![CDATA[nagios 3]]></category>
		<category><![CDATA[plugin]]></category>

		<guid isPermaLink="false">http://www.the-tech-tutorial.com/?p=1435</guid>
		<description><![CDATA[When I noticed that Nagios had no memory check plugin I decided to make a simple bash plugin for Nagios to check how much memory my machines were using. It works by reading /proc/meminfo so it should work on every system were you can read /proc/meminfo (most Linux and Unix based systems) This plugin is [...]]]></description>
				<content:encoded><![CDATA[<p>When I noticed that <span>Nagios</span> had <span><span>no <span><span>memory check</span></span></span> <span>plugin</span></span> I decided to make a <span>simple bash <span><span>plugin</span></span> for <span>Nagios</span></span> to check how much <span>memory</span> my machines were <span>using</span>. It works by reading <span>/proc/meminfo</span> so it should work on every system were you can <span>read /proc/meminfo</span> (most Linux and Unix based systems)<span id="more-1435"></span><br />
This <span>plugin</span> is released under the terms of the GPLv2 so please feel free to edit it as needed, you can <span>download</span> it from <a href="http://www.the-tech-tutorial.com/wp-content/files/chk_mem.sh">here</a>. If you haven’t installed a plugin for Nagios before I’ll go through a simple <span>tutorial</span> now. First <span>download</span> this plugin with the below link or copy the below code to your <span><span>Nagios</span> <span>plugin</span></span> directory <em>(<span><span><span>Ubuntu</span> 11.04</span> location</span>: /usr/lib/<span>nagios</span>/<span>plugins</span>/)</em><br />
<center><br />
<script type="text/javascript"><!--
google_ad_client = "ca-pub-2094089617852812";
/* 2011 Bottom */
google_ad_slot = "5825267234";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script><br />
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></center><br />
<a href="http://www.the-tech-tutorial.com/wp-content/files/chk_mem.sh">Download Plugin</a></p>
<pre>
#!/bin/bash

#   This program is free software; you can redistribute it and/or modify
#   it under the terms of the GNU General Public License as published by
#   the Free Software Foundation; version 2 of the License only.
#
#   This program is distributed in the hope that it will be useful,
#   but WITHOUT ANY WARRANTY; without even the implied warranty of
#   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#   GNU General Public License for more details.
#
#   You should have received a copy of the GNU General Public License
#   along with this program; if not, write to the Free Software
#   Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA

PROGNAME=`basename $0`
VERSION="Version 1.0"
AUTHOR="2011, Tyler Allen (http://www.the-tech-tutorial.com/)"

LV_W=100;
LV_C=100;


#Print Version
print_version() {
    echo "$VERSION $AUTHOR"
}

#Print Help
usage(){
        echo $PROGNAME $VERSION
        echo $AUTHOR
        echo
        echo This is a Nagios plugin that will check the curremt memory usage of the system.
        echo
        echo OPTIONS:
        echo  -h Shows this help
        echo  -v Shows the Version
        echo  -w sets the warning level
        echo  -c sets the critical level
}

#Parmature Getter
while getopts "hvw:c:" opt; do
  case $opt in
    h)
      usage
      exit
      ;;
    v)
      print_version
      exit
      ;;
    w)
      LV_W=$OPTARG
      ;;
    c)
      LV_C=$OPTARG
      ;;

    \?)
      echo "Invalid option: -$OPTARG" >&#038;2
      exit 1
      ;;
    <img src='http://www.the-tech-tutorial.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> 
      echo "Option -$OPTARG requires an argument." >&#038;2
      exit 1
      ;;
  esac
done

#Check the diffrence between the LV values
    if [ ${LV_W} -gt ${LV_C} ]
    then
        echo "Please adjust levels. The critical level must be higher than the warning level!"
        exit 666
    fi

#Values must be between 0 and 100
    if [ "$LV_W" -lt 0 -o "$LV_W" -gt 100 -o "$LV_C" -lt 0 -o "$LV_C" -gt 100 ]
    then
        echo "Warning and critical level values must be between 0 and 100."
        exit 666
    fi

#Get the figures
MEM_TOTAL=`grep "^MemTotal" /proc/meminfo|awk '{print $2}'`
TMP_MEM_FREE=`grep "^MemFree" /proc/meminfo|awk '{print $2}'`
TMP_MEM_USED=`expr $MEM_TOTAL - $TMP_MEM_FREE`
BUFFERS=`grep "^Buffers" /proc/meminfo|awk '{print $2}'`
CACHED=`grep "^Cached" /proc/meminfo|awk '{print $2}'`

P_MEM_FREE=`echo "scale=2; $TMP_MEM_FREE / $MEM_TOTAL * 100" | bc -l | sed 's/.[0-9][0-9]//'`
P_MEM_USED=`echo "scale=0; 100 - $P_MEM_FREE" | bc -l`

if [ ! -z "$LV_W" -a ! -z "$LV_C" ]
    then
        if [ ${P_MEM_USED} -ge ${LV_W} -a ${P_MEM_USED} -lt ${LV_C} ]
        then
            echo "WARNING - Used: $P_MEM_USED%, Free: $P_MEM_FREE% | 'mem_used'=$P_MEM_USED;$LV_W;$LV_C 'mem_free'=$P_MEM_FREE"
            exit $ST_WR
        elif [ ${P_MEM_USED} -ge ${LV_C} ]
        then
            echo "CRITICAL - Used: $P_MEM_USED%, Free: $P_MEM_FREE% | 'mem_used'=$P_MEM_USED;$LV_W;$LV_C 'mem_free'=$P_MEM_FREE"
            exit $ST_CR
        else
            echo "OK - Used: $P_MEM_USED%, Free: $P_MEM_FREE% | 'mem_used'=$P_MEM_USED;$LV_W;$LV_C 'mem_free'=$P_MEM_FREE"
            exit $ST_OK
        fi
    else
            echo "OK - Used: $P_MEM_USED%, Free: $P_MEM_FREE% | 'mem_used'=$P_MEM_USED 'mem_free'=$P_MEM_FREE"
            exit $ST_OK
    fi
</pre>
<p>Now you have saved this in your <span>plugin</span> folder we need to <span>configure <span>Nagios</span></span> to read the new <span>plugin</span>, to do this we need to add some information to the <span>commands.cfg</span> file <em>(<span><span><span>Ubuntu</span> 11.04</span> location</span>: /etc/nagios3/commands.cfg)</em>. Once you’ve opened the file add the following lines:<br />
<center><br />
<script type="text/javascript"><!--
google_ad_client = "ca-pub-2094089617852812";
/* 2011 Bottom */
google_ad_slot = "5825267234";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script><br />
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></center></p>
<pre>
#Memory Check Plugin command definition
define command {
        command_name chk_mem
        command_line /usr/lib/nagios/plugins/chk_mem.sh -w '$ARG1$' -c '$ARG2$'
}
</pre>
<p>Now we need to add the new <span>command</span> to a <span><span>service</span>s</span> attached to a host, first add the following lines to your <span>services</span> <span><span>config</span> file</span>, for this example I am only going to <span>add this service to the <span>local host</span></span> monitor <em>(<span><span><span>Ubuntu</span> 11.04</span> <span>location</span></span>: /etc/nagios3/conf.d/localhost_nagios2.cfg)</em></p>
<pre>
#Define a service to check how much memory the system has left
#warning if >70% used critical if >90% used
define service{
        use generic-service         ; Name of service template to use
        host_name                   localhost
        service_description         Memory Use
        check_command               chk_mem!75%!90%
}
</pre>
<p>Now all you need to do is <span>restart <span>Nagios</span></span> and you should see your new <span>plugin</span> in action.</p>
<pre>sudo /etc/init.d/nagios3 restart</pre>
<div name="googleone_share_1" style="position:relative;z-index:5;float: right; margin-left: 10px;"><g:plusone size="standard" count="" href="http://www.the-tech-tutorial.com/?p=1435"></g:plusone></div>

<div class="shr-bookmarks shr-bookmarks-expand shr-bookmarks-center shr-bookmarks-bg-knowledge">
<ul class="socials">
		<li class="shr-digg">
			<a href="http://www.shareaholic.com/api/share/?title=Nagios+Memeory+Check+Plugin+-+download+%26+install&amp;link=http://www.the-tech-tutorial.com/?p=1435&amp;notes=When%20I%20noticed%20that%20Nagios%20had%20no%20memory%20check%20plugin%20I%20decided%20to%20make%20a%20simple%20bash%20plugin%20for%20Nagios%20to%20check%20how%20much%20memory%20my%20machines%20were%20using.%20It%20works%20by%20reading%20%2Fproc%2Fmeminfo%20so%20it%20should%20work%20on%20every%20system%20were%20you%20can%20read%20%2Fproc%2Fmeminfo%20%28most%20Linux%20and%20Unix%20based%20systems%29%0D%0AThis%20plugi&amp;short_link=&amp;shortener=google&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=3&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="shr-facebook">
			<a href="http://www.shareaholic.com/api/share/?title=Nagios+Memeory+Check+Plugin+-+download+%26+install&amp;link=http://www.the-tech-tutorial.com/?p=1435&amp;notes=When%20I%20noticed%20that%20Nagios%20had%20no%20memory%20check%20plugin%20I%20decided%20to%20make%20a%20simple%20bash%20plugin%20for%20Nagios%20to%20check%20how%20much%20memory%20my%20machines%20were%20using.%20It%20works%20by%20reading%20%2Fproc%2Fmeminfo%20so%20it%20should%20work%20on%20every%20system%20were%20you%20can%20read%20%2Fproc%2Fmeminfo%20%28most%20Linux%20and%20Unix%20based%20systems%29%0D%0AThis%20plugi&amp;short_link=&amp;shortener=google&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=5&amp;tags=&amp;ctype=" rel="nofollow" title="Share this on Facebook">Share this on Facebook</a>
		</li>
		<li class="shr-googlebuzz">
			<a href="http://www.shareaholic.com/api/share/?title=Nagios+Memeory+Check+Plugin+-+download+%26+install&amp;link=http://www.the-tech-tutorial.com/?p=1435&amp;notes=When%20I%20noticed%20that%20Nagios%20had%20no%20memory%20check%20plugin%20I%20decided%20to%20make%20a%20simple%20bash%20plugin%20for%20Nagios%20to%20check%20how%20much%20memory%20my%20machines%20were%20using.%20It%20works%20by%20reading%20%2Fproc%2Fmeminfo%20so%20it%20should%20work%20on%20every%20system%20were%20you%20can%20read%20%2Fproc%2Fmeminfo%20%28most%20Linux%20and%20Unix%20based%20systems%29%0D%0AThis%20plugi&amp;short_link=&amp;shortener=google&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=&amp;tags=&amp;ctype=" rel="nofollow" class="external" title=""></a>
		</li>
		<li class="shr-reddit">
			<a href="http://www.shareaholic.com/api/share/?title=Nagios+Memeory+Check+Plugin+-+download+%26+install&amp;link=http://www.the-tech-tutorial.com/?p=1435&amp;notes=When%20I%20noticed%20that%20Nagios%20had%20no%20memory%20check%20plugin%20I%20decided%20to%20make%20a%20simple%20bash%20plugin%20for%20Nagios%20to%20check%20how%20much%20memory%20my%20machines%20were%20using.%20It%20works%20by%20reading%20%2Fproc%2Fmeminfo%20so%20it%20should%20work%20on%20every%20system%20were%20you%20can%20read%20%2Fproc%2Fmeminfo%20%28most%20Linux%20and%20Unix%20based%20systems%29%0D%0AThis%20plugi&amp;short_link=&amp;shortener=google&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=40&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a>
		</li>
		<li class="shr-stumbleupon">
			<a href="http://www.shareaholic.com/api/share/?title=Nagios+Memeory+Check+Plugin+-+download+%26+install&amp;link=http://www.the-tech-tutorial.com/?p=1435&amp;notes=When%20I%20noticed%20that%20Nagios%20had%20no%20memory%20check%20plugin%20I%20decided%20to%20make%20a%20simple%20bash%20plugin%20for%20Nagios%20to%20check%20how%20much%20memory%20my%20machines%20were%20using.%20It%20works%20by%20reading%20%2Fproc%2Fmeminfo%20so%20it%20should%20work%20on%20every%20system%20were%20you%20can%20read%20%2Fproc%2Fmeminfo%20%28most%20Linux%20and%20Unix%20based%20systems%29%0D%0AThis%20plugi&amp;short_link=&amp;shortener=google&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=38&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="shr-twitter">
			<a href="http://www.shareaholic.com/api/share/?title=Nagios+Memeory+Check+Plugin+-+download+%26+install&amp;link=http://www.the-tech-tutorial.com/?p=1435&amp;notes=When%20I%20noticed%20that%20Nagios%20had%20no%20memory%20check%20plugin%20I%20decided%20to%20make%20a%20simple%20bash%20plugin%20for%20Nagios%20to%20check%20how%20much%20memory%20my%20machines%20were%20using.%20It%20works%20by%20reading%20%2Fproc%2Fmeminfo%20so%20it%20should%20work%20on%20every%20system%20were%20you%20can%20read%20%2Fproc%2Fmeminfo%20%28most%20Linux%20and%20Unix%20based%20systems%29%0D%0AThis%20plugi&amp;short_link=&amp;shortener=google&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=%2524%257Btitle%257D%2B-%2B%2524%257Bshort_link%257D&amp;service=7&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a>
		</li>
		<li class="shr-linkedin">
			<a href="http://www.shareaholic.com/api/share/?title=Nagios+Memeory+Check+Plugin+-+download+%26+install&amp;link=http://www.the-tech-tutorial.com/?p=1435&amp;notes=When%20I%20noticed%20that%20Nagios%20had%20no%20memory%20check%20plugin%20I%20decided%20to%20make%20a%20simple%20bash%20plugin%20for%20Nagios%20to%20check%20how%20much%20memory%20my%20machines%20were%20using.%20It%20works%20by%20reading%20%2Fproc%2Fmeminfo%20so%20it%20should%20work%20on%20every%20system%20were%20you%20can%20read%20%2Fproc%2Fmeminfo%20%28most%20Linux%20and%20Unix%20based%20systems%29%0D%0AThis%20plugi&amp;short_link=&amp;shortener=google&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=88&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Share this on LinkedIn">Share this on LinkedIn</a>
		</li>
</ul><div style="clear: both;"></div><div class="shr-getshr" style="visibility:hidden;font-size:10px !important"><a target="_blank" href="https://shareaholic.com/?src=pub">Get Shareaholic</a></div><div style="clear: both;"></div></div>

]]></content:encoded>
			<wfw:commentRss>http://www.the-tech-tutorial.com/?feed=rss2&#038;p=1435</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Adding Swap to any EC2 Instance</title>
		<link>http://www.the-tech-tutorial.com/?p=1408</link>
		<comments>http://www.the-tech-tutorial.com/?p=1408#comments</comments>
		<pubDate>Tue, 05 Jul 2011 13:34:12 +0000</pubDate>
		<dc:creator>Tyler Allen</dc:creator>
				<category><![CDATA[Fix It]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[Add]]></category>
		<category><![CDATA[Amazon]]></category>
		<category><![CDATA[create]]></category>
		<category><![CDATA[dd]]></category>
		<category><![CDATA[Easy]]></category>
		<category><![CDATA[EC2]]></category>
		<category><![CDATA[increase]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Server]]></category>
		<category><![CDATA[Swap]]></category>
		<category><![CDATA[swapoff]]></category>
		<category><![CDATA[swapon]]></category>
		<category><![CDATA[Tech]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://www.the-tech-tutorial.com/?p=1408</guid>
		<description><![CDATA[Have you every worried about your EC2 instance running out of memory, especially when you’re running a EC2 Micro instance witch only comes with a total of 613MB of memory. Well If you’re planning on running anything other then a basic web page you may run out of RAM can cause all sorts of problems, [...]]]></description>
				<content:encoded><![CDATA[<p><a href="http://www.the-tech-tutorial.com/wp-content/uploads/2011/07/Swap_Ill.jpg"><img class="alignleft size-full wp-image-1412" title="Ubuntu_Swap_Vis_Icon" src="http://www.the-tech-tutorial.com/wp-content/uploads/2011/07/Swap_Ill.jpg" alt="Custom Swap Icon" width="200" height="144" /></a>Have you every <span>worried</span> about your <span><span><span><span>EC2 instance</span> <span>running out</span></span> of <span>memory</span></span>, especially when you’re running a <span><span><span>EC2</span> Micro</span> <span>instance</span></span> witch only comes with a total of <span>613MB</span> of <span>memory</span>. Well If you’re planning on running anything other then a basic web page you may </span><span>run out</span> of RAM</span> can cause all sorts of <span>problem</span>s, mainly it will cause your <span>instance</span> to <span>crash</span>. Well there is a tried an tested method to get around this called <a href="http://en.wikipedia.org/wiki/Swap_space"><span>paging</span></a> or <span><span>swap</span> space</span>.<span id="more-1408"></span></p>
<p>Paging works by creating an <span>area</span> on your <span>hard drive</span> and using it for extra <span>memory</span>, this <span>memory</span> is much slower than normal <span>memory</span> however this is much more of it <span>available</span>. The nice thing about using swap with your <span><span>EC2</span> Instance</span> is you have control of how much you get, which is especially nice because with some instance like the <span>Micro</span> you don’t get much memeory at all.</p>
<p>So how do we go about <span>adding some <span><span>swap</span> space</span> to our <span>instance</span></span>. Its pitty easy all you need to do is type the following into your terminal to create 1Gb of <span><span>swap</span> storage</span> for your <span>instance</span>:<br />
<center><br />
<script type="text/javascript"><!--
google_ad_client = "ca-pub-2094089617852812";
/* 2011 Bottom */
google_ad_slot = "5825267234";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script><br />
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></center></p>
<pre># sudo /bin/dd if=/dev/zero of=/var/swap.1 bs=1M count=1024
# sudo /sbin/mkswap /var/swap.1
# sudo /sbin/swapon /var/swap.1</pre>
<p>If you need more then change the &#8220;count=1024&#8243; value to something higher. So what’s this all mean, lets break down each of these stages:</p>
<p style="padding-left: 30px;"><strong>sudo /bin/dd if=/dev/zero of=/var/swap.1 bs=1M count=1024</strong></p>
<p style="padding-left: 60px;"><em>Sudo</em> &#8211; Root privileges are required for all thease steams</p>
<p style="padding-left: 60px;"><em>dd</em> &#8211; This is a common <a title="Unix" href="http://en.wikipedia.org/wiki/Unix">Unix</a> program whose primary purpose is the <a title="Low-level"<br />
href="http://en.wikipedia.org/wiki/Low-level">low-level</a> copying raw <a title="Data" href="http://en.wikipedia.org/wiki/Data">data</a></p>
<div style="width:350px; height:330px;background-image: url(http://www.the-tech-tutorial.com/wp-content/uploads/2011/03/add_back1.png); display: block; float: right; padding: 20px 25px 0px 30px;">
<script type="text/javascript"><!--
google_ad_client = "pub-2094089617852812";
/* 2011 In Text Box */
google_ad_slot = "1777411765";
google_ad_width = 336;
google_ad_height = 280;
//-->
</script><br />
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></div>
<p style="padding-left: 60px;"><em>if=/dev/zero</em> &#8211; Here we have the &#8220;if&#8221;  variable or infile, this is the file that dd will be reading from, in this case it will only be coping across zeros as required for swap to start.</p>
<p style="padding-left: 60px;"> <em>of=/var/swap1</em> &#8211; &#8220;of&#8221; or outfile is where dd will copy the data to, in this case we are creating a file called swap1 in the /var folder</p>
<p style="padding-left: 60px;"><em>bs=1M</em> &#8211; This is the block size we want in our final file, in this case we have selected 1 megabyte</p>
<p style="padding-left: 60px;"><em>count=1024</em> &#8211; This is how many times we want to copy the block, we do this here to save on resources</p>
<p style="padding-left: 30px;"><strong>sudo /sbin/mkswap /var/swap.1</strong></p>
<p style="padding-left: 60px;">This formats the file we created earler (var/swap.1) into the swap file format</p>
<p style="padding-left: 30px;"><strong>sudo /sbin/swapon /var/swap.1</strong></p>
<p style="padding-left: 60px;">This actually turns the swap space on allowing the system to use the new swap space.</p>
<p style="padding-left: 30px;"><strong>Turn Swap Off With &#8220;sudo /sbin/swapoff&#8221;</strong></p>
<p style="padding-left: 60px;">This command isn’t in the original command set because this disables the swap area.</p>
<div name="googleone_share_1" style="position:relative;z-index:5;float: right; margin-left: 10px;"><g:plusone size="standard" count="" href="http://www.the-tech-tutorial.com/?p=1408"></g:plusone></div>

<div class="shr-bookmarks shr-bookmarks-expand shr-bookmarks-center shr-bookmarks-bg-knowledge">
<ul class="socials">
		<li class="shr-digg">
			<a href="http://www.shareaholic.com/api/share/?title=Adding+Swap+to+any+EC2+Instance&amp;link=http://www.the-tech-tutorial.com/?p=1408&amp;notes=Have%20you%20every%20worried%20about%20your%20EC2%20instance%20running%20out%20of%20memory%2C%20especially%20when%20you%E2%80%99re%20running%20a%20EC2%20Micro%20instance%20witch%20only%20comes%20with%20a%20total%20of%20613MB%20of%20memory.%20Well%20If%20you%E2%80%99re%20planning%20on%20running%20anything%20other%20then%20a%20basic%20web%20page%20you%20may%20run%20out%20of%20RAM%20can%20cause%20all%20sorts%20of%20proble&amp;short_link=&amp;shortener=google&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=3&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="shr-facebook">
			<a href="http://www.shareaholic.com/api/share/?title=Adding+Swap+to+any+EC2+Instance&amp;link=http://www.the-tech-tutorial.com/?p=1408&amp;notes=Have%20you%20every%20worried%20about%20your%20EC2%20instance%20running%20out%20of%20memory%2C%20especially%20when%20you%E2%80%99re%20running%20a%20EC2%20Micro%20instance%20witch%20only%20comes%20with%20a%20total%20of%20613MB%20of%20memory.%20Well%20If%20you%E2%80%99re%20planning%20on%20running%20anything%20other%20then%20a%20basic%20web%20page%20you%20may%20run%20out%20of%20RAM%20can%20cause%20all%20sorts%20of%20proble&amp;short_link=&amp;shortener=google&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=5&amp;tags=&amp;ctype=" rel="nofollow" title="Share this on Facebook">Share this on Facebook</a>
		</li>
		<li class="shr-googlebuzz">
			<a href="http://www.shareaholic.com/api/share/?title=Adding+Swap+to+any+EC2+Instance&amp;link=http://www.the-tech-tutorial.com/?p=1408&amp;notes=Have%20you%20every%20worried%20about%20your%20EC2%20instance%20running%20out%20of%20memory%2C%20especially%20when%20you%E2%80%99re%20running%20a%20EC2%20Micro%20instance%20witch%20only%20comes%20with%20a%20total%20of%20613MB%20of%20memory.%20Well%20If%20you%E2%80%99re%20planning%20on%20running%20anything%20other%20then%20a%20basic%20web%20page%20you%20may%20run%20out%20of%20RAM%20can%20cause%20all%20sorts%20of%20proble&amp;short_link=&amp;shortener=google&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=&amp;tags=&amp;ctype=" rel="nofollow" class="external" title=""></a>
		</li>
		<li class="shr-reddit">
			<a href="http://www.shareaholic.com/api/share/?title=Adding+Swap+to+any+EC2+Instance&amp;link=http://www.the-tech-tutorial.com/?p=1408&amp;notes=Have%20you%20every%20worried%20about%20your%20EC2%20instance%20running%20out%20of%20memory%2C%20especially%20when%20you%E2%80%99re%20running%20a%20EC2%20Micro%20instance%20witch%20only%20comes%20with%20a%20total%20of%20613MB%20of%20memory.%20Well%20If%20you%E2%80%99re%20planning%20on%20running%20anything%20other%20then%20a%20basic%20web%20page%20you%20may%20run%20out%20of%20RAM%20can%20cause%20all%20sorts%20of%20proble&amp;short_link=&amp;shortener=google&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=40&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a>
		</li>
		<li class="shr-stumbleupon">
			<a href="http://www.shareaholic.com/api/share/?title=Adding+Swap+to+any+EC2+Instance&amp;link=http://www.the-tech-tutorial.com/?p=1408&amp;notes=Have%20you%20every%20worried%20about%20your%20EC2%20instance%20running%20out%20of%20memory%2C%20especially%20when%20you%E2%80%99re%20running%20a%20EC2%20Micro%20instance%20witch%20only%20comes%20with%20a%20total%20of%20613MB%20of%20memory.%20Well%20If%20you%E2%80%99re%20planning%20on%20running%20anything%20other%20then%20a%20basic%20web%20page%20you%20may%20run%20out%20of%20RAM%20can%20cause%20all%20sorts%20of%20proble&amp;short_link=&amp;shortener=google&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=38&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="shr-twitter">
			<a href="http://www.shareaholic.com/api/share/?title=Adding+Swap+to+any+EC2+Instance&amp;link=http://www.the-tech-tutorial.com/?p=1408&amp;notes=Have%20you%20every%20worried%20about%20your%20EC2%20instance%20running%20out%20of%20memory%2C%20especially%20when%20you%E2%80%99re%20running%20a%20EC2%20Micro%20instance%20witch%20only%20comes%20with%20a%20total%20of%20613MB%20of%20memory.%20Well%20If%20you%E2%80%99re%20planning%20on%20running%20anything%20other%20then%20a%20basic%20web%20page%20you%20may%20run%20out%20of%20RAM%20can%20cause%20all%20sorts%20of%20proble&amp;short_link=&amp;shortener=google&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=%2524%257Btitle%257D%2B-%2B%2524%257Bshort_link%257D&amp;service=7&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a>
		</li>
		<li class="shr-linkedin">
			<a href="http://www.shareaholic.com/api/share/?title=Adding+Swap+to+any+EC2+Instance&amp;link=http://www.the-tech-tutorial.com/?p=1408&amp;notes=Have%20you%20every%20worried%20about%20your%20EC2%20instance%20running%20out%20of%20memory%2C%20especially%20when%20you%E2%80%99re%20running%20a%20EC2%20Micro%20instance%20witch%20only%20comes%20with%20a%20total%20of%20613MB%20of%20memory.%20Well%20If%20you%E2%80%99re%20planning%20on%20running%20anything%20other%20then%20a%20basic%20web%20page%20you%20may%20run%20out%20of%20RAM%20can%20cause%20all%20sorts%20of%20proble&amp;short_link=&amp;shortener=google&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=88&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Share this on LinkedIn">Share this on LinkedIn</a>
		</li>
</ul><div style="clear: both;"></div><div class="shr-getshr" style="visibility:hidden;font-size:10px !important"><a target="_blank" href="https://shareaholic.com/?src=pub">Get Shareaholic</a></div><div style="clear: both;"></div></div>

]]></content:encoded>
			<wfw:commentRss>http://www.the-tech-tutorial.com/?feed=rss2&#038;p=1408</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Ubuntu grub wont find Windows 7</title>
		<link>http://www.the-tech-tutorial.com/?p=1393</link>
		<comments>http://www.the-tech-tutorial.com/?p=1393#comments</comments>
		<pubDate>Tue, 17 May 2011 09:28:49 +0000</pubDate>
		<dc:creator>Tyler Allen</dc:creator>
				<category><![CDATA[Fix It]]></category>
		<category><![CDATA[Short]]></category>
		<category><![CDATA[11.04]]></category>
		<category><![CDATA[Desktop]]></category>
		<category><![CDATA[Dual Boot]]></category>
		<category><![CDATA[Grub]]></category>
		<category><![CDATA[grup-update]]></category>
		<category><![CDATA[home]]></category>
		<category><![CDATA[os-prober]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://www.the-tech-tutorial.com/?p=1393</guid>
		<description><![CDATA[So I recently upgraded my Ubuntu instillation to 11.04 and I will admit that at first I didn’t like it, however I’m always upset when people don’t like something just because it changes so I stuck with it for a few hours and I have to say i have grown fond of the unity interface. [...]]]></description>
				<content:encoded><![CDATA[<p><a href="http://www.the-tech-tutorial.com/wp-content/uploads/2011/05/ubuntu_11.04_collage.jpg"><img class="alignleft size-full wp-image-1394" title="ubuntu_11.04_collage" src="http://www.the-tech-tutorial.com/wp-content/uploads/2011/05/ubuntu_11.04_collage.jpg" alt="Ubuntu 11.04" width="300" height="100" /></a>So I recently <span>upgraded</span> my <span><span>Ubuntu</span> <span>instillation</span></span> to <span>11.04</span> and I will admit that at first I didn’t like it, however I’m always upset when people don’t like something just because it changes so I stuck with it for a few hours and I have to say i have grown fond of the unity interface. However after a while I wanted to boot into <span><span>windows</span> 7</span> and play some games, the problem was that <span><span>grub</span> hadn’t</span> <span>found</span> the <span><span>windows</span> <span>partition</span></span>. So I had a browse around the internet and found several solutions to <span>fix</span> this <span>problem</span>. <span id="more-1393"></span></p>
<div style="width:350px; height:330px;background-image: url(http://www.the-tech-tutorial.com/wp-content/uploads/2011/03/add_back1.png); display: block; float: right; padding: 20px 25px 0px 30px;">
<script type="text/javascript"><!--
google_ad_client = "pub-2094089617852812";
/* 2011 In Text Box */
google_ad_slot = "1777411765";
google_ad_width = 336;
google_ad_height = 280;
//-->
</script><br />
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></div>
<p>When I first <span>installed</span> <span>11.04</span> my <span><span>installer</span> crashed</span> (due to a faulty cd) so I decided to <span>boot</span> into <span>windows</span> to finish the work I needed to get done, sadly the installer had crashed before installing <span>grub</span> so I couldn’t boot into <span>windows</span>. To fix this I quickly loaded a live CD and <span>installed</span> <span>grub</span> on my <span>windows</span> <span>partition</span>, this worked fine for the time being. After I finished my work I burned another cd (at a slower speed) and <span>re-installed</span> <span><span>Ubuntu</span> <span>11.04</span></span> successfully. Now when I rebooted <span>grub</span> <span>didn’t see</span> the <span><span>windows</span> partitions</span>. So first it tried:</p>
<pre>sudo <span>update-grub</span></pre>
<p>this still <span>Couldn’t <span>find</span> the <span>windows partition</span></span>, so I then tried</p>
<pre>sudo os-prober</pre>
<p>this also <span>would not <span>find windows</span></span>. I had a look at my <span>windows partition</span> and realised that the <span><span>grub</span> files</span> were still installed, I deleted these (<span>c:\boot</span> (lowercase only)) and re-run <span>update-grub<.span> witch finaly <span>found windows</span>.</p>
<p>Now if you dont want to read my story here are the most common ways of <span>getting <span><span>grub</span> to <span>find your <span><span>windows</span> partition</span></span></span></span>:</p>
<pre>sudo <span>update-grub</span></pre>
<pre>sudo <span>os-prober</span></pre>
<pre>Remove any <span>grub</span> files from your <span><span>windows</span> drive</span></pre>
<p><center><br />
<script type="text/javascript"><!--
google_ad_client = "ca-pub-2094089617852812";
/* 2011 Bottom */
google_ad_slot = "5825267234";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script><br />
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></center></p>
<pre># disable the <span>raid</span> setup
dmraid -an
dmraid -si

# remove the <span>metadata</span>
dmraid -E -r</pre>
<pre>Install <span><span>StartUP</span> – Manager</span> 
Open it and go to <span>display</span> and set the  <span>Resolution</span> as <span>640 X 480</span> and colour depth as 8 bits</pre>
<p>I hope this helped <span>fix</span> your problems, if not please feel free to leave a comment and I’ll try to answer your questions.</p>
<div name="googleone_share_1" style="position:relative;z-index:5;float: right; margin-left: 10px;"><g:plusone size="standard" count="" href="http://www.the-tech-tutorial.com/?p=1393"></g:plusone></div>

<div class="shr-bookmarks shr-bookmarks-expand shr-bookmarks-center shr-bookmarks-bg-knowledge">
<ul class="socials">
		<li class="shr-digg">
			<a href="http://www.shareaholic.com/api/share/?title=Ubuntu+grub+wont+find+Windows+7&amp;link=http://www.the-tech-tutorial.com/?p=1393&amp;notes=So%20I%20recently%20upgraded%20my%20Ubuntu%20instillation%20to%2011.04%20and%20I%20will%20admit%20that%20at%20first%20I%20didn%E2%80%99t%20like%20it%2C%20however%20I%E2%80%99m%20always%20upset%20when%20people%20don%E2%80%99t%20like%20something%20just%20because%20it%20changes%20so%20I%20stuck%20with%20it%20for%20a%20few%20hours%20and%20I%20have%20to%20say%20i%20have%20grown%20fond%20of%20the%20unity%20interface.%20However%20after&amp;short_link=&amp;shortener=google&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=3&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="shr-facebook">
			<a href="http://www.shareaholic.com/api/share/?title=Ubuntu+grub+wont+find+Windows+7&amp;link=http://www.the-tech-tutorial.com/?p=1393&amp;notes=So%20I%20recently%20upgraded%20my%20Ubuntu%20instillation%20to%2011.04%20and%20I%20will%20admit%20that%20at%20first%20I%20didn%E2%80%99t%20like%20it%2C%20however%20I%E2%80%99m%20always%20upset%20when%20people%20don%E2%80%99t%20like%20something%20just%20because%20it%20changes%20so%20I%20stuck%20with%20it%20for%20a%20few%20hours%20and%20I%20have%20to%20say%20i%20have%20grown%20fond%20of%20the%20unity%20interface.%20However%20after&amp;short_link=&amp;shortener=google&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=5&amp;tags=&amp;ctype=" rel="nofollow" title="Share this on Facebook">Share this on Facebook</a>
		</li>
		<li class="shr-googlebuzz">
			<a href="http://www.shareaholic.com/api/share/?title=Ubuntu+grub+wont+find+Windows+7&amp;link=http://www.the-tech-tutorial.com/?p=1393&amp;notes=So%20I%20recently%20upgraded%20my%20Ubuntu%20instillation%20to%2011.04%20and%20I%20will%20admit%20that%20at%20first%20I%20didn%E2%80%99t%20like%20it%2C%20however%20I%E2%80%99m%20always%20upset%20when%20people%20don%E2%80%99t%20like%20something%20just%20because%20it%20changes%20so%20I%20stuck%20with%20it%20for%20a%20few%20hours%20and%20I%20have%20to%20say%20i%20have%20grown%20fond%20of%20the%20unity%20interface.%20However%20after&amp;short_link=&amp;shortener=google&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=&amp;tags=&amp;ctype=" rel="nofollow" class="external" title=""></a>
		</li>
		<li class="shr-reddit">
			<a href="http://www.shareaholic.com/api/share/?title=Ubuntu+grub+wont+find+Windows+7&amp;link=http://www.the-tech-tutorial.com/?p=1393&amp;notes=So%20I%20recently%20upgraded%20my%20Ubuntu%20instillation%20to%2011.04%20and%20I%20will%20admit%20that%20at%20first%20I%20didn%E2%80%99t%20like%20it%2C%20however%20I%E2%80%99m%20always%20upset%20when%20people%20don%E2%80%99t%20like%20something%20just%20because%20it%20changes%20so%20I%20stuck%20with%20it%20for%20a%20few%20hours%20and%20I%20have%20to%20say%20i%20have%20grown%20fond%20of%20the%20unity%20interface.%20However%20after&amp;short_link=&amp;shortener=google&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=40&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a>
		</li>
		<li class="shr-stumbleupon">
			<a href="http://www.shareaholic.com/api/share/?title=Ubuntu+grub+wont+find+Windows+7&amp;link=http://www.the-tech-tutorial.com/?p=1393&amp;notes=So%20I%20recently%20upgraded%20my%20Ubuntu%20instillation%20to%2011.04%20and%20I%20will%20admit%20that%20at%20first%20I%20didn%E2%80%99t%20like%20it%2C%20however%20I%E2%80%99m%20always%20upset%20when%20people%20don%E2%80%99t%20like%20something%20just%20because%20it%20changes%20so%20I%20stuck%20with%20it%20for%20a%20few%20hours%20and%20I%20have%20to%20say%20i%20have%20grown%20fond%20of%20the%20unity%20interface.%20However%20after&amp;short_link=&amp;shortener=google&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=38&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="shr-twitter">
			<a href="http://www.shareaholic.com/api/share/?title=Ubuntu+grub+wont+find+Windows+7&amp;link=http://www.the-tech-tutorial.com/?p=1393&amp;notes=So%20I%20recently%20upgraded%20my%20Ubuntu%20instillation%20to%2011.04%20and%20I%20will%20admit%20that%20at%20first%20I%20didn%E2%80%99t%20like%20it%2C%20however%20I%E2%80%99m%20always%20upset%20when%20people%20don%E2%80%99t%20like%20something%20just%20because%20it%20changes%20so%20I%20stuck%20with%20it%20for%20a%20few%20hours%20and%20I%20have%20to%20say%20i%20have%20grown%20fond%20of%20the%20unity%20interface.%20However%20after&amp;short_link=&amp;shortener=google&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=%2524%257Btitle%257D%2B-%2B%2524%257Bshort_link%257D&amp;service=7&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a>
		</li>
		<li class="shr-linkedin">
			<a href="http://www.shareaholic.com/api/share/?title=Ubuntu+grub+wont+find+Windows+7&amp;link=http://www.the-tech-tutorial.com/?p=1393&amp;notes=So%20I%20recently%20upgraded%20my%20Ubuntu%20instillation%20to%2011.04%20and%20I%20will%20admit%20that%20at%20first%20I%20didn%E2%80%99t%20like%20it%2C%20however%20I%E2%80%99m%20always%20upset%20when%20people%20don%E2%80%99t%20like%20something%20just%20because%20it%20changes%20so%20I%20stuck%20with%20it%20for%20a%20few%20hours%20and%20I%20have%20to%20say%20i%20have%20grown%20fond%20of%20the%20unity%20interface.%20However%20after&amp;short_link=&amp;shortener=google&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=88&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Share this on LinkedIn">Share this on LinkedIn</a>
		</li>
</ul><div style="clear: both;"></div><div class="shr-getshr" style="visibility:hidden;font-size:10px !important"><a target="_blank" href="https://shareaholic.com/?src=pub">Get Shareaholic</a></div><div style="clear: both;"></div></div>

]]></content:encoded>
			<wfw:commentRss>http://www.the-tech-tutorial.com/?feed=rss2&#038;p=1393</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
