<?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>Christoffer Kjølbæk &#187; Ubuntu 9.10</title>
	<atom:link href="http://ostehamster.dk/blog/index.php/tag/ubuntu-9-10/feed/" rel="self" type="application/rss+xml" />
	<link>http://ostehamster.dk/blog</link>
	<description>I have a blog, therefore I am…</description>
	<lastBuildDate>Tue, 03 Jan 2012 22:37:34 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Howto program the Avnet / Xilinx Spartan-3A Evaluation Kit from Ubuntu 9.10</title>
		<link>http://ostehamster.dk/blog/index.php/2009/12/31/howto-program-the-avnet-xilinx-spartan-3a-evaluation-kit-from-ubuntu-9-10/</link>
		<comments>http://ostehamster.dk/blog/index.php/2009/12/31/howto-program-the-avnet-xilinx-spartan-3a-evaluation-kit-from-ubuntu-9-10/#comments</comments>
		<pubDate>Thu, 31 Dec 2009 12:26:34 +0000</pubDate>
		<dc:creator>Christoffer Kjølbæk</dc:creator>
				<category><![CDATA[VHDL / FPGA]]></category>
		<category><![CDATA[FPGA]]></category>
		<category><![CDATA[Howto]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[Ubuntu 9.10]]></category>
		<category><![CDATA[VHDL]]></category>

		<guid isPermaLink="false">http://ostehamster.dk/blog/?p=596</guid>
		<description><![CDATA[The Avnet / Xilinx Spartan-3A Evaluation Kit is a $49 FPGA kit from Avnet, with a XC3S400A Spartan-3A FPGA, and a number of simple peripherals: Xilinx XC3S400A-4FTG256C Spartan-3A FPGA Four LEDs Four CapSense™ switches I2C temperature sensor Two 6-pin expansion headers 20 x 2, 0.1-inch user I/O header 32 Mb Spansion® MirrorBit® NOR GL Parallel [...]]]></description>
			<content:encoded><![CDATA[<p>The <a href="http://www.em.avnet.com/spartan3a-evl">Avnet / Xilinx Spartan-3A Evaluation Kit is a $49 FPGA kit</a> from Avnet, with a XC3S400A Spartan-3A FPGA, and a number of simple peripherals:</p>
<ul>
<li>Xilinx XC3S400A-4FTG256C Spartan-3A FPGA</li>
<li>Four LEDs</li>
<li>Four CapSense™ switches</li>
<li>I2C temperature sensor</li>
<li>Two 6-pin expansion headers</li>
<li>20 x 2, 0.1-inch user I/O header</li>
<li>32 Mb Spansion® MirrorBit® NOR GL Parallel Flash</li>
<li>128 Mb Spansion MirrorBit SPI FL Serial Flash</li>
<li>USB-UART bridge</li>
<li>I2C port</li>
<li>SPI and BPI configuration</li>
<li>Xilinx JTAG interface</li>
<li>FPGA configuration via PSoC®</li>
</ul>
<p>The flash is not updated through a JTAG, but through the USB interface. On Windows the AVprog is used, <a href="http://ostehamster.dk/blog/index.php/2009/07/14/using-avnet-avprog-for-xilinx%C2%AE-spartan%C2%AE-3a-evaluation-kit-under-linux/">which can run in Wine</a> and therefore usable on Linux. It is however easier to use the tool called <a href="http://fpgalibre.sourceforge.net/ingles.html#tp82">ASTriAEKiPro 1.2.1</a>.<br />
<span id="more-596"></span><br />
Download a newest .deb file from <a href="http://sourceforge.net/projects/fpgalibre/files/ASTriAEKiPro/">http://sourceforge.net/projects/fpgalibre/files/ASTriAEKiPro/</a> and install it with:<br />
<code>sudo dpkg -i astriaekipro_1.2.1-2_i386.deb</code></p>
<p><strong>Using ASTriAEKiPro</strong><br />
Get a bit file for the kit, either from the CD in the package or from the Avnet Design Resource Center, go to the <a href="http://www.em.avnet.com/spartan3a-evl">Avnet Spartan-3A page</a> and click on "Support files and downloads", login and get the "Default Serial Flash Factory Image" file.</p>
<p>To write to the SPI flash use:<br />
<code>astriaekipro -w Spartan3AEval_FPGA_Firmware_V10.bit</code></p>
<p>To verify:<br />
<code>astriaekipro -y Spartan3AEval_FPGA_Firmware_V10.bit</code></p>
<p>ASTriAEKiPro can furthermore be used as a terminal, which makes it possible to use the USB as serial interface for a MicroBlace etc.:<br />
<code>astriaekipro -t</code></p>
<p>Which will give you something like:</p>
<pre>*******************************************************************
*                    _____                                        *
*                   /     \                                       *
*                  /____   \____                                  *
*                 / \===\   \==/                                  *
*                /___\===\___\/  AVNET                            *
*                     \======/   ENGINEERING                      *
*                      \====/    SERVICES                         *
*                                                                 *
*******************************************************************
*              Spartan 3A Eval Demo V1.0 5/2008                   *
*******************************************************************
* Current Device Status:                                          *
*                                                                 *
*   EF1:  DEACTIVATED                                             *
*   EF2:  DEACTIVATED                                             *
*   EF3:  DEACTIVATED                                             *
*   EF4:  Connected To FPGA System Reset                          *
*   TMP:   29.1250 C                                              *
*   U22:  S29GL032N DETECTED                                      *
*******************************************************************
Type <help> for command options. 

ADS></help></pre>
]]></content:encoded>
			<wfw:commentRss>http://ostehamster.dk/blog/index.php/2009/12/31/howto-program-the-avnet-xilinx-spartan-3a-evaluation-kit-from-ubuntu-9-10/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Installing Xilinx ISE WebPack 11.1 under Ubuntu 9.10</title>
		<link>http://ostehamster.dk/blog/index.php/2009/12/31/installing-xilinx-ise-webpack-11-1-under-ubuntu-9-10/</link>
		<comments>http://ostehamster.dk/blog/index.php/2009/12/31/installing-xilinx-ise-webpack-11-1-under-ubuntu-9-10/#comments</comments>
		<pubDate>Thu, 31 Dec 2009 11:08:50 +0000</pubDate>
		<dc:creator>Christoffer Kjølbæk</dc:creator>
				<category><![CDATA[VHDL / FPGA]]></category>
		<category><![CDATA[FPGA]]></category>
		<category><![CDATA[Howto]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Mad]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[Ubuntu 9.10]]></category>
		<category><![CDATA[VHDL]]></category>

		<guid isPermaLink="false">http://ostehamster.dk/blog/?p=555</guid>
		<description><![CDATA[This is a short how to install Xilinx ISE Webpack 11.1 / 11.3 under Ubuntu 9.10. Start by downloading the installation files from "Xilinx Download". The file is 2.67 GB, and Xilinx requires you to have a free account in order to download the file. Untar the file tar -xf Xilinx_11.1_WebPack_SFD.tar and install sudo mkdir [...]]]></description>
			<content:encoded><![CDATA[<p>This is a short how to install Xilinx ISE Webpack 11.1 / 11.3 under Ubuntu 9.10. Start by downloading the installation files from "<a href="http://www.xilinx.com/support/download/index.htm">Xilinx Download</a>". The file is 2.67 GB, and Xilinx requires you to have a free account in order to download the file.<br />
<span id="more-555"></span><br />
Untar the file<br />
<code>tar -xf Xilinx_11.1_WebPack_SFD.tar</code></p>
<p>and install<br />
<code>sudo mkdir /home/Xilinx/<br />
sudo chmod 777 /home/Xilinx/<br />
cd Xilinx_11.1_WebPack_SFD<br />
./xsetup</code></p>
<p>Set the installation path to /home/Xilinx/, and follow the installation process.</p>
<p>When the installation is done, you will be asked for a license. Select "Start ISE WebPack" and click next and follow the instructions on the website. When the license is installed, close the browser window and the Xilinx License Configuration Manager.</p>
<p>The installer will ask for installation of updates. This is advisable, but it is imo easier to download the update files from Xilinx homepage. Go to download and "<a href="https://xilinx.entitlenow.com/cocoon/across/general/home.html?tab=DownloadUpdates&#038;product=&#038;licenseType=&#038;legacyVersion=#">Software Updates</a>".</p>
<p>Untar the file<br />
<code>tar -xf Xilinx_11.4_ISE_DS_lin.tar</code></p>
<p>and install<br />
<code>cd Xilinx_11.4_ISE_DS_lin<br />
./xsetup</code></p>
<p>You are now ready to go, by running<br />
<code>/home/Xilinx/11.1/ISE/bin/lin/ise</code></p>
]]></content:encoded>
			<wfw:commentRss>http://ostehamster.dk/blog/index.php/2009/12/31/installing-xilinx-ise-webpack-11-1-under-ubuntu-9-10/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Pytrainer in Ubuntu 9.10, Karmic Koala</title>
		<link>http://ostehamster.dk/blog/index.php/2009/12/30/pytrainer-in-ubuntu-9-10-karmic-koala/</link>
		<comments>http://ostehamster.dk/blog/index.php/2009/12/30/pytrainer-in-ubuntu-9-10-karmic-koala/#comments</comments>
		<pubDate>Wed, 30 Dec 2009 12:43:46 +0000</pubDate>
		<dc:creator>Christoffer Kjølbæk</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[GPS]]></category>
		<category><![CDATA[Karmic Koala]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Løb]]></category>
		<category><![CDATA[Run]]></category>
		<category><![CDATA[Running]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[Ubuntu 9.10]]></category>

		<guid isPermaLink="false">http://ostehamster.dk/blog/?p=573</guid>
		<description><![CDATA[I have had problems with Pytrainer in both Ubuntu 8.04 and 8.10, but have manage to get it working. I did not use Pytrainer in 9.04, because I got a little tired of looking at graphs and was following a running program where it was not necessary. If have been injured for some month now, [...]]]></description>
			<content:encoded><![CDATA[<p>I have had problems with Pytrainer in both Ubuntu <a href="http://ostehamster.dk/blog/index.php/2008/05/03/pytrainer-in-ubuntu-804-hardy-heron/">8.04</a> and <a href="http://ostehamster.dk/blog/index.php/2008/11/09/pytrainer-in-ubuntu-810-ibex-intrepid/">8.10</a>, but have manage to get it working. I did not use Pytrainer in 9.04, because I got a little tired of looking at graphs and was following a running program where it was not necessary.</p>
<p>If have been injured for some month now, but hoping to be ready for Copenhagen Marathon 2010, and would therefore like to examine my last marathon using Pytrainer. I therefore installed it, and hoped it would work out of the box - but no :)<br />
<span id="more-573"></span><br />
Enabling the Garmin HR plugin, restarting Pytrainer and clicking "Import from Garmin" did nothing, not even a warning or error in the terminal. Looking at my old post from <a href="http://ostehamster.dk/blog/index.php/2008/11/09/pytrainer-in-ubuntu-810-ibex-intrepid/">8.10</a>, I opened <code>/usr/share/pytrainer/plugins/garmin-hr/main.py</code> to see what was going on.</p>
<p>Pytrainer is using gpsbabel like <code>gpsbabel -t -i garmin -f %s -o gtrnctr -F /tmp/file.gtrnctr</code>, where <code>%s</code> is the device, <code>usb:</code>. But running</p>
<blockquote><p>gpsbabel -t -i garmin -f usb: -o gtrnctr -F /tmp/file.gtrnctr</p></blockquote>
<p> in a terminal give this result:</p>
<blockquote><p>Claim interfaced failed: could not claim interface 0: Operation not permitted</p></blockquote>
<p>It is therefore still required to make a udev rule for the device.</p>
<p><strong>How to get it working</strong><br />
Make the rule file</p>
<blockquote><p>sudo gedit /etc/udev/rules.d/51-garmin.rules</p></blockquote>
<p>add the below and close:</p>
<blockquote><p>SYSFS{idVendor}=="091e", SYSFS{idProduct}=="0003", MODE="666" </p></blockquote>
<p>restart udev:</p>
<blockquote><p>sudo /etc/init.d/udev restart</p></blockquote>
<p>Now Pytrainer can start gpsbabel, and retrieve data from the watch, which unfortunately just leads to another problem:</p>
<blockquote><p>Traceback (most recent call last):<br />
  File "/usr/lib/python2.6/dist-packages/pytrainer/main.py", line 166, in runPlugin<br />
    self.record.importFromGTRNCTR(gtrnctrFile)<br />
  File "/usr/lib/python2.6/dist-packages/pytrainer/record.py", line 410, in importFromGTRNCTR<br />
    listTracksGPS = xmlParser.shortFromGPS(gtrnctrFile, True)<br />
  File "/usr/lib/python2.6/dist-packages/pytrainer/lib/xmlUtils.py", line 127, in shortFromGPS<br />
    tree = xml.etree.cElementTree.parse(gtrnctrFile).getroot()<br />
  File "<string>", line 45, in parse<br />
  File "</string><string>", line 32, in parse<br />
SyntaxError: unbound prefix: line 13, column 8</string></p></blockquote>
<p>According to this <a href="http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=536572">bug report</a>, it is a problem between Pytrainer and gpsbabel 1.3.6. Luckily it is still possible to get gpsbabel 1.3.5 at <a href="http://packages.debian.org/lenny/i386/gpsbabel/download">http://packages.debian.org/lenny/i386/gpsbabel/download</a>, which I downloaded and installed, and it worked with Pytrainer.</p>
<p>However, Pytrainer imports all data from today back to 24 May 2009, the date of the marathon, and stops without any error. It might be because this record has 43 laps, but I do not know. Anyway, it is quite useless if it is not possible to retrieve all data from the watch.</p>
]]></content:encoded>
			<wfw:commentRss>http://ostehamster.dk/blog/index.php/2009/12/30/pytrainer-in-ubuntu-9-10-karmic-koala/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Installing Adobe Reader 9.2 in Ubuntu 9.10</title>
		<link>http://ostehamster.dk/blog/index.php/2009/11/03/installing-adobe-reader-9-2-in-ubuntu-9-10/</link>
		<comments>http://ostehamster.dk/blog/index.php/2009/11/03/installing-adobe-reader-9-2-in-ubuntu-9-10/#comments</comments>
		<pubDate>Tue, 03 Nov 2009 09:24:31 +0000</pubDate>
		<dc:creator>Christoffer Kjølbæk</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Howto]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ubuntu 9.10]]></category>

		<guid isPermaLink="false">http://ostehamster.dk/blog/?p=486</guid>
		<description><![CDATA[To install Adobe Reader 9.2 in Ubuntu 9.10, you have to enable the Canonical Partner Repository. Go to System -> Administration -> Software Sources Select Third-Party Software and and check the checkbox for http://archive.canonical.com/ubuntu partner. Close and accept to reload. It is now possible to install "acroread" by sudo apt-get install acroread Or from System [...]]]></description>
			<content:encoded><![CDATA[<p>To install Adobe Reader 9.2 in Ubuntu 9.10, you have to enable the Canonical Partner Repository. Go to System -> Administration -> Software Sources</p>
<p>Select Third-Party Software and and check the checkbox for <code>http://archive.canonical.com/ubuntu partner</code>.<br />
Close and accept to reload.</p>
<p>It is now possible to install "acroread" by<br />
<code>sudo apt-get install acroread</code></p>
<p>Or from System -> Administration -> Synaptic Package Manager, but for some reason it is not found in Ubuntu Software Center?</p>
<p><strong>Update: 2009-11-03 @ 00:56</strong><br />
According to <a href="https://wiki.ubuntu.com/SoftwareCenter">https://wiki.ubuntu.com/SoftwareCenter</a> version 3 of the SoftwareCenter will offer "commercial software for sale". But according to <a href="http://www.ghacks.net/2009/10/30/the-new-ubuntu-software-center/">http://www.ghacks.net/2009/10/30/the-new-ubuntu-software-center/</a> and <a href="http://blogs.techrepublic.com.com/opensource/?p=1031">http://blogs.techrepublic.com.com/opensource/?p=1031</a> it should be possible to install "commercial/non-free software" in version 3.</p>
<p>In Ubuntu 10.4 the Software Center should replace "Synaptic, Software Sources, Gdebi, and possibly the Update Manager" according to <a href="http://en.wikipedia.org/wiki/Ubuntu_Software_Center">http://en.wikipedia.org/wiki/Ubuntu_Software_Center</a>, so version 3 should be out at that time - I hope :)</p>
]]></content:encoded>
			<wfw:commentRss>http://ostehamster.dk/blog/index.php/2009/11/03/installing-adobe-reader-9-2-in-ubuntu-9-10/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Howto use Eclipse with PHP and SVN in Ubuntu 9.10</title>
		<link>http://ostehamster.dk/blog/index.php/2009/11/01/howto-use-eclipse-with-php-and-svn-in-ubuntu-9-10/</link>
		<comments>http://ostehamster.dk/blog/index.php/2009/11/01/howto-use-eclipse-with-php-and-svn-in-ubuntu-9-10/#comments</comments>
		<pubDate>Sun, 01 Nov 2009 15:58:18 +0000</pubDate>
		<dc:creator>Christoffer Kjølbæk</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Eclipse]]></category>
		<category><![CDATA[Howto]]></category>
		<category><![CDATA[Karmic Koala]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[SVN]]></category>
		<category><![CDATA[Ubuntu 9.10]]></category>

		<guid isPermaLink="false">http://ostehamster.dk/blog/?p=473</guid>
		<description><![CDATA[This little guide will show how to set up Eclipse for developing PHP sites using PHP Development Tools Project and Subversion. Install Eclipse Galileo from repository: sudo apt-get install eclipse A number of dependencies are required inside Eclipse, which has to be added. Start Eclipse from the menu, and select Help > Install new software... [...]]]></description>
			<content:encoded><![CDATA[<p>This little guide will show how to set up Eclipse for developing PHP sites using <a href="http://www.eclipse.org/pdt/">PHP Development Tools Project</a> and Subversion.</p>
<p>Install Eclipse Galileo from repository:</p>
<blockquote><p>sudo apt-get install eclipse</p></blockquote>
<p>A number of dependencies are required inside Eclipse, which has to be added. Start Eclipse from the menu, and select Help > Install new software... The below list of update sites has to be added, which is done be typing the URL in "Work with", click Add and then type the name in the name field followed by Ok. Do this for the below update sites (name followed by URL):</p>
<p>EMF, <code>http://download.eclipse.org/modeling/emf/updates/releases/</code><br />
MyLyn, <code>http://download.eclipse.org/tools/mylyn/update/e3.4/</code><br />
GEF, <code>http://download.eclipse.org/tools/gef/updates/releases/</code><br />
DLTK, <code>http://download.eclipse.org/releases/galileo/</code><br />
Webtool, <code>http://download.eclipse.org/webtools/updates/</code></p>
<p><strong>PDT</strong><br />
Add <code>http://download.eclipse.org/tools/pdt/updates/2.0/</code> with name PDT. Open "PDT SDK 2.1.2" and select "PHP Development Tools (PDT) Runtime Feature", click Next twice, accept the license and click Finish.</p>
<p><strong>Subclipse</strong><br />
SVN integration (or one of them) in Eclipse is called <a href="http://subclipse.tigris.org/">Subclipse</a> and is installed through update sites as well.  Select Help > Install new software... and add <code>http://subclipse.tigris.org/update_1.6.x</code> into the "Work with" field and click Add type "Subclipse" in name and click Ok. Select all three options and click Next, Next, accept License and click Finish.</p>
<p><strong>Checking out a project</strong><br />
Select File -> New -> Other in the new window select SVN -> Checkout Projects from SVN and click Next.</p>
<p>Select "Create a new repository location", click Next. Type SVN repository in URL, click Next. Type username and password if required. Select the part of the repository containing the project, click Finish.</p>
<p>If the repository not already holds project settings for Eclipse, select "Check out as a project configured using the New Project Wizard" and click Finish. In the New Project Wizard select PHP -> PHP Project and click Next. Give the project a name and you are ready to go - have fun! :)</p>
]]></content:encoded>
			<wfw:commentRss>http://ostehamster.dk/blog/index.php/2009/11/01/howto-use-eclipse-with-php-and-svn-in-ubuntu-9-10/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Re-install / upgrade to Ubuntu 9.10 and keep encrypted data from previous version</title>
		<link>http://ostehamster.dk/blog/index.php/2009/11/01/re-install-upgrade-to-ubuntu-9-10-and-keep-encrypted-data-from-previous-version/</link>
		<comments>http://ostehamster.dk/blog/index.php/2009/11/01/re-install-upgrade-to-ubuntu-9-10-and-keep-encrypted-data-from-previous-version/#comments</comments>
		<pubDate>Sun, 01 Nov 2009 12:19:06 +0000</pubDate>
		<dc:creator>Christoffer Kjølbæk</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Howto]]></category>
		<category><![CDATA[Karmic Koala]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Paranoia]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Ubuntu 9.10]]></category>

		<guid isPermaLink="false">http://ostehamster.dk/blog/?p=223</guid>
		<description><![CDATA[When Ubuntu first started with encrypted hard drive support, I made a LVM system inside the encrypted system. I do not like to upgrade Ubuntu from one version to another, and I do not want to copy all my data for each installation. My LVM system therefore have root, swap and home, so that home [...]]]></description>
			<content:encoded><![CDATA[<p>When Ubuntu first started with encrypted hard drive support, I made a LVM system inside the encrypted system. I do not like to upgrade Ubuntu from one version to another, and I do not want to copy all my data for each installation. My LVM system therefore have root, swap and home, so that home can survive the re-installation.</p>
<p>Unfortunately, the installer (the alternative one) do not recognise the encrypted hard drive, and is therefore not able to use it. This little guide helps you to reuse your LVM layout - and your data!</p>
<p><strong>NB: Use this guide at your own risk!</strong><br />
<span id="more-223"></span></p>
<p>Follow the installation until "Set up network", then press ctrl-alt F2 to start a console and run<br />
<code><br />
modprobe dm-crypt<br />
cryptsetup luksOpen /dev/sda5 sda5_crypt<br />
</code></p>
<p>Replace /dev/sda5 with your encrypted partition. You will now be prompted for your passphrase for the encrypted partition, after which you run<br />
<code><br />
vgscan<br />
vgchange -ay<br />
</code><br />
in order to activate the lvm volumes.</p>
<p>Press ctrl-alt f1 to get back to the installer. When asked for partition method select Manual, and your encrypted LVM volumes are now on the list. You still need to set mount points etc., and remember NOT to mark them for formatting. Continue the installation.</p>
<p>Boot into rescue with your LVM root volume as /</p>
<p>Find the unique id for this "disk" from:<br />
<code>ls -l /dev/disk/by-uuid</code></p>
<p>Insert a line like</p>
<blockquote><p>sda5_crypt /dev/disk/by-uuid/df05112c-65bf-44a2-b6d1-a740c3444b53 none luks</p></blockquote>
<p>into /etc/crypttab. Remember to use the uuid found above together with what ever name you have given the device. sda5_crypt will give a device called /dev/mapper/sda5_crypt</p>
<p>To avoid manually typing the uuid, it is possible just to do:<br />
<code>ls -l /dev/disk/by-uuid >> /etc/crypttab<br />
nano - /etc/crypttab</code></p>
<p>This will copy the entire content of "ls -l /dev/disk/by-uuid" into the bottom of /etc/crypttab, and open the file for editing with nano.</p>
<p>Run <code>update-initramfs -u</code>, reboot and you are ready to go!</p>
]]></content:encoded>
			<wfw:commentRss>http://ostehamster.dk/blog/index.php/2009/11/01/re-install-upgrade-to-ubuntu-9-10-and-keep-encrypted-data-from-previous-version/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Virtual sub-domains on localhost for development</title>
		<link>http://ostehamster.dk/blog/index.php/2009/05/08/virtual-sub-domains-on-localhost-for-development/</link>
		<comments>http://ostehamster.dk/blog/index.php/2009/05/08/virtual-sub-domains-on-localhost-for-development/#comments</comments>
		<pubDate>Fri, 08 May 2009 20:56:22 +0000</pubDate>
		<dc:creator>Christoffer Kjølbæk</dc:creator>
				<category><![CDATA[English]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[Howto]]></category>
		<category><![CDATA[Ubuntu 9.10]]></category>

		<guid isPermaLink="false">http://ostehamster.dk/blog/?p=294</guid>
		<description><![CDATA[Using Apache and mod_vhost_alias, it is possible to have one configuration file for all you development home-pages. But notice before you start, that $_SERVER["DOCUMENT_ROOT"] will NOT work with this hack! First step is to enable mod_vhost_alias: sudo a2enmod vhost_alias Next you have to make a config file for apache. I only use this setup, and [...]]]></description>
			<content:encoded><![CDATA[<p>Using Apache and <a href="http://httpd.apache.org/docs/2.2/mod/mod_vhost_alias.html">mod_vhost_alias</a>, it is possible to have one configuration file for all you development home-pages. But notice before you start, that $_SERVER["DOCUMENT_ROOT"] will NOT work with this hack!<br />
<span id="more-294"></span><br />
First step is to enable mod_vhost_alias:</p>
<blockquote><p>sudo a2enmod vhost_alias</p></blockquote>
<p>Next you have to make a config file for apache. I only use this setup, and have no other virtual hosts, so I just uses the default config file:</p>
<blockquote><p>sudo gedit /etc/apache2/sites-enabled/000-default</p></blockquote>
<p>and make it something like:</p>
<blockquote><p>&lt;VirtualHost *:80&gt;<br />
&nbsp;&nbsp;&nbsp;ServerName localhost<br />
&nbsp;&nbsp;&nbsp;ServerAlias *.localhost</p>
<p>&nbsp;&nbsp;&nbsp;VirtualDocumentRoot /var/www/htdocs/%1/</p>
<p>&nbsp;&nbsp;&nbsp;&lt;directory /var/www/&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;AllowOverride AuthConfig Options FileInfo Limit<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Options MultiViews SymlinksIfOwnerMatch<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Order allow,deny<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Allow from all<br />
&nbsp;&nbsp;&nbsp;&lt;/Directory&gt;  </p>
<p>&nbsp;&nbsp;&nbsp;ErrorLog /var/log/apache2/error.log<br />
&nbsp;&nbsp;&nbsp;LogLevel warn<br />
&lt;/virtualhost&gt;</p></blockquote>
<p>The important part is that there is not DocumentRoot, but instead the line:</p>
<blockquote><p>VirtualDocumentRoot /var/www/htdocs/%1/</p></blockquote>
<p><strong>%1</strong> means "the first part" of the domain, so if the domain is <em>customer1.localhost</em> the document root will be /var/www/htdocs/customer1/. There is different settings for this, which can be seen in the <a href="http://httpd.apache.org/docs/2.2/mod/mod_vhost_alias.html#interpol">Apache doc</a>.</p>
<p>Remember to restart apache:</p>
<blockquote><p>sudo /etc/init.d/apache2 restart</p></blockquote>
<p>Now you just have to create all the directories in /var/www/htdocs/ as you like, and add the corresponding sub-domains in the host file:</p>
<blockquote><p>sudo gedit /etc/hosts</p></blockquote>
<p> and add the sub-domains</p>
<blockquote><p>127.0.1.1 customer1.localhost<br />
127.0.1.1 customer2.localhost<br />
127.0.1.1 customer3.localhost</p></blockquote>
<p>Have fun :)</p>
<p><strong>Update: index page</strong><br />
Creating the directory /var/www/htdocs/localhost/ with the below code in index.php, it is possible to make an index page of all pages.</p>
<blockquote><p>
&lt;?<br />
$dir_handle = @opendir("../");</p>
<p>while ($file = readdir($dir_handle)) {<br />
	if($file!="." &#038;& $file!=".." &#038;& $file!="localhost") echo "&lt;a href='http://$file.localhost'&gt;http://$file.localhost&lt;br /&gt;";<br />
}</p>
<p>closedir($dir_handle);</p>
<p>?&gt;</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://ostehamster.dk/blog/index.php/2009/05/08/virtual-sub-domains-on-localhost-for-development/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

