<?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>Tequila Fish &#187; Ubuntu</title>
	<atom:link href="http://www.tequilafish.com/category/tech/linux/ubuntu/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.tequilafish.com</link>
	<description>Ran-dumb ramblings of me...</description>
	<lastBuildDate>Thu, 26 Jan 2012 23:30:47 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Installing Bundler for Ruby in Ubuntu 10.04</title>
		<link>http://www.tequilafish.com/2012/01/26/installing_ruby_bundler_ubuntu_10-04/</link>
		<comments>http://www.tequilafish.com/2012/01/26/installing_ruby_bundler_ubuntu_10-04/#comments</comments>
		<pubDate>Thu, 26 Jan 2012 23:20:34 +0000</pubDate>
		<dc:creator>Administrator</dc:creator>
				<category><![CDATA[Ruby]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[10.04]]></category>
		<category><![CDATA[bundler]]></category>
		<category><![CDATA[ruby]]></category>

		<guid isPermaLink="false">http://www.tequilafish.com/?p=573</guid>
		<description><![CDATA[When attempting to install Bundler for Ruby on Ubuntu 10.04, I got the following error: shell&#62; sudo gem install bundler ERROR: Error installing bundler: bundler requires RubyGems version >= 1.3.6 Running sudo gem -v I saw that I had 1.3.5. To get around this, simply install the available updater gem, then run it: shell&#62; sudo [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.tequilafish.com%2F2012%2F01%2F26%2Finstalling_ruby_bundler_ubuntu_10-04%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.tequilafish.com%2F2012%2F01%2F26%2Finstalling_ruby_bundler_ubuntu_10-04%2F&amp;style=normal&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>When attempting to install <a href="http://gembundler.com/" title="Bundler" target="_blank">Bundler</a> for Ruby on Ubuntu 10.04, I got the following error:</p>
<p><code>shell&gt; sudo gem install bundler<br />
ERROR:  Error installing bundler:<br />
	bundler requires RubyGems version >= 1.3.6<br />
</code></p>
<p>Running <code>sudo gem -v</code> I saw that I had 1.3.5.  To get around this, simply install the available updater gem, then run it:</p>
<p><code>shell&gt; sudo gem install rubygems-update<br />
shell&gt; sudo /var/lib/gems/1.8/bin/update_rubygems<br />
</code></p>
<p>Now running <code>gem -v</code> I see that I have 1.8.15 and I am able to install bundler:</p>
<p><code>shell&gt; gem install bundler<br />
Fetching: bundler-1.0.21.gem (100%)<br />
Successfully installed bundler-1.0.21<br />
1 gem installed<br />
Installing ri documentation for bundler-1.0.21...<br />
Installing RDoc documentation for bundler-1.0.21...<br />
</code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.tequilafish.com/2012/01/26/installing_ruby_bundler_ubuntu_10-04/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Apache VirtualHost on Ubuntu</title>
		<link>http://www.tequilafish.com/2007/08/02/apache-virtualhost-on-ubuntu/</link>
		<comments>http://www.tequilafish.com/2007/08/02/apache-virtualhost-on-ubuntu/#comments</comments>
		<pubDate>Fri, 03 Aug 2007 01:24:20 +0000</pubDate>
		<dc:creator>Administrator</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[Tech]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[virtualhost]]></category>

		<guid isPermaLink="false">http://www.tequilafish.com/2007/08/02/apache-virtualhost-on-ubuntu/</guid>
		<description><![CDATA[Here's a quickie tutorial on how to add Virtual Hosts to Apache on Ubuntu. This tutorial assumes that you have a basic understanding of Apache configuration and that your Apache is installed and able to serve websites. cd /etc/apache2/sites-available sudo vim yourdomain.com.conf and enter your VirtualHost directive. Below I've put the most basic example, see [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.tequilafish.com%2F2007%2F08%2F02%2Fapache-virtualhost-on-ubuntu%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.tequilafish.com%2F2007%2F08%2F02%2Fapache-virtualhost-on-ubuntu%2F&amp;style=normal&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>Here's a quickie tutorial on how to add Virtual Hosts to Apache on Ubuntu.  This tutorial assumes that you have a basic understanding of Apache configuration and that your Apache is installed and able to serve websites.</p>
<ol>
<li><strong><tt>cd /etc/apache2/sites-available</tt></strong></li>
<li><strong><tt>sudo vim yourdomain.com.conf</tt></strong> and enter your VirtualHost directive.  Below I've put the most basic example, see <a href="http://httpd.apache.org/docs/2.0/mod/core.html#virtualhost">Apache docs</a> for details and additional features:<br />
<code>&lt;VirtualHost *&gt;<br />
&nbsp;&nbsp;ServerName yourdomain.com<br />
&nbsp;&nbsp;DocumentRoot /home/youruser/public_html<br />
&lt;/VirtualHost&gt;</code><br />
Save &#038; exit.
</li>
<li><strong><tt>sudo vim /etc/hosts</tt></strong> and add your new domain to the <tt>127.0.0.1 localhost</tt> line so it looks like this:<br />
<code>127.0.0.1       localhost yourdomain.com</code><br />
Save &#038; exit.</li>
<li>Enable your new virtualhost:<br />
<code>sudo a2ensite yourdomain.com.conf</code>
</li>
<li>Reload the Apache configuration:<br />
<code>sudo /etc/init.d/apache2 reload</code>
</li>
</ol>
<p>That's it!  Repeat for each of your VirtualHosts.</p>
<p>----------------<br />
Now playing: <a href="http://www.foxytunes.com/artist/al%c3%a8may%c3%a8hu+esh%c3%a8t%c3%a9/track/tchero+adari+n%c3%a8gn">AlÃ¨mayÃ¨hu EshÃ¨tÃ© - Tchero Adari NÃ¨gn</a><br />
via <a href="http://www.foxytunes.com/signatunes/">FoxyTunes</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.tequilafish.com/2007/08/02/apache-virtualhost-on-ubuntu/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Installing Ubuntu Server on a Dell Inspiron 530</title>
		<link>http://www.tequilafish.com/2007/08/02/installing-ubuntu-server-on-a-dell-inspiron-530/</link>
		<comments>http://www.tequilafish.com/2007/08/02/installing-ubuntu-server-on-a-dell-inspiron-530/#comments</comments>
		<pubDate>Thu, 02 Aug 2007 21:53:03 +0000</pubDate>
		<dc:creator>Administrator</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Tech]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[530]]></category>
		<category><![CDATA[dell]]></category>
		<category><![CDATA[inspiron]]></category>

		<guid isPermaLink="false">http://www.tequilafish.com/2007/08/02/installing-ubuntu-server-on-a-dell-inspiron-530/</guid>
		<description><![CDATA[I recently purchased a cheapie Dell Inspiron 530 to use as a new local devbox with the intent of installing Fedora 7 on it (the machine came with Ubuntu Desktop pre-installed). Foolish me, I just assumed that if Ubuntu was compatible with the hardware, then Fedora surely would be as well. WRONG. Fedora was unable [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.tequilafish.com%2F2007%2F08%2F02%2Finstalling-ubuntu-server-on-a-dell-inspiron-530%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.tequilafish.com%2F2007%2F08%2F02%2Finstalling-ubuntu-server-on-a-dell-inspiron-530%2F&amp;style=normal&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>I recently purchased a cheapie Dell Inspiron 530 to use as a new local devbox with the intent of installing Fedora 7 on it (the machine came with Ubuntu Desktop pre-installed).  Foolish me, I just assumed that if Ubuntu was compatible with the hardware, then Fedora surely would be as well.  WRONG.  Fedora was unable to detect/install both the SATA controller and the integrated ethernet port.  After a few hours trying to get Fedora to install, I decided to give up and give <a href="http://www.ubuntu.com/products/WhatIsUbuntu/serveredition">Ubuntu Server</a> a try.  Of course it wasn't easy, so here are some of my notes in getting Ubuntu Server installed onto the Dell Inspiron 530.</p>
<p>I wanted to keep it simple so I just installed all of the defaults presented by the installer, including the LAMP package.  Everything installed fine, however, the Integrated Network card was not detected/installed, so here's how to get it up and running by compiling and installing the driver.</p>
<ol>
<li>First we need to install some prerequisites that are required in order to compile the driver.  Make sure your Ubuntu Server CD is in the CD drive and run the following:<br />
<code>sudo apt-get install linux-headers-2.6.20-15-server<br />
sudo apt-get install gcc</code>
        </li>
<li>Download the ethernet driver from <a href="http://downloadcenter.intel.com/File_Filter.aspx?FileName=e1000-">Intel</a>.  The one I used is <strong><tt>e1000-7.6.5.tar.gz</tt></strong>.  If you can't find it at Intel, just Google the filename and I'm sure you'll be able to find it somewhere.</li>
<li>Burn the driver to a CD, mount it on your Ubuntu machine, and copy it to a local dir:<br />
<code>sudo mkdir /mnt/cdrom<br />
sudo mount /dev/cdrom /mnt/cdrom<br />
sudo cp /mnt/cdrom/e1000-7.6.5.tar.gz /usr/src</code></li>
<li>Compile and install the driver:<br />
<code>cd /usr/src<br />
tar xfvz e1000-7.6.5.tar.gz<br />
cd e1000-7.6.5/src<br />
sudo make install<br />
sudo modprobe e1000</code></li>
<li>Now configure your network card:<br />
<strong><tt>sudo vim /etc/network/interfaces</tt></strong> and your file should look like this (substitute your IP of choice):<br />
<code># This file describes the network interfaces available on your system<br />
# and how to activate them. For more information, see interfaces(5).<br />
&nbsp;<br />
# The loopback network interface<br />
auto lo<br />
iface lo inet loopback<br />
&nbsp;<br />
# This is a list of hotpluggable network interfaces.<br />
# They will be activated automatically by the hotplug subsystem.<br />
mapping hotplug<br />
        script grep<br />
        map eth0<br />
&nbsp;<br />
# The primary network interface<br />
auto eth0<br />
iface eth0 inet static<br />
        address 192.168.1.66<br />
        netmask 255.255.255.0<br />
        network 192.168.1.0<br />
        broadcast 192.168.1.255<br />
        gateway 192.168.1.1</code></li>
<li>Setup your DNS servers:<br />
<strong><tt>sudo vim /etc/resolv.conf</tt></strong> and it should look like this (I am using <a href="http://www.opendns.org/">OpenDNS</a> here but you can substitute your own):<br />
<code>nameserver 208.67.222.222<br />
nameserver 208.67.220.220</code></li>
<li>Restart the network:<br />
<code>sudo /etc/init.d/networking restart</code></li>
<li>Upgrade your system for good measure:<br />
<code>sudo apt-get upgrade</code></li>
</ol>
<p>That should be enough to get your Ubuntu Server up and running on the Dell Inspiron 530 with full network connectivity.  Once you're up and running, here are some other tweaks I did, although some of these may be personal preference.</p>
<ol>
<li>I don't like Ubuntu's sudo setup (I prefer log in in as root when needed).  Out of the box the root account is disabled and your default account is given admin rights to run commands via sudo.  To get around this, simply reset root's password:<br />
<code>sudo passwd root</code><br />
Now you will be able to <strong><tt>su -</tt></strong> and log in as root directly.
</li>
<li>Install SSH<br />
<code>sudo apt-get install ssh</code></li>
<li>Disable root login to SSH:<br />
<strong><tt>sudo vim /etc/ssh/sshd_config</tt></strong> and set the following:<br />
<code>PermitRootLogin no</code></li>
<li>Change the MySQL root password:<br />
<code>mysqladmin -u root password "newpassword"</code></li>
<li>Enable Apache's mod_rewrite:<br />
<code>sudo a2enmod rewrite<br />
sudo /etc/init.d/apache2 force-reload</code></li>
<li>Install some other useful goodies:<br />
<code>sudo apt-get install vim<br />
sudo apt-get install php5-mcrypt<br />
sudo apt-get install php5-curl<br />
sudo apt-get install php5-gd<br />
sudo apt-get install php-pear<br />
sudo pear upgrade-all<br />
sudo pear install mdb2<br />
sudo pear install pear/MDB2#mysqli</code>
</li>
</ol>
<p>----------------<br />
Now playing: <a href="http://www.foxytunes.com/artist/apparat/track/steinholz+(monolake+remix)">Apparat - Steinholz (Monolake Remix)</a><br />
via <a href="http://www.foxytunes.com/signatunes/">FoxyTunes</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.tequilafish.com/2007/08/02/installing-ubuntu-server-on-a-dell-inspiron-530/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>vi: Get rid of Windows formatted linebreaks (^M)</title>
		<link>http://www.tequilafish.com/2007/07/03/vi-get-rid-of-windows-formatted-linebreaks-m/</link>
		<comments>http://www.tequilafish.com/2007/07/03/vi-get-rid-of-windows-formatted-linebreaks-m/#comments</comments>
		<pubDate>Tue, 03 Jul 2007 19:10:54 +0000</pubDate>
		<dc:creator>Administrator</dc:creator>
				<category><![CDATA[Fedora]]></category>
		<category><![CDATA[FreeBSD]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[linebreak]]></category>
		<category><![CDATA[vi]]></category>
		<category><![CDATA[vim]]></category>

		<guid isPermaLink="false">http://www.tequilafish.com/2007/07/03/vi-get-rid-of-windows-formatted-linebreaks-m/</guid>
		<description><![CDATA[If you've ever tried to edit a Windows-created file in Unix or OSX, you've probably encountered a messy translation in line breaks: A file full of "^M" characters. There is an easy search/replace you can use in vi/vim to format the file Unix-style: :%s/\r/\r/g]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.tequilafish.com%2F2007%2F07%2F03%2Fvi-get-rid-of-windows-formatted-linebreaks-m%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.tequilafish.com%2F2007%2F07%2F03%2Fvi-get-rid-of-windows-formatted-linebreaks-m%2F&amp;style=normal&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>If you've ever tried to edit a Windows-created file in Unix or OSX, you've probably encountered a messy translation in line breaks: A file full of "<tt>^M</tt>" characters.  There is an easy search/replace you can use in vi/vim to format the file Unix-style:</p>
<p><code>:%s/\r/\r/g</code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.tequilafish.com/2007/07/03/vi-get-rid-of-windows-formatted-linebreaks-m/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

