<?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>Vegard Hammerseth &#187; GNU/Linux</title>
	<atom:link href="http://vegard.hammerseth.com/category/gnu_linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://vegard.hammerseth.com</link>
	<description>Geekness by remote</description>
	<lastBuildDate>Sat, 04 Feb 2012 16:31:31 +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>Fit-PC 2 as HTPC using (L) Ubuntu 11.04 Natty Narwhal</title>
		<link>http://vegard.hammerseth.com/2011/05/fit-pc-2-as-htpc-using-l-ubuntu-11-04-natty-narwhal/</link>
		<comments>http://vegard.hammerseth.com/2011/05/fit-pc-2-as-htpc-using-l-ubuntu-11-04-natty-narwhal/#comments</comments>
		<pubDate>Mon, 23 May 2011 19:59:01 +0000</pubDate>
		<dc:creator>Vegard</dc:creator>
				<category><![CDATA[Computer]]></category>
		<category><![CDATA[GNU/Linux]]></category>
		<category><![CDATA[Open source]]></category>
		<category><![CDATA[Tutorial]]></category>

		<guid isPermaLink="false">http://vegard.hammerseth.com/?p=781</guid>
		<description><![CDATA[This post explains how you can setup our own media centre using Lubuntu. Using my Fit-PC 2 as example. Fit-PC is a small, light, fan-less nettop computer manufactured by the Israeli company CompuLab. I use it in my living room and it&#8217;s nearly invisible. When I install an SSD in it, I will stick it back on [...]]]></description>
			<content:encoded><![CDATA[<p>This post explains how you can setup our own media centre using Lubuntu. Using my Fit-PC 2 as example.</p>
<p>Fit-PC is a small, light, fan-less nettop computer manufactured by the Israeli company CompuLab. I use it in my living room and it&#8217;s nearly invisible. When I install an SSD in it, I will stick it back on my TV.</p>
<p>After the installing Lubuntu from USB stick I had to manually shut the computer down. Apparently there are some ACPI bugs in Natty, but it&#8217;s not important. It will be on most of it&#8217;s life. I made sure the computer was up to date before installing display driver.<br />
<em>sudo apt-get update</em><br />
<em>sudo apt-get upgrade </em></p>
<p>The fit-pc 2 ships with GMA500 Intel graphics. It kinda sucks since Intel is unable to give us proper drivers for it! This is why I will think twice or even three times before buying anything from Intel again.</p>
<p>To use GMA500 I deceided to use EMGD (<a href="https://wiki.ubuntu.com/HardwareSupportComponentsVideoCardsPoulsbo#Drivers installation">source</a>):<br />
<em>sudo add-apt-repository ppa:gma500/emgd<br />
</em><em>sudo apt-get update<br />
</em><em>sudo apt-get install xorg-emgd emgd-dkms<br />
</em><em>sudo emgd-xorg-conf</em></p>
<p>emgd-xorg-conf creates a config in /usr/share/X11/xorg.conf.d/10-emgd.conf. This is when the problems occour. ﻿emgd-xorg-conf discovers wrong port which I had to manually edit. My modified 10-emgd.conf:<br />
<em>Section &#8220;ServerLayout&#8221;</em><br />
<em> Identifier     &#8220;Default Layout&#8221;</em><br />
<em> Screen 0       &#8220;Screen0&#8243;		0 0</em><br />
<em> EndSection</em></p>
<p><em>Section &#8220;Device&#8221;</em><em><br />
</em><em> Identifier &#8220;Intel_IEGD-0&#8243;</em><br />
<em> Driver     &#8220;emgd&#8221;</em><br />
<em> VendorName &#8220;Intel(R) DEG&#8221;</em><br />
<em> BoardName  &#8220;Embedded Graphics&#8221;</em><br />
<em> BusID      &#8220;0:2:0&#8243;</em><br />
<em> Screen      0</em><br />
<em> Option     &#8220;PcfVersion&#8221;				&#8220;1792&#8243;</em><br />
<em> Option     &#8220;ConfigId&#8221;				&#8220;1&#8243;</em><br />
<em> Option     &#8220;ALL/1/name&#8221;				&#8220;svdo-display&#8221;</em><br />
<em> Option     &#8220;ALL/1/General/PortOrder&#8221;		&#8220;24000&#8243;</em><br />
<em> Option     &#8220;ALL/1/General/DisplayConfig&#8221;		&#8220;1&#8243;</em><br />
<em> Option     &#8220;ALL/1/General/DisplayDetect&#8221;		&#8220;1&#8243;</em><br />
<em> Option     &#8220;ALL/1/General/Accel&#8221;                    &#8220;1&#8243;</em><br />
<em> Option     &#8220;PortDrivers&#8221;				&#8220;svdo&#8221;</em><br />
<em> Option     &#8220;ALL/1/General/VideoRam&#8221;                 &#8220;131072&#8243;</em><br />
<em> Option     &#8220;ALL/1/Port/2/General/name&#8221;              &#8220;sdvo&#8221;</em><br />
<em> Option     &#8220;ALL/1/Port/2/General/Edid&#8221;              &#8220;1&#8243;</em><br />
<em> Option     &#8220;ALL/1/Port/2/Attr/70&#8243;                   &#8220;0&#8243;</em><br />
<em> EndSection</em></p>
<p><em>Section &#8220;Screen&#8221;</em><br />
<em> Identifier    &#8220;Screen0&#8243;</em><br />
<em> Device        &#8220;Intel_IEGD-0&#8243;</em><br />
<em> Monitor       &#8220;sdvo&#8221;</em><br />
<em> SubSection &#8220;Display&#8221;</em><br />
<em> Depth     24</em><br />
<em> Modes	&#8220;1024&#215;768&#8243;</em><br />
<em> EndSubSection</em><br />
<em> EndSection</em></p>
<p><em>Section &#8220;Monitor&#8221;</em><br />
<em> Identifier   &#8220;sdvo&#8221;</em><br />
<em> ModelName    &#8220;sdvo panel 1024&#215;768&#8243;</em><br />
<em> EndSection</em></p>
<p><em>Section &#8220;DRI&#8221;</em><br />
<em> Mode         0666</em><br />
<em> EndSection</em></p>
<p><em>Section &#8220;Extensions&#8221;</em><br />
<em> Option &#8220;composite&#8221; &#8220;enable&#8221;</em><br />
<em> EndSection</em></p>
<p>Keyword here is <em>ALL/1/Port/2 </em>were port 2 was 4 in the orginal configuration and sdvo was lvds.</p>
<p>I then installed lirc to be able to use my transcend remote for my picture frame, you can use anything. I followed some tutorial for making it work. Basically ﻿run irrecord to trian lirc to understand my remote.</p>
<p><em>sudo irrecord -d /dev/lirc0 /etc/lirc/transcend.conf</em></p>
<p>&nbsp;</p>
<p>I tried Boxee first, but it&#8217;s bloated. Ended up using XBMC:</p>
<pre>sudo add-apt-repository ppa:team-xbmc
sudo apt-get update
sudo apt-get install xbmc
sudo apt-get update
sudo apt-get upgrade</pre>
<p><strong>Edit #1</strong><br />
If you want XBMC to automatically detect new movies just open crontab</p>
<pre>crontab -e</pre>
<p> and add the line
<pre>* 10 * * * wget -T 60 -q -O /dev/null "http://user:passwd@localhost:8080/xbmcCmds/xbmcHttp?command=ExecBuiltIn(updatelibrary(video))" # run once a day</pre>
<p>You will of course have to enable HTTP controlling in XBMC for this to work. Also make sure your user, password and port is correct from the line above.</p>
<p><strong>End of edit</strong></p>
<p>To make lirc work with XBMC we will have to setup a config in XBMC. It should be located in /home/user/.xbmc/userdata/Lircmap.xml. Here is mine:</p>
<pre>&lt;lircmap&gt;
 &lt;remote device="/etc/lirc/transcend.conf"&gt;
 &lt;play&gt;KEY_PLAYPAUSE&lt;/play&gt;
 &lt;pause&gt;KEY_PLAYPAUSE&lt;/pause&gt;
 &lt;stop&gt;KEY_STOP&lt;/stop&gt;
 &lt;forward&gt;KEY_NEXT&lt;/forward&gt;
 &lt;reverse&gt;KEY_PREV&lt;/reverse&gt;
 &lt;left&gt;KEY_LEFT&lt;/left&gt;
 &lt;right&gt;KEY_RIGHT&lt;/right&gt;
 &lt;up&gt;KEY_UP&lt;/up&gt;
 &lt;down&gt;KEY_DOWN&lt;/down&gt;
 &lt;select&gt;KEY_OK&lt;/select&gt;
 &lt;pageplus&gt;KEY_PAGEUP&lt;/pageplus&gt;
 &lt;pageminus&gt;KEY_PAGEDOWN&lt;/pageminus&gt;
 &lt;back&gt;KEY_EXIT&lt;/back&gt;
 &lt;menu&gt;KEY_MODE&lt;/menu&gt;
 &lt;title&gt;Guide&lt;/title&gt;
 &lt;info&gt;KEY_CYCLEWINDOWS&lt;/info&gt;
 &lt;skipplus&gt;Skip&lt;/skipplus&gt;
 &lt;skipminus&gt;Replay&lt;/skipminus&gt;
 &lt;display&gt;Aspect&lt;/display&gt;
 &lt;start&gt;KEY_HOME&lt;/start&gt;
 &lt;record&gt;Record&lt;/record&gt;
 &lt;volumeplus&gt;KEY_VOLUMEUP&lt;/volumeplus&gt;
 &lt;volumeminus&gt;KEY_VOLUMEDOWN&lt;/volumeminus&gt;
 &lt;mute&gt;KEY_MUTE&lt;/mute&gt;
 &lt;power&gt;KEY_POWER&lt;/power&gt;
 &lt;myvideo&gt;KEY_VIDEO&lt;/myvideo&gt;
 &lt;mymusic&gt;KEY_MUSIC&lt;/mymusic&gt;
 &lt;mypictures&gt;KEY_PROG1&lt;/mypictures&gt;
 &lt;mytv&gt;KEY_CALENDAR&lt;/mytv&gt;
 &lt;one&gt;One&lt;/one&gt;
 &lt;two&gt;Two&lt;/two&gt;
 &lt;three&gt;Three&lt;/three&gt;
 &lt;four&gt;Four&lt;/four&gt;
 &lt;five&gt;Five&lt;/five&gt;
 &lt;six&gt;Six&lt;/six&gt;
 &lt;seven&gt;Seven&lt;/seven&gt;
 &lt;eight&gt;Eight&lt;/eight&gt;
 &lt;nine&gt;Nine&lt;/nine&gt;
 &lt;zero&gt;Zero&lt;/zero&gt;
 &lt;star&gt;Star&lt;/star&gt;
 &lt;hash&gt;Hash&lt;/hash&gt;
 &lt;clear&gt;Clear&lt;/clear&gt;
 &lt;enter&gt;Enter&lt;/enter&gt;
 &lt;red&gt;Red&lt;/red&gt;
 &lt;green&gt;Green&lt;/green&gt;
 &lt;yellow&gt;Yellow&lt;/yellow&gt;
 &lt;blue&gt;Blue&lt;/blue&gt;
 &lt;teletext&gt;Teletext&lt;/teletext&gt;
 &lt;/remote&gt;
&lt;/lircmap&gt;</pre>
<p>Give me a comment if anything is unclear.</p>
]]></content:encoded>
			<wfw:commentRss>http://vegard.hammerseth.com/2011/05/fit-pc-2-as-htpc-using-l-ubuntu-11-04-natty-narwhal/feed/</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
		<item>
		<title>Bachelor project</title>
		<link>http://vegard.hammerseth.com/2011/04/bachlor-project/</link>
		<comments>http://vegard.hammerseth.com/2011/04/bachlor-project/#comments</comments>
		<pubDate>Tue, 05 Apr 2011 14:25:55 +0000</pubDate>
		<dc:creator>Vegard</dc:creator>
				<category><![CDATA[Computer]]></category>
		<category><![CDATA[Electronics]]></category>
		<category><![CDATA[GNU/Linux]]></category>
		<category><![CDATA[Tech]]></category>

		<guid isPermaLink="false">http://vegard.hammerseth.com/?p=761</guid>
		<description><![CDATA[I&#8217;m currently finishing my Automation bachelor degree collecting the last 30 points. 20 of these points are achieved by one last project, main project. Me and three other students are doing a project for Repant ASA, by making a vending machine. You can get details and information on our website, setup and maintained by myself; http://www.hovedprosjekt.com/]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m currently finishing my Automation bachelor degree collecting the last 30 points. 20 of these points are achieved by one last project, main project.</p>
<p>Me and three other students are doing a project for <a href="http://www.repant.com/">Repant ASA</a>, by making a vending machine.</p>
<p>You can get details and information on our website, setup and maintained by myself; <a href="http://www.hovedprosjekt.com/">http://www.hovedprosjekt.com/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://vegard.hammerseth.com/2011/04/bachlor-project/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ALL IN 1 HDD Docking (Unitek) in Linux</title>
		<link>http://vegard.hammerseth.com/2010/05/all-in-1-hdd-docking-unitek-in-linux/</link>
		<comments>http://vegard.hammerseth.com/2010/05/all-in-1-hdd-docking-unitek-in-linux/#comments</comments>
		<pubDate>Wed, 26 May 2010 22:31:37 +0000</pubDate>
		<dc:creator>Vegard</dc:creator>
				<category><![CDATA[Computer]]></category>
		<category><![CDATA[GNU/Linux]]></category>
		<category><![CDATA[Open source]]></category>
		<category><![CDATA[Tech]]></category>
		<category><![CDATA[adapter]]></category>
		<category><![CDATA[double]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[HDD]]></category>
		<category><![CDATA[IDE]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[SATA]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[western digital]]></category>

		<guid isPermaLink="false">http://vegard.hammerseth.com/?p=692</guid>
		<description><![CDATA[Since my external HDD`s adapter died and I found out that these Western Digital`s adapters are bad all over through Google. I threw the contoller away and bought a new instead of another faulty adapter. There were little information about this controller, but it has tons of features at a low cost. My main concern was support [...]]]></description>
			<content:encoded><![CDATA[<p>Since my external HDD`s adapter died and I found out that these Western Digital`s adapters are bad all over through Google. I threw the contoller away and bought a new instead of another faulty adapter. There were little information about this controller, but it has tons of features at a low cost. My main concern was support in Ubuntu, but I found some defuse info about Linux support after some heavy Googling. I gave it a shoot and this post is my blessing for it`s plug`n`play comparability with Linux. I can now use the WD SATA disk and an old IDE disk laying around!</p>
<p><a href="http://lh6.ggpht.com/_kHz6hsl_gy8/S_mzWgiCJKI/AAAAAAAAFaE/KSDX4iIoejc/all%20in%201%20hdd%20docking%20front.jpg"><img class="alignnone" title="Front" src="http://lh6.ggpht.com/_kHz6hsl_gy8/S_mzWgiCJKI/AAAAAAAAFaE/KSDX4iIoejc/all%20in%201%20hdd%20docking%20front.jpg" alt="" width="390" height="323" /></a> <a href="http://lh3.ggpht.com/_kHz6hsl_gy8/S_mzWGx1zWI/AAAAAAAAFaA/XMcDbWpyeTk/all%20in%201%20hdd%20docking%20top.jpg"><img class="alignnone" title="Front" src="http://lh3.ggpht.com/_kHz6hsl_gy8/S_mzWGx1zWI/AAAAAAAAFaA/XMcDbWpyeTk/all%20in%201%20hdd%20docking%20top.jpg" alt="" width="390" height="293" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://vegard.hammerseth.com/2010/05/all-in-1-hdd-docking-unitek-in-linux/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Tech and photographing</title>
		<link>http://vegard.hammerseth.com/2010/03/this-weekends-links/</link>
		<comments>http://vegard.hammerseth.com/2010/03/this-weekends-links/#comments</comments>
		<pubDate>Sun, 07 Mar 2010 19:42:23 +0000</pubDate>
		<dc:creator>Vegard</dc:creator>
				<category><![CDATA[Computer]]></category>
		<category><![CDATA[Electronics]]></category>
		<category><![CDATA[GNU/Linux]]></category>
		<category><![CDATA[Tech]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[metal]]></category>
		<category><![CDATA[RC]]></category>
		<category><![CDATA[rube goldberg machine]]></category>
		<category><![CDATA[sound]]></category>
		<category><![CDATA[su27]]></category>

		<guid isPermaLink="false">http://vegard.hammerseth.com/?p=637</guid>
		<description><![CDATA[Rube Goldberg Machine version Unbelievable plane build and it`s movie Sound technology, listen to nearby planes pretty cool idea Snowplow youtube speed Photographing cotton Miniature New York Food landscape Make it smaller and become bigger Marion on Arduino Laser scissors Analog and Digital TV Signal Generation]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.youtube.com/watch?v=qybUFnY7Y8w">Rube Goldberg Machine version</a></p>
<p><a href="http://www.su27.de/seite1.htm">Unbelievable plane build</a> and it`s <a href="http://www.youtube.com/watch?v=6IKnZ_tkecU">movie</a></p>
<p><a href="http://www.scientificamerican.com/article.cfm?id=acoustic-vector-sensing">Sound technology, listen to nearby planes</a> pretty cool idea</p>
<p><a href="http://www.youtube.com/watch?v=tPg1ZMiC9pA">Snowplow</a></p>
<p><a href="http://www.youtube.com/my_speed">youtube speed</a></p>
<p><a href="http://weburbanist.com/2010/03/13/strange-miniature-worlds-of-cotton-sugar-and-spice/">Photographing cotton</a></p>
<p><a href="http://vimeo.com/9679622">Miniature New York</a></p>
<p><a href="http://www.moillusions.com/2008/06/carl-warners-food-landscapes-or.html">Food landscape</a></p>
<p><a href="http://www.willard-wigan.com/video.aspx">Make it smaller and become bigger</a></p>
<p><a href="http://www.pcmag.com/article2/0,2817,2361357,00.asp">Marion on Arduino</a></p>
<p><a href="http://www.dealextreme.com/details.dx/sku.1584">Laser scissors</a></p>
<p><a href="http:/bellard.org/dvbt/">Analog and Digital TV Signal Generation</a></p>
]]></content:encoded>
			<wfw:commentRss>http://vegard.hammerseth.com/2010/03/this-weekends-links/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Installing Frets On Fire on Ubuntu by making .deb package</title>
		<link>http://vegard.hammerseth.com/2009/11/installing-frets-on-fire-on-ubuntu-by-making-deb-package/</link>
		<comments>http://vegard.hammerseth.com/2009/11/installing-frets-on-fire-on-ubuntu-by-making-deb-package/#comments</comments>
		<pubDate>Sun, 08 Nov 2009 18:47:06 +0000</pubDate>
		<dc:creator>Vegard</dc:creator>
				<category><![CDATA[Computer]]></category>
		<category><![CDATA[GNU/Linux]]></category>
		<category><![CDATA[Open source]]></category>
		<category><![CDATA[Tutorial]]></category>

		<guid isPermaLink="false">http://vegard.hammerseth.com/?p=589</guid>
		<description><![CDATA[sudo apt-get install dh-make mkdir fretsonfire-1.3.110 cd fretsonfire-1.3.110 dh_make -s -n cd debian rm *.ex *.EX mkdir fretsonfire mkdir fretsonfire/usr mkdir fretsonfire/usr/share Now download the game wget http://downloads.sourceforge.net/fretsonfire/FretsOnFire-1.3.110.tar.gz?use_mirror=osdn tar zxf FretsOnFire-1.3.110.tar.gz mv Frets\ on\ Fire-1.3.110/ fretsonfire/usr/share/fretsonfire rm -rf Frets\ on\ Fire-1.3.110/ FretsOnFire-1.3.110.tar.gz mkdir fretsonfire/DEBIAN pico control Make sure it look something like this Source: fretsonfire [...]]]></description>
			<content:encoded><![CDATA[<p><code>sudo apt-get install dh-make<br />
mkdir fretsonfire-1.3.110<br />
cd fretsonfire-1.3.110<br />
dh_make -s -n<br />
cd debian<br />
rm *.ex *.EX<br />
mkdir fretsonfire<br />
mkdir fretsonfire/usr<br />
mkdir fretsonfire/usr/share</code></p>
<p>Now download the game<br />
<code>wget http://downloads.sourceforge.net/fretsonfire/FretsOnFire-1.3.110.tar.gz?use_mirror=osdn<br />
tar zxf FretsOnFire-1.3.110.tar.gz<br />
mv Frets\ on\ Fire-1.3.110/ fretsonfire/usr/share/fretsonfire<br />
rm -rf Frets\ on\ Fire-1.3.110/ FretsOnFire-1.3.110.tar.gz</code></p>
<p><code>mkdir fretsonfire/DEBIAN<br />
pico control</code><br />
Make sure it look something like this<br />
<code>Source: fretsonfire<br />
Priority: optional<br />
Section: universe/games<br />
Maintainer: yourname <your@email><br />
Homepage: http://fretsonfire.sourceforge.net/<br />
Package: fretsonfire<br />
Architecture: all<br />
Version: 1.3.110<br />
Depends: python-pygame, python-opengl, python-numpy<br />
Description: Open source guitar game</code></p>
<p><code>cp control fretsonfire/DEBIAN/<br />
mkdir fretsonfire/usr/bin<br />
echo -e "#\!/bin/dash\ncd /usr/share/fretsonfire/src/\npython FretsOnFire.py" > fretsonfire/usr/bin/fretsonfire<br />
chmod +x fretsonfire/usr/bin/fretsonfire<br />
mkdir fretsonfire/usr/share/pixmaps</code></p>
<p># if the following image does not exist, find another one through google<br />
<code>wget http://www.freedownloadsplace.com/photo/Frets-on-Fire-1.png -O fretsonfire/usr/share/pixmaps/fretsonfire.png<br />
mkdir fretsonfire/usr/share/applications<br />
pico fretsonfire/usr/share/applications/fretsonfire.desktop</code><br />
Overwrite with this text<br />
<code>[Desktop Entry]<br />
Version=1.3.110<br />
Type=Application<br />
Name=Frets On Fire<br />
Comment=A opensourced guitar game<br />
Icon=fretsonfire<br />
Exec=fretsonfire<br />
Terminal=false<br />
Categories=Game;ArcadeGame;</code></p>
<p><code>cd ..<br />
dh_builddeb<br />
cd ..<br />
dpkg -i fretsonfire_1.3.110_all.deb</code></p>
]]></content:encoded>
			<wfw:commentRss>http://vegard.hammerseth.com/2009/11/installing-frets-on-fire-on-ubuntu-by-making-deb-package/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ubuntu network install (PXE)</title>
		<link>http://vegard.hammerseth.com/2009/10/ubuntu-network-install-pxe/</link>
		<comments>http://vegard.hammerseth.com/2009/10/ubuntu-network-install-pxe/#comments</comments>
		<pubDate>Sat, 24 Oct 2009 23:11:03 +0000</pubDate>
		<dc:creator>Vegard</dc:creator>
				<category><![CDATA[Computer]]></category>
		<category><![CDATA[GNU/Linux]]></category>
		<category><![CDATA[Open source]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[dhcp]]></category>
		<category><![CDATA[karmic]]></category>
		<category><![CDATA[netboot]]></category>
		<category><![CDATA[network install]]></category>
		<category><![CDATA[pxe]]></category>
		<category><![CDATA[tftp]]></category>
		<category><![CDATA[tftpd]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[xinitd]]></category>

		<guid isPermaLink="false">http://vegard.hammerseth.com/?p=581</guid>
		<description><![CDATA[sudo apt-get install tftpd-hpa tftp-hpa xinetd dhcp3-server sudo pico /etc/xinetd.d/tftp Then write following service tftp { protocol = udp port = 69 socket_type = dgram wait = yes user = root server = /usr/sbin/in.tftpd server_args = /var/lib/tftpboot disable = no } Edit TFTP config sudo pico /etc/default/tftpd-hpa Make it look something like #Defaults for tftpd-hpa [...]]]></description>
			<content:encoded><![CDATA[<p><code>sudo apt-get install tftpd-hpa tftp-hpa xinetd dhcp3-server<br />
sudo pico /etc/xinetd.d/tftp</code></p>
<p>Then write following<br />
<code><br />
service tftp<br />
{<br />
protocol        = udp<br />
port            = 69<br />
socket_type     = dgram<br />
wait            = yes<br />
user            = root<br />
server          = /usr/sbin/in.tftpd<br />
server_args     = /var/lib/tftpboot<br />
disable         = no<br />
}<br />
</code></p>
<p>Edit TFTP config<br />
<code>sudo pico /etc/default/tftpd-hpa</code></p>
<p>Make it look something like<br />
<code><br />
#Defaults for tftpd-hpa<br />
RUN_DAEMON="yes"<br />
OPTIONS="-l -s /var/lib/tftpboot"<br />
</code></p>
<p>Create TFTP directory and get latest netboot image<br />
<code><br />
sudo mkdir /var/lib/tftpboot<br />
cd /var/lib/tftpboot<br />
sudo wget -np -r http://archive.ubuntu.com/ubuntu/dists/karmic/main/installer-i386/current/images/netboot/<br />
sudo mv archive.ubuntu.com/ubuntu/dists/karmic/main/installer-i386/current/images/netboot/* .<br />
sudo rm -rf archive.ubuntu.com<br />
</code></p>
<p>Now restart TFTPD<br />
<code>sudo /etc/init.d/tftpd-hpa restart</code></p>
<p>To check if running@<br />
<code>netstat -uap</code></p>
<p>For DHCP, make sure you have a fixed ip for your device<br />
<code>pico /etc/dhcp3/dhcpd.conf</code></p>
<p>I did use firestarter as a DHCP generator since I used my desktop as PXE-server.</p>
<p><code><br />
# DHCP configuration generated by Firestarter<br />
ddns-update-style interim;<br />
ignore client-updates;<br />
authoritative;</p>
<p>subnet 192.168.66.0 netmask 255.255.255.0 {<br />
        option routers 192.168.66.9;<br />
        option subnet-mask 255.255.255.0;<br />
        option domain-name-servers 130.67.60.68, 193.213.112.4;<br />
        option ip-forwarding off;<br />
        range dynamic-bootp 192.168.66.10 192.168.66.20;<br />
        default-lease-time 21600;<br />
        max-lease-time 43200;<br />
        next-server 192.168.66.9; # important for PXE<br />
        filename "pxelinux.0"; # important for PXE<br />
}<br />
</code></p>
<p>After the DHCP change we must restart DHCP<br />
<code>sudo /etc/init.d/dhcp3 restart</code></p>
<p>You should now be able to boot PXE of this machine.</p>
]]></content:encoded>
			<wfw:commentRss>http://vegard.hammerseth.com/2009/10/ubuntu-network-install-pxe/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

