<?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>r3dux.org &#187; How-To</title>
	<atom:link href="http://r3dux.org/category/how-to/feed/" rel="self" type="application/rss+xml" />
	<link>http://r3dux.org</link>
	<description>A number-pimping side project from the valleys in *NEW* upside-down flavour.</description>
	<lastBuildDate>Wed, 28 Jul 2010 22:09:01 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=abc</generator>
		<item>
		<title>How-To: Make a Goldcard and Root a HTC Desire</title>
		<link>http://r3dux.org/2010/07/how-to-make-a-goldcard-and-root-a-htc-desire/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=how-to-make-a-goldcard-and-root-a-htc-desire</link>
		<comments>http://r3dux.org/2010/07/how-to-make-a-goldcard-and-root-a-htc-desire/#comments</comments>
		<pubDate>Mon, 19 Jul 2010 10:01:26 +0000</pubDate>
		<dc:creator>r3dux</dc:creator>
				<category><![CDATA[How-To]]></category>
		<category><![CDATA[Android]]></category>
		<category><![CDATA[Desire]]></category>
		<category><![CDATA[Goldcard]]></category>
		<category><![CDATA[Hack]]></category>
		<category><![CDATA[HTC]]></category>
		<category><![CDATA[Root]]></category>

		<guid isPermaLink="false">http://r3dux.org/?p=2893</guid>
		<description><![CDATA[Update: The below process definitely works, but I understand that there&#8217;s now a much simpler way of rooting your Android phone by using a piece of software called Unrevoked which&#8217;ll work on an Evo, Hero, Aria and Incredible as well as the HTC Desire &#8211; so it might well be worth you checking that out [...]


Related posts:<ol><li><a href='http://r3dux.org/2010/07/htc-desire-ftw/' rel='bookmark' title='Permanent Link: HTC Desire FTW!'>HTC Desire FTW!</a></li>
<li><a href='http://r3dux.org/2009/10/how-to-use-nand-emulation-on-the-wii/' rel='bookmark' title='Permanent Link: How To: Use NAND Emulation on the Wii'>How To: Use NAND Emulation on the Wii</a></li>
<li><a href='http://r3dux.org/2009/07/how-to-hacksoftmod-your-wii-to-run-pretty-much-anything/' rel='bookmark' title='Permanent Link: How To: Hack/SoftMod Your Wii To Run Pretty Much Anything'>How To: Hack/SoftMod Your Wii To Run Pretty Much Anything</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p><strong>Update</strong>: The below process definitely works, but I understand that there&#8217;s now a much simpler way of rooting your Android phone by using a piece of software called <a href="http://unrevoked.com/">Unrevoked</a> which&#8217;ll work on an Evo, Hero, Aria and Incredible as well as the HTC Desire &#8211; so it might well be worth you checking that out before going to all the effort of rooting the phone through this method!<br />
<hr />
<p>The <a href="http://www.htc.com/www/product/desire/overview.html">HTC Desire</a> is a beautiful phone that, at the time of writing, only has official firmware going up to Android 2.1 &#8211; which is a great OS, but it&#8217;s not the latest and greatest bleeding-edge Android 2.2 which comes with the ability to make your phone act as a wireless hotspot and lets you install apps to your SD card rather than the phone memory (hence, more apps can be installed) amongst other neat features &#8211; so, why not root your Desire and install newer, unofficial 2.2 stuff? Well, because you might not really need it, and you might brick your phone in the process for starters &#8211; but that&#8217;s no fun! Have at it and don&#8217;t settle for the easiest route of just making do! Sweet, sweet Android 2.2 goodness is a mere hour or two away! So let&#8217;s get it on!</p>
<p><strong>Tools needed</strong>:</p>
<ul>
<li>A non-64 bit Windows PC, or Linux PC with a copy of VirtualBox running a non-64 bit version of Windows XP or later (<strong>Note</strong>:  64-bit Windows not recommended for reasons I&#8217;ll describe later on. 64-bit Linux host for the VirtualBox side of things is fine if that&#8217;s the route you&#8217;re taking.)</li>
<li>An Internet connection</li>
<li>A HTC Desire with a bootloader at version 0.80 or earlier (you can check this by turning off your phone, then turning it back on whilst holding down the <strong>Back button</strong> &#8211; the second line will say <strong>HBOOT-x.xx.xxxx</strong> &#8211; this needs be 0.80.0000 or lower for the process to work)<br />
<img src="http://r3dux.org/wp-content/uploads/2010/07/HTC-Desire-Software-Version-Information.jpg" alt="HTC Desire - Software Version Information" title="HTC Desire - Software Version Information" width="428" height="462" class="aligncenter size-full wp-image-2921" /></li>
<li>A <strong>spare</strong> (i.e. not the one you intend using with the phone), small microSD card (512MB or larger is fine, Kingston brand preferred for reasons I&#8217;ll also go into later, but I used a Samsung brand 2GB microSD with no problems)</li>
<li>A microSD to normal-SD adapter card <strong><em>or</em></strong> some other way to access the microSD card in your PC</li>
<li>The ability to follow instructions to the letter.</li>
</ul>
<p>Once you&#8217;ve got all this together, it&#8217;s just a case of following the instructions step-by-step, and in less than an hour (assuming everything goes smoothly &#8211; to figure all this out and get it working properly took me several hours!) you&#8217;ll have a de-branded, fully rooted HTC Desire running Android 2.1, but from which you can install Android 2.2, which I&#8217;ll write up in a separate article shortly.</p>
<p><strong>Final Warning</strong>: It&#8217;s very, very unlikely that anything bad will happen during this rooting process, and the phone can always be restored to normal, un-rooted status should you wish &#8211; but the final responsibility for this lies with you. If you turn your phone into a paper-weight, it&#8217;s not my fault, okay? But saying that &#8211; I&#8217;ve successfully managed to root my phone and it all works perfectly, so if you follow these instructions carefully you can do the exact same thing.</p>
<p>Okay, enough preamble &#8211; let&#8217;s get on with the show!</p>
<h4>Step 1 &#8211; Get the Android SDK</h4>
<p>We&#8217;re going to be creating what&#8217;s called a <strong>Goldcard</strong>, which is just a specially modified microSD card which can be used to gain root access to the phone. Each Goldcard is unique to the phone you&#8217;re using it with, so for example, I&#8217;ve created a Goldcard for when I rooted <em>my</em> phone, but this card wouldn&#8217;t work to root <em>your</em> phone, because it has to be individually tailored to match up with the unique ID of your phone.</p>
<p>To get the details we need to kick off the Goldcard process, we need the Android SDK (Software Development Kit), so click this link and get the SDK for your platform of choice: <a href="http://developer.android.com/sdk/index.html">Android SDK Download</a></p>
<p><strong>Note</strong>: I did this section of the process using Windows 7 64-bit without issues.</p>
<p>Once that&#8217;s downloaded, extract it to a location of your choice, I&#8217;d suggest something like <strong>C:\HTC</strong> so the full path to it once extracted would be <strong>C:\HTC\android-sdk-windows</strong>.</p>
<p>We&#8217;ll come back to using the SDK in a little bit, but for now we need to set up some USB drivers, so lets get that out of the way.</p>
<h4>Step 2 &#8211; Install Proper USB Drivers</h4>
<p>You can connect to your phone as a hard drive just by connecting it to your PC, but we need to be able to access the phone in a kind of special way through the Android adb service, so to do this we need better drivers than just the standard ones.</p>
<p>Thankfully, these drivers come as part of the HTC Sync application, so head on over to this link and get yourself a copy of HTC Sync for Windows: <a href="http://www.htc.com/www/supportdownloadlist.aspx?p_id=312&#038;act=sd&#038;cat=all">HTC Sync Download</a></p>
<p><strong>Note</strong>: I haven&#8217;t been able to find a Linux version of HTC Sync, so you really do seem to need a copy of Windows for this bit. Again, Windows 7 64-bit worked fine for me.</p>
<p>Once you&#8217;ve downloaded the application, double click on it to install it and follow the standard Next | Next | Finish prompts.</p>
<h4>Step 3 &#8211; Enable USB Debugging Mode on your Phone</h4>
<p>For this to all work properly, we need to have our phone connect via USB in USB debugging mode, which can be accomplished by simply going to <strong>Settings | Applications | Development | USB debugging</strong></p>
<p><img src="http://r3dux.org/wp-content/uploads/2010/07/HTC-Desire-USB-Debugging-Mode.jpg" alt="HTC Desire - USB Debugging Mode" title="HTC Desire - USB Debugging Mode" width="592" height="212" class="aligncenter size-full wp-image-2920" /></p>
<h4>Step 4 &#8211; Get the Phone ID Details</h4>
<p>With the Android SDK in place, HTC Sync installed, and the phone in USB debugging mode, it&#8217;s time to get the phone details, so using a USB cable connect your phone to your Windows PC &#8211; if the phone asks, it wants to connect in <strong>hard drive</strong> mode, and not <strong>Charge only</strong> or anything.</p>
<p>Once you&#8217;ve connected your phone, Windows will thrash around a bit setting up drivers, and bring up a window showing that you can connect to the phone which should show four ways of connecting, one of which should be <strong>ADB service</strong> or such, and all four options should have a green tick after them.</p>
<p>With the phone connected, on your Windows PC go to <strong>Start | Run</strong> and enter <strong>cmd</strong> followed by the enter key to open up a command-line window (if you don&#8217;t have <strong>Run</strong> enabled as a Start-menu option, just go <strong>Start | All Programs | Accessories | Command Prompt</strong>).</p>
<p>In the command line window, navigate to the android sdk by entering:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">cd</span> \HTC\android-windows-sdk\tools</pre></div></div>

<p>Then, check that the SDK can see your phone by entering:</p>

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

<p>If everything&#8217;s going according to plan, you should see the HTC detected and showing your phone&#8217;s serial number in output similar to the following (<strong>Note</strong>: This is not my real HTC serial number in case you were planning any shenanigans <img src='http://r3dux.org/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />  ):</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">C:\HTC\android-sdk-windows\tools<span style="color: #000000; font-weight: bold;">&gt;</span>adb devices
adb server is out of date.  killing...
<span style="color: #000000; font-weight: bold;">*</span> daemon started successfully <span style="color: #000000; font-weight: bold;">*</span>
List of devices attached
HT076R317015    device</pre></div></div>

<p>If you get &#8220;no devices found&#8221; type output at this stage then head on over to this post on <a href="http://theunlockr.com/2009/10/06/how-to-set-up-adb-usb-drivers-for-android-devices/">setting up adb connectivity</a> for assistance.</p>
<p>Assuming you can see your phone, the next step is to get (what I think is) the microSD card ID by typing the following at the command prompt:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">C:\HTC\android-sdk-windows\tools<span style="color: #000000; font-weight: bold;">&gt;</span>adb shell
$</pre></div></div>

<p>When you see the <strong>$</strong> prompt like above, enter the following:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">cat</span> <span style="color: #000000; font-weight: bold;">/</span>sys<span style="color: #000000; font-weight: bold;">/</span>class<span style="color: #000000; font-weight: bold;">/</span>mmc_host<span style="color: #000000; font-weight: bold;">/</span>mmc1<span style="color: #000000; font-weight: bold;">/</span>mmc1:<span style="color: #000000; font-weight: bold;">*/</span>cid</pre></div></div>

<p>You should then see output like this:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">cat</span> <span style="color: #000000; font-weight: bold;">/</span>sys<span style="color: #000000; font-weight: bold;">/</span>class<span style="color: #000000; font-weight: bold;">/</span>mmc_host<span style="color: #000000; font-weight: bold;">/</span>mmc1<span style="color: #000000; font-weight: bold;">/</span>mmc1:<span style="color: #000000; font-weight: bold;">*/</span>cid
1d254d3040404030102a80143440a2a0</pre></div></div>

<p>If you get an error at this point I&#8217;ve read that some people have changed the 1&#8242;s to 0&#8242;s to have it work, which would make the line:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">$ <span style="color: #c20cb9; font-weight: bold;">cat</span> <span style="color: #000000; font-weight: bold;">/</span>sys<span style="color: #000000; font-weight: bold;">/</span>class<span style="color: #000000; font-weight: bold;">/</span>mmc_host<span style="color: #000000; font-weight: bold;">/</span>mmc0<span style="color: #000000; font-weight: bold;">/</span>mmc0:<span style="color: #000000; font-weight: bold;">*/</span>cid</pre></div></div>

<p>Once you&#8217;ve got the number, either write it down carefully or copy and paste it into a text file, notepad or such will do just fine.</p>
<h4>Step 5 &#8211; Reverse the MicroSD Hex ID</h4>
<p>We need to perform some voodoo on the number we generated on the last step, which is as simple as going to a web page, entering number or pasting it in, then clicking submit. I&#8217;d imagine they&#8217;re doing something like <a href="http://wiki.answers.com/Q/How_to_Reverse_a_hexadecimal_number_using_bitwise">this</a> &#8211; but I&#8217;ve not tested it at the time of writing &#8211; all I know is that it works!</p>
<p>Reverse yer number here: <a href="http://hexrev.soaa.me/">Soaa&#8217;s Hex Reverse for Goldcard Creation</a> (Thanks, Soaa!)</p>
<p><img src="http://r3dux.org/wp-content/uploads/2010/07/Reverse-Hex-Number.gif" alt="Reverse Hex Number for Goldcard" title="Reverse Hex Number for Goldcard" width="498" height="140" class="aligncenter size-full wp-image-2904" /></p>
<p>Once you have your reversed hexadecimal ID number, copy and paste it into a text file for later use!</p>
<h4>Step 6 &#8211; Get your Goldcard image</h4>
<p>The Goldcard image is just a tiny (a few hundred bytes) disk image file (think like an ISO image) that contains some voodoo generated from your reversed hexadecimal ID. To get this image file emailed to you, head over to this link and fill in all the details: <a href="http://psas.revskills.de/?q=goldcard">http://psas.revskills.de/?q=goldcard</a></p>
<p><a href="http://r3dux.org/wp-content/uploads/2010/07/Get-Goldcard-Image.gif"><img src="http://r3dux.org/wp-content/uploads/2010/07/Get-Goldcard-Image.gif" alt="Get Goldcard Image" title="Get Goldcard Image" width="510" height="574" class="aligncenter size-full wp-image-2905" /></a></p>
<h4>Step 7 &#8211; Format your Spare microSD Card</h4>
<p>In this stage we&#8217;re going to be wiping all data from the microSD card, so make sure there&#8217;s nothing on it you want to keep.</p>
<p>The easiest way to format the card in the correct format is via your phone, so turn it off, take off the back casing, remove the battery (so the microSD card can be inserted), put the card in the phone, then boot the phone and select <strong>Settings | SD &amp; phone storage</strong> followed first by <strong>Unmount SD card</strong> and then <strong>Format SD card</strong>.</p>
<p>Once this is done, turn off your phone, remove the microSD card and place it into a microSD to normal SD card adapter or whatever adapter you&#8217;re using and plug it into your Windows PC.</p>
<h4>Step 8 &#8211; Make your microSD card into a Goldcard</h4>
<p>For this step we need a hex editor, the one recommended in the guides I read is called HxD and is available here: <a href="http://mh-nexus.de/en/downloads.php?product=HxD">http://mh-nexus.de/en/downloads.php?product=HxD</a> (the english version is about half-way down the page).</p>
<p>Once you&#8217;ve downloaded a version, extract the zip file and fire up <strong>HxD.exe</strong>, remembering to <strong>Right Click</strong> on it and choose <strong>Open as Administrator</strong> if using Vista or Windows 7.</p>
<p>Now, from the file menu in HxD, select <strong>Extra | Open Disk</strong>, then from the disk selection window that comes up <strong><em>first</em></strong> untick the <strong>Open Read-Only</strong> checkbox, and <strong><em>then</em></strong> click on your SD card under <strong>Physical Disk</strong> (this is important!) to select it followed by hitting the <strong>[OK]</strong> button.</p>
<div id="attachment_2914" class="wp-caption aligncenter" style="width: 564px"><a href="http://r3dux.org/wp-content/uploads/2010/07/HxD-Step-1-Open-Physical-Disk.gif"><img src="http://r3dux.org/wp-content/uploads/2010/07/HxD-Step-1-Open-Physical-Disk.gif" alt="HxD - Open Physical Disk" title="HxD - Open Physical Disk" width="554" height="401" class="size-full wp-image-2914" /></a><p class="wp-caption-text">In HxD, Open the SD card as a Physical Disk with Write access allowed</p></div>
<p>HxD is an editor that uses tabs, so we&#8217;re now going to open the <strong>goldcard.img</strong> file that you were emailed in Step 6 by selecting <strong>Extra | Open Disk Image</strong> and then navigating to and opening your goldcard.img file. At this point you&#8217;ll have two tabs open, and the next thing we need to do is simply copy all the data from the goldcard image directly to the SD card in a kind of raw mode, so we&#8217;re not copying files &#8211; just some data.</p>
<p>To do this:</p>
<ol>
<li>With the <strong>goldcard.img tab</strong> selected, go to the menu and choose <strong>Edit | Select All</strong> followed by <strong>Edit | Copy</strong><br />
<div id="attachment_2915" class="wp-caption aligncenter" style="width: 551px"><img src="http://r3dux.org/wp-content/uploads/2010/07/HxD-Step-2-Open-Goldcard-Image.gif" alt="HxD - Open Goldcard Image" title="HxD - Open Goldcard Image" width="541" height="285" class="size-full wp-image-2915" /><p class="wp-caption-text">Open a second HxD tab, this time opening the goldcard.img Disk Image</p></div></p>
<p><div id="attachment_2916" class="wp-caption aligncenter" style="width: 491px"><a href="http://r3dux.org/wp-content/uploads/2010/07/HxD-Step-3-Copy-All-Goldcard-Data.gif"><img src="http://r3dux.org/wp-content/uploads/2010/07/HxD-Step-3-Copy-All-Goldcard-Data.gif" alt="HxD - Copy All Goldcard Data" title="HxD - Copy All Goldcard Data" width="481" height="328" class="size-full wp-image-2916" /></a><p class="wp-caption-text">From the Goldcard tab, select all the data and copy it to the clipboard like you'd copy some text</p></div>
</li>
<li>Click on the <strong>Removable Disk 1 tab</strong>, and look at the first column of data which says <strong>Offset(h)</strong> &#8211; what you need to do is <strong>Highlight</strong> (i.e. <strong><em>Select</em></strong> &#8211; just like you would use to copy and paste text) <strong>ALL THE DATA from offset 00000000 to 00000170</strong>, and once you&#8217;ve got all that selected (I found it easier to find the 00000170 row, go to the far right of it, then Left-click and hold and drag up and to the far left of the very first 00000000 row) go to the menu and choose <strong>Edit | Paste write</strong>.<br /><div id="attachment_2917" class="wp-caption aligncenter" style="width: 561px"><a href="http://r3dux.org/wp-content/uploads/2010/07/HxD-Step-4-Paste-Goldcard-Data-Over-Specific-Part-Of-SD-Card.gif"><img src="http://r3dux.org/wp-content/uploads/2010/07/HxD-Step-4-Paste-Goldcard-Data-Over-Specific-Part-Of-SD-Card.gif" alt="HxD - Paste Goldcard Data OVER Specific Part of SD Card" title="HxD - Paste Goldcard Data OVER Specific Part of SD Card" width="551" height="494" class="size-full wp-image-2917" /></a><p class="wp-caption-text">This is important - select the 00000000 to 00000170 region of your SD card, and then paste the goldcard data OVER this selected region (i.e. the data from the goldcard replaces whatever was in the region you've now selected on the SD card)</p></div></li>
<li>Now you can save the changes to your SD card by hitting <strong>Ctrl+S</strong> or <strong>File | Save</strong> or whatever you want and close down HxD.</li>
</ol>
<p>At this point you want to be able to eject the SD card and put it back in without Windows moaning. If Windows pops up a message saying that the card isn&#8217;t formatted correctly and would you like to format it now, you&#8217;ve either done one of the above steps wrong, or you&#8217;ve got an incompatible microSD card. If it were me (and believe me, from the less than crystal clear instructions I read it <em>was</em> me &#8211; three times!), I&#8217;d reformat the card and go again, slowly and carefully. When you&#8217;ve done it right and you eject then re-insert the card without Windows saying anything other than just mounting the card, then you&#8217;ve got yourself a Goldcard! Phew!</p>
<p>If you have any problems, I got my set of instructions from here: <a href="http://android.modaco.com/content/general-discussion/305672/creating-a-goldcard/">http://android.modaco.com/content/general-discussion/305672/creating-a-goldcard/</a></p>
<h4>Step 9 &#8211; Get the Rooted Firmware and Install It</h4>
<p>Okay &#8211; we&#8217;re nearly there! This is the stage that I <strong>DO NOT</strong> recommend using 64-bit Windows for, as when I tried it, it simply didn&#8217;t work, and I gave myself a minor panic when my phone wouldn&#8217;t boot and was stuck halfway between flashing it &#8211; <strong>BUT</strong> this could well have been because I got the wrong firmware for the phone! I got the normal firmware, whilst the Telstra A8183 models need the alt firmware (second link below).</p>
<p>Either way, I ended up using Linux 64-bit (Ubuntu 10.04) to do this final bit &#8211; so just be aware that you might run into problems on 64-bit Windows, and consider using something else &#8211; probably even a Linux live CD would do the job if you don&#8217;t have multiple OS&#8217;s available to you.</p>
<p>So to get the rooted firmware:<br />
- If you have a bootloader version 0.75.xxxx or below AND a current ROM of 1.15.xxx.x or below &#8211; <a href="http://www.mediafire.com/download.php?lwmnz2yifec">DOWNLOAD</a>  (MediaFire) / <a href="http://coblitz.codeen.org/www.romraid.com/paul/bravo/r6-desire-root.zip">MIRROR</a> (ROMraid / CoBlitz) &#8211; MD5: 28dd5acc4104bb49bd4b292cc8e8437c</p>
<p>- <strong><em>ONLY</strong></em> if the above download is not suitable &#8211; if you have a bootloader version 0.80.xxxx or below AND a current ROM of 1.21.xxx.x or below &#8211; <a href="http://www.mediafire.com/download.php?zxyyyxotzzg">DOWNLOAD</a> (MediaFire) / <a href="http://coblitz.codeen.org/www.romraid.com/paul/bravo/r6-desire-root-alt.zip">MIRROR</a> (ROMraid / CoBlitz) &#8211; MD5: eb2ed5bca1334cacd70e4720f5b29960</p>
<p>For my phone model (Telstra branded A8183 model HTC Desire &#8211; even though it showed bootloader version 0.75.xxxx before being rooted) I went with the the second set of firmware above (r6-desire-root-alt.zip). </p>
<p>Now, once the firmware is downloaded:</p>
<ul>
<li>Unzip the file you downloaded to a directory, then open a command prompt / terminal window at that directory.</li>
<li>Copy the &#8216;update.zip&#8217; file (which is part of the firmware download zip) to your microSD. Do NOT rename it.</li>
<li>Turn off your HTC Desire, then turn it back on with the <strong>Back</strong> button held down. You&#8217;ll see <strong>FASTBOOT</strong> written on the screen in a red box. Connect the phone to the computer.</li>
<li>In the terminal window, enter either &#8216;step1-windows.bat&#8217;, &#8216;./step1-mac.sh&#8217; or &#8216;./step1-linux.sh&#8217; as appropriate.</li>
<li>Navigate to the <strong>BOOTLOADER</strong> and then the <strong>RECOVERY</strong> option on the menu, using the volume buttons to move and the power button to select.</li>
<li>When a black screen appears with a red triangle (don&#8217;t worry, you&#8217;ll know it when you see it), press and hold the <strong>Volume Up</strong> button on your phone and then tap the <strong>Power</strong> button.</li>
<li>Your device should now be at the &#8216;recovery&#8217; screen. Select the <strong>wipe data/factory reset</strong> option, then select the option to <strong>Apply sdcard:update.zip</strong>. This will take a little while, so go make a nice cup of tea. When the flash has finished, reboot, and you are <strong>DONE!</strong></li>
</ul>
<p>My information for this section came from this guide should you run into any trouble: <a href="http://android.modaco.com/content/htc-desire-desire-modaco-com/307365/14-jun-r6-riskfreeroot-htc-desire-rooting-guide-now-with-hboot-0-80-and-os-to-1-21-support/">r6 riskfreeroot &#8211; HTC Desire Rooting Guide</a></p>
<h4>Conclusion</h4>
<p>With all this done, you will be the proud owner of a de-branded, rooted HTC Desire with no more branded unremovable bloatware apps hogging up your application list, a new <strong>Superuser Permissions</strong> application (which I have, as yet, no idea what it does &#8211; but it proves the phone&#8217;s rooted!), and the ability to flash custom firmware to the phone like <a href="http://forum.xda-developers.com/showthread.php?t=690477">DeFroST</a> or <a href="http://forum.xda-developers.com/showthread.php?t=720294">DJ DROID</a> Android 2.2 (froyo) stuff, with all the lovely, bleeding edge goodness that provides, as well as over-clocked and under-volted kernels so speed up your phone and lower the power consumption!</p>
<p>To be perfectly honest, I haven&#8217;t as yet installed any of that cool stuff &#8211; but I&#8217;m pretty sure that I&#8217;ve done the hard part with the rooting process, and when I get the time to install some 2.2 goodness, I&#8217;ll document it to the hilt, too.</p>
<p>Cheers!</p>
<p><strong>Thanks</strong>: Shouts out to the Android community for all their good work, from the devs and hackers to the pioneers and bit-players, without whom none of this would be possible! And of course many thanks to the people writing guides whose work I based this guide on in an effort to plainly state and illustrate the process with minimal ambiguity.</p>


<p>Related posts:<ol><li><a href='http://r3dux.org/2010/07/htc-desire-ftw/' rel='bookmark' title='Permanent Link: HTC Desire FTW!'>HTC Desire FTW!</a></li>
<li><a href='http://r3dux.org/2009/10/how-to-use-nand-emulation-on-the-wii/' rel='bookmark' title='Permanent Link: How To: Use NAND Emulation on the Wii'>How To: Use NAND Emulation on the Wii</a></li>
<li><a href='http://r3dux.org/2009/07/how-to-hacksoftmod-your-wii-to-run-pretty-much-anything/' rel='bookmark' title='Permanent Link: How To: Hack/SoftMod Your Wii To Run Pretty Much Anything'>How To: Hack/SoftMod Your Wii To Run Pretty Much Anything</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://r3dux.org/2010/07/how-to-make-a-goldcard-and-root-a-htc-desire/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>How-To: Easily Remove the Vocals from Most Songs</title>
		<link>http://r3dux.org/2010/06/how-to-easily-remove-the-vocals-from-most-songs/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=how-to-easily-remove-the-vocals-from-most-songs</link>
		<comments>http://r3dux.org/2010/06/how-to-easily-remove-the-vocals-from-most-songs/#comments</comments>
		<pubDate>Mon, 28 Jun 2010 09:22:32 +0000</pubDate>
		<dc:creator>r3dux</dc:creator>
				<category><![CDATA[How-To]]></category>
		<category><![CDATA[Music]]></category>
		<category><![CDATA[Audacity]]></category>
		<category><![CDATA[Audio]]></category>
		<category><![CDATA[Cancel]]></category>
		<category><![CDATA[Remove]]></category>
		<category><![CDATA[Singing]]></category>
		<category><![CDATA[Superposition]]></category>
		<category><![CDATA[Vocals]]></category>
		<category><![CDATA[Voice]]></category>
		<category><![CDATA[Waves]]></category>

		<guid isPermaLink="false">http://r3dux.org/?p=2823</guid>
		<description><![CDATA[I found this trick the other day whilst stumbling the Interwebs and thought I&#8217;d do a quick-write up w/ pictures to make it as easy as possible&#8230; For this exercise we&#8217;re going to be using a piece of free audio software called Audacity, which you can get for Linux, Windows and Mac. The track I&#8217;m [...]


Related posts:<ol><li><a href='http://r3dux.org/2010/06/how-to-seamlessly-remove-things-from-an-image-in-gimp/' rel='bookmark' title='Permanent Link: How To: Seamlessly Remove Things from an Image in GIMP'>How To: Seamlessly Remove Things from an Image in GIMP</a></li>
<li><a href='http://r3dux.org/2010/02/how-to-remove-adobe-drive/' rel='bookmark' title='Permanent Link: How To: Remove Adobe Drive'>How To: Remove Adobe Drive</a></li>
<li><a href='http://r3dux.org/2009/09/how-to-easily-convert-flac-audio-to-mp3s-in-linux/' rel='bookmark' title='Permanent Link: How To: Easily Convert FLAC audio to MP3s in Linux'>How To: Easily Convert FLAC audio to MP3s in Linux</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>I found this trick the other day whilst stumbling the Interwebs and thought I&#8217;d do a quick-write up w/ pictures to make it as easy as possible&#8230; For this exercise we&#8217;re going to be using a piece of free audio software called <a href="http://audacity.sourceforge.net/">Audacity</a>, which you can get for Linux, Windows and Mac.</p>
<p>The track I&#8217;m using in this example is the first 50 seconds of Ben Folds &#8211; Zak and Sara, where the voice kicks in at the 11 second mark, and the original sounds like this:</p>
<div align="center"></div>
<p>Once you&#8217;ve got a copy of Audacity for your platform of choice, fire it up and follow these simple steps to get rid of the vocals from most songs:</p>
<h4>1.) Import Some Audio</h4>
<p>From the menu in Audacity, choose <strong>File | Import | Audio</strong> and then select an mp3 (or any audio format Audacity understands) to work with.</p>
<p><img src="http://r3dux.org/wp-content/uploads/2010/06/Audacity-1-Import.jpg" alt="Audacity - Import" title="Audacity - Import" width="453" height="343" class="aligncenter size-full wp-image-2824" /></p>
<h4>2.) Duplicate The Tracks</h4>
<p>We&#8217;re going to come back later and use the bass from this to give it a nice, full sound &#8211; but for now just duplicate your imported audio by going to <strong>Edit | Duplicate</strong>:</p>
<p><img src="http://r3dux.org/wp-content/uploads/2010/06/Audacity-2-Duplicate.jpg" alt="Audacity - Duplicate" title="Audacity - Duplicate" width="477" height="410" class="aligncenter size-full wp-image-2825" /></p>
<p>Once you&#8217;ve duplicated the tracks, we&#8217;ll mute our copy for now by clicking on the <strong>Mute</strong> button to the left of the waveform as shown:</p>
<p><img src="http://r3dux.org/wp-content/uploads/2010/06/Audacity-3-Mute.jpg" alt="Audacity - Mute" title="Audacity - Mute" width="366" height="598" class="aligncenter size-full wp-image-2826" /></p>
<h4>3.) Separate Our Original Tracks, Convert To Mono and Invert One Of Them</h4>
<p>This is the key part of the process: because vocal tracks on songs are commonly recorded as mono and then mixed into stereo &#8211; by separating the tracks and making them act as separate mono tracks, we can then <strong>invert</strong> one of them to have them cancel each other out! And since usually only the vocal waveform is identical (i.e. mono mixed to stereo) it&#8217;s only the vocals that magically disappear from the sound! Ha!</p>
<p>So, to start off we need to click on the little down-arrow to the left of our original wave form and select <strong>Split Stereo Track</strong>:</p>
<p><img src="http://r3dux.org/wp-content/uploads/2010/06/Audacity-4-Split-Stereo-Track.jpg" alt="Audacity - Split Stereo Track" title="Audacity - Split Stereo Track" width="425" height="491" class="aligncenter size-full wp-image-2827" /></p>
<p>Once the waveform&#8217;s been split (so we can mess with both channels individually) double click in the lower of the two waveforms (the right channel) to select it all, and then from the menu choose <strong>Effect | Invert</strong> as shown:</p>
<p><img src="http://r3dux.org/wp-content/uploads/2010/06/Audacity-5-Invert-Right-Channel.jpg" alt="Audacity - Invert Right Channel" title="Audacity - Invert Right Channel" width="560" height="414" class="aligncenter size-full wp-image-2828" /></p>
<p>Now for the last really important step &#8211; simply set both left and right channels to output as <strong>mono</strong> by clicking on the little down-arrow to the left of each waveform and selecting <strong>Mono</strong>. Don&#8217;t forget to set <strong><em>both</em></strong> of them to Mono or the magic won&#8217;t happen!</p>
<p><img src="http://r3dux.org/wp-content/uploads/2010/06/Audacity-6-Convert-to-Mono.jpg" alt="Audacity - Convert to Mono" title="Audacity - Convert to Mono" width="610" height="390" class="aligncenter size-full wp-image-2829" /></p>
<p>With that done, give it a play and see what happens! With any luck, there won&#8217;t be any vocals in the track &#8211; so with my example, it now sounds like this:</p>
<div align="center"></div>
<p>You&#8217;ll notice at the end that the vocals come back (the backing singing etc.) &#8211; why? Because it wasn&#8217;t recorded as a mono source, and hence doesn&#8217;t get cancelled out by the inversion we did earlier &#8211; so this technique won&#8217;t work for all songs &#8211; only ones where the voice is recorded in mono and then mixed into stereo, which to be fair, I think it a pretty large swathe of &#8216;em, and it&#8217;d be perfect for karaoke or something like this anyway because you&#8217;d want the backing vocals there!</p>
<p>If you wanted to know more about how this wave-form cancellation works, you can always look up <a href="http://paws.kettering.edu/~drussell/Demos/superposition/superposition.html">Superposition of Waves</a>, but I&#8217;ll leave that as an exercise for the curious =D</p>
<h4>4.) Filter Our Original To Add Back The Bass</h4>
<p>The voice cancelled audio above sounds pretty good, and the vocals are definitely gone, but in the process we&#8217;ve stripped out a lot of the lower frequency sounds (i.e. the bass). So remember when we duplicated our waveform and muted it right at the beginning? This is where it fits in&#8230;</p>
<p>Un-mute our duplicated (and still stereo) audio copy by clicking on the <strong>Mute</strong> button to the left of the waveform, double click on the waveform to select it all, and then from the menu choose <strong>Effect | Equalization</strong> as shown:</p>
<p><img src="http://r3dux.org/wp-content/uploads/2010/06/Audacity-7-Equalisation.jpg" alt="Audacity - Equalisation" title="Audacity - Equalisation" width="506" height="437" class="aligncenter size-full wp-image-2831" /></p>
<p>When the equalisation window pops up, we&#8217;re going to filter it so that all sounds above 200Hz are stripped out. To do this, just click somewhere on the main part of the window and a white dot will appear, click again and another will &#8211; then click <strong><em>on</em></strong> them to drag them around until you get a shape that looks kinda like this:</p>
<p><img src="http://r3dux.org/wp-content/uploads/2010/06/Audacity-9-Remove-Vocal-Range.jpg" alt="Audacity - Only Keep Bass" title="Audacity - Only Keep Bass" width="578" height="375" class="aligncenter size-full wp-image-2832" /></p>
<p>Notice that I&#8217;ve dragged the bottom-left slider all the way down to get access to the full 120Db and not just the 30Db on the scale by default.</p>
<p>You might have to have a bit of a play to get it right, but all we&#8217;re really doing is saying &#8220;Leave anything with a frequency of 200Hz or less alone, but drop the volume of anything over that frequency by around 120Db&#8221; (i.e. remove it entirely!).</p>
<p>If you mute our top two mono tracks and play it back, you should get the filtered version of the stereo track with only the bass remaining, which for my example sounds like this:</p>
<div align="center"></div>
<h4>5.) Un-mute Our Original Voice Cancelled Tracks</h4>
<p>With the vocal-free (but a bit <em>tinny</em>) audio playing at the same time as our bass-only version, we get a pretty neat sound with good bass and no vocals! Result! =D</p>
<div align="center"></div>
<p>You can then just go to <strong>File | Export</strong> to save the finished vocal-free version to an mp3 or such, if you wanted to keep it.</p>
<h4>Wrap Up</h4>
<p>I&#8217;ve read that some people like to cut out the sections between 200Hz and 1000Hz or so (1KHz, although I&#8217;ve also seen people push it up to 6KHz) to keep the low-end and high-end sounds, but when I was playing with this I kept getting some voice creeping back into the mix. This could well have been because I was only dropping 30Db when I was messing around with it though &#8211; so go nuts and experiment if ya wanna! </p>
<p>The shape I used for that EQ setting was:</p>
<p><img src="http://r3dux.org/wp-content/uploads/2010/06/Audacity-8-Remove-Vocal-Range.jpg" alt="Audacity - Keep High and Low Only" title="Audacity - Keep High and Low Only" width="579" height="357" class="aligncenter size-full wp-image-2834" /></p>
<p>With that all said and done, I hope you found this guide useful &#8211; I didn&#8217;t come up with the technique or anything like that, I just saw a 10 line how-to and had to mess around for half an hour to get it to work, so thought I could knock up a quick guide that shows how it&#8217;s done really clearly, and I hope you have fun with the technique!</p>
<p>Cheers!</p>
<div class="diggbutton"><script type="text/javascript">digg_url = 'http://r3dux.org/2010/06/how-to-easily-remove-the-vocals-from-most-songs/';digg_title = 'How-To: Easily Remove the Vocals from Most Songs';</script><script src="http://digg.com/tools/diggthis.js" type="text/javascript"></script></div>


<p>Related posts:<ol><li><a href='http://r3dux.org/2010/06/how-to-seamlessly-remove-things-from-an-image-in-gimp/' rel='bookmark' title='Permanent Link: How To: Seamlessly Remove Things from an Image in GIMP'>How To: Seamlessly Remove Things from an Image in GIMP</a></li>
<li><a href='http://r3dux.org/2010/02/how-to-remove-adobe-drive/' rel='bookmark' title='Permanent Link: How To: Remove Adobe Drive'>How To: Remove Adobe Drive</a></li>
<li><a href='http://r3dux.org/2009/09/how-to-easily-convert-flac-audio-to-mp3s-in-linux/' rel='bookmark' title='Permanent Link: How To: Easily Convert FLAC audio to MP3s in Linux'>How To: Easily Convert FLAC audio to MP3s in Linux</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://r3dux.org/2010/06/how-to-easily-remove-the-vocals-from-most-songs/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How-To: Install the Official Sun JDK in Ubuntu 10.04</title>
		<link>http://r3dux.org/2010/06/how-to-install-the-official-sun-jdk-in-ubuntu-10-04/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=how-to-install-the-official-sun-jdk-in-ubuntu-10-04</link>
		<comments>http://r3dux.org/2010/06/how-to-install-the-official-sun-jdk-in-ubuntu-10-04/#comments</comments>
		<pubDate>Sat, 26 Jun 2010 03:48:03 +0000</pubDate>
		<dc:creator>r3dux</dc:creator>
				<category><![CDATA[How-To]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[10.04]]></category>
		<category><![CDATA[HotSpot]]></category>
		<category><![CDATA[IcedTea]]></category>
		<category><![CDATA[JDK]]></category>
		<category><![CDATA[OpenJDK]]></category>
		<category><![CDATA[Sun]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://r3dux.org/?p=2813</guid>
		<description><![CDATA[The default java solution for Ubuntu 10.04 is the OpenJDK virtual machine and the IcedTea plugin for firefox &#8211; but I&#8217;ve been having serious issues with it locking up, taking up 100% CPU and other such craziness &#8211; so I&#8217;ve switched over to the (proprietary) official Sun JDK, and things are working much better. Here&#8217;s [...]


Related posts:<ol><li><a href='http://r3dux.org/2010/05/how-to-transform-your-stock-ubuntu-10-04-install-into-a-fully-operational-operating-system/' rel='bookmark' title='Permanent Link: How-To: Transform Your Stock Ubuntu 10.04 Install into a Fully Operational <strike>Battle Station</strike> Operating System'>How-To: Transform Your Stock Ubuntu 10.04 Install into a Fully Operational <strike>Battle Station</strike> Operating System</a></li>
<li><a href='http://r3dux.org/2010/05/how-to-build-a-working-version-of-handbrake-for-ubuntu-10-04/' rel='bookmark' title='Permanent Link: How-To: Build a Working Version of Handbrake for Ubuntu 10.04'>How-To: Build a Working Version of Handbrake for Ubuntu 10.04</a></li>
<li><a href='http://r3dux.org/2010/05/how-to-get-a-canon-mp240-printer-working-in-ubuntu-10-04-3264-bit/' rel='bookmark' title='Permanent Link: How To: Get a Canon MP240 Printer Working in Ubuntu 10.04 32/64 Bit'>How To: Get a Canon MP240 Printer Working in Ubuntu 10.04 32/64 Bit</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>The default java solution for Ubuntu 10.04 is the OpenJDK virtual machine and the IcedTea plugin for firefox &#8211; but I&#8217;ve been having serious issues with it locking up, taking up 100% CPU and other such craziness &#8211; so I&#8217;ve switched over to the (proprietary) official Sun JDK, and things are working much better. Here&#8217;s how I did it, and how you can too&#8230;</p>
<h4>1.) Add the Lucid Partner repository to your Sources list</h4>
<p>We&#8217;re going to be installing the Sun JDK through the repos, and it just so happens that we need the <strong>partner</strong> repo enabled, so you can either add the following line to your <strong>/etc/apt/sources.list</strong>, or you can check the box in <strong>System | Administration | Software Sources</strong> (assuming you&#8217;re using Gnome &#8211; pick whatever source managing front-end KDE uses if that&#8217;s your poison):</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">deb http:<span style="color: #000000; font-weight: bold;">//</span>archive.canonical.com<span style="color: #000000; font-weight: bold;">/</span> lucid partner</pre></div></div>

<p>or..</p>
<p><img src="http://r3dux.org/wp-content/uploads/2010/06/SunJDK1-Repo-Add.jpg" alt="Sun JDK Add Repo" title="Sun JDK Add Repo" width="550" height="247" class="aligncenter size-full wp-image-2815" /></p>
<h4>2.) Install the Sun JDK and Plugin</h4>
<p>Before you install the good stuff, it&#8217;s an idea to check your current version so you can see the changeover&#8217;s worked. To do this, just run <strong>java -version</strong> from bash and you should see something like this:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">java version <span style="color: #ff0000;">&quot;1.6.0_18&quot;</span>
OpenJDK Runtime Environment <span style="color: #7a0874; font-weight: bold;">&#40;</span>IcedTea6 <span style="color: #000000;">1.8</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #7a0874; font-weight: bold;">&#40;</span>6b18-<span style="color: #000000;">1.8</span>-0ubuntu1<span style="color: #7a0874; font-weight: bold;">&#41;</span>
OpenJDK <span style="color: #000000;">64</span>-Bit Server VM <span style="color: #7a0874; font-weight: bold;">&#40;</span>build <span style="color: #000000;">14.0</span>-b16, mixed mode<span style="color: #7a0874; font-weight: bold;">&#41;</span></pre></div></div>

<p>Once you know what you&#8217;ve currently got, again from the shell, enter the following to install the official Sun JDK  (don&#8217;t worry about multiple JDKs being installed &#8211; we deal with that later):</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> sun-java6-jre sun-java6-plugin sun-java6-fonts</pre></div></div>

<p>During this process you&#8217;ll have to agree to the license agreement &#8211; just hit <strong>Tab</strong> to switch focus in the text window onto the <strong>Yes</strong> button (assuming you do agree), and hit <strong>Enter</strong> to accept.</p>
<h4>3.) Remove the old OpenJDK stuff</h4>
<p>In Synaptic, you want to fully remove the following packages:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">default-jdk
default-jre 
default-jre-headless
icedtea-<span style="color: #000000;">6</span>-jre-cacao
icedtea6-plugin
openjdk-<span style="color: #000000;">6</span>-jdk
openjdk-<span style="color: #000000;">6</span>-jre
openjdk-<span style="color: #000000;">6</span>-jre-headless
openjdk-<span style="color: #000000;">6</span>-jre-lib</pre></div></div>

<p>If you do this before installing the Sun JDK, all packages depending on Java will be removed as well &#8211; so in this rare instance, later is better, and any packages depending on Java can now stay on the system.</p>
<h4>4.) Check it all works</h4>
<p>From the command line enter: <strong>java -version</strong> and you should see the new details:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">java version <span style="color: #ff0000;">&quot;1.6.0_20&quot;</span>
Java<span style="color: #7a0874; font-weight: bold;">&#40;</span>TM<span style="color: #7a0874; font-weight: bold;">&#41;</span> SE Runtime Environment <span style="color: #7a0874; font-weight: bold;">&#40;</span>build 1.6.0_20-b02<span style="color: #7a0874; font-weight: bold;">&#41;</span>
Java HotSpot<span style="color: #7a0874; font-weight: bold;">&#40;</span>TM<span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #000000;">64</span>-Bit Server VM <span style="color: #7a0874; font-weight: bold;">&#40;</span>build <span style="color: #000000;">16.3</span>-b01, mixed mode<span style="color: #7a0874; font-weight: bold;">&#41;</span></pre></div></div>

<p>If you want the new plug-in to take effect in Firefox or such you need to restart the browser, then you should be all good to go! Maybe test it out at <a href="http://archive.sodaplay.com/zoo/">sodaplay</a> for kicks too <img src='http://r3dux.org/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Cheers!</p>


<p>Related posts:<ol><li><a href='http://r3dux.org/2010/05/how-to-transform-your-stock-ubuntu-10-04-install-into-a-fully-operational-operating-system/' rel='bookmark' title='Permanent Link: How-To: Transform Your Stock Ubuntu 10.04 Install into a Fully Operational <strike>Battle Station</strike> Operating System'>How-To: Transform Your Stock Ubuntu 10.04 Install into a Fully Operational <strike>Battle Station</strike> Operating System</a></li>
<li><a href='http://r3dux.org/2010/05/how-to-build-a-working-version-of-handbrake-for-ubuntu-10-04/' rel='bookmark' title='Permanent Link: How-To: Build a Working Version of Handbrake for Ubuntu 10.04'>How-To: Build a Working Version of Handbrake for Ubuntu 10.04</a></li>
<li><a href='http://r3dux.org/2010/05/how-to-get-a-canon-mp240-printer-working-in-ubuntu-10-04-3264-bit/' rel='bookmark' title='Permanent Link: How To: Get a Canon MP240 Printer Working in Ubuntu 10.04 32/64 Bit'>How To: Get a Canon MP240 Printer Working in Ubuntu 10.04 32/64 Bit</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://r3dux.org/2010/06/how-to-install-the-official-sun-jdk-in-ubuntu-10-04/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How To: Seamlessly Remove Things from an Image in GIMP</title>
		<link>http://r3dux.org/2010/06/how-to-seamlessly-remove-things-from-an-image-in-gimp/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=how-to-seamlessly-remove-things-from-an-image-in-gimp</link>
		<comments>http://r3dux.org/2010/06/how-to-seamlessly-remove-things-from-an-image-in-gimp/#comments</comments>
		<pubDate>Sat, 19 Jun 2010 07:00:22 +0000</pubDate>
		<dc:creator>r3dux</dc:creator>
				<category><![CDATA[How-To]]></category>
		<category><![CDATA[Imagery]]></category>
		<category><![CDATA[GIMP]]></category>
		<category><![CDATA[plug-in]]></category>
		<category><![CDATA[Plugin]]></category>
		<category><![CDATA[Remove]]></category>
		<category><![CDATA[resynthesizer]]></category>
		<category><![CDATA[Seamless]]></category>

		<guid isPermaLink="false">http://r3dux.org/?p=2789</guid>
		<description><![CDATA[Photoshop CS5 has a content-aware fill filter which will try to seamlessly remove objects from an image &#8211; and that&#8217;s great. But GIMP has the same functionality, right now &#8211; for free. And it&#8217;s a doddle to use&#8230; I posted about a cleverly designed glass which spells out what you&#8217;re drinking through linking dots on [...]


Related posts:<ol><li><a href='http://r3dux.org/2010/03/photoshop-cs5-content-aware-fill/' rel='bookmark' title='Permanent Link: Photoshop CS5: Content Aware Fill'>Photoshop CS5: Content Aware Fill</a></li>
<li><a href='http://r3dux.org/2010/06/how-to-easily-remove-the-vocals-from-most-songs/' rel='bookmark' title='Permanent Link: How-To: Easily Remove the Vocals from Most Songs'>How-To: Easily Remove the Vocals from Most Songs</a></li>
<li><a href='http://r3dux.org/2010/02/how-to-remove-adobe-drive/' rel='bookmark' title='Permanent Link: How To: Remove Adobe Drive'>How To: Remove Adobe Drive</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>Photoshop CS5 has a <a href="http://r3dux.org/2010/03/photoshop-cs5-content-aware-fill/">content-aware fill</a> filter which will try to seamlessly remove objects from an image &#8211; and that&#8217;s great. But GIMP has the same functionality, right now &#8211; for free. And it&#8217;s a doddle to use&#8230;</p>
<p>I posted about a <a href="http://r3dux.org/2010/06/clever-psychic-glass-design/">cleverly designed glass</a> which spells out what you&#8217;re drinking through linking dots on the glass with the liquid colour the other day, but to get that image, I needed to do a little bit of manipulation first.  For this example we&#8217;re going to be using GIMP with the <a href="http://www.logarithmic.net/pfh/resynthesizer">Resynthesizer plugin</a> (package name: <strong>gimp-resynthesizer</strong>):</p>
<h4>1.) Get an Image to Work With</h4>
<p>I wanted to use a picture of the glasses, but the bar across the top was too close to them for it to be a nice shot with enough white-space around it, so the first thing I did was just stab the <strong>Print-Screen</strong> key to get a screengrab:</p>
<p><img src="http://r3dux.org/wp-content/uploads/2010/06/GIMP-Remove-Items-1.jpg" alt="GIMP-Remove-Items-1" title="GIMP-Remove-Items-1" width="856" height="366" class="aligncenter size-full wp-image-2790" /></p>
<p>Remember that to fill in the missing details, you need as much as possible of <strong>what <em>should</em> be there</strong> &#8211; that is, a very high background to selection ratio! If you have a picture of someone&#8217;s face taking up a large section of the image and you try to remove the face &#8211; where can the plug-in get data from to know what to replace it with? It can&#8217;t! So it&#8217;ll make a guess, and it&#8217;ll fail badly. On the other hand, if you have a large swathe of grass with a football on it, and you&#8217;re removing the football, the plug-in has all the surrounding image to consider when doing the replacement!</p>
<p>In this case, I kept as much of the background as possible in the image while I was replacing the section I wanted removed so the plug-in could use that data for replacing content.</p>
<h4>2.) Select the Section to Remove</h4>
<p>Because the bar is rectangular in shape, the rectangular selection tool was the easiest option to select it &#8211; if you&#8217;ve got a more ragged section then use the lassoo selection tool, or a quick-mask or whatever to get your selection; just make sure it&#8217;s pretty tight to what you want to remove&#8230;</p>
<p><img src="http://r3dux.org/wp-content/uploads/2010/06/GIMP-Remove-Items-2.jpg" alt="GIMP-Remove-Items-2" title="GIMP-Remove-Items-2" width="645" height="126" class="aligncenter size-full wp-image-2791" /></p>
<h4>3.) Run the Resynthesizer Plugin</h4>
<p>Once you&#8217;ve got your selection (i.e. what you want to remove selected), just pick <strong>Filters | Map | Resynthesizer</strong> from the GIMP menu and use the checkboxes as ticked below:</p>
<p><img src="http://r3dux.org/wp-content/uploads/2010/06/GIMP-Remove-Items-3.jpg" alt="GIMP-Remove-Items-3" title="GIMP-Remove-Items-3" width="763" height="538" class="aligncenter size-full wp-image-2792" /></p>
<p><img src="http://r3dux.org/wp-content/uploads/2010/06/GIMP-Remove-Items-4.jpg" alt="GIMP-Remove-Items-4" title="GIMP-Remove-Items-4" width="423" height="486" class="aligncenter size-full wp-image-2793" /></p>
<h4>4.) Admire Your Handiwork</h4>
<p>The Resynthesizer plugin is a little bit curious, in that running it, then undoing it, then running it again will produce different results. The first two times I ran it on the exact same selection on the exact same image ended up with some artifacts of text being dragged in, but the third time did the entire thing cleanly.</p>
<p>If you end up with stray artifacts from other parts of the image, you can either re-run the resynthesizing process, or just select the artifacts and re-run resynthesizer on them to remove them (remembering to keep the selections tight to what you want removed).</p>
<p>And voila&#8230;</p>
<p><img src="http://r3dux.org/wp-content/uploads/2010/06/GIMP-Remove-Items-5.jpg" alt="GIMP-Remove-Items-5" title="GIMP-Remove-Items-5" width="808" height="358" class="aligncenter size-full wp-image-2794" /></p>
<p>That&#8217;s pretty awesome&#8230; Kudos to <a href="http://www.logarithmic.net/pfh/blog">Paul Harrison</a> for the plug-in &#8211; that&#8217;s some killer code &#8211; what a guy! =D</p>


<p>Related posts:<ol><li><a href='http://r3dux.org/2010/03/photoshop-cs5-content-aware-fill/' rel='bookmark' title='Permanent Link: Photoshop CS5: Content Aware Fill'>Photoshop CS5: Content Aware Fill</a></li>
<li><a href='http://r3dux.org/2010/06/how-to-easily-remove-the-vocals-from-most-songs/' rel='bookmark' title='Permanent Link: How-To: Easily Remove the Vocals from Most Songs'>How-To: Easily Remove the Vocals from Most Songs</a></li>
<li><a href='http://r3dux.org/2010/02/how-to-remove-adobe-drive/' rel='bookmark' title='Permanent Link: How To: Remove Adobe Drive'>How To: Remove Adobe Drive</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://r3dux.org/2010/06/how-to-seamlessly-remove-things-from-an-image-in-gimp/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>How To: Change from Shared Hosting to a VPS, Part 2 &#8211; Choosing a Hosting Provider, Signing Up &amp; Connecting</title>
		<link>http://r3dux.org/2010/06/how-to-change-from-shared-hosting-to-a-vps-part-2-choosing-a-hosting-provider-signing-up-connecting/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=how-to-change-from-shared-hosting-to-a-vps-part-2-choosing-a-hosting-provider-signing-up-connecting</link>
		<comments>http://r3dux.org/2010/06/how-to-change-from-shared-hosting-to-a-vps-part-2-choosing-a-hosting-provider-signing-up-connecting/#comments</comments>
		<pubDate>Fri, 11 Jun 2010 13:01:02 +0000</pubDate>
		<dc:creator>r3dux</dc:creator>
				<category><![CDATA[How-To]]></category>
		<category><![CDATA[Tech]]></category>
		<category><![CDATA[Guide]]></category>
		<category><![CDATA[Hosting]]></category>
		<category><![CDATA[OpenVZ]]></category>
		<category><![CDATA[Shared]]></category>
		<category><![CDATA[VPS]]></category>
		<category><![CDATA[Xen]]></category>

		<guid isPermaLink="false">http://r3dux.org/?p=2705</guid>
		<description><![CDATA[I finally did it; I&#8217;ve made the jump from shared hosting to my own VPS slice &#8211; and I&#8217;m really rather liking things like this &#8211; control is good! So, if you&#8217;re looking to make the jump too, this article should give you the first few stages of the how of things (whilst the previous [...]


Related posts:<ol><li><a href='http://r3dux.org/2010/06/how-to-change-from-shared-hosting-to-a-vps-part-1-the-calm-before-the-storm/' rel='bookmark' title='Permanent Link: How To: Change from Shared Hosting to a VPS, Part 1 &#8211; The Calm Before the Storm'>How To: Change from Shared Hosting to a VPS, Part 1 &#8211; The Calm Before the Storm</a></li>
<li><a href='http://r3dux.org/2010/06/if-you-can-see-this-post/' rel='bookmark' title='Permanent Link: If You Can See This Post&#8230;'>If You Can See This Post&#8230;</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>I finally did it; I&#8217;ve made the jump from shared hosting to my own VPS slice &#8211; and I&#8217;m really rather liking things like this &#8211; <strong><em>control is good!</em></strong></p>
<p>So, if you&#8217;re looking to make the jump too, this article should give you the first few stages of the <em>how</em> of things (whilst the <a href="http://r3dux.org/2010/06/how-to-change-from-shared-hosting-to-a-vps-part-1-the-calm-before-the-storm/">previous Part 1 article</a> dealt with the <em>why</em>) &#8211; so let&#8217;s make it happen, shall we?</p>
<h4>Step 1 &#8211; Find Yourself a VPS Provider</h4>
<p>There are thousands upon thousands of hosting companies who can offer you a VPS, ranging from <strong>fully managed</strong> (i.e. everything set up for you, but expensive) to <strong>unmanaged</strong> (where you set up everything yourself, and you pay much less per month). I&#8217;ve taken the latter route so I can gain some experience and pocket the difference.</p>
<p>The first thing you&#8217;ll want to do is take a look at some hosting sites which bring together offers from various hosting companies so you can compare and contrast them. I spent a while looking at a website called <a href="http://www.lowendbox.com/">LowEndBox</a> to find some good deals. Quite often, it seems, you can get offers which re-occcur, so if you sign up and enter a code you get 40% off or such, and this applies across the lifetime of your VPS hosting with the chosen company.</p>
<p>After a bit of looking I came across a new start-up company based in the UK called <a href="http://rackvm.com/">RackVM</a>, who were offering a bunch of attractive packages for decent prices. Web hosting is one of those things where you get what you pay for, so be wary of going with companies based solely on them having the most absolute rock-bottom price you can find, as the service you get might not be too stellar. I&#8217;ve only been signed up with RackVM for about two weeks or so at this point, but during that time everything&#8217;s been great. Being a new start-up I&#8217;m running the risk that they fold in the near future, but I&#8217;ve got everything from my old site (files/database etc.) backed-up, and if I go dark I could just get another VPS provider and re-do the config to get it all back up and running in less than a day, so I&#8217;m not too concerned about it.</p>
<p>When looking for a package there are a number of key factors to take into account (I can only really discuss this from a standpoint of what I, personally, wanted and signed up for &#8211; but you can happily extrapolate for your own needs):</p>
<ul>
<li><strong>Virtualisation Technology</strong> &#8211; The main two options for the technology that does the division of a single, physical machine into multiple VPS slices are <a href="http://wiki.openvz.org/Main_Page">OpenVZ</a> and <a href="http://www.xen.org/">Xen</a>. You can read a brief head to head comparison of them <a href="http://vpslink.com/compare/openvz-vs-xen-vps-hosting/">here</a> or by putting something like &#8220;OpenVZ Vs Xen&#8221; into google. I chose OpenVZ for its lower memory footprint and increased speed, although either would have been fine, and likely Xen would have been a touch stabler and more secure as it runs a separate kernel per VPS slice rather than sharing a single kernel across all VPS&#8217;. Really, either option will be fine.</li>
<p></p>
<li><strong>Disk Space</strong> &#8211; How much file space do you have available? This is used for any packages you install on your VPS (web servers, FTP servers + storage area, MySQL databases &#8211; everything!), I really don&#8217;t need more than about 1GB or so for everything, but then I don&#8217;t really host a lot of files. The package I got came with 30GB &#8211; which is lots, and <em>lots</em>, of breathing room.</li>
<p></p>
<li><strong>Bandwidth</strong> &#8211; How much data does the server need to upload to people? A site with a 300KB front page being hit 500 times a day will use 4.5GB per month at a minimum. When I signed up I got 300GB bandwidth per month, which is orders of magnitude more than I need, but things like FTP count into it, so if I upload something that&#8217;s 100MB, and it gets downloaded 50 times, that&#8217;s 5GB on top of whatever the site HTML will take, and when you add in running an email server it could easily get higher again. I still don&#8217;t see myself using more than 10GB a month in my wildest dreams, but if you can get a high number then you can always try to find inventive ways to use it (like maybe <a href="http://r3dux.org/2010/02/how-to-download-newsgroup-binaries-using-ipv6/">running sabnazbdplus</a> or something).</li>
<p></p>
<li><strong>RAM</strong> &#8211; this one&#8217;s important &#8211; really important. Remember that you&#8217;re going to be running a whole heap of things on the server and that it&#8217;ll eat through plenty of RAM. You might be able to get away with 256MB and keep 99% performance. 512MB is a <strong><em>lot</em></strong> nicer to work with and will give you a little bit of breathing room after correct configuration. I got 512MB with my package, and after tweaking apache to use a little less memory am running at roughly 370MB with apache, mysqld, php, postfix (Mail Transfer Agent), courier (POP3/IMAP Server), spamassasin, webmin and a couple of other bits and pieces running. It&#8217;ll spike up to 600MB under load, but then it drops back down below 512MB, which is my magic number.</li>
<p></p>
<li><strong>Burst RAM</strong> &#8211; Every server running VPS&#8217; will have more RAM than it needs so it can offer it on a temporary basis to any one of the VPS&#8217; on the server. With my package I have up to 1GB Burst RAM, which means that when my site&#8217;s under load and the memory usage increases, I&#8217;ve got that additional 512MB to use. Be warned &#8211; if you go for a VPS with a low memory limit, and your site&#8217;s memory usage sits up in the Burst RAM all or most of the time, they&#8217;ll be on to you to upgrade your package to one that provides greater RAM, and costs more per month.</li>
<p></p>
<li><strong>Operating System</strong> &#8211; OpenVZ and Xen can be run on any *nix, so you&#8217;ll have the option of picking your server platform from a bunch of choices like: Debian, Ubuntu, CentOS, FreeBSD or OpenBSD, Slackware, Gentoo etc. Some people say Debian is the metaphorical <em>win</em> as a server platform as it&#8217;s extensively tested and as such very, very stable. However, I chose Ubuntu 10.04 64-Bit as my server platform of choice, because 10.04 is a LTS (Long Term Support) version of Ubuntu, which means it&#8217;s gone through a pretty extensive testing period during its gestation, and as it&#8217;s pretty new it has all the latest versions of software available for that cutting-edge goodness. Also, I happen to run Ubuntu 10.04 as my OS of choice (normal, not server edition obviously), so anything I know works on my local machine is pretty much guaranteed to work on the server, and I can test things out on my local box before putting on the server.</li>
</ul>
<h4>Step 2 &#8211; Sign Up and Provide the Correct Server Details (Server name, NS1, NS2 etc.)</h4>
<p>When you sign up, you&#8217;ll pick a package that gives you the combination of above options that best fit your needs, then you&#8217;ll need to enter some additional details for the VPS slice &#8211; you&#8217;re likely to see a screen asking you for details like this:</p>
<p><img src="http://r3dux.org/wp-content/uploads/2010/06/VPS-Signup-Server-Settings.gif" alt="VPS Signup Server Settings" title="VPS Signup Server Settings" width="482" height="150" class="aligncenter size-full wp-image-2717" /></p>
<p>For this example, let&#8217;s say we have the site <strong>www.foobar.net</strong> on shared hosting, and we&#8217;re transitioning it to a VPS.</p>
<p>The first field, <strong>hostname</strong>, is asking you what you want to call your server. If it was just an email server, you might enter <strong>mail.foobar.net</strong> here, if you were going to have multiple servers serving files for the same domain (foobar.net) you might enter <strong>server1.foobar.net</strong> or <strong>server2.foobar.net</strong>. As I&#8217;m only ever going to have a single VPS serving everything, I thought I&#8217;d just call it <strong>server</strong>, and as such for our example I&#8217;d enter <strong>server.foobar.net</strong> and for my own particular instance, I entered <strong>server.r3dux.org</strong>.</p>
<p>The next two fields are asking you for the name of the primary and secondary nameservers  that might run on the domain (i.e. what you would call them if you decide to run a DNS service such as <a href="http://www.isc.org/software/bind">bind</a>) &#8211; they are <strong>NOT</strong> asking you for the name and address of the DNS servers which currently host the record for your shared hosting! It&#8217;s kind of like a &#8220;If you were a name server, what would you call yourself?&#8221;-type question =D For our example, we could happily put <strong>ns1.foobar.net</strong> for the primary nameserver and <strong>ns2.foobar.net</strong> for the secondary nameserver, and in my specific instance, I put <strong>ns1.r3dux.org</strong> and <strong>ns2.r3dux.org</strong>. I&#8217;m not even going to run a DNS service, as I simply don&#8217;t have to, I&#8217;m just specifying what I&#8217;d call the nameservers if I did!</p>
<p>The fourth and final field is asking for the password you want to set for your <strong>root</strong> account on your VPS. By this we mean, you have full access to your VPS using the top-level administrative account <strong>root</strong>, through which you will log in and administrate the the system. When <em>your</em> root account is created, on <em>your</em> VPS &#8211; what password do you want to use? I&#8217;d recommend setting this as something pretty strong (at least a dozen characters) which uses a combination of upper and lower case letters plus some numbers and punctuation, because if it gets compromised &#8211; your box will no longer be your box&#8230;</p>
<p>For our foobar.net example, this means that we&#8217;d end up with something like this:</p>
<p><img src="http://r3dux.org/wp-content/uploads/2010/06/VPS-Signup-Server-Example-Settings.gif" alt="VPS Signup Server Example Settings" title="VPS Signup Server Example Settings" width="482" height="150" class="aligncenter size-full wp-image-2720" /></p>
<p>With these details provided, proceed through the registration process, and you should be sent an order confirmation either:<br />
- Detailing and confirming your order and asking for payment before it gets set up, or<br />
- If you already paid at the registration stage, detailing the IP address of your spanky new VPS! (and optionally, a separate IP address and details of your username and password to connect to the server through <a href="http://en.wikipedia.org/wiki/Secure_Shell">SSH</a>).</p>
<h4>Step 3 &#8211; Connect to your Spanky New VPS!</h4>
<p>Once you&#8217;ve paid and received an email giving you the IP address of your VPS, it&#8217;s time to connect to that bad boy!</p>
<p>VPS&#8217; are servers, and as such don&#8217;t run graphical desktops &#8211; it&#8217;s all administered through the command line. So the best way to hook up to your VPS is through a <a href="http://en.wikipedia.org/wiki/Secure_Shell">SSH</a> connection. With RackVM, remember that this is my first VPS so I have no other knowledge of what other VPS hosting providers do, they send you an email with a separate IP and username to use to connect to the VPS.</p>
<p>To connect to the VPS through linux, I can run the following command and enter my root password (the one we specified earlier in Step 2!):</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">ssh</span> 1.2.3.4 <span style="color: #660033;">-l</span> <span style="color: #000000; font-weight: bold;">&lt;</span>YOUR-SSH-USERNAME<span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #660033;">-p</span> <span style="color: #000000;">22</span></pre></div></div>

<p>Where <em>1.2.3.4</em> is the IP address given for SSH access in the confirmation email. Once connected, you can install stuff using <strong>apt-get</strong>, or <strong>dpkg</strong> or whatever you like&#8230;</p>
<p>To connect to the VPS through a Windows system, your&#8217;re probably best off using <a href="http://www.chiark.greenend.org.uk/~sgtatham/putty/">PuTTY</a>.</p>
<p>At this point, you can go to the HTTP address of your server (for example, <strong>http://5.6.7.8</strong>, where <em>5.6.7.8</em> is the IP address of your VPS server itself [and not the IP address of the SSH access - assuming that, like mine, they're different]) &#8211; but there&#8217;s likely to be nothing at all there because Apache isn&#8217;t installed! If you wanted to install and run Apache quickly you could always SSH into your VPS and run:</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
<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 start</pre></div></div>

<p>And <strong><em>then</em></strong> try <strong>http://5.6.7.8</strong> (again, replacing <em>5.6.7.8</em> with your VPS IP address) &#8211; and <em>TA-DAAAA!</em> She lives!</p>
<p><strong>Next Steps</strong>: After this we&#8217;ll want to configure Apache, add MySQL as a database server, add PHP, an Email server, add an FTP server and some Web Administration tools plus a couple of other bits and pieces &#8211; all the while keeping the memory usage low!</p>
<p>It&#8217;s easily do-able, it&#8217;s just a slightly lengthy process &#8211; which I&#8217;ll save for a Part 3 article, me thinks <img src='http://r3dux.org/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Oh, and if you&#8217;ve seen anything in this article you think is wrong, technically inaccurate or plain bat-shit crazy &#8211; please feel free to correct me in the comments!</p>
<p>Cheers!</p>


<p>Related posts:<ol><li><a href='http://r3dux.org/2010/06/how-to-change-from-shared-hosting-to-a-vps-part-1-the-calm-before-the-storm/' rel='bookmark' title='Permanent Link: How To: Change from Shared Hosting to a VPS, Part 1 &#8211; The Calm Before the Storm'>How To: Change from Shared Hosting to a VPS, Part 1 &#8211; The Calm Before the Storm</a></li>
<li><a href='http://r3dux.org/2010/06/if-you-can-see-this-post/' rel='bookmark' title='Permanent Link: If You Can See This Post&#8230;'>If You Can See This Post&#8230;</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://r3dux.org/2010/06/how-to-change-from-shared-hosting-to-a-vps-part-2-choosing-a-hosting-provider-signing-up-connecting/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How To: Speed Up Linux by Minimising Swapiness</title>
		<link>http://r3dux.org/2010/06/how-to-speed-up-linux-by-minimising-swapiness/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=how-to-speed-up-linux-by-minimising-swapiness</link>
		<comments>http://r3dux.org/2010/06/how-to-speed-up-linux-by-minimising-swapiness/#comments</comments>
		<pubDate>Wed, 09 Jun 2010 23:59:11 +0000</pubDate>
		<dc:creator>r3dux</dc:creator>
				<category><![CDATA[How-To]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Memory]]></category>
		<category><![CDATA[Paging]]></category>
		<category><![CDATA[RAM]]></category>
		<category><![CDATA[Swap]]></category>
		<category><![CDATA[Swappiness]]></category>
		<category><![CDATA[Virtual]]></category>

		<guid isPermaLink="false">http://r3dux.org/?p=2677</guid>
		<description><![CDATA[Swappiness is a setting in the Linux kernel which controls how amenable to paging things in memory out to disk the kernel is (like using virtual memory in Windows), and in Ubuntu it comes with a default value of 60 &#8211; which for a box with lots of memory is too high in my humble [...]


No related posts.]]></description>
			<content:encoded><![CDATA[<p><a href="https://help.ubuntu.com/community/SwapFaq">Swappiness</a> is a setting in the Linux kernel which controls how amenable to paging things in memory out to disk the kernel is (like using virtual memory in Windows), and in Ubuntu it comes with a default value of <strong>60</strong> &#8211; which for a box with lots of memory is too high in my humble opinion. The range of values goes from <strong>0</strong> (never use the swap file unless absolutely critical) to <strong>100</strong> (page stuff out to file whenever it feels like).</p>
<p>You can easily check your current swappiness value like this:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">cat</span> <span style="color: #000000; font-weight: bold;">/</span>proc<span style="color: #000000; font-weight: bold;">/</span>sys<span style="color: #000000; font-weight: bold;">/</span>vm<span style="color: #000000; font-weight: bold;">/</span>swappiness</pre></div></div>

<p>And you can change the swappiness of the system on the fly (but it&#8217;ll go back to the value in the <strong><em>sysctl.conf</em></strong> file after a reboot) like this:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> sysctl vm.swappiness=<span style="color: #000000;">10</span></pre></div></div>

<p>My laptop has 4GB of RAM, and even with a bunch free, Linux decides to swap stuff out to file quite often with a swappiness setting of 60, which can slow the box to a crawl. To fix this, and permanently insist that all physical RAM is used up before starting any paging at all,, simply change the setting to something like <strong>10</strong> like this:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">gksudo gedit <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>sysctl.conf</pre></div></div>

<p>Then, when the file is open, either add the line <strong>vm.swappiness=10</strong> to the bottom of the file, or if it already exists just modify the value, then reboot.</p>
<p>To find out more about the whole swappiness thing, try <a href="https://help.ubuntu.com/community/SwapFaq#Performance%20tuning%20with%20%27%27swappiness%27%27">this article</a>.</p>


<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://r3dux.org/2010/06/how-to-speed-up-linux-by-minimising-swapiness/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How To: Change from Shared Hosting to a VPS, Part 1 &#8211; The Calm Before the Storm</title>
		<link>http://r3dux.org/2010/06/how-to-change-from-shared-hosting-to-a-vps-part-1-the-calm-before-the-storm/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=how-to-change-from-shared-hosting-to-a-vps-part-1-the-calm-before-the-storm</link>
		<comments>http://r3dux.org/2010/06/how-to-change-from-shared-hosting-to-a-vps-part-1-the-calm-before-the-storm/#comments</comments>
		<pubDate>Wed, 02 Jun 2010 10:58:12 +0000</pubDate>
		<dc:creator>r3dux</dc:creator>
				<category><![CDATA[How-To]]></category>
		<category><![CDATA[Tech]]></category>
		<category><![CDATA[Hosting]]></category>
		<category><![CDATA[OpenVZ]]></category>
		<category><![CDATA[r3dux.org]]></category>
		<category><![CDATA[Shared]]></category>
		<category><![CDATA[VPS]]></category>
		<category><![CDATA[Xen]]></category>

		<guid isPermaLink="false">http://r3dux.org/?p=2642</guid>
		<description><![CDATA[I&#8217;ve had this site hosted with the same hosting company for as long as I&#8217;ve had it, which has got to be coming up to around five years now &#8211; and ya know, they&#8217;re okay. It costs me maybe £60 per year for the domain r3dux.org plus a shared hosting package of maybe 8GB file [...]


Related posts:<ol><li><a href='http://r3dux.org/2010/06/how-to-change-from-shared-hosting-to-a-vps-part-2-choosing-a-hosting-provider-signing-up-connecting/' rel='bookmark' title='Permanent Link: How To: Change from Shared Hosting to a VPS, Part 2 &#8211; Choosing a Hosting Provider, Signing Up &#038; Connecting'>How To: Change from Shared Hosting to a VPS, Part 2 &#8211; Choosing a Hosting Provider, Signing Up &#038; Connecting</a></li>
<li><a href='http://r3dux.org/2010/06/if-you-can-see-this-post/' rel='bookmark' title='Permanent Link: If You Can See This Post&#8230;'>If You Can See This Post&#8230;</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve had this site hosted with the same hosting company for as long as I&#8217;ve had it, which has got to be coming up to around five years now &#8211; and ya know, they&#8217;re okay. It costs me maybe £60 per year for the domain <strong>r3dux.org</strong> plus a shared hosting package of maybe 8GB file storage, a couple of MySQL databases, e-mail, FTP, support etc. &#8211; which to be fair is a pretty good deal! That £60 goes a long way &#8211; which means it&#8217;s stretched very, very <em>thin</em>&#8230;</p>
<p>The kicker is that my hosting package is exactly what it said on the tin when I bought it: <strong><em>Shared</em> hosting</strong> &#8211; this means that this site, plus a large number of other sites are all hosted on the same server with no separation of any kind between them &#8211; so when a bit of JavaScript or PHP or ASP or whatever goes and thrashes the box, or hangs using 100% CPU, it takes everything else down with it.<a href="http://pcsupport.about.com/od/findbyerrormessage/a/503error.htm"> 503 Site unavailable</a>. Game Over.</p>
<p>And this has happened a lot.</p>
<p>The file server goes down, so the MySQL server isn&#8217;t asked for files, or the MySQL server goes down, so the requests for data go unanswered &#8211; if it&#8217;s not all working together, you&#8217;ve got a blank page. Over the years I&#8217;ve bit my lip, fired off support tickets, waited patiently, put up with very sluggish performance just being thankful that it works &#8211; but no more! We&#8217;re moving on to greener, and faster pastures&#8230; Enter stage right: VPS</p>
<p>A VPS, or <a href="http://en.wikipedia.org/wiki/Virtual_private_server">Virtual Private Server</a>, is a <em>slice</em> of a full hardware server. The full server might have 32GB of RAM, my slice might have 512MB of that. The full server might have a TB of storage, my slice might have 30GB of that. The full server might have 2 x 4Ghz processors, my slice might have full use of them for 5ms out of ever 1000ms in a second. And the slices are strongly separated, commonly with virtualisation software such as <a href="http://wiki.openvz.org/Main_Page">OpenVZ</a> or <a href="http://www.xen.org/">Xen</a>.</p>
<p>This means that if, for example, Joe Blogg&#8217;s server has some nasty script that&#8217;s thrashing the CPU, it&#8217;s thrashing <strong><em>his</em></strong> slice of the CPU (i.e. his 5 milliseconds) &#8211; but </strong>not mine</strong>! From a users perspective, this means that his site might be down, but all the other VPS&#8217; on the physical server will still be up. In effect, one errant site or script can&#8217;t scupper all the sites on the server &#8211; Win!</p>
<p>But it&#8217;s a little more complicated than that&#8230;</p>
<p>VPS&#8217; come in different flavours &#8211; <strong>fully managed</strong>, and <strong>unmanaged</strong>. With a fully managed VPS you have people to help you set it up; they can set up or help to set up web-servers (apache etc.), email servers, ftp servers, MySQL servers etc., but you pay $30AU more for the VPS. <strong>Per month.</strong></p>
<p>With unmanaged VPS&#8217;s you just get the VPS plus an install of an operating system of your choice (Debian, Centos, Ubuntu etc.) &#8211; but that&#8217;s it. It&#8217;s up to <u>you</u> to install and set up apache. It&#8217;s up to <u>you</u> to run your own ftp server. It&#8217;s up to <u>you</u> to run your own mailserver&#8230; For example, if I wanted mail at r3dux dot org to be a valid email address &#8211; *<strong>I</strong>* need to install, configure and administrate the email server for that to happen. You get complete control of your VPS, but you get complete control of your VPS, if you see what I mean&#8230; For $30AU a month saving, I think I&#8217;ll run everything myself, thanks <img src='http://r3dux.org/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>After all this, there&#8217;s still the matter of the DNS records &#8211; currently my hosting provider runs a DNS server (well, two really &#8211; a primary and a secondary; ns1.somehostingco.com and ns2.somehostingco.com) &#8211; once I have my site hosted on the VPS, I need to be able to update the DNS records so when you go to <strong>http://r3dux.org</strong> it translates to the IP address of where I&#8217;m now hosted, instead of the IP address of where I <em>was</em> hosted, and with my current hosting people I don&#8217;t believe I can change that, so I need to transfer my domain to a registrar where I&#8217;m able to edit the records to say <em>I now live <strong>here</strong></em>!</p>
<p>As you can see, it&#8217;s no small task &#8211; but I reckon I&#8217;m up for a weekend project <img src='http://r3dux.org/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>If you never see anything on this site ever again &#8211; I&#8217;ve failed! But with with any luck, at least at some point in the very near future, I&#8217;ll see you on the other side <img src='http://r3dux.org/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>


<p>Related posts:<ol><li><a href='http://r3dux.org/2010/06/how-to-change-from-shared-hosting-to-a-vps-part-2-choosing-a-hosting-provider-signing-up-connecting/' rel='bookmark' title='Permanent Link: How To: Change from Shared Hosting to a VPS, Part 2 &#8211; Choosing a Hosting Provider, Signing Up &#038; Connecting'>How To: Change from Shared Hosting to a VPS, Part 2 &#8211; Choosing a Hosting Provider, Signing Up &#038; Connecting</a></li>
<li><a href='http://r3dux.org/2010/06/if-you-can-see-this-post/' rel='bookmark' title='Permanent Link: If You Can See This Post&#8230;'>If You Can See This Post&#8230;</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://r3dux.org/2010/06/how-to-change-from-shared-hosting-to-a-vps-part-1-the-calm-before-the-storm/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>How-To: Build a Working Version of Handbrake for Ubuntu 10.04</title>
		<link>http://r3dux.org/2010/05/how-to-build-a-working-version-of-handbrake-for-ubuntu-10-04/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=how-to-build-a-working-version-of-handbrake-for-ubuntu-10-04</link>
		<comments>http://r3dux.org/2010/05/how-to-build-a-working-version-of-handbrake-for-ubuntu-10-04/#comments</comments>
		<pubDate>Sat, 15 May 2010 13:01:05 +0000</pubDate>
		<dc:creator>r3dux</dc:creator>
				<category><![CDATA[How-To]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[10.04]]></category>
		<category><![CDATA[build]]></category>
		<category><![CDATA[DVD]]></category>
		<category><![CDATA[Encode]]></category>
		<category><![CDATA[HandBrake]]></category>
		<category><![CDATA[Source]]></category>
		<category><![CDATA[Subversion]]></category>
		<category><![CDATA[SVN]]></category>
		<category><![CDATA[Transcode]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://r3dux.org/?p=2571</guid>
		<description><![CDATA[The currently available pre-packaged version of Handbrake (the Video/DVD transcoder/ripper) at the time of writing is 0.9.4 (actual filename for the 64-bit version: HandBrake-0.9.4-Ubuntu_GUI_x86_64.deb) &#8211; and it&#8217;s about as much use as a chocolate teapot on Ubuntu 10.04&#8230; You simply can&#8217;t endcode/transcode with it because it&#8217;s broken, with the Add to Queue and Start buttons [...]


Related posts:<ol><li><a href='http://r3dux.org/2010/05/how-to-get-a-canon-mp240-printer-working-in-ubuntu-10-04-3264-bit/' rel='bookmark' title='Permanent Link: How To: Get a Canon MP240 Printer Working in Ubuntu 10.04 32/64 Bit'>How To: Get a Canon MP240 Printer Working in Ubuntu 10.04 32/64 Bit</a></li>
<li><a href='http://r3dux.org/2010/06/how-to-install-the-official-sun-jdk-in-ubuntu-10-04/' rel='bookmark' title='Permanent Link: How-To: Install the Official Sun JDK in Ubuntu 10.04'>How-To: Install the Official Sun JDK in Ubuntu 10.04</a></li>
<li><a href='http://r3dux.org/2010/05/how-to-transform-your-stock-ubuntu-10-04-install-into-a-fully-operational-operating-system/' rel='bookmark' title='Permanent Link: How-To: Transform Your Stock Ubuntu 10.04 Install into a Fully Operational <strike>Battle Station</strike> Operating System'>How-To: Transform Your Stock Ubuntu 10.04 Install into a Fully Operational <strike>Battle Station</strike> Operating System</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>The currently available pre-packaged version of <a href="http://handbrake.fr/">Handbrake</a> (the Video/DVD transcoder/ripper) at the time of writing is 0.9.4 (actual filename for the 64-bit version: <strong>HandBrake-0.9.4-Ubuntu_GUI_x86_64.deb</strong>) &#8211; and it&#8217;s about as much use as a chocolate teapot on Ubuntu 10.04&#8230; You simply can&#8217;t endcode/transcode with it because it&#8217;s broken, with the <strong>Add to Queue</strong> and <strong>Start</strong> buttons permanently greyed out because the functionality behind them is mashed.</p>
<p>So let&#8217;s build a fresh version that works! </p>
<h4>Step 1.) Get the Necessary Libraries</h4>
<p>A quick trip to the command line will get everything you need (where everything you already have in this list is simply ignored):</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> subversion yasm build-essential <span style="color: #c20cb9; font-weight: bold;">autoconf</span> libtool zlib1g-dev libbz2-dev intltool libglib2.0-dev libdbus-glib-<span style="color: #000000;">1</span>-dev libgtk2.0-dev libgudev-<span style="color: #000000;">1.0</span>-dev libwebkit-dev libnotify-dev libgstreamer0.10-dev libgstreamer-plugins-base0.10-dev</pre></div></div>

<h4>Step 2.) Get the Source Code</h4>
<p>Create a folder for it, move to it, then grab the latest source code via subversion like this:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">mkdir</span> handbrake
<span style="color: #7a0874; font-weight: bold;">cd</span> handbrake
<span style="color: #c20cb9; font-weight: bold;">svn</span> checkout <span style="color: #c20cb9; font-weight: bold;">svn</span>:<span style="color: #000000; font-weight: bold;">//</span>svn.handbrake.fr<span style="color: #000000; font-weight: bold;">/</span>HandBrake<span style="color: #000000; font-weight: bold;">/</span>trunk hb-trunk</pre></div></div>

<h4>Step 3.) Build It!</h4>
<p>Once we&#8217;re in the right place, this configure line with the given switch will configure and make Handbrake in one fell swoop:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">cd</span> hb-trunk
.<span style="color: #000000; font-weight: bold;">/</span>configure <span style="color: #660033;">--launch</span></pre></div></div>

<h4>Step 4.) Test It!</h4>
<p>After a successful build, you&#8217;ll see the executable <strong>HandBrake-CLI</strong> in the <strong>build</strong> folder &#8211; but you&#8217;re probably after the GUI version, which is tucked away in <strong>build/gtk/src</strong> and called <strong>ghb</strong> &#8211; just go to the right folder, launch it and give it a try out &#8211; should be absolutely mint.</p>
<p>There are a stack of different options for the encoding process which can slow down the encode/transcode process and increase the quality &#8211; I went with these final settings to get high encoding quality without the encode process taking all week:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #007800;">ref</span>=<span style="color: #000000;">2</span>:<span style="color: #007800;">bframes</span>=<span style="color: #000000;">2</span>:<span style="color: #007800;">subme</span>=<span style="color: #000000;">6</span>:<span style="color: #007800;">trellis</span>=<span style="color: #000000;">2</span>:b-pyramid=<span style="color: #000000;">1</span>:b-adapt=<span style="color: #000000;">2</span>:<span style="color: #007800;">direct</span>=auto:no-fast-pskip=<span style="color: #000000;">1</span></pre></div></div>

<div id="attachment_2572" class="wp-caption aligncenter" style="width: 674px"><img src="http://r3dux.org/wp-content/uploads/2010/05/HandBrake-Working.gif" alt="HandBrake - Working" title="HandBrake - Working" width="664" height="512" class="size-full wp-image-2572" /><p class="wp-caption-text">HandBrake - Now Working! Woo-Hoo!</p></div>
<p>Cheers!</p>


<p>Related posts:<ol><li><a href='http://r3dux.org/2010/05/how-to-get-a-canon-mp240-printer-working-in-ubuntu-10-04-3264-bit/' rel='bookmark' title='Permanent Link: How To: Get a Canon MP240 Printer Working in Ubuntu 10.04 32/64 Bit'>How To: Get a Canon MP240 Printer Working in Ubuntu 10.04 32/64 Bit</a></li>
<li><a href='http://r3dux.org/2010/06/how-to-install-the-official-sun-jdk-in-ubuntu-10-04/' rel='bookmark' title='Permanent Link: How-To: Install the Official Sun JDK in Ubuntu 10.04'>How-To: Install the Official Sun JDK in Ubuntu 10.04</a></li>
<li><a href='http://r3dux.org/2010/05/how-to-transform-your-stock-ubuntu-10-04-install-into-a-fully-operational-operating-system/' rel='bookmark' title='Permanent Link: How-To: Transform Your Stock Ubuntu 10.04 Install into a Fully Operational <strike>Battle Station</strike> Operating System'>How-To: Transform Your Stock Ubuntu 10.04 Install into a Fully Operational <strike>Battle Station</strike> Operating System</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://r3dux.org/2010/05/how-to-build-a-working-version-of-handbrake-for-ubuntu-10-04/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>How-To: Transform Your Stock Ubuntu 10.04 Install into a Fully Operational Battle Station Operating System</title>
		<link>http://r3dux.org/2010/05/how-to-transform-your-stock-ubuntu-10-04-install-into-a-fully-operational-operating-system/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=how-to-transform-your-stock-ubuntu-10-04-install-into-a-fully-operational-operating-system</link>
		<comments>http://r3dux.org/2010/05/how-to-transform-your-stock-ubuntu-10-04-install-into-a-fully-operational-operating-system/#comments</comments>
		<pubDate>Wed, 12 May 2010 13:01:52 +0000</pubDate>
		<dc:creator>r3dux</dc:creator>
				<category><![CDATA[How-To]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[10.04]]></category>
		<category><![CDATA[Add-ons]]></category>
		<category><![CDATA[install]]></category>
		<category><![CDATA[Plug-ins]]></category>
		<category><![CDATA[repository]]></category>
		<category><![CDATA[Synaptic]]></category>
		<category><![CDATA[Tweak]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://r3dux.org/?p=2522</guid>
		<description><![CDATA[I used to upgrade my Ubuntu distros after each release cycle, but it was never a very pleasant experience&#8230; There&#8217;d always be mismatched packages and configs, legacy cruft left lying around filling up my root partition, and all sorts of mismatch woes &#8211; so I ditched that for separate partitions for my root folder and [...]


Related posts:<ol><li><a href='http://r3dux.org/2009/05/how-to-install-open-office-31-from-debs-in-904-jaunty/' rel='bookmark' title='Permanent Link: How To: Install Open Office 3.1 from .debs in 9.04 Jaunty'>How To: Install Open Office 3.1 from .debs in 9.04 Jaunty</a></li>
<li><a href='http://r3dux.org/2010/06/how-to-install-the-official-sun-jdk-in-ubuntu-10-04/' rel='bookmark' title='Permanent Link: How-To: Install the Official Sun JDK in Ubuntu 10.04'>How-To: Install the Official Sun JDK in Ubuntu 10.04</a></li>
<li><a href='http://r3dux.org/2010/01/how-to-install-thunderbird-3-in-linux/' rel='bookmark' title='Permanent Link: How To: Install Thunderbird 3 in Linux'>How To: Install Thunderbird 3 in Linux</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>I used to upgrade my Ubuntu distros after each release cycle, but it was never a very pleasant experience&#8230; There&#8217;d always be mismatched packages and configs, legacy cruft left lying around filling up my root partition, and all sorts of mismatch woes &#8211; so I ditched that for separate partitions for my root folder and home folders, and now wipe the root folder with the newest release as and when it&#8217;s out.</p>
<p>Because I&#8217;ve done this a couple of times over the last few years, I feel I&#8217;m getting pretty good at getting the machine up &amp; running with everything I need at a pretty fast pace: maybe a day for all the core stuff, another to tweak the vast majority of everything so I have it as I want, and then just bits and pieces as they come up. This time, I thought I&#8217;d make a list of all the things I install (yes, I know you can automatically generate a list of installed packages) &#8211; because I also wanted to note <em>why</em> I install &#8216;em, you know, what are they good for, so the next time I install a fresh system I can just grab it all even quicker.</p>
<p>Now, a stock/standard Ubuntu distro is a pretty good thing &#8211; but it doesn&#8217;t come with everything you need, so with that in mind, I&#8217;d like to present a list of things that I think you also need, and that once you have in place you&#8217;ll be able to do most anything you need with your system with just a few clicks. Before you do any of this, it&#8217;s a good idea to open up <strong>System | Administration | Software Sources</strong> and enable the <strong>restricted</strong>,  <strong>universe</strong> and <strong>multiverse</strong> repositories as shown below:</p>
<p><img src="http://r3dux.org/wp-content/uploads/2010/05/UbuntuSoftwareSources.gif" alt="Ubuntu Software Sources" title="Ubuntu Software Sources" width="578" height="530" class="aligncenter size-full wp-image-2524" /></p>
<p>With that done, here&#8217;s the list of things you&#8217;ll likely want to have installed in no particular-order, and only roughly sectioned off into classes (system, sound &amp; media, social networking etc.):</p>
<table border="2" cellpadding="5">
<tr>
<th colspan="2">Freely Available In The Ubuntu Repositories</th>
</tr>
<tr>
<th>Package Name</th>
<th>Why Install It?</th>
</tr>
<tr>
<td colspan="2">System / Developer / Essential </td>
</tr>
<tr>
<td><strong>ubuntu-restricted-extras</strong></td>
<td>Meta-suite of proprietary software including the Flash plugin, DVD decoding libraries etc.</td>
</tr>
<tr>
<td><strong>build-essentials</strong></td>
<td>Tools to compile your own/open-source projects</td>
</tr>
<tr>
<td><strong>eclipse</strong></td>
<td>Multi-Language IDE &#8211; coding is good.</td</tr>
<tr>
<td><strong>codeblocks</strong></td>
<td>Another multi-language IDE, I&#8217;ve not used it too much as yet, but I hear good things about it&#8230;</td>
</tr>
<tr>
<td><strong>subversion</strong></td>
<td>Version control tool. Useful to checkout code trunks and compile open-source projects yourself</td>
</tr>
<tr>
<td><strong>scons</strong></td>
<td>Python-based build system &#8211; req&#8217;d to compile SCons-based projects (More info: <a href="http://www.scons.org/wiki/FrequentlyAskedQuestions">http://www.scons.org/wiki/FrequentlyAskedQuestions</a>)</td>
</tr>
<tr>
<td><strong>guake</strong></td>
<td>Quake-style terminal access for gnome. Awesome stuff. Change the keybindings for copy and paste to Ctrl+C and Ctrl+V for usabilities sake.</td>
</tr>
<tr>
<td><strong>nautilus-open-terminal</strong></td>
<td>Nautilus script that adds functionality to allow you to right-click on a folder and open a terminal at that point, saves you cd-ing all the way into long paths.</td>
</tr>
<tr>
<td><strong>php5</strong></td>
<td>It&#8217;s PHP. Version 5. Drags in apache2 with it.</td>
</tr>
<tr>
<td><strong>deskbar</strong></td>
<td>Search applet for the panel &#8211; finds your programs in the menu, amongst a hundred other things. I really couldn&#8217;t live without this.</td>
</tr>
<tr>
<td colspan="2">Utility / Office / Comms</td>
</tr>
<tr>
<td><strong>thunderbird</strong></td>
<td>Thunderbird 3, my email client o&#8217; choice. I&#8217;d written a <a href="http://r3dux.org/2010/01/how-to-install-thunderbird-3-in-linux/">guide for installing it in Ubuntu 9.10</a>, but it&#8217;s in the repos in 10.04, so that&#8217;s now obsolete&#8230;</td>
</tr>
<tr>
<td><strong>p7zip-full</strong></td>
<td>7zip archiver. Better compression than zip and a completely open format.</td>
</tr>
<tr>
<td><strong>pidgin</strong></td>
<td>Multi-chat-format-client (MSN, AOL, YahooMessenger etc.) I don&#8217;t like the packed-in empathy client too much&#8230;</td>
</tr>
<tr>
<td><strong>pidgin-plugin-pack</strong></td>
<td>Additional plugins for pidgin.</td>
</tr>
<tr>
<td><strong>xchat</strong></td>
<td>IRC (Internet Relay Chat) client</td>
</tr>
<tr>
<td colspan="2">Audio / Video</td>
</tr>
<tr>
<td><strong>audacity</strong></td>
<td>Very good audio editor</td>
</tr>
<tr>
<td><strong>ripperx</strong></td>
<td>Decent audio CD ripper, use with <strong>LAME</strong>. Also, it&#8217;s the only ripper I&#8217;ve found that doesn&#8217;t randomly fall over if it doesn&#8217;t like a CD&#8230;</p>
<p><strong>Warning</strong>: The current version (v2.7.2) has two bugs which are kinda scuppering it: it doesn&#8217;t add ID3 tags to tracks ripped beyond track 10, and it crashes at the end of each disc rip =/ It might be better to use something else for the time being, but I really don&#8217;t like SoundJuicer or anything, so I just run <strong>MusicBrainz Picard</strong> (package name: <strong>picard</strong>) on any folder of MP3s ripped from a disc to fix up the tags after ripping.</td>
</tr>
<tr>
<td><strong>lame</strong></td>
<td>The best mp3 codec to rip audio with. Use high quality VBR and the results are superb.</td>
</tr>
<tr>
<td><strong>soundconverter</strong></td>
<td>Easily convert audio files between formats.</td>
</tr>
<tr>
<td><strong>pautils</strong></td>
<td>PulseAudio utils, stream choosers, volume controls etc.</td>
</tr>
<tr>
<td><strong>gpodder</strong></td>
<td>Really good podcast client for gnome: subscribe to Linux Outlaws, This Week in Tech (TWiT) etc..</td>
</tr>
<tr>
<td><strong>mplayer</strong></td>
<td>Useful to get data to transcode .avi files to to DVDs (see <a href="http://r3dux.org/2010/02/how-to-transcode-avi-videos-to-video-dvds-in-linux/">this</a> article if you&#8217;re interested).</td>
</tr>
<tr>
<td><strong>ccsm</strong></td>
<td>Compiz config settings manager &#8211; lets you tweak your compiz effects in countless ways&#8230;</td>
</tr>
<tr>
<td><strong>compiz-fusion-plugins-extra</strong></td>
<td>Additional effects for compiz</td>
</tr>
<tr>
<td><strong>fusionicon</strong></td>
<td>A system tray icon for accessing compiz related settings and switching/reloading window managers. Best to set it to autorun on boot through <strong>System | Preferences | Startup Applications</strong>.</td>
</tr>
<tr>
<td><strong>python-sexy</strong></td>
<td>Library used by compiz to extend Gtk widget functionality (read more: <a href="http://www.chipx86.com/w/index.php/Libsexy">http://www.chipx86.com/w/index.php/Libsexy</a>)</td>
</tr>
<tr>
<td><strong>gnome-colors</strong></td>
<td>Additional icon themes &#8211; more choice is never a bad thing.</td>
</tr>
<tr>
<td><strong>screenlets</strong></td>
<td>Widget system for the gnome desktop. Grab some more screenlets from <a href="http://www.screenlets.org/index.php/Category:UserScreenlets">here</a> if you like (the NVidia and FuriousMoon screenlets are useful/pretty respectively).</td>
</tr>
<tr>
<td><strong>gimp</strong></td>
<td>The GNU Image Manipulation Program, which isn&#8217;t included on the CD for the first time this release..</td>
</tr>
<tr>
<td><strong>gimp-plugin-registry</strong></td>
<td>Useful GIMP plugins, including &#8220;Save for Web&#8230;&#8221;, which is a daily-use tool for me&#8230;</td>
</tr>
<tr>
<td><strong>cheese</strong></td>
<td>Mess around w/ your webcam</td>
</tr>
<tr>
<td><strong>camera-monitor</strong></td>
<td>A panel applet which indicates when your webcam is switched on &#8211; so you&#8217;ll know if <em>anybody else</em> is messing around with your webcam!</td>
</tr>
<tr>
<td><strong>blender</strong></td>
<td>3D modelling package. I WILL learn how to use it this year, fo&#8217; real!</td>
</tr>
<tr>
<td><strong>povray</strong></td>
<td>An old-school but excellent ray-tracer (creates images by back-tracing light rays from geometry), always good for a mess around. Get <strong>povray-examples</strong> and <strong>povray-docs</strong> while you&#8217;re at it.</td>
</tr>
<tr>
<td><strong>cbrpager</strong></td>
<td>A simple comic viewer for gnome</td>
</tr>
<tr>
<td colspan="2">Administration / Files / Network</td>
</tr>
<tr>
<td><strong>gadmin</strong></td>
<td>A suit of GUIs to administrate things on your system (proftpd, apache, squid etc.)</td>
</tr>
<tr>
<td><strong>proftpd</strong></td>
<td>FTP server, requires a fair bit of configuration, but I&#8217;ve written pretty solid article on it <a href="http://r3dux.org/2009/12/how-to-set-up-a-ftp-server-in-linux/">here</a> if you&#8217;re interested in hosting files on your own FTP server..</td>
</tr>
<tr>
<td><strong>filezilla</strong></td>
<td>An excellent FTP client to connect to FTP servers.</td>
</tr>
<tr>
<td><strong>sabnzbdplus</strong></td>
<td>A really good news group client &#8211; download stuff with far more peace of mind than using torrents. I&#8217;ve also written a guide for downloading stuff from newsgroups which you can find <a href="http://r3dux.org/2010/02/how-to-download-newsgroup-binaries-using-ipv6/">here</a> if you&#8217;re that way inclined&#8230;</td>
</tr>
<tr>
<td><strong>pypar2</strong></td>
<td>Tool to repair broken/corrupted/incomplete rar files using PAR(ity) files. Use with sabnazbdplus as and when needed.</td>
</tr>
<tr>
<td><strong>transmission</strong></td>
<td>An excellent bit-torrent client. Don&#8217;t forget to: Enable the block list &#038; update it, change encryption settings from &#8220;preferred&#8221; to &#8220;required&#8221;, and disable DHT peer exchange (here&#8217;s why: <a href="http://forums.phoenixlabs.org/showthread.php?t=15324">http://forums.phoenixlabs.org/showthread.php?t=15324</a>)</td>
</tr>
<tr>
<td><strong>dosbox</strong></td>
<td>A legacy PC emulator &#8211; run old DOS software if you need to. I use it to fire up ScreamTracker 3 occasionally.</td>
</tr>
</table>
<p>There&#8217;s a few other things you might want which aren&#8217;t in the standard Ubuntu respositories, too. Such as:</p>
<table border="2" cellpadding="5">
<tr>
<th colspan="3">Not Available In The Ubuntu Repositories</th>
</tr>
<tr>
<th>Application Name</th>
<th>Why Install It?</th>
<th>Get From</th>
</tr>
<tr>
<td><strong>webmin</strong></td>
<td>Tool to administrate your system through a web interface either locally or over the web. Either restrict administration to be from the local network or make your passwords strong if you allow external access from teh Internets!</td>
<td><a href="http://www.webmin.com/">http://www.webmin.com/</a></td>
</tr>
<tr>
<td><strong>google-earth</strong></td>
<td>Gaze longingly at home, and the pyramids, and other neat stuff on this blue/green sphere.</td>
<td><a href="http://earth.google.com/">http://earth.google.com/</a></td>
</tr>
<tr>
<td><strong>google-picassa</strong></td>
<td>Nice image organiser/basic photo adjustment tool. Can categorise images by faces (poorly) too! [I had to install this from the commandline for some reason. Used: sudo gdebi ./picassa-3_0-blah-blah.deb to install]</td>
<td><a href="http://picasa.google.com/linux/">http://picasa.google.com/linux/</a></td>
</tr>
<tr>
<td><strong>virtualbox</strong></td>
<td>Virtualisation software so you can run stuff like XP/Vista/Windows 7 from virtually from within Linux. Get this from Sun rather than the OSE (Open Source Edition) in the repositories if you want USB support.</td>
<td><a href="http://www.virtualbox.org/wiki/Downloads">http://www.virtualbox.org/wiki/Downloads</a></td>
</tr>
<tr>
<td><strong>handbrake</strong></td>
<td>Simple and yet powerful DVD ripper/video transcoder with a decent GUI. If you&#8217;re ripping a DVD just point it at the top level directory of the DVD and hit <strong>Open</strong> for it to pull in all the .vob files for you. </p>
<p><strong>Update</strong>: Don&#8217;t bother installing version 0.9.4 on Ubuntu 10.04 &#8211; it&#8217;s broken. Build yourself a working version from the freshest source using <a href="http://r3dux.org/2010/05/how-to-build-a-working-version-of-handbrake-for-ubuntu-10-04/">this</a> guide!</td>
<td><a href="http://handbrake.fr/">http://handbrake.fr/</a></td>
</tr>
<tr>
<td><strong>nautilus elementary</strong></td>
<td>Nice transparency effects for Nautilus</td>
<td><a href="http://www.webupd8.org/2010/04/install-nautilus-elementary-230-via-ppa.html">http://www.webupd8.org/2010/04/install-nautilus-elementary-230-via-ppa.html</a></td>
</tr>
<tr>
<td><strong>ubuntu tweak</strong></td>
<td> Tweak ubuntu like a mother-b</td>
<td><a href="http://ubuntu-tweak.com/">http://ubuntu-tweak.com/</a></td>
</tr>
</table>
<p>You might not need some of that stuff, but for me it turns a good basic install into the real deal that does everything I need. And I absolutely love it <img src='http://r3dux.org/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>


<p>Related posts:<ol><li><a href='http://r3dux.org/2009/05/how-to-install-open-office-31-from-debs-in-904-jaunty/' rel='bookmark' title='Permanent Link: How To: Install Open Office 3.1 from .debs in 9.04 Jaunty'>How To: Install Open Office 3.1 from .debs in 9.04 Jaunty</a></li>
<li><a href='http://r3dux.org/2010/06/how-to-install-the-official-sun-jdk-in-ubuntu-10-04/' rel='bookmark' title='Permanent Link: How-To: Install the Official Sun JDK in Ubuntu 10.04'>How-To: Install the Official Sun JDK in Ubuntu 10.04</a></li>
<li><a href='http://r3dux.org/2010/01/how-to-install-thunderbird-3-in-linux/' rel='bookmark' title='Permanent Link: How To: Install Thunderbird 3 in Linux'>How To: Install Thunderbird 3 in Linux</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://r3dux.org/2010/05/how-to-transform-your-stock-ubuntu-10-04-install-into-a-fully-operational-operating-system/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>How-To: IOQuake3 Linux Tips n&#8217; Tricks</title>
		<link>http://r3dux.org/2010/05/how-to-ioquake3-linux-tips-n-tricks/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=how-to-ioquake3-linux-tips-n-tricks</link>
		<comments>http://r3dux.org/2010/05/how-to-ioquake3-linux-tips-n-tricks/#comments</comments>
		<pubDate>Wed, 12 May 2010 07:56:40 +0000</pubDate>
		<dc:creator>r3dux</dc:creator>
				<category><![CDATA[Gaming]]></category>
		<category><![CDATA[How-To]]></category>
		<category><![CDATA[Demos]]></category>
		<category><![CDATA[Fixes]]></category>
		<category><![CDATA[IOQuake]]></category>
		<category><![CDATA[IOQuake3]]></category>
		<category><![CDATA[quake]]></category>
		<category><![CDATA[Quake 3]]></category>
		<category><![CDATA[quake III arena]]></category>
		<category><![CDATA[Resolution]]></category>

		<guid isPermaLink="false">http://r3dux.org/?p=2505</guid>
		<description><![CDATA[I had to build a copy of IOQuake3 (Q3 from now on) the other day, as the version I had wouldn&#8217;t spawn bots on 64-bit Linux. Did that &#8211; worked well, but I found out a couple of other things you can do and fixes you can make to maximise the entire Q3 experience, so [...]


Related posts:<ol><li><a href='http://r3dux.org/2010/05/how-to-fix-missing-bots-in-ioquake3-in-linux/' rel='bookmark' title='Permanent Link: How-To: Fix Missing Bots in ioquake3 in Linux'>How-To: Fix Missing Bots in ioquake3 in Linux</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>I had to <a href="http://r3dux.org/2010/05/how-to-fix-missing-bots-in-ioquake3-in-linux/">build a copy of IOQuake3</a> (Q3 from now on) the other day, as the version I had wouldn&#8217;t spawn bots on 64-bit Linux. Did that &#8211; worked well, but I found out a couple of other things you can do and fixes you can make to maximise the entire Q3 experience, so I thought I&#8217;d jot &#8216;em down&#8230;</p>
<h4>Run At Any Resolution</h4>
<p>By default, Q3 gives you a rather poor list of available resolutions &#8211; to see what&#8217;s available, just hit the <strong>tilde</strong> key (i.e. ` &#8211; backtick, just left of the &#8220;1&#8243; key) and type: <strong>\modelist</strong> and you&#8217;ll see something like this:</p>
<p><a href="http://r3dux.org/wp-content/uploads/2010/05/ioquake3-modelist.jpg"><img src="http://r3dux.org/wp-content/uploads/2010/05/ioquake3-modelist.jpg" alt="ioquake3 - modelist" title="ioquake3 - modelist" width="642" height="401" class="aligncenter size-full wp-image-2506" /></a></p>
<p>Well, we can do better than that &#8211; just enter the following couple of lines (changing the width and height to any valid, known resolution) and you&#8217;re set! Personally, I use these:</p>
<pre>\r_mode = -1
\r_customwidth 1920
\r_customheight 1080
\vid_restart</pre>
<p>And presto &#8211; full resolution! Be aware than if change any options in the <strong>Options | System</strong> part of Q3 it&#8217;ll override your custom resolution, so you&#8217;ll need to set it back by repeating the above lines.</p>
<p><img src="http://r3dux.org/wp-content/uploads/2010/05/ioquake3-change-resolution.jpg" alt="ioquake3 - custom resolution" title="ioquake3 - custom resolution" width="482" height="383" class="aligncenter size-full wp-image-2507" /></p>
<p>You might see some people talking about changing <strong>\r_customaspect</strong> (which by default simply has the value <strong>1</strong>), but I didn&#8217;t really see it doing a great deal. But if you want to experiment yourself, your aspect ratio is just your horizontal resolution divided by your vertical resolution, so for me it&#8217;d be 1920 divided by 1080, which gives 1.7777778, so I might put it just as 1.7 or 1.8 &#8211; but really, I didn&#8217;t see much if any difference when I&#8217;ve messed with it, apart from a possible slowdown when I actually used 1.77777778, which could have just been my perception of things&#8230; I did a quick side-by-side comparison with different <strong>r_customaspect</strong> values and did a <strong>\vid_restart</strong> between each one:</p>
<p><img src="http://r3dux.org/wp-content/uploads/2010/05/ioquake3-customaspectdifference.jpg" alt="ioquake3 - custom aspect difference [None!]" title="ioquake3 - custom aspect difference [None!]" width="863" height="370" class="aligncenter size-full wp-image-2512" /></p>
<h4>Record and Play Demos</h4>
<p>To record demos (i.e. record you playing against your mates or randoms) you need two commands which you can happily issue from the command window (i.e. stab tilda and type &#8216;em):</p>
<ul>
<li><strong>record</strong> &#8211; records a demo</li>
<li><strong>stoprecord</strong> &#8211; you guessed it, stops the recording&#8230;</li>
</ul>
<p>However, typing these at the prompt can be a pain, so why not just bind them to some keys? You can do this easily enough by opening the file <strong>~/.q3a/baseq3/q3config.cfg</strong> and adding the following lines somewhere in it (then saving it, obv!):</p>
<pre>bind F5 "record"
bind F6 "stoprecord"</pre>
<p>Now, all you need to do is stab F5 to start recording a game and F6 to stop the recording. You might see some moaning about needing <strong>g_syncronousclients 1</strong> set, but you can safely ignore it as it&#8217;s a legacy requirement that doesn&#8217;t even exist in recent versions of Q3.</p>
<p>Your demo will be recorded with the filename <strong>demoXXXX.dm_68</strong>, where XXXX is a number starting at 0000 and going upwards with each demo recorded. It&#8217;ll be saved in the folder <strong>~/.q3a/baseq3/demos/</strong>, but when you go to play it from the <strong>Demos</strong> part of the main menu &#8211; it won&#8217;t play. Instead, it&#8217;ll come up with the error &#8220;Couldn&#8217;t open demos/demo0000.dm_68&#8243; or the like:</p>
<p><img src="http://r3dux.org/wp-content/uploads/2010/05/ioquake3-demo-error.jpg" alt="ioquake3 demo error" title="ioquake3 demo error" width="609" height="234" class="aligncenter size-full wp-image-2515" /></p>
<p>The <strong>fix/workaround</strong> for this is to go to the location of your demos (<strong>~/.q3a/baseq3/demos/</strong>) and <strong>RENAME THE FILE TO ALL CAPITALS</strong>! No, really. I guess this is a really old error which has reared it&#8217;s ugly head because Windows systems aren&#8217;t case sensitive (so myfile.txt, MYFILE.TXT and MyFiLe.TxT are all seen as the same thing to Windows) whereas Linux takes case sensitivity into account&#8230; I&#8217;m tempted to go digging in the code and apply an <em>upcase</em> statement to the demo filename retrieval mechanism&#8230;</p>
<h4>Wrap-up</h4>
<p>I guess those are the main two things I&#8217;ve been concerned about getting working properly, besides <a href="http://r3dux.org/2010/05/how-to-fix-missing-bots-in-ioquake3-in-linux/">getting the thing to work in the first place</a>, so I guess I&#8217;ll leave the VOIP stuff until I&#8217;ve got some more time&#8230; Got any comments, suggestions, improvements? Sling &#8216;em in the comments! Cheers! <img src='http://r3dux.org/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>


<p>Related posts:<ol><li><a href='http://r3dux.org/2010/05/how-to-fix-missing-bots-in-ioquake3-in-linux/' rel='bookmark' title='Permanent Link: How-To: Fix Missing Bots in ioquake3 in Linux'>How-To: Fix Missing Bots in ioquake3 in Linux</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://r3dux.org/2010/05/how-to-ioquake3-linux-tips-n-tricks/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
