<?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>Avinesh's Blog &#187; upgrade</title>
	<atom:link href="http://www.avinesh.com/blog/index.php/tag/upgrade/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.avinesh.com/blog</link>
	<description>Life. Technology. Cars.</description>
	<lastBuildDate>Thu, 01 Oct 2009 20:08:52 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Upgrading Red Hat 9 to CentOS 4.5</title>
		<link>http://www.avinesh.com/blog/index.php/2008/04/14/upgrading-red-hat-9-to-centos-45/</link>
		<comments>http://www.avinesh.com/blog/index.php/2008/04/14/upgrading-red-hat-9-to-centos-45/#comments</comments>
		<pubDate>Tue, 15 Apr 2008 02:52:23 +0000</pubDate>
		<dc:creator>Avinesh</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[install]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[redhat]]></category>
		<category><![CDATA[upgrade]]></category>

		<guid isPermaLink="false">http://www.avinesh.com/blog/?p=79</guid>
		<description><![CDATA[It&#8217;s been a few months since I last posted an entry to my blog. Life has been busy. This blog has been busy, in terms of web traffic to my Anonymous Letters and Starbucks posts below. Time for a tech post. I had the privilege of upgrading an ancient Red Hat 9 Linux box to [...]]]></description>
			<content:encoded><![CDATA[<p>It&#8217;s been a few months since I last posted an entry to my blog.  Life has been busy.  This blog has been busy, in terms of web traffic to my Anonymous Letters and Starbucks posts below.</p>
<p>Time for a tech post.  I had the privilege of upgrading an ancient Red Hat 9 Linux box to CentOS 4.5.  Red Hat Linux has been EOL for a very long time, and was superceded by Fedora, which has had seven major releases.  That&#8217;s the equivalent of running Windows 3.1 <img src='http://www.avinesh.com/blog/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />  Well, not quite <img src='http://www.avinesh.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  Anyhow, the box at hand appeared to be a custom web server.  I will outline the steps I used to successfully upgrade it to CentOS 4.5.</p>
<p>1. Download the CentOS 4.5 CD set or DVD image from www.centos.org.<br />
2. Put in CD 1 or the DVD image.<br />
3. Reboot the old Red Hat 9 box and ensure that the BIOS allows booting from the CD/DVD drive.<br />
4. Enter the following at the linux boot prompt and press Enter: <em>linux upgradeany</em><br />
5. The system will happily hum along while Red Hat 9 is upgraded to CentOS 4.5.<br />
6. If &#8216;yum&#8217; wasn&#8217;t installed, you will need to install it:<br />
<em>rpm -ivh http://centos.arcticnetwork.ca/4.5/os/i386/CentOS/RPMS/python-elementtree-1.2.6-5.el4.centos.i386.rpm<br />
rpm -ivh http://centos.arcticnetwork.ca/4.5/os/i386/CentOS/RPMS/sqlite-3.3.6-2.i386.rpm<br />
rpm -ivh http://centos.arcticnetwork.ca/4.5/os/i386/CentOS/RPMS/python-sqlite-1.1.7-1.2.1.i386.rpm<br />
rpm -ivh http://centos.arcticnetwork.ca/4.5/os/i386/CentOS/RPMS/python-urlgrabber-2.9.8-2.noarch.rpm<br />
rpm -ivh http://centos.arcticnetwork.ca/4.5/os/i386/CentOS/RPMS/yum-2.4.3-3.el4.centos.noarch.rpm</em><br />
7. Now, run the following command and press Enter: <em>yum update</em><br />
8. Allow yum to run and update the required packages.  Reboot if yum downloads and installs a new kernel.<br />
9. Since the box in question had a custom Apache and PHP configuration, I reinstalled them manually:<br />
<em>yum install httpd<br />
yum install php<br />
yum install mysql<br />
yum install mysql-server<br />
yum install php-mysql</em><br />
10. I had to update the MySQL configuration to point to the correct socket:<br />
Update my.cnf:<br />
<em>socket=/var/lib/mysql/mysql.sock</em><br />
instead of<br />
socket=/tmp/mysql.sock<br />
and add the following to use your existing database passwords<br />
<em>old_passwords=1</em><br />
11. Copy any required PHP extensions to new system path:<br />
<em>cp -R /usr/local/lib/php/extensions/* /usr/lib/php4</em><br />
12. Edit /etc/php.ini:<br />
<em>error_reporting  =  E_ALL &#038; ~E_NOTICE<br />
extension=mysql.so</em><br />
13. Finally, set services to start up automatically:<br />
<em>chkconfig &#8211;level 345 httpd on<br />
chkconfig &#8211;level 345 mysqld on<br />
chkconfig &#8211;level 345 sendmail on</em><br />
14. There you have it.  The server should be happily running CentOS 4.5 now.  Remember to keep it up-to-date by running <em>yum update </em> regularly.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.avinesh.com/blog/index.php/2008/04/14/upgrading-red-hat-9-to-centos-45/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Now Running Ubuntu Server 7.04</title>
		<link>http://www.avinesh.com/blog/index.php/2007/05/11/now-running-ubuntu-server-704/</link>
		<comments>http://www.avinesh.com/blog/index.php/2007/05/11/now-running-ubuntu-server-704/#comments</comments>
		<pubDate>Fri, 11 May 2007 17:53:06 +0000</pubDate>
		<dc:creator>Avinesh</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[ssh]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[upgrade]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.avinesh.com/blog/?p=70</guid>
		<description><![CDATA[I finally decided to upgrade my Ubuntu Server 6.10 install to the latest version, 7.04 (Feisty Fawn). Out of habit, I now wait a few weeks before upgrading to the latest version of anything to ensure any last minute bugs get worked out. Best of all, I upgraded the entire OS remotely using SSH. Upgrading [...]]]></description>
			<content:encoded><![CDATA[<p>I finally decided to upgrade my Ubuntu Server 6.10 install to the latest version, 7.04 (Feisty Fawn).  Out of habit, I now wait a few weeks before upgrading to the latest version of anything to ensure any last minute bugs get worked out.</p>
<p>Best of all, I upgraded the entire OS remotely using SSH.  Upgrading your OS remotely is usually not a good idea, but if you know what you&#8217;re doing, go for it!  Ensure you backup any custom/modified configuration files just in case you press a wrong key during the upgrade! <img src='http://www.avinesh.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />   The upgrade worked well, with the exception of recompiling eAccelerator (to work with PHP 5.2.2) and updating a line (see below) of code in WordPress to make everything work smoothly.</p>
<p>Immediately following the upgrade, I noticed that my WordPress blog was loading very slowly and I also noticed random strings of hexadecimal characters at the top of the main blog page.</p>
<p>If you upgrade your server to Ubuntu Server 7.04 and run WordPress 2.1.x, ensure that you change line 832 in wp-includes/functions.php to the following (all on one line):</p>
<blockquote><p>
@header($_SERVER["SERVER_PROTOCOL"].&#8221; &#8220;.$header.&#8221; &#8220;.$text, true, $header);
</p></blockquote>
<p>Once you make the above change, your blog should load normally.</p>
<p><strong>Update (5.15.2007):</strong></p>
<p>With WordPress 2.2 (released today), the aforementioned WordPress fix is now irrelevant.  </p>
]]></content:encoded>
			<wfw:commentRss>http://www.avinesh.com/blog/index.php/2007/05/11/now-running-ubuntu-server-704/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Upgrading Ubuntu Server 6.06 to 6.10 (Edgy)</title>
		<link>http://www.avinesh.com/blog/index.php/2006/10/29/upgrading-ubuntu-server-606-dapper-lts-to-610-edgy/</link>
		<comments>http://www.avinesh.com/blog/index.php/2006/10/29/upgrading-ubuntu-server-606-dapper-lts-to-610-edgy/#comments</comments>
		<pubDate>Mon, 30 Oct 2006 00:37:25 +0000</pubDate>
		<dc:creator>Avinesh</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[upgrade]]></category>

		<guid isPermaLink="false">http://www.avinesh.com/blog/?p=58</guid>
		<description><![CDATA[On October 26, the Ubuntu team released a new version of Ubuntu, 6.10 (aka Edgy). I waited a couple of days for them to work out any last minute bugs, and decided to proceed with the upgrade today. In the Ubuntu 6.10 / Edgy release notes, Ubuntu recommends the following procedure to upgrade from Dapper [...]]]></description>
			<content:encoded><![CDATA[<p>On October 26, the Ubuntu team released a new version of Ubuntu, 6.10 (aka Edgy).  I waited a couple of days for them to work out any last minute bugs, and decided to proceed with the upgrade today.</p>
<p>In the Ubuntu 6.10 / Edgy release notes, <a href="https://wiki.ubuntu.com/EdgyReleaseNotes" target="_blank">Ubuntu</a> recommends the following procedure to upgrade from Dapper to Edgy:</p>
<blockquote><p># apt-get dist-upgrade &#038;&#038; apt-get dist-upgrade</p></blockquote>
<p>That will not work. Why? Because <em>sources.list</em> needs to be updated first (and <em>apt-get update</em> needs to be run beforehand).</p>
<p><span id="more-58"></span></p>
<p>Prepare to update sources.list by issuing the following command:</p>
<blockquote><p># sudo vi /etc/apt/sources.list</p></blockquote>
<p>Replace all instances of dapper with edgy. My updated <em>sources.list</em> looked as follows:</p>
<blockquote><p>deb <a href="http://us.archive.ubuntu.com/ubuntu/">http://us.archive.ubuntu.com/ubuntu/</a> edgy main restricted<br />
deb-src <a href="http://us.archive.ubuntu.com/ubuntu/">http://us.archive.ubuntu.com/ubuntu/</a> edgy main restricted</p>
<p>deb <a href="http://us.archive.ubuntu.com/ubuntu/">http://us.archive.ubuntu.com/ubuntu/</a> edgy-updates main restricted<br />
deb-src <a href="http://us.archive.ubuntu.com/ubuntu/">http://us.archive.ubuntu.com/ubuntu/</a> edgy-updates main restricted</p>
<p>deb <a href="http://security.ubuntu.com/ubuntu">http://security.ubuntu.com/ubuntu</a> edgy-security main restricted<br />
deb-src <a href="http://security.ubuntu.com/ubuntu">http://security.ubuntu.com/ubuntu</a> edgy-security main restricted</p></blockquote>
<p>Once you save the file, run the following string of commands:</p>
<blockquote><p># sudo apt-get update &#038;&#038; sudo apt-get dist-upgrade &#038;&#038; sudo apt-get dist-upgrade</p></blockquote>
<p>Go for coffee. Run around the block. Play a game. You get the picture. It will take awhile to download all of the required packages (255 in my case).</p>
<p>Now, run the following commands to ensure everything was installed correctly.? The last line deletes the downloaded files from apt&#8217;s cache, freeing up disk space.</p>
<blockquote><p># sudo apt-get -f install<br />
# sudo dpkg &#8211;configure -a<br />
# sudo apt-get clean</p></blockquote>
<p>Finally, cross your fingers and run the following command:</p>
<blockquote><p># sudo reboot</p></blockquote>
<p>Hopefully, everything worked and your Ubuntu server is running the latest release!</p>
<p>If asked to overwrite a modified configuration file, reply &#8216;N&#8217;. Otherwise, you might end up with a broken system. In my case, I also had to recompile eAccelerator 0.9.5-rc1 as it was compiled for the version of PHP 5 (5.1.2) included with Ubuntu Server 6.06.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.avinesh.com/blog/index.php/2006/10/29/upgrading-ubuntu-server-606-dapper-lts-to-610-edgy/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Life in the Fast Lane</title>
		<link>http://www.avinesh.com/blog/index.php/2006/08/22/life-in-the-fast-lane/</link>
		<comments>http://www.avinesh.com/blog/index.php/2006/08/22/life-in-the-fast-lane/#comments</comments>
		<pubDate>Tue, 22 Aug 2006 19:05:16 +0000</pubDate>
		<dc:creator>Avinesh</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[computer]]></category>
		<category><![CDATA[upgrade]]></category>

		<guid isPermaLink="false">http://www.avinesh.com/blog/?p=49</guid>
		<description><![CDATA[If there&#8217;s one thing I really hate, it&#8217;s slow computers. With all the recent price cuts in the CPU world, I decided it would be a good time to upgrade my Pentium 4 3.2 GHz system. It was fast, but when one multitasks like I do, nothing is fast enough. I decided to go with [...]]]></description>
			<content:encoded><![CDATA[<p>If there&#8217;s one thing I really hate, it&#8217;s slow computers.</p>
<p>With all the recent price cuts in the CPU world, I decided it would be a good time to upgrade my Pentium 4 3.2 GHz system.  It was fast, but when one multitasks like I do, nothing is fast enough.</p>
<p>I decided to go with an Intel Core 2 Duo E6400 CPU paired with an ASRock 775DUAL-VSTA motherboard.  As the motherboard supports both DDR and DDR2 RAM, I went with an 1 GB (dual channel) Mushkin EM2 DDR2-667 4-4-4-12 kit.  What&#8217;s unique about the ASRock 775DUAL-VSTA is its ability to support both AGP and newer PCI-E video cards, as well as DDR and DDR2 RAM (read: one or the other).  The motherboard allows for greater flexibility when upgrading existing systems, allowing one to upgrade to newer technology over time.</p>
<p>My new hardware configuration quenches my thirst for speed.  Point.  Click.  Done.  That&#8217;s the way it should be.  A real-life example: 52 Windows XP updates installed in 2 minutes flat.  Impressive.</p>
<p><span id="more-49"></span></p>
<p>Next, my youngest sister&#8217;s computer.  Athlon XP 1900+ with 512 MB of RAM.  She said she was perfectly happy with it, but I knew otherwise.  I decided to get her an AMD X2 4200+ CPU paired with an ASRock 939DUAL-SATA2 motherboard, while using 1 GB (dual channel) of Samsung DDR400 SDRAM from my P4 3.2 GHz system.  Again, the ASRock 939DUAL-SATA2 is an unique motherboard in that it allows one to upgrade to newer technologies over time.  In the future, I can throw in an AMD AM2 upgrade board and add some DDR2 RAM.  With the availability of both AGP and PCI-E slots, the aging AGP video card can be upgraded to PCI-E in the future, if need be.</p>
<p>Now, the cost.  Two systems upgraded for under $900 CDN, including shipping and taxes.  Not bad <img src='http://www.avinesh.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>PS. I take back my previous comment on ASRock (a division of Asus) motherboards.  Three ASRock motherboards later, I&#8217;d still buy another <img src='http://www.avinesh.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' />    Kudos to ASRock for going after a niche market of PC upgraders!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.avinesh.com/blog/index.php/2006/08/22/life-in-the-fast-lane/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
