<?xml version="1.0" encoding="utf-8" ?>

<rss version="2.0" 
   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
   xmlns:admin="http://webns.net/mvcb/"
   xmlns:dc="http://purl.org/dc/elements/1.1/"
   xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
   xmlns:wfw="http://wellformedweb.org/CommentAPI/"
   xmlns:content="http://purl.org/rss/1.0/modules/content/"
   >
<channel>
    <title>Fedora Daily Package - Wednesday Why</title>
    <link>http://dailypackage.fedorabook.com/</link>
    <description></description>
    <dc:language>en</dc:language>
    <generator>Serendipity 1.1.2 - http://www.s9y.org/</generator>
    <pubDate>Tue, 27 May 2008 04:35:09 GMT</pubDate>

    <image>
        <url>http://dailypackage.fedorabook.com/templates/default/img/s9y_banner_small.png</url>
        <title>RSS: Fedora Daily Package - Wednesday Why - </title>
        <link>http://dailypackage.fedorabook.com/</link>
        <width>100</width>
        <height>21</height>
    </image>

<item>
    <title>Wednesday Why: Getting an F8 LVM System Ready for F9</title>
    <link>http://dailypackage.fedorabook.com/index.php?/archives/181-Wednesday-Why-Getting-an-F8-LVM-System-Ready-for-F9.html</link>
            <category>Wednesday Why</category>
    
    <comments>http://dailypackage.fedorabook.com/index.php?/archives/181-Wednesday-Why-Getting-an-F8-LVM-System-Ready-for-F9.html#comments</comments>
    <wfw:comment>http://dailypackage.fedorabook.com/wfwcomment.php?cid=181</wfw:comment>

    <slash:comments>2</slash:comments>
    <wfw:commentRss>http://dailypackage.fedorabook.com/rss.php?version=2.0&amp;type=comments&amp;cid=181</wfw:commentRss>
    

    <author>nospam@example.com (Chris Tyler)</author>
    <content:encoded>
    &lt;br /&gt;
Fedora 9 is only a few days away, as the counter on the &lt;a href=&quot;http://dailypackage.fedorabook.com/&quot;&gt;front page&lt;/a&gt; testifies. Although it&#039;s possible to upgrade an earlier Fedora system to F9, it&#039;s generally agreed that a fresh installation is cleaner and has less potential for problems. If your system uses LVM (which has been the default for the last several Fedora releases), it&#039;s particularly easy to perform a fresh installation while maintaining access to your previous data, because you can create new Logical Volumes within your existing Volume Group. You can then mount your old filesystems and migrate data over with ease.&lt;br /&gt;&lt;p&gt;This type of installation will be covered in the upcoming F9 Focus Week, but in order to prepare for it, you&#039;ll need some free space within your volume group -- I&#039;d recommend at least 6-10 GB. If you&#039;re not really comfortable with the LVM commands, you can explore and adjust your LVM configuration using the &lt;i&gt;&lt;a href=&quot;http://dailypackage.fedorabook.com/index.php?/archives/92-GUI-Thursday-System-config-lvm-LVM-GUI-tool.html&quot;&gt;system-config-lvm&lt;/a&gt;&lt;/i&gt; tool; however, to reduce the size of a logical volume and free up some space, the filesystem within that logical volume must be unmounted -- and in the case of the root filesystem, that means that the system can&#039;t be running in its normal way, which pretty much precludes the use of &lt;i&gt;system-config-lvm&lt;/i&gt;. To reduce the size of the root filesystem, see the article on &lt;a href=&quot;http://dailypackage.fedorabook.com/index.php?/archives/159-System-Recovery-Week-Using-LVM-In-Rescue-Mode.html&quot;&gt;Using LVM In Rescue Mode&lt;/a&gt; from &lt;a href=&quot;http://dailypackage.fedorabook.com/index.php?/categories/11-System-Recovery-Week&quot;&gt;System Recovery Week&lt;/a&gt;.&lt;/p&gt;&lt;p&gt;(Note the links above -- sorry if they&#039;re not very visible or obvious due to the styling).&lt;/p&gt;&lt;p&gt;&lt;i&gt;&lt;b&gt;Update: &lt;/b&gt;&lt;/i&gt;KageSenshi points out that &lt;font face=&quot;courier new,courier,monospace&quot;&gt;system-config-lvm&lt;/font&gt; is on the Fedora live disc images. You can resize the root filesystem on the hard disk by simply booting from a live disc and running the &lt;font face=&quot;courier new,courier,monospace&quot;&gt;system-config-lvm&lt;/font&gt; command from a terminal window.&lt;br /&gt; &lt;/p&gt; 
    </content:encoded>

    <pubDate>Wed, 07 May 2008 00:01:00 -0400</pubDate>
    <guid isPermaLink="false">http://dailypackage.fedorabook.com/index.php?/archives/181-guid.html</guid>
    
</item>
<item>
    <title>Wednesday Why: How does Pulseaudio start?</title>
    <link>http://dailypackage.fedorabook.com/index.php?/archives/172-Wednesday-Why-How-does-Pulseaudio-start.html</link>
            <category>Wednesday Why</category>
    
    <comments>http://dailypackage.fedorabook.com/index.php?/archives/172-Wednesday-Why-How-does-Pulseaudio-start.html#comments</comments>
    <wfw:comment>http://dailypackage.fedorabook.com/wfwcomment.php?cid=172</wfw:comment>

    <slash:comments>3</slash:comments>
    <wfw:commentRss>http://dailypackage.fedorabook.com/rss.php?version=2.0&amp;type=comments&amp;cid=172</wfw:commentRss>
    

    <author>nospam@example.com (Chris Tyler)</author>
    <content:encoded>
    &lt;br /&gt;
&lt;i&gt;PulseAudio&lt;/i&gt; became the standard audio system in Fedora 8, but how does the &lt;font face=&quot;courier new,courier,monospace&quot;&gt;pulseaudio&lt;/font&gt; daemon start in a Gnome session?&lt;p&gt;Gnome sessions are managed by &lt;font face=&quot;courier new,courier,monospace&quot;&gt;gnome-session&lt;/font&gt;, which starts a standard set of clients (as well as any programs which you have configured for your account) each time the Gnome desktop is started. The file &lt;font face=&quot;courier new,courier,monospace&quot;&gt;/usr/share/gnome/default.session&lt;/font&gt; file, which configures the default list of clients, looks like this:&lt;/p&gt;&lt;blockquote&gt;&lt;p&gt;&lt;font face=&quot;courier new,courier,monospace&quot;&gt;# This is the default session that is launched if the user doesn&#039;t&lt;br /&gt;# already have a session.&lt;br /&gt;# The RestartCommand specifies the command to run from the $PATH.&lt;br /&gt;# The Priority determines the order in which the commands are started&lt;br /&gt;# (with Priority = 0 first) and defaults to 50.&lt;br /&gt;# The id provides a name that is unique within this file and passed to the&lt;br /&gt;# app as the client id which it must use to register with gnome-session.&lt;br /&gt;# The clients must be numbered from 0 to the value of num_clients - 1.&lt;br /&gt;&lt;br /&gt;[Default]&lt;br /&gt;num_clients=5&lt;br /&gt;0,id=default0&lt;br /&gt;0,Priority=60&lt;br /&gt;0,RestartCommand=&lt;font color=&quot;#ff0000&quot;&gt;&lt;b&gt;pam-panel-icon&lt;/b&gt;&lt;/font&gt; --sm-client-id default0&lt;br /&gt;1,id=default1&lt;br /&gt;1,Priority=10&lt;br /&gt;1,RestartCommand=&lt;font color=&quot;#ff0000&quot;&gt;&lt;b&gt;gnome-wm&lt;/b&gt;&lt;/font&gt; --default-wm gnome-wm --sm-client-id default1&lt;br /&gt;2,id=default2&lt;br /&gt;2,Priority=40&lt;br /&gt;2,RestartCommand=&lt;font color=&quot;#ff0000&quot;&gt;&lt;b&gt;gnome-panel&lt;/b&gt;&lt;/font&gt; --sm-client-id default2&lt;br /&gt;3,id=default3&lt;br /&gt;3,Priority=40&lt;br /&gt;3,RestartCommand=&lt;font color=&quot;#ff0000&quot;&gt;&lt;b&gt;nautilus&lt;/b&gt;&lt;/font&gt; --no-default-window --sm-client-id default3&lt;br /&gt;4,id=default4&lt;br /&gt;4,Priority=40&lt;br /&gt;4,RestartCommand=&lt;font color=&quot;#ff0000&quot;&gt;&lt;b&gt;gnome-volume-manager&lt;/b&gt;&lt;/font&gt; --sm-client-id default4&lt;/font&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;p&gt;As you can see, the &lt;i&gt;PulseAudio&lt;/i&gt; daemon is not among the programs listed (note that &lt;i&gt;gnome-volume-manager&lt;/i&gt; is the mounted filesystem volume manager, not an audio volume manager). But this list isn&#039;t exhaustive: commands listed in &lt;font face=&quot;courier new,courier,monospace&quot;&gt;.desktop&lt;/font&gt; files in &lt;font face=&quot;courier new,courier,monospace&quot;&gt;/usr/share/gnome/autostart&lt;/font&gt; are also executed when a session is opened -- but on my system the only files in there are &lt;font face=&quot;courier new,courier,monospace&quot;&gt;bluetooth-applet.desktop&lt;/font&gt;, &lt;font face=&quot;courier new,courier,monospace&quot;&gt;gnome-volume-manager.desktop&lt;/font&gt;, and &lt;br /&gt;&lt;font face=&quot;courier new,courier,monospace&quot;&gt;gnome-power-manager.desktop&lt;/font&gt;, and none of those files contain any reference to &lt;i&gt;PulseAudio&lt;/i&gt;.&lt;/p&gt;&lt;p&gt;So what starts &lt;font face=&quot;courier new,courier,monospace&quot;&gt;pulseaudio&lt;/font&gt;? A quick check of the output of &lt;font face=&quot;courier new,courier,monospace&quot;&gt;ps&lt;/font&gt; reveals that its parent process is in fact gnome-session, and &lt;font face=&quot;courier new,courier,monospace&quot;&gt;strace&lt;/font&gt; confirms this.&lt;/p&gt;&lt;p&gt;A look at the rpm packages that start with &amp;quot;pulse&amp;quot; reveals something interesting:&lt;/p&gt;&lt;blockquote&gt;&lt;p&gt;&lt;font face=&quot;courier new,courier,monospace&quot;&gt;$ &lt;b&gt;rpm -qa|egrep &#039;^pulse&#039;&lt;/b&gt;&lt;br /&gt;pulseaudio-libs-0.9.8-5.fc8&lt;br /&gt;pulseaudio-module-x11-0.9.8-5.fc8&lt;br /&gt;pulseaudio-0.9.8-5.fc8&lt;br /&gt;pulseaudio-libs-glib2-0.9.8-5.fc8&lt;br /&gt;pulseaudio-utils-0.9.8-5.fc8&lt;br /&gt;pulseaudio-core-libs-0.9.8-5.fc8&lt;br /&gt;pulseaudio-module-gconf-0.9.8-5.fc8&lt;br /&gt;&lt;font color=&quot;#00ff00&quot;&gt;&lt;b&gt;pulseaudio-esound-compat-0.9.8-5.fc8&lt;/b&gt;&lt;/font&gt;&lt;br /&gt;pulseaudio-libs-0.9.8-5.fc8&lt;/font&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;p&gt;The &lt;i&gt;esound daemon&lt;/i&gt; (esd) was the audio daemon historically used by Gnome. A quick look at the files included in &lt;font face=&quot;courier new,courier,monospace&quot;&gt;pulseaudio-esound-compat&lt;/font&gt; shows that it provides a dummy &lt;font face=&quot;courier new,courier,monospace&quot;&gt;esd&lt;/font&gt;&lt;i&gt; &lt;/i&gt;command:&lt;/p&gt;&lt;blockquote&gt;&lt;p&gt;&lt;font face=&quot;courier new,courier,monospace&quot;&gt;$ &lt;b&gt;rpm -ql pulseaudio-esound-compat&lt;/b&gt;&lt;br /&gt;/usr/bin/esd&lt;br /&gt;/usr/bin/esdcompat&lt;br /&gt;/usr/share/man/man1/esdcompat.1.gz&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font face=&quot;courier new,courier,monospace&quot;&gt;$ &lt;b&gt;file /usr/bin/esd*&lt;/b&gt;&lt;br /&gt;/usr/bin/esd:        symbolic link to `esdcompat&#039;&lt;br /&gt;/usr/bin/esdcompat:  Bourne shell script text executable&lt;br /&gt;/usr/bin/esd-config: Bourne shell script text executable&lt;/font&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;p&gt;The man page for &lt;font face=&quot;courier new,courier,monospace&quot;&gt;esdcompat&lt;/font&gt; tells a bit more of the story:&lt;/p&gt;&lt;blockquote&gt;&lt;p&gt;&lt;i&gt;esdcompat&lt;/i&gt; is a compatiblity script that takes the same arguments as the ESD sound daemon &lt;font face=&quot;courier new,courier,monospace&quot;&gt;esd(1)&lt;/font&gt;, but uses them to start a the &lt;i&gt;PulseAudio&lt;/i&gt; sound server with the appropriate parameters. It is required to make PulseAudio a drop-in replacement for esd, i.e. &lt;font color=&quot;#0000ff&quot;&gt;&lt;b&gt;it can be used to  make  &lt;font face=&quot;courier new,courier,monospace&quot;&gt;gnome-session(1)&lt;/font&gt; start up PulseAudio instead of esd&lt;/b&gt;.&lt;/font&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;p&gt;This brings us to the final question: why does &lt;i&gt;gnome-session&lt;/i&gt; start &lt;i&gt;esd&lt;/i&gt; if it&#039;s not mentioned in any of the configuration files? Surely it can&#039;t be ... hardcoded?!&lt;/p&gt;&lt;blockquote&gt;&lt;font face=&quot;courier new,courier,monospace&quot;&gt;$ &lt;b&gt;strings -a /usr/bin/gnome-session | egrep &#039;\/usr\/bin\/esd&#039;&lt;/b&gt;&lt;br /&gt;/usr/bin/esd&lt;/font&gt;&lt;/blockquote&gt;&lt;p /&gt;&lt;p /&gt; 
    </content:encoded>

    <pubDate>Wed, 27 Feb 2008 00:01:00 -0500</pubDate>
    <guid isPermaLink="false">http://dailypackage.fedorabook.com/index.php?/archives/172-guid.html</guid>
    
</item>
<item>
    <title>Wednesday Why: Customizing the Grub Splash Screen</title>
    <link>http://dailypackage.fedorabook.com/index.php?/archives/164-Wednesday-Why-Customizing-the-Grub-Splash-Screen.html</link>
            <category>Wednesday Why</category>
    
    <comments>http://dailypackage.fedorabook.com/index.php?/archives/164-Wednesday-Why-Customizing-the-Grub-Splash-Screen.html#comments</comments>
    <wfw:comment>http://dailypackage.fedorabook.com/wfwcomment.php?cid=164</wfw:comment>

    <slash:comments>4</slash:comments>
    <wfw:commentRss>http://dailypackage.fedorabook.com/rss.php?version=2.0&amp;type=comments&amp;cid=164</wfw:commentRss>
    

    <author>nospam@example.com (Chris Tyler)</author>
    <content:encoded>
    &lt;br /&gt;
&lt;a class=&quot;serendipity_image_link&quot; href=&quot;http://dailypackage.fedorabook.com/uploads/2008-02-13-grub-splash.png&quot; onclick=&quot;F1 = window.open(&#039;/uploads/2008-02-13-grub-splash.png&#039;,&#039;Zoom&#039;,&#039;height=495,width=655,top=285,left=520,toolbar=no,menubar=no,location=no,resize=1,resizable=1,scrollbars=yes&#039;); return false;&quot;&gt;&lt;!-- s9ymdb:252 --&gt;&lt;img width=&quot;300&quot; height=&quot;225&quot; align=&quot;right&quot; style=&quot;border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-color: initial; float: right; padding-left: 5px; padding-right: 5px; &quot; src=&quot;http://dailypackage.fedorabook.com/uploads/2008-02-13-grub-splash.serendipityThumb.png&quot; /&gt;&lt;/a&gt;A Fedora system usually begins its boot process with a startup screen (or menu) displayed by the bootloader &lt;i&gt;Grub&lt;/i&gt;. The background for this screen is provided by the wonderfully talented Fedora &lt;a href=&quot;http://fedoraproject.org/wiki/Artwork&quot; target=&quot;_blank&quot;&gt;artTeam&lt;/a&gt;. The image is in the file &lt;font face=&quot;courier new,courier,monospace&quot;&gt;/boot/grub/splash.xpm.gz&lt;/font&gt; from the package fedora-logos.&lt;p&gt;Customizing your boot screen with a favorite photo, your company logo, or even a cartoon is quite straightforward:&lt;/p&gt;&lt;ol&gt;&lt;li&gt;Prepare a suitable image. The image must be 640x480 pixels and have a maximum of 14 colours, because the VGA mode used during boot has a resolution of 640x480 pixels with 16 colours and 2 colours are reserved for text (white and black). If you&#039;re using the &lt;i&gt;Gimp&lt;/i&gt; graphics editor, simply ensure that your image is 640x480 pixels (the titlebar of the image window displays the image size) and then select  the menu option Image&amp;gt;Mode&amp;gt;Indexed, entering 14 as the &amp;quot;Maximum number of colours&amp;quot;.&lt;/li&gt;&lt;li&gt;Save the image to your &lt;font face=&quot;courier new,courier,monospace&quot;&gt;/boot/grub directory&lt;/font&gt; with an extension of &lt;font face=&quot;courier new,courier,monospace&quot;&gt;.xpm.gz&lt;/font&gt;&lt;/li&gt;&lt;li&gt;Edit your &lt;font face=&quot;courier new,courier,monospace&quot;&gt;/boot/grub/grub.conf file&lt;/font&gt; so that the splashimage entry points to our new image file. This path will be relative to the start of the /boot partition, so &lt;font face=&quot;courier new,courier,monospace&quot;&gt;/boot/grub/myimage.xpm.gz&lt;/font&gt; would be written as &lt;font face=&quot;courier new,courier,monospace&quot;&gt;(hd&lt;i&gt;X,Y&lt;/i&gt;)/grub/myimage.xpm.gz&lt;/font&gt; (where &lt;i&gt;X&lt;/i&gt; is the BIOS/Grub disk number and &lt;i&gt;Y&lt;/i&gt; is the BIOS/Grub partition number).&lt;br /&gt;&lt;br /&gt;&lt;font face=&quot;courier new,courier,monospace&quot;&gt;&lt;/font&gt;&lt;font face=&quot;courier new,courier,monospace&quot;&gt;# grub.conf generated by anaconda&lt;/font&gt;&lt;br /&gt;&lt;font face=&quot;courier new,courier,monospace&quot;&gt;#&lt;/font&gt;&lt;br /&gt;&lt;font face=&quot;courier new,courier,monospace&quot;&gt;# Note that you do not have to rerun grub after making changes to this file&lt;/font&gt;&lt;br /&gt;&lt;font face=&quot;courier new,courier,monospace&quot;&gt;# NOTICE:  You have a /boot partition.  This means that&lt;/font&gt;&lt;br /&gt;&lt;font face=&quot;courier new,courier,monospace&quot;&gt;#          all kernel and initrd paths are relative to /boot/, eg.&lt;/font&gt;&lt;br /&gt;&lt;font face=&quot;courier new,courier,monospace&quot;&gt;#          root (hd0,0)&lt;/font&gt;&lt;br /&gt;&lt;font face=&quot;courier new,courier,monospace&quot;&gt;#          kernel /vmlinuz-version ro root=/dev/concord3/f8root&lt;/font&gt;&lt;br /&gt;&lt;font face=&quot;courier new,courier,monospace&quot;&gt;#          initrd /initrd-version.img&lt;/font&gt;&lt;br /&gt;&lt;font face=&quot;courier new,courier,monospace&quot;&gt;#boot=/dev/md0&lt;/font&gt;&lt;br /&gt;&lt;font face=&quot;courier new,courier,monospace&quot;&gt;default=0&lt;/font&gt;&lt;br /&gt;&lt;font face=&quot;courier new,courier,monospace&quot;&gt;timeout=5&lt;/font&gt;&lt;br /&gt;&lt;font face=&quot;courier new,courier,monospace&quot;&gt;splashimage=(hd0,0)&lt;b&gt;&lt;font color=&quot;#ff0000&quot;&gt;/grub/myimage.xpm.gz&lt;/font&gt;&lt;/b&gt;&lt;/font&gt;&lt;br /&gt;&lt;font face=&quot;courier new,courier,monospace&quot;&gt;hiddenmenu&lt;/font&gt;&lt;br /&gt;&lt;font face=&quot;courier new,courier,monospace&quot;&gt;title Fedora (2.6.23.15-137.fc8)&lt;/font&gt;&lt;br /&gt;&lt;font face=&quot;courier new,courier,monospace&quot;&gt;&lt;a onclick=&quot;F1 = window.open(&#039;/uploads/2008-02-13-grub-splash2.png&#039;,&#039;Zoom&#039;,&#039;height=495,width=655,top=285,left=520,toolbar=no,menubar=no,location=no,resize=1,resizable=1,scrollbars=yes&#039;); return false;&quot; href=&quot;http://dailypackage.fedorabook.com/uploads/2008-02-13-grub-splash2.png&quot; class=&quot;serendipity_image_link&quot;&gt;&lt;!-- s9ymdb:253 --&gt;&lt;img width=&quot;300&quot; height=&quot;225&quot; align=&quot;right&quot; src=&quot;http://dailypackage.fedorabook.com/uploads/2008-02-13-grub-splash2.serendipityThumb.png&quot; style=&quot;border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-color: initial; float: right; padding-left: 5px; padding-right: 5px; &quot; /&gt;&lt;/a&gt;        root (hd0,0)&lt;/font&gt;&lt;br /&gt;&lt;font face=&quot;courier new,courier,monospace&quot;&gt;        kernel /vmlinuz-2.6.23.15-137.fc8 ro root=/dev/concord3/f8root rhgb quiet&lt;/font&gt;&lt;br /&gt;&lt;font face=&quot;courier new,courier,monospace&quot;&gt;        initrd /initrd-2.6.23.15-137.fc8.img&lt;/font&gt;&lt;br /&gt;&lt;font face=&quot;courier new,courier,monospace&quot;&gt;title Fedora (2.6.23.14-115.fc8)&lt;/font&gt;&lt;br /&gt;&lt;font face=&quot;courier new,courier,monospace&quot;&gt;        root (hd0,0)&lt;/font&gt;&lt;br /&gt;&lt;font face=&quot;courier new,courier,monospace&quot;&gt;        kernel /vmlinuz-2.6.23.14-115.fc8 ro root=/dev/concord3/f8root rhgb quiet&lt;/font&gt;&lt;br /&gt;&lt;font face=&quot;courier new,courier,monospace&quot;&gt;        initrd /initrd-2.6.23.14-115.fc8.img&lt;/font&gt;&lt;/li&gt;&lt;/ol&gt;&lt;p&gt;Reboot to see the result.&lt;/p&gt;&lt;p&gt;The XPM format used by Grub is very unusual: it&#039;s actually a snippet of C source code containing an ascii-to-colour translation table and the image encoded as ASCII art. You can see this by using gunzip to decompress the file and then viewing it as text.&lt;/p&gt;&lt;p&gt;Tips on preparing a grub splash image:&lt;/p&gt;&lt;ul&gt;&lt;li&gt;Choose an image with a small number of colours to avoid excessive dithering or solarization when converting to indexed format.&lt;/li&gt;&lt;li&gt;Grub displays text in white with a black drop-shadow, so it should be visible against any colour background -- but it it&#039;s best to avoid white or really light colours for maximum readability.&lt;br /&gt; &lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;
 
    </content:encoded>

    <pubDate>Wed, 13 Feb 2008 00:01:00 -0500</pubDate>
    <guid isPermaLink="false">http://dailypackage.fedorabook.com/index.php?/archives/164-guid.html</guid>
    
</item>
<item>
    <title>Wednesday Why: Grub Boot Configuration</title>
    <link>http://dailypackage.fedorabook.com/index.php?/archives/154-Wednesday-Why-Grub-Boot-Configuration.html</link>
            <category>Wednesday Why</category>
    
    <comments>http://dailypackage.fedorabook.com/index.php?/archives/154-Wednesday-Why-Grub-Boot-Configuration.html#comments</comments>
    <wfw:comment>http://dailypackage.fedorabook.com/wfwcomment.php?cid=154</wfw:comment>

    <slash:comments>4</slash:comments>
    <wfw:commentRss>http://dailypackage.fedorabook.com/rss.php?version=2.0&amp;type=comments&amp;cid=154</wfw:commentRss>
    

    <author>nospam@example.com (Chris Tyler)</author>
    <content:encoded>
    &lt;br /&gt;
Fedora, like most current Linux distributions, uses &lt;i&gt;Grub&lt;/i&gt; as its bootloader on 32- and 64-bit x86 systems. Grub&#039;s configuration file, &lt;font face=&quot;courier new,courier,monospace&quot;&gt;/boot/grub/grub.conf&lt;/font&gt;, typically looks something like this:&lt;br /&gt; &lt;blockquote&gt;&lt;p&gt;&lt;b&gt;&lt;font face=&quot;courier new,courier,monospace&quot;&gt;# grub.conf generated by anaconda&lt;br /&gt;#&lt;br /&gt;# Note that you do not have to rerun grub after making changes to this file&lt;br /&gt;# NOTICE:  You have a /boot partition.  This means that&lt;br /&gt;#          all kernel and initrd paths are relative to /boot/, eg.&lt;br /&gt;#          root (hd0,1)&lt;br /&gt;#          kernel /vmlinuz-version ro root=/dev/main/root&lt;br /&gt;#          initrd /initrd-version.img&lt;br /&gt;#boot=/dev/sda&lt;br /&gt;&lt;font color=&quot;#00ff00&quot;&gt;default=0&lt;br /&gt;timeout=5&lt;br /&gt;splashimage=(hd0,1)/grub/splash.xpm.gz&lt;br /&gt;hiddenmenu&lt;/font&gt;&lt;br /&gt;&lt;font color=&quot;#0000ff&quot;&gt;title Fedora (2.6.23.1-49.fc8)&lt;/font&gt;&lt;/font&gt;&lt;/b&gt;&lt;/p&gt;&lt;blockquote&gt;&lt;font color=&quot;#0000ff&quot;&gt;&lt;b&gt;&lt;font face=&quot;courier new,courier,monospace&quot;&gt;        root (hd0,1)&lt;/font&gt;&lt;/b&gt;&lt;br /&gt;&lt;b&gt;&lt;font face=&quot;courier new,courier,monospace&quot;&gt;        kernel /vmlinuz-2.6.23.1-49.fc8 ro root=/dev/main/root rhgb quiet&lt;/font&gt;&lt;/b&gt;&lt;br /&gt;&lt;b&gt;&lt;font face=&quot;courier new,courier,monospace&quot;&gt;        initrd /initrd-2.6.23.1-49.fc8.img&lt;/font&gt;&lt;/b&gt;&lt;/font&gt;&lt;/blockquote&gt;&lt;p&gt;&lt;font color=&quot;#0000ff&quot;&gt;&lt;b&gt;&lt;font face=&quot;courier new,courier,monospace&quot;&gt;title Fedora (2.6.23.1-42.fc8)&lt;/font&gt;&lt;/b&gt;&lt;/font&gt;&lt;/p&gt;&lt;blockquote&gt;&lt;font color=&quot;#0000ff&quot;&gt;&lt;b&gt;&lt;font face=&quot;courier new,courier,monospace&quot;&gt;        root (hd0,1)&lt;/font&gt;&lt;/b&gt;&lt;br /&gt;&lt;b&gt;&lt;font face=&quot;courier new,courier,monospace&quot;&gt;        kernel /vmlinuz-2.6.23.1-42.fc8 ro root=/dev/main/root rhgb quiet&lt;/font&gt;&lt;/b&gt;&lt;br /&gt;&lt;b&gt;&lt;font face=&quot;courier new,courier,monospace&quot;&gt;        initrd /initrd-2.6.23.1-42.fc8.img&lt;/font&gt;&lt;/b&gt;&lt;/font&gt;&lt;/blockquote&gt;&lt;p&gt;&lt;font color=&quot;#ff0000&quot;&gt;&lt;b&gt;&lt;font face=&quot;courier new,courier,monospace&quot;&gt;title WindowsXP&lt;/font&gt;&lt;/b&gt;&lt;/font&gt;&lt;/p&gt;&lt;blockquote&gt;&lt;font color=&quot;#ff0000&quot;&gt;&lt;b&gt;&lt;font face=&quot;courier new,courier,monospace&quot;&gt;        rootnoverify (hd0,0)&lt;/font&gt;&lt;/b&gt;&lt;br /&gt;&lt;b&gt;&lt;font face=&quot;courier new,courier,monospace&quot;&gt;        chainloader +1&lt;/font&gt;&lt;/b&gt;&lt;/font&gt;&lt;/blockquote&gt;&lt;/blockquote&gt;&lt;blockquote&gt;&lt;p /&gt;&lt;/blockquote&gt;&lt;p&gt;This file contains general options (in green), boot stanzas for Fedora (blue), and a boot stanza for Windows (red).&lt;/p&gt;&lt;p&gt;The general options are:&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;font face=&quot;courier new,courier,monospace&quot;&gt;default&lt;/font&gt; - selects the boot stanza which will be selected by default unless the user intervenes. These are numbered starting at zero.&lt;/li&gt;&lt;li&gt;&lt;font face=&quot;courier new,courier,monospace&quot;&gt;timeout&lt;/font&gt; - the time in seconds before the default is loaded, if the user does not press a key. To make Grub wait indefinitely for user input, remove this entry. To immediately proceed with the default entry, set the timeout to &lt;font face=&quot;courier new,courier,monospace&quot;&gt;0&lt;/font&gt;.&lt;/li&gt;&lt;li&gt;&lt;font face=&quot;courier new,courier,monospace&quot;&gt;hiddenmenu&lt;/font&gt; - hides the boot menu unless the user presses a key. To make the menu appear every time, remove this entry.&lt;/li&gt;&lt;li&gt;&lt;font face=&quot;courier new,courier,monospace&quot;&gt;splashimage&lt;/font&gt; - selects the image to be displayed in the background of the boot display.&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;The Fedora stanzas (and those for other Linux distributions, if any) each consist of a title line followed by lines for:&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;font face=&quot;courier new,courier,monospace&quot;&gt;root&lt;/font&gt; - sets the partition for the boot files. &lt;b&gt;Note:&lt;/b&gt; this is not the root filesystem! -- this is the partition from which the boot files are loaded.&lt;/li&gt;&lt;li&gt;&lt;font face=&quot;courier new,courier,monospace&quot;&gt;kernel&lt;/font&gt; - selects the kernel and specifies kernel boot options.&lt;/li&gt;&lt;li&gt;&lt;font face=&quot;courier new,courier,monospace&quot;&gt;initrd&lt;/font&gt; - specifies a file which contains a compressed filesystem image which is loaded into memory and used as a ramdisk during the boot process.&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;Grub will load the kernel and initrd from the specified root device, then execute the kernel. Other operating systems, such as Windows, are loaded differently -- so Grub hands the boot process over to whatever bootloader was installed with the operating system, using these lines:&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;font face=&quot;courier new,courier,monospace&quot;&gt;rootnoverify&lt;/font&gt; - like the root line in a Linux boot stanza, this selects the partition which contains the boot files.&lt;/li&gt;&lt;li&gt;&lt;font face=&quot;courier new,courier,monospace&quot;&gt;chainloader&lt;/font&gt; - instructs Grub to execute the bootloader code located at the second (+1) sector of the selected partion.&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;Throughout this file, partitions are referred to as &lt;font face=&quot;courier new,courier,monospace&quot;&gt;(hd&lt;i&gt;X&lt;/i&gt;,&lt;i&gt;N&lt;/i&gt;)&lt;/font&gt; where &lt;i&gt;X&lt;/i&gt; is the drive number in the order in which drives are discovered by the BIOS, numbered starting at zero, and &lt;i&gt;N&lt;/i&gt; is the partition number, also numbered starting at zero. If your system only has one drive installed, the partition &lt;font face=&quot;courier new,courier,monospace&quot;&gt;/dev/sda2&lt;/font&gt; (&lt;font face=&quot;courier new,courier,monospace&quot;&gt;/dev/hda2&lt;/font&gt; under Fedora 6 and earlier) will therefore correspond to &lt;font face=&quot;courier new,courier,monospace&quot;&gt;(hd0,1)&lt;/font&gt; in Grub notation.&lt;/p&gt;&lt;p&gt;If you&#039;re using Xen, your Fedora boot stanza will look something like this:&lt;/p&gt;&lt;blockquote&gt;&lt;p&gt;&lt;b&gt;&lt;font face=&quot;courier new,courier,monospace&quot; color=&quot;#0000ff&quot;&gt;title Fedora (2.6.21-2950.fc8xen)&lt;/font&gt;&lt;/b&gt;&lt;/p&gt;&lt;blockquote&gt;&lt;b&gt;&lt;font face=&quot;courier new,courier,monospace&quot; color=&quot;#0000ff&quot;&gt;        root (hd0,1)&lt;br /&gt;        kernel /xen.gz-2.6.21-2950.fc8&lt;br /&gt;        module /vmlinuz-2.6.21-2950.fc8xen ro root=/dev/main/root rhgb quiet&lt;br /&gt;        module /initrd-2.6.21-2950.fc8xen.img&lt;/font&gt;&lt;/b&gt;&lt;/blockquote&gt;&lt;/blockquote&gt;&lt;p&gt;In this case, the &amp;quot;kernel&amp;quot; is actually the Xen hypervisor, and the actual dom0 kernel and initrd are loaded as modules to the hypervisor. Any kernel arguments must therefore be added to the module line which references the kernel (&lt;font face=&quot;courier new,courier,monospace&quot;&gt;/vmlinux-*&lt;/font&gt;).&lt;/p&gt;&lt;p&gt;Since &lt;font face=&quot;courier new,courier,monospace&quot;&gt;gub.conf&lt;/font&gt; is a regular text file, you can edit it with the text editor of your choice, such as vi, gedit, or kate. However, if you introduce an error into this file, you may not be able to boot your system from the boot menu. To reduce risk, it&#039;s a good idea to keep a known-good stanza in the file -- and in the worst case, you can always edit a boot stanza using the options provided by Grub during the boot process.&lt;/p&gt;&lt;p /&gt; 
    </content:encoded>

    <pubDate>Wed, 28 Nov 2007 00:01:00 -0500</pubDate>
    <guid isPermaLink="false">http://dailypackage.fedorabook.com/index.php?/archives/154-guid.html</guid>
    
</item>
<item>
    <title>Wednesday Why: Package Categories</title>
    <link>http://dailypackage.fedorabook.com/index.php?/archives/146-Wednesday-Why-Package-Categories.html</link>
            <category>Wednesday Why</category>
    
    <comments>http://dailypackage.fedorabook.com/index.php?/archives/146-Wednesday-Why-Package-Categories.html#comments</comments>
    <wfw:comment>http://dailypackage.fedorabook.com/wfwcomment.php?cid=146</wfw:comment>

    <slash:comments>2</slash:comments>
    <wfw:commentRss>http://dailypackage.fedorabook.com/rss.php?version=2.0&amp;type=comments&amp;cid=146</wfw:commentRss>
    

    <author>nospam@example.com (Chris Tyler)</author>
    <content:encoded>
    &lt;br /&gt;
&lt;a class=&quot;serendipity_image_link&quot; href=&quot;http://dailypackage.fedorabook.com/uploads/2007-09-12-pirut.png&quot; onclick=&quot;F1 = window.open(&#039;/uploads/2007-09-12-pirut.png&#039;,&#039;Zoom&#039;,&#039;height=805,width=1030,top=130,left=332.5,toolbar=no,menubar=no,location=no,resize=1,resizable=1,scrollbars=yes&#039;); return false;&quot;&gt;&lt;!-- s9ymdb:233 --&gt;&lt;img width=&quot;300&quot; height=&quot;233&quot; align=&quot;right&quot; style=&quot;border: 0px none ; float: right; padding-left: 5px; padding-right: 5px;&quot; src=&quot;http://dailypackage.fedorabook.com/uploads/2007-09-12-pirut.serendipityThumb.png&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
During system installation with &lt;i&gt;Anaconda&lt;/i&gt; and when managing packages using the Browse mode of &lt;i&gt;Pirut&lt;/i&gt; (which appears on the menu as &amp;gt;Applications&amp;gt;Add/Remove Software and identifies itself as &lt;i&gt;Package Manager&lt;/i&gt; in its window title), you are given the option of selecting packages by &lt;i&gt;groups&lt;/i&gt; arranged into broad &lt;i&gt;categories&lt;/i&gt;. Each group may contain mandatory and optional packages, and optional packages in each group may be included or excluded for installation by default. Some packages are not included in any category and cannot be installed through this hierarchy.&lt;p&gt;The package taxonomy is created by the &lt;i&gt;comps&lt;/i&gt; XML files, which are found in &lt;font face=&quot;courier new,courier,monospace&quot;&gt;/var/cache/yum/*/comps*.xml&lt;/font&gt; -- each repository may have its own comps file. These files use an &lt;a target=&quot;_blank&quot; href=&quot;http://rhlinux.redhat.com/anaconda/comps.html&quot;&gt;XML format&lt;/a&gt; which looks like this:&lt;/p&gt;&lt;blockquote&gt;&lt;p&gt;&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt;&lt;br /&gt;&amp;lt;!DOCTYPE comps PUBLIC &amp;quot;-//Red Hat, Inc.//DTD Comps info//EN&amp;quot; &amp;quot;comps.dtd&amp;quot;&amp;gt;&lt;br /&gt;&amp;lt;comps xmlns=&amp;quot;&amp;quot;&amp;gt;&lt;/p&gt;&lt;blockquote&gt;&lt;font color=&quot;#0000ff&quot;&gt;&amp;lt;group&amp;gt;&lt;/font&gt;&lt;blockquote&gt;&lt;font color=&quot;#0000ff&quot;&gt;&amp;lt;id&amp;gt;&lt;i&gt;short-group-id&lt;/i&gt;&amp;lt;/id&amp;gt;&lt;br /&gt;&amp;lt;name&amp;gt;&lt;i&gt;human-readable-group-name&lt;/i&gt;&amp;lt;/name&amp;gt;&lt;br /&gt;&amp;lt;uservisible&amp;gt;&lt;i&gt;true&lt;/i&gt;&amp;lt;/uservisible&amp;gt;&lt;br /&gt;&amp;lt;packagelist&amp;gt;&lt;/font&gt;&lt;blockquote&gt;&lt;p&gt;&lt;font color=&quot;#0000ff&quot;&gt;&amp;lt;packagereq type=&amp;quot;mandatory&amp;quot;&amp;gt;&lt;i&gt;always-installed-package&lt;/i&gt;&amp;lt;/packagereq&amp;gt;&lt;br /&gt;&amp;lt;packagereq type=&amp;quot;default&amp;quot;&amp;gt;&lt;i&gt;installed-by-default-package&lt;/i&gt;&amp;lt;/packagereq&amp;gt;&lt;br /&gt;&amp;lt;packagereq type=&amp;quot;optional&amp;quot;&amp;gt;&lt;i&gt;not-installed-by-default-package&lt;/i&gt;&amp;lt;/packagereq&amp;gt;&lt;br /&gt;&amp;lt;packagereq type=&amp;quot;conditional&amp;quot; requires=&amp;quot;&lt;i&gt;other-package&lt;/i&gt;&amp;quot;&amp;gt;&lt;i&gt;conditional-installed-package&lt;/i&gt;&amp;lt;/packagereq&amp;gt;&lt;br /&gt;&lt;b&gt;. . .&lt;/b&gt;&lt;/font&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;font color=&quot;#0000ff&quot;&gt;&amp;lt;/packagelist&amp;gt;&lt;/font&gt;&lt;/blockquote&gt;&lt;p&gt;&lt;font color=&quot;#0000ff&quot;&gt;&amp;lt;/group&amp;gt;&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font color=&quot;#0000ff&quot;&gt;&lt;b&gt;. . .&lt;/b&gt;&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font color=&quot;#0000ff&quot;&gt;&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font color=&quot;#0000ff&quot;&gt;&lt;/font&gt;&lt;/p&gt;&lt;font color=&quot;#ff0000&quot;&gt;&amp;lt;category&amp;gt;&lt;/font&gt;&lt;blockquote&gt;&lt;font color=&quot;#ff0000&quot;&gt;&amp;lt;id&amp;gt;&lt;i&gt;simple-category-id&lt;/i&gt;&amp;lt;/id&amp;gt;&lt;br /&gt;&amp;lt;name&amp;gt;&lt;i&gt;human-readable-category-name&lt;/i&gt;&amp;lt;/name&amp;gt;&lt;br /&gt;&amp;lt;description&amp;gt;&lt;i&gt;category-description&lt;/i&gt;&amp;lt;/description&amp;gt;&lt;br /&gt;&amp;lt;display_order&amp;gt;&lt;i&gt;5&lt;/i&gt;&amp;lt;/display_order&amp;gt;&lt;br /&gt;&amp;lt;grouplist&amp;gt;&lt;/font&gt;&lt;blockquote&gt;&lt;font color=&quot;#ff0000&quot;&gt;&amp;lt;groupid&amp;gt;&lt;i&gt;short-group-id&lt;/i&gt;&amp;lt;/groupid&amp;gt;&lt;br /&gt;&lt;b&gt;. . .&lt;/b&gt;&lt;/font&gt;&lt;/blockquote&gt;&lt;font color=&quot;#ff0000&quot;&gt;&amp;lt;/grouplist&amp;gt;&lt;/font&gt;&lt;/blockquote&gt;&lt;font color=&quot;#ff0000&quot;&gt;&amp;lt;/category&amp;gt;&lt;/font&gt;&lt;br /&gt;&lt;font color=&quot;#ff0000&quot;&gt;&lt;b&gt;&lt;p&gt;. . .&lt;/p&gt;&lt;/b&gt;&lt;/font&gt;&lt;/blockquote&gt;&lt;p&gt;&amp;lt;/comps&amp;gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;p&gt;As you can see, the &lt;font color=&quot;#ff0000&quot;&gt;&amp;lt;category&amp;gt;&lt;/font&gt; tag defines the groups in a category, and the &lt;font color=&quot;#0000ff&quot;&gt;&amp;lt;group&amp;gt;&lt;/font&gt; tag defines the packages in a group. Text such as the name and description of each category and group is usually provided in multiple languages through the use of the &lt;font face=&quot;courier new,courier,monospace&quot;&gt;xml:lang&lt;/font&gt; attribute. &lt;/p&gt;&lt;p&gt;Packages marked with a type of &lt;i&gt;mandatory&lt;/i&gt; in the &amp;lt;packagereq&amp;gt; tag are always installed if the group is installed. &lt;i&gt;Conditional&lt;/i&gt; packages are treated as mandatory if the &lt;i&gt;requires&lt;/i&gt; package is present: for example, if you install the French language group and have Moodle installed, then French language support for Moodle will automatically be installed. Packages with a type of &lt;i&gt;default&lt;/i&gt; or &lt;i&gt;optional&lt;/i&gt; appear on the optional package list for the associated group; initially, the &lt;i&gt;default&lt;/i&gt; packages are selected, and the &lt;i&gt;optional&lt;/i&gt; packages are deselected.&lt;/p&gt;&lt;p /&gt; 
    </content:encoded>

    <pubDate>Wed, 12 Sep 2007 11:25:50 -0400</pubDate>
    <guid isPermaLink="false">http://dailypackage.fedorabook.com/index.php?/archives/146-guid.html</guid>
    
</item>
<item>
    <title>Wednesday Why: The Apache Welcome Page</title>
    <link>http://dailypackage.fedorabook.com/index.php?/archives/141-Wednesday-Why-The-Apache-Welcome-Page.html</link>
            <category>Wednesday Why</category>
    
    <comments>http://dailypackage.fedorabook.com/index.php?/archives/141-Wednesday-Why-The-Apache-Welcome-Page.html#comments</comments>
    <wfw:comment>http://dailypackage.fedorabook.com/wfwcomment.php?cid=141</wfw:comment>

    <slash:comments>16</slash:comments>
    <wfw:commentRss>http://dailypackage.fedorabook.com/rss.php?version=2.0&amp;type=comments&amp;cid=141</wfw:commentRss>
    

    <author>nospam@example.com (Chris Tyler)</author>
    <content:encoded>
    &lt;br /&gt;
&lt;p&gt;&lt;!-- s9ymdb:225 --&gt;&lt;!-- s9ymdb:225 --&gt;&lt;!-- s9ymdb:225 --&gt;&lt;img width=&quot;300&quot; height=&quot;209&quot; align=&quot;right&quot; style=&quot;border: 0px none ; float: right; padding-left: 5px; padding-right: 5px;&quot; src=&quot;http://dailypackage.fedorabook.com/uploads/2007-09-05-apache-welcome-page.serendipityThumb.png&quot; /&gt;If you install the Apache web server on your Fedora system, start it, and then access it before adding any content, you&#039;ll see the &amp;quot;Fedora Test Page&amp;quot; or &amp;quot;Welcome Page&amp;quot; as shown here. Where does this page come from, where is it configured, and how does it disappear once you add content?&lt;/p&gt;&lt;p&gt;This page clearly isn&#039;t configured in the main Apache configuration file, &lt;i&gt;/etc/httpd/conf/httpd.conf&lt;/i&gt; -- there is no mention of it there at all. Instead, the configuration for this page is actually specified in &lt;i&gt;/etc/httpd/conf.d/welcome.conf&lt;/i&gt;, which looks like this:&lt;/p&gt;&lt;blockquote&gt;&lt;p&gt;&lt;font face=&quot;courier new,courier,monospace&quot;&gt;# &lt;br /&gt;# This configuration file enables the default &amp;quot;Welcome&amp;quot;&lt;br /&gt;# page if there is no default index page present for&lt;br /&gt;# the root URL.  To disable the Welcome page, comment&lt;br /&gt;# out all the lines below.&lt;br /&gt;#&lt;br /&gt;&amp;lt;LocationMatch &amp;quot;^/+$&amp;quot;&amp;gt;&lt;/font&gt;&lt;/p&gt;&lt;blockquote&gt;&lt;font face=&quot;courier new,courier,monospace&quot;&gt;Options -Indexes&lt;br /&gt;ErrorDocument 403 /error/noindex.html&lt;/font&gt;&lt;/blockquote&gt;&lt;p&gt;&lt;font face=&quot;courier new,courier,monospace&quot;&gt;&amp;lt;/LocationMatch&amp;gt;&lt;/font&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;p&gt;The &lt;i&gt;LocationMatch&lt;/i&gt; directive ensures that this configuration applies only to requests with a path of / (or multiple slashes), which matches only requests to the &lt;i&gt;DocumentRoot&lt;/i&gt; (&lt;font face=&quot;courier new,courier,monospace&quot;&gt;http://ServerName/&lt;/font&gt;). For any such request, the &lt;i&gt;Indexes&lt;/i&gt; option is disabled, so you cannot get an automatic index or directory listing. If a pre-built index page exists, such as &lt;i&gt;index.html&lt;/i&gt; or &lt;i&gt;index.html.var&lt;/i&gt;, that file is served; but if it doesn&#039;t exist, an HTTP 403 error is generated (&amp;quot;Forbidden&amp;quot;). The &lt;i&gt;ErrorDocument&lt;/i&gt; directive specifies the page to be served in that case: &lt;i&gt;/var/www/error/noindex.html&lt;/i&gt;. As soon as you create an index page, the 403 error is no longer generated, and the Welcome page disappears.&lt;/p&gt;&lt;p&gt;The configuration file &lt;i&gt;/etc/httpd/conf.d/welcome.conf&lt;/i&gt; is owned by the &lt;i&gt;httpd&lt;/i&gt; (Apache) package. Most of the other configuration files located in &lt;i&gt;/etc/httpd/conf.d&lt;/i&gt; are owned by web application packages such as &lt;i&gt;webalyzer&lt;/i&gt;, &lt;i&gt;BackupPC&lt;/i&gt;, &lt;i&gt;gallery2, &lt;/i&gt;or &lt;i&gt;squirrelmail, &lt;/i&gt; and specifically configure Apache for that one application; removing the package removes the corresponding configuration file, removing the application-specific Apache configuration.&lt;/p&gt;&lt;p&gt;&lt;br /&gt;
&lt;/p&gt; 
    </content:encoded>

    <pubDate>Wed, 05 Sep 2007 00:01:00 -0400</pubDate>
    <guid isPermaLink="false">http://dailypackage.fedorabook.com/index.php?/archives/141-guid.html</guid>
    
</item>
<item>
    <title>Wednesday Why: Running a Local Repository Mirror</title>
    <link>http://dailypackage.fedorabook.com/index.php?/archives/28-Wednesday-Why-Running-a-Local-Repository-Mirror.html</link>
            <category>Wednesday Why</category>
    
    <comments>http://dailypackage.fedorabook.com/index.php?/archives/28-Wednesday-Why-Running-a-Local-Repository-Mirror.html#comments</comments>
    <wfw:comment>http://dailypackage.fedorabook.com/wfwcomment.php?cid=28</wfw:comment>

    <slash:comments>6</slash:comments>
    <wfw:commentRss>http://dailypackage.fedorabook.com/rss.php?version=2.0&amp;type=comments&amp;cid=28</wfw:commentRss>
    

    <author>nospam@example.com (Chris Tyler)</author>
    <content:encoded>
    &lt;br /&gt;
&lt;p&gt;If you have a large number of Fedora systems (including virtual machines), you can speed up your system updates by creating a local mirror of the Fedora repositories. This will enable you to download packages once for all machines on your network instead of once per system.&lt;/p&gt;&lt;p&gt;Here is one way to do this:&lt;/p&gt;&lt;p&gt;You will need a machine with a large amount of free space in &lt;font face=&quot;courier new,courier,monospace&quot;&gt;/var&lt;/font&gt; (100GB is safe) and the &lt;i&gt;rsync&lt;/i&gt; and &lt;i&gt;httpd&lt;/i&gt; packages.&lt;/p&gt;&lt;p&gt;First, create a small script to create and update your repository:&lt;/p&gt;&lt;p /&gt;&lt;blockquote&gt;&lt;pre&gt;&lt;font face=&quot;courier new,courier,monospace&quot;&gt;#!/bin/bash&lt;br /&gt;ARCH=i386	&lt;i&gt;# Set to the architecture of your systems&lt;/i&gt;&lt;br /&gt;DIR=/var/www/html/fedora/updates/$ARCH/&lt;br /&gt;URL=rsync://&lt;i&gt;mirror&lt;/i&gt;/&lt;i&gt;directory/      # See below, include trailing slash&lt;/i&gt;&lt;br /&gt;mkdir -p $DIR&lt;br /&gt;cd $DIR || exit&lt;span class=&quot;docTextHighlight&quot;&gt;&lt;/span&gt;&lt;span class=&quot;docTextHighlight&quot;&gt;&lt;br /&gt;rsync&lt;/span&gt; --recursive --delete -v $URL .  &lt;i&gt;# Don&#039;t miss the . at the end&lt;/i&gt;&lt;/font&gt;&lt;/pre&gt;&lt;/blockquote&gt;&lt;p&gt;&lt;font color=&quot;#ff0000&quot;&gt;&lt;b&gt;Warning&lt;/b&gt;: using &lt;i&gt;rsync&lt;/i&gt; with the &lt;i&gt;--delete&lt;/i&gt; option can have disasterous effects if run in the wrong directory.&lt;/font&gt;&lt;/p&gt;&lt;p&gt;Save the script and make it executable (&lt;font face=&quot;courier new,courier,monospace&quot;&gt;chmod u+rx &lt;i&gt;scriptname&lt;/i&gt;&lt;/font&gt;). When run, this script will copy the repository identified by the URL to &lt;font face=&quot;courier new,courier,monospace&quot;&gt;/var/www/html/fedora/updates/$ARCH&lt;/font&gt;. &lt;/p&gt;&lt;p&gt;To determine the URL to be used, view the Fedora mirror list at &lt;a target=&quot;_blank&quot; href=&quot;http://mirrors.fedoraproject.org/publiclist/Fedora/7/&quot;&gt;http://mirrors.fedoraproject.org/publiclist/Fedora/7/&lt;/a&gt; and select one of the &lt;i&gt;rsync&lt;/i&gt; mirrors. Test it out using the &lt;i&gt;rsync&lt;/i&gt; command:&lt;/p&gt;&lt;p /&gt;&lt;blockquote&gt;&lt;pre&gt;&lt;font face=&quot;courier new,courier,monospace&quot;&gt;&lt;span class=&quot;docTextHighlight&quot;&gt;$&lt;/span&gt;&lt;b&gt;&lt;b&gt;&lt;span class=&quot;docTextHighlight&quot;&gt; rsync&lt;/span&gt; -v &lt;span class=&quot;docTextHighlight&quot;&gt;rsync&lt;/span&gt;://&lt;i&gt;selectedhost&lt;/i&gt;/&lt;/b&gt;&lt;/b&gt;&lt;/font&gt;&lt;/pre&gt;&lt;/blockquote&gt;&lt;p&gt;This will show you the contents of the root &lt;i&gt;rsync&lt;/i&gt; directory on the remote host. You may need to experiment until you find the directory that contains the RPMS subdirectory for your release of Fedora and machine architecture-- the mirror servers seem to have their own particular directory layouts. You&#039;re looking for the directory named &lt;font face=&quot;courier new,courier,monospace&quot;&gt;os&lt;/font&gt;. For example, you might end up with a URL such as &lt;font face=&quot;courier new,courier,monospace&quot;&gt;rsync://&lt;i&gt;selectedhost&lt;/i&gt;/fedora/updates/7/i386/os/&lt;/font&gt;&lt;/p&gt;&lt;p&gt;Start the Apache web server (&lt;font face=&quot;courier new,courier,monospace&quot;&gt;service httpd start&lt;/font&gt;) and opening a hole in your firewall for port 80 (use the menu option &amp;gt; System &amp;gt; Administration &amp;gt; Firewall and SELinux) so that your web server is accessible. You will be able to access your local repository mirror as &lt;font face=&quot;courier new,courier,monospace&quot;&gt;http://yourserver/fedora&lt;/font&gt; using a browser.&lt;/p&gt;&lt;p&gt;Finally, configure your systems to use your local repository for updates by setting up a &lt;font face=&quot;courier new,courier,monospace&quot;&gt;baseurl&lt;/font&gt; entry in &lt;i&gt;/etc/yum.repos.d/fedora-updates.repo&lt;/i&gt; as &lt;a target=&quot;_blank&quot; href=&quot;http://dailypackage.fedorabook.com/index.php?/archives/36-Package-Management-Week-Yum-Repositories-Plugins.html&quot;&gt;described here&lt;/a&gt;. Test it out, and once you have it working, configure the cron daemon on the server to &lt;a target=&quot;_blank&quot; href=&quot;http://dailypackage.fedorabook.com/index.php?/archives/99-Wednesday-Why-Crontab.html&quot;&gt;run the repository update script daily&lt;/a&gt; using this command:&lt;/p&gt;&lt;blockquote&gt;&lt;p&gt;&lt;font face=&quot;courier new,courier,monospace&quot;&gt;# &lt;b&gt;(crontab -l ; echo &amp;quot;0 4 * * * /path/to/update-script&amp;quot;) | crontab &lt;/b&gt;&lt;/font&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;p&gt;Replace &lt;font face=&quot;courier new,courier,monospace&quot;&gt;/path/to/update-script&lt;/font&gt; with the absolute pathname of the script, and adjust the time according to your needs (&amp;quot;0 4 * * *&amp;quot; means 4:00 am every day).&lt;/p&gt; 
    </content:encoded>

    <pubDate>Wed, 29 Aug 2007 00:01:00 -0400</pubDate>
    <guid isPermaLink="false">http://dailypackage.fedorabook.com/index.php?/archives/28-guid.html</guid>
    
</item>
<item>
    <title>Wednesday Why: Audio Setting Persistence</title>
    <link>http://dailypackage.fedorabook.com/index.php?/archives/130-Wednesday-Why-Audio-Setting-Persistence.html</link>
            <category>Wednesday Why</category>
    
    <comments>http://dailypackage.fedorabook.com/index.php?/archives/130-Wednesday-Why-Audio-Setting-Persistence.html#comments</comments>
    <wfw:comment>http://dailypackage.fedorabook.com/wfwcomment.php?cid=130</wfw:comment>

    <slash:comments>6</slash:comments>
    <wfw:commentRss>http://dailypackage.fedorabook.com/rss.php?version=2.0&amp;type=comments&amp;cid=130</wfw:commentRss>
    

    <author>nospam@example.com (Chris Tyler)</author>
    <content:encoded>
    &lt;br /&gt;
&lt;p&gt;Fedora employs the &lt;i&gt;Advanced Linux Sound Architecture&lt;/i&gt; (ALSA) system, a feature of the 2.6 kernel series. In addition to the kernel drivers, ALSA incorporates a library and a set of utility programs. &lt;/p&gt;&lt;p&gt;You&#039;ve probably noticed that ALSA settings for various input and output controls are preserved across reboots. The audio device state is saved in the file &lt;i&gt;/etc/alsa/asound.state&lt;/i&gt;, a text file which contains a description of each device control and the current values.&lt;/p&gt;&lt;p&gt;This file is created and read by the program &lt;i&gt;/sbin/salsa&lt;/i&gt;, which is part of the alsa-utils package. At shutdown, the script &lt;i&gt;/etc/rc.d/init.d/halt&lt;/i&gt; calls &lt;i&gt;/sbin/salsa&lt;/i&gt; with the &lt;i&gt;-s&lt;/i&gt; (save) argument:&lt;/p&gt;&lt;blockquote&gt;&lt;p&gt;&lt;font face=&quot;courier new,courier,monospace&quot;&gt;# Save mixer settings, here for lack of a better place.&lt;br /&gt;grep -q &amp;quot;\(alsa\)&amp;quot; /proc/devices&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font face=&quot;courier new,courier,monospace&quot;&gt;if [ $? = 0 -a -x /sbin/salsa ]; then&lt;/font&gt;&lt;/p&gt;&lt;blockquote&gt;&lt;font face=&quot;courier new,courier,monospace&quot;&gt;   action $&amp;quot;Saving mixer settings&amp;quot; &lt;b&gt;/sbin/salsa -s&lt;/b&gt;&lt;/font&gt;&lt;/blockquote&gt;&lt;font face=&quot;courier new,courier,monospace&quot;&gt;fi&lt;/font&gt;&lt;/blockquote&gt;When the udev subsystem discovers audio devices -- usually at system startup, but possibly at later time if an audio device such as a USB soundcard is not present at boot and hot-plugged later -- these two rules in &lt;i&gt;/etc/udev/rules.d/90-alsa-rules&lt;/i&gt; are invoked:&lt;br /&gt;&lt;blockquote&gt;&lt;p&gt;&lt;font face=&quot;courier new,courier,monospace&quot;&gt;SUBSYSTEM==&amp;quot;sound&amp;quot;, KERNEL==&amp;quot;controlC*&amp;quot; RUN+=&amp;quot;/sbin/salsa&amp;quot;&lt;br /&gt;SUBSYSTEM==&amp;quot;sound&amp;quot;, KERNEL==&amp;quot;pcm*&amp;quot;      RUN+=&amp;quot;/sbin/salsa&amp;quot;&lt;/font&gt;&lt;/p&gt;&lt;/blockquote&gt;The &lt;i&gt;RUN&lt;/i&gt; part of each rule executes &lt;i&gt;/sbin/salsa&lt;/i&gt; to restore the audio settings for all devices.&lt;p /&gt; 
    </content:encoded>

    <pubDate>Wed, 22 Aug 2007 00:01:00 -0400</pubDate>
    <guid isPermaLink="false">http://dailypackage.fedorabook.com/index.php?/archives/130-guid.html</guid>
    
</item>
<item>
    <title>Wednesday Why: Logins and Sessions</title>
    <link>http://dailypackage.fedorabook.com/index.php?/archives/122-Wednesday-Why-Logins-and-Sessions.html</link>
            <category>Wednesday Why</category>
    
    <comments>http://dailypackage.fedorabook.com/index.php?/archives/122-Wednesday-Why-Logins-and-Sessions.html#comments</comments>
    <wfw:comment>http://dailypackage.fedorabook.com/wfwcomment.php?cid=122</wfw:comment>

    <slash:comments>8</slash:comments>
    <wfw:commentRss>http://dailypackage.fedorabook.com/rss.php?version=2.0&amp;type=comments&amp;cid=122</wfw:commentRss>
    

    <author>nospam@example.com (Chris Tyler)</author>
    <content:encoded>
    &lt;br /&gt;
&lt;p&gt;&lt;a onclick=&quot;F1 = window.open(&#039;/uploads/2007-08-15-session.png&#039;,&#039;Zoom&#039;,&#039;height=615,width=815,top=225,left=440,toolbar=no,menubar=no,location=no,resize=1,resizable=1,scrollbars=yes&#039;); return false;&quot; href=&quot;http://dailypackage.fedorabook.com/uploads/2007-08-15-session.png&quot; class=&quot;serendipity_image_link&quot;&gt;&lt;!-- s9ymdb:190 --&gt;&lt;img width=&quot;300&quot; height=&quot;225&quot; align=&quot;right&quot; src=&quot;http://dailypackage.fedorabook.com/uploads/2007-08-15-session.serendipityThumb.png&quot; style=&quot;border: 0px none ; float: right; padding-left: 5px; padding-right: 5px;&quot; /&gt;&lt;/a&gt;Allen Halsey asked an interesting question a few days ago:&lt;/p&gt;&lt;blockquote&gt;&lt;i&gt;The bash man page says that .bash_profile is executed by login shells. But I log into my desktop using gdm. So I&#039;m confused at what point is .bash_profile executed. Or is it? If it isn&#039;t, where should I define environment variables?&lt;/i&gt;&lt;/blockquote&gt;&lt;p&gt;The answer to this question lies in the difference between a login and a session. A login occurs when you authenticate to the system in character mode&lt;br /&gt;and a shell is started for you. Each user&#039;s shell is defined in &lt;i&gt;/etc/password&lt;/i&gt;; here is my record from that file:&lt;/p&gt;&lt;blockquote&gt;&lt;p&gt;&lt;font face=&quot;courier new,courier,monospace&quot;&gt;chris:x:500:500:Chris Tyler:/home/chris:/bin/bash&lt;/font&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;p&gt;Fields in this file are separated by colons (&amp;quot;:&amp;quot;), and the seventh field contains the name of the shell that will be executed upon login. This doesn&#039;t have to be a &lt;i&gt;shell&lt;/i&gt; in the traditional command-interpreter sense; it can be any valid program, and it&#039;s not uncommon to use a menu program or a specific application (such as an e-mail program) for the convenience of inexperienced users or to constrain what the user can do. If the user should not be permitted to login at all, the program &lt;i&gt;/sbin/nologin&lt;/i&gt; is specified as the shell, which simply prints the message &amp;quot;This account is currently not available&amp;quot; and exits (tip: you can create a custom message in the file &lt;i&gt;/etc/nologin.txt&lt;/i&gt;).&lt;/p&gt;&lt;p&gt;The normal value for the login shell field on a Fedora system is &lt;i&gt;/bin/bash&lt;/i&gt;, the Bourne-again shell (a nameplay on the &lt;i&gt;Bourne shell&lt;/i&gt;, one of the first and most popular Unix shells). Like other shells, &lt;i&gt;bash&lt;/i&gt; executes a startup script every time a shell starts (&lt;i&gt;~/.bashrc&lt;/i&gt;) and two profile scripts at each login (&lt;i&gt;/etc/profile&lt;/i&gt; and one of &lt;i&gt;~/.bash_profile, ~/.bash_login, &lt;/i&gt;or &lt;i&gt;~/.profile&lt;/i&gt; -- Fedora sets up new accounts with &lt;i&gt;~/.bash_profile&lt;/i&gt; by default). Note the difference: if you login once and then start three shells, &lt;i&gt;/etc/profile&lt;/i&gt; and &lt;i&gt;~/.bash_profile&lt;/i&gt; will each be executed once, but &lt;i&gt;~/.bashrc&lt;/i&gt; will be executed three times.&lt;/p&gt;&lt;p&gt;A &lt;i&gt;session&lt;/i&gt;, on the other hand, is the graphical version of a &lt;i&gt;login&lt;/i&gt;. The session is started by the display manager &lt;i&gt;gdm &lt;/i&gt;(or, alternatively, &lt;i&gt;kdm&lt;/i&gt; or &lt;i&gt;xdm&lt;/i&gt;) when the program starts. The session is under the control of a &lt;i&gt;session manager&lt;/i&gt;, which starts standard clients (GUI programs), re-starts certain clients if they die, and optionally restarts clients that were open when the last session ended. The GNOME session manager is &lt;i&gt;gnome-session&lt;/i&gt; and the KDE session manager is &lt;i&gt;ksmserver&lt;/i&gt;, which is started by the &lt;i&gt;startkde&lt;/i&gt; script. This process completely ignores the seventh field in &lt;i&gt;/etc/passwd&lt;/i&gt;, and the login profiles are not executed.&lt;/p&gt;&lt;p&gt;But it&#039;s not quite that simple: the session manager is started by the script &lt;i&gt;/etc/X11/xdm/Xsession&lt;/i&gt;, and in Fedora, that script does not execute the session manager directly. When starting a GNOME session, it executes this command:&lt;/p&gt;&lt;blockquote&gt;&lt;p&gt;&lt;font face=&quot;courier new,courier,monospace&quot;&gt;exec -l $SHELL -c &amp;quot;$SSH_AGENT $DBUS_LAUNCH gnome-session&amp;quot;&lt;/font&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;p&gt;And for a KDE session it executes:&lt;/p&gt;&lt;blockquote&gt;&lt;p&gt;&lt;font face=&quot;courier new,courier,monospace&quot;&gt;exec -l $SHELL -c &amp;quot;$SSH_AGENT $DBUS_LAUNCH startkde&amp;quot;&lt;/font&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;p&gt;The environment variables used in these commands are set by the script &lt;i&gt;/etc/X11/xinit/xinitrc-common&lt;/i&gt;. Usually, SHELL is &lt;i&gt;/bin/bash&lt;/i&gt;, SSH_AGENT is &lt;i&gt;/usr/bin/ssh-agent&lt;/i&gt;, and DBUS_LAUNCH is &lt;i&gt;&amp;quot;/usr/bin/dbus-launch --exit-with-session&amp;quot;&lt;/i&gt;.&lt;/p&gt;&lt;p&gt;Together, this means that &lt;i&gt;bash&lt;/i&gt; is run as a login shell and therefore executes &lt;i&gt;/etc/profile&lt;/i&gt; and &lt;span style=&quot;font-style: italic;&quot;&gt;~&lt;/span&gt;&lt;i&gt;/.bash_profile&lt;/i&gt;. It then starts &lt;i&gt;ssh_agent&lt;/i&gt;, which then starts &lt;i&gt;dbus-launch&lt;/i&gt;, which then starts the session manager. This chain ensures that environment variables set by the login profiles, &lt;i&gt;ssh_agent&lt;/i&gt;, and &lt;i&gt;dbus-launch&lt;/i&gt; programs are properly exported to the programs running within the session.&lt;/p&gt;&lt;p&gt;We can easily test this execution path by adding some code to the end of the &lt;i&gt;~/.bash_profile&lt;/i&gt;:&lt;/p&gt;&lt;blockquote&gt;&lt;p&gt;&lt;font face=&quot;courier new,courier,monospace&quot;&gt;# display a message to stdout&lt;br /&gt;echo &amp;quot;.bash_profile executed&amp;quot;&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font face=&quot;courier new,courier,monospace&quot;&gt;# display a message on the GUI display&lt;br /&gt;zenity --info --text &amp;quot;.bash_profile executed&amp;quot;&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font face=&quot;courier new,courier,monospace&quot;&gt;# set an environment variable&lt;br /&gt;export FDP=&amp;quot;.bash_profile executed&amp;quot;&lt;/font&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;p&gt;If we now login in character mode, we see these messages:&lt;/p&gt;&lt;blockquote&gt;&lt;p&gt;&lt;font face=&quot;courier new,courier,monospace&quot;&gt;Last login: Wed Aug 15 12:04:27 2007 from dailypackage.fedorabook.com&lt;br /&gt;&lt;b&gt;.bash_profile executed&lt;br /&gt;    &lt;br /&gt;(zenity:3689): Gtk-WARNING **: cannot open display:  &lt;/b&gt;&lt;br /&gt;[chris@localhost ~]$ &lt;/font&gt;&lt;br /&gt; &lt;/p&gt;&lt;/blockquote&gt;&lt;p&gt;Notice that the message &amp;quot;.bash_profile executed&amp;quot; from the &lt;i&gt;echo&lt;/i&gt; command is displayed correctly, but that &lt;i&gt;zenity&lt;/i&gt; can&#039;t display its graphical message because there is no X server available. On the other hand, when we login graphically, the &lt;i&gt;zenity&lt;/i&gt; dialog shown in the screenshot is displayed, but the output from &lt;i&gt;echo&lt;/i&gt; is not visible (note that since there is no window manager running, the &lt;i&gt;zenit&lt;/i&gt;y window does not have window decorations such as a border, titlebar, or controls). Regardless of how we&#039;ve logged in, if we check the environment variable FDP, we find that it has been correctly propagated:&lt;/p&gt;&lt;blockquote&gt;&lt;p&gt;&lt;font face=&quot;courier new,courier,monospace&quot;&gt;$ &lt;b&gt;echo $FDP&lt;/b&gt;&lt;br /&gt;.bash_profile executed&lt;/font&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;p&gt;So you can safely export environment variables from your &lt;i&gt;.bash_profile&lt;/i&gt; in all cases.&lt;/p&gt;&lt;p&gt;However, if the profile needs to interact with the user, it should detect whether it is running in a character-mode or a GUI environment. If in a character-mode environment, the command &lt;i&gt;tty&lt;/i&gt; will return success; if in a GUI environment, the DISPLAY variable should be set. To ask the user a question, you could use code such as this:&lt;/p&gt;&lt;blockquote&gt;&lt;p&gt;&lt;font face=&quot;courier new,courier,monospace&quot;&gt;if [ &amp;quot;$DISPLAY&amp;quot; ]&lt;br /&gt;then&lt;/font&gt;&lt;/p&gt;&lt;blockquote&gt;&lt;font face=&quot;courier new,courier,monospace&quot;&gt;if zenity --question --text &amp;quot;Do you want to foo?&amp;quot;&lt;/font&gt;&lt;br /&gt;&lt;font face=&quot;courier new,courier,monospace&quot;&gt;then&lt;/font&gt;&lt;br /&gt;&lt;blockquote&gt;&lt;font face=&quot;courier new,courier,monospace&quot;&gt;ANSWER=&amp;quot;Y&amp;quot;&lt;/font&gt;&lt;/blockquote&gt;&lt;font face=&quot;courier new,courier,monospace&quot;&gt;else&lt;/font&gt;&lt;br /&gt;&lt;blockquote&gt;&lt;font face=&quot;courier new,courier,monospace&quot;&gt;ANSWER=&amp;quot;N&amp;quot; # Default if zenity can&#039;t connect to display&lt;/font&gt;&lt;/blockquote&gt;&lt;font face=&quot;courier new,courier,monospace&quot;&gt;fi&lt;/font&gt;&lt;/blockquote&gt;&lt;p&gt;&lt;font face=&quot;courier new,courier,monospace&quot;&gt;elif tty --quiet&lt;br /&gt;then&lt;/font&gt;&lt;/p&gt;&lt;blockquote&gt;&lt;font face=&quot;courier new,courier,monospace&quot;&gt;echo -n &amp;quot;Do you want to foo? &amp;quot;&lt;/font&gt;&lt;br /&gt;&lt;font face=&quot;courier new,courier,monospace&quot;&gt;read ANSWER&lt;/font&gt;&lt;/blockquote&gt;&lt;p&gt;&lt;font face=&quot;courier new,courier,monospace&quot;&gt;else&lt;/font&gt;&lt;/p&gt;&lt;blockquote&gt;&lt;font face=&quot;courier new,courier,monospace&quot;&gt;&lt;p&gt;echo &amp;quot;No tty and no GUI!&amp;quot;&lt;br /&gt;ANSWER=&amp;quot;N&amp;quot; # Default if we can&#039;t ask the user&lt;/p&gt;&lt;/font&gt;&lt;/blockquote&gt;&lt;p&gt;&lt;font face=&quot;courier new,courier,monospace&quot;&gt;fi&lt;/font&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;p&gt;In addition to the profiles executed at login and the &lt;i&gt;~/.bashrc&lt;/i&gt; script executed when a shell starts, the &lt;i&gt;~/.bash_logout&lt;/i&gt; script is executed when the user logs out. The Fedora default logout script simply clears the character-mode screen, ensuring that no confidential information is left visible.&lt;/p&gt;&lt;blockquote&gt;&lt;p&gt; &lt;/p&gt;&lt;/blockquote&gt; 
    </content:encoded>

    <pubDate>Wed, 15 Aug 2007 00:01:00 -0400</pubDate>
    <guid isPermaLink="false">http://dailypackage.fedorabook.com/index.php?/archives/122-guid.html</guid>
    
</item>
<item>
    <title>Wednesday Why: Fast User Switching</title>
    <link>http://dailypackage.fedorabook.com/index.php?/archives/115-Wednesday-Why-Fast-User-Switching.html</link>
            <category>Wednesday Why</category>
    
    <comments>http://dailypackage.fedorabook.com/index.php?/archives/115-Wednesday-Why-Fast-User-Switching.html#comments</comments>
    <wfw:comment>http://dailypackage.fedorabook.com/wfwcomment.php?cid=115</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://dailypackage.fedorabook.com/rss.php?version=2.0&amp;type=comments&amp;cid=115</wfw:commentRss>
    

    <author>nospam@example.com (Chris Tyler)</author>
    <content:encoded>
    &lt;br /&gt;
&lt;i&gt;&lt;a class=&quot;serendipity_image_link&quot; href=&quot;http://dailypackage.fedorabook.com/uploads/2007-08-08-fus-gnome.png&quot; onclick=&quot;F1 = window.open(&#039;/uploads/2007-08-08-fus-gnome.png&#039;,&#039;Zoom&#039;,&#039;height=147,width=265,top=459,left=715,toolbar=no,menubar=no,location=no,resize=1,resizable=1,scrollbars=yes&#039;); return false;&quot;&gt;&lt;!-- s9ymdb:177 --&gt;&lt;img width=&quot;250&quot; height=&quot;132&quot; style=&quot;border: 0px none ; float: right; padding-left: 5px; padding-right: 5px;&quot; src=&quot;http://dailypackage.fedorabook.com/uploads/2007-08-08-fus-gnome.serendipityThumb.png&quot; /&gt;&lt;/a&gt;Fast User Switching&lt;/i&gt; enables more than one user to log in to a local graphical user interface on a computer equipped with a single &lt;i&gt;seat&lt;/i&gt; (monitor/mouse/keyboard) and permits quick switching between logged-in users.&lt;p&gt;Under Gnome on Fedora, the &lt;i&gt;fast user switching agent &lt;/i&gt;applet on the panel bar provides access to FUS; under KDE, use the &lt;i&gt;Switch User&lt;/i&gt; option on the K Menu. In either case, you&#039;ll have the option to switch to an existing session or to start a new session.&lt;br /&gt; &lt;/p&gt;&lt;a class=&quot;serendipity_image_link&quot; href=&quot;http://dailypackage.fedorabook.com/uploads/2007-08-08-fus-kde2.png&quot; onclick=&quot;F1 = window.open(&#039;/uploads/2007-08-08-fus-kde2.png&#039;,&#039;Zoom&#039;,&#039;height=542,width=576,top=261.5,left=559.5,toolbar=no,menubar=no,location=no,resize=1,resizable=1,scrollbars=yes&#039;); return false;&quot;&gt;&lt;!-- s9ymdb:178 --&gt;&lt;img width=&quot;300&quot; height=&quot;282&quot; style=&quot;border: 0px none ; float: left; padding-left: 5px; padding-right: 5px;&quot; src=&quot;http://dailypackage.fedorabook.com/uploads/2007-08-08-fus-kde2.serendipityThumb.png&quot; /&gt;&lt;/a&gt;When you ask to start a new session, &lt;i&gt;gdm&lt;/i&gt; (the Gnome display manager) starts an additional X server on a new &lt;i&gt;virtual terminal&lt;/i&gt; (or &lt;i&gt;virtual console&lt;/i&gt;) and presents a graphical login prompt on that display. There are 63 virtual terminals available;  the user can select any of the first 12 virtual terminals by pressing Ctrl plus Alt plus one of the function keys (F1-F12). In the default configuration, Fedora starts character-mode logins on VT1 through VT6, so X servers start on VT7 and above. As additional user log in, &lt;i&gt;ConsoleKit&lt;/i&gt; sets up access to the console devices, such as sound and CD/DVD drives, and tracks which user is on which display and virtual terminal. Switching to an existing session is handled by simply changing VTs, just as you would if you pressed the key combination to select that VT.&lt;br /&gt;&lt;p&gt;You can invoke an additional login from the command line using the &lt;i&gt;gdmflexiserver&lt;/i&gt; command. If &lt;a target=&quot;_blank&quot; href=&quot;http://dailypackage.fedorabook.com/index.php?/archives/110-GUI-Thursday-Xnest-A-nested-X-server.html&quot;&gt;&lt;i&gt;Xnest&lt;/i&gt;&lt;/a&gt; is installed, you can also invoke a new session on an &lt;i&gt;Xnest&lt;/i&gt; display using the &lt;i&gt;-n&lt;/i&gt; option. The &lt;i&gt;chvt&lt;/i&gt; command enables you to switch virtual terminals.&lt;/p&gt;&lt;p&gt;&lt;i&gt;Fast User Switching&lt;/i&gt; takes capabilities that have existed for years in the Linux kernel and X Window System and makes them readily available and easy to use.&lt;/p&gt;&lt;p&gt;&lt;b&gt;Fedora Wiki page on Fast User Switching (pre-F7 discussion):&lt;/b&gt; &lt;a target=&quot;_blank&quot; href=&quot;http://fedoraproject.org/wiki/Desktop/FastUserSwitching&quot;&gt;http://fedoraproject.org/wiki/Desktop/FastUserSwitching&lt;/a&gt;&lt;/p&gt;&lt;p /&gt; 
    </content:encoded>

    <pubDate>Wed, 08 Aug 2007 00:01:00 -0400</pubDate>
    <guid isPermaLink="false">http://dailypackage.fedorabook.com/index.php?/archives/115-guid.html</guid>
    
</item>
<item>
    <title>Wednesday Why: Colour ls</title>
    <link>http://dailypackage.fedorabook.com/index.php?/archives/109-Wednesday-Why-Colour-ls.html</link>
            <category>Wednesday Why</category>
    
    <comments>http://dailypackage.fedorabook.com/index.php?/archives/109-Wednesday-Why-Colour-ls.html#comments</comments>
    <wfw:comment>http://dailypackage.fedorabook.com/wfwcomment.php?cid=109</wfw:comment>

    <slash:comments>6</slash:comments>
    <wfw:commentRss>http://dailypackage.fedorabook.com/rss.php?version=2.0&amp;type=comments&amp;cid=109</wfw:commentRss>
    

    <author>nospam@example.com (Chris Tyler)</author>
    <content:encoded>
    &lt;br /&gt;
By default, the Fedora &lt;i&gt;ls&lt;/i&gt; command colour-codes file listings when they are displayed on a virtual terminal or terminal window, but not when they are piped into another command. For example:&lt;blockquote&gt;&lt;p&gt;&lt;font face=&quot;courier new,courier,monospace&quot;&gt;&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font face=&quot;courier new,courier,monospace&quot;&gt;&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font face=&quot;courier new,courier,monospace&quot;&gt;$ &lt;b&gt;ls -l /etc/sysconfig&lt;/b&gt;&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;table cellspacing=&quot;5&quot; cellpadding=&quot;0&quot; border=&quot;0&quot; style=&quot;width: 100%;&quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td style=&quot;width: 25%;&quot;&gt;&lt;font size=&quot;2&quot;&gt;&lt;b&gt;&lt;font face=&quot;courier new,courier,monospace&quot;&gt;auditd    &lt;br /&gt;authconfig&lt;br /&gt;autofs    &lt;br /&gt;bittorrent&lt;br /&gt;bluetooth &lt;br /&gt;&lt;font color=&quot;#0000ff&quot;&gt;cbq      &lt;/font&gt; &lt;br /&gt;clock     &lt;br /&gt;&lt;font color=&quot;#0000ff&quot;&gt;console  &lt;/font&gt; &lt;br /&gt;cpuspeed  &lt;br /&gt;crond     &lt;br /&gt;dund      &lt;br /&gt;firstboot &lt;br /&gt;grub      &lt;br /&gt;hidd      &lt;br /&gt;hsqldb    &lt;/font&gt;&lt;/b&gt;&lt;/font&gt;&lt;/td&gt;&lt;td style=&quot;width: 25%;&quot;&gt;&lt;font size=&quot;2&quot;&gt;&lt;b&gt;&lt;font face=&quot;courier new,courier,monospace&quot;&gt;httpd            &lt;br /&gt;hwconf          &lt;br /&gt;hw-uuid         &lt;br /&gt;i18n            &lt;br /&gt;init            &lt;br /&gt;ip6tables-config    &lt;br /&gt;iptables-config     &lt;br /&gt;irda            &lt;br /&gt;irqbalance        &lt;br /&gt;kernel          &lt;br /&gt;keyboard        &lt;br /&gt;kudzu            &lt;br /&gt;&lt;font color=&quot;#00ff00&quot;&gt;libvirtd   &lt;/font&gt;     &lt;br /&gt;lirc            &lt;br /&gt;livna-config-display&lt;/font&gt;&lt;/b&gt;&lt;/font&gt;&lt;/td&gt;&lt;td style=&quot;width: 25%;&quot;&gt;&lt;font size=&quot;2&quot;&gt;&lt;b&gt;&lt;font face=&quot;courier new,courier,monospace&quot;&gt;lm_sensors     &lt;br /&gt;&lt;font color=&quot;#0000ff&quot;&gt;modules       &lt;/font&gt; &lt;br /&gt;nasd           &lt;br /&gt;netconsole     &lt;br /&gt;network        &lt;br /&gt;&lt;font color=&quot;#0000ff&quot;&gt;networking    &lt;/font&gt; &lt;br /&gt;&lt;font color=&quot;#0000ff&quot;&gt;network-scripts&lt;/font&gt;&lt;br /&gt;ntpd           &lt;br /&gt;oidentd        &lt;br /&gt;pand           &lt;br /&gt;prelink        &lt;br /&gt;readonly-root  &lt;br /&gt;samba           &lt;br /&gt;saslauthd      &lt;br /&gt;&lt;font color=&quot;#009999&quot;&gt;selinux&lt;/font&gt;&lt;/font&gt;&lt;/b&gt;&lt;/font&gt;&lt;/td&gt;&lt;td style=&quot;width: 25%;&quot;&gt;&lt;font size=&quot;2&quot;&gt;&lt;b&gt;&lt;font face=&quot;courier new,courier,monospace&quot;&gt;sendmail&lt;br /&gt;smartmontools&lt;br /&gt;spamassassin&lt;br /&gt;squid&lt;br /&gt;syslog&lt;br /&gt;system-config-securitylevel&lt;br /&gt;system-config-users&lt;br /&gt;tux&lt;br /&gt;vdr&lt;br /&gt;&lt;font color=&quot;#0000ff&quot;&gt;vdr-plugins.d&lt;/font&gt;&lt;br /&gt;vncservers&lt;br /&gt;wpa_supplicant&lt;br /&gt;&lt;font color=&quot;#00ff00&quot;&gt;xendomains&lt;/font&gt;&lt;br /&gt;xinetd&lt;/font&gt;&lt;/b&gt;&lt;/font&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;font face=&quot;courier new,courier,monospace&quot;&gt;&lt;b&gt;&lt;/b&gt;&lt;/font&gt;&lt;font face=&quot;courier new,courier,monospace&quot;&gt;&lt;/font&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;p&gt;Notice that &lt;i&gt;cbq, console, modules, networking, network-scripts&lt;/i&gt; and &lt;i&gt;vdr-plugins.d&lt;/i&gt; are all in blue (indicating a directory); &lt;i&gt;libvirtd&lt;/i&gt; and &lt;i&gt;xendomains&lt;/i&gt; are in green (indicating an executable file); and &lt;i&gt;selinux&lt;/i&gt; is in turquoise (indicating a valid symbolic link).&lt;/p&gt;&lt;p&gt;The &lt;i&gt;ls&lt;/i&gt; output is in colour because &lt;i&gt;ls&lt;/i&gt; is actually an alias:&lt;/p&gt;&lt;blockquote&gt;&lt;p&gt;&lt;font face=&quot;courier new,courier,monospace&quot;&gt;$ &lt;b&gt;alias ls&lt;/b&gt;&lt;br /&gt;alias ls=&#039;ls --color=tty&#039;&lt;/font&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;p&gt;When &lt;i&gt;ls&lt;/i&gt; is executed, the option &lt;i&gt;--color=tty&lt;/i&gt; is automatically added (note to those in Commonwealth countries: &lt;i&gt;color&lt;/i&gt; option has no &lt;i&gt;u &lt;/i&gt;here!).&lt;/p&gt;&lt;p&gt;The actual colour associations are contained in the environment variable &lt;i&gt;LS_COLORS&lt;/i&gt;, which is set by the script &lt;i&gt;/etc/profile.d/colorls.sh&lt;/i&gt; (or &lt;i&gt;colorls.csh&lt;/i&gt; if you use csh). This script, which is also responsible for setting up the &lt;i&gt;ls&lt;/i&gt; alias, gets the colors from one of several possible configuration files; these are from highest to lowest priority: &lt;i&gt;~/.dir_colors.$TERM, ~/.dir_colors, ~/.dircolors.$TERM, ~/.dircolors, /etc/DIR_COLORS.$TERM,&lt;/i&gt; or &lt;i&gt;/etc/DIR_COLORS&lt;/i&gt; (where &lt;i&gt;$TERM&lt;/i&gt; is your current terminal type as specified by the &lt;i&gt;TERM&lt;/i&gt; environment variable).&lt;/p&gt;&lt;p&gt;All that to say that unless you&#039;ve customized your system, your &lt;i&gt;ls&lt;/i&gt; colours are specified in &lt;i&gt;/etc/DIR_COLORS.xterm&lt;/i&gt; and &lt;i&gt;/etc/DIR_COLORS&lt;/i&gt;, depending on whether you&#039;re using an xterm-compatible terminal window or a virtual console.&lt;/p&gt;&lt;p&gt;The &lt;i&gt;/etc/DIR_COLORS.xterm&lt;/i&gt; file contains these lines:&lt;/p&gt;&lt;blockquote&gt;&lt;p&gt;&lt;font face=&quot;courier new,courier,monospace&quot;&gt;# Below are the color init strings for the basic file types. A color init&lt;br /&gt;# string consists of one or more of the following numeric codes:&lt;br /&gt;# Attribute codes: &lt;br /&gt;# &lt;b&gt;00=none 01=bold 04=underscore 05=blink 07=reverse 08=concealed&lt;/b&gt;&lt;br /&gt;# Text color codes:&lt;br /&gt;# &lt;b&gt;30=black 31=red 32=green 33=yellow 34=blue 35=magenta 36=cyan 37=white&lt;/b&gt;&lt;br /&gt;# Background color codes:&lt;br /&gt;# &lt;b&gt;40=black 41=red 42=green 43=yellow 44=blue 45=magenta 46=cyan 47=white&lt;/b&gt;&lt;br /&gt;NORMAL 00       # global default, although everything should be something.&lt;br /&gt;FILE 00         # normal file&lt;br /&gt;DIR 01;34       # directory&lt;br /&gt;LINK 01;36      # symbolic link&lt;br /&gt;FIFO 40;33      # pipe&lt;br /&gt;SOCK 01;35      # socket&lt;br /&gt;BLK 40;33;01    # block device driver&lt;br /&gt;CHR 40;33;01    # character device driver&lt;br /&gt;ORPHAN 01;05;37;41  # orphaned syminks&lt;br /&gt;MISSING 01;05;37;41 # ... and the files they point to&lt;br /&gt;&lt;br /&gt;# This is for files with execute permission:&lt;br /&gt;EXEC 01;32 &lt;br /&gt;&lt;br /&gt;# List any file extensions like &#039;.gz&#039; or &#039;.tar&#039; that you would like ls&lt;br /&gt;# to colorize below. Put the extension, a space, and the color init string.&lt;br /&gt;# (and any comments you want to add after a &#039;#&#039;)&lt;br /&gt;.cmd 01;32 # executables (bright green)&lt;br /&gt;.exe 01;32&lt;br /&gt;.com 01;32&lt;br /&gt;.btm 01;32&lt;br /&gt;.bat 01;32&lt;br /&gt;.sh  01;32&lt;br /&gt;.csh 01;32&lt;br /&gt;.tar 01;31 # archives or compressed (bright red)&lt;br /&gt;.tgz 01;31&lt;br /&gt;.arj 01;31&lt;br /&gt;.taz 01;31&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;i&gt;(...lines snipped...)&lt;/i&gt;&lt;font face=&quot;courier new,courier,monospace&quot;&gt;&lt;/font&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;p&gt;As you can see, each file type or extension is matched up with a corresponding list of attributes and colors to be used. The color and attribute codes are listed in the comments within this file.&lt;/p&gt;&lt;p&gt;You can easily make a personal copy of this file and modify it to suit your needs:&lt;/p&gt;&lt;blockquote&gt;&lt;p&gt;&lt;font face=&quot;courier new,courier,monospace&quot;&gt;$ &lt;b&gt;cp /etc/DIR_COLORS.xterm ~/.dir_colors.xterm&lt;/b&gt;&lt;/font&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;p&gt;If you wanted to show .doc files in white-on-magenta, for example, add this line to &lt;i&gt;~/.dir_colors.xterm&lt;/i&gt;:&lt;/p&gt;&lt;blockquote&gt;&lt;p&gt;&lt;font face=&quot;courier new,courier,monospace&quot;&gt;.doc 01;37;45&lt;/font&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;p&gt;Since 01 is the attribute code for bold, 37 is a white foreground, and 45 is a magenta background.&lt;/p&gt;&lt;p /&gt;&lt;blockquote&gt;&lt;p /&gt;&lt;/blockquote&gt;&lt;p /&gt; 
    </content:encoded>

    <pubDate>Wed, 01 Aug 2007 12:14:00 -0400</pubDate>
    <guid isPermaLink="false">http://dailypackage.fedorabook.com/index.php?/archives/109-guid.html</guid>
    
</item>
<item>
    <title>Wednesday Why: Syslog</title>
    <link>http://dailypackage.fedorabook.com/index.php?/archives/104-Wednesday-Why-Syslog.html</link>
            <category>Wednesday Why</category>
    
    <comments>http://dailypackage.fedorabook.com/index.php?/archives/104-Wednesday-Why-Syslog.html#comments</comments>
    <wfw:comment>http://dailypackage.fedorabook.com/wfwcomment.php?cid=104</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://dailypackage.fedorabook.com/rss.php?version=2.0&amp;type=comments&amp;cid=104</wfw:commentRss>
    

    <author>nospam@example.com (Chris Tyler)</author>
    <content:encoded>
    &lt;br /&gt;
The &lt;i&gt;/var/log &lt;/i&gt;directory contains a number of different log files. Many of these logs are generated by &lt;i&gt;syslogd&lt;/i&gt;, which accepts log messages from programs and routes them to log files, the screen, and remote log monitors.&lt;p&gt;The file &lt;i&gt;/etc/syslog.conf&lt;/i&gt; configures message routing. This is the file as shipped in Fedora 7:&lt;/p&gt;&lt;p /&gt;&lt;blockquote&gt;&lt;font face=&quot;courier new,courier,monospace&quot;&gt;# Log all kernel messages to the console.&lt;br /&gt;# Logging much else clutters up the screen.&lt;br /&gt;#kern.&lt;strong&gt;                                                 /dev/console&lt;br /&gt;&lt;br /&gt;# Log anything (except mail) of level info or higher.&lt;br /&gt;# Don&#039;t log private authentication messages!&lt;br /&gt;*.info;mail.none;authpriv.none;cron.none                /var/log/messages&lt;br /&gt;&lt;br /&gt;# The authpriv file has restricted access.&lt;br /&gt;authpriv.&lt;/strong&gt;                                              /var/log/secure&lt;br /&gt;&lt;br /&gt;# Log all the mail messages in one place.&lt;br /&gt;mail.&lt;strong&gt;                                                  -/var/log/maillog&lt;br /&gt;&lt;br /&gt;# Log cron stuff&lt;br /&gt;cron.&lt;/strong&gt;                                                  /var/log/cron&lt;br /&gt;&lt;br /&gt;# Everybody gets emergency messages&lt;br /&gt;*.emerg                                                 &lt;strong&gt;&lt;br /&gt;&lt;br /&gt;# Save news errors of level crit and higher in a special file.&lt;br /&gt;uucp,news.crit                                          /var/log/spooler&lt;br /&gt;&lt;br /&gt;# Save boot messages also to boot.log&lt;br /&gt;local7.&lt;/strong&gt;                                                /var/log/boot.log&lt;/font&gt;&lt;/blockquote&gt;&lt;p&gt;This file consists of comment lines, which start with #, and routing lines, which consist of a message specification and a destination. The message specification consists of one or more&lt;i&gt; selectors&lt;/i&gt;, which specify a pattern of &lt;i&gt;facilities&lt;/i&gt; and &lt;i&gt;levels&lt;/i&gt; separated by a period.&lt;/p&gt;&lt;p&gt;The facility indicates the origin of the log entry. Possible values are &lt;i&gt;authpriv, cron, daemon, ftp, kern, local0 &lt;/i&gt;through &lt;i&gt;local7&lt;/i&gt;, &lt;i&gt;lpr, mail, news, syslog, user, &lt;/i&gt;and &lt;i&gt;uucp&lt;/i&gt;. The level is a priority value and may be (in order of increasing severity) &lt;i&gt;debug, info, notice, warning, err, crit, alert, &lt;/i&gt;or &lt;i&gt;emerg&lt;/i&gt;.&lt;/p&gt;&lt;p&gt;In selectors, a level written by itself selects messages of that level or highers, a level preceeded by an equal sign indicates messages only of that level, a prepended exclaimation mark means &amp;quot;not&amp;quot;, and an asterisk matches anything. The dummy level &lt;i&gt;none&lt;/i&gt; is equivalent to &lt;font face=&quot;courier new,courier,monospace&quot;&gt;!*&lt;/font&gt; and is used to prevent all matches with a particular facility. A semi-colon is used to AND multiple selectors, and a comma is used to OR facilities or levels within a selector.&lt;/p&gt;&lt;p&gt;Interpreting the default &lt;i&gt;syslog.conf&lt;/i&gt; file, we see that all messages of &lt;i&gt;info&lt;/i&gt; level and higher except those from the &lt;i&gt;mail, authpriv&lt;/i&gt; (authentication)&lt;i&gt;, and cron&lt;/i&gt; systems are placed into &lt;i&gt;/var/log/messages&lt;/i&gt;. Messages from &lt;i&gt;authpriv&lt;/i&gt; are placed in &lt;i&gt;/var/log/secure&lt;/i&gt; (because they may reveal sensitive information and require more restrictive read permissions on the log file), messages from &lt;i&gt;mail&lt;/i&gt; are placed in &lt;i&gt;/var/log/maillog&lt;/i&gt; (the leading - indicates that the file&#039;s buffers are not flushed after each write), and messages from &lt;i&gt;cron&lt;/i&gt; are placed in &lt;i&gt;/var/log/cron&lt;/i&gt;. Emergency (and higher) messages are written to all open terminals (*), critical messages from &lt;i&gt;uucp&lt;/i&gt; and &lt;i&gt;news&lt;/i&gt; are additionally placed in &lt;i&gt;/var/log/spooler&lt;/i&gt;, and boot messages (&lt;i&gt;local7&lt;/i&gt;) are placed in &lt;i&gt;/var/log/boot.log&lt;/i&gt;.&lt;/p&gt;&lt;p&gt;It&#039;s often useful to log your own sysadmin activity in /var/log/messages. Since these are interleaved with messages from system processes, it&#039;s easy to determine the the sequence of events. You can create log entries from the command line or in a script by using the &lt;i&gt;logger&lt;/i&gt; program; it is perhaps most convenient to define an alias to do this:&lt;/p&gt;&lt;blockquote&gt;&lt;p&gt;&lt;font face=&quot;courier new,courier,monospace&quot;&gt;$ alias note=&amp;quot;logger -p local4.notice&amp;quot;&lt;br /&gt;$ note Edited httpd.conf to create a virtual host for fedorabook.com&lt;/font&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;p&gt;You can execute the &lt;i&gt;note&lt;/i&gt; alias with a some text any time you want to create an entry in the log file.&lt;/p&gt;&lt;p&gt;It can be useful to collect messages from a group of machines (or virtual machines) into one log file. This centralizes your logs for easy examination, and it makes it harder for an intruder to hide their tracks by altering the log file (since they need to compromise the log server in addition to the primary attack target). To configure the log server to accept messages from remote machines, add &lt;font face=&quot;courier new,courier,monospace&quot;&gt;-r&lt;/font&gt; to the &lt;font face=&quot;courier new,courier,monospace&quot;&gt;SYSLOGD_OPTIONS&lt;/font&gt; line in &lt;i&gt;/etc/sysconfig/syslog&lt;/i&gt;, open up UDP port 514 on the server&#039;s firewall, and restart &lt;i&gt;syslog&lt;/i&gt;  with the command &lt;font face=&quot;courier new,courier,monospace&quot;&gt;service syslog restart&lt;/font&gt;&lt;/p&gt;&lt;p&gt;To configure a client system to send messages to a log server, add a line to &lt;i&gt;/etc/syslog.conf&lt;/i&gt; with a destination of &lt;i&gt;@logserver&lt;/i&gt;, where &lt;i&gt;logserver&lt;/i&gt; is the hostname of the system accepting log messages (make sure the hostname is resolvable by placing it in &lt;i&gt;/etc/hosts&lt;/i&gt;). Here is an example, which logs all messages of priority &lt;i&gt;notice&lt;/i&gt; and higher to the host &lt;i&gt;logmaster&lt;/i&gt;:&lt;/p&gt;&lt;blockquote&gt;&lt;p&gt;&lt;font face=&quot;courier new,courier,monospace&quot;&gt;*.notice   @logmaster&lt;/font&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;p&gt;Many LAN devices such as routers and networked printers can also be configured to send messages to a log server.&lt;font face=&quot;courier new,courier,monospace&quot;&gt;&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;b&gt;&lt;/b&gt;&lt;/p&gt;&lt;p&gt;&lt;b&gt;&lt;/b&gt;&lt;/p&gt;&lt;p&gt;&lt;table cellspacing=&quot;1&quot; cellpadding=&quot;1&quot; border=&quot;1&quot; style=&quot;width: 100%;&quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td style=&quot;width: 100%;&quot;&gt;&lt;blockquote&gt;&lt;p&gt;&lt;font size=&quot;2&quot;&gt;&lt;b&gt;Warning:&lt;/b&gt; It is possible to cause a denial-of-service condition--intentionally or accidentally--by flooding a log server with so many messages that the filesystem storing the logs overflows. It is a good idea to use a separate filesystem for /var/log/messages on a log server so that excessive log entries do not interfere with the normal operation of that system.&lt;/font&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;p&gt;&lt;font size=&quot;2&quot;&gt;&lt;/font&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/p&gt;&lt;p&gt;An enhanced version of &lt;i&gt;syslog&lt;/i&gt; named &lt;i&gt;syslog-ng&lt;/i&gt; is available in the Fedora repositories. Fedora 8 will introduce &lt;i&gt;rsyslog&lt;/i&gt;, which supports encrypted and authenticated log message forwarding, message rewriting, filtering based on message content, and the use of MySQL as a message store (enabling advanced reporting using SQL queries).&lt;/p&gt; 
    </content:encoded>

    <pubDate>Wed, 25 Jul 2007 00:01:00 -0400</pubDate>
    <guid isPermaLink="false">http://dailypackage.fedorabook.com/index.php?/archives/104-guid.html</guid>
    
</item>
<item>
    <title>Wednesday Why: Crontab</title>
    <link>http://dailypackage.fedorabook.com/index.php?/archives/99-Wednesday-Why-Crontab.html</link>
            <category>Wednesday Why</category>
    
    <comments>http://dailypackage.fedorabook.com/index.php?/archives/99-Wednesday-Why-Crontab.html#comments</comments>
    <wfw:comment>http://dailypackage.fedorabook.com/wfwcomment.php?cid=99</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://dailypackage.fedorabook.com/rss.php?version=2.0&amp;type=comments&amp;cid=99</wfw:commentRss>
    

    <author>nospam@example.com (Chris Tyler)</author>
    <content:encoded>
    &lt;br /&gt;
&lt;i&gt;Cron&lt;/i&gt; is the Unix/Linux task scheduler. It uses &lt;i&gt;crontab&lt;/i&gt; (cron table) files to specify the date and time that specific tasks are to be executed. The master system-wide crontab file is &lt;i&gt;/etc/crontab&lt;/i&gt;; additional system-wide crontab files may be placed in &lt;i&gt;/etc/cron.d&lt;/i&gt;, and personal crontab files (which are managed with the &lt;i&gt;crontab&lt;/i&gt; command) are placed in &lt;i&gt;/var/spool/cron/&lt;/i&gt;.&lt;br /&gt;&lt;br /&gt;The master crontab file looks like this:&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;&lt;font face=&quot;courier new,courier,monospace&quot;&gt;    SHELL=/bin/bash&lt;/font&gt;&lt;br /&gt;&lt;font face=&quot;courier new,courier,monospace&quot;&gt;    PATH=/sbin:/bin:/usr/sbin:/usr/bin&lt;/font&gt;&lt;br /&gt;&lt;font face=&quot;courier new,courier,monospace&quot;&gt;    MAILTO=root&lt;/font&gt;&lt;br /&gt;&lt;font face=&quot;courier new,courier,monospace&quot;&gt;    HOME=/&lt;/font&gt;&lt;br /&gt;&lt;br /&gt;&lt;font face=&quot;courier new,courier,monospace&quot;&gt;    # run-parts&lt;/font&gt;&lt;br /&gt;&lt;font face=&quot;courier new,courier,monospace&quot;&gt;    01 &lt;strong&gt; &lt;/strong&gt; &lt;strong&gt; &lt;/strong&gt; root run-parts /etc/cron.hourly&lt;/font&gt;&lt;br /&gt;&lt;font face=&quot;courier new,courier,monospace&quot;&gt;    02 4 &lt;strong&gt; &lt;/strong&gt; &lt;strong&gt; root run-parts /etc/cron.daily&lt;/font&gt;&lt;br /&gt;&lt;font face=&quot;courier new,courier,monospace&quot;&gt;    22 4 &lt;/strong&gt; &lt;strong&gt; 0 root run-parts /etc/cron.weekly&lt;/font&gt;&lt;br /&gt;&lt;font face=&quot;courier new,courier,monospace&quot;&gt;    42 4 1 &lt;/strong&gt; * root run-parts /etc/cron.monthly&lt;/font&gt;&lt;/blockquote&gt;&lt;br /&gt;The name and value pairs at the start of this file set up exported environment variables. The remaining lines contain five date and time fields (minute, hour, day of the month, month of the year, and day of the week), the account name under which the command should be executed, and the name of the command. (Personal crontab files are installed with the &lt;i&gt;crontab&lt;/i&gt; command and do not contain the account name field).&lt;br /&gt;&lt;br /&gt;The run-parts script simply runs each of the scripts within the specified directory. One of the scripts in each of those directories is named &lt;i&gt;0anacron&lt;/i&gt; and is designed to update timestamp files stored in &lt;i&gt;/var/spool/anacron&lt;/i&gt;; these timestamps are used by the &lt;i&gt;anacron&lt;/i&gt; system at boot time to ensure that the daily, weekly, and hourly jobs still get executed even if the computer is never on between 4:00 and 5:00 am.&lt;p&gt;For example, an office system which is turned off by the user each evening and turned on at 9:00 am each morning will never be on at 4:22 am when the scripts in the &lt;i&gt;/etc/cron.weekly&lt;/i&gt; directory are executed. One of the jobs performed weekly is &lt;i&gt;makewhatis&lt;/i&gt;, which rebuilds the &lt;i&gt;whatis&lt;/i&gt; database used by the &lt;i&gt;apropos&lt;/i&gt;, &lt;i&gt;man -k&lt;/i&gt;, and &lt;i&gt;whatis&lt;/i&gt; commands, so those commands would never have access to an up-to-date index. To solve this problem, when the system is booted, the init script &lt;i&gt;/etc/rc.d/init.d/anacron&lt;/i&gt; checks the file &lt;i&gt;/var/spool/anacron/cron.weekly&lt;/i&gt; to see when the scripts in &lt;i&gt;/etc/cron.weekly&lt;/i&gt; were last run; if it was more than 7 days ago, the scripts are executed after a brief delay using &lt;i&gt;run-parts&lt;/i&gt;.&lt;/p&gt;Packages that requires scheduled execution of jobs can be configued in either of two ways: they can include a crontab file which will be placed in &lt;i&gt;/etc/cron.d&lt;/i&gt; (the approach used by the &lt;i&gt;smolt&lt;/i&gt; package), or they can include a script file which will be placed in &lt;i&gt;/etc/cron.hourly, /etc/cron.daily, /etc/cron.weekly,&lt;/i&gt; or &lt;i&gt;/etc/cron.monthly&lt;/i&gt; (which is the approach used by &lt;i&gt;cups&lt;/i&gt;). 
    </content:encoded>

    <pubDate>Wed, 18 Jul 2007 00:01:00 -0400</pubDate>
    <guid isPermaLink="false">http://dailypackage.fedorabook.com/index.php?/archives/99-guid.html</guid>
    
</item>
<item>
    <title>Wednesday Why: Menus</title>
    <link>http://dailypackage.fedorabook.com/index.php?/archives/94-Wednesday-Why-Menus.html</link>
            <category>Wednesday Why</category>
    
    <comments>http://dailypackage.fedorabook.com/index.php?/archives/94-Wednesday-Why-Menus.html#comments</comments>
    <wfw:comment>http://dailypackage.fedorabook.com/wfwcomment.php?cid=94</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://dailypackage.fedorabook.com/rss.php?version=2.0&amp;type=comments&amp;cid=94</wfw:commentRss>
    

    <author>nospam@example.com (Chris Tyler)</author>
    <content:encoded>
    &lt;br /&gt;
&lt;a onclick=&quot;F1 = window.open(&#039;/uploads/2007-07-11-menus.png&#039;,&#039;Zoom&#039;,&#039;height=449,width=825,top=308,left=435,toolbar=no,menubar=no,location=no,resize=1,resizable=1,scrollbars=yes&#039;); return false;&quot; href=&quot;http://dailypackage.fedorabook.com/uploads/2007-07-11-menus.png&quot; class=&quot;serendipity_image_link&quot;&gt;&lt;!-- s9ymdb:134 --&gt;&lt;img width=&quot;300&quot; height=&quot;161&quot; src=&quot;http://dailypackage.fedorabook.com/uploads/2007-07-11-menus.serendipityThumb.png&quot; style=&quot;border: 0px none ; float: right; padding-left: 5px; padding-right: 5px;&quot; /&gt;&lt;/a&gt;Fedora&#039;s application menus include many different programs from different packages. Fedora supports multiple desktop environments, including &lt;i&gt;GNOME&lt;/i&gt;, &lt;i&gt;KDE,&lt;/i&gt; and &lt;i&gt;Xfce,&lt;/i&gt; and each of these has a different menu structure, which may include or exclude certain proograms, such as the control panels for each environment. Each menu title and menu entry can be be presented in multiple languages. Furthermore, the menu layout has changed between Fedora releases, even though some of the packages have not changed. How does this all work? &lt;br /&gt;&lt;a href=&quot;http://dailypackage.fedorabook.com/index.php?/archives/94-Wednesday-Why-Menus.html#extended&quot;&gt;Continue reading &quot;Wednesday Why: Menus&quot;&lt;/a&gt;
    </content:encoded>

    <pubDate>Wed, 11 Jul 2007 12:43:41 -0400</pubDate>
    <guid isPermaLink="false">http://dailypackage.fedorabook.com/index.php?/archives/94-guid.html</guid>
    
</item>
<item>
    <title>Wednesday Why: The login prompt</title>
    <link>http://dailypackage.fedorabook.com/index.php?/archives/88-Wednesday-Why-The-login-prompt.html</link>
            <category>Wednesday Why</category>
    
    <comments>http://dailypackage.fedorabook.com/index.php?/archives/88-Wednesday-Why-The-login-prompt.html#comments</comments>
    <wfw:comment>http://dailypackage.fedorabook.com/wfwcomment.php?cid=88</wfw:comment>

    <slash:comments>2</slash:comments>
    <wfw:commentRss>http://dailypackage.fedorabook.com/rss.php?version=2.0&amp;type=comments&amp;cid=88</wfw:commentRss>
    

    <author>nospam@example.com (Chris Tyler)</author>
    <content:encoded>
    &lt;br /&gt;
Most Fedora users realize that there are two ways to locally log in to a Fedora system: using a character-mode display, or through the graphical user interface. In the default configuration, six separate character-mode login screens are available, accessed by pressing Ctrl-Alt-F1 through Ctrl-Alt-F6. The X server which underlies the GUI display operates on another &lt;i&gt;virtual terminal&lt;/i&gt;, accessed with Ctrl-Alt-F7. When you boot your system into runlevel 3, only the character-mode logins are available; when you boot into runlevel 5 (which is the default), the GUI is also started. To change the default runlevel, edit &lt;i&gt;/etc/inittab&lt;/i&gt; and change the second field of the &lt;i&gt;initdefault&lt;/i&gt; line; it makes sense to boot server systems into runlevel 3, because the GUI will be rarely used and unnecessarily consume memory which could be better used for other purposes (you can start the GUI at any time by switching to runlevel 5 (&lt;font face=&quot;courier new,courier,monospace&quot;&gt;init 5&lt;/font&gt;) or by starting the GUI after login (&lt;font face=&quot;courier new,courier,monospace&quot;&gt;startx&lt;/font&gt;)).&lt;br /&gt;&lt;p&gt;The login prompt presented on the character-mode screens is taken from the file &lt;i&gt;/etc/issue&lt;/i&gt;. In some old versions of Fedora the &lt;i&gt;/etc/issue&lt;/i&gt; file was overwritten at each boot by the startup scripts, but this is no longer the case. The default login prompt looks like this:&lt;/p&gt;&lt;blockquote&gt;&lt;p&gt;&lt;font face=&quot;courier new,courier,monospace&quot;&gt;Fedora Release 7 (Moonshine)&lt;br /&gt;Kernel &lt;i&gt;2.6.21-1.3228.fc7&lt;/i&gt; on a &lt;i&gt;x86_64&lt;/i&gt;&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font face=&quot;courier new,courier,monospace&quot;&gt;&lt;i&gt;foomaster&lt;/i&gt; login:&lt;/font&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;p&gt;The italicized text will vary according to your kernel, CPU architecture, and hostname. This is configured in &lt;i&gt;/etc/issue&lt;/i&gt; as:&lt;br /&gt; &lt;/p&gt;&lt;blockquote&gt;&lt;font face=&quot;courier new,courier,monospace&quot;&gt;Fedora release 7 (Moonshine)&lt;/font&gt;&lt;br /&gt;&lt;font face=&quot;courier new,courier,monospace&quot;&gt;Kernel \r on an \m&lt;/font&gt;&lt;/blockquote&gt;&lt;p&gt;Several substitutions are available within the text:&lt;/p&gt;&lt;p&gt;&lt;table cellspacing=&quot;1&quot; cellpadding=&quot;1&quot; border=&quot;1&quot; style=&quot;width: 100%;&quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td align=&quot;center&quot; style=&quot;width: 50%;&quot;&gt;&lt;font size=&quot;2&quot;&gt;&lt;b&gt;Sequence&lt;/b&gt;&lt;/font&gt;&lt;/td&gt;&lt;td align=&quot;center&quot; style=&quot;width: 50%;&quot;&gt;&lt;font size=&quot;2&quot;&gt;&lt;b&gt;Expanded Value&lt;/b&gt;&lt;/font&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style=&quot;width: 50%;&quot;&gt;&lt;font size=&quot;2&quot;&gt;\d&lt;/font&gt;&lt;/td&gt;&lt;td style=&quot;width: 50%;&quot;&gt;&lt;font size=&quot;2&quot;&gt;date&lt;/font&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style=&quot;width: 50%;&quot;&gt;&lt;font size=&quot;2&quot;&gt;\l&lt;/font&gt;&lt;/td&gt;&lt;td style=&quot;width: 50%;&quot;&gt;&lt;font size=&quot;2&quot;&gt;virtual terminal&lt;/font&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style=&quot;width: 50%;&quot;&gt;&lt;font size=&quot;2&quot;&gt;\m&lt;/font&gt;&lt;/td&gt;&lt;td style=&quot;width: 50%;&quot;&gt;&lt;font size=&quot;2&quot;&gt;CPU architecture&lt;/font&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td valign=&quot;top&quot;&gt;&lt;font size=&quot;2&quot;&gt;\n&lt;/font&gt;&lt;/td&gt;&lt;td valign=&quot;top&quot;&gt;&lt;font size=&quot;2&quot;&gt;network node (usually equal to the fully-qualified hostname)&lt;/font&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td valign=&quot;top&quot;&gt;&lt;font size=&quot;2&quot;&gt;\o&lt;/font&gt;&lt;/td&gt;&lt;td valign=&quot;top&quot;&gt;&lt;font size=&quot;2&quot;&gt;domain name &lt;/font&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td valign=&quot;top&quot;&gt;&lt;font size=&quot;2&quot;&gt;\r&lt;/font&gt;&lt;/td&gt;&lt;td valign=&quot;top&quot;&gt;&lt;font size=&quot;2&quot;&gt;kernel version&lt;/font&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td valign=&quot;top&quot;&gt;&lt;font size=&quot;2&quot;&gt;\t&lt;/font&gt;&lt;/td&gt;&lt;td valign=&quot;top&quot;&gt;&lt;font size=&quot;2&quot;&gt;time&lt;/font&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td valign=&quot;top&quot;&gt;&lt;font size=&quot;2&quot;&gt;\s&lt;/font&gt;&lt;/td&gt;&lt;td valign=&quot;top&quot;&gt;&lt;font size=&quot;2&quot;&gt;OS name&lt;/font&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td valign=&quot;top&quot;&gt;&lt;font size=&quot;2&quot;&gt;\u&lt;/font&gt;&lt;/td&gt;&lt;td valign=&quot;top&quot;&gt;&lt;font size=&quot;2&quot;&gt;number of current users&lt;/font&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td valign=&quot;top&quot;&gt;&lt;font size=&quot;2&quot;&gt;\U&lt;/font&gt;&lt;/td&gt;&lt;td valign=&quot;top&quot;&gt;&lt;font size=&quot;2&quot;&gt;number of current users, followed by the text &amp;quot; users&amp;quot;&lt;/font&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td valign=&quot;top&quot;&gt;&lt;font size=&quot;2&quot;&gt;\v&lt;/font&gt;&lt;/td&gt;&lt;td valign=&quot;top&quot;&gt;&lt;font size=&quot;2&quot;&gt;OS version (kernel compilation date)&lt;/font&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/p&gt;&lt;p&gt;The line ending in &amp;quot;login:&amp;quot; comes from the &lt;i&gt;mingetty&lt;/i&gt; program.&lt;/p&gt;&lt;p&gt;You can include as much or as little text as you want in this file, but it&#039;s foolish to include more than one screenful. Some examples:&lt;/p&gt;&lt;blockquote&gt;&lt;p&gt;Welcome to hostmaster.example.com!&lt;/p&gt;&lt;/blockquote&gt;&lt;p&gt;Or:&lt;/p&gt;&lt;blockquote&gt;&lt;p&gt;Webserver #1 (www1.example.com)&lt;br /&gt;System administrator:  r.k.ryale&lt;br /&gt;Phone 905-555-5555 extension 4321 before taking this system offline or in the case of problems.&lt;/p&gt;&lt;/blockquote&gt;&lt;p&gt;Or:&lt;/p&gt;&lt;blockquote&gt;&lt;p&gt;Private system. Unauthorized access prohibited and will be prosecuted to the full extent of the law. All access is monitored.&lt;/p&gt;&lt;/blockquote&gt;&lt;p&gt;Or:&lt;/p&gt;&lt;blockquote&gt;&lt;p&gt;This is the experimental scratch system &amp;quot;demo&amp;quot;. To login, enter the user ID &amp;quot;guest&amp;quot; and the password &amp;quot;please&amp;quot;. The root password is &amp;quot;root&amp;quot;. Enjoy! If you destroy the system, please reinstall Fedora 7 with the same passwords.&lt;/p&gt;&lt;/blockquote&gt;&lt;p&gt;If you provide telnet access to your system, which should only be done for low-security / no-security systems, a similar pre-login message can be provided for remote users in the file &lt;i&gt;/etc/issue.net&lt;/i&gt;.&lt;/p&gt; 
    </content:encoded>

    <pubDate>Wed, 04 Jul 2007 00:01:00 -0400</pubDate>
    <guid isPermaLink="false">http://dailypackage.fedorabook.com/index.php?/archives/88-guid.html</guid>
    
</item>

</channel>
</rss>