<?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>h3x.no &#187; Software</title>
	<atom:link href="http://h3x.no/category/software/feed" rel="self" type="application/rss+xml" />
	<link>http://h3x.no</link>
	<description>Tor Henning Ueland`s thoughts about technology and other stuff</description>
	<lastBuildDate>Mon, 20 Feb 2012 10:07:52 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Windows is unable to install to the selected location. Error 0&#215;80300001</title>
		<link>http://h3x.no/2012/02/13/windows-is-unable-to-install-to-the-selected-location-error-0x80300001</link>
		<comments>http://h3x.no/2012/02/13/windows-is-unable-to-install-to-the-selected-location-error-0x80300001#comments</comments>
		<pubDate>Mon, 13 Feb 2012 20:32:24 +0000</pubDate>
		<dc:creator>Tor Henning Ueland</dc:creator>
				<category><![CDATA[Everything else]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[installation]]></category>
		<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://h3x.no/?p=1105</guid>
		<description><![CDATA[After installing drivers during a Windows-installation you might get this error message when you select a drive to install it on &#8220;windows is unable to install to the selected location. Error 0&#215;80300001&#8243; This is another (strange) way for Windows to &#8230; <a href="http://h3x.no/2012/02/13/windows-is-unable-to-install-to-the-selected-location-error-0x80300001">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>After installing drivers during a Windows-installation you might get this error message when you select a drive to install it on &#8220;windows is unable to install to the selected location. Error 0&#215;80300001&#8243;</p>
<p>This is another (strange) way for Windows to say that you have not inserted the Windows CD/DVD again. Put it back in again, wait a second and then the error message should disappear. (If it does not, try to hit refresh after putting the CD in)</p>
]]></content:encoded>
			<wfw:commentRss>http://h3x.no/2012/02/13/windows-is-unable-to-install-to-the-selected-location-error-0x80300001/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Yum on Red Hat 5 hangs when using proxy</title>
		<link>http://h3x.no/2012/02/05/yum-on-red-hat-5-hangs-when-using-proxy</link>
		<comments>http://h3x.no/2012/02/05/yum-on-red-hat-5-hangs-when-using-proxy#comments</comments>
		<pubDate>Sun, 05 Feb 2012 20:24:43 +0000</pubDate>
		<dc:creator>Tor Henning Ueland</dc:creator>
				<category><![CDATA[Red Hat]]></category>
		<category><![CDATA[proxy]]></category>
		<category><![CDATA[Yum]]></category>

		<guid isPermaLink="false">http://h3x.no/?p=1098</guid>
		<description><![CDATA[I had a machine that started hanging when running yum update on it. And the only way to actually stop yum then was to kill the process from another shell, pretty strange. I noticed that it was trying to look &#8230; <a href="http://h3x.no/2012/02/05/yum-on-red-hat-5-hangs-when-using-proxy">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I had a machine that started hanging when running yum update on it. And the only way to actually stop yum then was to kill the process from another shell, pretty strange.</p>
<p>I noticed that it was trying to look up and old proxy server which was not in use anymore, the machine itself got online without issues on other services but then i realised that the file &#8220;<strong>/etc/sysconfig/rhn/up2date&#8221;</strong> had a entry for yum proxy settings.</p>
<p>It is also worth checking all files in your <strong>&#8220;/etc/yum&#8221;</strong> folder and make sure that none of your repo files have dedicated proxy settings defined since that will override anything from up2date.</p>
<p>When commenting out that proxy setting, yum started behaving again.</p>
]]></content:encoded>
			<wfw:commentRss>http://h3x.no/2012/02/05/yum-on-red-hat-5-hangs-when-using-proxy/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Wrong charset for cron</title>
		<link>http://h3x.no/2012/01/28/wrong-charset-for-cron</link>
		<comments>http://h3x.no/2012/01/28/wrong-charset-for-cron#comments</comments>
		<pubDate>Sat, 28 Jan 2012 14:02:41 +0000</pubDate>
		<dc:creator>Tor Henning Ueland</dc:creator>
				<category><![CDATA[Everything else]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[charset]]></category>
		<category><![CDATA[cron]]></category>

		<guid isPermaLink="false">http://h3x.no/?p=1088</guid>
		<description><![CDATA[I got a issue on a export job i had that was running daily on which the charset of the data exported wer wrong, and this did not happen when i ran the job manually. I noticed that Cron used &#8230; <a href="http://h3x.no/2012/01/28/wrong-charset-for-cron">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I got a issue on a export job i had that was running daily on which the charset of the data exported wer wrong, and this did not happen when i ran the job manually. I noticed that Cron used the charset &#8220;POSIX&#8221; instead of en_US.UTF-8 which i used. I fixed this by adding &#8220;<strong>LANG=en_US.UTF-8</strong>&#8221; to the file <strong>/etc/default/locale</strong>.</p>
<p>It appears that when the LANG variable is not set in that file, Cron will fall back to using the POSIX charset.</p>
]]></content:encoded>
			<wfw:commentRss>http://h3x.no/2012/01/28/wrong-charset-for-cron/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Getting Windows 2008 server uptime via the command line</title>
		<link>http://h3x.no/2011/09/12/getting-windows-2008-server-uptime-via-the-command-line</link>
		<comments>http://h3x.no/2011/09/12/getting-windows-2008-server-uptime-via-the-command-line#comments</comments>
		<pubDate>Mon, 12 Sep 2011 14:10:49 +0000</pubDate>
		<dc:creator>Tor Henning Ueland</dc:creator>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[uptime]]></category>

		<guid isPermaLink="false">http://h3x.no/?p=1084</guid>
		<description><![CDATA[A simple one liner to get hold of Windows 2008 server uptime: systeminfo &#124; find &#34;System Boot Time&#34;]]></description>
			<content:encoded><![CDATA[<p>A simple one liner to get hold of Windows 2008 server uptime:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">systeminfo <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">find</span> <span style="color: #ff0000;">&quot;System Boot Time&quot;</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://h3x.no/2011/09/12/getting-windows-2008-server-uptime-via-the-command-line/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The effects of old NIC drivers on Data Protector</title>
		<link>http://h3x.no/2011/09/06/the-effects-of-old-nic-drivers-on-data-protector</link>
		<comments>http://h3x.no/2011/09/06/the-effects-of-old-nic-drivers-on-data-protector#comments</comments>
		<pubDate>Tue, 06 Sep 2011 19:09:19 +0000</pubDate>
		<dc:creator>Tor Henning Ueland</dc:creator>
				<category><![CDATA[Hardware]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[data protector]]></category>
		<category><![CDATA[drivers]]></category>
		<category><![CDATA[NIC]]></category>
		<category><![CDATA[performance]]></category>

		<guid isPermaLink="false">http://h3x.no/?p=1074</guid>
		<description><![CDATA[During the Data Protector migration we noticed that the performance on the new Data Protector Cell Manager was a lot lower than the performance on the old solution. Speeds of around 100Mbit was the best we ever could get from &#8230; <a href="http://h3x.no/2011/09/06/the-effects-of-old-nic-drivers-on-data-protector">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>During the Data Protector migration we noticed that the performance on the new Data Protector Cell Manager was a lot lower than the performance on the old solution. Speeds of around 100Mbit was the best we ever could get from it, although the machine is running on a gigabit network.</p>
<p>To make the case even more strange, performance on other network tasks was quite normal where the gigabit  connection was maxed ASAP.</p>
<p>After some digging, the problem turned out to be that the server was running the old default drivers for the NIC (Broadcom BCM5708S netXtreme II GigE). Windows update has in the latest Windows versions become better on delivering driver updates but that was not the case this time.</p>
<p>After installing the newest drivers from Broadcom`s website the performance jumped straight to gigabit even on Data Protector.</p>
]]></content:encoded>
			<wfw:commentRss>http://h3x.no/2011/09/06/the-effects-of-old-nic-drivers-on-data-protector/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Dataprotector: System error: HOST_NOT_FOUND</title>
		<link>http://h3x.no/2011/09/05/dataprotector-system-error-host_not_found</link>
		<comments>http://h3x.no/2011/09/05/dataprotector-system-error-host_not_found#comments</comments>
		<pubDate>Mon, 05 Sep 2011 18:55:16 +0000</pubDate>
		<dc:creator>Tor Henning Ueland</dc:creator>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[data protector]]></category>

		<guid isPermaLink="false">http://h3x.no/?p=1076</guid>
		<description><![CDATA[I have been working a bit with migrating a Data Protector cell manager, when moving a client i recieved the following error: &#91;Critical&#93; From: BDA-NET@ &#34; &#91;/boot&#93;&#34; Time: 02.09.2011 09:08:03 Cannot connect to Media Agent on system , port 49708 &#8230; <a href="http://h3x.no/2011/09/05/dataprotector-system-error-host_not_found">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I have been working a bit with migrating a Data Protector cell manager, when moving a client i recieved the following error:</p>

<div class="wp_syntax"><div class="code"><pre class="" style="font-family:monospace;"><span class="br0">&#91;</span>Critical<span class="br0">&#93;</span> From: BDA-NET@ &quot; <span class="br0">&#91;</span>/boot<span class="br0">&#93;</span>&quot;  Time: 02.09.2011 09:08:03
Cannot connect to Media Agent on system , port <span style="">49708</span> <span class="br0">&#40;</span>IPC Invalid Hostname or IP Address
System error: HOST_NOT_FOUND<span class="br0">&#41;</span> =&gt;
aborting.</pre></div></div>

<p>The cause for this was that the client could not look up the cell manager. I solved this by simply adding the cell manager in the hosts file of the client. You can verify this problem by simply doing a ping or nslookup against the cell manager, from the client itself.</p>
]]></content:encoded>
			<wfw:commentRss>http://h3x.no/2011/09/05/dataprotector-system-error-host_not_found/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Expanding a kVM disk image</title>
		<link>http://h3x.no/2011/08/14/expanding-a-kvm-disk-image</link>
		<comments>http://h3x.no/2011/08/14/expanding-a-kvm-disk-image#comments</comments>
		<pubDate>Sun, 14 Aug 2011 19:24:31 +0000</pubDate>
		<dc:creator>Tor Henning Ueland</dc:creator>
				<category><![CDATA[Hardware]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[disk]]></category>
		<category><![CDATA[kvm]]></category>
		<category><![CDATA[qemu]]></category>
		<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://h3x.no/?p=1055</guid>
		<description><![CDATA[Had to expand a KVM virtual machine today. Luckily, that`s pretty straight forward. You simply create a new disk image with the extra size needed, merge it into the original disk and voila. Then you just need to partition in &#8230; <a href="http://h3x.no/2011/08/14/expanding-a-kvm-disk-image">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Had to expand a KVM virtual machine today. Luckily, that`s pretty straight forward. You simply create a new disk image with the extra size needed, merge it into the original disk and voila. Then you just need to partition in the extra space and you are good to go.</p>
<p><strong>How-to:</strong></p>
<p><strong>1: Halt your virtual machine.</strong></p>
<p>You need to stop your virtual machine before going wild with the drive. Virsh stop &lt;vm name&gt;, or virsh destroy &lt;vm name&gt; if it somehow wont stop.</p>
<p><strong>2: Create a disk with the extra space needed:</strong></p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">qemu-img create <span style="color: #660033;">-f</span> raw 5gig.img 5G</pre></div></div>

<p><strong>3: Merge it into the disk you are working with</strong></p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">cat</span> 5gig.img <span style="color: #000000; font-weight: bold;">&gt;&gt;</span> yourdisk.img</pre></div></div>

<p><strong>4: Boot up and and partition your drive.</strong></p>
<p>Then start up your virtual machine again with virsh start &lt;vm name&gt;. If you use Windows server, all you need to do is to visit disk managent, right click your drive with little free space and choose &#8220;extend partition&#8221;. The job takes seconds and does not require any reboot.</p>
]]></content:encoded>
			<wfw:commentRss>http://h3x.no/2011/08/14/expanding-a-kvm-disk-image/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Tuning Ubuntu mdadm RAID5/6</title>
		<link>http://h3x.no/2011/07/09/tuning-ubuntu-mdadm-raid56</link>
		<comments>http://h3x.no/2011/07/09/tuning-ubuntu-mdadm-raid56#comments</comments>
		<pubDate>Sat, 09 Jul 2011 19:59:58 +0000</pubDate>
		<dc:creator>Tor Henning Ueland</dc:creator>
				<category><![CDATA[Hardware]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[mdadm]]></category>
		<category><![CDATA[performance]]></category>
		<category><![CDATA[raid]]></category>
		<category><![CDATA[raid5]]></category>
		<category><![CDATA[raid6]]></category>
		<category><![CDATA[tuning]]></category>

		<guid isPermaLink="false">http://h3x.no/?p=1038</guid>
		<description><![CDATA[If you are using mdadm RAID 5 or 6 with Ubuntu, you might notice that the performance is not all uber all the time. Reason for this is that the default tuning settings for Ubuntu is set to rather motdest &#8230; <a href="http://h3x.no/2011/07/09/tuning-ubuntu-mdadm-raid56">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>If you are using mdadm RAID 5 or 6 with Ubuntu, you might notice that the performance is not all uber all the time. Reason for this is that the default tuning settings for Ubuntu is set to rather motdest values. These can lucikly easily be tuned. I will in this article increase some settings until my read and write performance against my RAID 6 has been improved a lot.</p>
<p><strong>My setup:</strong><br />
CPU: Intel(R) Core(TM)2 Quad  CPU   Q9300<br />
RAM: 16G<br />
Drives: 11 drives in one RAID6 with drives split over two cheap PCI-E x4 controllers and the motherboard`s internal controller.</p>
<p>I will test my system between each tuning by using dd for read and write testing. Since i have a nice amount of RAM available, i will use a test file of 36G. (bs=16k) Between each test (both read and write), i clear the OS disk cache with the command:</p>

<div class="wp_syntax"><div class="code"><pre class="" style="font-family:monospace;">sync;echo <span style="">3</span> &gt; /proc/sys/vm/drop_caches</pre></div></div>

<h2><strong>Tuning stripe_cache_size </strong></h2>
<p><strong></strong>stripe_cache_size affects RAM used by mdadm to <strong>writing of data</strong>. Ubuntu`s default value is 256, you can verify your value by doing:</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>block<span style="color: #000000; font-weight: bold;">/</span>md0<span style="color: #000000; font-weight: bold;">/</span>md<span style="color: #000000; font-weight: bold;">/</span>stripe_cache_size</pre></div></div>

<p>And changing it with:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #000000; font-weight: bold;">*</span>number<span style="color: #000000; font-weight: bold;">*</span> <span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #000000; font-weight: bold;">/</span>sys<span style="color: #000000; font-weight: bold;">/</span>block<span style="color: #000000; font-weight: bold;">/</span>md0<span style="color: #000000; font-weight: bold;">/</span>md<span style="color: #000000; font-weight: bold;">/</span>stripe_cache_size</pre></div></div>

<p><strong>Test results with stripe_cache_size=256</strong><br />
- Write performance: 174 MB/s</p>
<p>Not to good, i therefore increased it some levels, each level with result is described below:</p>
<p><strong>Test results with stripe_cache_size=512</strong><br />
- Write performance: 212 MB/s</p>
<p><strong>Test results with stripe_cache_size=1024</strong><br />
- Write performance: 237 MB/s</p>
<p><strong>Test results with stripe_cache_size=2048</strong><br />
- Write performance: 254 MB/s</p>
<p><strong>Test results with stripe_cache_size=4096</strong><br />
- Write performance: 295 MB/s</p>
<p><strong>Test results with stripe_cache_size=8192</strong><br />
- Write performance: 362 MB/s</p>
<p><strong>Test results with stripe_cache_size=16384</strong><br />
- Write performance: 293 MB/s</p>
<p><strong>Test results with stripe_cache_size=32768</strong><br />
- Write performance: 326 MB/s</p>
<p>So, going from 256 to 32K ~doubled my write performance, not bad! <img src='http://h3x.no/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<h2>Tuning Read Ahead</h2>
<p>Time to change a bit on read ahead, which should impact <strong>read performance</strong>. Default read ahead value is &#8220;1536&#8243;, and you can change it with the command:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">blockdev <span style="color: #660033;">--setra</span> <span style="color: #000000; font-weight: bold;">*</span>number<span style="color: #000000; font-weight: bold;">*</span> <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>md0</pre></div></div>

<p><strong>Test results with Read Ahead @ 1536</strong><br />
- Read performance: 717 MB/s</p>
<p><strong>Test results with Read Ahead @ 4096</strong><br />
- Read performance: 746 MB/s</p>
<p><strong>Test results with Read Ahead @ 32768</strong><br />
- Read performance: 731 MB/s</p>
<p><strong>Test results with Read Ahead @ 262144</strong><br />
- Read performance: 697 MB/s</p>
<p><strong>Test results with Read Ahead @ 524288</strong><br />
- Read performance: 630 MB/s</p>
<p>So oposite of the write performance tuning, this actually became worse for most of the settings. So 4096 is the best for my system.</p>
<h1>In conclution</h1>
<p>This is just an example on how different settings can have rather large impact on a system, both for the better and for the worse. If you are going to tune your system you have to test different setting for yourself and see what works best for your setup.  Higher values does not automaticly mean better results. I ended up with &#8220;stripe_cache_size=8192&#8243; and &#8220;Read Ahead @ 4096&#8243; for my system.</p>
<p>If you want to make sure that your changes is saved when rebooting the system, remember to add these commands (with your values) in /etc/rc.local.</p>
]]></content:encoded>
			<wfw:commentRss>http://h3x.no/2011/07/09/tuning-ubuntu-mdadm-raid56/feed</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>WordPress giving maintenance error message</title>
		<link>http://h3x.no/2011/06/04/wordpress-giving-maintenance-error-message</link>
		<comments>http://h3x.no/2011/06/04/wordpress-giving-maintenance-error-message#comments</comments>
		<pubDate>Sat, 04 Jun 2011 21:25:05 +0000</pubDate>
		<dc:creator>Tor Henning Ueland</dc:creator>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://h3x.no/?p=1022</guid>
		<description><![CDATA[If you have tried to upgrade a WordPress plugin or WordPress itself, and failed. You might have ended up with your blog only returning &#8220;Briefly unavailable for scheduled maintenance. Check back in a minute.&#8221; error message. The reason for this &#8230; <a href="http://h3x.no/2011/06/04/wordpress-giving-maintenance-error-message">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>If you have tried to upgrade a WordPress plugin or WordPress itself, and failed. You might have ended up with your blog only returning &#8220;Briefly unavailable for scheduled maintenance. Check back in a minute.&#8221; error message. The reason for this is that WordPress takes the blog down before running any upgrades, so the users wont get any nasty error messages. But in some rare cases, WordPress cant seem to turn itself back on afterwards.</p>
<p>The solution is to delete the file &#8220;.maintenance&#8221; in your WWW-folder/website root folder. Your blog will then again begin to work as it should.</p>
]]></content:encoded>
			<wfw:commentRss>http://h3x.no/2011/06/04/wordpress-giving-maintenance-error-message/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Change hostname on Linode VPS</title>
		<link>http://h3x.no/2011/05/14/change-hostname-on-linode-vps</link>
		<comments>http://h3x.no/2011/05/14/change-hostname-on-linode-vps#comments</comments>
		<pubDate>Sat, 14 May 2011 20:35:19 +0000</pubDate>
		<dc:creator>Tor Henning Ueland</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[dhcp]]></category>
		<category><![CDATA[hostname]]></category>
		<category><![CDATA[linode]]></category>

		<guid isPermaLink="false">http://h3x.no/?p=1017</guid>
		<description><![CDATA[Linode explains pretty well how to change the hostname of your VPS. But they do not mention that in the latest Ubuntu it is set via Linode`s own DHCP server. So even if you set it via /etc/hostname and in &#8230; <a href="http://h3x.no/2011/05/14/change-hostname-on-linode-vps">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Linode explains pretty well <a href="http://library.linode.com/using-linux/administration-basics#sph_set-the-hostname">how to change the hostname</a> of your VPS. But they do not mention that in the latest Ubuntu it is set via Linode`s own DHCP server. So even if you set it via /etc/hostname and in hosts, it will still be overwritten by Linode`s own hostname given to your server.</p>
<p>The solution is to kindly thell DHCPCD to *not* override the hostname you have set, open /etc/default/dhcpcd and alter the following:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #007800;">SET_HOSTNAME</span>=<span style="color: #ff0000;">'yes'</span></pre></td></tr></table></div>

<p>to</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #007800;">SET_HOSTNAME</span>=<span style="color: #ff0000;">'no'</span></pre></td></tr></table></div>

<p>Reboot and voila! <img src='http://h3x.no/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://h3x.no/2011/05/14/change-hostname-on-linode-vps/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using apc
Page Caching using apc
Database Caching 19/22 queries in 0.007 seconds using apc

Served from: h3x.no @ 2012-05-17 18:04:43 -->
