<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Red Hat Magazine &#187; tips and tricks</title>
	<atom:link href="http://magazine.redhat.com/category/tips-and-tricks/feed/" rel="self" type="application/rss+xml" />
	<link>http://magazine.redhat.com</link>
	<description>Just another WordPress.com weblog</description>
	<lastBuildDate>Tue, 15 Sep 2009 20:14:47 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<cloud domain='magazine.redhat.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://www.gravatar.com/blavatar/43e95982d87da9fb7c7b9a74b524335f?s=96&#038;d=http://s.wordpress.com/i/buttonw-com.png</url>
		<title>Red Hat Magazine &#187; tips and tricks</title>
		<link>http://magazine.redhat.com</link>
	</image>
			<item>
		<title>Writing simple python setup commands</title>
		<link>http://magazine.redhat.com/2009/04/09/writing-simple-python-setup-commands/</link>
		<comments>http://magazine.redhat.com/2009/04/09/writing-simple-python-setup-commands/#comments</comments>
		<pubDate>Thu, 09 Apr 2009 18:54:19 +0000</pubDate>
		<dc:creator>Steve &#39;Ashcrow&#39; Milner</dc:creator>
				<category><![CDATA[technical]]></category>
		<category><![CDATA[tips and tricks]]></category>

		<guid isPermaLink="false">http://magazine.redhat.com/?p=1386</guid>
		<description><![CDATA[Building software in most languages is a pain. Remember ant build.xml, maven2 pom files, and multi-level makefiles?
Python has a simple solution for building modules, applications, and extensions called distutils. Disutils comes as part of the Python distribution so there are no other packages required.
Pull down just about any python source code and you&#8217;re more than [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=magazine.redhat.com&blog=5816259&post=1386&subd=rhredhatmagazine&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Building software in most languages is a pain. Remember ant build.xml, maven2 pom files, and multi-level makefiles?</p>
<p>Python has a simple solution for building modules, applications, and extensions called <a href="http://docs.python.org/library/distutils.html">distutils</a>. Disutils comes as part of the Python distribution so there are no other packages required.</p>
<p>Pull down just about any python source code and you&#8217;re more than likely going to find a setup.py script that helps make building and installing a snap. Most engineers don&#8217;t add functionality when using distutils, instead opting to use the default commands. </p>
<p>In some cases, developers might provide secondary scripts to do other tasks for building and testing outside of the setup script, but I believe that can lead to unnecessary complication of common tasks.<span id="more-1386"></span></p>
<p>For those who are not familiar with setup scripts, Figure 1 shows a simple example.</p>
<pre>
#!/usr/bin/env python
"""
Setup script.
"""

from distutils.core import setup

setup(name = "myapp",
    version = "1.0.0",
    description = "My simple application",
    long_description = "My simple application that doesn't do anything.",
    author = "Me",
    author_email = 'me@example.dom',
    url = "http://example.dom/myapp/",
    download_url = "http://example.dom/myapp/download/",
    platforms = ['any'],

    license = "GPLv3+",

    package_dir = {'myapp': 'src/myapp'},
    packages = ['myapp'],

    classifiers = [
        'License :: OSI Approved :: GNU General Public License (GPL)',
        'Development Status :: 5 - Production/Stable',
        'Topic :: Software Development :: Libraries :: Python Modules',
        'Programming Language :: Python'],
)
</pre>
<div class="caption">Figure 1.</div>
<p>This setup script lists the metadata, maps to a package directory, and provides the general commands expected from distutils setup. This is great, but as I&#8217;ve said, it may not do everything you need it to. </p>
<p>What if, for example, we want to be able to see all the TODO tags in the codebase on any platform? In other words, grep won&#8217;t cut it. </p>
<p>Let&#8217;s start by writing a function that searches for TODO tags in files and prints them back to the screen in a nice format like:</p>
<p><code>src/myapp/__init__.py (11): TODO: remove me</code></p>
<pre>
def report_todo():
    """
    Prints out TODO's in the code.
    """
    import os
    import re

    # The format of the string to print: file_path (line_no): %s line_str
    format_str = "%s (%i): %s"
    # regex to remove whitespace in front of TODO's
    remove_front_whitespace = re.compile("^[ ]*(.*)$")

    # Look at all non pyc files from current directory down
    for rootdir in ['src/', 'bin/']:
        # walk down each root directory
        for root, dirs, files in os.walk(rootdir):
            # for each single file in the files
            for afile in files:
                # if the file doesn't end with .pyc
                if not afile.endswith('.pyc'):
                    full_path = os.path.join(root, afile)
                    fobj = open(full_path, 'r')
                    line_no = 0
                    # look at each line for TODO's
                    for line in fobj.readlines():
                        if 'todo' in line.lower():
                            nice_line = remove_front_whitespace.match(
                                line).group(1)
                            # print the info if we have a TODO
                            print(format_str % (
                                full_path, line_no, nice_line))
                        line_no += 1
</pre>
<div class="caption">Figure 2.</div>
<p>The report_todo function is self-contained and quite simple, if  a bit clunky by itself. Who wants to install and use a &#8216;report-todo&#8217; command on machines just to look for TODO tags?</p>
<p>We want to turn this into a setup command so that we can ship it with our application &#8216;myapp&#8217; to be used by developers via setup.py. We will probably add more setup commands in the future, so let&#8217;s create a class to subclass our commands from. We do this because most of our commands will probably be simple and won&#8217;t need to override the *_option methods (though they can if they need to).</p>
<pre>
import os

from distutils.core import setup, Command

class SetupBuildCommand(Command):
    """
    Master setup build command to subclass from.
    """

    user_options = []

    def initialize_options(self):
        """
        Setup the current dir.
        """
        self._dir = os.getcwd()

    def finalize_options(self):
        """
        Set final values for all the options that this command supports.
        """
        pass
</pre>
<div class="caption">Figure 3.</div>
<p>The SetupBuildCommand defines a few methods that are required for all setup commands. As I stated before, most of our commands will probably not deviate from these defaults, so defining them higher in the object hierarchy means simpler code in the commands themselves. If we do want to add arguments to to any of our commands, we can override initialize_options() and finalize_options() to handle the arguments properly.</p>
<p>Now that we have the SetupBuildCommand to subclass from we can merge our report_todo function into a SetupBuildCommand class. To do this, we create a class that subclasses SetupBuildCommand, and then add a description variable and a run method (which is what is executed when the command runs).</p>
<pre>
class TODOCommand(SetupBuildCommand):
    """
    Quick command to show code TODO's.
    """

    description = "prints out TODO's in the code"

    def run(self):
        """
        Prints out TODO's in the code.
        """
        import re

        # The format of the string to print: file_path (line_no): %s line_str
        format_str = "%s (%i): %s"
        # regex to remove whitespace in front of TODO's
        remove_front_whitespace = re.compile("^[ ]*(.*)$")

        # Look at all non pyc files in src/ and bin/
        for rootdir in ['src/', 'bin/']:
            # walk down each root directory
            for root, dirs, files in os.walk(rootdir):
                # for each single file in the files
                for afile in files:
                    # if the file doesn't end with .pyc
                    if not afile.endswith('.pyc'):
                        full_path = os.path.join(root, afile)
                        fobj = open(full_path, 'r')
                        line_no = 0
                        # look at each line for TODO's
                        for line in fobj.readlines():
                            if 'todo' in line.lower():
                                nice_line = remove_front_whitespace.match(
                                    line).group(1)
                                # print the info if we have a TODO
                                print(format_str % (
                                    full_path, line_no, nice_line))
                            line_no += 1
</pre>
<div class="caption">Figure 4.</div>
<p>The run method in this example is the same as report_todo but in a method format (with self) and renamed to run. </p>
<p>Now it&#8217;s time to bring all this together. If we add Figure 1 and Figure 2 to the setup script (Figure 1), then all that is left is to map the setup command with a command name. Do this via the cmdclass argument, and in the form:</p>
<p><code>cmdclass = {'name': CommandClass} </code></p>
<p>Figure 5 shows it all together in an abbreviated form.</p>
<pre>
#!/usr/bin/env python
"""
Setup script.
"""

import os

from distutils.core import setup, Command

class SetupBuildCommand(Command):
    """
    Master setup build command to subclass from.
    """
    # See Figure 3

class TODOCommand(SetupBuildCommand):
    """
    Quick command to show code TODO's.
    """
    # See Figure 4

setup(name = "myapp",
    version = "1.0.0",
    description = "My simple application",
    long_description = "My simple application that doesn't do anything.",
    author = "Me",
    author_email = 'me@example.dom',
    url = "http://example.dom/myapp/",
    download_url = "http://example.dom/myapp/download/",
    platforms = ['any'],

    license = "GPLv3+",

    package_dir = {'myapp': 'src/myapp'},
    packages = ['myapp'],

    classifiers = [
        'License :: OSI Approved :: GNU General Public License (GPL)',
        'Development Status :: 5 - Production/Stable',
        'Topic :: Software Development :: Libraries :: Python Modules',
        'Programming Language :: Python'],

    cmdclass = {'todo': TODOCommand},
)
</pre>
<div class="caption">Figure 5.</div>
<p>You&#8217;ll notice that `python setup.py &#8211;help-commands` now shows &#8216;Extra commands&#8217; with our TODO command listed. </p>
<p>Give it a go and see what you have left to do in your code!</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/rhredhatmagazine.wordpress.com/1386/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/rhredhatmagazine.wordpress.com/1386/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/rhredhatmagazine.wordpress.com/1386/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/rhredhatmagazine.wordpress.com/1386/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/rhredhatmagazine.wordpress.com/1386/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/rhredhatmagazine.wordpress.com/1386/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/rhredhatmagazine.wordpress.com/1386/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/rhredhatmagazine.wordpress.com/1386/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/rhredhatmagazine.wordpress.com/1386/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/rhredhatmagazine.wordpress.com/1386/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=magazine.redhat.com&blog=5816259&post=1386&subd=rhredhatmagazine&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://magazine.redhat.com/2009/04/09/writing-simple-python-setup-commands/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">Steve &#39;Ashcrow&#39; Milner</media:title>
		</media:content>
	</item>
		<item>
		<title>Tips and tricks:  How do I force users to change their passwords upon first login?</title>
		<link>http://magazine.redhat.com/2008/09/22/tips-and-tricks-how-do-i-force-users-to-change-their-passwords-upon-first-login/</link>
		<comments>http://magazine.redhat.com/2008/09/22/tips-and-tricks-how-do-i-force-users-to-change-their-passwords-upon-first-login/#comments</comments>
		<pubDate>Mon, 22 Sep 2008 21:51:50 +0000</pubDate>
		<dc:creator>The editorial team</dc:creator>
				<category><![CDATA[tips and tricks]]></category>

		<guid isPermaLink="false">http://www.redhatmagazine.com/2008/09/22/tips-and-tricks-how-do-i-force-users-to-change-their-passwords-upon-first-login/</guid>
		<description><![CDATA[1.) Firstly, lock the account to prevent the user from using the login until the change has been made:

# usermod -L

2.) Change the password expiration date to 0 to ensure the user changes the password during the next login:

# chage -d 0

3.) To unlock the account after the change do the following:

# usermod -U


Red Hat&#8217;s [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=magazine.redhat.com&blog=5816259&post=1052&subd=rhredhatmagazine&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>1.) Firstly, lock the account to prevent the user from using the login until the change has been made:</p>
<pre class="screen">
# usermod -L
</pre>
<p>2.) Change the password expiration date to 0 to ensure the user changes the password during the next login:</p>
<pre class="screen">
# chage -d 0
</pre>
<p>3.) To unlock the account after the change do the following:</p>
<pre class="screen">
# usermod -U
</pre>
<p><span id="more-1052"></span></p>
<p class="authorblurb">Red Hat&#8217;s customer service and support teams receive technical support questions from users all over the world. Red Hat technicians add the questions and answers to Red Hat Knowledgebase on a daily basis. Access to <a href="http://kbase.redhat.com/">Red Hat Knowledgebase</a> is free. Red Hat Magazine offers a preview into the Red Hat Knowledgebase by highlighting some of the most recent entries. The information provided in this article is for your information only. The origin of this information may be internal or external to Red Hat. While Red Hat attempts to verify the validity of this information before it is posted, Red Hat makes no express or implied claims to its validity.</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/rhredhatmagazine.wordpress.com/1052/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/rhredhatmagazine.wordpress.com/1052/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/rhredhatmagazine.wordpress.com/1052/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/rhredhatmagazine.wordpress.com/1052/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/rhredhatmagazine.wordpress.com/1052/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/rhredhatmagazine.wordpress.com/1052/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/rhredhatmagazine.wordpress.com/1052/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/rhredhatmagazine.wordpress.com/1052/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/rhredhatmagazine.wordpress.com/1052/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/rhredhatmagazine.wordpress.com/1052/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=magazine.redhat.com&blog=5816259&post=1052&subd=rhredhatmagazine&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://magazine.redhat.com/2008/09/22/tips-and-tricks-how-do-i-force-users-to-change-their-passwords-upon-first-login/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">The editorial team</media:title>
		</media:content>
	</item>
		<item>
		<title>Tips and tricks:  How do I add raw device mapping in Red Hat Enterprise Linux 5?</title>
		<link>http://magazine.redhat.com/2008/09/17/tips-and-tricks-how-do-i-add-raw-device-mapping-in-red-hat-enterprise-linux-5/</link>
		<comments>http://magazine.redhat.com/2008/09/17/tips-and-tricks-how-do-i-add-raw-device-mapping-in-red-hat-enterprise-linux-5/#comments</comments>
		<pubDate>Wed, 17 Sep 2008 21:58:09 +0000</pubDate>
		<dc:creator>The editorial team</dc:creator>
				<category><![CDATA[tips and tricks]]></category>

		<guid isPermaLink="false">http://www.redhatmagazine.com/2008/09/17/tips-and-tricks-how-do-i-add-raw-device-mapping-in-red-hat-enterprise-linux-5/</guid>
		<description><![CDATA[Answer:
The raw devices interface has been deprecated in Red Hat&#174; Enterprise Linux&#174; 5. The rawdevices service and /etc/sysconfig/rawdevices file no longer exist and raw devices are now configured via udev rules. However the preferred method for performing raw I/O (ie. bypassing filesystem caching) is to open EXT3/EXT2 files with the O_DIRECT flag.
This is an excerpt [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=magazine.redhat.com&blog=5816259&post=1049&subd=rhredhatmagazine&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p><strong>Answer:</strong></p>
<p>The raw devices interface has been deprecated in Red Hat&reg; Enterprise Linux&reg; 5. The <tt class="command">rawdevices</tt> service and <tt class="command">/etc/sysconfig/rawdevices</tt> file no longer exist and raw devices are now configured via <tt class="command">udev</tt> rules. However the preferred method for performing raw I/O (ie. bypassing filesystem caching) is to open EXT3/EXT2 files with the O_DIRECT flag.</p>
<p>This is an excerpt from the <tt class="command">raw</tt> command&#8217;s man page:</p>
<pre class="screen">
Although  Linux  includes  support  for rawio, it is now a deprecated interface. If your application performs device access using this
interface, Red Hat encourages you to modify your application to open the block device with the O_DIRECT flag. The rawio interface will
exist for the life of Red Hat Enterprise Linux 5, but is a candidate for removal from future releases.
</pre>
<p><span id="more-1049"></span></p>
<ul>
<li><b>Creating the raw devices:</b><br />
Nevertheless, to create raw devices, add entries to <tt class="command">/etc/udev/rules.d/60-raw.rules</tt> in the following formats:</p>
<p>For device names:</p>
<pre class="screen">
ACTION=="add", KERNEL=="<strong></strong>", RUN+="raw /dev/raw/rawX %N"
</pre>
<p>For major / minor numbers:</p>
<pre class="screen">
ACTION=="add", ENV{MAJOR}="A", ENV{MINOR}="B", RUN+="raw /dev/raw/rawX %M %m"
</pre>
<p>Replace <tt class="command"></tt> with the name of the device needed to bind (such as <tt>/dev/sda1</tt>). &#8220;A&#8221; and &#8220;B&#8221; are the major / minor numbers of the device needed for binding, an &#8220;X&#8221; is the <tt class="command">raw</tt> device number that the system wants to use.</p>
<p>If there is a large, pre-existing <tt class="command">/etc/sysconfig/rawdevices</tt> file, convert it with the following script:</p>
<pre class="screen">
#!/bin/sh
grep -v "^ *#" /etc/sysconfig/rawdevices | grep -v "^$" | while read dev major
minor ; do
        if [ -z "$minor" ]; then
                echo "ACTION==\"add\", KERNEL==\"${major##/dev/}\",
RUN+=\"/usr/bin/raw $dev %N\""
        else
                echo "ACTION==\"add\", ENV{MAJOR}==\"$major\",
ENV{MINOR}==\"$minor\", RUN+=\"/usr/bin/raw $dev %M %m\""
        fi
done
</pre>
<li><b>Creating persistent raw devices for single path LUNs:</b>
<p>If using unpartitioned LUNs, to create a single raw device for the whole LUN use this rule format:</p>
<pre class="screen">
ACTION=="add", KERNEL=="sd*[!0-9]", PROGRAM=="/sbin/scsi_id -g -u -s %p", RESULT=="3600601601bd2180072193a9242c3dc11", RUN+="/bin/raw /dev/raw/raw1 %N"
</pre>
<p>Set the RESULT value to the output of <tt class="command">scsi_id -g -u -s /block/sdX</tt> (where sdX is the current path to the LUN).<br />
This will create the raw device <tt class="command">/dev/raw/raw1</tt> that will be persistently bound to the LUN with WWID <tt class="command">3600601601bd2180072193a9242c3dc11</tt>.</p>
<p>If using partitioned LUNs, where raw devices are created for each of the partitions on the LUN, use this rule format:</p>
<pre class="screen">
ACTION=="add", KERNEL=="sd*[0-9]", PROGRAM=="/sbin/scsi_id -g -u -s %p", RESULT=="3600601601bd2180072193a9242c3dc11", RUN+="/bin/raw /dev/raw/raw%n %N"
</pre>
<p>Again, set RESULT to the output of <tt class="command">scsi_id -g -u -s /block/sdX</tt>.  This will create the raw device(s) <tt class="command">/dev/raw/raw1, /dev/raw/raw2</tt>, etc. for each partition on the LUN and they will be persistently bound to the LUN with WWID <tt class="command">3600601601bd2180072193a9242c3dc11</tt>.</p>
<li><b>Setting ownership and permissions on the raw devices:</b>
<p>To set specific ownership and/or permissions for the raw devices, add entries to <tt class="command">/etc/udev/rules.d/60-raw.rules</tt> in the following format:</p>
<pre class="screen">
ACTION=="add", KERNEL=="raw*", OWNER=="root", GROUP=="disk", MODE=="0660"
</pre>
<li><b>Testing and implementing the udev rules:</b>
<p>Before implementing them, use the <tt class="command">udevtest</tt> command to verify the udev rules work as expected.  To verify that the raw device is created for a specific disk or partition, eg /dev/sdb1:</p>
<pre class="screen">
[root@rhel5 rules.d]# udevtest /block/sdb/sdb1 | grep raw
main: run: '/bin/raw /dev/raw/raw1 /dev/.tmp-8-17'
</pre>
<p>To check ownership/permission settings for a particular raw device, eg /dev/raw/raw1:</p>
<pre class="screen">
[root@rhel5 rules.d]# udevtest /class/raw/raw1 | grep mode
udev_node_add: creating device node '/dev/raw/raw1', major = '162', minor = '1', mode = '0600', uid = '0', gid = '0'
</pre>
<p>Finally, to actually create the raw device(s), use the <tt class="command">start_udev</tt> command:</p>
<pre class="screen">
[root@rhel5 rules.d]# start_udev
Starting udev:                                             [  OK  ]
</pre>
<p>Check that the raw device(s) have been created:</p>
<pre class="screen">
[root@rhel5 rules.d]# raw -qa
/dev/raw/raw1:  bound to major 8, minor 17
[root@rhel5 rules.d]# ls -l /dev/raw
total 0
crw-rw---- 1 root   disk 162,  1 Jan 29 02:47 raw1
</pre>
<li><b>Creating persistent raw devices for multipathed LUNs:</b>
<p>Unfortunately it is not possible to write udev rules for creating raw devices on multipath devices (/dev/dm-*) without manipulating existing udev rules.  Modifying existing rules for this purpose could cause unforeseen problems and is not supported by Red Hat Global Support Services.<br />
If absolutely necessary, an alternate method for creating raw devices on top of multipath devices could be to create the raw devices in <tt class="command">/etc/rc.d/rc.local</tt>, so long as the raw device is not required before rc.local is executed.  For example:</p>
<pre class="screen">
/bin/raw /dev/raw/raw1 /dev/mpath/mpath1p1
/bin/raw /dev/raw/raw2 /dev/mpath/mpath1p2
</pre>
</ul>
<p><strong>Note:</strong> Raw device support is not enabled on the s390 architecture.</p>
<p><a href="https://bugzilla.redhat.com/show_bug.cgi?id=452534">https://bugzilla.redhat.com/show_bug.cgi?id=452534</a></p>
<p class="authorblurb">Red Hat&#8217;s customer service and support teams receive technical support questions from users all over the world. Red Hat technicians add the questions and answers to Red Hat Knowledgebase on a daily basis. Access to <a href="http://kbase.redhat.com/">Red Hat Knowledgebase</a> is free. Red Hat Magazine offers a preview into the Red Hat Knowledgebase by highlighting some of the most recent entries. The information provided in this article is for your information only. The origin of this information may be internal or external to Red Hat. While Red Hat attempts to verify the validity of this information before it is posted, Red Hat makes no express or implied claims to its validity.</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/rhredhatmagazine.wordpress.com/1049/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/rhredhatmagazine.wordpress.com/1049/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/rhredhatmagazine.wordpress.com/1049/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/rhredhatmagazine.wordpress.com/1049/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/rhredhatmagazine.wordpress.com/1049/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/rhredhatmagazine.wordpress.com/1049/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/rhredhatmagazine.wordpress.com/1049/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/rhredhatmagazine.wordpress.com/1049/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/rhredhatmagazine.wordpress.com/1049/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/rhredhatmagazine.wordpress.com/1049/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/rhredhatmagazine.wordpress.com/1049/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/rhredhatmagazine.wordpress.com/1049/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=magazine.redhat.com&blog=5816259&post=1049&subd=rhredhatmagazine&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://magazine.redhat.com/2008/09/17/tips-and-tricks-how-do-i-add-raw-device-mapping-in-red-hat-enterprise-linux-5/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">The editorial team</media:title>
		</media:content>
	</item>
		<item>
		<title>Tips and tricks: What is devlabel, and how do I use it?</title>
		<link>http://magazine.redhat.com/2008/09/15/tips-and-tricks-what-is-devlabel-and-how-do-i-use-it/</link>
		<comments>http://magazine.redhat.com/2008/09/15/tips-and-tricks-what-is-devlabel-and-how-do-i-use-it/#comments</comments>
		<pubDate>Mon, 15 Sep 2008 18:53:13 +0000</pubDate>
		<dc:creator>The editorial team</dc:creator>
				<category><![CDATA[tips and tricks]]></category>

		<guid isPermaLink="false">http://www.redhatmagazine.com/2008/09/15/tips-and-tricks-what-is-devlabel-and-how-do-i-use-it/</guid>
		<description><![CDATA[Devlabel is a script which manages symbolic links to storage devices on your system. This is accomplished by utilizing the inherent unique identifiers (UUID) that each device should have in order to maintain a correctly pointing symlink in the event that the device name changes (eg. /dev/sdc1 becomes /dev/sdd1).

  

By adding  entries  [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=magazine.redhat.com&blog=5816259&post=1047&subd=rhredhatmagazine&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p><!-- http://kbase.redhat.com/faq/FAQ_43_4625.shtm  -->Devlabel is a script which manages symbolic links to storage devices on your system. This is accomplished by utilizing the inherent unique identifiers (UUID) that each device should have in order to maintain a correctly pointing symlink in the event that the device name changes (eg. <tt class="COMMAND">/dev/sdc1</tt> becomes <tt class="COMMAND">/dev/sdd1</tt>).
</p>
<p>  <span id="more-1047"></span></p>
<p>
By adding  entries  using devlabel, users can instead reference all devices by their symlink and no longer have to worry about what the true name of their device is. Devlabel works with both IDE and SCSI storage.
</p>
<p>
Devlabel first tries to find the uuid of the partition that you are attempting to add to devlabel by using the <tt class="COMMAND">/usr/bin/partition_uuid</tt> program. Partition  UUIDs  are supported currently under ext2, ext3, xfs, jfs and ocfs. If no partition UUID can be found (or if it is not a partition you are adding) devlabel will then attempt to find either a SCSI uuid or IDE identifier.
</p>
<p>
To determine the unique identifier associated with a SCSI device, devlabel uses the program <tt class="COMMAND">/usr/bin/scsi_unique_id</tt>. If this program cannot determine a unique identifier for your block device then the device cannot be used with devlabel.
</p>
<p>
Example usage of the <tt class="COMMAND">devlabel</tt> command can be found below:</p>
<ul>
<li>
Add a device to be managed by devlabel</p>
<blockquote><p><tt CLASS="COMMAND"><b>
<pre>
devlabel add -d  -s
</pre>
<p></b></tt></p></blockquote>
</li>
<li>
Remove a devlabel symlink</p>
<blockquote><p><tt CLASS="COMMAND"><b>
<pre>

devlabel remove -s
</pre>
<p></b></tt></p></blockquote>
</li>
<li>
Report the status of all devlabel symlinks</p>
<blockquote><p><tt CLASS="COMMAND"><b>
<pre>
devlabel status
</pre>
<p></b></tt></p></blockquote>
</li>
<li>
Get the UUID of a particular device</p>
<blockquote><p><tt CLASS="COMMAND"><b>
<pre>
devlabel printid -d 
</pre>
<p></b></tt></p></blockquote>
</li>
</ul>
<p>
Once a devlabel has been configured files such as <tt class="COMMAND">/etc/fstab</tt> can be modified to reflect these changes and point to the symlink rather than the physical device itself.
</p>
<p>
The configuration file for <tt class="COMMAND">devlabel</tt> is <tt class="COMMAND">/etc/sysconfig/devlabel</tt>. This file tracks all the current device symlinks. It is not recommended to edit this file by hand.</p>
<p>
The <tt class="COMMAND">devlabel</tt> command is available from the <tt class="COMMAND">devlabel</tt> package for Red Hat Enterprise Linux 3 and onwards.<br />
For further information see the Red Hat Enterprise Linux System Administration Guide <a href="http://www.redhat.com/docs/manuals/enterprise/RHEL-3-Manual/sysadmin-guide/ch-devlabel.html" target="blank">http://www.redhat.com/docs/manuals/enterprise/RHEL-3-Manual/sysadmin-guide/ch-devlabel.html</a></p>
<p class="authorblurb">Red Hat&#8217;s customer service and support teams receive technical support questions from users all over the world. Red Hat technicians add the questions and answers to Red Hat Knowledgebase on a daily basis. Access to <a href="http://kbase.redhat.com/">Red Hat Knowledgebase</a> is free. Red Hat Magazine offers a preview into the Red Hat Knowledgebase by highlighting some of the most recent entries. The information provided in this article is for your information only. The origin of this information may be internal or external to Red Hat. While Red Hat attempts to verify the validity of this information before it is posted, Red Hat makes no express or implied claims to its validity.</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/rhredhatmagazine.wordpress.com/1047/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/rhredhatmagazine.wordpress.com/1047/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/rhredhatmagazine.wordpress.com/1047/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/rhredhatmagazine.wordpress.com/1047/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/rhredhatmagazine.wordpress.com/1047/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/rhredhatmagazine.wordpress.com/1047/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/rhredhatmagazine.wordpress.com/1047/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/rhredhatmagazine.wordpress.com/1047/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/rhredhatmagazine.wordpress.com/1047/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/rhredhatmagazine.wordpress.com/1047/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/rhredhatmagazine.wordpress.com/1047/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/rhredhatmagazine.wordpress.com/1047/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=magazine.redhat.com&blog=5816259&post=1047&subd=rhredhatmagazine&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://magazine.redhat.com/2008/09/15/tips-and-tricks-what-is-devlabel-and-how-do-i-use-it/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">The editorial team</media:title>
		</media:content>
	</item>
		<item>
		<title>Tips and tricks: Registering Xen guests with RHN</title>
		<link>http://magazine.redhat.com/2008/09/11/tips-and-tricks-registering-xen-guests-with-rhn/</link>
		<comments>http://magazine.redhat.com/2008/09/11/tips-and-tricks-registering-xen-guests-with-rhn/#comments</comments>
		<pubDate>Thu, 11 Sep 2008 22:05:17 +0000</pubDate>
		<dc:creator>The editorial team</dc:creator>
				<category><![CDATA[tips and tricks]]></category>

		<guid isPermaLink="false">http://www.redhatmagazine.com/2008/09/11/tips-and-tricks-registering-xen-guests-with-rhn/</guid>
		<description><![CDATA[Question: How do I register my Red Hat Enterprise Linux Xen Guest system with the Red Hat Network?
Answer:
Important: For Red Hat Enterprise Linux 4 fully-virtualized guests install the latest version of up2date.
This procedure will work for both fully-virtualized and para-virtualized guests.

 The host system (dom0) must be registered with Red Hat Network. Follow standard procedures [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=magazine.redhat.com&blog=5816259&post=1045&subd=rhredhatmagazine&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p><strong>Question:</strong> How do I register my Red Hat Enterprise Linux Xen Guest system with the Red Hat Network?</p>
<p><strong>Answer:</strong>
<p><b>Important</b>: For Red Hat Enterprise Linux 4 fully-virtualized guests install the latest version of up2date.</p>
<p>This procedure will work for both fully-virtualized and para-virtualized guests.</p>
<ol>
<li> The host system (dom0) must be registered with Red Hat Network. Follow standard procedures to register this system with Red Hat Network (RHN).</li>
<li> Under the System Properties page, subscribe the base system to the appropriate Virtualization Channel. Virtualization allows for up to 4 Xen guest registrations, while Virtualization Platform allows for an unlimited number of Xen guest registrations.</li>
<li> Make sure that the virtualization add on entitlement is checked &#8220;Add-On Entitlements: Virtualization *(0 open entitlements)*&#8221;. This is available via rhn.redhat.com &#8211;&gt; Systems (Top Red Bar) &#8211;&gt; Click on the host<br />
system &#8211;&gt; Click Edit These Properties &#8211;&gt; Check the add on entitlements<br />
box (Virtualization) &#8211;&gt; Click update properties. If you have Advanced<br />
Platform entitlement you can check the &#8220;Virtualization Platform&#8221; box<br />
instead to be able to register an unlimited number of guests for this host.</p>
<li> Make sure that <tt class="command">rhn-virtualization-common</tt> and <tt class="command">rhn-virtualization-host</tt> are installed on the host system. If they are not installed, run:
<pre class="screen">
yum install rhn-virtualization-common rhn-virtualization-host
</pre>
</li>
<li> Install the Xen guest. </li>
<li> Make sure that the Xen guest is running.  Please note that <tt class="command">xenguest</tt> is the name of the Xen guest.
<pre class="screen">
xm create xenguest
</pre>
</li>
<li> From the command line on the host system, run:
<pre class="screen">
rhn_check
</pre>
</li>
<li> From the command line on the host system, run:
<pre class="screen">
rhn-profile-sync
</pre>
</li>
<li> From the Xen guest, run:
<pre class="screen">
rhn_register
</pre>
</li>
</ol>
<p>Now the Xen guest will show up as a registered, virtualized system.<span id="more-1045"></span></p>
<p class="authorblurb">Red Hat&#8217;s customer service and support teams receive technical support questions from users all over the world. Red Hat technicians add the questions and answers to Red Hat Knowledgebase on a daily basis. Access to <a href="http://kbase.redhat.com/">Red Hat Knowledgebase</a> is free. Red Hat Magazine offers a preview into the Red Hat Knowledgebase by highlighting some of the most recent entries. The information provided in this article is for your information only. The origin of this information may be internal or external to Red Hat. While Red Hat attempts to verify the validity of this information before it is posted, Red Hat makes no express or implied claims to its validity.</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/rhredhatmagazine.wordpress.com/1045/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/rhredhatmagazine.wordpress.com/1045/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/rhredhatmagazine.wordpress.com/1045/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/rhredhatmagazine.wordpress.com/1045/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/rhredhatmagazine.wordpress.com/1045/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/rhredhatmagazine.wordpress.com/1045/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/rhredhatmagazine.wordpress.com/1045/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/rhredhatmagazine.wordpress.com/1045/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/rhredhatmagazine.wordpress.com/1045/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/rhredhatmagazine.wordpress.com/1045/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/rhredhatmagazine.wordpress.com/1045/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/rhredhatmagazine.wordpress.com/1045/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=magazine.redhat.com&blog=5816259&post=1045&subd=rhredhatmagazine&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://magazine.redhat.com/2008/09/11/tips-and-tricks-registering-xen-guests-with-rhn/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">The editorial team</media:title>
		</media:content>
	</item>
		<item>
		<title>Tips and tricks: How to get older kernel versions from Red Hat Network</title>
		<link>http://magazine.redhat.com/2008/09/08/tips-and-tricks-how-to-get-older-kernel-versions-from-red-hat-network/</link>
		<comments>http://magazine.redhat.com/2008/09/08/tips-and-tricks-how-to-get-older-kernel-versions-from-red-hat-network/#comments</comments>
		<pubDate>Mon, 08 Sep 2008 22:39:46 +0000</pubDate>
		<dc:creator>The editorial team</dc:creator>
				<category><![CDATA[tips and tricks]]></category>

		<guid isPermaLink="false">http://www.redhatmagazine.com/2008/09/08/tips-and-tricks-how-to-get-older-kernel-versions-from-red-hat-network/</guid>
		<description><![CDATA[Question: I recently used up2date to get the latest kernel for my Red Hat Enterprise Linux 3 system and now I have found out that I need an older version for my application that needs kernel 2.4.21-x.  How do I download and install a different or an older kernel version then the one I [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=magazine.redhat.com&blog=5816259&post=1041&subd=rhredhatmagazine&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p><strong>Question:</strong> I recently used up2date to get the latest kernel for my Red Hat Enterprise Linux 3 system and now I have found out that I need an older version for my application that needs kernel 2.4.21-x.  How do I download and install a different or an older kernel version then the one I got from Red Hat Network (RHN)?<span id="more-1041"></span></p>
<p><strong>Answer:</strong> Here&#8217;s how to get older kernel versions from <a href="https://rhn.redhat.com/">Red Hat Network</a> (RHN):</p>
<ol>
<li><a href="https://rhn.rdehat.com">Log into RHN.</a></li>
<li> Select the &#8220;Channels&#8221; tab then select the &#8220;Red Hat Enterprise Linux&#8221; channel for your system in the channel name table. [Choose your appropriate channel, Red Hat Enterprise Linux AS, Red Hat Enterprise Linux ES or Red Hat Enterprise Linux WS, the correct version, and the correct architecture.</li>
<li>Select the &#8220;Errata&#8221; link between Details and Packages.</li>
<li>Search for the Kernel Update in the list:
<p>For Red Hat Enterprise Linux version 3:</p>
<ul>
<li><a href="https://rhn.redhat.com/network/errata/details/index.pxt?eid=1863" target="blank">RHBA-2003:308</a> &#8211;  Updated kernel resolves 32-bit address space issue on AMD64<br />
        2003-10-30, on page 1</li>
<li><a href="https://rhn.redhat.com/network/errata/details/index.pxt?eid=1936" target="blank">RHSA-2003:416</a> &#8211; Updated kernel resolves security vulnerability</li>
<li><a href="https://rhn.redhat.com/network/errata/details/index.pxt?eid=1958" target="blank">RHSA-2004:017</a> &#8211; Updated kernel packages available for Red Hat Enterprise Linux 3 Update 1<br />
         2004-01-16, on page 2</li>
<li><a href="https://rhn.redhat.com/network/errata/details/index.pxt?eid=1979" target="blank">RHEA-2003:333</a> &#8211; Updated kernel-utils package includes enhanced irqbalance<br />
         2004-01-16, on page 3</li>
<li><a href="https://rhn.redhat.com/network/errata/details/index.pxt?eid=2018" target="blank">RHSA-2004:066</a> &#8211; Updated kernel packages fix security vulnerability<br />
         2004-02-20, on page 3</li>
<li><a href="https://rhn.redhat.com/network/errata/details/index.pxt?eid=2092" target="blank">RHSA-2004:183</a> &#8211; Updated kernel packages fix security vulnerabilities<br />
         2004-04-22, on page 4</li>
<li><a href="https://rhn.redhat.com/network/errata/details/index.pxt?eid=2102" target="blank">RHSA-2004:188</a> &#8211; Updated kernel packages available for Red Hat Enterprise Linux 3 Update 2<br />
         2004-05-11, on page 4</li>
<li><a href="https://rhn.redhat.com/network/errata/details/index.pxt?eid=2133" target="blank">RHBA-2004:187</a> &#8211; Updated kernel-utils package available<br />
         2004-05-11, on page 6</li>
<li><a href="https://rhn.redhat.com/network/errata/details/index.pxt?eid=2192" target="blank">RHBA-2004:231</a> &#8211; Updated kernel-utils package adds dmidecode for ia64<br />
         2004-05-30, on page 8</li>
<li><a href="https://rhn.redhat.com/network/errata/details/index.pxt?eid=2200" target="blank">RHSA-2004:255</a> &#8211; Updated kernel packages fix security vulnerabilities<br />
         2004-06-17, on page 9</li>
</ul>
</li>
<li>Select your appropriate advisory link:<br />
	<a href="https://rhn.redhat.com/network/errata/details/index.pxt?eid=1863" target="blank">RHBA-2003:308</a>,<br />
	<a href="https://rhn.redhat.com/network/errata/details/index.pxt?eid=1936" target="blank">RHSA-2003:416</a>,<br />
	<a href="https://rhn.redhat.com/network/errata/details/index.pxt?eid=1958" target="blank">RHSA-2004:017</a>,<br />
	<a href="https://rhn.redhat.com/network/errata/details/index.pxt?eid=1979" target="blank">RHEA-2003:333</a>,<br />
	<a href="https://rhn.redhat.com/network/errata/details/index.pxt?eid=2018" target="blank">RHSA-2004:066</a>,<br />
	<a href="https://rhn.redhat.com/network/errata/details/index.pxt?eid=2092" target="blank">RHSA-2004:183</a>,<br />
	<a href="https://rhn.redhat.com/network/errata/details/index.pxt?eid=2133" target="blank">RHBA-2004:187</a>,<br />
	<a href="https://rhn.redhat.com/network/errata/details/index.pxt?eid=2192" target="blank">RHBA-2004:231</a>, or<br />
	<a href="https://rhn.redhat.com/network/errata/details/index.pxt?eid=2200" target="blank">RHSA-2004:255</a>.</p>
</li>
<li>After that, click on the &#8220;Packages&#8221; link between Details and Affected Systems.</li>
<li>You should see a list of all the old kernels.  Select the kernel you need, download the .rpm file, and run <tt CLASS="COMMAND">md5sum</tt> <tt CLASS="USERINPUT">filename</tt>.</li>
<li>You can then install kernel RPM packages with the following command:<br />
<tt CLASS="COMMAND">rpm -ivh<br />
kernel-<i>.</i>.rpm</tt></p>
<p>Example:</p>
<blockquote><p><tt class="COMMAND"><b>
<pre>
# rpm -ivh kernel-2.4.21-4.0.1.EL.i686.rpm
# rpm -ivh kernel-smp-2.4.21-4.0.1.EL.i686.rpm
# rpm -ivh kernel-hugemem-2.4.21-4.0.1.EL.i686.rpm
</pre>
<p></b></tt></p></blockquote>
</li>
</ol>
<p><b>Note:</b> You must reboot your system after the kernel is installed in order to use it.</p>
<p class="authorblurb">Red Hat&#8217;s customer service and support teams receive technical support questions from users all over the world. Red Hat technicians add the questions and answers to Red Hat Knowledgebase on a daily basis. Access to <a href="http://kbase.redhat.com/">Red Hat Knowledgebase</a> is free. Red Hat Magazine offers a preview into the Red Hat Knowledgebase by highlighting some of the most recent entries. The information provided in this article is for your information only. The origin of this information may be internal or external to Red Hat. While Red Hat attempts to verify the validity of this information before it is posted, Red Hat makes no express or implied claims to its validity.</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/rhredhatmagazine.wordpress.com/1041/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/rhredhatmagazine.wordpress.com/1041/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/rhredhatmagazine.wordpress.com/1041/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/rhredhatmagazine.wordpress.com/1041/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/rhredhatmagazine.wordpress.com/1041/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/rhredhatmagazine.wordpress.com/1041/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/rhredhatmagazine.wordpress.com/1041/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/rhredhatmagazine.wordpress.com/1041/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/rhredhatmagazine.wordpress.com/1041/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/rhredhatmagazine.wordpress.com/1041/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/rhredhatmagazine.wordpress.com/1041/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/rhredhatmagazine.wordpress.com/1041/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=magazine.redhat.com&blog=5816259&post=1041&subd=rhredhatmagazine&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://magazine.redhat.com/2008/09/08/tips-and-tricks-how-to-get-older-kernel-versions-from-red-hat-network/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">The editorial team</media:title>
		</media:content>
	</item>
		<item>
		<title>Tips and tricks:  How do I re-enable the rhnsd service?</title>
		<link>http://magazine.redhat.com/2008/09/03/tips-and-tricks-how-do-i-re-enable-the-rhnsd-service/</link>
		<comments>http://magazine.redhat.com/2008/09/03/tips-and-tricks-how-do-i-re-enable-the-rhnsd-service/#comments</comments>
		<pubDate>Wed, 03 Sep 2008 20:09:34 +0000</pubDate>
		<dc:creator>The editorial team</dc:creator>
				<category><![CDATA[tips and tricks]]></category>

		<guid isPermaLink="false">http://www.redhatmagazine.com/2008/09/03/tips-and-tricks-how-do-i-re-enable-the-rhnsd-service/</guid>
		<description><![CDATA[With many Red Hat Enterprise Linux 4 to Red Hat Enterprise Linux 5 upgrades, the rhnsd service was disabled. To re-enable this service, perform the following steps:

# chkconfig --add rhnsd
# chkconfig rhnsd on
# service rhnsd start

       <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=magazine.redhat.com&blog=5816259&post=1038&subd=rhredhatmagazine&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>With many Red Hat Enterprise Linux 4 to Red Hat Enterprise Linux 5 upgrades, the rhnsd service was disabled. To re-enable this service, perform the following steps:</p>
<pre>
# chkconfig --add rhnsd
# chkconfig rhnsd on
# service rhnsd start
</pre>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/rhredhatmagazine.wordpress.com/1038/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/rhredhatmagazine.wordpress.com/1038/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/rhredhatmagazine.wordpress.com/1038/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/rhredhatmagazine.wordpress.com/1038/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/rhredhatmagazine.wordpress.com/1038/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/rhredhatmagazine.wordpress.com/1038/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/rhredhatmagazine.wordpress.com/1038/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/rhredhatmagazine.wordpress.com/1038/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/rhredhatmagazine.wordpress.com/1038/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/rhredhatmagazine.wordpress.com/1038/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/rhredhatmagazine.wordpress.com/1038/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/rhredhatmagazine.wordpress.com/1038/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=magazine.redhat.com&blog=5816259&post=1038&subd=rhredhatmagazine&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://magazine.redhat.com/2008/09/03/tips-and-tricks-how-do-i-re-enable-the-rhnsd-service/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">The editorial team</media:title>
		</media:content>
	</item>
		<item>
		<title>Tips and tricks:  My system won&#8217;t boot from a burned CD</title>
		<link>http://magazine.redhat.com/2008/08/27/tips-and-tricks-my-system-wont-boot-from-a-burned-cd/</link>
		<comments>http://magazine.redhat.com/2008/08/27/tips-and-tricks-my-system-wont-boot-from-a-burned-cd/#comments</comments>
		<pubDate>Wed, 27 Aug 2008 20:48:18 +0000</pubDate>
		<dc:creator>The editorial team</dc:creator>
				<category><![CDATA[tips and tricks]]></category>

		<guid isPermaLink="false">http://www.redhatmagazine.com/2008/08/27/tips-and-tricks-my-system-wont-boot-from-a-burned-cd/</guid>
		<description><![CDATA[Question: After downloading and burning ISO files from Red Hat Network (RHN) why will the system not boot from the first burned CD?
Answer:
First, make sure that you have downloaded the correct files. For each distribution there are binary files and source files. To complete an installation the four binary files for a particular distribution are [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=magazine.redhat.com&blog=5816259&post=1032&subd=rhredhatmagazine&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p><strong>Question:</strong> After downloading and burning ISO files from Red Hat Network (RHN) why will the system not boot from the first burned CD?</p>
<p><strong>Answer:</strong></p>
<p>First, make sure that you have downloaded the correct files. For each distribution there are binary files and source files. To complete an installation the four <em>binary</em> files for a particular distribution are required.</p>
<p>Simply burning these files to CD as <em>files</em> will result in a single file being burnt to CD with a <tt class="COMMAND">.iso</tt> extension. If this occurs your disks will not be bootable. The files available from <a href="https://rhn.redhat.com/" target="blank">Red Hat Network</a> (RHN) are disk images and need to be burned to CD as an <em>image</em>.</p>
<p>Your burning software will extract the files from the <tt class="COMMAND">.iso</tt> and burn them to CD.  See your specific burning software documentation for more information on how to burn images to CD.</p>
<p>To check if you have burned each image correctly, simply examine the contents of the CD. Instead of a single <tt class="COMMAND">.iso</tt> file the disk should contain multiple files and directories.<span id="more-1032"></span></p>
<p class="authorblurb">Red Hat&#8217;s customer service and support teams receive technical support questions from users all over the world. Red Hat technicians add the questions and answers to Red Hat Knowledgebase on a daily basis. Access to <a href="http://kbase.redhat.com/">Red Hat Knowledgebase</a> is free. Red Hat Magazine offers a preview into the Red Hat Knowledgebase by highlighting some of the most recent entries. The information provided in this article is for your information only. The origin of this information may be internal or external to Red Hat. While Red Hat attempts to verify the validity of this information before it is posted, Red Hat makes no express or implied claims to its validity.</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/rhredhatmagazine.wordpress.com/1032/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/rhredhatmagazine.wordpress.com/1032/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/rhredhatmagazine.wordpress.com/1032/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/rhredhatmagazine.wordpress.com/1032/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/rhredhatmagazine.wordpress.com/1032/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/rhredhatmagazine.wordpress.com/1032/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/rhredhatmagazine.wordpress.com/1032/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/rhredhatmagazine.wordpress.com/1032/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/rhredhatmagazine.wordpress.com/1032/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/rhredhatmagazine.wordpress.com/1032/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/rhredhatmagazine.wordpress.com/1032/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/rhredhatmagazine.wordpress.com/1032/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=magazine.redhat.com&blog=5816259&post=1032&subd=rhredhatmagazine&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://magazine.redhat.com/2008/08/27/tips-and-tricks-my-system-wont-boot-from-a-burned-cd/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">The editorial team</media:title>
		</media:content>
	</item>
		<item>
		<title>Tips and tricks:  Alternative to mod_jk?</title>
		<link>http://magazine.redhat.com/2008/08/25/tips-and-tricks-alternative-to-mod_jk/</link>
		<comments>http://magazine.redhat.com/2008/08/25/tips-and-tricks-alternative-to-mod_jk/#comments</comments>
		<pubDate>Mon, 25 Aug 2008 22:27:22 +0000</pubDate>
		<dc:creator>The editorial team</dc:creator>
				<category><![CDATA[tips and tricks]]></category>

		<guid isPermaLink="false">http://www.redhatmagazine.com/2008/08/25/tips-and-tricks-alternative-to-mod_jk/</guid>
		<description><![CDATA[Question: Is there an alternative module to the mod_jk module that is provided in the standard channel for Red Hat&#174; Enterprise Linux&#174; 5?
Answer: The module mod_jk is currently included as part of the Application Stack channel and is not available in the base channel. However in Red Hat Enterprise Linux 5, the package httpd does [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=magazine.redhat.com&blog=5816259&post=1029&subd=rhredhatmagazine&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p><strong>Question:</strong> Is there an alternative module to the mod_jk module that is provided in the standard channel for Red Hat&reg; Enterprise Linux&reg; 5?</p>
<p><strong>Answer:</strong> The module <tt class="command">mod_jk</tt> is currently included as part of the Application Stack channel and is not available in the base channel. However in Red Hat Enterprise Linux 5, the package <tt class="command">httpd</tt> does provide a module by the name <tt class="command">mod_proxy_ajp</tt> which helps connect between the two. The configuration file is located at <tt class="command">/etc/httpd/conf.d/proxy_ajp.conf</tt>. Edit this configuration file according to the needs of the enviroment. At the very least, add i the webapps directory used by tomcat:</p>
<p>&lt;pre class = &#8220;screen&#8221;<br />
&nbsp;&nbsp;&nbsp; &nbsp;ProxyPass /tomcat/ ajp://localhost:8009/<br />
&nbsp;&nbsp;&nbsp; &nbsp;ProxyPass /examples/ ajp://localhost:8009/jsp-examples/
</pre>
<p><span id="more-1029"></span></p>
<p class="authorblurb">Red Hat's customer service and support teams receive technical support questions from users all over the world. Red Hat technicians add the questions and answers to Red Hat Knowledgebase on a daily basis. Access to <a href="http://kbase.redhat.com/">Red Hat Knowledgebase</a> is free. Red Hat Magazine offers a preview into the Red Hat Knowledgebase by highlighting some of the most recent entries. The information provided in this article is for your information only. The origin of this information may be internal or external to Red Hat. While Red Hat attempts to verify the validity of this information before it is posted, Red Hat makes no express or implied claims to its validity.</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/rhredhatmagazine.wordpress.com/1029/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/rhredhatmagazine.wordpress.com/1029/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/rhredhatmagazine.wordpress.com/1029/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/rhredhatmagazine.wordpress.com/1029/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/rhredhatmagazine.wordpress.com/1029/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/rhredhatmagazine.wordpress.com/1029/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/rhredhatmagazine.wordpress.com/1029/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/rhredhatmagazine.wordpress.com/1029/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/rhredhatmagazine.wordpress.com/1029/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/rhredhatmagazine.wordpress.com/1029/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/rhredhatmagazine.wordpress.com/1029/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/rhredhatmagazine.wordpress.com/1029/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=magazine.redhat.com&blog=5816259&post=1029&subd=rhredhatmagazine&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://magazine.redhat.com/2008/08/25/tips-and-tricks-alternative-to-mod_jk/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">The editorial team</media:title>
		</media:content>
	</item>
		<item>
		<title>Tips and tricks: Where is the kernel-source package for Red Hat Enterprise Linux 4?</title>
		<link>http://magazine.redhat.com/2008/08/20/tips-and-tricks-where-is-the-kernel-source-package-for-red-hat-enterprise-linux-4/</link>
		<comments>http://magazine.redhat.com/2008/08/20/tips-and-tricks-where-is-the-kernel-source-package-for-red-hat-enterprise-linux-4/#comments</comments>
		<pubDate>Wed, 20 Aug 2008 23:00:12 +0000</pubDate>
		<dc:creator>The editorial team</dc:creator>
				<category><![CDATA[Red Hat Enterprise Linux]]></category>
		<category><![CDATA[tips and tricks]]></category>

		<guid isPermaLink="false">http://www.redhatmagazine.com/2008/08/20/tips-and-tricks-where-is-the-kernel-source-package-for-red-hat-enterprise-linux-4/</guid>
		<description><![CDATA[Unlike Red Hat Enterprise Linux versions 2.1 and 3, there is no kernel-source package in the Red Hat Enterprise Linux 4 distribution. It was deemed redundant to provide a kernel-source package and a kernel .src.rpm package at the same time. Users that require access to the kernel sources can find them in the kernel.src.rpm file.
In [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=magazine.redhat.com&blog=5816259&post=1027&subd=rhredhatmagazine&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Unlike Red Hat Enterprise Linux versions 2.1 and 3, there is no <tt class="command">kernel-source</tt> package in the Red Hat Enterprise Linux 4 distribution. It was deemed redundant to provide a <tt class="command">kernel-source</tt> package and a <tt class="command">kernel .src.rpm</tt> package at the same time. Users that require access to the kernel sources can find them in the <tt class="command">kernel.src.rpm</tt> file.</p>
<p>In Red Hat Enterprise Linux 4, The kernel-devel package includes the kernel headers files and you no longer require the kernel source package to build a third party kernel module. To install the kernel-devel package run the following command as root user in a terminal:</p>
<pre class="screen">
#up2date kernel-devel
</pre>
<p>A full source tree is <em>not</em> required in order to build modules against the current kernel you are using. You can simply point your <tt class="command">Makefile</tt> to <tt class="command">/lib/modules/`uname -r`/build</tt>. A more detailed explanation can also be found in the <a href="http://www.redhat.com/docs/manuals/enterprise/RHEL-4-Manual/release-notes/as-x86/" target="_new">Release Notes</a>.<span id="more-1027"></span></p>
<p>If you require the kernel source package for reasons other than building a kernel module, you can obtain it in Red Hat Enterprise Linux 4 by typing the following as root user in a terminal:</p>
<pre class="screen">
# up2date redhat-rpm-config rpm-build

# up2date --get-source kernel

# rpm -ivh /var/spool/up2date/kernel*.src.rpm

# cd /usr/src/redhat/SPECS

# rpmbuild -bp --target=i686 kernel-2.6.spec

# cp -a /usr/src/redhat/BUILD/kernel-2.6.9/linux-2.6.9 /usr/src

# ln -s /usr/src/linux-2.6.9 /usr/src/linux
</pre>
<p><strong>Note:</strong> This will build the source tree for a x86 based architecture. For different architectures, (i.e. x86_64) pass the appropriate target variable (i.e. <tt class="command">rpmbuild -bp --target=x86_64 kernel-2.6.spec</tt> )</p>
<p>Once completed, a symlinked directory pointing to the latest Linux 2.6 kernel source should be available:</p>
<pre>
# ls -lt /usr/src
total 28
lrwxrwxrwx   1 root root   12 Mar  2 16:36 linux -&gt; linux-2.6.9/
drwxr-xr-x  20 root root 4096 Mar  2 16:21 linux-2.6.9
</pre>
<p><strong>Note:</strong>The steps are also provided in the Red Hat Enterprise Linux 4 Release Notes: <a href="http://www.redhat.com/docs/manuals/enterprise/RHEL-4-Manual/release-notes/as-x86/">http://www.redhat.com/docs/manuals/enterprise/RHEL-4-Manual/release-notes/as-x86/</a> <!-- http://kbase.redhat.com/faq/FAQ_85_5109.shtm  --></p>
<p class="authorblurb">This information has been provided by Red Hat, but is outside the scope of our posted Service Level Agreements (<a href="https://www.redhat.com/support/service/sla/">https://www.redhat.com/support/service/sla/</a>) and support procedures. The information is provided as-is and any configuration settings or installed applications made from the information in this article could make your operating system unsupported by Red Hat Support Services. The intent of this article is to provide you with information to accomplish your system needs. Use the information in this article at your own risk.</p>
<p class="authorblurb">Red Hat&#8217;s customer service and support teams receive technical support questions from users all over the world. Red Hat technicians add the questions and answers to Red Hat Knowledgebase on a daily basis. Access to <a href="http://kbase.redhat.com/">Red Hat Knowledgebase</a> is free. Red Hat Magazine offers a preview into the Red Hat Knowledgebase by highlighting some of the most recent entries. The information provided in this article is for your information only. The origin of this information may be internal or external to Red Hat. While Red Hat attempts to verify the validity of this information before it is posted, Red Hat makes no express or implied claims to its validity.</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/rhredhatmagazine.wordpress.com/1027/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/rhredhatmagazine.wordpress.com/1027/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/rhredhatmagazine.wordpress.com/1027/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/rhredhatmagazine.wordpress.com/1027/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/rhredhatmagazine.wordpress.com/1027/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/rhredhatmagazine.wordpress.com/1027/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/rhredhatmagazine.wordpress.com/1027/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/rhredhatmagazine.wordpress.com/1027/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/rhredhatmagazine.wordpress.com/1027/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/rhredhatmagazine.wordpress.com/1027/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/rhredhatmagazine.wordpress.com/1027/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/rhredhatmagazine.wordpress.com/1027/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=magazine.redhat.com&blog=5816259&post=1027&subd=rhredhatmagazine&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://magazine.redhat.com/2008/08/20/tips-and-tricks-where-is-the-kernel-source-package-for-red-hat-enterprise-linux-4/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">The editorial team</media:title>
		</media:content>
	</item>
	</channel>
</rss>