<?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>acloudtree &#187; Tutorial</title>
	<atom:link href="http://www.acloudtree.com/tag/tutorial/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.acloudtree.com</link>
	<description>Programming, Computers, Writing, Economics, and Life</description>
	<lastBuildDate>Sat, 10 Jul 2010 02:00:35 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>(Nerd) How to: Setup Virtual Hosts on Ubuntu 9.10 using Apache2 + MySQL5.X + PHP5</title>
		<link>http://www.acloudtree.com/nerd-how-to-setup-virtual-hosts-on-ubuntu-9-10-using-apache2-mysql5-x-php5/</link>
		<comments>http://www.acloudtree.com/nerd-how-to-setup-virtual-hosts-on-ubuntu-9-10-using-apache2-mysql5-x-php5/#comments</comments>
		<pubDate>Mon, 11 Jan 2010 21:45:58 +0000</pubDate>
		<dc:creator>jared.folkins</dc:creator>
				<category><![CDATA[Howto]]></category>
		<category><![CDATA[Nerd]]></category>
		<category><![CDATA[Networking]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[VIM]]></category>
		<category><![CDATA[cakephp]]></category>
		<category><![CDATA[apache2]]></category>
		<category><![CDATA[hosts]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[Ubuntu 9.10]]></category>
		<category><![CDATA[virtual]]></category>
		<category><![CDATA[virtualhosts]]></category>

		<guid isPermaLink="false">http://www.acloudtree.com/?p=443</guid>
		<description><![CDATA[I have been working on a couple projects that are hosted on gitHub. As the scale and scope of the projects grow, I ended up needing to setup multiple virtual hosts on my development machine. It wasn&#8217;t hard, but the information online that I found was fairly dated, so I created this tutorial.
This entire tutorial [...]]]></description>
			<content:encoded><![CDATA[<p>I have been working on a couple projects that are hosted on gitHub. As the scale and scope of the projects grow, I ended up needing to setup multiple virtual hosts on my development machine. It wasn&#8217;t hard, but the information online that I found was fairly dated, so I created this tutorial.</p>
<p>This entire tutorial is done after entering the &#8217;sudo -i&#8217; command which allows us to act as the SUPER-USER for the entirety of our terminal session. You&#8217;ve been warned.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #660033;">-i</span></pre></div></div>

<p><strong>NOTICE!!! I am aware that we could use the &#8216;a2ensite&#8217; and related commands. But for the sake of understanding the entire process, I will not be using it.</strong></p>
<p>1) Install the required modules from the command line</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">apt-get</span> <span style="color: #c20cb9; font-weight: bold;">install</span> apache2 mysql-server mysql-client php5 php5-cli php5-mysql</pre></div></div>

<p>2) Change the directory to /etc/apache2/sites-available</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>apache2<span style="color: #000000; font-weight: bold;">/</span>sites-available</pre></div></div>

<p>3) If you run the &#8216;ls&#8217; command while in the sites-available directory you should see the following</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">ls</span></pre></div></div>

<p>Output</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">default  default-ssl</pre></div></div>

<p>4) Copy the &#8216;default&#8217; config to a site specific config. For this tutorial I am using dev.acloudtree.com.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">cp</span> default dev.acloudtree.com.conf</pre></div></div>

<p>5) Make the application directory</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">mkdir</span> <span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>dev.acloudtree.com</pre></div></div>

<p>6) Open the file with an editor of your choosing. I prefer VIM.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">vi</span> dev.acloudtree.com.conf</pre></div></div>

<p>The output below is the entire file but I will discuss certain parts that we will need to edit.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;</span>VirtualHost <span style="color: #000000; font-weight: bold;">*</span>:<span style="color: #000000;">80</span><span style="color: #000000; font-weight: bold;">&gt;</span>
        ServerAdmin webmaster<span style="color: #000000; font-weight: bold;">@</span>localhost
&nbsp;
        DocumentRoot <span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>www
        <span style="color: #000000; font-weight: bold;">&lt;</span>Directory <span style="color: #000000; font-weight: bold;">/&gt;</span>
                Options FollowSymLinks
                AllowOverride None
        <span style="color: #000000; font-weight: bold;">&lt;/</span>Directory<span style="color: #000000; font-weight: bold;">&gt;</span>
        <span style="color: #000000; font-weight: bold;">&lt;</span>Directory <span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>www<span style="color: #000000; font-weight: bold;">/&gt;</span>
                Options Indexes FollowSymLinks MultiViews
                AllowOverride None
                Order allow,deny
                allow from all
        <span style="color: #000000; font-weight: bold;">&lt;/</span>Directory<span style="color: #000000; font-weight: bold;">&gt;</span>
&nbsp;
        ScriptAlias <span style="color: #000000; font-weight: bold;">/</span>cgi-bin<span style="color: #000000; font-weight: bold;">/</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>cgi-bin<span style="color: #000000; font-weight: bold;">/</span>
        <span style="color: #000000; font-weight: bold;">&lt;</span>Directory <span style="color: #ff0000;">&quot;/usr/lib/cgi-bin&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span>
                AllowOverride None
                Options +ExecCGI <span style="color: #660033;">-MultiViews</span> +SymLinksIfOwnerMatch
                Order allow,deny
                Allow from all
        <span style="color: #000000; font-weight: bold;">&lt;/</span>Directory<span style="color: #000000; font-weight: bold;">&gt;</span>
&nbsp;
        ErrorLog <span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>log<span style="color: #000000; font-weight: bold;">/</span>apache2<span style="color: #000000; font-weight: bold;">/</span>error.log
&nbsp;
        <span style="color: #666666; font-style: italic;"># Possible values include: debug, info, notice, warn, error, crit,</span>
        <span style="color: #666666; font-style: italic;"># alert, emerg.</span>
        LogLevel warn
&nbsp;
        CustomLog <span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>log<span style="color: #000000; font-weight: bold;">/</span>apache2<span style="color: #000000; font-weight: bold;">/</span>access.log combined
&nbsp;
    Alias <span style="color: #000000; font-weight: bold;">/</span>doc<span style="color: #000000; font-weight: bold;">/</span> <span style="color: #ff0000;">&quot;/usr/share/doc/&quot;</span>
    <span style="color: #000000; font-weight: bold;">&lt;</span>Directory <span style="color: #ff0000;">&quot;/usr/share/doc/&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span>
        Options Indexes MultiViews FollowSymLinks
        AllowOverride None
        Order deny,allow
        Deny from all
        Allow from 127.0.0.0<span style="color: #000000; font-weight: bold;">/</span>255.0.0.0 ::<span style="color: #000000;">1</span><span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">128</span>
    <span style="color: #000000; font-weight: bold;">&lt;/</span>Directory<span style="color: #000000; font-weight: bold;">&gt;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">&lt;/</span>VirtualHost<span style="color: #000000; font-weight: bold;">&gt;</span></pre></div></div>

<p>7) Add the name of the server. This will be the name that you type in the URL field of your web browser (IE: Firefox)</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;</span>VirtualHost <span style="color: #000000; font-weight: bold;">*</span>:<span style="color: #000000;">80</span><span style="color: #000000; font-weight: bold;">&gt;</span>
        ServerAdmin webmaster<span style="color: #000000; font-weight: bold;">@</span>localhost
	ServerName dev.acloudtree.com
...</pre></div></div>

<p>8 ) Point the Virtual host to the correct directory</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">...
        DocumentRoot <span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>dev.acloudtree.com
        <span style="color: #000000; font-weight: bold;">&lt;</span>Directory <span style="color: #000000; font-weight: bold;">/&gt;</span>
                Options FollowSymLinks
                AllowOverride None
        <span style="color: #000000; font-weight: bold;">&lt;/</span>Directory<span style="color: #000000; font-weight: bold;">&gt;</span>
...</pre></div></div>

<p>9) Also make the change here.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">...
        <span style="color: #000000; font-weight: bold;">&lt;</span>Directory <span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>dev.acloudtree.com<span style="color: #000000; font-weight: bold;">/&gt;</span>
                Options Indexes FollowSymLinks MultiViews
                AllowOverride None
                Order allow,deny
                allow from all
        <span style="color: #000000; font-weight: bold;">&lt;/</span>Directory<span style="color: #000000; font-weight: bold;">&gt;</span>
...</pre></div></div>

<p>10) So this is what your dev.acloudtree.com.conf file should look like when you are done. Write/Quite the file and we will move on.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;</span>VirtualHost <span style="color: #000000; font-weight: bold;">*</span>:<span style="color: #000000;">80</span><span style="color: #000000; font-weight: bold;">&gt;</span>
        ServerAdmin webmaster<span style="color: #000000; font-weight: bold;">@</span>localhost
	ServerName dev.acloudtree.com
&nbsp;
        DocumentRoot <span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>dev.acloudtree.com
        <span style="color: #000000; font-weight: bold;">&lt;</span>Directory <span style="color: #000000; font-weight: bold;">/&gt;</span>
                Options FollowSymLinks
                AllowOverride None
        <span style="color: #000000; font-weight: bold;">&lt;/</span>Directory<span style="color: #000000; font-weight: bold;">&gt;</span>
        <span style="color: #000000; font-weight: bold;">&lt;</span>Directory <span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>dev.acloudtree.com<span style="color: #000000; font-weight: bold;">/&gt;</span>
                Options Indexes FollowSymLinks MultiViews
                AllowOverride None
                Order allow,deny
                allow from all
        <span style="color: #000000; font-weight: bold;">&lt;/</span>Directory<span style="color: #000000; font-weight: bold;">&gt;</span>
&nbsp;
        ScriptAlias <span style="color: #000000; font-weight: bold;">/</span>cgi-bin<span style="color: #000000; font-weight: bold;">/</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>cgi-bin<span style="color: #000000; font-weight: bold;">/</span>
        <span style="color: #000000; font-weight: bold;">&lt;</span>Directory <span style="color: #ff0000;">&quot;/usr/lib/cgi-bin&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span>
                AllowOverride None
                Options +ExecCGI <span style="color: #660033;">-MultiViews</span> +SymLinksIfOwnerMatch
                Order allow,deny
                Allow from all
        <span style="color: #000000; font-weight: bold;">&lt;/</span>Directory<span style="color: #000000; font-weight: bold;">&gt;</span>
&nbsp;
        ErrorLog <span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>log<span style="color: #000000; font-weight: bold;">/</span>apache2<span style="color: #000000; font-weight: bold;">/</span>error.log
&nbsp;
        <span style="color: #666666; font-style: italic;"># Possible values include: debug, info, notice, warn, error, crit,</span>
        <span style="color: #666666; font-style: italic;"># alert, emerg.</span>
        LogLevel warn
&nbsp;
        CustomLog <span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>log<span style="color: #000000; font-weight: bold;">/</span>apache2<span style="color: #000000; font-weight: bold;">/</span>access.log combined
&nbsp;
    Alias <span style="color: #000000; font-weight: bold;">/</span>doc<span style="color: #000000; font-weight: bold;">/</span> <span style="color: #ff0000;">&quot;/usr/share/doc/&quot;</span>
    <span style="color: #000000; font-weight: bold;">&lt;</span>Directory <span style="color: #ff0000;">&quot;/usr/share/doc/&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span>
        Options Indexes MultiViews FollowSymLinks
        AllowOverride None
        Order deny,allow
        Deny from all
        Allow from 127.0.0.0<span style="color: #000000; font-weight: bold;">/</span>255.0.0.0 ::<span style="color: #000000;">1</span><span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">128</span>
    <span style="color: #000000; font-weight: bold;">&lt;/</span>Directory<span style="color: #000000; font-weight: bold;">&gt;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">&lt;/</span>VirtualHost<span style="color: #000000; font-weight: bold;">&gt;</span></pre></div></div>

<p>10a) <strong>IMPORTANT!</strong> Make a symbolic link in the sites-enabled directory</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">ln</span> <span style="color: #660033;">-s</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>apache2<span style="color: #000000; font-weight: bold;">/</span>sites-available<span style="color: #000000; font-weight: bold;">/</span>dev.acloudtree.com.conf <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>apache2<span style="color: #000000; font-weight: bold;">/</span>sites-enabled<span style="color: #000000; font-weight: bold;">/</span>000-dev.acloudtree.com.conf</pre></div></div>

<p>11) We need to edit our /etc/hosts file</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">vi</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>hosts</pre></div></div>

<p>Output</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">127.0.0.1       localhost 
127.0.1.1       servername
&nbsp;
<span style="color: #666666; font-style: italic;"># The following lines are desirable for IPv6 capable hosts</span>
::<span style="color: #000000;">1</span>     localhost ip6-localhost ip6-loopback
fe00::<span style="color: #000000;">0</span> ip6-localnet
ff00::<span style="color: #000000;">0</span> ip6-mcastprefix
ff02::<span style="color: #000000;">1</span> ip6-allnodes
ff02::<span style="color: #000000;">2</span> ip6-allrouters
ff02::<span style="color: #000000;">3</span> ip6-allhosts</pre></div></div>

<p>12) Right beneath the &#8216;localhost&#8217; definition, add the following</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">127.0.0.1      dev.acloudtree.com</pre></div></div>

<p>13) The complete file looks like this.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">127.0.0.1       localhost
127.0.0.1       dev.acloudtree.com
127.0.1.1       servername
&nbsp;
<span style="color: #666666; font-style: italic;"># The following lines are desirable for IPv6 capable hosts</span>
::<span style="color: #000000;">1</span>     localhost ip6-localhost ip6-loopback
fe00::<span style="color: #000000;">0</span> ip6-localnet
ff00::<span style="color: #000000;">0</span> ip6-mcastprefix
ff02::<span style="color: #000000;">1</span> ip6-allnodes
ff02::<span style="color: #000000;">2</span> ip6-allrouters
ff02::<span style="color: #000000;">3</span> ip6-allhosts</pre></div></div>

<p>14) Create an index.php file in /var/dev.acloudtree.com for testing purposes.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">vi</span> <span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>dev.acloudtree.com<span style="color: #000000; font-weight: bold;">/</span>index.php</pre></div></div>

<p>Contents of .php file.</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span>
&nbsp;
        <span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">'Jared Folkins\' tutorial on acloudtree.com really works!'</span><span style="color: #339933;">;</span>
        <span style="color: #990000;">phpinfo</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

<p>15) Reboot the apache2 process.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>init.d<span style="color: #000000; font-weight: bold;">/</span>apache2 restart</pre></div></div>

<p>16) Now open up your web browser and enter dev.acloudtree.com into the URL bar and it should work!</p>
<p>UPDATE: I forgot to mention that in this environment, I like to configure log files for each virtual host. This is our current dev.acloudtree.com file.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;</span>VirtualHost <span style="color: #000000; font-weight: bold;">*</span>:<span style="color: #000000;">80</span><span style="color: #000000; font-weight: bold;">&gt;</span>
        ServerAdmin webmaster<span style="color: #000000; font-weight: bold;">@</span>localhost
	ServerName dev.acloudtree.com
&nbsp;
        DocumentRoot <span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>dev.acloudtree.com
        <span style="color: #000000; font-weight: bold;">&lt;</span>Directory <span style="color: #000000; font-weight: bold;">/&gt;</span>
                Options FollowSymLinks
                AllowOverride None
        <span style="color: #000000; font-weight: bold;">&lt;/</span>Directory<span style="color: #000000; font-weight: bold;">&gt;</span>
        <span style="color: #000000; font-weight: bold;">&lt;</span>Directory <span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>dev.acloudtree.com<span style="color: #000000; font-weight: bold;">/&gt;</span>
                Options Indexes FollowSymLinks MultiViews
                AllowOverride None
                Order allow,deny
                allow from all
        <span style="color: #000000; font-weight: bold;">&lt;/</span>Directory<span style="color: #000000; font-weight: bold;">&gt;</span>
&nbsp;
        ScriptAlias <span style="color: #000000; font-weight: bold;">/</span>cgi-bin<span style="color: #000000; font-weight: bold;">/</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>cgi-bin<span style="color: #000000; font-weight: bold;">/</span>
        <span style="color: #000000; font-weight: bold;">&lt;</span>Directory <span style="color: #ff0000;">&quot;/usr/lib/cgi-bin&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span>
                AllowOverride None
                Options +ExecCGI <span style="color: #660033;">-MultiViews</span> +SymLinksIfOwnerMatch
                Order allow,deny
                Allow from all
        <span style="color: #000000; font-weight: bold;">&lt;/</span>Directory<span style="color: #000000; font-weight: bold;">&gt;</span>
&nbsp;
        ErrorLog <span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>log<span style="color: #000000; font-weight: bold;">/</span>apache2<span style="color: #000000; font-weight: bold;">/</span>error.log
&nbsp;
        <span style="color: #666666; font-style: italic;"># Possible values include: debug, info, notice, warn, error, crit,</span>
        <span style="color: #666666; font-style: italic;"># alert, emerg.</span>
        LogLevel warn
&nbsp;
        CustomLog <span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>log<span style="color: #000000; font-weight: bold;">/</span>apache2<span style="color: #000000; font-weight: bold;">/</span>access.log combined
&nbsp;
    Alias <span style="color: #000000; font-weight: bold;">/</span>doc<span style="color: #000000; font-weight: bold;">/</span> <span style="color: #ff0000;">&quot;/usr/share/doc/&quot;</span>
    <span style="color: #000000; font-weight: bold;">&lt;</span>Directory <span style="color: #ff0000;">&quot;/usr/share/doc/&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span>
        Options Indexes MultiViews FollowSymLinks
        AllowOverride None
        Order deny,allow
        Deny from all
        Allow from 127.0.0.0<span style="color: #000000; font-weight: bold;">/</span>255.0.0.0 ::<span style="color: #000000;">1</span><span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">128</span>
    <span style="color: #000000; font-weight: bold;">&lt;/</span>Directory<span style="color: #000000; font-weight: bold;">&gt;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">&lt;/</span>VirtualHost<span style="color: #000000; font-weight: bold;">&gt;</span></pre></div></div>

<p>Just change the ErrorLog and CustomLog names to match the virtual host.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">...
        ErrorLog <span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>log<span style="color: #000000; font-weight: bold;">/</span>apache2<span style="color: #000000; font-weight: bold;">/</span>dev.acloudtree.com_error.log
&nbsp;
        <span style="color: #666666; font-style: italic;"># Possible values include: debug, info, notice, warn, error, crit,</span>
        <span style="color: #666666; font-style: italic;"># alert, emerg.</span>
        LogLevel warn
&nbsp;
        CustomLog <span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>log<span style="color: #000000; font-weight: bold;">/</span>apache2<span style="color: #000000; font-weight: bold;">/</span>dev.acloudtree.com_access.log combined
...
<span style="color: #000000; font-weight: bold;">&lt;/</span>VirtualHost<span style="color: #000000; font-weight: bold;">&gt;</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://www.acloudtree.com/nerd-how-to-setup-virtual-hosts-on-ubuntu-9-10-using-apache2-mysql5-x-php5/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>(Nerd) How to: Reconfigure SSH listening port on Ubuntu 9.10</title>
		<link>http://www.acloudtree.com/nerd-how-to-reconfigure-ssh-listening-port-on-ubuntu-9-10/</link>
		<comments>http://www.acloudtree.com/nerd-how-to-reconfigure-ssh-listening-port-on-ubuntu-9-10/#comments</comments>
		<pubDate>Wed, 23 Dec 2009 17:59:54 +0000</pubDate>
		<dc:creator>jared.folkins</dc:creator>
				<category><![CDATA[Howto]]></category>
		<category><![CDATA[Nerd]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[housing]]></category>
		<category><![CDATA[how to]]></category>
		<category><![CDATA[reconfigure]]></category>
		<category><![CDATA[Server]]></category>
		<category><![CDATA[SSH]]></category>
		<category><![CDATA[Ubuntu 9.10]]></category>
		<category><![CDATA[vi]]></category>

		<guid isPermaLink="false">http://www.acloudtree.com/?p=297</guid>
		<description><![CDATA[1) Make sure that you have have ssh installed on your system.

sudo apt-get install openssh-server openssh-client

2) Open the sshd_config file using VI

sudo vi /etc/ssh/sshd_config

3) Here is the file in its entirety that was created by the installation process

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
# Package generated configuration file
# See the sshd(8) manpage for details
&#160;
# What ports, IPs and protocols we listen [...]]]></description>
			<content:encoded><![CDATA[<p>1) Make sure that you have have ssh installed on your system.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">apt-get</span> <span style="color: #c20cb9; font-weight: bold;">install</span> openssh-server openssh-client</pre></div></div>

<p>2) Open the sshd_config file using VI</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">vi</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>ssh<span style="color: #000000; font-weight: bold;">/</span>sshd_config</pre></div></div>

<p>3) Here is the file in its entirety that was created by the installation process</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;"># Package generated configuration file</span>
<span style="color: #666666; font-style: italic;"># See the sshd(8) manpage for details</span>
&nbsp;
<span style="color: #666666; font-style: italic;"># What ports, IPs and protocols we listen for</span>
Port <span style="color: #000000;">22</span>
<span style="color: #666666; font-style: italic;"># Use these options to restrict which interfaces/protocols sshd will bind to</span>
<span style="color: #666666; font-style: italic;">#ListenAddress ::</span>
<span style="color: #666666; font-style: italic;">#ListenAddress 0.0.0.0</span>
Protocol <span style="color: #000000;">2</span>
<span style="color: #666666; font-style: italic;"># HostKeys for protocol version 2</span>
HostKey <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>ssh<span style="color: #000000; font-weight: bold;">/</span>ssh_host_rsa_key
HostKey <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>ssh<span style="color: #000000; font-weight: bold;">/</span>ssh_host_dsa_key
<span style="color: #666666; font-style: italic;">#Privilege Separation is turned on for security</span>
UsePrivilegeSeparation <span style="color: #c20cb9; font-weight: bold;">yes</span>
&nbsp;
<span style="color: #666666; font-style: italic;"># Lifetime and size of ephemeral version 1 server key</span>
KeyRegenerationInterval <span style="color: #000000;">3600</span>
ServerKeyBits <span style="color: #000000;">768</span>
&nbsp;
<span style="color: #666666; font-style: italic;"># Logging</span>
SyslogFacility AUTH
LogLevel INFO
&nbsp;
<span style="color: #666666; font-style: italic;"># Authentication:</span>
LoginGraceTime <span style="color: #000000;">120</span>
PermitRootLogin <span style="color: #c20cb9; font-weight: bold;">yes</span>
StrictModes <span style="color: #c20cb9; font-weight: bold;">yes</span>
&nbsp;
RSAAuthentication <span style="color: #c20cb9; font-weight: bold;">yes</span>
PubkeyAuthentication <span style="color: #c20cb9; font-weight: bold;">yes</span>
<span style="color: #666666; font-style: italic;">#AuthorizedKeysFile	%h/.ssh/authorized_keys</span>
&nbsp;
<span style="color: #666666; font-style: italic;"># Don't read the user's ~/.rhosts and ~/.shosts files</span>
IgnoreRhosts <span style="color: #c20cb9; font-weight: bold;">yes</span>
<span style="color: #666666; font-style: italic;"># For this to work you will also need host keys in /etc/ssh_known_hosts</span>
RhostsRSAAuthentication no
<span style="color: #666666; font-style: italic;"># similar for protocol version 2</span>
HostbasedAuthentication no
<span style="color: #666666; font-style: italic;"># Uncomment if you don't trust ~/.ssh/known_hosts for RhostsRSAAuthentication</span>
<span style="color: #666666; font-style: italic;">#IgnoreUserKnownHosts yes</span>
&nbsp;
<span style="color: #666666; font-style: italic;"># To enable empty passwords, change to yes (NOT RECOMMENDED)</span>
PermitEmptyPasswords no
&nbsp;
<span style="color: #666666; font-style: italic;"># Change to yes to enable challenge-response passwords (beware issues with</span>
<span style="color: #666666; font-style: italic;"># some PAM modules and threads)</span>
ChallengeResponseAuthentication no
&nbsp;
<span style="color: #666666; font-style: italic;"># Change to no to disable tunnelled clear text passwords</span>
<span style="color: #666666; font-style: italic;">#PasswordAuthentication yes</span>
&nbsp;
<span style="color: #666666; font-style: italic;"># Kerberos options</span>
<span style="color: #666666; font-style: italic;">#KerberosAuthentication no</span>
<span style="color: #666666; font-style: italic;">#KerberosGetAFSToken no</span>
<span style="color: #666666; font-style: italic;">#KerberosOrLocalPasswd yes</span>
<span style="color: #666666; font-style: italic;">#KerberosTicketCleanup yes</span>
&nbsp;
<span style="color: #666666; font-style: italic;"># GSSAPI options</span>
<span style="color: #666666; font-style: italic;">#GSSAPIAuthentication no</span>
<span style="color: #666666; font-style: italic;">#GSSAPICleanupCredentials yes</span>
&nbsp;
X11Forwarding <span style="color: #c20cb9; font-weight: bold;">yes</span>
X11DisplayOffset <span style="color: #000000;">10</span>
PrintMotd no
PrintLastLog <span style="color: #c20cb9; font-weight: bold;">yes</span>
TCPKeepAlive <span style="color: #c20cb9; font-weight: bold;">yes</span>
<span style="color: #666666; font-style: italic;">#UseLogin no</span>
&nbsp;
<span style="color: #666666; font-style: italic;">#MaxStartups 10:30:60</span>
<span style="color: #666666; font-style: italic;">#Banner /etc/issue.net</span>
&nbsp;
<span style="color: #666666; font-style: italic;"># Allow client to pass locale environment variables</span>
AcceptEnv LANG LC_<span style="color: #000000; font-weight: bold;">*</span>
&nbsp;
Subsystem sftp <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>openssh<span style="color: #000000; font-weight: bold;">/</span>sftp-server
&nbsp;
UsePAM <span style="color: #c20cb9; font-weight: bold;">yes</span></pre></td></tr></table></div>

<p>4) But we are mainly concerned with this part right here</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;"># Package generated configuration file</span>
<span style="color: #666666; font-style: italic;"># See the sshd(8) manpage for details</span>
&nbsp;
<span style="color: #666666; font-style: italic;"># What ports, IPs and protocols we listen for</span>
Port <span style="color: #000000;">22</span>
&nbsp;
...</pre></td></tr></table></div>

<p>5) Change the default port that is currently 22, to a non standard port. I changed mine to 22999</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;"># Package generated configuration file</span>
<span style="color: #666666; font-style: italic;"># See the sshd(8) manpage for details</span>
&nbsp;
<span style="color: #666666; font-style: italic;"># What ports, IPs and protocols we listen for</span>
Port <span style="color: #000000;">22999</span>
&nbsp;
...</pre></td></tr></table></div>

<p>6) Write/Quite so that you can save the changes to the file.</p>
<p>7) Now, all we have to do is restart the ssh daemon and it will listen from the new port.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>init.d<span style="color: #000000; font-weight: bold;">/</span><span style="color: #c20cb9; font-weight: bold;">ssh</span> restart</pre></div></div>

<p>8 ) Finally, from another linux (or whatever OS you prefer) box, use the SSH client and login to your newly reconfigured server. Make sure to change the port using the &#8216;-p&#8217; flag.</p>
<p>Example: ssh YOUR_USERNAME@IP_ADDRESS_OF_SERVER -p 22999</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">ssh</span> jaredfolkins<span style="color: #000000; font-weight: bold;">@</span>192.168.1.107 <span style="color: #660033;">-p</span> <span style="color: #000000;">22999</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://www.acloudtree.com/nerd-how-to-reconfigure-ssh-listening-port-on-ubuntu-9-10/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to research Real Estate in Bend, Oregon</title>
		<link>http://www.acloudtree.com/how-to-research-real-estate-in-bend-oregon/</link>
		<comments>http://www.acloudtree.com/how-to-research-real-estate-in-bend-oregon/#comments</comments>
		<pubDate>Sun, 20 Dec 2009 02:27:35 +0000</pubDate>
		<dc:creator>jared.folkins</dc:creator>
				<category><![CDATA[Economy]]></category>
		<category><![CDATA[Howto]]></category>
		<category><![CDATA[Life]]></category>
		<category><![CDATA[Real Estate]]></category>
		<category><![CDATA[bend]]></category>
		<category><![CDATA[housing]]></category>
		<category><![CDATA[oregon]]></category>
		<category><![CDATA[bubble]]></category>
		<category><![CDATA[central oregon]]></category>
		<category><![CDATA[how to]]></category>
		<category><![CDATA[research]]></category>
		<category><![CDATA[Tutorial]]></category>

		<guid isPermaLink="false">http://www.acloudtree.com/?p=306</guid>
		<description><![CDATA[Overview: I have been tracking and researching homes for over five years. Because of my research, I knew that we were in a housing bubble. And so I stayed out of the market, on the side lines, waiting. Below, is a very common research technique that I use, to learn more about homes that interest [...]]]></description>
			<content:encoded><![CDATA[<p>Overview: I have been tracking and researching homes for over five years. Because of my research, I knew that we were in a housing bubble. And so I stayed out of the market, on the side lines, waiting. Below, is a very common research technique that I use, to learn more about homes that interest me.</p>
<p>Full Disclosure: I own no real estate, I don&#8217;t, nor have I ever worked for a Real Estate Agent, a Bank, or a Mortgage broker. I am just a nerd. <img src='http://www.acloudtree.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><strong>1)</strong> Find a house using the MLS, Zillow, or whatever site gives you the best access to the homes you like. Important! The house must have a posted address. In this first screen shot, I am using the site www.centraloregonrealtors.com, and I found a house that I have watched for a while. It&#8217;s current MLS # (though it has had many) is 2903276.</p>
<p><img class="aligncenter size-full wp-image-307" title="MLS_example" src="http://www.acloudtree.com/wp-content/uploads/2009/12/MLS_example.png" alt="MLS_example" width="626" height="441" /></p>
<p><strong>2) </strong>You can see that on the bottom of the ad, there is a address. So I hightlight the area, right click, and copy the address to my clipboard.</p>
<p><img class="aligncenter size-full wp-image-309" title="RightClick" src="http://www.acloudtree.com/wp-content/uploads/2009/12/RightClick.png" alt="RightClick" width="624" height="341" /></p>
<p><strong>3) </strong>I then head over to the Deschutes county web application known as <a title="D.I.A.L" href="http://www.deschutes.org/dial">D.I.A.L</a> (click the link)<strong>.</strong></p>
<p><img class="aligncenter size-medium wp-image-310" title="Dial" src="http://www.acloudtree.com/wp-content/uploads/2009/12/Dial-300x184.png" alt="Dial" width="300" height="184" /></p>
<p><strong>4) </strong>We are mainly interested in this area right here.</p>
<p><img class="aligncenter size-full wp-image-311" title="Dial_search_area" src="http://www.acloudtree.com/wp-content/uploads/2009/12/Dial_search_area.png" alt="Dial_search_area" width="650" height="472" /></p>
<p><strong>5) </strong>Click the <em>&#8216;Check All&#8217;</em> button, then select the <em>&#8216;Street Address&#8217;</em> radio button, and finally <em>paste</em> the address that you found from a Real Estate site and click <em>submit. </em></p>
<p><img class="aligncenter size-full wp-image-314" title="dial_search_critera" src="http://www.acloudtree.com/wp-content/uploads/2009/12/dial_search_critera.png" alt="dial_search_critera" width="567" height="465" /></p>
<p><strong>6) </strong>In this case you are presented with the following screen.</p>
<p><img class="aligncenter size-full wp-image-315" title="Dial_output" src="http://www.acloudtree.com/wp-content/uploads/2009/12/Dial_output.png" alt="Dial_output" width="446" height="477" /></p>
<p><strong>NOTE: </strong>There is a lot of data here, so I am going to break it down for you.</p>
<p><strong>a) </strong>This is the Deschutes county liability section. For the most part, you can ignore this.</p>
<pre>                    DISCLAIMER AND LIMITATION OF LIABILITY

     Information on the Deschutes County Computer is not guaranteed to be
accurate and may contain errors and omissions.  Deschutes County provides NO
WARRANTY AS TO THE MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE FOR
ANY INFORMATION.  Original records may differ from computer entries.  If
reliance upon computer record is intended, verification of information on
source documents is required.  User expressly acknowledges and agrees that
the use of any information appearing on the Deschutes County Computer is at
User's sole risk.  Deschutes County shall not be liable for any direct,
indirect, incidental, or consequential damages caused by mistakes, omissions,
deletions, errors, defects, in any information, or any failure or delays in
receiving information.  The following property tax assessment data is updated
nightly.</pre>
<p><strong>b) </strong>This next section starts to get interesting. The three primary things you will see, is the current owners names, the loan originator, and the address.</p>
<pre>Account: 184388  Map/TL: R 1-001 171230 DB 04900    

* * *  CURRENT Ownership Information ONLY 

SILVER,MATT J
BLUE,CATHERINE C
2332 NW CANDLELIGHT PL
BEND  OR  97701-5450

THRU:  Bank of America Commercial Loan Service
AGENT: BAC (P)

Site Address: 2332 NW CANDLELIGHT PL  BEND 97701

Assessor Property Description
CITY VIEW PHASE II Lot: 24

Prop Cls:101  MA:5  VA:26  NH 013  Vol-Page:  2006-12233
Asmt Zone:RS  CDD Zone:BEND (CITY OF BEND)

***  Land Values  ***
    Asmt type                                     R.M.V.
    URBAN LOT                                   180,900
    LA                                            4,500
    SD                                            3,000
   *Total                                       188,400

***  Improvement Values  ***
     FB        $ R.M.V.            BLT %GD
    153        289,850            2005</pre>
<p><strong>c) </strong>And here is the property description and the attributes on record of said property. It also has a summary of the property&#8217;s sales, but I usually head farther down the document, for the more descriptive sales information.</p>
<pre>***  Land Values  ***
    Asmt type                                     R.M.V.
    URBAN LOT                                   180,900
    LA                                            4,500
    SD                                            3,000
   *Total                                       188,400

***  Improvement Values  ***
     FB        $ R.M.V.            BLT %GD
    153        289,850            2005
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 

    Room Grid for 153    Total SqFt: 2521
                                - - - - - - - R O O M S - - - - - - -
                                       LR K DR FAM BD BATH OTH FP UTL
                  Sq Ft: 1541  1st Fl   1 1  1     1   1\1      1  1
                          980  2nd Fl           1  3   1
                         1010  Garage                               

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 

***** Values shown below are as of the Assessment Date, January 1 of each year *****

***      --------2009--------     --------2008--------     ---------2007--------
          Total       Taxable      Total       Taxable      Total        Taxable
           RMV          A.V.        RMV          A.V.        RMV           A.V.
LND:     188,400                  220,320                  233,900
IMP:     289,850                  341,000                  344,440
TOT:     478,250      237,490     561,320      230,580     578,340       223,870
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 

SALES: --- 1 ---   --- 2 ---   --- 3 ---   --- 4 ---
  Date 02-17-06    09-30-04    02-02-95    12-27-93
Sale $ 639800      96000       41705       37900
 Cndtn 30          33          30          30
 Class 101         100         100         100
Inst # 2006-12233  2004-61118  1995-36429821993-3242218
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -</pre>
<p><strong>d) </strong>And here is the very detailed sales information. The thing to note, is that the SELLER is on the LEFT and the BUYER is on the RIGHT. If you are paying close attention, you will also notice that the current owner looks to have paid $639,800 in February of 2006, but up in our MLS ad, the owner is asking $299,900. We can deduce that the most likely scenario in our current economic environment is a SHORT SALE.</p>
<pre>Sales Detail Information

-------------------------------------------------------------------------------

Vol Page 2006-12233      Sales Date 02/17/06   Adjusted Sales Price    $639,800

   Sales Code 30    UNCONFIRMED SALE

Grantor:                                  Grantee:

ROGERS, SCOTT M &amp; ALLISON M               SILVER, MATT J &amp; BLUE, CATHERINE C
                                          1612 NW KINGSTON
BEND OR 97709                             BEND OR 97701                           

***
Site Address: 2332 NW CANDLELIGHT PL  BEND 97701
Assessor Property Description
CITY VIEW PHASE II Lot: 24

Acct 184388    Map/TL: R 1-001 171230 DB 04900
  MA: 5   VA: 26  Class: 101  

-------------------------------------------------------------------------------

Vol Page 2004-61118      Sales Date 09/30/04   Adjusted Sales Price     $96,000

   Sales Code 33    CONFIRMED SALE

Grantor:                                  Grantee:

SHEASGREEN,ALAN                           ROGERS, SCOTT M &amp; ALLISON M
8309 SE LIESER POINT DR
VANCOUVER WA 98664                        BEND OR 97709                           

***
Site Address: 2332 NW CANDLELIGHT PL  BEND 97701
Assessor Property Description
CITY VIEW PHASE II Lot: 24

Acct 184388    Map/TL: R 1-001 171230 DB 04900
  MA: 5   VA: 26  Class: 100  

-------------------------------------------------------------------------------

Vol Page 1995-3642982    Sales Date 02/02/95   Adjusted Sales Price     $41,705

   Sales Code 30    UNCONFIRMED SALE

Grantor:                                  Grantee:

LEWIS,JAMES R                             SHEASGREEN,ALAN
2518 NW GOODWILLIE CT                     8309 SE LIESER POINT DR
BEND OR 97701                             VANCOUVER WA 98664                      

***
Site Address: 2332 NW CANDLELIGHT PL  BEND 97701
Assessor Property Description
CITY VIEW PHASE II Lot: 24

Acct 184388    Map/TL: R 1-001 171230 DB 04900
  MA: 5   VA: 26  Class: 100  

-------------------------------------------------------------------------------

Vol Page 1993-3242218    Sales Date 12/27/93   Adjusted Sales Price     $37,900

   Sales Code 30    UNCONFIRMED SALE

Grantor:                                  Grantee:

CITY HEIGHTS INC                          LEWIS,JAMES R
1070 NW BOND STE 203                      2321 NW TORSWAY ST
BEND OR 97701                             BEND OR 97701                           

***
Site Address: 2332 NW CANDLELIGHT PL  BEND 97701
Assessor Property Description
CITY VIEW PHASE II Lot: 24

Acct 184388    Map/TL: R 1-001 171230 DB 04900
  MA: 5   VA: 26  Class: 100  

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -</pre>
<p><strong>d) </strong>Further down, there is tax and other information, but this is not really needed for our tutorial so I will skip the description.</p>
<p><strong>7) </strong>Highlight the primary owner&#8217;s name, right click, and copy it to your clipboard.</p>
<p><img class="aligncenter size-full wp-image-323" title="owner_highlight" src="http://www.acloudtree.com/wp-content/uploads/2009/12/owner_highligh.png" alt="owner_highlight" width="581" height="457" /></p>
<p><strong>8 ) </strong>Now, head over to the Deschutes County clerk site by clicking the <a href="http://recordings.co.deschutes.or.us/searchdisclaimer.asp">link</a>. The first screen you will see will be a disclaimer. Go ahead and click <em>&#8216;I Accept&#8217;</em> after reading.</p>
<p><img class="aligncenter size-full wp-image-324" title="CountyClerkDisclaimer" src="http://www.acloudtree.com/wp-content/uploads/2009/12/CountyClerkDisclaimer.png" alt="CountyClerkDisclaimer" width="811" height="469" /></p>
<p><strong>9) </strong>The next page will be the search page, go ahead and copy in the name of the current owner on the property that we are researching.</p>
<p><img class="aligncenter size-full wp-image-327" title="ClerkSearchCriteria" src="http://www.acloudtree.com/wp-content/uploads/2009/12/ClerkSearchCriteria.png" alt="ClerkSearchCriteria" width="526" height="467" /></p>
<p><strong>10) </strong>After clicking &#8216;Search&#8217;, you should see the following screen (or fairly close to it)</p>
<p><img class="aligncenter size-full wp-image-328" title="ClerkResults" src="http://www.acloudtree.com/wp-content/uploads/2009/12/ClerkResults.png" alt="ClerkResults" width="739" height="483" /></p>
<p><strong>11)</strong> Now, the thing that jumps out at me is the second document. The <strong>Doc Type: </strong>is Notice of Default &amp; Election to Sell which means that this record is going to be foreclosed on. Let click on the link title <strong><a href="Detail.asp?INSTRUMENT_ID=1581356">2009-036611</a> </strong>and see what information we get. Our goal here is to track down the relevant documents pertaining to the property we are researching. You should get the following screen.</p>
<p><img class="aligncenter size-full wp-image-329" title="clerkDefault" src="http://www.acloudtree.com/wp-content/uploads/2009/12/clerkDefault.png" alt="clerkDefault" width="547" height="485" /></p>
<p><strong>12) </strong>Do you see that link at the bottom of the screen? The one that says 2006-078298? Do you also see the words<em> Deed of  Trust / Mortgage</em>? Well, that is the original mortgage document. Go ahead and click on the 2006-078298 link.</p>
<p><img class="aligncenter size-full wp-image-331" title="ClerkRecord" src="http://www.acloudtree.com/wp-content/uploads/2009/12/ClerkRecord.png" alt="ClerkRecord" width="591" height="471" /></p>
<p><strong>13) </strong>At this point, I would click on the link that says <em>View Document Image </em>and a .pdf of the actual mortgage will open. You can see a lot of useful information. After you are done taking a gander, head back a page to the Notice of Default record.</p>
<p><img class="aligncenter size-full wp-image-329" title="clerkDefault" src="http://www.acloudtree.com/wp-content/uploads/2009/12/clerkDefault.png" alt="clerkDefault" width="547" height="485" /></p>
<p><strong>14) </strong>Click on the <em>View Document Image </em>and you will again download a .pdf, but I will point out several pieces of information. The first is that you can see the address and the second is that you will find the date the home will <em>potentially </em>be sold on the county steps.</p>
<p><img class="aligncenter size-full wp-image-332" title="address" src="http://www.acloudtree.com/wp-content/uploads/2009/12/address.png" alt="address" width="804" height="467" /></p>
<p><strong>Date of sale and location of sale.</strong></p>
<p><strong><img class="aligncenter size-full wp-image-333" title="date_of_auction" src="http://www.acloudtree.com/wp-content/uploads/2009/12/date_of_auction.png" alt="date_of_auction" width="800" height="117" /></strong></p>
<p>Conclusion: This home is going to be auctioned on the first day of 2010. So I can&#8217;t see how it is possible that a sale will go through. For what its worth, this is what will most likely happen with this property.</p>
<ol>
<li>It will go up for auction</li>
<li>The bank will ask too much for it so it won&#8217;t sell</li>
<li>The bank will then place the home on the market for close to the original loan amount</li>
<li>The home will sit empty for the next several years, falling into disrepair</li>
</ol>
<p>At least that is what I have been seeing&#8230;</p>
<p>Anyway, I hope this will help you get started in making an educated buying decision. And something else that I always ask myself.</p>
<p><em>Who is making money off of me</em>?</p>
<p>In this case&#8230;</p>
<ul>
<li>Your Real Estate Agent</li>
<li>The Seller&#8217;s Real Estate Agent</li>
<li>The Seller</li>
<li>The Mortgage Broker</li>
<li>The Bank</li>
</ul>
<p>And I have found it very helpful not to trust the opinions of those who will make money off of me. Their motivations are different than mine. I guess what I am saying, is that ultimately you need to make a sound decision based on your <strong>own</strong> research, and not the sales techniques or encouragement of others. The list of professions above, and the people who work in them, have screwed a lot of people, in the past five years especially. So don&#8217;t get hosed.</p>
<p>If readers find this information helpful, let me know. I have other <em>food for thought </em>things to share concerning RE.</p>
<p>-later</p>
]]></content:encoded>
			<wfw:commentRss>http://www.acloudtree.com/how-to-research-real-estate-in-bend-oregon/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>(Nerd) How to: Create a DSL (damn small linux) bootable usb thumb drive using Ubuntu 9.10</title>
		<link>http://www.acloudtree.com/nerd-how-to-create-a-dsl-damn-small-linux-bootable-usb-thumb-drive-using-ubuntu-9-10/</link>
		<comments>http://www.acloudtree.com/nerd-how-to-create-a-dsl-damn-small-linux-bootable-usb-thumb-drive-using-ubuntu-9-10/#comments</comments>
		<pubDate>Mon, 14 Dec 2009 14:00:47 +0000</pubDate>
		<dc:creator>jared.folkins</dc:creator>
				<category><![CDATA[Damn Small Linux]]></category>
		<category><![CDATA[Howto]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[boot]]></category>
		<category><![CDATA[drive]]></category>
		<category><![CDATA[DSL]]></category>
		<category><![CDATA[how to]]></category>
		<category><![CDATA[install]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ubuntu 9.10]]></category>
		<category><![CDATA[usb]]></category>

		<guid isPermaLink="false">http://www.acloudtree.com/?p=221</guid>
		<description><![CDATA[You will need to download the latest .iso from the Damn Small Linux site.
Also, I am running ubuntu 9.10 as my host OS but you should be able to run any linux/unix operating system and the commands should work.
1) Plug in your usb device.
2) Next, open up the terminal application and enter the following command. [...]]]></description>
			<content:encoded><![CDATA[<p>You will need to download the latest .iso from the Damn Small Linux site.</p>
<p>Also, I am running ubuntu 9.10 as my host OS but you should be able to run any linux/unix operating system and the commands should work.</p>
<p>1) Plug in your usb device.</p>
<p>2) Next, open up the terminal application and enter the following command. By issuing sudo -i command, you are assuming the identity of root for the rest of the session.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #660033;">-i</span></pre></div></div>

<p>3) Run the fdisk -l command to look at the devices installed on your system.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">root<span style="color: #000000; font-weight: bold;">@</span>jetBook:~<span style="color: #666666; font-style: italic;"># fdisk -l</span></pre></div></div>

<p>4) My output is posted below.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">Disk <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>sda: <span style="color: #000000;">160.0</span> GB, <span style="color: #000000;">160041885696</span> bytes
<span style="color: #000000;">255</span> heads, <span style="color: #000000;">63</span> sectors<span style="color: #000000; font-weight: bold;">/</span>track, <span style="color: #000000;">19457</span> cylinders
Units = cylinders of <span style="color: #000000;">16065</span> <span style="color: #000000; font-weight: bold;">*</span> <span style="color: #000000;">512</span> = <span style="color: #000000;">8225280</span> bytes
Disk identifier: 0x355aa9d3
&nbsp;
   Device Boot      Start         End      Blocks   Id  System
<span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>sda1   <span style="color: #000000; font-weight: bold;">*</span>           <span style="color: #000000;">1</span>        <span style="color: #000000;">9407</span>    <span style="color: #000000;">75561696</span>    <span style="color: #000000;">7</span>  HPFS<span style="color: #000000; font-weight: bold;">/</span>NTFS
<span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>sda2            <span style="color: #000000;">9408</span>       <span style="color: #000000;">18813</span>    <span style="color: #000000;">75553695</span>    <span style="color: #000000;">5</span>  Extended
<span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>sda3           <span style="color: #000000;">18814</span>       <span style="color: #000000;">19451</span>     <span style="color: #000000;">5124735</span>   1c  Hidden W95 FAT32 <span style="color: #7a0874; font-weight: bold;">&#40;</span>LBA<span style="color: #7a0874; font-weight: bold;">&#41;</span>
<span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>sda4           <span style="color: #000000;">19452</span>       <span style="color: #000000;">19457</span>       <span style="color: #000000;">48195</span>   ef  EFI <span style="color: #7a0874; font-weight: bold;">&#40;</span>FAT-<span style="color: #000000;">12</span><span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">16</span><span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">32</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>
<span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>sda5            <span style="color: #000000;">9408</span>       <span style="color: #000000;">18039</span>    <span style="color: #000000;">69336508</span>+  <span style="color: #000000;">83</span>  Linux
<span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>sda6           <span style="color: #000000;">18040</span>       <span style="color: #000000;">18813</span>     <span style="color: #000000;">6217123</span>+  <span style="color: #000000;">82</span>  Linux swap <span style="color: #000000; font-weight: bold;">/</span> Solaris
&nbsp;
Disk <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>sdb: <span style="color: #000000;">4047</span> MB, <span style="color: #000000;">4047502848</span> bytes
<span style="color: #000000;">4</span> heads, <span style="color: #000000;">32</span> sectors<span style="color: #000000; font-weight: bold;">/</span>track, <span style="color: #000000;">61759</span> cylinders
Units = cylinders of <span style="color: #000000;">128</span> <span style="color: #000000; font-weight: bold;">*</span> <span style="color: #000000;">512</span> = <span style="color: #000000;">65536</span> bytes
Disk identifier: 0x00000000
&nbsp;
   Device Boot      Start         End      Blocks   Id  System
<span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>sdb1   <span style="color: #000000; font-weight: bold;">*</span>           <span style="color: #000000;">1</span>       <span style="color: #000000;">61759</span>     <span style="color: #000000;">3952560</span>    b  W95 FAT32</pre></div></div>

<p>First you will notice my internal hard drive and the several partitions that are written on it.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">Disk <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>sda: <span style="color: #000000;">160.0</span> GB, <span style="color: #000000;">160041885696</span> bytes
<span style="color: #000000;">255</span> heads, <span style="color: #000000;">63</span> sectors<span style="color: #000000; font-weight: bold;">/</span>track, <span style="color: #000000;">19457</span> cylinders
Units = cylinders of <span style="color: #000000;">16065</span> <span style="color: #000000; font-weight: bold;">*</span> <span style="color: #000000;">512</span> = <span style="color: #000000;">8225280</span> bytes
Disk identifier: 0x355aa9d3
&nbsp;
   Device Boot      Start         End      Blocks   Id  System
<span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>sda1   <span style="color: #000000; font-weight: bold;">*</span>           <span style="color: #000000;">1</span>        <span style="color: #000000;">9407</span>    <span style="color: #000000;">75561696</span>    <span style="color: #000000;">7</span>  HPFS<span style="color: #000000; font-weight: bold;">/</span>NTFS
<span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>sda2            <span style="color: #000000;">9408</span>       <span style="color: #000000;">18813</span>    <span style="color: #000000;">75553695</span>    <span style="color: #000000;">5</span>  Extended
<span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>sda3           <span style="color: #000000;">18814</span>       <span style="color: #000000;">19451</span>     <span style="color: #000000;">5124735</span>   1c  Hidden W95 FAT32 <span style="color: #7a0874; font-weight: bold;">&#40;</span>LBA<span style="color: #7a0874; font-weight: bold;">&#41;</span>
<span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>sda4           <span style="color: #000000;">19452</span>       <span style="color: #000000;">19457</span>       <span style="color: #000000;">48195</span>   ef  EFI <span style="color: #7a0874; font-weight: bold;">&#40;</span>FAT-<span style="color: #000000;">12</span><span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">16</span><span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">32</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>
<span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>sda5            <span style="color: #000000;">9408</span>       <span style="color: #000000;">18039</span>    <span style="color: #000000;">69336508</span>+  <span style="color: #000000;">83</span>  Linux
<span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>sda6           <span style="color: #000000;">18040</span>       <span style="color: #000000;">18813</span>     <span style="color: #000000;">6217123</span>+  <span style="color: #000000;">82</span>  Linux swap <span style="color: #000000; font-weight: bold;">/</span> Solaris</pre></div></div>

<p>5) We are primarily concerned about the following segment.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">Disk <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>sdb: <span style="color: #000000;">4047</span> MB, <span style="color: #000000;">4047502848</span> bytes
<span style="color: #000000;">4</span> heads, <span style="color: #000000;">32</span> sectors<span style="color: #000000; font-weight: bold;">/</span>track, <span style="color: #000000;">61759</span> cylinders
Units = cylinders of <span style="color: #000000;">128</span> <span style="color: #000000; font-weight: bold;">*</span> <span style="color: #000000;">512</span> = <span style="color: #000000;">65536</span> bytes
Disk identifier: 0x00000000
&nbsp;
   Device Boot      Start         End      Blocks   Id  System
<span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>sdb1   <span style="color: #000000; font-weight: bold;">*</span>           <span style="color: #000000;">1</span>       <span style="color: #000000;">61759</span>     <span style="color: #000000;">3952560</span>    b  W95 FAT32</pre></div></div>

<p>6) Since I only have two drives installed on my system (Internal HD, and USB thumb drive) we can logically deduce that /dev/sdb is the thumb drive, and for several reasons. The primary one being that I am using a 4GB drive, and the output next to /dev/sdb shows the total amount of memory.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">Disk <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>sdb: <span style="color: #000000;">4047</span> MB</pre></div></div>

<p>7) Unmount the /dev/sdb1 partition</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">root<span style="color: #000000; font-weight: bold;">@</span>jetBook:~<span style="color: #666666; font-style: italic;"># umount /dev/sdb1</span></pre></div></div>

<p>8 ) Run the following command</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">root<span style="color: #000000; font-weight: bold;">@</span>jetBook:~<span style="color: #666666; font-style: italic;"># fdisk /dev/sdb</span></pre></div></div>

<p>Which will produce this prompt.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">Command <span style="color: #7a0874; font-weight: bold;">&#40;</span>m <span style="color: #000000; font-weight: bold;">for</span> <span style="color: #7a0874; font-weight: bold;">help</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>:</pre></div></div>

<p>9) Delete any existing partitions.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">Command <span style="color: #7a0874; font-weight: bold;">&#40;</span>m <span style="color: #000000; font-weight: bold;">for</span> <span style="color: #7a0874; font-weight: bold;">help</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>: d
Selected partition <span style="color: #000000;">1</span></pre></div></div>

<p>9a) Please note, you may get a prompt asking you for a number selection (1-4). You will need to keep going through this step in order to delete ALL of the existing partitions on the usb device. Example below assumes there are two partitions on the usb device.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">Command <span style="color: #7a0874; font-weight: bold;">&#40;</span>m <span style="color: #000000; font-weight: bold;">for</span> <span style="color: #7a0874; font-weight: bold;">help</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>: d
Partition number <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000;">1</span>-<span style="color: #000000;">4</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>: <span style="color: #000000;">1</span>
&nbsp;
Command <span style="color: #7a0874; font-weight: bold;">&#40;</span>m <span style="color: #000000; font-weight: bold;">for</span> <span style="color: #7a0874; font-weight: bold;">help</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>: d
Selected partition <span style="color: #000000;">2</span></pre></div></div>

<p>10) Once the partition(s) are deleted, create a new one. Type the letter &#8216;n&#8217; and press return. &#8216;n&#8217; is for &#8220;New&#8221; partition.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">Command <span style="color: #7a0874; font-weight: bold;">&#40;</span>m <span style="color: #000000; font-weight: bold;">for</span> <span style="color: #7a0874; font-weight: bold;">help</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>: n</pre></div></div>

<p>***) Enter the letter &#8216;p&#8217; for primary and press return.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">Command action
   e   extended
   p   primary partition <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000;">1</span>-<span style="color: #000000;">4</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>
p</pre></div></div>

<p>11) Select number &#8216;1&#8242;  for the partition number definition.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">Partition number <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000;">1</span>-<span style="color: #000000;">4</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>: <span style="color: #000000;">1</span></pre></div></div>

<p>12) Enter &#8216;1&#8242; to designate the first cylinder.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">First cylinder <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000;">1</span>-<span style="color: #000000;">61759</span>, default <span style="color: #000000;">1</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>: <span style="color: #000000;">1</span></pre></div></div>

<p>13) Enter the large default number so that we can use the entire disk. In my case, the ending cylinder number is 61759.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">Last cylinder, +cylinders or +<span style="color: #c20cb9; font-weight: bold;">size</span><span style="color: #7a0874; font-weight: bold;">&#123;</span>K,M,G<span style="color: #7a0874; font-weight: bold;">&#125;</span> <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000;">1</span>-<span style="color: #000000;">61759</span>, default <span style="color: #000000;">61759</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>: <span style="color: #000000;">61759</span></pre></div></div>

<p>14) Make the drive bootable</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">Command <span style="color: #7a0874; font-weight: bold;">&#40;</span>m <span style="color: #000000; font-weight: bold;">for</span> <span style="color: #7a0874; font-weight: bold;">help</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>: a
Partition number <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000;">1</span>-<span style="color: #000000;">4</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>: <span style="color: #000000;">1</span></pre></div></div>

<p>15) Show the definition table by entering the letter &#8216;p&#8217; from the prompt. This is to make sure there is an asterisk under the &#8216;boot&#8217; column.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">Command <span style="color: #7a0874; font-weight: bold;">&#40;</span>m <span style="color: #000000; font-weight: bold;">for</span> <span style="color: #7a0874; font-weight: bold;">help</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>: p
&nbsp;
Disk <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>sdb: <span style="color: #000000;">4047</span> MB, <span style="color: #000000;">4047502848</span> bytes
<span style="color: #000000;">4</span> heads, <span style="color: #000000;">32</span> sectors<span style="color: #000000; font-weight: bold;">/</span>track, <span style="color: #000000;">61759</span> cylinders
Units = cylinders of <span style="color: #000000;">128</span> <span style="color: #000000; font-weight: bold;">*</span> <span style="color: #000000;">512</span> = <span style="color: #000000;">65536</span> bytes
Disk identifier: 0x00000000
&nbsp;
   Device Boot      Start         End      Blocks   Id  System
<span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>sdb1   <span style="color: #000000; font-weight: bold;">*</span>           <span style="color: #000000;">1</span>       <span style="color: #000000;">61759</span>     <span style="color: #000000;">3952560</span>   <span style="color: #000000;">83</span>  Linux</pre></div></div>

<p>16) Write the changes to the disk by entering the letter &#8216;w&#8217;</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">Command <span style="color: #7a0874; font-weight: bold;">&#40;</span>m <span style="color: #000000; font-weight: bold;">for</span> <span style="color: #7a0874; font-weight: bold;">help</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>: <span style="color: #c20cb9; font-weight: bold;">w</span>
The partition table has been altered<span style="color: #000000; font-weight: bold;">!</span></pre></div></div>

<p>16a) Note: you may get the following error. Don&#8217;t worry, it is not a big deal but it does mean you probably didn&#8217;t correctly unmount the device in step (STEP #7).</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">Calling ioctl<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> to re-read partition table.
&nbsp;
WARNING: Re-reading the partition table failed with error <span style="color: #000000;">16</span>: Device or resource busy.
The kernel still uses the old table. The new table will be used at
the next reboot or after you run partprobe<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000;">8</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> or kpartx<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000;">8</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>
Syncing disks.</pre></div></div>

<p>If this happens, it is now like a choose your own adventure book. You can&#8230;</p>
<ul>
<li>Start over</li>
<li>Go back to step #7</li>
<li>Or remember that things may be screwed up, and proceed just to see if you can</li>
</ul>
<p>Choose wisely&#8230;</p>
<p>17) Format the disk using ext2. !!!WARNING!!! if you mess this up, you can easily format the root partition of YOUR internal hard drive.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">root<span style="color: #000000; font-weight: bold;">@</span>jetBook:~<span style="color: #666666; font-style: italic;"># mke2fs /dev/sdb1</span></pre></div></div>

<p>Which will produce the following output.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">mke2fs 1.41.9 <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000;">22</span>-Aug-<span style="color: #000000;">2009</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>
Filesystem <span style="color: #007800;">label</span>=
OS <span style="color: #7a0874; font-weight: bold;">type</span>: Linux
Block <span style="color: #007800;"><span style="color: #c20cb9; font-weight: bold;">size</span></span>=<span style="color: #000000;">4096</span> <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #007800;">log</span>=<span style="color: #000000;">2</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>
Fragment <span style="color: #007800;"><span style="color: #c20cb9; font-weight: bold;">size</span></span>=<span style="color: #000000;">4096</span> <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #007800;">log</span>=<span style="color: #000000;">2</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>
<span style="color: #000000;">247008</span> inodes, <span style="color: #000000;">987989</span> blocks
<span style="color: #000000;">49399</span> blocks <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000;">5.00</span><span style="color: #000000; font-weight: bold;">%</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> reserved <span style="color: #000000; font-weight: bold;">for</span> the super user
First data <span style="color: #007800;">block</span>=<span style="color: #000000;">0</span>
Maximum filesystem <span style="color: #007800;">blocks</span>=<span style="color: #000000;">1015021568</span>
<span style="color: #000000;">31</span> block <span style="color: #c20cb9; font-weight: bold;">groups</span>
<span style="color: #000000;">32768</span> blocks per group, <span style="color: #000000;">32768</span> fragments per group
<span style="color: #000000;">7968</span> inodes per group
Superblock backups stored on blocks:
	<span style="color: #000000;">32768</span>, <span style="color: #000000;">98304</span>, <span style="color: #000000;">163840</span>, <span style="color: #000000;">229376</span>, <span style="color: #000000;">294912</span>, <span style="color: #000000;">819200</span>, <span style="color: #000000;">884736</span>
&nbsp;
Writing inode tables: <span style="color: #000000; font-weight: bold;">done</span>
Writing superblocks and filesystem accounting information: <span style="color: #000000; font-weight: bold;">done</span>
&nbsp;
This filesystem will be automatically checked every <span style="color: #000000;">28</span> mounts or
<span style="color: #000000;">180</span> days, whichever comes first.  Use tune2fs <span style="color: #660033;">-c</span> or <span style="color: #660033;">-i</span> to override.</pre></div></div>

<p>18) Make a usb directory inside /mnt</p>
<p>NOTE: if you are using a different flavor of linux/unix you will have to adjust the tutorial accordingly.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">root<span style="color: #000000; font-weight: bold;">@</span>jetBook:~<span style="color: #666666; font-style: italic;"># mkdir /mnt/usb</span></pre></div></div>

<p>19) mount the usb thumb drive partition to the newly created directory. In my case it is the 1st partition, sdb1.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">root<span style="color: #000000; font-weight: bold;">@</span>jetBook:~<span style="color: #666666; font-style: italic;"># mount /dev/sdb1 /mnt/usb</span></pre></div></div>

<p>20) Create an iso directory to eventually mount the dsl-4.4.10.iso</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">root<span style="color: #000000; font-weight: bold;">@</span>jetBook:<span style="color: #000000; font-weight: bold;">/</span><span style="color: #666666; font-style: italic;"># mkdir /mnt/iso</span></pre></div></div>

<p>21) Find the directory where your damn small linux .iso file exists. Since I used firefox3.5 to download the .iso, my file is in the &#8216;Downloads&#8217; directory.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">/</span>home<span style="color: #000000; font-weight: bold;">/</span>YOUR_USERNAME<span style="color: #000000; font-weight: bold;">/</span>Downloads</pre></div></div>

<p>22) Mount the .iso to the directory. Conceptually, this allows you access to the files stored in the .iso as if it were a common directory on your file system.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">root<span style="color: #000000; font-weight: bold;">@</span>jetBook:<span style="color: #666666; font-style: italic;"># mount -o loop /home/YOUR_USERNAME/Downloads/dsl-4.4.10.iso /mnt/iso</span></pre></div></div>

<p>23) Copy all the files from /mnt/iso into /mnt/usb. We issue the &#8216;-p&#8217; flag so that we keep the existing permissions. We issue the &#8216;-R&#8217; flag so the the copy is recursive.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">root<span style="color: #000000; font-weight: bold;">@</span>jetBook:<span style="color: #666666; font-style: italic;"># cp -pR /mnt/iso/* /mnt/usb</span></pre></div></div>

<p>24) Install grub into the boot block of /dev/sdb.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">root<span style="color: #000000; font-weight: bold;">@</span>jetBook:<span style="color: #666666; font-style: italic;"># grub-install --no-floppy --root-directory=/mnt/usb /dev/sdb</span></pre></div></div>

<p>25) You should get the following output.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">Probing devices to guess BIOS drives. This may take a long time.
Installing GRUB to <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>sdb <span style="color: #c20cb9; font-weight: bold;">as</span> <span style="color: #7a0874; font-weight: bold;">&#40;</span>hd1<span style="color: #7a0874; font-weight: bold;">&#41;</span>...
Installation finished. No error reported.
This is the contents of the device map <span style="color: #000000; font-weight: bold;">/</span>mnt<span style="color: #000000; font-weight: bold;">/</span>usb<span style="color: #000000; font-weight: bold;">/</span>boot<span style="color: #000000; font-weight: bold;">/</span>grub<span style="color: #000000; font-weight: bold;">/</span>device.map.
Check <span style="color: #000000; font-weight: bold;">if</span> this is correct or not. If any of the lines is incorrect,
fix it and re-run the script <span style="color: #000000; font-weight: bold;">`</span>grub-install<span style="color: #ff0000;">'.
&nbsp;
(hd0)	/dev/sda
(hd1)	/dev/sdb</span></pre></div></div>

<p>26)  Create the file menu.lst in the /mtn/usb/boot/grub/ folder.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">root<span style="color: #000000; font-weight: bold;">@</span>jetBook:<span style="color: #000000; font-weight: bold;">/</span><span style="color: #666666; font-style: italic;"># vi /mnt/usb/boot/grub/menu.lst</span></pre></div></div>

<p>28) Here is the contents of my menu.lst file and you are more than welcome to copy/paste the contents. There is one issue though, your hardware may not lay itself out like mine, so some further troubleshooting may be involved.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">title Damn Small Linux
root <span style="color: #7a0874; font-weight: bold;">&#40;</span>hd0,<span style="color: #000000;">0</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>
kernel <span style="color: #000000; font-weight: bold;">/</span>boot<span style="color: #000000; font-weight: bold;">/</span>isolinux<span style="color: #000000; font-weight: bold;">/</span>linux24 <span style="color: #007800;">root</span>=<span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>sda1 ro <span style="color: #007800;">lang</span>=us toram noeject frugal
initrd <span style="color: #000000; font-weight: bold;">/</span>boot<span style="color: #000000; font-weight: bold;">/</span>isolinux<span style="color: #000000; font-weight: bold;">/</span>minirt24.gz
boot
EOF</pre></div></div>

<p>29) At this point, you should be able to issue the following four commands in order to cleanup your file system</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">root<span style="color: #000000; font-weight: bold;">@</span>jetBook:<span style="color: #666666; font-style: italic;"># umount /mnt/iso</span>
root<span style="color: #000000; font-weight: bold;">@</span>jetBook:<span style="color: #666666; font-style: italic;"># umount /mnt/usb</span>
root<span style="color: #000000; font-weight: bold;">@</span>jetBook:<span style="color: #666666; font-style: italic;"># rm -R /mnt/usb</span>
root<span style="color: #000000; font-weight: bold;">@</span>jetBook:<span style="color: #666666; font-style: italic;"># rm -R /mnt/iso</span></pre></div></div>

<p>And from here on, it is all you. Just reboot your machine, and go into your BIOS in order to make sure you are booting from the usb device.</p>
<p>Please understand, in step #28 where you potentially copy/paste my &#8216;menu.lst&#8217; settings, it is an area where you could run into problems. I will try and cover some information on the GRUB boot loader eventually. Because GRUB seems to mistify so many people, yet it is incredibly powerful.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.acloudtree.com/nerd-how-to-create-a-dsl-damn-small-linux-bootable-usb-thumb-drive-using-ubuntu-9-10/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
