<?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>Felipe Alfaro Solana &#187; Fedora</title>
	<atom:link href="http://www.felipe-alfaro.org/blog/category/linux/fedora/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.felipe-alfaro.org/blog</link>
	<description>A little bit of technology, security and networking with Linux, FreeBSD and Mac OS X, plus some personal opinions.</description>
	<lastBuildDate>Sun, 23 Oct 2011 16:46:32 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>Fedora Core rescue and umount /mnt/sysimage</title>
		<link>http://www.felipe-alfaro.org/blog/2006/04/20/fedora-core-rescue-and-umount-mntsysimage/</link>
		<comments>http://www.felipe-alfaro.org/blog/2006/04/20/fedora-core-rescue-and-umount-mntsysimage/#comments</comments>
		<pubDate>Wed, 19 Apr 2006 19:11:57 +0000</pubDate>
		<dc:creator>Felipe Alfaro Solana</dc:creator>
				<category><![CDATA[Fedora]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://felipe-alfaro.org/blog/2006/04/20/fedora-core-rescue-and-umount-mntsysimage/</guid>
		<description><![CDATA[Today, I was trying to resize a logical volume of one of my systems running Fedora Core 5, configured with two LVM volumes (one for the root filesystem and another one for swap) on top of a software RAID-0. Since the volume I wanted to shrink holds the root filesystem, I had to boot from [...]]]></description>
			<content:encoded><![CDATA[<p>Today, I was trying to resize a logical volume of one of my systems running Fedora Core 5, configured with two LVM volumes (one for the root filesystem and another one for swap) on top of a software RAID-0. Since the volume I wanted to shrink holds the root filesystem, I had to boot from the Fedora Core 5 rescue CD in order to reduce the filesystem (<code>ext2online</code> didn&#8217;t allow me to reduce the filesystem on the fly), then reducing the volume itself.</p>
<p>Thus, I booted from the Fedora Core 5 DVD by entering <code>linux rescue</code> at the <em>syslinux</em> prompt, then choosed English for both the system language and keyboard layout. Since I was lazy, and didn&#8217;t want to manually set up the RAID disks and search for LVM volumes, I told Anaconda to scan the system for a Linux installation and mount it read-only under <code>/mnt/sysimage</code>.</p>
<p>What I didn&#8217;t know is that Anaconda also spawns up <code>/mnt/sysimage/usr/bin/bash</code> as the shell (instead of <code>/bin/bash</code> which is the one I expected), appends <code>/mnt/sysimage/bin:/mnt/sysimage/sbin:\<br />
/mnt/sysimage/usr/bin:/mnt/sysimage/usr/sbin:\<br />
/mnt/usr/X11R6/bin</code> to <code>PATH</code> and appends <code>/mnt/sysimage/lib:/mnt/sysimage/usr/lib</code> to <code>LD_LIBRARY_PATH</code>. So, when I tried to <code>umount /mnt/sysimage</code> it failed with a <em>Device or resource busy error message</em>:</p>
<div>
<pre>
# umount /mnt/sysimage/boot
# umount /mnt/sysimage/dev
# umount /mnt/sysimage/selinux
# umount /mnt/sysimage/sys
# umount /mnt/sysimage/proc
# umount /mnt/sysimage
umount: Device or resource busy
</pre>
</div>
<p>The solution was easy, however:</p>
<div>
<pre>
# exec /bin/bash
# umount /mnt/sysimage
# echo $?
0
</pre>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.felipe-alfaro.org/blog/2006/04/20/fedora-core-rescue-and-umount-mntsysimage/feed/</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
		<item>
		<title>Automatic start-up for SSL-enabled instances of Fedora Directory Server</title>
		<link>http://www.felipe-alfaro.org/blog/2006/02/14/automatic-start-up-for-ssl-enabled-instances-of-fedora-directory-server/</link>
		<comments>http://www.felipe-alfaro.org/blog/2006/02/14/automatic-start-up-for-ssl-enabled-instances-of-fedora-directory-server/#comments</comments>
		<pubDate>Mon, 13 Feb 2006 23:18:26 +0000</pubDate>
		<dc:creator>Felipe Alfaro Solana</dc:creator>
				<category><![CDATA[Fedora]]></category>
		<category><![CDATA[LDAP]]></category>

		<guid isPermaLink="false">http://felipe-alfaro.org/blog/2006/02/14/automatic-start-up-for-ssl-enabled-instances-of-fedora-directory-server/</guid>
		<description><![CDATA[Fedora Directory Server protects its internal, software-based, cryptographic repository with a PIN (passphrase). When an instance of a Fedora Directory Server is configured for SSL/TLS support, by default, the start-up script interactively prompts for that PIN in order to unlock the private key. This can be a problem for automated system start-ups. However, there is [...]]]></description>
			<content:encoded><![CDATA[<p>Fedora Directory Server protects its internal, software-based, cryptographic repository with a PIN (passphrase).</p>
<p>When an instance of a Fedora Directory Server is configured for SSL/TLS support, by default, the start-up script interactively prompts for that PIN in order to unlock the private key. This can be a problem for automated system start-ups.</p>
<p>However, there is a way to configure Fedora Directory Server in such a way that the PIN is stored into a root-only readable configuration file. Thus, during start-up, the directory server instance can retrieve the PIN from that configuration file wihout asking it.</p>
<p>The PIN is stored into a file called:</p>
<div>
<pre>
/opt/fedora-ds/alias/slapd-[instance_name]-pin.txt
</pre>
</div>
<p>and should contain a single line with the following format:</p>
<div>
<pre>
Internal (Software) Token:[pin or passphrase]
</pre>
</div>
<p>For example, if the Fedora Directory Server instance is named <code>"server1"</code> and the PIN or passphrase needed to unlock the SSL/TLS private key is <code>"secret"</code>:</p>
<div>
<pre>
# echo "Internal (Software) Token:secret" > \
   /opt/fedora-ds/alias/slapd-server1-pin.txt
</pre>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.felipe-alfaro.org/blog/2006/02/14/automatic-start-up-for-ssl-enabled-instances-of-fedora-directory-server/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>

