<?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>Chesty's Blog &#187; ubuntu</title>
	<atom:link href="http://chesterton.id.au/blog/tag/ubuntu/feed/" rel="self" type="application/rss+xml" />
	<link>http://chesterton.id.au/blog</link>
	<description>Press Belly Button to Begin</description>
	<lastBuildDate>Thu, 03 Jun 2010 16:59:25 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Basic Hostname Set Up Part 2</title>
		<link>http://chesterton.id.au/blog/2010/06/04/basic-hostname-set-up-part-2/</link>
		<comments>http://chesterton.id.au/blog/2010/06/04/basic-hostname-set-up-part-2/#comments</comments>
		<pubDate>Thu, 03 Jun 2010 16:16:38 +0000</pubDate>
		<dc:creator>chesty</dc:creator>
				<category><![CDATA[LA]]></category>
		<category><![CDATA[Slug]]></category>
		<category><![CDATA[ubuntu-au]]></category>
		<category><![CDATA[hostname]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[sysadmin]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://chesterton.id.au/blog/?p=85</guid>
		<description><![CDATA[<p><a href="http://chesterton.id.au/blog/2010/06/04/basic-hostname-set-up-part-2/">Basic Hostname Set Up Part 2</a></p>
Basic Hostname Set Up Part 2 I left a few things unsaid in my previous post basic hostname set up, and after talking with some people about /etc/hosts, I thought a quick follow up is in order. Firstly, my preference is to use the ethernet&#8217;s ip address to tie the host name to the FQDN, [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://chesterton.id.au/blog/2010/06/04/basic-hostname-set-up-part-2/">Basic Hostname Set Up Part 2</a></p>
<p>I left a few things unsaid in my previous post <a href="http://chesterton.id.au/blog/2010/06/02/basic-hostname-set-up/">basic hostname set up</a>, and after talking with some people about <code>/etc/hosts</code>, I thought a quick follow up is in order.</p>
<p>Firstly, my preference is to use the ethernet&#8217;s ip address to tie the host name to the FQDN, but others like to use <code>127.0.1.1</code>. There&#8217;s a case where you really should use <code>127.0.1.1</code> and that&#8217;s in laptops where the ethernet interface might disappear when it&#8217;s disconnected, probably desktops with dynamic ip addresses, too. But for servers with a static ip address, take your pick, I chose to use eth0.</p>
<p>An example <code>/etc/hosts</code> for a laptop<br />
<code>127.0.0.1 localhost<br />
127.0.1.1 mymailname.com myhostname<br />
</code></p>
<p>Where myhostname is the host name configured in the kernel.</p>
<p>An example <code>/etc/hosts</code> for a server<br />
<code>127.0.0.1 localhost<br />
192.168.1.1 mymailname.com myhostname.mymailname.com someothername myhostname<br />
</code></p>
<p>When the kernel first boots, the host name is configured. How depends on the distribution. Ubuntu seems to use <code>/etc/hostname</code>. In my example <code>/etc/hostname</code> contains myhostname .</p>
<p>When you run the command <code>hostname</code> it does a <code>gethostname()</code> to get the configured host name. It doesn&#8217;t reread <code>/etc/hostname</code> every time, it&#8217;s stored in the kernel, presumably.</p>
<p>When you want the FQDN, you run <code>hostname -f</code>, it does a <code>gethostname()</code> to get the configured host name, then does a <code>getaddrinfo("myhostname",...)</code> to get the FQDN. Using the last <code>/etc/hosts</code> example, the FQDN is mymailname.com because it&#8217;s the first string after the ip address in the line where myhostname appears.</p>
<p>Short names such as the host name myhostname should go at the end of the line, what you want the FQDN to be should be the first string after the ip address, and any other names goes in the middle.</p>
<p>In my examples, I made the FQDN the mail name, because some distributions use the FQDN by default as the mail name. Ubuntu doesn&#8217;t, it appears to use <code>/etc/mailname</code>.</p>
<p>Anyway, that&#8217;s my understanding based on messing around and reading a man page. Hopefully I&#8217;ve explained how the host name and the FQDN is tied together in <code>/etc/hosts</code>.</p>
]]></content:encoded>
			<wfw:commentRss>http://chesterton.id.au/blog/2010/06/04/basic-hostname-set-up-part-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Basic Hostname Set Up</title>
		<link>http://chesterton.id.au/blog/2010/06/02/basic-hostname-set-up/</link>
		<comments>http://chesterton.id.au/blog/2010/06/02/basic-hostname-set-up/#comments</comments>
		<pubDate>Wed, 02 Jun 2010 08:15:21 +0000</pubDate>
		<dc:creator>chesty</dc:creator>
				<category><![CDATA[LA]]></category>
		<category><![CDATA[Slug]]></category>
		<category><![CDATA[ubuntu-au]]></category>
		<category><![CDATA[hostname]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[sysadmin]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://chesterton.id.au/blog/?p=80</guid>
		<description><![CDATA[<p><a href="http://chesterton.id.au/blog/2010/06/02/basic-hostname-set-up/">Basic Hostname Set Up</a></p>
Basic Hostname Set Up I was helping out someone with a postfix issue, and something just clicked that will speed up diagnosing similar problems. It&#8217;s not so much a postfix problem as a hostname problem, and it&#8217;s very basic. The symptom was, mail sent to the server at domain.com was being bounced. Looking at postfix [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://chesterton.id.au/blog/2010/06/02/basic-hostname-set-up/">Basic Hostname Set Up</a></p>
<p>I was helping out someone with a postfix issue, and something just clicked that will speed up diagnosing similar problems. It&#8217;s not so much a postfix problem as a hostname problem, and it&#8217;s very basic.</p>
<p>The symptom was, mail sent to the server at domain.com was being bounced. Looking at postfix logs, postfix was trying to deliver the mail to s123.s123. (something like that, anyway)</p>
<p>To the quick, <code>hostname</code> printed s123 and <code>hostname -f</code> said something to the tune of it couldn&#8217;t find the FQDN. </p>
<p>The fix, edit <code>/etc/hosts</code> to look like</p>
<p><code><br />
127.0.0.1 localhost<br />
1.2.3.4 domain.com s123<br />
</code></p>
<p>Where <code>1.2.3.4</code> is the ethernet&#8217;s ip address.</p>
<p>Now, <code>hostname</code> said s123 and <code>hostname -f</code> said domain.com . A restart of postfix, and it was accepting mail again.</p>
<p>The thing that clicked was the relationship between <code>/etc/hosts</code>, <code>hostname</code> and <code>hostname -f</code>.</p>
<p>See <a href="http://chesterton.id.au/blog/2010/06/04/basic-hostname-set-up-part-2/">basic hostname set up part 2</a></p>
]]></content:encoded>
			<wfw:commentRss>http://chesterton.id.au/blog/2010/06/02/basic-hostname-set-up/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Nice File Server For A Small Office</title>
		<link>http://chesterton.id.au/blog/2009/10/23/nice-file-server-for-a-small-office/</link>
		<comments>http://chesterton.id.au/blog/2009/10/23/nice-file-server-for-a-small-office/#comments</comments>
		<pubDate>Fri, 23 Oct 2009 12:46:38 +0000</pubDate>
		<dc:creator>chesty</dc:creator>
				<category><![CDATA[LA]]></category>
		<category><![CDATA[OSIA]]></category>
		<category><![CDATA[Slug]]></category>
		<category><![CDATA[ubuntu-au]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://chesterton.id.au/blog/?p=56</guid>
		<description><![CDATA[<p><a href="http://chesterton.id.au/blog/2009/10/23/nice-file-server-for-a-small-office/">Nice File Server For A Small Office</a></p>
Nice File Server For A Small Office I had a job come in last week for a linux file server to connect a few windows machines together, and a few printers. The client was exposed to a linux file server in a previous job, and wanted something similar. It was a small business, with not [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://chesterton.id.au/blog/2009/10/23/nice-file-server-for-a-small-office/">Nice File Server For A Small Office</a></p>
<p>I had a job come in last week for a <a href="http://barrang.com.au/linux/fileserver">linux file server</a> to connect a few windows machines together, and a few printers. The client was exposed to a linux file server in a previous job, and wanted something similar.</p>
<p>It was a small business, with not much money to spend, and the server was to be located in the office, no server room. This is the type of job I love doing.</p>
<p>I sourced an ex corporate desktop for about $150 including shipping, I think they can be had for a little less, but this was convenient. It was a P4 with SATA, which is what I was looking for. The ugliest case you could image, but had space for two hard drives. DVD writeable drive, 1 gig memory, built in gigabyte ethernet. It was perfect.</p>
<p>I bought two new 500 gig green SATA drives for RAID 1 configuration, $70 each, and an external 500 gig drive for backup, which ran $100. So about $400 in hardware, but a really nice set up, should be very reliable, and the data should be very safe.</p>
<p>I was a bit of a cowboy when it came to the operating system, with karmic about to be released, I chose it over jaunty or LTS because it had a newer Samba. Turns out the Samba version wasn&#8217;t very important as most of the PC&#8217;s were running XP home edition, which doesn&#8217;t even do domain logins.</p>
<p>I tired to convince the client to get two external drives to keep one off site in case of a fire or something. But instead we are using the DVD drive to write backups for off site storage.</p>
<p>It was a really nice job, gave me a lot of energy and the client is happy. Can&#8217;t ask for more than that.</p>
]]></content:encoded>
			<wfw:commentRss>http://chesterton.id.au/blog/2009/10/23/nice-file-server-for-a-small-office/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Eee PC Ubuntu WiFi On/Off</title>
		<link>http://chesterton.id.au/blog/2008/03/15/eee-pc-ubuntu-wifi-onoff/</link>
		<comments>http://chesterton.id.au/blog/2008/03/15/eee-pc-ubuntu-wifi-onoff/#comments</comments>
		<pubDate>Fri, 14 Mar 2008 14:09:16 +0000</pubDate>
		<dc:creator>chesty</dc:creator>
				<category><![CDATA[LA]]></category>
		<category><![CDATA[Slug]]></category>
		<category><![CDATA[eee pc]]></category>
		<category><![CDATA[ubuntu-au]]></category>
		<category><![CDATA[acpi]]></category>
		<category><![CDATA[eeepc]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[wifi]]></category>
		<category><![CDATA[wireless]]></category>

		<guid isPermaLink="false">http://chesterton.id.au/blog/2008/03/15/eee-pc-ubuntu-wifi-onoff/</guid>
		<description><![CDATA[<p><a href="http://chesterton.id.au/blog/2008/03/15/eee-pc-ubuntu-wifi-onoff/">Eee PC Ubuntu WiFi On/Off</a></p>
Eee PC Ubuntu WiFi On/Off One of the minor issues I had since installing ubuntu on my eee pc was I couldn&#8217;t work out how to turn the wifi off. There&#8217;s a Fn+F2 key combo that works in xandros, but it didn&#8217;t work for me in ubuntu. I tried googling for the answer and got [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://chesterton.id.au/blog/2008/03/15/eee-pc-ubuntu-wifi-onoff/">Eee PC Ubuntu WiFi On/Off</a></p>
<p>One of the minor issues I had since installing ubuntu on my eee pc was I couldn&#8217;t work out how to turn the wifi off. There&#8217;s a Fn+F2 key combo that works in xandros, but it didn&#8217;t work for me in ubuntu. I tried googling for the answer and got nowhere.</p>
<p>So, for google, to turn wifi off, I had to <code>echo 0 > /proc/acpi/asus/wlan</code> Turning it on is obviously <code>echo 1 > /proc/acpi/asus/wlan</code> </p>
<p>Another problem fixed (sort of), I wouldn&#8217;t mind fixing Fn+F2, but I&#8217;m happy enough with the echo for now.</p>
]]></content:encoded>
			<wfw:commentRss>http://chesterton.id.au/blog/2008/03/15/eee-pc-ubuntu-wifi-onoff/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Remotely Upgrading RHEL to Ubuntu</title>
		<link>http://chesterton.id.au/blog/2008/02/05/remotely-upgrading-rhel-to-ubuntu/</link>
		<comments>http://chesterton.id.au/blog/2008/02/05/remotely-upgrading-rhel-to-ubuntu/#comments</comments>
		<pubDate>Mon, 04 Feb 2008 18:47:44 +0000</pubDate>
		<dc:creator>chesty</dc:creator>
				<category><![CDATA[Slug]]></category>
		<category><![CDATA[ubuntu-au]]></category>
		<category><![CDATA[chesty]]></category>
		<category><![CDATA[install]]></category>
		<category><![CDATA[red hat]]></category>
		<category><![CDATA[rhel]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[upgrade]]></category>

		<guid isPermaLink="false">http://chesterton.id.au/blog/2008/02/05/remotely-upgrading-rhel-to-ubuntu/</guid>
		<description><![CDATA[<p><a href="http://chesterton.id.au/blog/2008/02/05/remotely-upgrading-rhel-to-ubuntu/">Remotely Upgrading RHEL to Ubuntu</a></p>
Remotely Upgrading RHEL to Ubuntu We were given a server to play with to do whatever we wanted, hosted in a US data centre. It was running RHEL 4.x, I could have worked with that, but it didn&#8217;t look like it was on a support contract, I wasn&#8217;t able to update it, anyway. I thought [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://chesterton.id.au/blog/2008/02/05/remotely-upgrading-rhel-to-ubuntu/">Remotely Upgrading RHEL to Ubuntu</a></p>
<p>We were given a server to play with to do whatever we wanted, hosted in a US data centre. It was running RHEL 4.x, I could have worked with that, but it didn&#8217;t look like it was on a support contract, I wasn&#8217;t able to update it, anyway.</p>
<p>I thought about trying to convert it to centos, but realised it would be more fun to upgrade it to ubuntu gutsy.</p>
<p>Quick steps from memory
<ol>
<li>swapoff -a</li>
<li>mkfs.ext3 /dev/VolGroup00/LogVol01 (old swap)</li>
<li>mount /dev/VolGroup00/LogVol01 /mnt</li>
<li>wget debootstrap.deb (from gutsy)</li>
<li>ar x debootstrap.deb</li>
<li>tar -C / -xzf data.tar.gz</li>
<li>debootstrap &#8211;arch=i386 gutsy /mnt</li>
<li>chroot /mnt</li>
<li>mount proc, edit /etc/fstab and /etc/network/interfaces</li>
<li>apt-get install ubuntu-minimal ubuntu-standard linux-image postfix openssh-server plus a few other packages, some that were recommends.</li>
<li>copied gutsy /boot/* to the real /boot and created a new entry in menu.lst</li>
<li>created an account and uploaded some ssh keys</li>
<li>probably some steps I&#8217;ve forgotten</li>
<li>reboot</li>
</ol>
<p>Easy peasy, just waiting for it to come up, it&#8217;s been 5 hours now, still waiting. Must be the slowest booting server ever.</p>
<p>Guess I&#8217;ll be calling the states now. :&#8217;(</p>
]]></content:encoded>
			<wfw:commentRss>http://chesterton.id.au/blog/2008/02/05/remotely-upgrading-rhel-to-ubuntu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
