<?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>ansi &#187; Ubuntu</title>
	<atom:link href="http://ansi.23-5.eu/tag/ubuntu/feed/" rel="self" type="application/rss+xml" />
	<link>http://ansi.23-5.eu</link>
	<description>geek  pirat  tekki</description>
	<lastBuildDate>Thu, 29 Dec 2011 02:18:15 +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>Problem setting up wordpress permalink on apache</title>
		<link>http://ansi.23-5.eu/2011/12/29/apache-rewrite-for-wordpress/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=apache-rewrite-for-wordpress</link>
		<comments>http://ansi.23-5.eu/2011/12/29/apache-rewrite-for-wordpress/#comments</comments>
		<pubDate>Thu, 29 Dec 2011 02:18:15 +0000</pubDate>
		<dc:creator>ansi</dc:creator>
				<category><![CDATA[Technic]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[fix]]></category>
		<category><![CDATA[peralink]]></category>
		<category><![CDATA[problem]]></category>
		<category><![CDATA[rewrite]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://ansi.23-5.eu/?p=41</guid>
		<description><![CDATA[Hi

I just tried to change the permalink in wordpress so it looks nicer and the links are more like "http://ansi.23-5.eu/2011/12/29/apache-rewrite-for-wordpress/" instead of "http://ansi.23-5.eu/?id=blubber/". Normally this is done in 2 steps. But I had some error in my virtual host configuration file. But please let me first explain the 2 normal steps. Just for the ...]]></description>
			<content:encoded><![CDATA[<p>Hi</p>
<p>I just tried to change the permalink in wordpress so it looks nicer and the links are more like &#8220;http://ansi.23-5.eu/2011/12/29/apache-rewrite-for-wordpress/&#8221; instead of &#8220;http://ansi.23-5.eu/?id=blubber/&#8221;. Normally this is done in 2 steps. But I had some error in my virtual host configuration file. But please let me first explain the 2 normal steps. Just for the sake of completeness. <img src='http://ansi.23-5.eu/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<ol>
<li>Inside WordPress under /Settings/Permalinks change it to some nice looking.</li>
<li>As root execute &#8220;a2enmod rewrite&#8221; and a nice &#8220;/etc/init.d/apache2 restart&#8221;</li>
</ol>
<p>Normally thats all. But it turns out that I had a mistake in my virtual host config file.</p>
<p>It looked like</p>
<pre>    &lt;Directory /var/www/ansi.23-5.eu/&gt;
        Options Indexes FollowSymLinks MultiViews
        AllowOverride none
        Order allow,deny
        allow from all
    &lt;/Directory&gt;</pre>
<p>But with this setting it disables the rewrite for this virtual server. The right config should</p>
<p>look like this:</p>
<pre>    &lt;Directory /var/www/ansi.23-5.eu/&gt;
        Options Indexes FollowSymLinks MultiViews
<strong>        AllowOverride all</strong>
        Order allow,deny
        allow from all
    &lt;/Directory&gt;

With this change and a "/etc/init.d/apache2 restart" everything works fine and I have the nice permalinks.</pre>
<p class="wp-flattr-button"></p> <p><a href="http://ansi.23-5.eu/?flattrss_redirect&amp;id=41&amp;md5=e5ba1f4c5290a36ba1007d0ebec5082d" title="Flattr" target="_blank"><img src="http://ansi.23-5.eu/wp-content/plugins/flattr/img/flattr-badge-large.png" alt="flattr this!"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://ansi.23-5.eu/2011/12/29/apache-rewrite-for-wordpress/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to export display via SSH after sudo su</title>
		<link>http://ansi.23-5.eu/2011/10/21/how-to-export-display-via-ssh-after-sudo-su/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=how-to-export-display-via-ssh-after-sudo-su</link>
		<comments>http://ansi.23-5.eu/2011/10/21/how-to-export-display-via-ssh-after-sudo-su/#comments</comments>
		<pubDate>Fri, 21 Oct 2011 11:56:11 +0000</pubDate>
		<dc:creator>ansi</dc:creator>
				<category><![CDATA[System]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://ansi.23-5.eu/?p=18</guid>
		<description><![CDATA[Moin
Just figured out together with DrScofield how to export the Display via an SSH tunnel after changing user to root via sudo. And hey it sound trivial but was not easy to find out. Here is the step by step way.

	ssh -X server #as normal user
	xterm #for testing if export display as normal user ...]]></description>
			<content:encoded><![CDATA[<p>Moin<br />
Just figured out together with DrScofield how to export the Display via an SSH tunnel after changing user to root via sudo. And hey it sound trivial but was not easy to find out. Here is the step by step way.</p>
<ol>
<li>ssh -X server #as normal user</li>
<li>xterm #for testing if export display as normal user works</li>
<li>echo $DISPLAY #write it down</li>
<li>xauth #enters the shell of xauth
<ol>
<li>list # find the line with the display number from step 3 for me it was “wpsvm054/unix:12 MIT-MAGIC-COOKIE-1 071df2e12cfff0ed75fd0af5869665f7″ remember the first part of it</li>
<li>quit #to leave the shell</li>
</ol>
</li>
<li>xauth extract filename system/unix:12 # the line from step 4.1</li>
<li>sudo su &#8211; # to become root</li>
<li>xauth merge filename # filename from step 5</li>
<li>export DISPLAY=:nummer.0 #Displaynumber from step 3 resp. 4.1</li>
<li>xterm #for testing</li>
</ol>
<p>Hope it works on other systems too.</p>
<p class="wp-flattr-button"></p> <p><a href="http://ansi.23-5.eu/?flattrss_redirect&amp;id=18&amp;md5=b850de664410dd725cb6f3bdfe9d6888" title="Flattr" target="_blank"><img src="http://ansi.23-5.eu/wp-content/plugins/flattr/img/flattr-badge-large.png" alt="flattr this!"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://ansi.23-5.eu/2011/10/21/how-to-export-display-via-ssh-after-sudo-su/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Howto boot ISO images via grub2 with ubuntu</title>
		<link>http://ansi.23-5.eu/2011/10/21/howto-boot-iso-images-via-grub2-with-ubuntu/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=howto-boot-iso-images-via-grub2-with-ubuntu</link>
		<comments>http://ansi.23-5.eu/2011/10/21/howto-boot-iso-images-via-grub2-with-ubuntu/#comments</comments>
		<pubDate>Fri, 21 Oct 2011 11:35:05 +0000</pubDate>
		<dc:creator>ansi</dc:creator>
				<category><![CDATA[System]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Technic]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://ansi.23-5.eu/?p=11</guid>
		<description><![CDATA[Moin

I am using Ubuntu “Daily builds” for some time inside Suns VirtualBox. Unfortunately the daily builds are not longer booting inside VirtualBox for more then 2 weeks now. Christian told me about a new feature of Grub2. You can boot ISO images directly from your hard disk without burning them on CD or USB. ...]]></description>
			<content:encoded><![CDATA[<p>Moin</p>
<p>I am using Ubuntu “<a href="http://web.archive.org/web/20100823023201/http://cdimages.ubuntu.com/daily-live/current/" target="_blank">Daily builds</a>” for some time inside Suns <a href="http://web.archive.org/web/20100823023201/http://www.virtualbox.org/" target="_blank">VirtualBox</a>. Unfortunately the daily builds are not longer booting inside VirtualBox for more then 2 weeks now. <a href="http://web.archive.org/web/20100823023201/http://www.facebook.com/christian.kirsch" target="_blank">Christian</a> told me about a new feature of <a href="http://web.archive.org/web/20100823023201/http://grub.enbug.org/FrontPage?action=show&amp;redirect=StartSeite" target="_blank">Grub2</a>. You can boot ISO images directly from your hard disk without burning them on CD or USB. Awesome feature and I had to try it today. Here is the description on how to do it with Ubuntu 9.10.</p>
<p>First I am using this tiny script to update all daily builds with the <a href="http://web.archive.org/web/20100823023201/http://zsync.moria.org.uk/" target="_blank">zsync</a> tool. It transfers only the changed parts of the ISO so you and the Ubuntu teams save a lot of traffic.</p>
<pre>zsync http://cdimages.ubuntu.com/daily-live/current/lucid-desktop-i386.iso.zsync
cd kubuntu
zsync http://cdimages.ubuntu.com/kubuntu/daily-live/current/lucid-desktop-i386.iso.zsync
cd ../netbook
zsync http://cdimages.ubuntu.com/ubuntu-netbook/daily-live/current/lucid-netbook-i386.iso.zsync
cd ../xubunutu
zsync http://cdimages.ubuntu.com/xubuntu/daily-live/current/lucid-desktop-i386.iso.zsync
cd ..
rm `find ./ -name "*.zs-old" `</pre>
<p>This script keeps all my daily builds up to date.</p>
<p>Next Step is to enable the grub menu. In Ubuntu it can be done in “<strong>/etc/default/grub</strong>“. Change the following lines</p>
<pre>GRUB_HIDDEN_TIMEOUT=<strong>10</strong>
GRUB_HIDDEN_TIMEOUT_QUIET=<strong>false</strong></pre>
<p>With this change you will see a 10 seconds count down when booting up. With the <strong>shift-key</strong> you get access to the grub boot menu. Next is to add the ISO images to the grub menu. Change to the “<strong>/etc/grub.d</strong>” dir.</p>
<p>Here you can find the grub menu entries and configuration files. Add your ISO images starting with <strong>50</strong> here. For example my entry for the normal Ubuntu ISO image (50_ubuntu) looks like this:</p>
<pre>echo "Adding $(egrep menu[e]ntry $0 | cut -d'"' -f2)" &gt;&amp;2
 cat &lt;&lt; EOF
menuentry "Ubuntu 10.04 Daily Build" {
       loopback loop (<strong>hd0,3</strong>)<strong>/ansi/software_and_config/ISOs/ubuntu/lucid-desktop-i386.iso</strong>
       linux (loop)/casper/vmlinuz boot=casper iso-scan/filename=<strong>/ansi/software_and_config/ISOs/ubuntu/lucid-desktop-i386.iso</strong> file=(loop)/preseed/ubuntu.seed quiet splash bootkbd=sg --
       initrd (loop)/casper/initrd.lz
}</pre>
<p>My ISO files are stored on <strong>sda3</strong> under <strong>/ansi/software_and_config/ISOs/ubuntu/</strong>. In order to change it for your needs there are 3 elements to change. The <strong>loopback</strong> line contains your hard disk in grub style (hdx,y x=0-&gt;sda x=1-&gt;sdb aso) and the path. The third element to change is in the linux line. Store this file as “<strong>50_ubuntu</strong>” in “<strong>/etc/grub.d</strong>“, make it executable with “<strong>chmod a+x 50_ubuntu</strong>” and activate the changes with “<strong>ubdate-grub</strong>“. After a reboot you should be able to activate the grub menu with the <strong>shift-key</strong> and select the new entry. Have fun.</p>
<p>I found some pages on this topic but the description there was not working for me so I changed it. But take a look on your own:</p>
<ul>
<li><a href="http://web.archive.org/web/20100823023201/http://forum.ubuntuusers.de/topic/lucid-lynx-ohne-cd-brennen-auf-realem-system-/#post-2326751">http://forum.ubuntuusers.de/topic/lucid-lynx-ohne-cd-brennen-auf-realem-system-/#post-2326751</a></li>
<li><a href="http://web.archive.org/web/20100823023201/http://wiki.ubuntuusers.de/GRUB_2/Konfiguration">http://wiki.ubuntuusers.de/GRUB_2/Konfiguration</a></li>
</ul>
<p class="wp-flattr-button"></p> <p><a href="http://ansi.23-5.eu/?flattrss_redirect&amp;id=11&amp;md5=f9ec0b39813c59cc090b1c60bb8d8fec" title="Flattr" target="_blank"><img src="http://ansi.23-5.eu/wp-content/plugins/flattr/img/flattr-badge-large.png" alt="flattr this!"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://ansi.23-5.eu/2011/10/21/howto-boot-iso-images-via-grub2-with-ubuntu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

