<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="lyceum/1.0.2" -->
<!-- This is 512 bytes of nonsense, since the Firefox 2 developers, in one of the strangest decisions ever, decidedthey would obsolete XML styles by overriding them without permission.  Furthermore, the developers appear to be disinterested in fixing this.  Therefore, we use the unofficial workaround, which includes fillingup the first 512 bytes of a document so that the sniffer doesn't encounter the RSS tag.  I really enjoyusing Firefox, but this particular behavior really annoys me! Anyway, since I'm almost at 512 characters, I'mgoing to ramble on for another minute in this comment, and then, without further adue, present you with avalid XML feed. -->
<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/"
	>

<channel>
	<title>Red Hat Magazine</title>
	<link>http://www.redhatmagazine.com</link>
	<description></description>
	<pubDate>Thu, 09 Oct 2008 22:34:50 +0000</pubDate>
	<generator>http://lyceum.ibiblio.org/?v=1.0.2</generator>
	<language>en</language>
			<item>
		<title>Video: Spotlight on Extra Packages for Enterprise Linux (EPEL)</title>
		<link>http://www.redhatmagazine.com/2008/10/09/video-spotlight-on-extra-packages-for-enterprise-linux-epel/</link>
		<comments>http://www.redhatmagazine.com/2008/10/09/video-spotlight-on-extra-packages-for-enterprise-linux-epel/#comments</comments>
		<pubDate>Thu, 09 Oct 2008 22:34:50 +0000</pubDate>
		<dc:creator>the editorial team</dc:creator>
		
		<category>Red Hat Enterprise Linux</category>

		<category>multimedia</category>

		<guid isPermaLink="false">http://www.redhatmagazine.com/2008/10/09/video-spotlight-on-extra-packages-for-enterprise-linux-epel/</guid>
		<description><![CDATA[

Download this video: [Ogg Theora]Video by Islam Elsedoudi.Produced by Kim Jokisch and Jesse Paddock.




We here at Red Hat are pleased to bring you a brand new set of videos aimed at showing off the latest and greatest enhancements in our technologies&#8211;featuring the very people who helped create them in the first place. The &#8220;SPOTLIGHT ON&#8221; [...]]]></description>
			<content:encoded><![CDATA[<div class="alignLeft">
<embed src="http://www.redhat.com/v/swf/flvplayer.swf?file=http://www.redhat.com/v/magazine/swf/0930_EPEL_FINAL.flv&#038;autoStart=false&#038;image=http://www.redhat.com/g/magazine/video_stills/0930_EPEL_FINAL.png" width="320" height="260" quality="high" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed></p>
<div class="caption" >Download this video: [<a href="http://www.redhat.com/v/magazine/ogg/0930_EPEL_FINAL.ogg">Ogg Theora</a>]<br />Video by Islam Elsedoudi.<br />Produced by Kim Jokisch and Jesse Paddock.
</div>
<p><!-- caption --></div>
<p><!-- alignLeft --><br />
<br clear="both" /><br />
We here at Red Hat are pleased to bring you a brand new set of videos aimed at showing off the latest and greatest enhancements in our technologies&#8211;featuring the very people who helped create them in the first place. The &#8220;SPOTLIGHT ON&#8221; series highlights the ways in which collaboration drives innovation by looking at projects that have been improved by community input. In our first installment, we track down Red Hat&#8217;s own Karsten Wade and Stephen Smoogen from the University of New Mexico to talk about Extra Packages for Enterprise Linux (EPEL), the Fedora-sourced repository of add-on packages for Red Hat Enterprise Linux.  They discuss how EPEL is a tool for user-driven innovation that comes from and benefits enterprise customers with more stable code and lower business costs.<br />
<br clear="both" />
</p>
]]></content:encoded>
			<wfw:commentRss>http://www.redhatmagazine.com/2008/10/09/video-spotlight-on-extra-packages-for-enterprise-linux-epel/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Q and A: MRG (Messaging, Real-time, and Grid)</title>
		<link>http://www.redhatmagazine.com/2008/09/02/q-and-a-mrg-messaging-real-time-and-grid/</link>
		<comments>http://www.redhatmagazine.com/2008/09/02/q-and-a-mrg-messaging-real-time-and-grid/#comments</comments>
		<pubDate>Tue, 02 Sep 2008 22:16:57 +0000</pubDate>
		<dc:creator>Bascha Harris</dc:creator>
		
		<category>Red Hat Enterprise Linux</category>

		<guid isPermaLink="false">http://www.redhatmagazine.com/2008/09/03/q-and-a-mrg-messaging-real-time-and-grid/</guid>
		<description><![CDATA[This past winter, Red Hat announced the release of a product called MRG&#8211;a computing platform that features high-speed messaging and allows high-throughput computing, realtime transactions, and workload management.  Not sure what all that means?  We weren&#8217;t either.  So we contacted Bryan Che, the project manager for MRG, to see if we couldn&#8217;t [...]]]></description>
			<content:encoded><![CDATA[<p><em>This past winter, Red Hat announced the release of a product called MRG&#8211;a computing platform that features high-speed messaging and allows high-throughput computing, realtime transactions, and workload management.  Not sure what all that means?  We weren&#8217;t either.  So we contacted Bryan Che, the project manager for MRG, to see if we couldn&#8217;t get a few questions answered.  He obliged, and so we bring you the MRG QandA. Still have questions of your own you want answered?  Comment and let us know&#8230;</em></p>
<div class="question">How did MRG come about as a project/product line?</div>
<p>Red Hat has been working on the technologies behind MRG for quite some time&#8211;each of the components in MRG has had years of development.  For example, Red Hat has been working on realtime technologies in the upstream kernel community for over seven years.  Messaging has had a<br />
similarly lengthy development history.  Condor, the technology behind our grid scheduler, started development in the 1980&#8217;s!</p>
<p>We started work on these technologies because we saw the need for these capabilities, even if we didn&#8217;t know when or how we were going to bring<br />
these technologies to market yet.  For example, messaging is at the heart of enterprise computing.  We had needs for messaging infrastructure at Red Hat&#8211;for building out our own capabilities around things like virtualization management.  Many of Red Hat&#8217;s customers were asking us to provide an open source messaging offering. So, we started working on the AMQP specification and our messaging implementation, even though we didn&#8217;t know it was going to end up in something called &#8220;Red Hat Enterprise MRG&#8221;.<a id="more-1034"></a></p>
<div class="question">Why did Red Hat create the MRG product line? Is it available now?</div>
<p>As we started working with customers and the community around the various technologies in MRG, it became apparent to us that the technologies had reached a point of maturity where we could support our most demanding customers with them.  Also, we saw significant opportunities for building out fundamentally new capabilities by integrating messaging, realtime, and grid into one platform.  And so, MRG was born.</p>
<p>We released MRG v1 at the Red Hat Summit on June 19, 2008.  MRG v1 offers support for messaging and realtime, and grid is in Technology Preview.  We&#8217;ll release a 1.1 update to MRG that will bring grid into full support as well.</p>
<div class="question">Can you give us examples of messaging, realtime, and grid technologies in the enterprise?</div>
<p>JP Morgan Chase, like other investment banks, uses messaging for everything from executing stock trades to providing feeds of market data<br />
to internal data distribution.  </p>
<p>Realtime provides deterministic performance.  The US Navy is deploying realtime in its DDG 1000 naval destroyers.  Realtime is critical in this<br />
environment, because the ships&#8217; computers have to respond precisely without ever pausing, freezing, or getting out of sync with other<br />
events.  Otherwise, the results could be disastrous.  </p>
<p>One of our large manufacturing customers has been working with Red Hat to build an on-demand grid in Amazon&#8217;s EC2 cloud environment for the times it needs access to a grid for calculations.  Because this customer isn&#8217;t able to utilize fully a dedicated grid, having the option to deploy a grid in the cloud provides them significant cost savings and flexibility.</p>
<div class="question">Who is the ideal customer that MRG was designed for? Are there any quotable customers using Red Hat MRG today?</div>
<p>There isn&#8217;t an ideal customer&#8211;ultimately, we think that almost any customer will benefit from MRG.  MRG provides a new platform and solution for many of the most pressing problems that enterprises face today.  We have significant customer interest from many industries. </p>
<p>Having said that, many of our largest customers are MRG early adopters, such as investment banks like JP Morgan Chase, telco companies like<br />
Alcatel Lucent, and multiple agencies in the US Government.  We are also working across oil&#038;gas, animation studios, Internet, shipping, stock exchanges, defense, travel, and so on.</p>
<div class="question">The MRG infrastructure has the potential to be &#8220;100-fold faster.&#8221; What are the old solutions it was measured against? How does it make such whopping gains? Inquiring minds want to know.</div>
<p>MRG takes special advantage of and is highly optimized for Linux to deliver its performance.  Additionally, at Red Hat, we have been driving<br />
changes into Linux itself in order to benefit things like messaging performance.  So, the fact that we are focusing on just one platform and optimizing both that platform and our implementation on that platform gives us tremendous gains (Note: everything we do is open source and contributed back to the community).</p>
<p>For example, we have written a new high performance journal for durable or persistent messaging that is highly tailored to Linux&#8217;s I/O model.<br />
By using this journal, MRG Messaging can achieve throughputs up to about 500,000 durable messages/second/LUN.  This rate is about 100 times<br />
faster than other messaging solutions.  For more details, you can read <a href="http://www.press.redhat.com/2007/12/04/the-pieces-of-mrg/">Carl Trieloff&#8217;s entry</a> in the Red Hat Press blog.</p>
<div class="question">The tagline for the MRG launch was &#8220;Any application. Anywhere. Anytime.&#8221;  Does this include applications from other operating systems? If yes, which operating systems and how soon?</div>
<p>Yes.  For example, we support messaging clients across a wide variety of platforms and languages, from Linux to Solaris to Windows, and from C++ to Java/JMS to scription languages like Python.  On the grid side, we&#8217;ll support scheduling to both Linux and Windows.  And, of course, since we integrate with virtualization, this gives us a lot of flexibility in running on other operating systems.</p>
<div class="question">There is an enormous amount of chatter in the technology industry about &#8220;cloud computing&#8221;&#8211;that is, distributing high-load activities to virtualized, centralized resources that companies may or may not share with others.  (i.e. Amazon&#8217;s Cloud)  Do you believe this is the future for most businesses?  How will MRG help with that future?</div>
<p>We definitely see a lot of interest in cloud computing from customers. MRG integrates with cloud providers like Amazon EC2 so that you can dynamically provision and add capacity in the cloud from your grid scheduler.  This means, for example, that you could have a scenario where you fully utilize your local data center but have additional work you want to compute.</p>
<p>MRG can automatically provision, say, 1000 extra servers for you at EC2, send your work over, get your results back, and tear down the servers when you&#8217;re done&#8211;all automatically.  Some of our other customers are looking at provisioning most or all of their capacity in the cloud because they won&#8217;t utilize a data center fully and want to save on capital expenses.</p>
<p>In either case, one of the powerful features of MRG is that it can blend local capacity with cloud capacity.  This means you don&#8217;t get locked into one cloud provider, and you can grow your infrastructure dynamically in the cloud or in your local data center.</p>
<div class="question">Advanced Message Queuing Protocol (AMQP) seems to be an important standard for bearing data quickly, and its terms indicate that it is an open standard, much like the ODF.  Do you have any concerns about competing standards or high-powered big businesses (like Microsoft) being able to muddy the standard?</div>
<p>One of the significant things about AMQP is that it is the first protocol standard for business messaging.  All other standards, like JMS, aren&#8217;t comprehensive enough and don&#8217;t specify down to the wire level to provide true interoperability and an open ecosystem.  So, I&#8217;m not concerned about competing standards&#8211;there aren&#8217;t really any right now.  That&#8217;s why there is so much interest in AMQP.</p>
<p>I think that most big businesses will understand and appreciate what AMQP has to offer.  Notably, many of the big businesses driving AMQP are not vendors but users. Eventually, if you want to work with these users, you&#8217;re going to have to adopt AMQP.</p>
<div class="question">What part does MRG play in the company&#8217;s full range of offerings&#8211;how does it fit alongside Red Hat Enterprise Linux, Red Hat Network, and JBoss middleware?</div>
<p>MRG is important to all of our offerings&#8211;it&#8217;s pretty strategic and central to many of the things that Red Hat is doing.  MRG adds realtime capabilities to Red Hat Enterprise Linux and enables you to provide flexible scalability and performance for applications running on Red Hat Enterprise Linux.  We&#8217;re working with Red Hat Network so that you can provision and manage MRG with our standard management tools.  MRG Realtime and a realtime JVM from IBM or Sun can provide deterministic performance for JBoss Java applications.  We&#8217;re working with the JBoss team to support MRG Messaging as a messaging transport for the JBoss ESB.  And, many of our core products and technologies are using MRG technology.  IPA and oVirt, for example, are both leveraging our messaging capabilities for distributing data.</p>
<h2>More information</h2>
<ul>
<li>Read more about MRG at the <a href="http://www.press.redhat.com/category/red-hat-enterprise-mrg/">Red Hat Press blog</a>.</li>
<li>See the <a href="http://www.redhat.com/about/news/prarchive/2007/mrg.html">official MRG announcement</a>.</li>
<li>The <a href="http://www.redhat.com/mrg/">official MRG pages</a> on redhat.com.</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.redhatmagazine.com/2008/09/02/q-and-a-mrg-messaging-real-time-and-grid/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Tips and tricks: Where is the kernel-source package for Red Hat Enterprise Linux 4?</title>
		<link>http://www.redhatmagazine.com/2008/08/20/tips-and-tricks-where-is-the-kernel-source-package-for-red-hat-enterprise-linux-4/</link>
		<comments>http://www.redhatmagazine.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>Red Hat Enterprise Linux</category>

		<category>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 [...]]]></description>
			<content:encoded><![CDATA[<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>.<a id="more-1027"></a></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 &#8211;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 -> 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>
]]></content:encoded>
			<wfw:commentRss>http://www.redhatmagazine.com/2008/08/20/tips-and-tricks-where-is-the-kernel-source-package-for-red-hat-enterprise-linux-4/feed/</wfw:commentRss>
		</item>
		<item>
		<title>What&#8217;s next in Red Hat Enterprise Linux (part 2)</title>
		<link>http://www.redhatmagazine.com/2008/07/31/whats-next-in-red-hat-enterprise-linux-part-2/</link>
		<comments>http://www.redhatmagazine.com/2008/07/31/whats-next-in-red-hat-enterprise-linux-part-2/#comments</comments>
		<pubDate>Thu, 31 Jul 2008 21:45:18 +0000</pubDate>
		<dc:creator>Bill Nottingham</dc:creator>
		
		<category>Fedora</category>

		<category>Red Hat Enterprise Linux</category>

		<guid isPermaLink="false">http://www.redhatmagazine.com/2008/07/31/whats-next-in-red-hat-enterprise-linux-part-2/</guid>
		<description><![CDATA[Here&#8217;s the final installment of Bill Nottingham&#8217;s series based on the talk he gave at this year’s Red Hat Summit.  Find out about the latest and greatest Fedora&#8482; developments&#8230; and the future of Red Hat&#174; Enterprise Linux&#174; from this experienced engineer.  Missed the first part?  Catch up in the archives.
Network handling
Another area [...]]]></description>
			<content:encoded><![CDATA[<p><em>Here&#8217;s the final installment of Bill Nottingham&#8217;s series based on the talk he gave at this year’s <a href="http://www.redhat.com/summit/promo/">Red Hat Summit</a>.  Find out about the latest and greatest Fedora&trade; developments&#8230; and the future of Red Hat&reg; Enterprise Linux&reg; from this experienced engineer.  Missed the first part?  <a href="http://www.redhatmagazine.com/2008/07/29/whats-next-in-red-hat-enterprise-linux-part-1/">Catch up</a> in the archives.</em></p>
<h2>Network handling</h2>
<p>Another area that&#8217;s shown a lot of improvement since Enterprise Linux 5 is networking, especially for desktop and laptop computers. In Fedora 9, we&#8217;ve greatly enhanced NetworkManager, and as a result, have switched to NetworkManager by default for all installs. Some of the features we&#8217;ve added to NetworkManager include:</p>
<ul>
<li><strong>MobileBroadband support</strong> - NetworkManager now supports configuring access via GSM and CDMA cards for even greater connectivity options.</li>
<li><strong>System configuration support</strong> - NetworkManager now reads my system configuration , as configured via anaconda or system-config-network. This allows support for things such as static IPs.</li>
<li><strong>Multiple device support</strong> - NetworkManager will automatically connect to both wireless and wired devices simultaneously. This means that if I disconnect the wired device, I&#8217;ll have seamless access through my wireless device, instead of having to wait for it to associate and get an IP address.</li>
<li><strong>Connection editing</strong> - NetworkManager also includes a connection editor. With this, I can easily configure my wireless network, my mobile broadband connection, or even 802.1x for my wired connection.</li>
</ul>
<p><a id="more-993"></a></p>
<p><a href="http://www.flickr.com/photos/redhatmagazine/2714256389/" title="Fig. 10 Network connections by redhatmag, on Flickr"><img src="http://farm4.static.flickr.com/3288/2714256389_a888993388.jpg" width="359" height="500" alt="Fig. 10 Network connections" /></a></p>
<div class="caption">Fig 10. Network connections</div>
<p>From the application side, we&#8217;re working on getting more and more apps tied into the NetworkManager infrastructure so they will automatically adapt to changing networks. For example, Firefox in Fedora 9 will now automatically go into offline mode if the network goes away, and go back online as soon as it returns.</p>
<p>In the future, we&#8217;re looking at extending NetworkManager to support Ipv6, as well as more device types (such as bridging and bonding devices).</p>
<h2>Encrypted devices</h2>
<p>One of the most requested features since  the release of Enterprise Linux 5 is encrypted device support. We support encrypted devices via a technology called LUKS. LUKS, implemented on top of the existing device-mapper cryptography code, standardizes the partition header for the automatic detection of encrypted devices. It also allows for multiple passphrases to decrypt the device. For example, if I insert an encrypted USB stick, the encrypted device is detected via HAL, the GNOME file manager prompts me for the passphrase, and LUKS unlocks the device&#8211;which is then mounted and ready to use.</p>
<p><a href="http://www.flickr.com/photos/redhatmagazine/2714263029/" title="Fig 11. Unlocking an encrypted USB stick by redhatmag, on Flickr"><img src="http://farm4.static.flickr.com/3278/2714263029_4ee326b5be_o.png" width="612" height="284" alt="Fig 11. Unlocking an encrypted USB stick" /></a></p>
<div class="caption">Fig 11. Unlocking an encrypted USB stick</div>
<p>Fedora 9 goes even further: We support encrypting the entire system in the installer if the user desires. Anaconda will prompt for a password for physical devices, and then on boot, you&#8217;ll be  prompted for that password before proceeding.</p>
<p><a href="http://www.flickr.com/photos/redhatmagazine/2714256395/" title="Fig 12. Encrypting the system during installation by redhatmag, on Flickr"><img src="http://farm4.static.flickr.com/3241/2714256395_da5e1d12f5.jpg" width="500" height="386" alt="Fig 12. Encrypting the system during installation" /></a></p>
<div class="caption">Fig 12. Encrypting the system during installation</div>
<h2>Audio handling</h2>
<p>The addition of PulseAudio has greatly improved the audio subsystem in Fedora 9. PulseAudio is a networked sound server, used for mixing and playing audio streams on the system. Now, some of you might remember ESD, and wonder why we need another sound server. Simply put, the power and flexibility provided by PulseAudio is far beyond what ESD ever did.</p>
<p>For example, with PulseAudio I can easily adjust the volume of the audio streams individually. If I&#8217;m listening to music and I get a SIP call via ekiga, I can mute the music.</p>
<p><a href="http://www.flickr.com/photos/redhatmagazine/2714256377/" title="Fig 13. Setting different volumes for different volume streams by redhatmag, on Flickr"><img src="http://farm4.static.flickr.com/3025/2714256377_e5ab909558.jpg" width="500" height="263" alt="Fig 13. Setting different volumes for different volume streams" /></a></p>
<div class="caption">Fig 13. Setting different volumes for different volume streams</div>
<p>PulseAudio abstracts away your hardware devices as well. Say I decide to plug in a USB headset. I can then move any (or all) of my audio streams to that headset, while they&#8217;re playing. If I remove the headset, the audio streams are automatically moved back to the remaining device.</p>
<p><a href="http://www.flickr.com/photos/redhatmagazine/2714256381/" title="Fig 14. Moving audio streams to other devices by redhatmag, on Flickr"><img src="http://farm4.static.flickr.com/3249/2714256381_d0c974ffcc.jpg" width="500" height="263" alt="Fig 14. Moving audio streams to other devices" /></a></p>
<div class="caption">Fig 14. Moving audio streams to other devices</div>
<p>We&#8217;re working to use PulseAudio natively by all the applications shipped in Fedora and Enterprise Linux, and also use PulseAudio&#8217;s network support as a potential means for doing virtualized audio.</p>
<h2>User switching and constrained users</h2>
<p>Say I&#8217;m using my computer. My daughter comes up and says she wants to check her mail. In Fedora, we&#8217;ve made it easy for you to switch between users. When I log in, I see my user name on the panel. If I click there, my session is locked and a new login window will launch. From that window, I can select a different user. When this user logs out, I&#8217;ll automatically be switched back to my session.</p>
<p><a href="http://www.flickr.com/photos/redhatmagazine/2714224731/" title="Fig 15. Switching to another user by redhatmag, on Flickr"><img src="http://farm4.static.flickr.com/3164/2714224731_97cd5733e2.jpg" width="417" height="500" alt="Fig 15. Switching to another user" /></a></p>
<div class="caption">Fig 15. Switching to another user</div>
<p>If you notice, there&#8217;s a &#8216;Guest&#8217; entry in the user list. The simple listing belies what&#8217;s available&#8211;this account is more than just an login named &#8216;guest&#8217;. Through cooperation between the Desktop and the SELinux teams, we&#8217;ve introduced a technology called &#8216;xguest.&#8217; </p>
<p>XGuest is a restricted kiosk-type user. I can log in as the guest user with no password. The guest user is specially confined via SELinux and only certain actions are allowed. For example, the only way to get out on the network is via the browser. Furthermore, on logout, any changes, customizations, or data saved by the guest user is thrown away so the next user will start with a clean slate (and guests can do little permanent damage). For example, I can change the background of the desktop. The next time I log in as the guest user, it will be reset to normal.</p>
<h2>Virtual file systems</h2>
<p>Another feature that was added in Fedora 9 is something called GVFS. GVFS is a userspace-based virtual filesystem. It replaces gnome-vfs in GNOME,  adding many new features.</p>
<p>Let&#8217;s look at an example. One of the backends for GVFS is an archive mounter.  I can enter and examine an archive&#8211;such as an ISO image or a tarball of source code&#8211; via the file manager  by simply right-clicking and choosing &#8216;Open with Archive mounter.&#8217; Once it&#8217;s open, I can navigate and open items with standard GNOME tools. Anything mounted with gvfs will also show up both in the GNOME &#8216;Places&#8217; menu, and in the file chooser.</p>
<p><a href="http://www.flickr.com/photos/redhatmagazine/2714224723/" title="Fig 16. A mounted ISO image and a network mount in Places by redhatmag, on Flickr"><img src="http://farm4.static.flickr.com/3173/2714224723_c0b063853b_o.png" width="435" height="480" alt="Fig 16. A mounted ISO image and a network mount in Places" /></a></p>
<div class="caption">Fig 16. A mounted ISO image and a network mount in Places</div>
<p>GVFS adds a new feature that makes it even more useful. Leveraging the power of FUSE userspace filesystems, anything mounted by GVFS is also exposed to your &#8217;standard&#8217; Linux tools under ~/.gvfs. I can navigate into it with a shell, and read/write files to these locations without actually porting your apps to GVFS. </p>
<p><a href="http://www.flickr.com/photos/redhatmagazine/2715081008/" title="Fig 17. And also, available in the shell by redhatmag, on Flickr"><img src="http://farm4.static.flickr.com/3253/2715081008_d04dde01c3.jpg" width="500" height="344" alt="Fig 17. And also, available in the shell" /></a></p>
<div class="caption">Fig 17. And also, available in the shell</div>
<p>GVFS has back-ends for archive mounting, Samba/CIFS shares, DAV shares, sftp network mounts, OBEX (for talking to your bluetooth phone), and more. In future releases, we plan on extending the backends available for GVFS, and porting more of the desktop stack to use it natively.</p>
<h2>Virtualization</h2>
<p>If you&#8217;ve been around any sort of technical presentation in the past two years, you&#8217;ve certainly heard about virtualization. That&#8217;s another area we&#8217;re working on improving in Fedora, although a lot of that improvement is done under the covers. For example, if I start virt-manager now, it looks much the same as it does under Red Hat Enterprise Linux 5.</p>
<p><a href="http://www.flickr.com/photos/redhatmagazine/2714224745/" title="Fig 18. Virt-manager, running a test domain by redhatmag, on Flickr"><img src="http://farm4.static.flickr.com/3175/2714224745_e8cd99e12a.jpg" width="500" height="375" alt="Fig 18. Virt-manager, running a test domain" /></a></p>
<div class="caption">Fig 18. Virt-manager, running a test domain</div>
<p>However, the virtualization hypervisor has changed from Xen to KVM. KVM offers many benefits over Xen:</p>
<ul>
<li>KVM uses the standard kernel
<p>Xen runs as a hypervisor that requires a modified kernel underneath. Since it runs a (somewhat) non-standard kernel, it can lead to compatibility problems, especially for anything that has to call into, or use, the BIOS. For example, power management has had problems working under Xen, and console redirection and handling was often an interesting exercise., as anyone who&#8217;s used a serial console will tell you. By using the standard kernel, KVM allows full hardware compatibility&#8211;whatever works in the standard kernel, works in your virtualized host.</li>
<li>KVM is in the upstream kernel
<p>KVM has been accepted into the upstream Linux kernel. This is a great step for virtualization, in that it will now always be available, and won&#8217;t need continual porting to newer kernels. As anyone who has followed Fedora knows, attempting to maintain the Xen kernel patchset against the upstream kernel is a large amount of work. Working in the upstream obviates the need for that effort, allowing work to be done on improving the virtualization experience rather than chasing the kernel of the day.</li>
</ul>
<p>But wait, you say&#8230; what about my paravirtualized guests? We&#8217;ve got you covered. Fedora 9 introduces new technology called Xenner. Xenner emulates the Xen hypervisor interface as a thin layer on top of KVM.</p>
<p><a href="http://www.flickr.com/photos/redhatmagazine/2714224751/" title="Fig 19. Running a Xen guest under KVM by redhatmag, on Flickr"><img src="http://farm4.static.flickr.com/3184/2714224751_4ffdf12bde.jpg" width="500" height="376" alt="Fig 19. Running a Xen guest under KVM" /></a></p>
<div class="caption">Fig 19. Running a Xen guest under KVM</div>
<p>This shows the power of our virtualization strategy&#8211;by abstracting the interfaces away via tools like libvirt and virt-manager, we can change out the virtualization hypervisor, yet still present the same interface to the user and administrator, and run the same guests.</p>
<h2>And more&#8230;</h2>
<p>There&#8217;s even more where this comes from&#8211;new versions of Firefox, new firewire stacks, and more. If you want to know what&#8217;s down the road for Red Hat Enterprise Linux, check out <a href="http://fedoraproject.org/get-fedora">Fedora 9</a>&#8211; that&#8217;s where the innovation happens.</p>
<h2>About the author</h2>
<p>Bill Nottingham is an engineer at Red Hat, where he&#8217;s worked on Red Hat Linux, Red Hat Enterprise Linux, and Fedora for the past ten years. (yipes!) He currently serves on the Fedora Project Board and the Fedora Engineering Steering Committee, and maintains a variety of packages in Fedora.
</p>
]]></content:encoded>
			<wfw:commentRss>http://www.redhatmagazine.com/2008/07/31/whats-next-in-red-hat-enterprise-linux-part-2/feed/</wfw:commentRss>
		</item>
		<item>
		<title>What&#8217;s next in Red Hat Enterprise Linux (part 1)</title>
		<link>http://www.redhatmagazine.com/2008/07/29/whats-next-in-red-hat-enterprise-linux-part-1/</link>
		<comments>http://www.redhatmagazine.com/2008/07/29/whats-next-in-red-hat-enterprise-linux-part-1/#comments</comments>
		<pubDate>Tue, 29 Jul 2008 22:22:53 +0000</pubDate>
		<dc:creator>Bill Nottingham</dc:creator>
		
		<category>Fedora</category>

		<category>Red Hat Enterprise Linux</category>

		<guid isPermaLink="false">http://www.redhatmagazine.com/2008/07/29/whats-next-in-red-hat-enterprise-linux-part-1/</guid>
		<description><![CDATA[This is the first in a two-part series from Summit presenter and Red Hat/Fedora engineer Bill Nottingham. It is based on the talk he gave at this year&#8217;s Red Hat Summit.  Part two will be published later this week.
One of the most-asked questions in the software world is:

&#8220;What&#8217;s coming in the next release?&#8221;

Red Hat&#174; [...]]]></description>
			<content:encoded><![CDATA[<p><em>This is the first in a two-part series from Summit presenter and Red Hat/Fedora engineer Bill Nottingham. It is based on the talk he gave at this year&#8217;s <a href="http://www.redhat.com/promo/summit/">Red Hat Summit</a>.  Part two will be published later this week.</em></p>
<p>One of the most-asked questions in the software world is:</p>
<blockquote><p>
&#8220;What&#8217;s coming in the next release?&#8221;
</p></blockquote>
<p>Red Hat&reg; Enterprise Linux&reg; is no different. You can wait for the beta, and pore over the release notes and the package changelogs. You can corner a product manager at the right moment. But the easiest and best way to get the scoop on what&#8217;s coming up in future Red Hat Enterprise Linux releases? Take a look at Fedora.</p>
<p><a href="http://fedoraproject.org/">Fedora</a>, for those that don&#8217;t know, is a freely available and distributable Linux-based operating system that showcases the latest in free and open-source software. It&#8217;s developed globally within the Fedora project community, and is where Red Hat innovates. Read on as we describe some of the innovations in Fedora that will be headed for future Enterprise Linux releases.<a id="more-990"></a></p>
<h2>Handling of displays</h2>
<p>Have you ever tried to configure a projector on your Linux box? How much swearing was involved?</p>
<p><a href="http://www.flickr.com/photos/redhatmagazine/2714263035/" title="Fig 1. Configuring secondary displays by redhatmag, on Flickr"><img src="http://farm4.static.flickr.com/3087/2714263035_9fef6dc0f6.jpg" width="500" height="426" alt="Fig 1. Configuring secondary displays" /></a></p>
<div class="caption">Fig 1. Configuring secondary displays</div>
<p>On Red Hat Enterprise Linux 5, configuring a projector can be complicated.  It might involve editing your Xorg configuration file to add archaic configuration directives, and then restarting your session, losing anything you have open. </p>
<p>Fedora improves on this with the introduction of the new XRandr extension. XRandR stands for X Resize and Rotate, and it&#8217;s a mechanism for dynamically changing the screen&#8217;s resolution and orientation at runtime. What&#8217;s more, it includes support for dynamically changing the attached displays at runtime. So all you need to do is attach your projector, open up the Screen Resolution utility in the Hardware Preferences menu, and you&#8217;re ready to go. You can configure the displays to be mirror images, or arrange them in any configuration you like.</p>
<h2>Package management</h2>
<p>If you&#8217;ve used Fedora lately, you may have noticed the &#8216;bug&#8217; icon in the notification area. This is part of PackageKit, a new distribution-neutral package management system that abstracts away the machine&#8217;s packaging system (in our case, yum and RPM) to provide a simple, usable, interface for the user. </p>
<p>PackageKit is implemented in a client-server fashion&#8211;all the package installations and removals are done in a privileged backend, while the user interface code runs unprivileged, and talks to the backend over d-bus. Fedora (and later Enterprise Linux) uses a yum backend for PackageKit; other backends (for Debian or Ubuntu packages, for example) also exist.</p>
<p><a href="http://www.flickr.com/photos/redhatmagazine/2714263039/" title="Fig 2. Hm, I should update more often. by redhatmag, on Flickr"><img src="http://farm4.static.flickr.com/3036/2714263039_d01b079851.jpg" width="500" height="285" alt="Fig 2. Hm, I should update more often." /></a></p>
<div class="caption">Fig 2. Hm, I should update more often</div>
<p>If I click on the applet, I can easily review what updates are available, and which bugs each update will fix. I can then choose the ones I want and apply them.</p>
<p><a href="http://www.flickr.com/photos/redhatmagazine/2714224739/" title="Fig 3. Examining a security update by redhatmag, on Flickr"><img src="http://farm4.static.flickr.com/3144/2714224739_3825637e63.jpg" width="500" height="357" alt="Fig 3. Examining a security update" /></a></p>
<div class="caption">Fig 3. Examining a security update</div>
<p>Not only will PackageKit notify me when updates are available, but it can be configured to automatically install updates. This is especially useful for security updates.</p>
<p>PackageKit also comes with a general software installation tool. With it, I can browse the software on my system, and pick out packages to install. Once I select a package, I can check which files are included, what the package depends on (or what depends on it), and even visit the package&#8217;s homepage for more information.</p>
<p><a href="http://www.flickr.com/photos/redhatmagazine/2715081144/" title="Fig 4. How about a nice game of chess? by redhatmag, on Flickr"><img src="http://farm4.static.flickr.com/3003/2715081144_5858da5da6.jpg" width="500" height="326" alt="Fig 4. How about a nice game of chess?" /></a></p>
<div class="caption">Fig 4. How about a nice game of chess?</div>
<p>In the future, we&#8217;re working on refining and cleaning up the PackageKit UI, and extending its use. New features might include automatically finding available codecs needed for multimedia files, or finding and installing office software like OpenOffice when you&#8217;re sent an office document. For more information on PackageKit, see the <a href="http://packagekit.org/">PackageKit website</a>.</p>
<h2>Privileged apps for non-privileged users</h2>
<p>In Red Hat Enterprise Linux, you may be familiar with this dialog:</p>
<p><a href="http://www.flickr.com/photos/redhatmagazine/2714256383/" title="Fig 5. Boring old authentication dialog by redhatmag, on Flickr"><img src="http://farm4.static.flickr.com/3197/2714256383_e22eb7d6fc.jpg" width="500" height="253" alt="Fig 5. Boring old authentication dialog" /></a></p>
<div class="caption">Fig 5. Boring old authentication dialog</div>
<p>This dialog is part of userhelper, a graphical authentication system. However, it&#8217;s a system that has various issues:</p>
<ul>
<li>It&#8217;s rather inflexible
<ul>
<li>The only configurations available are root or user password</li>
<li>It cannot be reconfigured so that only certain users or groups are authorized</li>
</ul>
</li>
<li>Once they are authorized, any commands run as root
<ul>
<li>This is obviously bad. One of the fundamental tenets of computer security is to limit the amount of code running with elevated privileges. For some of the apps launched by userhelper, the code running as root can include entire graphical toolkits.</li>
</ul>
</li>
</ul>
<p>In Fedora 9, we set out to solve this with PolicyKit. PolicyKit is a framework for defining system policy to allow unprivileged apps (such as end-user UIs) to talk to privileged code (such as application installers, or configuration systems). </p>
<p>Let&#8217;s look at an example. If I right-click on the clock applet, I see the option to &#8216;Adjust Date and Time.&#8217; If I choose that, and adjust the time, I see a PolicyKit authorization dialog. Once I enter the proper authorization, PolicyKit then invokes the privileged backend with the necessary data, and sets the clock. This was all done without running any part of the clock applet as root.</p>
<p><a href="http://www.flickr.com/photos/redhatmagazine/2714224735/" title="Fig 6. Setting the time using PolicyKit by redhatmag, on Flickr"><img src="http://farm4.static.flickr.com/3072/2714224735_f77ea04c46.jpg" width="465" height="500" alt="Fig 6. Setting the time using PolicyKit" /></a></p>
<div class="caption">Fig 6. Setting the time using PolicyKit</div>
<p>Now, to the user, the interface is much the same as before. For the administrator, however, PolicyKit opens up a wealth of new possibilities. This can be seen in the &#8216;Authorizations&#8217; tool in the System Preferences menu. If I choose &#8216;Setting the system time&#8217;, we can see the authorization I just used. I can edit it, or add new authorizations for other users. I can even add implicit authorizations&#8211;for example, I could set it so that any user in an active console session can reset the clock. </p>
<p>Of course, to edit these also requires authorization via PolicyKit. And the package update we did earlier? That was authenticated via PolicyKit, too.</p>
<p><a href="http://www.flickr.com/photos/redhatmagazine/2714263023/" title="Fig 7. Viewing authorizations by redhatmag, on Flickr"><img src="http://farm4.static.flickr.com/3036/2714263023_a1fbfb8f03.jpg" width="500" height="401" alt="Fig 7. Viewing authorizations" /></a></p>
<div class="caption">Fig 7. Viewing authorizations </div>
<p><a href="http://www.flickr.com/photos/redhatmagazine/2714256385/" title="Fig 8. Granting a new authorization by redhatmag, on Flickr"><img src="http://farm4.static.flickr.com/3205/2714256385_e0850b7839.jpg" width="500" height="468" alt="Fig 8. Granting a new authorization" /></a></p>
<div class="caption">Fig 8. Granting a new authorization</div>
<p>In Fedora 9, we have a limited number of tools authorizing via PolicyKit, but in future releases, we intend to expand this across the OS. For more information on PolicyKit, see the <a href="http://hal.freedesktop.org/docs/PolicyKit/">PolicyKit reference manual</a> or <a href="http://people.freedesktop.org/~david/talks/gnome-conf-au-polkit-davidz-jan-2008.pdf">David Zeuthen&#8217;s LCA talk</a> (PDF).</p>
<h2>Power management</h2>
<p>Another issue we&#8217;ve been working on is power management. A <a href="http://www.networkworld.com/research/2008/060908-green-windows-linux.html">recent article in NetworkWorld</a> showed that Red Hat Enterprise Linux 5 used as much as 12% less power than Microsoft&reg; Windows&reg; on identical hardware. But we didn&#8217;t stop there&#8211;we&#8217;ve made it even better in Fedora.</p>
<p>The first improvement is the tickless kernel. One of the best ways to save power is to keep the CPU as idle as possible. In older kernels like the one used by Enterprise Linux, there is a timer that ticks a certain number of times per second. When that timer fires, the kernel looks around to see if there&#8217;s anything to do. Generally, this timer runs anywhere from 100 to 1000 times per second. Obviously, the kernel waking up that often isn&#8217;t very conducive to staying idle. With the recently-introduced tickless kernel, it only wakes up if prompted by something that needs attention.</p>
<p>Obviously, that won&#8217;t help you if you have lots of kernel threads or userspace apps that are keeping the kernel busy. To combat this, we worked with a userspace tool called &#8216;powertop,&#8217; originally written by Intel. Powertop tracks the number of kernel wake-ups, and associates them with hardware devices, kernel threads, or userspace programs.</p>
<p><a href="http://www.flickr.com/photos/redhatmagazine/2714267575/" title="Fig 9. Viewing power usage and wakeups--woo, only 14 watts! by redhatmag, on Flickr"><img src="http://farm4.static.flickr.com/3253/2714267575_4126284ddd.jpg" width="500" height="344" alt="Fig 9. Viewing power usage and wakeups--woo, only 14 watts!" /></a></p>
<div class="caption">Fig 9. Viewing power usage and wakeups&#8211;woo, only 14 watts!</div>
<p>Since powertop was introduced in Fedora, we&#8217;ve been constantly running it looking for misbehaving applications. Some examples:</p>
<ul>
<li>pidgin would ask the X server if it supported the XScreenSaver extension every five seconds&#8230; even though the answer would never change</li>
<li>ntp would wake up more than once per second to do work</li>
<li>media players would send silence to the sound card after playback was stopped, keeping the sound card active</li>
</ul>
<p>There have been many more discoveries&#8211;like apps that poll much too frequently for changes or kernel drivers that are too busy. We&#8217;ve been working on fixing these,  and and so far we&#8217;vemoved from Enterprise Linux 5 having over 1500 wake-ups per second and consuming over 18W when idle (without wireless) to about 50 wake-ups per second, consuming less than 16W.</p>
<p>Further work to reduce power consumption is being done. For laptops, there are things like backlight control for the LCDs, and X tricks that compress the framebuffer so it takes less juice to refresh the display. But it&#8217;s not just laptops&#8211;reducing the number of wake-ups and decreasing other unnecessary power usage is just as useful in the datacenter. Less power usage means less heat generated and less cooling needed, lowering energy bills all around.</p>
<h2>About the author</h2>
<p>Bill Nottingham is an engineer at Red Hat, where he&#8217;s worked on Red Hat Linux, Red Hat Enterprise Linux, and Fedora for the past ten years. (yipes!) He currently serves on the Fedora Project Board and the Fedora Engineering Steering Committe, and maintains a variety of packages in Fedora.
</p>
]]></content:encoded>
			<wfw:commentRss>http://www.redhatmagazine.com/2008/07/29/whats-next-in-red-hat-enterprise-linux-part-1/feed/</wfw:commentRss>
		</item>
		<item>
		<title>NetworkManager: Secret weapon for the Linux road warrior</title>
		<link>http://www.redhatmagazine.com/2008/07/22/networkmanager-secret-weapon-for-the-linux-road-warrior/</link>
		<comments>http://www.redhatmagazine.com/2008/07/22/networkmanager-secret-weapon-for-the-linux-road-warrior/#comments</comments>
		<pubDate>Tue, 22 Jul 2008 22:21:19 +0000</pubDate>
		<dc:creator>Kyle Gonzales</dc:creator>
		
		<category>Fedora</category>

		<category>Red Hat Enterprise Linux</category>

		<category>technical</category>

		<guid isPermaLink="false">http://www.redhatmagazine.com/2008/07/22/networkmanager-secret-weapon-for-the-linux-road-warrior/</guid>
		<description><![CDATA[For years I have envied how easy my Windows- and Mac-based peers had it when traveling with their laptops.  They connect to hotspots with ease, get online while I was still logging into root and running some tools.  It just wasn&#8217;t fair.  I wanted an integrated easy-to-use tool that did not require [...]]]></description>
			<content:encoded><![CDATA[<p>For years I have envied how easy my Windows- and Mac-based peers had it when traveling with their laptops.  They connect to hotspots with ease, get online while I was still logging into root and running some tools.  It just wasn&#8217;t fair.  I wanted an integrated easy-to-use tool that did not require bringing up a shell or logging into root.  </p>
<p>I now have that tool in NetworkManager.  In this article I will explain what NetworkManager is, what capabilities exist in the tool (in both Fedora and Red Hat Enterprise Linux), and what you can do to extend it to give you more control over your system than before.</p>
<h2>What is NetworkManager?</h2>
<p>NetworkManager is a software utility that allows a desktop user to manage wired, wireless, modem, WWAN/3G, and VPN network connectivity from a single source. It does not require root access or manual editing of configuration files.  </p>
<p>NetworkManager started as a Gnome project and initially appeared in Fedora. It is now supported on multiple desktop environments (Gnome, KDE, Xfce, etc.) and in multiple distributions (Fedora, SuSE, Ubuntu, Gentoo, Debian, etc.).  NetworkManager uses dbus and hal to provide network status updates to other desktop applications, allowing them to alter their operation based on this information.  For instance, if NetworkManager shows the network is offline, then apps like Evolution and Pidgin will put themselves into offline mode andwait for the network to come online.<a id="more-981"></a></p>
<h2>How is the NetworkManager software deployed on the system?</h2>
<p>NetworkManager is deployed in two parts.  The first part is the NetworkManager daemon, which is found in the package NetworkManager.  This daemon should be set to start while the system is booting.  This can be accomplished by entering the following command as root:</p>
<pre>
    # /sbin/chkconfig NetworkManager on
</pre>
<p>You can also start NetworkManager manually by entering the following command as root:</p>
<pre>
    # /sbin/service NetworkManager start
</pre>
<p>The second part is the user client, which normally takes the form of an applet.  This applet (nm-applet) can be found in the NetworkManager-gnome package, and should be part of the basic Gnome desktop installation.  You will not need to add this applet to your desktop.  Gnome will add the nm-applet control to the Notification Area applet when the NetworkManager daemon is active.</p>
<h2>How does NetworkManager work?</h2>
<p>For the user, most everything will be done via the NetworkManager applet.  Exactly what needs to be done depends on the type of networking the user needs to activate.</p>
<h3>Wired network</h3>
<p>If the system the user is logged into is on a wired network (Ethernet), the user does not need to do anything.  NetworkManager will look for the link on the network port.  When the link is active, it will bring up the interface and then ask for network information via DHCP.</p>
<h3>Wireless Network</h3>
<p>If the user is trying to connect via wireless, NetworkManager is especially helpful.  As long as the wireless device is active, NetworkManager will scan for available networks and will attempt to connect to the last network you connected to that it can see.  If the network it is trying to connect to is a secure network (using WEP, WPA, WPA2, or LEAP) it will request the appropriate security information.  Once the information is entered, NetworkManager will try to store this information into the GNOME keyring manager.</p>
<p>To connect to a different network than the one that NetworkManager chooses, simply click on the applet and choose a different wireless network.</p>
<p><a href="http://www.flickr.com/photos/redhatmagazine/2693123353/" title="NM-Wireless by redhatmag, on Flickr"><img src="http://farm4.static.flickr.com/3272/2693123353_311e143803_o.png" width="398" height="430" alt="NM-Wireless" /></a></p>
<h3>WWAN network (3G/EVDO/HSDPA/RTTx1/EDGE)</h3>
<p>With the release of NetworkManager 0.70, users can now choose WWAN networking.  Most of these cards require activation in Windows, but NetworkManager can handle the auto-configuration some cards need for use under Linux.  Other cards may still require some minimal account information to activate and use.  </p>
<p>If the card is plugged in when NetworkManager starts, it will be autodetected and an attempt to auto-configure the card will be made when you request a connection to the network.  If auto-configuration is successful, the user can then just select the card in the applet menu and connect.</p>
<p><a href="http://www.flickr.com/photos/redhatmagazine/2693937432/" title="NM-CDMA by redhatmag, on Flickr"><img src="http://farm4.static.flickr.com/3151/2693937432_99df6a5ed0_o.png" width="398" height="301" alt="NM-CDMA" /></a></p>
<h3>VPN connectivity</h3>
<p>Once a successful network connection has been made, the user can also use NetworkManager to activate a VPN connection.  Currently, there are modules providing support for OpenVPN and Cisco (via vpnc) VPN connectivity.  </p>
<p>The VPN connection will be configured, activated, and deactivated via the applet.  Username, password, group passwords, and other information can be stored in the GNOME keyring manager, or the user can choose to be prompted to enter some—or all—of the information at each login.</p>
<h2>What else can NetworkManager do?</h2>
<p>Beside managing your network connectivity, NetworkManager has another key feature. NetworkManager can run scripts when there is a network state change on any interface, using the network interface and the up/down state as variables. In prior releases, this functionality was provided by a separate daemon called NetworkManagerDispatcher. As of NetworkManager 0.70 in Fedora 9, this functionality is now integrated into NetworkManager itself.</p>
<p>In Bash scripts written for NetworkManager, the variable <code>$1</code> equals the interface whose state has changed and triggered the script. Variable <code>$2</code> equals the state of the interface (up or down). No other variables are needed.</p>
<p>Let&#8217;s take a look at one of the scripts that is included with Fedora 9:</p>
<pre>
# cat /etc/NetworkManager/dispatcher.d/05-netfs

#!/bin/sh

export LC_ALL=C

if [ "$2" = "down" ]; then
        /sbin/ip route ls | grep -q ^default || {
                [ -f /var/lock/subsys/netfs ] &#038;&#038; /etc/rc.d/init.d/netfs stop
        }
fi

if [ "$2" = "up" ]; then
        /sbin/ip -o route show dev "$1" | grep -q '^default' &#038;&#038; {
                /sbin/chkconfig netfs &#038;&#038; /etc/rc.d/init.d/netfs start
        }
fi
</pre>
<p>When an interface comes up and adds itself as the default route, the script starts the netfs service. This script also stops the netfs service when an interface goes down and no default route remains.  Effectively, this will mount your NFS and CIFS shares when you have access to the network, and will unmount those same shares when the network goes down.  Using this script as an example, you can easily write your own scripts to run various commands as the network state changes.</p>
<h2>How can I best use NetworkManager in the field?</h2>
<p>Now that you have a good idea of how NetworkManager works and what it can do, let&#8217;s talk about how to best use NetworkManager in the field. Now that you have NetworkManager managing your network connectivity, make sure your network interfaces are not trying to start on boot. Nothing is more annoying than having your laptop tell you that your wired network is not available when you are sitting on a plane.  If you are using NetworkManager 0.70 (currently in Fedora 9), you should also disable the network service itself, as it may conflict with NetworkManager.</p>
<p>You can go further, writing NetworkManager scripts to activate various services only when they are needed. Many of the init scripts in Linux make the assumption that your system is a server or a workstation with continuous access to the network. Things like ntp, cups, sshd, even rhnsd do not need to be running while you have no network connectivity. These services can be disabled, set to run only when NetworkManager starts them via a custom script on a network state change. </p>
<p>Using the previously posted script as a guide, a script to manage sshd might look like this:</p>
<pre>
# cat /etc/NetworkManager/dispatcher.d/10-sshd

#!/bin/sh
#
# Start and stop sshd based on network availability using NetworkManager
#

export LC_ALL=C

if [ "$2" = "down" ]; then
        /sbin/ip route ls | grep -q ^default || {
                [ -f /var/lock/subsys/sshd ] &#038;&#038; /etc/rc.d/init.d/sshd stop
        }
fi

if [ "$2" = "up" ]; then
        /sbin/ip -o route show dev "$1" | grep -q '^default' &#038;&#038; {
                /sbin/chkconfig sshd &#038;&#038; /etc/rc.d/init.d/sshd start
        }
fi
</pre>
<p>You could substitute &#8220;rhnsd&#8221; or &#8220;cups&#8221; for &#8220;sshd&#8221;, and the script should work equally well for those tasks..</p>
<p>If you are a administrator tasked with managing Red Hat or Fedora systems of remote employees, the scripting functionality can be even more handy. You can write a script that looks for the activation of the VPN interface then sends an email letting you know the system is online. You could have the system check in with a Satellite server located within your firewall, installing updates you previously scheduled for it. The possible uses here are many.</p>
<h2>The student is now the master</h2>
<p>No longer do I envy my Windows-based peers and their easy  mobile connectivity. NetworkManager is constantly impressing me, adding functionality and allowing me to be more efficient on the road. This Swiss Army knife of Linux networking gives me the control I need over my connectivity whether at home, coffee house, or airport. Now that you know what NetworkManager is, how it works, and how best to use it, try it out of your own system. I trust you will find NetworkManager works as well for you as it did for me.</p>
<h2>More information</h2>
<ol>
<li><a href="http://www.gnome.org/projects/NetworkManager">NetworkManager main project page</a></li>
<li><a href="http://fedoraproject.org/wiki/Tools/NetworkManager">NetworkManager in Fedora</a></li>
<li><a href="http://www.freedesktop.org/wiki/Software/dbus">dbus</a> and <a href="http://www.freedesktop.org/wiki/Software/hal<br />
">hal</a></li>
<li><a href="http://en.opensuse.org/Projects/KNetworkManager">KNetworkManager</a></li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://www.redhatmagazine.com/2008/07/22/networkmanager-secret-weapon-for-the-linux-road-warrior/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Open source systems management: Two conferences, two talks</title>
		<link>http://www.redhatmagazine.com/2008/07/08/open-source-systems-management-two-conferences-two-talks/</link>
		<comments>http://www.redhatmagazine.com/2008/07/08/open-source-systems-management-two-conferences-two-talks/#comments</comments>
		<pubDate>Tue, 08 Jul 2008 19:37:27 +0000</pubDate>
		<dc:creator>Michael DeHaan</dc:creator>
		
		<category>Fedora</category>

		<category>Red Hat Enterprise Linux</category>

		<category>events</category>

		<guid isPermaLink="false">http://www.redhatmagazine.com/2008/07/08/open-source-systems-management-two-conferences-two-talks/</guid>
		<description><![CDATA[I had the privilege of giving not one but two talks at the Red Hat Summit&#8211;both about open source systems management topics.   A good deal of this content was also shared with a different audience at FudCON&#8211;the Fedora Users and Developers Conference.  This was a great trip to Boston, and a fantastic [...]]]></description>
			<content:encoded><![CDATA[<p>I had the privilege of giving not one but two talks at the Red Hat Summit&#8211;both about open source systems management topics.   A good deal of this content was also shared with a different audience at FudCON&#8211;the Fedora Users and Developers Conference.  This was a great trip to Boston, and a fantastic chance to talk with users, administrators, and developers of all types.</p>
<p>The first talk I had a part in was <a href="http://www.redhatmagazine.com/2008/02/21/open-source-project-func-the-fedora-unified-network-controller/">Func</a>, which I co-presented with Adrian Likins. Func, as mentioned before in Red Hat Magazine, is an API for controlling lots of nodes for arbitrary systems management tasks. It is ideally suited for replacing legacy SSH infrastructure as well as building new network applications that require secure network communications infrastructure.</p>
<p>We gave an overview for folks that hadn&#8217;t heard of Func before, and showed off several examples of things you can do with the Python API. Interest in Func is growing, and lots of folks are using it in ways we hadn&#8217;t originally intended (which is, of course, the idea).<a id="more-961"></a>  </p>
<p>One such application that surprised us was <a href="http://opensymbolic.org">Open Symbolic</a>, which aims to be a user-friendly systems management application written on Func.   Additionally, some of our own IT folks have written a very lightweight “cloud” type management application using Func, which you should hear more about shortly. At the conclusion of that talk there were some very good questions about how things work, and also some interest in future expansions (with hopefully some patches coming down the pipe).</p>
<p>My second talk was about <a href="http://www.redhatmagazine.com/2007/08/10/cobbler-how-to-set-up-a-network-boot-server-in-10-minutes/">Cobbler</a>, our next-generation installation server. I was very pleased to see Cobbler&#8217;s talk was standing-room only, showing that there is a lot of need for good tools to help streamline Linux installations and low-level datacenter setup tasks. Again, there were a tremendously good set of questions asked, and the community is already getting a lot larger with people trying out Cobbler after hearing about it at Summit.  I&#8217;m happy to see that.   </p>
<p>The current idea behind Cobbler is to build a common installation service that various applications can use to deploy Linux (more on this below)rather than having to keep creating these components.   I&#8217;ll also be extending it to deal with image-based deployments in addition to traditional kickstart deployments.  </p>
<p>As always, we&#8217;ll continue to gather a large community of sysadmins to work together and build common tooling we can all share.  The basic premise is that by working together, we can build tools that are more powerful than the tools we could build alone. By following an open development model with shared tools, the need to reinvent the same wheels to do the same tasks goes away.   </p>
<p>We&#8217;re also building a large set of community documentation based on deployment best practices and tricks, and I hope to roll this into a nice openly licensed manual and deployment guide later this year.   Open community, open code, open docs &#8212; neat!</p>
<p>And while all of this is nice, the most exciting part of Summit was the announcement about <a href="http://spacewalk.redhat.com">Spacewalk</a>.   Spacewalk is the project name for the open-sourcing of Red Hat Satellite Server.    This is not a “community edition”, it&#8217;s everything. The upstream for all code in the project is going to <a href="http://fedorahosted.org/spacewalk">the website</a>, and we&#8217;re already seeing a lot of interest from existing Satellite customers and prospective users. We had a lot of great discussion at FudCON about places the project might go, and there have already been several non-Red Hat patches made against the codebase. </p>
<p>We also announced that Satellite will be using Cobbler to provide advanced deployment support next year, so we can already see the advantages of getting these tools to work together.   Planned work includes adding open source database alternatives and improving our support for Fedora and derivative distributions.   </p>
<p>In the future, Func may have a place  in Spacewalk as well. We can also look at incorporating other proven open source management applications, tools, and libraries.   Everyone is encouraged to join the Spacewalk mailing lists or IRC channels (#spacewalk on irc.freenode.net) if they are interested in learning more or have ideas/questions.</p>
<p>These three applications, in general, constitute a new way of thinking.  Namely, how can we apply the Fedora Development model towards enterprise management applications and sysadmin-level tools and processes?  </p>
<p>Rather than buy tooling from a vendor or inventing internal frameworks that disappear when one changes jobs or departments, what can we share and openly build together and re-use? While we use the Fedora model to produce a community-driven distribution, we&#8217;re now also using it to produce better ways to manage Enterprise Linux. This development model applies just as equally to Enterprise Linux as it does Fedora. It just works.</p>
<p>As Paul Frields (the Fedora Project Leader) indicated at FudCON, the future of Fedora (and in turn, Fedora Hosted Projects and Extras Packages for Enterprise Linux (EPEL)) is about lowering barriers to entry and encouraging collaboration&#8211;we are already doing well on technical grounds. How do we encourage more collaboration around management software? For starters, we work at making it easier to install. And we must make sure the communities remain active and integral, and continue to grow.  </p>
<p>A lot of management software is hard to find and install because it&#8217;s not yet part of the distribution.  I would encourage all ISVs out there that write open source software to look at getting their content into <a href="http://fedoraproject.org/wiki/EPEL">EPEL</a>, where it can be easily found via search and is yum-installable. I&#8217;d also like them to take a look at how we are building strong communities around our projects using Fedora Hosted Infrastructure&#8211;and to take those examples to their own projects and communities.   </p>
<p>Regardless of who we work for, open communication and collaboration are how we get ahead&#8211;and Fedora (and EPEL) are providing an outstanding breeding ground for open source software now&#8211;even in what was previously thought of as an “Enterprise” type cathedral environment. I should also mention that the Fedora community is full of packaging experts and smart folks who can help you.   Join #fedora-devel on irc.freenode.net and say hi.   </p>
<p>If you&#8217;re not interested in development, but adminster systems and want to know how you can help out, take a look at Mike McGrath&#8217;s new <a href="https://fedorahosted.org/csi/">CSI venture</a>.</p>
<p>Good ideas come from where we least expect them. The Fedora development model and infrastructure are really powerful ways to create software, documentation, and tools that solve problems for people who need to manage their Linux infrastructure.   Whether you are interested in Cobbler, Func, or Spacewalk&#8211;or even if you&#8217;re interested in Linux systems management in general&#8211;let&#8217;s get together, find better ways to collaborate, and invest in the operating systems that we all love.    </p>
<p>So, that&#8217;s my summary of the Red Hat Summit and FUDCon. Boston&#8217;s a beautiful city and I will give it a pass for not having sweet tea at all available restaurants. I look forward to Summit and FUDCon next year&#8211;we&#8217;re growing fast in Fedora and Red Hat Enterprise Linux land, and there&#8217;s still many more places to go.
</p>
]]></content:encoded>
			<wfw:commentRss>http://www.redhatmagazine.com/2008/07/08/open-source-systems-management-two-conferences-two-talks/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Red Hat Enterprise Linux 5 virtualization on HP DL585: AMD Barcelona with Rapid Virtualization Indexing</title>
		<link>http://www.redhatmagazine.com/2008/07/03/red-hat-enterprise-linux-5-virtualization-on-hp-dl585-amd-barcelona-with-rapid-virtualization-indexing/</link>
		<comments>http://www.redhatmagazine.com/2008/07/03/red-hat-enterprise-linux-5-virtualization-on-hp-dl585-amd-barcelona-with-rapid-virtualization-indexing/#comments</comments>
		<pubDate>Thu, 03 Jul 2008 16:18:17 +0000</pubDate>
		<dc:creator>Sanjay Rao</dc:creator>
		
		<category>Red Hat Enterprise Linux</category>

		<category>technical</category>

		<guid isPermaLink="false">http://www.redhatmagazine.com/2008/07/03/red-hat-enterprise-linux-5-virtualization-on-hp-dl585-amd-barcelona-with-rapid-virtualization-indexing/</guid>
		<description><![CDATA[This article is a follow-up to Red Hat Enterprise Linux 5.1 utilizes nested paging on AMD Barcelona Processor to improve performance of virtualized guests.
With new hardware releases, customers are faced with situations in which they want to take advantage of increased speeds but are forced to stay on older hardware because their operating environments are [...]]]></description>
			<content:encoded><![CDATA[<p><em>This article is a follow-up to <a href="http://www.redhatmagazine.com/2007/11/20/red-hat-enterprise-linux-51-utilizes-nested-paging-on-amd-barcelona-processor-to-improve-performance-of-virtualized-guests/">Red Hat Enterprise Linux 5.1 utilizes nested paging on AMD Barcelona Processor to improve performance of virtualized guests</a>.</em></p>
<p>With new hardware releases, customers are faced with situations in which they want to take advantage of increased speeds but are forced to stay on older hardware because their operating environments are not supported on the newer hardware. Virtualizing their operating environment helps them get past this issue. Virtualization also helps them:</p>
<ul>
<li>Consolidate hardware to</li>
<ul>
<li>improve utilization</li>
<li>		reduce floor space requirements</li>
<li>		reduce power consumption</li>
</ul>
<li>Take advantage of hardware speed up without having to upgrade the software environment</li>
<li>Reduce downtime for upgrades</li>
<li>Create development and test environments</li>
</ul>
<p>RHEL 5 virtualization lets customers virtualize their existing systems and take advantage of the benefits mentioned above. <a id="more-955"></a></p>
<p>There are two modes to virtualize servers:</p>
<ul>
<li><strong>Para-virtualized servers.</strong> In this mode, the virtualized server has direct access to the hardware/hypervisor and delivers performance close to bare metal. Systems running Red Hat Enterprise Linux 4.5 and newer can be deployed as para-virtualized guests.</li>
<li><strong>Fully-virtualized servers.</strong> In this mode, the virtualized server interacts with the hypervisor through a hardware abstraction layer. The hypervisor presents its hardware as generic hardware through the abstraction layer so most operating systems can be run in a virtual mode on it. However, all the I/O, network, and memory requests from the guest have to be translated by the hypervisor. This translation results in very poor performance by systems deployed as fully virtualized guests. </li>
</ul>
<p>The I/O and network performance on fully virtualized guests can be improved by implementing para-virtualized drivers within these guests. </p>
<p>But memory access can still be an issue, particularly with process-based applications where processes need to modify virtual memory.  Specifically, the guest operating system (guest OS) in the virtual machine creates page tables that translate virtual memory addresses to guest pseudo-physical addresses, which means that older CPUs cannot directly use them.  To deal with that limitation, the hypervisor has to create so-called shadow page tables, which translate the same virtual memory addresses to real physical addresses.  Maintaining these shadow page tables can cause performance and scalability problems with certain workloads.  One particular cause of performance issues is the fact that the hypervisor needs to intercept each page table write by the guest OS in order to keep the guest page tables and the shadow page tables in sync.</p>
<p>The AMD Barcelona processor has a feature called Rapid Virtualization Indexing (RVI) which allows the processor to directly use the virtual to pseudo-physical address page tables created by the guest OS.  This works because the CPU translates these pseudo-physical addresses to real machine physical addresses using a second set of page tables, which define this translation for each virtual machine.   Because the CPU can do both of the memory address translations, no shadow page tables are required and the guest OS can alter its page tables directly, without trapping to the hypervisor. Context switches in the guest OS also benefit from RVI technology because the shadow page table gets flushed with most context switches on the guest and there is a cost incurred to re-populate it.</p>
<p>All systems running Red Hat Enterprise Linux 4.4 or older have to be run as fully virtualized guests, as do all other operating systems (e.g. Windows, Solaris, etc.).</p>
<p>A series of tests on RVI were carried out on an HP DL585 system using an OLTP workload in an Oracle database. Oracle was chosen as the database for the testing because it is a process-based workload, and it is also a widely used database. The testing was carried out with 8 and 16 CPUs to understand the effects of vertical scaling on fully virtualized guests and the benefits of RVI.</p>
<p><strong>Hardware used for the testing</strong></p>
<p>System: HP DL 585<br />
Memory: 32 G<br />
CPUs: 16 AMD Barcelona @ 2.3 GHz</p>
<p><strong>Test results from 8 CPU testing</strong><br />
<a href="http://flickr.com/photos/redhatmagazine/2634449392/in/photostream/"><img src="http://farm4.static.flickr.com/3121/2634449392_4444f291c9.jpg?v=0"></a></p>
<table border="1" width="400">
<tr>
<td>System</td>
<td>20U</td>
<td>40U</td>
<td>80U</td>
</tr>
<tr>
<td>Dom0</td>
<td>100.00</td>
<td>109.03</td>
<td>112.73</td>
</tr>
<tr>
<td>FV – no RVI or PV</td>
<td>11.11</td>
<td>6.56</td>
<td>4.26</td>
</tr>
<tr>
<td>FV – RVI </td>
<td>15.91</td>
<td>18.59</td>
<td>18.08</td>
</tr>
<tr>
<td>FV PV – no RVI</td>
<td>14.34</td>
<td>7.39</td>
<td>4.38</td>
</tr>
<tr>
<td>FV PV – RVI </td>
<td>74.35</td>
<td>85.07</td>
<td>89.98</td>
</tr>
</table>
<p>For the purpose of comparison, the transactions per minute generated with 20 users was baselined at 100, and all other numbers are relative to that number. The table and the graph above show the remarkable advantage that PV drivers and RVI provide to a fully virtualized guest. Line 2 in the chart, which represents the FV guests without RVI or PV drivers, shows a huge drop-off in the transactions per minute relative to line 1, which shows the baseline of transactions per minute on Dom0. By turning on the RVI feature, some of the performance is regained. But without the PV drivers, the performance remains way below the mark, as shown on line 3. Line 4 shows that by adding PV drivers without RVI, the performance remains way off. Finally line 5 shows that by using RVI and PV drivers, the performance of the workload gets within 80% of Dom0.</p>
<p><strong>Test Results from 16 CPU testing</strong></p>
<p><a href="http://flickr.com/photos/redhatmagazine/2634449474/"><img src="http://farm4.static.flickr.com/3115/2634449474_e8fb1ae718.jpg?v=0"></a></p>
<table border="1" width="400">
<tr>
<td>System</td>
<td>20U</td>
<td>40U</td>
<td>80U</td>
</tr>
<tr>
<td>Dom0</td>
<td>100.00</td>
<td>113.07</td>
<td>115.97</td>
</tr>
<tr>
<td>FV – no RVI or PV</td>
<td>5.13</td>
<td>2.92</td>
<td>2.14</td>
</tr>
<tr>
<td>FV – RVI </td>
<td>12.94</td>
<td>11.34</td>
<td>11.26</td>
</tr>
<tr>
<td>FV PV – no RVI</td>
<td>4.22</td>
<td>2.22</td>
<td>1.64</td>
</tr>
<tr>
<td>FV PV – RVI </td>
<td>66.79</td>
<td>83.30</td>
<td>89.62</td>
</tr>
</table>
<p>The results from the 16 CPU testing shows similar trends to the 8 CPU testing, but the delta gets wider as the user count is increased when RVI and PV drivers are not used.</p>
<p>Figure 3 below shows the comparison between the 8 and 16 CPU runs. All the numbers are relative to the 8 CPU numbers without PV drivers and RVI, which has been baselined at 1. The figure shows that as the guest size increases, the performance of the FV guest without RVI and PV drivers decreases. With RVI and PV drivers, performance inside the guest comes close to 80% of the performance on Dom0.</p>
<p><strong>Comparison between 8 CPU and 16 CPU FV guests</strong></p>
<p><a href="http://flickr.com/photos/redhatmagazine/2634449300/in/photostream/"><img src="http://farm4.static.flickr.com/3269/2634449300_999df1a9a8.jpg?v=0"></a></p>
<p><strong>Conclusion</strong></p>
<p>From the results it is clear that when a process-based workload is run in a fully virtualized guest, performance takes a big hit due to the way the TLB information is maintained and the way I/O works inside the guest. But by adding PV drivers on an AMD Barcelona based system which uses RVI, performance aligns with Dom0 performance. With this feature, AMD lets customers take advantage of hardware speed-up without having to upgrade their software environments by letting them run their systems as fully virtualized guests on the Barcelona-based systems.
</p>
]]></content:encoded>
			<wfw:commentRss>http://www.redhatmagazine.com/2008/07/03/red-hat-enterprise-linux-5-virtualization-on-hp-dl585-amd-barcelona-with-rapid-virtualization-indexing/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Now open: Red Hat Network Satellite 5.1.0</title>
		<link>http://www.redhatmagazine.com/2008/06/20/now-open-red-hat-network-satellite-510/</link>
		<comments>http://www.redhatmagazine.com/2008/06/20/now-open-red-hat-network-satellite-510/#comments</comments>
		<pubDate>Fri, 20 Jun 2008 14:24:35 +0000</pubDate>
		<dc:creator>the editorial team</dc:creator>
		
		<category>Red Hat Enterprise Linux</category>

		<category>culture</category>

		<guid isPermaLink="false">http://www.redhatmagazine.com/2008/06/20/now-open-red-hat-network-satellite-510/</guid>
		<description><![CDATA[With this announcement at the Summit, Red Hat&#174; Network&#174; enters a new, more open era.  We caught up with Mike McCune from the RHN team, and he sent us this quick run-down of the new release and the project&#8217;s decision to go open source.
Intro
Responsible for 1,000 systems? One hundred systems? Ten? If so, you [...]]]></description>
			<content:encoded><![CDATA[<p><em>With this <a href="http://www.press.redhat.com/2008/06/19/rhn-satellite-goes-open-source-project-spacewalk/">announcement at the Summit</a>, Red Hat&reg; Network&reg; enters a new, more open era.  We caught up with Mike McCune from the RHN team, and he sent us this quick run-down of the new release and the project&#8217;s decision to go open source.</em></p>
<h2>Intro</h2>
<p>Responsible for 1,000 systems? One hundred systems? Ten? If so, you likely have processes in place for maintaining these systems, if only to preserve your sanity! Perhaps you have custom ssh scripts to command the systems remotely, or maybe you have your own yum repositories to maintain software patches critical to your systems. If the burden of maintaining these systems causes you a headache or your needs go beyond the methods you use today, Red Hat has tools available to make your life as a system administrator easier.<a id="more-940"></a></p>
<h2>Satellite</h2>
<p>Red Hat Network Satellite is a systems management platform that will make the deployment of your Linux systems easier, faster, and more scalable.  Satellite automates many of the day-to-day operations that would otherwise require manual script writing, remote ssh execution, and a considerable amount of human effort. Satellite can centralize the storage and deployment of Red Hat products alongside your own custom  software content in one server for easy and controlled distribution to as many systems as you desire.<br />
Users deploy Satellite in environments ranging from tens to tens of thousands of Linux systems.</p>
<p>If any of the features below sound useful to you, give Red Hat Network Satellite a try:</p>
<ul>
<li>One-click software updates in an easy-to-use web interface</li>
<li>Role-based administration</li>
<li>Flexible delivery architectures - Satellite, Proxy, and Hosted</li>
<li>Virtual Machine Management - Provision, control, and configure virtual machines</li>
<li>System grouping for easier administration</li>
<li>Automation of previously manual tasks</li>
<li>Life-cycle management of your entire Linux infrastructure</li>
<li>Performance tracking for your Linux systems</li>
</ul>
<h2>Latest features in Satellite 5.1.0</h2>
<p>With the latest release of Red Hat Network Satellite, 5.1.0, we introduced some excellent new features to help Satellite better integrate with your environments. The most notable feature we introduced in the release is the Multiple Organizations feature, sometimes referred to as &#8216;Multi-Org.&#8217; This feature allows you to partition your servers, users, software, and configuration into separate &#8216;Organizations&#8217; within the Satellite.  Each organization can manage their own sets of users and systems allowing you to control access to your data without having to install and maintain separate Satellite servers.</p>
<p>An example usage of this feature would be a user that wants a Satellite for managing systems in a multi-departmental organization. Each department would be given its own separate Organization within the Satellite: one organization for Finance, one for IT, one for Engineering, and so on. Each organization would then be granted a set amount of licenses (&#8217;entitlements&#8217;) to Red Hat Enterprise Linux as determined by a central Satellite administrator. Likewise, the Satellite Administrator would create administrators for each Department within the Satellite. Each department would then have rights to register and administer their<br />
systems without fear of users in other departments seeing or manipulating their systems.</p>
<p>Other exciting features in 5.1.0 include:</p>
<ul>
<li>API Call enhancements: Vastly expanded set of XML-RPC APIs to help you better automate your experience with RHN Satellite.</li>
<li>Satellite support for x86 64-bit (Intel/AMD) and  z390/x (IBM) platforms. You can run your Satellite on more hardware than ever before!</li>
<li>Provisioning support for Power PC (PPC) platform: Kickstart your PPC boxes from Satellite.</li>
<li>Apache 2.0 support for Satellite and Proxy on RHEL4</li>
<li>Exporter tool for moving RHN configuration information</li>
<li>Web User Interface (UI) enhancements: Expanded CSV export support and performance enhancements.</li>
</ul>
<h2>Last but not least</h2>
<p>Big news in the world of RHN Satellite:  We are going open source!  Our development, source code, and communications will all be done in the open with GPLv2 licensing.  Much more information at our website: </p>
<p><a href="http://spacewalk.redhat.com">http://spacewalk.redhat.com/</a></p>
<p>Attend one of our Satellite lab sessions to talk one-on-one with developers on our team and get the latest information.  </p>
<h2>More information</h2>
<p><a href="http://phx.corporate-ir.net/phoenix.zhtml?p=irol-eventDetails&#038;c=67156&#038;eventID=1861362">Red Hat press release webcast</a></p>
<p><a href="http://www.press.redhat.com/2008/06/19/rhn-satellite-goes-open-source-project-spacewalk/">Red Hat press blog announcement</a></p>
<p>Developer Blogs:   <a href="http://zeusville.wordpress.com/2008/06/19/strolling-with-spacewalk/">Jesus Rodriguez</a>, <a href="http://dgoodwin.dangerouslyinc.com/node/99">Devan Goodwin</a></p>
<p><a href="http://biz.yahoo.com/bw/080619/20080619005026.html?.v=1">Red Hat Delivers on Linux Automation with Identity Management and Open Source Systems Management Solutions</a></p>
<p><a href="http://news.yahoo.com/s/pcworld/20080618/tc_pcworld/147258">Red Hat Network to Be Open-sourced</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.redhatmagazine.com/2008/06/20/now-open-red-hat-network-satellite-510/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Run-levels:  Create, use, modify, and master</title>
		<link>http://www.redhatmagazine.com/2008/06/03/run-levels-create-use-modify-and-master/</link>
		<comments>http://www.redhatmagazine.com/2008/06/03/run-levels-create-use-modify-and-master/#comments</comments>
		<pubDate>Tue, 03 Jun 2008 21:41:34 +0000</pubDate>
		<dc:creator>Noah Gift</dc:creator>
		
		<category>Fedora</category>

		<category>Red Hat Enterprise Linux</category>

		<category>technical</category>

		<guid isPermaLink="false">http://www.redhatmagazine.com/2008/06/03/run-levels-create-use-modify-and-master/</guid>
		<description><![CDATA[The phone rings. You pick it up, and it is the recruiter for your dream job. Your palms begin to sweat as the technical interview starts.
&#8220;You want to know the run-levels for Red Hat&#174; Enterprise Linux&#174; or Fedora&#174;?&#8221; You pause, thinking. &#8220;Well, I use Linux every day, and I know single user mode is level [...]]]></description>
			<content:encoded><![CDATA[<p>The phone rings. You pick it up, and it is the recruiter for your dream job. Your palms begin to sweat as the technical interview starts.</p>
<p>&#8220;You want to know the run-levels for Red Hat&reg; Enterprise Linux&reg; or Fedora&reg;?&#8221; You pause, thinking. &#8220;Well, I use Linux every day, and I know single user mode is level 1&#8230;&#8221;.  You stammer a bit, and say you&#8217;re drawing a blank for the rest.  The recruiter thanks you in that &#8220;sorry&#8221; tone-of-voice, and hangs up the phone.</p>
<p>Let&#8217;s cross that question off the recruiter&#8217;s list forever. (Sorry, recruiters.) In this article, we cover how to create, use, modify, and ultimately master run-levels.  Bookmark this page with your favorite bookmarking service, and rest easy about ever missing that interview question again.</p>
<p>Of course, there are more reasons to know about run-levels than just to pass an interview.  Interacting with run-levels is quite useful once you get used to it.  In this article we are going to cover the basics, and then go beyond that to create our own run-level that we write a script against.<a id="more-914"></a></p>
<h2>What&#8217;s a run-level?</h2>
<p>A run-level is a system state that is defined by the services listed in <code>/etc/rc.d</code>.  Typically, advanced administration of a machine is done by switching run-levels (or state) to perform tasks such as minimal resource usage, run-level 3, shutdown run-level 0, or maintenance. Maintenance is run-level 1&#8211;or single user mode, as it is commonly known.</p>
<h2>Unix/Linux run-level comparison chart</h2>
<p>If you happen to work with AIX, Solaris, HP-UX, Ubuntu, Fedora, Free BSD and/or Red Hat Enterprise Linux, then it can get a bit confusing figuring out which run-level does what.  Please refer to the Wikipedia reference at the bottom of this article to get more information on cross platform run-level comparisons.</p>
<h2>Red Hat run-level chart</h2>
<p>Here is a chart of Red Hat-specific run-levels:</p>
<table style="border: 1px solid #999; border-collapse: collapse;">
<tr>
<th>LEVEL</th>
<th>NAME</th>
<th>DESCRIPTION</th>
</tr>
<tr style="background-color: #999;">
<td>0</td>
<td>Halt</td>
<td>Immediately shuts down system and powers it off, if it can</td>
</tr>
<tr>
<td>1</td>
<td>Single user</td>
<td>Brings system to a bare essentials mode for maintenance</td>
</tr>
<tr style="background-color: #999;">
<td>2</td>
<td>User-defined</td>
<td>Custom</td>
</tr>
<tr>
<td>3</td>
<td>Multi-user with console only</td>
<td>All services are running but X11</td>
</tr>
<tr style="background-color: #999;">
<td>4</td>
<td>User-defined</td>
<td>Custom</td>
</tr>
<tr>
<td>5</td>
<td>Multi-user with display and console</td>
<td>All services are running including X11 (or GUI)</td>
</tr>
<tr style="background-color: #999;">
<td>6</td>
<td>Reboot</td>
<td>Reboots the machine</td>
</tr>
</table>
<h2>What run-level am I?</h2>
<p>Just like life, with an operating system you need to know where you are now, in order to get to where you want to go next.  If you are planning on modifying your run-level, you need to first know what your current run-level is.  In order to do this, you can use one of two commands, like so:</p>
<pre>
[root@localhost ~]# who -r
         run-level 3  2008-04-29 08:17                   last=5
[root@localhost ~]# runlevel
5 3
</pre>
<p>If we look at the output of who -r, we can tell that we are currently running at run-level 3&#8211;which is multi-user, but console only.We can also tell that we were previously running at run-level 5, which is multi-user with console and X11 login. </p>
<h2>Changing run-levels</h2>
<p>Once you know what run-level you are at, it is very simple to change to a different one.  All you need to do is type:  &#8220;init&#8221; followed by number of the runlevel you would like to switch to.  Here is an example of switching to single user mode, or runlevel 1:</p>
<pre>
init 1
</pre>
<p>This command will change your system to single user mode, and it will ask you for the root password.  When you arrive in single user mode, there are no services running, as this level it is most often used for maintenance, backup, or recovery.  Once you are in single user mode it is quite common to enable, for example, network and NFS to backup your operating system, like so:</p>
<pre>
service network start; service nfs start
</pre>
<p>When you are done with your work, type in the run-level you would like to go to&#8211;perhaps run-level 5 which brings up the X11 login window:</p>
<p><code>init 5</code></p>
<p>Later in this article, we will write our own run-level and then use it to script a maintenance operation.</p>
<h2>Permanently changing the default run-level</h2>
<p>While changing the runlevel manually is most common, sometimes it is useful to change the default run-level from level 5 to level 3 permanently. This can help conserve resources inside of, for example, a virtual machine.  You may also choose to define your own custom run-level, and wish to make that the default.</p>
<p>You will need to edit /etc/inittab and change this line with your favorite text editor:</p>
<pre>
id:5:initdefault:
</pre>
<p>Change &#8216;5&#8242; to the run-level you wish your machine to be at when it boots.  To change the run-level so that it never loads the GUI on boot would look like this:</p>
<pre>
id:3:initdefault:
</pre>
<dl class="adnote">
<dt>Note:</dt>
<dd>A word of caution on editing /etc/inittab.  It is very important to keep /etc/inittab in version control, and/or keep a backup of it when you are editing the file.  If you make a change incorrectly you can render your operating system unbootable.</dd>
</dl>
<dl class="adtip">
<dt>Tip:</dt>
<dd>If you happen to get yourself in this pickle, there is a way out.  You can interrupt the Grub boot loader and press &#8220;A&#8221;, and then append the word &#8220;emergency&#8221; to the end of the kernel arguments.  This will boot the operating system without using init. Then, you can fix what you altered by copying back the original version of /etc/inittab.</dd>
</dl>
<h2>Creating your own run-level HACK</h2>
<p>First, a word of caution. Do not do this on a production machine, period! This section is a VERY dirty hack that you should only use on a virtual machine you can experiment with, or a machine you don&#8217;t mind rebuilding..  It is always a good idea to do testing inside of a virtual machine before doing something that could potentially render a box unbootable. This is a very quick and dirty way to alter a run-level for the purposes of learning, but perhaps you can get some ideas from it that can be used in a more production-oriented way.  Ideally, some of the readers of this article will post some production quality hacks to creating custom run levels.</p>
<ol>
<li>cd to <code>/etc/rc.d/rc4.d/</code></li>
<li>do a sanity check to make sure you are running Red Hat:  <code>cat /etc/redhat-release</code></li>
<li>backup existing run-level directory:
<pre>
mkdir /tmp/rc4.d.original/
cp /etc/rc.d/rc4.d/* /tmp/rc4.d.original/
</pre>
</li>
<li><code>rm -f /etc/rc.d/rc4.d/*</code></li>
</ol>
<p>At this point </p>
<pre>
 cp /etc/rc.d/rc1.d/* /etc/rc.d/rc4.d/
</pre>
<p>We have now copied the run-level scripts for single user mode into our own custom run-level 4. We can hijack the the S99single script and tell it to do something different.  In this example, we are going to write a custom Python script that gets forked to the background and backs up the machine over rsync.  Let&#8217;s edit that file we copied:</p>
<pre>
vim /etc/rc.d/rc4.d/S99single
</pre>
<p>Change the last part of it to look like this:</p>
<pre>
# Now go to the single user level.
echo $"Telling INIT to go to single user mode."
echo "This is a custom code. Forking custom script"
/custom.py &#038;
exec init -t1 S
</pre>
<p>We&#8217;ve inserted two lines.  One echoes that we are forking off a custom script. The second line forks a python script, shown below, that backs up the machine via rsync.  Note that this assumes you have set up ssh keys on the remote backup server.</p>
<p>custom.py script:</p>
<pre>
#!/usr/bin/env python
import time
import subprocess

rsync = "rsync -av / 10.0.1.3:/Volumes/Backup/server_backup/"
network = "service network start"
init = "init 3"

cmds = [rsync, network]

def single_user_backup():
    """Starts network service, creates backup and returns to init 3"""
    try:
        subprocess.call(network, shell=True)
        subprocess.call(rsync, shell=True)
    finally:
        subprocess.call(init, shell=True)

def main():
    """Runs program"""
    print "sleeping for 60 seconds"
    #time.sleep(60)  #Gives machine time to quiesce
    single_user_backup()

main()
</pre>
<p>The main function runs a sleep command for 60 seconds, just to give the single user mode scripts time to quiesce the box. Remember, this script is forked to the background.  Next, function single_user_backup attempts to start network services and run rsync to remotely back up the whole / volume to another server.  This is obviously crude and there will be lots of errors trying to back up /proc, for example, but it give you an idea of how an automated backup could work with a custom run-level.  Finally, the machine gets called back to init 3, which is console only multi-user mode.</p>
<dl class="adtip">
<dt>Tip:</dt>
<dd>Again, this is just an idea for a backup script, but not one I would actually run in production in my wildest dreams.  One problem with this technique is that because of symbolic links in run level 1, we actually, changed run level 1 and our run level 4.  This is not acceptable, obviously, for any sane user, but it is acceptable as a way to have fun with a disposable virtual machine!</dd>
</dl>
<p>If you can think of a more realistic backup script that would work from a custom run-level, I would love to see it.  Create a how to on your blog, and then post a response to this article.  Also, it would interesting to see other things such as database backups and migration done with custom run-levels as well. Leave a comment and let me know what you&#8217;d do.</p>
<h2>Running your own run-level</h2>
<p>To run the newly created run-level, you only need to type:</p>
<pre>
init 4
</pre>
<p>You will then see the custom print statements we inserted. The machine<br />
will sleep for 60 seconds, and then run the rsync backup.</p>
<h2>Summary</h2>
<p>This article covered quite a bit of ground in a short while.  We went over what a run-level was, how to tell what run-level you are at, how to change run-levels, and, finally, how to make your own run-level with custom, frankenstein quality, code.  Hopefully, this showed you some new tricks and spurs some ideas for further innovation with run-levels.</p>
<h2>References</h2>
<ul>
<li><a href="http://www.redhat.com/docs/manuals/enterprise/RHEL-4-Manual/en-US/System_Administration_Guide/Controlling_Access_to_Services-Runlevels.html">Section 19.1. Runlevels</a> (Red Hat Enterprise Linux 4 manual)</li>
<li><a href="http://en.wikipedia.org/wiki/Runlevel">Wikipedia: Runlevel</a></li>
<li><a href="http://en.wikipedia.org/wiki/Init">Wikipedia: Init</a></li>
<li><a href="http://www.redhatmagazine.com/2008/02/07/python-for-bash-scripters-a-well-kept-secret/">Python for bash scripters: A well-kept secret</a> (RHM, Feb 2008)</li>
</ul>
<h2>About the author</h2>
<p>Noah Gift is the co-author of <em>Python For Unix and Linux</em> by O&#8217;Reilly Publishers.  He is an author, speaker, consultant, and community leader,  writing for publications such as IBM Developerworks, Red Hat Magazine, O&#8217;Reilly, and MacTech.  His has both a <a href="http://www.giftcs.com">consulting company</a> and a <a href="http://www.noahgift.com">personal website</a>.  Noah is also the current organizer for the <a href="http://www.pyatl.org">www.pyatl.org&#8221;>Python User Group for Atlanta, GA</a>.   He has given presentations at PyCon and PyAtl.   In his free time, he enjoys spending time with his wife Leah, and their son Liam, playing the piano, and exercising religiously.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.redhatmagazine.com/2008/06/03/run-levels-create-use-modify-and-master/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
