<?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>Coding Friends &#187; hostname</title>
	<atom:link href="http://www.codingfriends.com/index.php/tag/hostname/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.codingfriends.com</link>
	<description>Coding Friends, place for developers.</description>
	<lastBuildDate>Sun, 04 Dec 2011 21:11:08 +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>changing the hostname</title>
		<link>http://www.codingfriends.com/index.php/2010/02/09/changing-the-hostname/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=changing-the-hostname</link>
		<comments>http://www.codingfriends.com/index.php/2010/02/09/changing-the-hostname/#comments</comments>
		<pubDate>Tue, 09 Feb 2010 21:17:34 +0000</pubDate>
		<dc:creator>genux</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[hostname]]></category>

		<guid isPermaLink="false">http://www.codingfriends.com/?p=678</guid>
		<description><![CDATA[To change the hostname of a linux distribution you can either change the hostname on-the-fly, but it does not restore it after a reboot. To change the hostname on-the-fly you can do echo &#34;your new hostname&#34; &#62; /proc/sys/kernel/hostname on a ubuntu/debian system to alter the hostname after a reboot you can alter the /etc/hostname file, [...]]]></description>
			<content:encoded><![CDATA[<p>To change the hostname of a linux distribution you can either change the hostname on-the-fly, but it does not restore it after a reboot.  To change the hostname on-the-fly you can do</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: #ff0000;">&quot;your new hostname&quot;</span> <span style="color: #000000; font-weight: bold;">&gt;</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>kernel<span style="color: #000000; font-weight: bold;">/</span><span style="color: #c20cb9; font-weight: bold;">hostname</span></pre></div></div>

<p>on a ubuntu/debian system to alter the hostname after a reboot you can alter the </p>
<p>/etc/hostname</p>
<p>file, if you cannot find the hostname file there, you can search for the file within the /etc directory by</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">grep</span> <span style="color: #660033;">-R</span> <span style="color: #ff0000;">&quot;your hostname&quot;</span> <span style="color: #000000; font-weight: bold;">/</span>etc</pre></div></div>

<p>it will display a few files, but you should find out where your hostname is set, normally either within /etc/sysconfig or /etc/network directories.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.codingfriends.com/index.php/2010/02/09/changing-the-hostname/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

