<?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>YWGAV &#187; Ubuntu</title>
	<atom:link href="http://www.youwillgetavirus.com/archives/category/ubuntu/feed" rel="self" type="application/rss+xml" />
	<link>http://www.youwillgetavirus.com</link>
	<description>A Geek&#039;s View of Technology</description>
	<lastBuildDate>Sun, 06 Jun 2010 16:58:50 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Windows 7 upgrade and fixing Grub afterward.</title>
		<link>http://www.youwillgetavirus.com/archives/53</link>
		<comments>http://www.youwillgetavirus.com/archives/53#comments</comments>
		<pubDate>Tue, 09 Jun 2009 14:27:13 +0000</pubDate>
		<dc:creator>john</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[featured]]></category>
		<category><![CDATA[Dual Boot]]></category>
		<category><![CDATA[GRUB]]></category>
		<category><![CDATA[Ubuntu Linux]]></category>
		<category><![CDATA[Windows 7]]></category>

		<guid isPermaLink="false">http://www.youwillgetavirus.com/?p=53</guid>
		<description><![CDATA[It’s been a while since I posted anything on this site, partially due to the run-up to my recent wedding, and partially because I’ve been too busy with work and my new job to really do anything with my computer lab at home.
The wedding is now over, and the honeymoon taken, so it’s time to [...]]]></description>
			<content:encoded><![CDATA[<p>It’s been a while since I posted anything on this site, partially due to the run-up to my recent wedding, and partially because I’ve been too busy with work and my new job to really do anything with my computer lab at home.</p>
<p>The wedding is now over, and the honeymoon taken, so it’s time to get back to work.  Part of that means getting back to work on my blogs and other things that have languished in the past few months as my attention has been directed elsewhere.<br />
<span id="more-53"></span><br />
As part of that, last night I decided to take the plunge and upgrade the windows drive on my home office workstation from an aging Windows XP installation to the Windows 7 RC.</p>
<p>Since there’s no real upgrade path from XP to Windows 7,  and since I really had no desire to KEEP Windows XP,  I decided to reformat the XP drive and do a fresh install.</p>
<p>The installer was inexplicably slow,   especially since it was running on a Intel Core 2 Quad with 4 gigs of ram – certainly a beefy enough system to run it, and fast.  It took several minutes to get to a point where I could even start the install, and then the installer would hang at some points for absurd amounts of time spinning it’s wheels and appearing to do nothing ( it may be that it was processing in the background, but it honestly gave no indication that it was doing so).</p>
<p>After reading online that some people have had absurdly long install times (measured in hours) I got worried.    Especially since they indicated that after the install finished Windows failed to even start.    Thankfully, after the install completed Windows started just fine and everything seems to be working without any issues.  It would appear Microsoft needs to polish the installation a little bit more, but they’ve got some time to do that before the general release in October.</p>
<p>For me, the next (and last) gotcha was that this was  a dual boot windows/linux system,  and now the Grub bootloader stopped working.</p>
<p>This wasn’t a surprise to me – I actually expected it.   Typically, when you install a dual boot system you want to install windows first, THEN install Linux.   That’s not always feasible though, as seen in my case where I was upgrading to a new version of Windows.     Once you install windows, the bootloader no longer shows up and you can’t boot into Linux.</p>
<p>All is not lost!   The reason this happens is because Windows inserts it’s bootloader into the Master Boot Record (MBR), and set’s it as the priority after POST,  so instead of GRUB (or LILO, etc) loading first, the Windows bootloader does – and it doesn’t know about (or care about) Linux.</p>
<p>Luckily, this is ridiculously easy to fix.</p>
<p>The first thing you need to do is find a Linux Live CD,    in my case since I’m running Ubuntu 9.04 x64, I downloaded an ISO of the Install CD from Ubuntu.  Burn the ISO to cd, and boot to it.</p>
<p>Once you’re booted into the Live CD, open a terminal and type the following:</p>
<p><strong>Sudo grub</strong></p>
<p>This launches the grub prompt, and you should see “<strong>grub&gt;</strong>” on your screen.   Once you see “<strong>grub&gt;</strong>” , enter the following commands, pressing enter after each command.</p>
<p><strong>Find /boot/grub/stage1</p>
<p>root (hd#,#)</p>
<p>setup (hd0)</strong></p>
<p><strong>quit</strong></p>
<p>In the above commands,  the first one will tell you the location of the stage1 file that Grub needs to determine where all of it’s files are.   It will return a location in the format of something like <strong>(hd0,1)</strong> use that value that it returns in the second command.   Continuing my example that would be <strong>root (hd0,1)</strong>.</p>
<p>The second command tells grub that it’s files  are on a particular partition of a particular drive (in the example it’s partition 1 of drive 0).</p>
<p>The third command tells grub to set itself up on hd0, and when given without a value for partition grub then installs itself on the MBR.  hd0 is the label grub uses for the first drive’s MBR.</p>
<p>Quit is self explanatory <img src='http://www.youwillgetavirus.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>After you’ve finished that you can reboot the computer, remove the live cd and enjoy a working grub bootloader.</p>
<img src="http://www.youwillgetavirus.com/?ak_action=api_record_view&id=53&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://www.youwillgetavirus.com/archives/53/feed</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>More fun (literally) with Linux gaming</title>
		<link>http://www.youwillgetavirus.com/archives/49</link>
		<comments>http://www.youwillgetavirus.com/archives/49#comments</comments>
		<pubDate>Mon, 08 Dec 2008 12:50:58 +0000</pubDate>
		<dc:creator>john</dc:creator>
				<category><![CDATA[Gaming]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[Wine]]></category>
		<category><![CDATA[featured]]></category>
		<category><![CDATA[Half-Life 2]]></category>
		<category><![CDATA[Steam]]></category>
		<category><![CDATA[Valve]]></category>
		<category><![CDATA[World of Warcraft]]></category>

		<guid isPermaLink="false">http://www.youwillgetavirus.com/?p=49</guid>
		<description><![CDATA[For the past few weeks (one could say MONTHS) I&#8217;ve had a lack of motivation to really work on my computers and technology.   By the time I get home from work my resolve and desire to work on things has dwindled and I mostly want to sit and do nothing.  This is likewise true [...]]]></description>
			<content:encoded><![CDATA[<p>For the past few weeks (one could say MONTHS) I&#8217;ve had a lack of motivation to really work on my computers and technology.   By the time I get home from work my resolve and desire to work on things has dwindled and I mostly want to sit and do nothing.  This is likewise true of the weekends, which always seem to be filled with some project or another that keeps me busy.  The end result is that I&#8217;ve simply not done much with tech for a while. </p>
<p>Friday night,  after spending a few hours playing rock band and call of duty: world at war with Trevor, I decided to install Ubuntu on the second hard disk on my workstation at home.  I had downloaded the X64 version of their 8.10 version a couple weeks ago but never got around to installing it.</p>
<p><span id="more-49"></span></p>
<p>I was pleased to note that installation was just as easy as it always has been, and it seems even easier to get up and running than it used to be. This could be a result of actually knowing all of the steps I need to take now (whereas with some previous versions I had to do some digging first).  </p>
<p>Saturday I took the time to get  World of Warcraft (including Wrath of the Lich King) up and running under wine.  That proved easy, as I <a href="http://john.whelans.net/archives/274">had a guide to follow</a> (that I wrote after the last time I did it).  </p>
<p>I also decided to see if I could get VALVe&#8217;s Steam service to run in Linux, as recently I picked up the Half-Life 2 episode pack (for $10) and wanted to see if I could play those in Linux as well (hint: yes, yes you can). </p>
<p>Steam prooved to be easy to install.  I had to search for SteamInstall.exe (the steam website has a .msi, which will NOT work).   Just run the installer in Wine and poof, Steam is installed.   It was pretty easy. </p>
<p>Since I already had the episode pack for HL2 associated with my Steam account, once I had Steam installed I simply had to select the game (the one I tested was HL2: Episode 1) and tell it to install.  Steam handled the rest, and handled it beautifully. </p>
<p>When the time came and the game was installed,  I went to play it and&#8230;&#8230; success.    Sort of. </p>
<p>It played all the way through until just after the beginning of the second chapter &#8211; direct intervention &#8211; and then began stuttering and the performance dropped dramatically.   At first I thought it was just the game acting up, so I saved and exited (which was a monumental feat by itself).   Upon re-entering the saved game it was still messed up. </p>
<p>After doing some digging I found that the following registry entries resolved the issue for me completely, and gameplay has been awesome ever since.</p>
<p>Navigate to:  <strong>HKEY_CURRENT_USER\Software\Wine\Direct3D</strong>  (if the Direct3D key doesn&#8217;t exist in the Wine folder, as was the case for me, add it).</p>
<p>Under the Direct3D key, add the following String Values</p>
<p> </p>
<p><strong>OffscreenRenderingMode</strong>, value: <strong>fbo</strong><br />
<strong>PixelShaderMode</strong>, value: <strong>enabled</strong><br />
<strong>UseGLSL</strong>, value: <strong>enabled</strong><br />
V<strong>ideoMemorySize</strong>, value: ammount of video ram your card has, in megabytes.  Mine was <strong>256</strong>.</p>
<p> </p>
<p>These settings in the registry have most certainly fixed the issue I had and I have not had any since.  The game is 100% playable (and quite enjoyable too). </p>
<p>I&#8217;m happy that, for me anyways, the games I want to play I can do so via Wine and Linux.  It&#8217;s certainly not for everybody, and it&#8217;s still much easier to simply play these games in Windows.  I&#8217;m a geek, though, and oddly enough I enjoy getting things to work on platforms they were not really intended for.</p>
<p> </p>
<img src="http://www.youwillgetavirus.com/?ak_action=api_record_view&id=49&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://www.youwillgetavirus.com/archives/49/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
