<?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>kb.hurricane-ridge.com &#187; Linux</title>
	<atom:link href="http://kb.hurricane-ridge.com/category/os/linux/feed" rel="self" type="application/rss+xml" />
	<link>http://kb.hurricane-ridge.com</link>
	<description>My personal - but public - knowledge base</description>
	<lastBuildDate>Mon, 09 Jan 2012 14:49:05 +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>Converting an IP Address to Hex</title>
		<link>http://kb.hurricane-ridge.com/os/linux/converting-an-ip-address-to-hex</link>
		<comments>http://kb.hurricane-ridge.com/os/linux/converting-an-ip-address-to-hex#comments</comments>
		<pubDate>Wed, 10 Nov 2010 06:14:23 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[gethostip]]></category>
		<category><![CDATA[pxelinux]]></category>
		<category><![CDATA[pxelinux.cfg]]></category>
		<category><![CDATA[tftp]]></category>
		<category><![CDATA[tftpboot]]></category>

		<guid isPermaLink="false">http://kb.hurricane-ridge.com/?p=1006</guid>
		<description><![CDATA[Convert an IP address to hex using the &#8220;gethostip&#8221; command: This is useful for naming files in a pxelinux.cfg directory, for instance.]]></description>
			<content:encoded><![CDATA[<p>Convert an IP address to hex using the &#8220;gethostip&#8221; command:</p>
<pre class="brush: plain; light: true; title: ; notranslate">
$ gethostip 1.2.3.4
1.2.3.4 1.2.3.4 010203047
</pre>
<p>This is useful for naming files in a pxelinux.cfg directory, for instance.</p>
]]></content:encoded>
			<wfw:commentRss>http://kb.hurricane-ridge.com/os/linux/converting-an-ip-address-to-hex/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Generating Crypted Passwords for Kickstart Files</title>
		<link>http://kb.hurricane-ridge.com/os/linux/rhel/generating-crypted-passwords-for-kickstart-files</link>
		<comments>http://kb.hurricane-ridge.com/os/linux/rhel/generating-crypted-passwords-for-kickstart-files#comments</comments>
		<pubDate>Mon, 04 Oct 2010 17:38:35 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Red Hat Enterprise Linux]]></category>
		<category><![CDATA[esx]]></category>
		<category><![CDATA[esxi]]></category>
		<category><![CDATA[kickstart]]></category>
		<category><![CDATA[md5]]></category>
		<category><![CDATA[openssl]]></category>
		<category><![CDATA[VMware]]></category>

		<guid isPermaLink="false">http://kb.hurricane-ridge.com/?p=992</guid>
		<description><![CDATA[For Red Hat or clones, or ESX/ESXi, use &#8220;grub-md5-crypt&#8221;: Copy and paste to &#8220;rootpw &#8211;iscrypted&#8221; as appropriate.]]></description>
			<content:encoded><![CDATA[<p>For Red Hat or clones, or ESX/ESXi, use &#8220;grub-md5-crypt&#8221;:</p>
<pre class="brush: plain; light: true; title: ; notranslate">
&gt; grub-md5-crypt
Password:
Retype password:
$1$KnYGn/$wOAmKuQH3KP35XRjWiUpX/
</pre>
<p>Copy and paste to &#8220;rootpw &#8211;iscrypted&#8221; as appropriate.</p>
]]></content:encoded>
			<wfw:commentRss>http://kb.hurricane-ridge.com/os/linux/rhel/generating-crypted-passwords-for-kickstart-files/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Example checkinstall arguments</title>
		<link>http://kb.hurricane-ridge.com/os/linux/ubuntu/example-checkinstall-arguments</link>
		<comments>http://kb.hurricane-ridge.com/os/linux/ubuntu/example-checkinstall-arguments#comments</comments>
		<pubDate>Mon, 02 Aug 2010 21:59:14 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[checkinstall]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[dpkg]]></category>
		<category><![CDATA[packaging]]></category>

		<guid isPermaLink="false">http://kb.hurricane-ridge.com/?p=979</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[<pre class="brush: bash; title: ; notranslate">
&gt; sudo checkinstall -D --pkgname openldap_proxy --pkgversion=2.4.22-hrc --arch=amd64 \
  --maintainer=sysadmin@example.com --nodoc
</pre>
]]></content:encoded>
			<wfw:commentRss>http://kb.hurricane-ridge.com/os/linux/ubuntu/example-checkinstall-arguments/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Query Architecture of RPMs</title>
		<link>http://kb.hurricane-ridge.com/os/linux/rhel/query-architecture-of-rpms</link>
		<comments>http://kb.hurricane-ridge.com/os/linux/rhel/query-architecture-of-rpms#comments</comments>
		<pubDate>Tue, 15 Jun 2010 22:01:16 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Red Hat Enterprise Linux]]></category>

		<guid isPermaLink="false">http://kb.hurricane-ridge.com/?p=965</guid>
		<description><![CDATA[To query the architecture of installed RPMs, use a custom query format:]]></description>
			<content:encoded><![CDATA[<p>To query the architecture of installed RPMs, use a custom query format:</p>
<pre class="brush: bash; light: true; title: ; notranslate">
rpm -q -a --queryformat='%{N}-%{V}-%{R}.%{arch}\n'
</pre>
]]></content:encoded>
			<wfw:commentRss>http://kb.hurricane-ridge.com/os/linux/rhel/query-architecture-of-rpms/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Mount an ISO image on Linux</title>
		<link>http://kb.hurricane-ridge.com/os/linux/mount-an-iso-image-on-linux</link>
		<comments>http://kb.hurricane-ridge.com/os/linux/mount-an-iso-image-on-linux#comments</comments>
		<pubDate>Tue, 15 Jun 2010 21:59:12 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[iso]]></category>
		<category><![CDATA[mount]]></category>

		<guid isPermaLink="false">http://kb.hurricane-ridge.com/?p=960</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[<pre class="brush: bash; light: true; title: ; notranslate">
# mount -o loop disk1.iso /mnt/disk
</pre>
]]></content:encoded>
			<wfw:commentRss>http://kb.hurricane-ridge.com/os/linux/mount-an-iso-image-on-linux/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Flushing nscd&#8217;s cache</title>
		<link>http://kb.hurricane-ridge.com/os/linux/rhel/flushing-nscds-cache</link>
		<comments>http://kb.hurricane-ridge.com/os/linux/rhel/flushing-nscds-cache#comments</comments>
		<pubDate>Tue, 22 Dec 2009 15:06:33 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Red Hat Enterprise Linux]]></category>
		<category><![CDATA[cache]]></category>
		<category><![CDATA[nscd]]></category>

		<guid isPermaLink="false">http://kb.hurricane-ridge.com/?p=771</guid>
		<description><![CDATA[By default, in RHEL, nscd is configured to have a persistent cache &#8211; one that is &#8220;stored on the disk and therefore survive[s] a nscd restart or e.g. machine reboot&#8221; according to the nscd.conf man page. To flush the cache, you must run nscd with the &#8220;-i&#8221; flag instead of simply restarting it: sudo nscd [...]]]></description>
			<content:encoded><![CDATA[<p>By default, in RHEL, nscd is configured to have a persistent cache &#8211; one that is &#8220;stored  on  the  disk and therefore survive[s] a nscd restart or e.g. machine reboot&#8221; according to the nscd.conf man page.</p>
<p>To flush the cache, you must run nscd with the &#8220;-i&#8221; flag instead of simply restarting it:</p>
<p><code><br />
sudo nscd -i passwd -i group<br />
</code></p>
]]></content:encoded>
			<wfw:commentRss>http://kb.hurricane-ridge.com/os/linux/rhel/flushing-nscds-cache/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Creating an XFS Partition</title>
		<link>http://kb.hurricane-ridge.com/os/linux/rhel/creating-an-xfs-partition</link>
		<comments>http://kb.hurricane-ridge.com/os/linux/rhel/creating-an-xfs-partition#comments</comments>
		<pubDate>Tue, 23 Jun 2009 15:58:54 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Red Hat Enterprise Linux]]></category>

		<guid isPermaLink="false">http://kb.hurricane-ridge.com/?p=508</guid>
		<description><![CDATA[Steps for creating an XFS partition on /dev/sdc which encompasses the entire disk. (LVM is not used in this example. Post written using Scientific Linux 5.3, but should be relevant to any RHEL clone with XFS support.) Partition the disk using fdisk; we want the standard Linux partition id of &#8220;83&#8243;, so no need to [...]]]></description>
			<content:encoded><![CDATA[<p>Steps for creating an XFS partition on /dev/sdc which encompasses the entire disk.  (LVM is not used in this example.  Post written using Scientific Linux 5.3, but should be relevant to any RHEL clone with XFS support.)</p>
<p>Partition the disk using fdisk; we want the standard Linux partition id of &#8220;83&#8243;, so no need to modify that here:</p>
<p><code># <strong>/sbin/fdisk /dev/sdc</strong><br />
Device contains neither a valid DOS partition table, nor Sun, SGI or OSF disklabel<br />
Building a new DOS disklabel. Changes will remain in memory only,<br />
until you decide to write them. After that, of course, the previous<br />
content won't be recoverable.<br />
The number of cylinders for this disk is set to 1305.<br />
There is nothing wrong with that, but this is larger than 1024,<br />
and could in certain setups cause problems with:<br />
1) software that runs at boot time (e.g., old versions of LILO)<br />
2) booting and partitioning software from other OSs<br />
   (e.g., DOS FDISK, OS/2 FDISK)<br />
Warning: invalid flag 0x0000 of partition table 4 will be corrected by w(rite)<br />
Command (m for help): <strong>n</strong><br />
Command action<br />
   e   extended<br />
   p   primary partition (1-4)<br />
<strong>p</strong><br />
Partition number (1-4): <strong>1</strong><br />
First cylinder (1-1305, default 1): <strong>(press enter to accept default)</strong><br />
Using default value 1<br />
Last cylinder or +size or +sizeM or +sizeK (1-1305, default 1305): <strong>(press enter to accept default)</strong><br />
Using default value 1305<br />
Command (m for help): <strong>p</strong><br />
Disk /dev/sdc: 10.7 GB, 10737418240 bytes<br />
255 heads, 63 sectors/track, 1305 cylinders<br />
Units = cylinders of 16065 * 512 = 8225280 bytes<br />
   Device Boot      Start         End      Blocks   Id  System<br />
/dev/sdc1               1        1305    10482381   83  Linux<br />
</code></p>
<p>On VMware, align the partition:</p>
<p><code>Command (m for help): x<br />
Expert command (m for help): b<br />
Partition number (1-4): 1<br />
New beginning of data (63-83875364, default 63): 128<br />
</code></p>
<p>Write the partition table out to disk:</p>
<p><code><br />
Command (m for help): <strong>w</strong><br />
The partition table has been altered!<br />
Calling ioctl() to re-read partition table.<br />
Syncing disks.<br />
</code></p>
<p>Format the partition as XFS, using the defaults:</p>
<p><code># <strong>/sbin/mkfs.xfs /dev/sdc1</strong><br />
meta-data=/dev/sdc1              isize=256    agcount=16, agsize=163787 blks<br />
         =                       sectsz=512   attr=0<br />
data     =                       bsize=4096   blocks=2620592, imaxpct=25<br />
         =                       sunit=0      swidth=0 blks, unwritten=1<br />
naming   =version 2              bsize=4096<br />
log      =internal log           bsize=4096   blocks=2560, version=1<br />
         =                       sectsz=512   sunit=0 blks, lazy-count=0<br />
realtime =none                   extsz=4096   blocks=0, rtextents=0<br />
</code></p>
<p>The XFS partition is now set for use:</p>
<p><code># <strong>mount /dev/sdc1 /depot</strong></code></p>
]]></content:encoded>
			<wfw:commentRss>http://kb.hurricane-ridge.com/os/linux/rhel/creating-an-xfs-partition/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Extracting an RPM without installing it</title>
		<link>http://kb.hurricane-ridge.com/os/linux/rhel/extracting-an-rpm-without-installing-it</link>
		<comments>http://kb.hurricane-ridge.com/os/linux/rhel/extracting-an-rpm-without-installing-it#comments</comments>
		<pubDate>Wed, 01 Apr 2009 22:55:16 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Red Hat Enterprise Linux]]></category>
		<category><![CDATA[rpm]]></category>

		<guid isPermaLink="false">http://kb.hurricane-ridge.com/?p=396</guid>
		<description><![CDATA[If you want to inspect files in an RPM without installing it, use rpm2cpio piped to cpio: rpm2cpio file.rpm &#124; cpio -id Note that this will create a (local) directory tree under which the extracted files will be placed. In other words, expect the files to be extracted under a newly created &#8220;usr&#8221; directory or [...]]]></description>
			<content:encoded><![CDATA[<p>If you want to inspect files in an RPM without installing it, use rpm2cpio piped to cpio:</p>
<p><code>rpm2cpio file.rpm | cpio -id</code></p>
<p>Note that this will create a (local) directory tree under which the extracted files will be placed.  In other words, expect the files to be extracted under a newly created &#8220;usr&#8221; directory or similar.</p>
]]></content:encoded>
			<wfw:commentRss>http://kb.hurricane-ridge.com/os/linux/rhel/extracting-an-rpm-without-installing-it/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Access control lists on Linux</title>
		<link>http://kb.hurricane-ridge.com/os/linux/access-control-lists-on-linux</link>
		<comments>http://kb.hurricane-ridge.com/os/linux/access-control-lists-on-linux#comments</comments>
		<pubDate>Thu, 15 Jan 2009 23:09:19 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[acl]]></category>
		<category><![CDATA[ext3]]></category>

		<guid isPermaLink="false">http://kb.hurricane-ridge.com/?p=159</guid>
		<description><![CDATA[To view ACLs on a file: &#62; getfacl file.txt To modify the ACL on a file: &#62; setfacl -m user:rwx file.txt To recursively change an ACL: &#62; setfacl -R -m user:rwx . To modify the default ACL for a directory: &#62; setfacl -d -m user:rwx. See the getfacl and setfacl man pages for more information.]]></description>
			<content:encoded><![CDATA[<p>To view ACLs on a file:</p>
<pre> &gt; <span class="highlightedSearchTerm">getfacl</span> file.txt</pre>
<p>To modify the ACL on a file:</p>
<pre> &gt; setfacl -m user:rwx file.txt</pre>
<p>To recursively change an ACL:</p>
<pre> &gt; setfacl -R -m user:rwx .</pre>
<p>To modify the default ACL for a directory:</p>
<pre> &gt; setfacl -d -m user:rwx.</pre>
<p>See the <code><span class="highlightedSearchTerm">getfacl</span></code> and <code>setfacl</code> man pages for more information.</p>
]]></content:encoded>
			<wfw:commentRss>http://kb.hurricane-ridge.com/os/linux/access-control-lists-on-linux/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Displaying Boot Messages on Ubuntu</title>
		<link>http://kb.hurricane-ridge.com/os/linux/ubuntu/displaying-boot-messages-on-ubuntu</link>
		<comments>http://kb.hurricane-ridge.com/os/linux/ubuntu/displaying-boot-messages-on-ubuntu#comments</comments>
		<pubDate>Tue, 06 Jan 2009 15:40:34 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[grub]]></category>

		<guid isPermaLink="false">http://kb.hurricane-ridge.com/?p=84</guid>
		<description><![CDATA[To display Ubuntu boot messages one time, do the following: Press &#8220;e&#8221; while the GRUB screen to select a kernel version is displayed. Edit the kernel line, again by pressing &#8220;e&#8221;, to remove any references to &#8220;quiet&#8221; &#8211; it is generally at the end of the line, with &#8220;splash&#8221;. Edit the fifth line, below the [...]]]></description>
			<content:encoded><![CDATA[<p>To display Ubuntu boot messages one time, do the following:</p>
<ul>
<li>Press &#8220;e&#8221; while the GRUB screen to select a kernel version is displayed.</li>
<li>Edit the <em>kernel</em> line, again by pressing &#8220;e&#8221;, to remove any references to &#8220;quiet&#8221; &#8211; it is generally at the end of the line, with &#8220;splash&#8221;.</li>
<li>Edit the fifth line, below the &#8220;initrd&#8221; line &#8211; the &#8220;quiet&#8221; all by itself on a line &#8211; so that it is empty.</li>
</ul>
<p>To permanently display boot messages, edit <code>/boot/grub/menu.lst</code>:</p>
<ul>
<li>Edit (but do not uncomment) the &#8220;defoptions&#8221; line so that it reads:
<pre><code># defoptions=splash</code></pre>
</li>
<li>Edit your default entry (defined with the <code>default</code> entry near the top of the file) as in the one-time steps, removing &#8220;quiet&#8221; in both locations.</li>
<li>Reboot.</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://kb.hurricane-ridge.com/os/linux/ubuntu/displaying-boot-messages-on-ubuntu/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

