<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">

<channel>
	<title>Lethe's Tuxforge</title>
	
	<link>http://blog.tuxforge.com</link>
	<description>Tips, tricks and solutions for Linux Engineers... and users.</description>
	<lastBuildDate>Sun, 10 Jun 2012 16:31:08 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.4.2</generator>
		<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/Tuxforge" /><feedburner:info uri="tuxforge" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><feedburner:emailServiceId>Tuxforge</feedburner:emailServiceId><feedburner:feedburnerHostname>http://feedburner.google.com</feedburner:feedburnerHostname><item>
		<title>Wireshark: Couldn't run /usr/bin/dumpcap</title>
		<link>http://feedproxy.google.com/~r/Tuxforge/~3/-vhqzCy3QJc/</link>
		<comments>http://blog.tuxforge.com/couldnt-run-usrbindumpcap/#comments</comments>
		<pubDate>Sun, 10 Jun 2012 16:29:11 +0000</pubDate>
		<dc:creator>Lethe</dc:creator>
				<category><![CDATA[Linux How to]]></category>
		<category><![CDATA[Couldn't run /usr/bin/dumpcap]]></category>
		<category><![CDATA[root wireshark]]></category>
		<category><![CDATA[run wireshark as standard user]]></category>
		<category><![CDATA[wireshark]]></category>
		<category><![CDATA[wireshark root]]></category>
		<category><![CDATA[wireshark standard user]]></category>
		<category><![CDATA[wireshartk not root]]></category>

		<guid isPermaLink="false">http://blog.tuxforge.com/?p=7993</guid>
		<description><![CDATA[ This morning I tried to run Wireshark to capture some traffic for troubleshooting purposes on one of my lab machines and all I&#8217;ve got was the error Couldn&#8217;t run/usr/bin/dumpcap. As this was a fresh installation of both Wireshark and Linux, I&#8217;ve upgraded to Fedora 17 only this morning, I never faced this error so I did [...]]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><div class='shareaholic-like-buttonset' style='float:none;height:30px;'><a class='shareaholic-fblike' data-shr_layout='button_count' data-shr_showfaces='false' data-shr_href='http%3A%2F%2Fblog.tuxforge.com%2Fcouldnt-run-usrbindumpcap%2F' data-shr_title='Wireshark%3A+Couldn%27t+run+%2Fusr%2Fbin%2Fdumpcap'></a><a class='shareaholic-fbsend' data-shr_href='http%3A%2F%2Fblog.tuxforge.com%2Fcouldnt-run-usrbindumpcap%2F'></a><a class='shareaholic-googleplusone' data-shr_size='medium' data-shr_count='true' data-shr_href='http%3A%2F%2Fblog.tuxforge.com%2Fcouldnt-run-usrbindumpcap%2F' data-shr_title='Wireshark%3A+Couldn%27t+run+%2Fusr%2Fbin%2Fdumpcap'></a><a class='shareaholic-tweetbutton' data-shr_count='horizontal' data-shr_href='http%3A%2F%2Fblog.tuxforge.com%2Fcouldnt-run-usrbindumpcap%2F' data-shr_title='Wireshark%3A+Couldn%27t+run+%2Fusr%2Fbin%2Fdumpcap'></a></div><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><!-- End Shareaholic LikeButtonSetTop Automatic --><p><a href="http://blog.tuxforge.com/wp-content/uploads/2012/06/Wireshark_Icon.png" rel="lightbox[7993]" title="Wireshark_Icon"><img class="alignleft size-thumbnail wp-image-8003" title="Wireshark_Icon" src="http://blog.tuxforge.com/wp-content/uploads/2012/06/Wireshark_Icon-150x150.png" alt="Wireshark Icon 150x150 Wireshark: Couldnt run /usr/bin/dumpcap"  /></a> This morning I tried to run Wireshark to capture some traffic for troubleshooting purposes on one of my lab machines and all I&#8217;ve got was the error <em>Couldn&#8217;t run</em>/<em>usr/bin/dumpcap</em>.</p>
<p><span id="more-7993"></span></p>
<p>As this was a fresh installation of both Wireshark and Linux, I&#8217;ve upgraded to Fedora 17 only this morning, I never faced this error so I did as instructed in the error message and verified that my account was indeed part of the Wireshark group :</p>
<p style="text-align: center;"><a href="http://blog.tuxforge.com/wp-content/uploads/2012/06/Wireshark-error.png" rel="lightbox[7993]" title="Wireshark error"><img class="size-thumbnail wp-image-7994 aligncenter" title="Wireshark error" src="http://blog.tuxforge.com/wp-content/uploads/2012/06/Wireshark-error-150x150.png" alt="Wireshark error 150x150 Wireshark: Couldnt run /usr/bin/dumpcap"  /></a></p>
<p style="text-align: justify;">Issueing the command <em>id </em>told me that my account was indeed part of the wireshark group, next I tried to run the command as root and the error did not appear so what I did next was going into /usr/sbin/ directory looking for the dumpcap executable file, issuing a simple ls has shown the following :</p>
<p style="text-align: justify;"><a href="http://blog.tuxforge.com/wp-content/uploads/2012/06/dumpcap.png" rel="lightbox[7993]" title="dumpcap"><img class="aligncenter size-thumbnail wp-image-8000" title="dumpcap" src="http://blog.tuxforge.com/wp-content/uploads/2012/06/dumpcap-150x73.png" alt="dumpcap 150x73 Wireshark: Couldnt run /usr/bin/dumpcap"  /></a></p>
<p style="text-align: justify;">As you can see in the image the Wireshark group is the owner of the file but the eXcute permission is missing from the file so to solve the <b>Couldn&#8217;t run /usr/bin/dumpcap</b> error simply issue the command :</p>
<pre class="brush: bash; title: ; notranslate"> chmod +x /usr/sbin/dumpcap </pre>
<p style="text-align: justify;">And you will be able to run Wireshark as a standard user without the error <i>Couldn&#8217;t run /usr/bin/dumpcap</i> showing up.</p>
<p style="text-align: justify;">I hope you will find the post useful and will take a second to leave me a comment or retweet it.</p>
<p style="text-align: justify;">Cheers Lethe.</p>
<h4>Incoming search terms:</h4><ul><li><a href="http://blog.tuxforge.com/couldnt-run-usrbindumpcap/" title="logo do">logo do</a></li><li><a href="http://blog.tuxforge.com/couldnt-run-usrbindumpcap/" title="wireshark logo">wireshark logo</a></li><li><a href="http://blog.tuxforge.com/couldnt-run-usrbindumpcap/" title="do logo">do logo</a></li><li><a href="http://blog.tuxforge.com/couldnt-run-usrbindumpcap/" title="Wireshark">Wireshark</a></li><li><a href="http://blog.tuxforge.com/couldnt-run-usrbindumpcap/" title="logo wireshark">logo wireshark</a></li><li><a href="http://blog.tuxforge.com/couldnt-run-usrbindumpcap/" title="yum logo">yum logo</a></li><li><a href="http://blog.tuxforge.com/couldnt-run-usrbindumpcap/" title="assertive communication">assertive communication</a></li><li><a href="http://blog.tuxforge.com/couldnt-run-usrbindumpcap/" title="logo distribution linux">logo distribution linux</a></li><li><a href="http://blog.tuxforge.com/couldnt-run-usrbindumpcap/" title="couldnt run /usr/bin/dumpcap">couldnt run /usr/bin/dumpcap</a></li><li><a href="http://blog.tuxforge.com/couldnt-run-usrbindumpcap/" title="yum image">yum image</a></li></ul><div class="shr-publisher-7993"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><div class='shareaholic-like-buttonset' style='float:none;height:30px;'><a class='shareaholic-fblike' data-shr_layout='button_count' data-shr_showfaces='false' data-shr_href='http%3A%2F%2Fblog.tuxforge.com%2Fcouldnt-run-usrbindumpcap%2F' data-shr_title='Wireshark%3A+Couldn%27t+run+%2Fusr%2Fbin%2Fdumpcap'></a><a class='shareaholic-fbsend' data-shr_href='http%3A%2F%2Fblog.tuxforge.com%2Fcouldnt-run-usrbindumpcap%2F'></a><a class='shareaholic-googleplusone' data-shr_size='medium' data-shr_count='true' data-shr_href='http%3A%2F%2Fblog.tuxforge.com%2Fcouldnt-run-usrbindumpcap%2F' data-shr_title='Wireshark%3A+Couldn%27t+run+%2Fusr%2Fbin%2Fdumpcap'></a><a class='shareaholic-tweetbutton' data-shr_count='horizontal' data-shr_href='http%3A%2F%2Fblog.tuxforge.com%2Fcouldnt-run-usrbindumpcap%2F' data-shr_title='Wireshark%3A+Couldn%27t+run+%2Fusr%2Fbin%2Fdumpcap'></a></div><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><!-- End Shareaholic LikeButtonSetBottom Automatic --><div id="wherego_related"><h3>Readers who viewed this page, also viewed:</h3><ul><li><a href="http://blog.tuxforge.com/fedora-13-install-nvidia-driver/" rel="bookmark" class="wherego_title">Fedora 13 install nVidia driver</a></li><li><a href="http://blog.tuxforge.com/become-linux-systems-administrator/" rel="bookmark" class="wherego_title">How to become a Linux Systems Administrator</a></li><li>Powered by <a href="http://ajaydsouza.com/wordpress/plugins/where-did-they-go-from-here/">Where did they go from here?</a></li></ul></div><img src="http://feeds.feedburner.com/~r/Tuxforge/~4/-vhqzCy3QJc" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://blog.tuxforge.com/couldnt-run-usrbindumpcap/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		<feedburner:origLink>http://blog.tuxforge.com/couldnt-run-usrbindumpcap/</feedburner:origLink></item>
		<item>
		<title>Linux Smart Admin tips - Ssh passwordless authentication</title>
		<link>http://feedproxy.google.com/~r/Tuxforge/~3/yOJP5j3hUi8/</link>
		<comments>http://blog.tuxforge.com/ssh-passwordless/#comments</comments>
		<pubDate>Thu, 08 Mar 2012 12:29:12 +0000</pubDate>
		<dc:creator>Lethe</dc:creator>
				<category><![CDATA[Featured]]></category>
		<category><![CDATA[Pro Linux]]></category>
		<category><![CDATA[ssh authentication]]></category>
		<category><![CDATA[ssh copy file]]></category>
		<category><![CDATA[Ssh disable password authentication]]></category>
		<category><![CDATA[ssh passwordless]]></category>
		<category><![CDATA[ssh passwordless authentication]]></category>
		<category><![CDATA[ssh passwordless login]]></category>
		<category><![CDATA[ssh script login]]></category>
		<category><![CDATA[ssh-copy-id]]></category>
		<category><![CDATA[ssh-keygen]]></category>
		<category><![CDATA[Ubuntu ssh]]></category>

		<guid isPermaLink="false">http://blog.tuxforge.com/?p=7932</guid>
		<description><![CDATA[ Ssh passwordless authentication &#8211; Why? There are a variety of reasons why you would and should use ssh passwordless authentication, personally I tend to jump from one system to another quite frequently and probably you know better than me remembering a large number of password or even typing the same one over and over is [...]]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><div class='shareaholic-like-buttonset' style='float:none;height:30px;'><a class='shareaholic-fblike' data-shr_layout='button_count' data-shr_showfaces='false' data-shr_href='http%3A%2F%2Fblog.tuxforge.com%2Fssh-passwordless%2F' data-shr_title='Linux+Smart+Admin+tips+-+Ssh+passwordless+authentication'></a><a class='shareaholic-fbsend' data-shr_href='http%3A%2F%2Fblog.tuxforge.com%2Fssh-passwordless%2F'></a><a class='shareaholic-googleplusone' data-shr_size='medium' data-shr_count='true' data-shr_href='http%3A%2F%2Fblog.tuxforge.com%2Fssh-passwordless%2F' data-shr_title='Linux+Smart+Admin+tips+-+Ssh+passwordless+authentication'></a><a class='shareaholic-tweetbutton' data-shr_count='horizontal' data-shr_href='http%3A%2F%2Fblog.tuxforge.com%2Fssh-passwordless%2F' data-shr_title='Linux+Smart+Admin+tips+-+Ssh+passwordless+authentication'></a></div><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><!-- End Shareaholic LikeButtonSetTop Automatic --><h1><a href="http://blog.tuxforge.com/wp-content/uploads/2012/03/openssh+securid.jpg" rel="lightbox[7932]" title="Linux Smart Admin tips - Ssh passwordless authentication"><img class="alignleft size-thumbnail wp-image-7942" src="http://blog.tuxforge.com/wp-content/uploads/2012/03/openssh+securid-150x150.jpg" height="150" title="Linux Smart Admin tips   Ssh passwordless authentication" alt="openssh+securid 150x150 Linux Smart Admin tips   Ssh passwordless authentication" /></a> Ssh passwordless authentication &#8211; Why?</h1>
<p>There are a variety of reasons why you would and should use <b>ssh passwordless</b> authentication, personally I tend to jump from one system to another quite frequently and probably you know better than me remembering a large number of password or even typing the same one over and over is not fun at all.</p>
<p>Apart from personal preference there is a small bit of added security in using <i>ssh passwordless</i> authentication, as the same implies not using a password means that one is not traveling through the wire (or the air if on a wireless connection) adding a layer of security<span id="more-7932"></span></p>
<p>Last but bot least there are situation where you need one system to be able to login to a remote one without using any password, think of a cron job or a backup script that runs at night.</p>
<p>Got the idea? Like it I guess, so let&#8217;s see how to be a Linux smart admin and implement <u>ssh passwordless</u> authentication.</p>
<h2>Ssh passwordless authentication- How to</h2>
<p>The first step in implementing ssh passwordless authentication is generating a pair of private/public key that, as we will see, will be copied to the remote system for passwordless authentication via ssh, the command to create the keys is pretty straightforward, as the user for which you wish to enable ssh passwordless authentication type :</p>
<pre class="brush: bash; title: ; notranslate"> ssh-keygen </pre>
<p>You will be asked a few questions similar to the following :</p>
<pre class="brush: bash; title: ; notranslate">

Generating public/private rsa key pair.
Enter file in which to save the key (/home/lethe/.ssh/id_rsa):
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /home/lethe/.ssh/id_rsa.
Your public key has been saved in /home/lethe/.ssh/id_rsa.pub. </pre>
<p>For the sake of this example I&#8217;ve left the passphrase empty, you can choose to use one for further protection but keep in mind every time you will be connecting to the remote system you will be asked for it.</p>
<p>Ok the next, and final, step is that of copying the key to the system where we want to connect, there are few ways to accomplish this but for the sake of simplicity we will use the network to copy the key to a remote system like :</p>
<pre class="brush: bash; title: ; notranslate"> ssh-copy-id -i /home/lethe/.ssh/id_rsa.pub lethe@system02 </pre>
<p>If this is the first time connecting to the remote system you will be asked to accept its RSA key, once accepted you will be asked for the remote user&#8217;s password and then the following message will be displayed to confirm everything worked as inteded :</p>
<pre class="brush: bash; title: ; notranslate">

Now try logging into the machine, with &quot;ssh 'lethe@system02'&quot;, and check in:

.ssh/authorized_keys

to make sure we haven't added extra keys that you weren't expecting.
</pre>
<p>To test everything ssh to the remote machine and you will be immediately greeted by the motd without being asked for any password.</p>
<p>I hope you liked the article and will find it useful, if so take a second share it via the +1 button or Tweet it.</p>
<p>Cheers Lethe.</p>
<h4>Incoming search terms:</h4><ul><li><a href="http://blog.tuxforge.com/ssh-passwordless/" title="bottom">bottom</a></li><li><a href="http://blog.tuxforge.com/ssh-passwordless/" title="skype">skype</a></li><li><a href="http://blog.tuxforge.com/ssh-passwordless/" title="versions linux">versions linux</a></li><li><a href="http://blog.tuxforge.com/ssh-passwordless/" title="linux distro icons">linux distro icons</a></li><li><a href="http://blog.tuxforge.com/ssh-passwordless/" title="os logo">os logo</a></li><li><a href="http://blog.tuxforge.com/ssh-passwordless/" title="yum yum clipart">yum yum clipart</a></li><li><a href="http://blog.tuxforge.com/ssh-passwordless/" title="bash script logo">bash script logo</a></li><li><a href="http://blog.tuxforge.com/ssh-passwordless/" title="linux dis">linux dis</a></li><li><a href="http://blog.tuxforge.com/ssh-passwordless/" title="linux distributor">linux distributor</a></li><li><a href="http://blog.tuxforge.com/ssh-passwordless/" title="logo">logo</a></li></ul><div class="shr-publisher-7932"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><div class='shareaholic-like-buttonset' style='float:none;height:30px;'><a class='shareaholic-fblike' data-shr_layout='button_count' data-shr_showfaces='false' data-shr_href='http%3A%2F%2Fblog.tuxforge.com%2Fssh-passwordless%2F' data-shr_title='Linux+Smart+Admin+tips+-+Ssh+passwordless+authentication'></a><a class='shareaholic-fbsend' data-shr_href='http%3A%2F%2Fblog.tuxforge.com%2Fssh-passwordless%2F'></a><a class='shareaholic-googleplusone' data-shr_size='medium' data-shr_count='true' data-shr_href='http%3A%2F%2Fblog.tuxforge.com%2Fssh-passwordless%2F' data-shr_title='Linux+Smart+Admin+tips+-+Ssh+passwordless+authentication'></a><a class='shareaholic-tweetbutton' data-shr_count='horizontal' data-shr_href='http%3A%2F%2Fblog.tuxforge.com%2Fssh-passwordless%2F' data-shr_title='Linux+Smart+Admin+tips+-+Ssh+passwordless+authentication'></a></div><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><!-- End Shareaholic LikeButtonSetBottom Automatic --><div id="wherego_related"><h3>Readers who viewed this page, also viewed:</h3><ul><li><a href="http://blog.tuxforge.com/red-hat-certified-system-administrator-rhcsa/" rel="bookmark" class="wherego_title">Red Hat Certified System Administrator (RHCSA)</a></li><li>Powered by <a href="http://ajaydsouza.com/wordpress/plugins/where-did-they-go-from-here/">Where did they go from here?</a></li></ul></div><img src="http://feeds.feedburner.com/~r/Tuxforge/~4/yOJP5j3hUi8" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://blog.tuxforge.com/ssh-passwordless/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://blog.tuxforge.com/ssh-passwordless/</feedburner:origLink></item>
		<item>
		<title>Linux Smart Admin Tips - Tar extract to  directory | tar extract to directory</title>
		<link>http://feedproxy.google.com/~r/Tuxforge/~3/rgKpZ3-_DTU/</link>
		<comments>http://blog.tuxforge.com/tar-extract-to-directory/#comments</comments>
		<pubDate>Wed, 07 Mar 2012 11:10:45 +0000</pubDate>
		<dc:creator>Lethe</dc:creator>
				<category><![CDATA[Featured]]></category>
		<category><![CDATA[Pro Linux]]></category>
		<category><![CDATA[tar]]></category>
		<category><![CDATA[tar archive]]></category>
		<category><![CDATA[tar extract archive]]></category>
		<category><![CDATA[tar extract file]]></category>
		<category><![CDATA[tar extract to directory]]></category>
		<category><![CDATA[tar extract tpo path]]></category>

		<guid isPermaLink="false">http://blog.tuxforge.com/?p=7908</guid>
		<description><![CDATA[Starting with this post I commit myself to write every now and then posts that depict Linux &#8220;good&#8221; practices and habits, not overcomplicated posts about a specific argument but more a series of quick tips to show good Linux Admin habits. Tar extract to directory &#8211; The long way In your life as a Linux [...]]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><div class='shareaholic-like-buttonset' style='float:none;height:30px;'><a class='shareaholic-fblike' data-shr_layout='button_count' data-shr_showfaces='false' data-shr_href='http%3A%2F%2Fblog.tuxforge.com%2Ftar-extract-to-directory%2F' data-shr_title='Linux+Smart+Admin+Tips+-+Tar+extract+to++directory'></a><a class='shareaholic-fbsend' data-shr_href='http%3A%2F%2Fblog.tuxforge.com%2Ftar-extract-to-directory%2F'></a><a class='shareaholic-googleplusone' data-shr_size='medium' data-shr_count='true' data-shr_href='http%3A%2F%2Fblog.tuxforge.com%2Ftar-extract-to-directory%2F' data-shr_title='Linux+Smart+Admin+Tips+-+Tar+extract+to++directory'></a><a class='shareaholic-tweetbutton' data-shr_count='horizontal' data-shr_href='http%3A%2F%2Fblog.tuxforge.com%2Ftar-extract-to-directory%2F' data-shr_title='Linux+Smart+Admin+Tips+-+Tar+extract+to++directory'></a></div><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><!-- End Shareaholic LikeButtonSetTop Automatic --><h1><a href="http://blog.tuxforge.com/wp-content/uploads/2012/03/tar-extract-to-directory.png" rel="lightbox[7908]" title="Linux Smart Admin Tips - Tar extract to  directory"><img class="alignleft size-thumbnail wp-image-7913" src="http://blog.tuxforge.com/wp-content/uploads/2012/03/tar-extract-to-directory-150x150.png" height="150" title="Linux Smart Admin Tips   Tar extract to  directory" alt="tar extract to directory 150x150 Linux Smart Admin Tips   Tar extract to  directory" /></a></h1>
<p>Starting with this post I commit myself to write every now and then posts that depict Linux &#8220;good&#8221; practices and habits, not overcomplicated posts about a specific argument but more a series of quick tips to show good Linux Admin habits.</p>
<p><span id="more-7908"></span></p>
<h2>Tar extract to directory &#8211; The long way</h2>
<p>In your life as a Linux Admin or simple user you&#8217;ve found yourself in the situation when you need to extract the content of a tar file somewhere, what lot of people do is something like the following :</p>
<pre class="brush: bash; title: ; notranslate"> cp somefile.tar.gz /tmp/

tar zxvf somefile.tar.gz </pre>
<p>Ok while there is nothing technically wrong in the above commands it is&#8230; cumbersome!</p>
<h2>Tar extract to directory &#8211; The short (and right) way</h2>
<p>As I&#8217;ve said there is nothing wrong with the above method just there is a better and quicker way to do it which is the smart admin habit, so let&#8217;s see how to accomplish the same result as above with just with command :</p>
<pre class="brush: bash; title: ; notranslate"> tar zxvf somefile.tar.gz -C /tmp/ </pre>
<p>There you go. What I did was tell tar to extract the file directly into the /tmp/ directory. See how easy and saving quite some typing?</p>
<p>Hope you will find this quick tip useful, don&#8217;t forget to subscribe to the blog as more will follow.</p>
<p>Cheers Lethe.</p>
<h4>Incoming search terms:</h4><ul><li><a href="http://blog.tuxforge.com/tar-extract-to-directory/" title="tar linux">tar linux</a></li><li><a href="http://blog.tuxforge.com/tar-extract-to-directory/" title="tar extract to directory">tar extract to directory</a></li><li><a href="http://blog.tuxforge.com/tar-extract-to-directory/" title="linux tar extract to directory">linux tar extract to directory</a></li></ul><div class="shr-publisher-7908"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><div class='shareaholic-like-buttonset' style='float:none;height:30px;'><a class='shareaholic-fblike' data-shr_layout='button_count' data-shr_showfaces='false' data-shr_href='http%3A%2F%2Fblog.tuxforge.com%2Ftar-extract-to-directory%2F' data-shr_title='Linux+Smart+Admin+Tips+-+Tar+extract+to++directory'></a><a class='shareaholic-fbsend' data-shr_href='http%3A%2F%2Fblog.tuxforge.com%2Ftar-extract-to-directory%2F'></a><a class='shareaholic-googleplusone' data-shr_size='medium' data-shr_count='true' data-shr_href='http%3A%2F%2Fblog.tuxforge.com%2Ftar-extract-to-directory%2F' data-shr_title='Linux+Smart+Admin+Tips+-+Tar+extract+to++directory'></a><a class='shareaholic-tweetbutton' data-shr_count='horizontal' data-shr_href='http%3A%2F%2Fblog.tuxforge.com%2Ftar-extract-to-directory%2F' data-shr_title='Linux+Smart+Admin+Tips+-+Tar+extract+to++directory'></a></div><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><!-- End Shareaholic LikeButtonSetBottom Automatic --><div id="wherego_related"><h3>Readers who viewed this page, also viewed:</h3><ul><li><a href="http://blog.tuxforge.com/become-linux-systems-administrator/" rel="bookmark" class="wherego_title">How to become a Linux Systems Administrator</a></li><li><a href="http://blog.tuxforge.com/vim-add-date/" rel="bookmark" class="wherego_title">Add current date to a document in VI or VIM</a></li><li><a href="http://blog.tuxforge.com/centos-5-perl-5-10/" rel="bookmark" class="wherego_title">CentOS 5 install Perl 5.10+</a></li><li><a href="http://blog.tuxforge.com/red-hat-certified-system-administrator-rhcsa/" rel="bookmark" class="wherego_title">Red Hat Certified System Administrator (RHCSA)</a></li><li>Powered by <a href="http://ajaydsouza.com/wordpress/plugins/where-did-they-go-from-here/">Where did they go from here?</a></li></ul></div><img src="http://feeds.feedburner.com/~r/Tuxforge/~4/rgKpZ3-_DTU" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://blog.tuxforge.com/tar-extract-to-directory/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://blog.tuxforge.com/tar-extract-to-directory/</feedburner:origLink></item>
		<item>
		<title>Linux VLAN configuration</title>
		<link>http://feedproxy.google.com/~r/Tuxforge/~3/S7Tb-myhU8M/</link>
		<comments>http://blog.tuxforge.com/linux-vlan-configuration/#comments</comments>
		<pubDate>Sun, 04 Mar 2012 18:30:49 +0000</pubDate>
		<dc:creator>Lethe</dc:creator>
				<category><![CDATA[Featured]]></category>
		<category><![CDATA[Linux How to]]></category>
		<category><![CDATA[Pro Linux]]></category>
		<category><![CDATA[centos vlan]]></category>
		<category><![CDATA[centos vlan configuration]]></category>
		<category><![CDATA[linux vlan]]></category>
		<category><![CDATA[linux vlan configuration]]></category>
		<category><![CDATA[linux vlan interface]]></category>
		<category><![CDATA[linux vlan trunk]]></category>
		<category><![CDATA[suse vlan configuration]]></category>
		<category><![CDATA[vlan]]></category>
		<category><![CDATA[vlan configuration]]></category>

		<guid isPermaLink="false">http://blog.tuxforge.com/?p=7871</guid>
		<description><![CDATA[ Linux VLAN Configuration &#8211; The basics VLAN is the short acronym for &#8220;Virtual LAN&#8221; which basically translates into creating multiple, separated LAN segments on the same physical switch without the need to use multiple network switches/cables to break up the network into smaller and more manageable entities. VLAN are created for a variety of reasons among which [...]]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><div class='shareaholic-like-buttonset' style='float:none;height:30px;'><a class='shareaholic-fblike' data-shr_layout='button_count' data-shr_showfaces='false' data-shr_href='http%3A%2F%2Fblog.tuxforge.com%2Flinux-vlan-configuration%2F' data-shr_title='Linux+VLAN+configuration'></a><a class='shareaholic-fbsend' data-shr_href='http%3A%2F%2Fblog.tuxforge.com%2Flinux-vlan-configuration%2F'></a><a class='shareaholic-googleplusone' data-shr_size='medium' data-shr_count='true' data-shr_href='http%3A%2F%2Fblog.tuxforge.com%2Flinux-vlan-configuration%2F' data-shr_title='Linux+VLAN+configuration'></a><a class='shareaholic-tweetbutton' data-shr_count='horizontal' data-shr_href='http%3A%2F%2Fblog.tuxforge.com%2Flinux-vlan-configuration%2F' data-shr_title='Linux+VLAN+configuration'></a></div><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><!-- End Shareaholic LikeButtonSetTop Automatic --><h2><a href="http://blog.tuxforge.com/wp-content/uploads/2012/03/baby-tux-01.png" rel="lightbox[7871]" title="Linux VLAN configuration"><img class="alignleft size-thumbnail wp-image-7882" title="Linux VLAN configuration" src="http://blog.tuxforge.com/wp-content/uploads/2012/03/baby-tux-01-150x150.png" alt="baby tux 01 150x150 Linux VLAN configuration"  /></a> Linux VLAN Configuration &#8211; The basics</h2>
<p>VLAN is the short acronym for &#8220;Virtual LAN&#8221; which basically translates into creating multiple, separated LAN segments on the same physical switch without the need to use multiple network switches/cables to break up the network into smaller and more manageable entities. VLAN are created for a variety of reasons among which :</p>
<ul>
<li>Network performance</li>
<li>Network security</li>
<li>Manageability</li>
</ul>
<p>A complete and detailed description of VLAN is out of the scope of this post but if you are interested you can find a pretty explanatory article <a rel="nofollow" href="http://en.wikipedia.org/wiki/Virtual_LAN">here</a>.<span id="more-7871"></span></p>
<h2>Linux VLAN Configuration &#8211; HowTo</h2>
<p>In today&#8217;s network using VLAN is pretty common and luckily enough usually you don&#8217;t have to worry about configuring <b>Linux VLAN</b> to tag traffic directly at the &#8220;source&#8221; but also if you need to configure Linux to support VLAN tagging take heart as the process is pretty easy and straightforward.</p>
<p>First of all you should gather information about your network, specifically you need to know the VLAN tag that Linux should add to outgoing traffic, for the sake of this post we will use interface eth0 and a VLAN with ID 550 so with this out of the way let&#8217;s start the <i>Linux VLAN</i> configuration.</p>
<h3>Linux VLAN Configuration &#8211; Define VLAN interfaces</h3>
<p>The first step into configuring <u>Linux VLAN</u> is editing the interface configuration file, in our example eth0, to resemble what depicted below :</p>
<pre class="brush: bash; title: ; notranslate"> vi /etc/sysconfig/network-scripts/ifcfg-eth0

DEVICE=&quot;eth0&quot;
HWADDR=&quot;00:19:B9:2F:6E:71&quot;
NM_CONTROLLED=&quot;no&quot;
ONBOOT=&quot;yes&quot; </pre>
<p>Once you have modified the eth0 configuration you need to setup the VLAN configuration file so that the Linux system will be able to send out tagged traffic so create a file named after the VLAN ID like this :</p>
<pre class="brush: bash; title: ; notranslate"> vi  /etc/sysconfig/network-scripts/ifcfg-vlan450

VLAN=&quot;yes&quot;
VLAN_NAME_TYPE=&quot;VLAN_PLUS_VID_NO_PAD&quot;
DEVICE=&quot;vlan450&quot;
PHYSDEV=&quot;eth0&quot;
BOOTPROTO=&quot;static&quot;
ONBOOT=&quot;yes&quot;
TYPE=&quot;Ethernet&quot;
IPADDR=&quot;10.10.10.100&quot;
NETMASK=&quot;255.255.255.0&quot; </pre>
<p>Once you are done editing the file all you have to do is to restart network services to make the changes effective with a command like :</p>
<pre class="brush: bash; title: ; notranslate"> service network restart </pre>
<h3>Linux VLAN Configuration &#8211; Alternative method</h3>
<p>If your are not comfortable editing configuration file or simply feel like trying something different there is an alternate way to configure Linux VLAN interfaces, in this case make you have installed the package vconfig which does not come with the default installation :</p>
<pre class="brush: bash; title: ; notranslate"> yum install vconfig </pre>
<p>Once you have installed the package you can use the command vconfig to configure Linux VLAN let&#8217;s see how it works.</p>
<pre class="brush: bash; title: ; notranslate">  vconfig add eth0 450 </pre>
<p>The above command will add the necessary configuration so that interface eth0 can send traffic tagged for VLAN 450, if you need to configure Linux VLAN for multiple networks you can use a command like the following :</p>
<pre class="brush: bash; title: ; notranslate"> vconfig add eth0 10

vconfig add eth0 450 </pre>
<p>Now that you have configured your system to support VLAN you can assign an IP address to the interface created with the ifconfig command :</p>
<pre class="brush: bash; title: ; notranslate"> ifconfig eth0.450 10.10.10.100 netmask 255.255.255.0 broadcast 10.10.10.255 up </pre>
<p>You can view the information the configured Linux VLAN device with the following command :</p>
<pre class="brush: bash; title: ; notranslate"> cat /proc/net/vlan/eth0.450 </pre>
<p>If you need to remove the VLAN configuration you can do so with vconfig command like in :</p>
<pre class="brush: bash; title: ; notranslate"> vconfig rem eth0.450 </pre>
<p>Well that&#8217;s pretty much everything about the Linux VLAN configuration, I hope you did find the article useful and will take a second to retweet it or leave me a comment.</p>
<p>Cheers Lethe.</p>
<h4>Incoming search terms:</h4><ul><li><a href="http://blog.tuxforge.com/linux-vlan-configuration/" title="linux vlan tagging">linux vlan tagging</a></li><li><a href="http://blog.tuxforge.com/linux-vlan-configuration/" title="linux vlan interface">linux vlan interface</a></li><li><a href="http://blog.tuxforge.com/linux-vlan-configuration/" title="linux vlan">linux vlan</a></li><li><a href="http://blog.tuxforge.com/linux-vlan-configuration/" title="linux vlan configuration">linux vlan configuration</a></li><li><a href="http://blog.tuxforge.com/linux-vlan-configuration/" title="ass p">ass p</a></li><li><a href="http://blog.tuxforge.com/linux-vlan-configuration/" title="linux vlan config">linux vlan config</a></li><li><a href="http://blog.tuxforge.com/linux-vlan-configuration/" title="vlan configuration in linux">vlan configuration in linux</a></li><li><a href="http://blog.tuxforge.com/linux-vlan-configuration/" title="how to configure vlan tagging in linux">how to configure vlan tagging in linux</a></li><li><a href="http://blog.tuxforge.com/linux-vlan-configuration/" title="linux vlan interfaces">linux vlan interfaces</a></li><li><a href="http://blog.tuxforge.com/linux-vlan-configuration/" title="linux vlan howto">linux vlan howto</a></li></ul><div class="shr-publisher-7871"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><div class='shareaholic-like-buttonset' style='float:none;height:30px;'><a class='shareaholic-fblike' data-shr_layout='button_count' data-shr_showfaces='false' data-shr_href='http%3A%2F%2Fblog.tuxforge.com%2Flinux-vlan-configuration%2F' data-shr_title='Linux+VLAN+configuration'></a><a class='shareaholic-fbsend' data-shr_href='http%3A%2F%2Fblog.tuxforge.com%2Flinux-vlan-configuration%2F'></a><a class='shareaholic-googleplusone' data-shr_size='medium' data-shr_count='true' data-shr_href='http%3A%2F%2Fblog.tuxforge.com%2Flinux-vlan-configuration%2F' data-shr_title='Linux+VLAN+configuration'></a><a class='shareaholic-tweetbutton' data-shr_count='horizontal' data-shr_href='http%3A%2F%2Fblog.tuxforge.com%2Flinux-vlan-configuration%2F' data-shr_title='Linux+VLAN+configuration'></a></div><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><!-- End Shareaholic LikeButtonSetBottom Automatic --><div id="wherego_related"><h3>Readers who viewed this page, also viewed:</h3><ul><li><a href="http://blog.tuxforge.com/chrome-linux-x64-and-flash/" rel="bookmark" class="wherego_title">Chrome Linux x64 and Flash</a></li><li><a href="http://blog.tuxforge.com/centos-5-6/" rel="bookmark" class="wherego_title">CentOS 5.6 is out</a></li><li><a href="http://blog.tuxforge.com/service-does-not-support-chkconfig/" rel="bookmark" class="wherego_title">Service does not support chkconfig error</a></li><li><a href="http://blog.tuxforge.com/rhcsa-exam/" rel="bookmark" class="wherego_title">RHCSA Exam - Tips and tricks from the field</a></li><li>Powered by <a href="http://ajaydsouza.com/wordpress/plugins/where-did-they-go-from-here/">Where did they go from here?</a></li></ul></div><img src="http://feeds.feedburner.com/~r/Tuxforge/~4/S7Tb-myhU8M" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://blog.tuxforge.com/linux-vlan-configuration/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		<feedburner:origLink>http://blog.tuxforge.com/linux-vlan-configuration/</feedburner:origLink></item>
		<item>
		<title>RHCSA Exam - Tips and tricks from the field</title>
		<link>http://feedproxy.google.com/~r/Tuxforge/~3/D6WPxFZXKdo/</link>
		<comments>http://blog.tuxforge.com/rhcsa-exam/#comments</comments>
		<pubDate>Fri, 02 Mar 2012 19:07:50 +0000</pubDate>
		<dc:creator>Lethe</dc:creator>
				<category><![CDATA[Featured]]></category>
		<category><![CDATA[Linux Certifications]]></category>
		<category><![CDATA[RHCE]]></category>
		<category><![CDATA[free rhcsa skills]]></category>
		<category><![CDATA[RHCSA]]></category>
		<category><![CDATA[rhcsa 6]]></category>
		<category><![CDATA[rhcsa exam]]></category>
		<category><![CDATA[rhcsa material]]></category>
		<category><![CDATA[rhcsa sample]]></category>
		<category><![CDATA[rhcsa sample questions for exams]]></category>
		<category><![CDATA[rhcsa study material]]></category>
		<category><![CDATA[rhcsa syllabus]]></category>
		<category><![CDATA[rhcsa tuxforge]]></category>
		<category><![CDATA[what people think about rhcsa exam]]></category>

		<guid isPermaLink="false">http://blog.tuxforge.com/?p=7814</guid>
		<description><![CDATA[ RHCSA Exam Experience &#8211; AKA What I did to pass the exam As a twitter friend requested me to wrrite this post more than once I finally managed to put aside some spare time to write it hoping that it will help all people out there that are preparing for the RHCSA exam or plan [...]]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><div class='shareaholic-like-buttonset' style='float:none;height:30px;'><a class='shareaholic-fblike' data-shr_layout='button_count' data-shr_showfaces='false' data-shr_href='http%3A%2F%2Fblog.tuxforge.com%2Frhcsa-exam%2F' data-shr_title='RHCSA+Exam+-+Tips+and+tricks+from+the+field'></a><a class='shareaholic-fbsend' data-shr_href='http%3A%2F%2Fblog.tuxforge.com%2Frhcsa-exam%2F'></a><a class='shareaholic-googleplusone' data-shr_size='medium' data-shr_count='true' data-shr_href='http%3A%2F%2Fblog.tuxforge.com%2Frhcsa-exam%2F' data-shr_title='RHCSA+Exam+-+Tips+and+tricks+from+the+field'></a><a class='shareaholic-tweetbutton' data-shr_count='horizontal' data-shr_href='http%3A%2F%2Fblog.tuxforge.com%2Frhcsa-exam%2F' data-shr_title='RHCSA+Exam+-+Tips+and+tricks+from+the+field'></a></div><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><!-- End Shareaholic LikeButtonSetTop Automatic --><h2><a href="http://blog.tuxforge.com/wp-content/uploads/2012/03/RH_Certified_logo_RHCSA_rgb.png" rel="lightbox[7814]" title="RHCSA Exam - Tips and tricks from the field"><img class="alignleft size-thumbnail wp-image-7839" src="http://blog.tuxforge.com/wp-content/uploads/2012/03/RH_Certified_logo_RHCSA_rgb-150x150.png" height="150" title="RHCSA Exam   Tips and tricks from the field" alt="RH Certified logo RHCSA rgb 150x150 RHCSA Exam   Tips and tricks from the field" /></a> RHCSA Exam Experience &#8211; AKA What I did to pass the exam</h2>
<p>As a twitter friend requested me to wrrite this post more than once I finally managed to put aside some spare time to write it hoping that it will help all people out there that are preparing for the <b>RHCSA exam</b> or plan to do it and are not sure how to approach it or how difficult it is.</p>
<p>First of all please keep in mind that I will be covering only <u>RHCSA exam</u> in this post as that is the one I&#8217;ve taken, one month ago, as RedHat in Switzerland does not offer the combined &#8220;2 exams in 1 day&#8221; package hence I&#8217;ve been forced to split them as I don&#8217;t have the time to travel to Italy or Germany to give both exams in the same day. I&#8217;ve booked my exam for next April once I&#8217;ve been through it (again) I will write about RHCE experience as well.<span id="more-7814"></span></p>
<h2>RHCSA Exam &#8211; Preparation tools</h2>
<p>When I started writing this post the first question coming to my mind has been &#8220;Where do I start?&#8221;, well as I imagine a lot of you, like me, are impatient so I thought of starting out with the tools I used to preare for the exam. As with my last RHCE experience the main source of my preparation has been<a href="http://blog.tuxforge.com/rhcsarhce-study-guide/">Michael Jang&#8217;s book</a> which I call the &#8220;unofficial RHCE certification bible&#8221;, as last time the book has proved itself a pleasure to read thanks to the author style of writing and to the fact that it stricly follows Red Hat RHCSA <a rel="nofollow" href="http://www.redhat.com/training/courses/ex200/examobjective">exam requirements</a> checklist.</p>
<p>The above book has not been the only source of preparation but I&#8217;ve also used a number of documents from the official RHEL 6 which I always bring with me both for work and learning purposes, in the specific what has proved really useful have been the Deployment Guide and the SELinux guides, as I&#8217;ve ssaid the book iself is more than enough to get you prepared for the exam but I&#8217;m also convinced that the certification it&#8217;s just a nice piece of paper at the end of a learning path so I really like to pickup details that maybe I won&#8217;t need in the exam but will prove useful or an advantage in everyday&#8217;s work.</p>
<p>Consider the above documents as an &#8220;extra&#8221; to your preparation arsenal, specially the SELinux guide, they are not really needed but as I&#8217;ve said they are a nice bonus and specially reading the SELinux guide taught me a few nice tricks that I&#8217;ve already put at good use.</p>
<h2>RHCSA Exam &#8211; Lab Setup</h2>
<p>This is probably one of the questions that I am asked more often or read around the various forums, so what I did actually use to prepare my exam? It goes alone that RHCSA is based on, surprise surprise, Red Hat Enterprise Linux line of products so my suggestion is to use a RedHat based distribution as you host system (I personally use Fedora 16 as my desktop system but if you feel that&#8217;s a bit too much cutting edge for you CentOS makes a great and stable Desktop OS as well) for a very simple reason practice makes perfect and using a RH system on everyday&#8217;s life can teach you a few tricks useful in the exam as well, more on this in a second.</p>
<h3>RHCSA Exam &#8211; Virtualization technology</h3>
<p>Ok probably you know that virtualization is a big deal in today&#8217;s market but you should also be aware that it is now part of RedHat exams so you need to know the inside out of the default virtualization technology used for RedHat which is KVM so first step you take into the RHCSA preparation should be issuing the following command :</p>
<pre class="brush: bash; title: ; notranslate"> yum groupinstall &quot;Virtualization&quot; </pre>
<p>This will take care of installing all the needed tools to use and manage a virtual environment with KVM. Probably you will be wondering if you could use VMware products or Virtual Box and all in all there is no technical reason why you should not use one of the other available products the main reason why I prefer to use KVM is that it is what RedHat expects you to know and as part of the RHSA Syllabus you should be able to install, clone, configure virtual guests on KVM. You see the point? Free practice. Again if you feel more comfortable using another product feel free to do so, just be sure to know your stuff on KVM as it will probably appear in your RHCSA exam.</p>
<h3>RHCSA Exam &#8211; How many machines do I need?</h3>
<p>Short answer, 1 host machine and at least 1 guest virtual machine unless you want to mess around with your physical system. The slightly long answer is for the sake of RHCSA exam you don&#8217;t need a large of systems as the syllabus only require you to configure services and packages on the local system what I personally did was using a virtual machine as my test bed and a second virtual machine to test changes from outside the local host but again one machine is more than enough. As per the configuration of the Virtual Guests here&#8217;s more or less what I&#8217;ve used :</p>
<ul>
<li>Server 01 (The second optional test server has the same configuration apart from the second virtual HDD)</li>
<ul>
<li>RAM 1024MB</li>
<li>Default NAT network</li>
<li>HDD01 12GB</li>
<li>HDD02 2GB</li>
<li>Desktop installation (just for testing some of the GUI tools)</li>
<li>OS Scientific Linux 6.1/CentOS 6.2 (really unimportant the RHCSA exam</li>
</ul>
</ul>
<p>I&#8217;ve used two HDD, below the partitioning scheme, but partitioned only the first one for installing the OS and /home directories while used the second HDD for testing stuff like LUKS encryption and LVM configuration :</p>
<p>/dev/sda1 1 14 112423+ 8e Linux LVM<br />
/dev/sda2 15 28 112455 8e Linux LVM<br />
/dev/sda3 29 42 112455 8e Linux LVM<br />
/dev/sda4 43 130 706860 83 Linux</p>
<h2>RHCSA &#8211; Exam Experience FAQs</h2>
<p>Ok so with all the in and out of how I did prepare for my exam let&#8217;s discuss the exam experience itself. Let&#8217;s start with saying that my job is that of a Linux Systems Engineer and I deal daily with complex configuration and systems hence something that is &#8220;easy&#8221; for me could prove a challenge for you, or vice versa, secondly I&#8217;m already certified as RHCE so at some extent I&#8217;ve already been exposed to the stressfull exam experience and was somehow prepared but here I will try to cover every and each tip <img src='http://blog.tuxforge.com/wp-includes/images/smilies/icon_smile.gif' alt="icon smile RHCSA Exam   Tips and tricks from the field" class='wp-smiley' title="RHCSA Exam   Tips and tricks from the field" /> </p>
<p><strong><em>Are RedHat exams really so difficult?</em></strong></p>
<p>While the answers can and will vary from person to person my personal view of of the matter is RedHat exams are something totally different from the typical IT Exams people are used to, you&#8217;ve been through LPI or MCSE or Cisco exams?, being an hands on exam where you sit for 2.5 hours in a lab configuring a server with high pressure on your shoulder is not an easily endured torture <img src='http://blog.tuxforge.com/wp-includes/images/smilies/icon_smile.gif' alt="icon smile RHCSA Exam   Tips and tricks from the field" class='wp-smiley' title="RHCSA Exam   Tips and tricks from the field" /> </p>
<p>On the other hand some people, and I am among these, perform much much better when dealing with real world problems and not with the typical multiple choice kind of question which asks you if you should use the -d or the -e switch with this or that command.</p>
<p><strong><em>So the exam is easy and people are just overrating its difficulty?</em></strong></p>
<p>No the exam is difficult, but isn&#8217;t that the case with every test in life? Around the net I&#8217;ve read every kind of horror story about RedHat exams, let me tell you this IGNORE them. RHCSA Exam is tough, you need to study hard for it and know the topics by heart&#8230; if you did this you will pass without any problem. All you need to know is in the exam requirements checklist, don&#8217;t be worried about &#8220;out of syllabus questions&#8221; or stuff like that you will not see it in the RHCSA exam.</p>
<p><strong><em>Are the question tricky?</em></strong></p>
<p>Well in my experience no all question were pretty straightforward like &#8220;Do configure this service in this and that way&#8221; apart from one question on a specific subject but to that end I have to say that the proctor has been really helpful in explaining, without giving me the answer of course <img src='http://blog.tuxforge.com/wp-includes/images/smilies/icon_smile.gif' alt="icon smile RHCSA Exam   Tips and tricks from the field" class='wp-smiley' title="RHCSA Exam   Tips and tricks from the field" /> , what the test was expecting from me.</p>
<p><strong><em>Do I need to study all the topics in the Syllabus?</em></strong></p>
<p>I think I can safely tell that you will not be asked every dark detail of what you see in the exam syllabus but you should know everything as your exam could be different from mine and you are supposed to know that stuff in any case both for the exam and for real life use. In addition to study also make sure you practice everything, knowing of a service or command often is not enough and you have to test it out yourself to make sure you know what to do in case something does not go exactly as written in the book.</p>
<p><strong><em>Will I be using a Virtual or Physical system during the RHCSA exam?</em></strong></p>
<p>Both. Let me elaborate a bit, you will be given a workstation with RHEL installed which you will use as the host system on which a virtual guest could be installed/configured and that is where you will be working to complete the tasks required from the exam.</p>
<p><strong><em>Will I have access to the internet?</em></strong></p>
<p>Of course not and you will be asked to put away your phone and kindle (mentioning this as the proctor saw me with it while I was waiting to enter the test room and mentioned it during the briefing ehehe)</p>
<p><strong><em>Can I use the man pages?</em></strong></p>
<p>Yes of course, my suggestion here is try not to depend on them this is not because RedHat will ever take them away from the RHCSA exam, nobody expect you to know each and every switch for the lvm* commands, but because you are in an exam environment and the time is quick when you&#8217;re enjoying yourself.</p>
<p><em><strong>Does every candidate get the same exam (thanks to Bodanel for this one)?</strong></em></p>
<p>As reported by one of the blog readers and as it is logical no, the exam is not the same for all candidates in the lab room and between sessions so let me reiterate over a very important, maybe the most important, point know your stuff by heart. Study each subject and practice it, this will make the difference between passing and failing the exam.</p>
<p><strong><em>How much time does it take to prepare for the RHCSA exam?</em></strong></p>
<p>That really depends from person to person, personally with my working schedule it took me 4 months which also account for finding a suitable date to sit the lab. It all boils down to your experience and knowledge of Linux</p>
<p><strong><em>Can I sit the exam without any previous Linux knowledge?</em></strong></p>
<p>Will is power, the only limits we have are the only ones we impose on ourselves. It will not the be easiest path but doable.</p>
<p><strong><em>Will the RHCSA exam make a Linux engineer of me &#8220;as see in TV™&#8221;?</em></strong></p>
<p>Ok maybe not really an exam related question but I get asked this quite frequently as of lately <img src='http://blog.tuxforge.com/wp-includes/images/smilies/icon_smile.gif' alt="icon smile RHCSA Exam   Tips and tricks from the field" class='wp-smiley' title="RHCSA Exam   Tips and tricks from the field" />  No the RHCSA exam will not make an engineer of you just for holding RHCSA certification, or RHCE to that end, the exam and the paper are only the starting point the rest is hard work, study and experience.</p>
<h2>RHCSA Exam &#8211; The closing note</h2>
<p>Well I think this is more or less it, I hope to give you a good coverage of the whole RHCSA exam experience and what to expect from it, I&#8217;ve omitted any personal thought or experience and it will vary from testing center to testing center and country, I can tell both my exams in Switzerland were top and I don&#8217;t expect anything less from RedHat.</p>
<p>RHCSA exam is not an easy exam but the satisfaction you get from passing it is well worth all the efforts and the dedication that it takes to prepare for it and in this post I&#8217;ve tried to summarize all the tools and tricks I&#8217;ve used to prepare and pass the exam hoping to help you have an easy task in preparing and passing the exam.</p>
<p>If there is any question or &#8220;part&#8221; that I did not cover please feel free to leave me a comment or send me a message directly I will be more than glad to help you out and in case update the post with your suggestion, specially the FAQs part.</p>
<p>Cheers Lethe.</p>
<h4>Incoming search terms:</h4><ul><li><a href="http://blog.tuxforge.com/rhcsa-exam/" title="rhcsa exam">rhcsa exam</a></li><li><a href="http://blog.tuxforge.com/rhcsa-exam/" title="rhcsa exam dumps">rhcsa exam dumps</a></li><li><a href="http://blog.tuxforge.com/rhcsa-exam/" title="rhcsa practice exam">rhcsa practice exam</a></li><li><a href="http://blog.tuxforge.com/rhcsa-exam/" title="rhcsa sample questions">rhcsa sample questions</a></li><li><a href="http://blog.tuxforge.com/rhcsa-exam/" title="how to pass rhcsa exam">how to pass rhcsa exam</a></li><li><a href="http://blog.tuxforge.com/rhcsa-exam/" title="rhcsa exam sample questions">rhcsa exam sample questions</a></li><li><a href="http://blog.tuxforge.com/rhcsa-exam/" title="rhcsa exam experience">rhcsa exam experience</a></li><li><a href="http://blog.tuxforge.com/rhcsa-exam/" title="rhcsa exam questions and answers">rhcsa exam questions and answers</a></li><li><a href="http://blog.tuxforge.com/rhcsa-exam/" title="rhcsa dump">rhcsa dump</a></li><li><a href="http://blog.tuxforge.com/rhcsa-exam/" title="sample rhcsa exam">sample rhcsa exam</a></li></ul><div class="shr-publisher-7814"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><div class='shareaholic-like-buttonset' style='float:none;height:30px;'><a class='shareaholic-fblike' data-shr_layout='button_count' data-shr_showfaces='false' data-shr_href='http%3A%2F%2Fblog.tuxforge.com%2Frhcsa-exam%2F' data-shr_title='RHCSA+Exam+-+Tips+and+tricks+from+the+field'></a><a class='shareaholic-fbsend' data-shr_href='http%3A%2F%2Fblog.tuxforge.com%2Frhcsa-exam%2F'></a><a class='shareaholic-googleplusone' data-shr_size='medium' data-shr_count='true' data-shr_href='http%3A%2F%2Fblog.tuxforge.com%2Frhcsa-exam%2F' data-shr_title='RHCSA+Exam+-+Tips+and+tricks+from+the+field'></a><a class='shareaholic-tweetbutton' data-shr_count='horizontal' data-shr_href='http%3A%2F%2Fblog.tuxforge.com%2Frhcsa-exam%2F' data-shr_title='RHCSA+Exam+-+Tips+and+tricks+from+the+field'></a></div><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><!-- End Shareaholic LikeButtonSetBottom Automatic --><div id="wherego_related"><h3>Readers who viewed this page, also viewed:</h3><ul><li><a href="http://blog.tuxforge.com/centos-5-6/" rel="bookmark" class="wherego_title">CentOS 5.6 is out</a></li><li><a href="http://blog.tuxforge.com/rhcsarhce-study-guide/" rel="bookmark" class="wherego_title">RHCSA/RHCE Study Guide - Book review</a></li><li><a href="http://blog.tuxforge.com/vim-add-date/" rel="bookmark" class="wherego_title">Add current date to a document in VI or VIM</a></li><li><a href="http://blog.tuxforge.com/nagios-easy-setup/" rel="bookmark" class="wherego_title">How to install Nagios 3 on Centos 5.x (The easy way)</a></li><li>Powered by <a href="http://ajaydsouza.com/wordpress/plugins/where-did-they-go-from-here/">Where did they go from here?</a></li></ul></div><img src="http://feeds.feedburner.com/~r/Tuxforge/~4/D6WPxFZXKdo" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://blog.tuxforge.com/rhcsa-exam/feed/</wfw:commentRss>
		<slash:comments>25</slash:comments>
		<feedburner:origLink>http://blog.tuxforge.com/rhcsa-exam/</feedburner:origLink></item>
		<item>
		<title>SELinux Restore Default File Context</title>
		<link>http://feedproxy.google.com/~r/Tuxforge/~3/ArSZCnNOcV8/</link>
		<comments>http://blog.tuxforge.com/selinux-restore-context/#comments</comments>
		<pubDate>Tue, 03 Jan 2012 13:39:56 +0000</pubDate>
		<dc:creator>Lethe</dc:creator>
				<category><![CDATA[Featured]]></category>
		<category><![CDATA[Linux Certifications]]></category>
		<category><![CDATA[Q&A]]></category>
		<category><![CDATA[restore selinux context]]></category>
		<category><![CDATA[rhcsaselinux]]></category>
		<category><![CDATA[selinux]]></category>
		<category><![CDATA[selinux context]]></category>
		<category><![CDATA[selinux red hat]]></category>
		<category><![CDATA[selinux restorecon]]></category>

		<guid isPermaLink="false">http://blog.tuxforge.com/?p=7718</guid>
		<description><![CDATA[ Q: I&#8217;ve accidentally modified the SELinux context for a file or directory and now my application is not working any more how canI restore the default context? A: As you probably know SELinux is enabled in Enforcing mode by default on RHEL and Fedora systems and while it helps keep your system secure, of course [...]]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><div class='shareaholic-like-buttonset' style='float:none;height:30px;'><a class='shareaholic-fblike' data-shr_layout='button_count' data-shr_showfaces='false' data-shr_href='http%3A%2F%2Fblog.tuxforge.com%2Fselinux-restore-context%2F' data-shr_title='SELinux+Restore+Default+File+Context'></a><a class='shareaholic-fbsend' data-shr_href='http%3A%2F%2Fblog.tuxforge.com%2Fselinux-restore-context%2F'></a><a class='shareaholic-googleplusone' data-shr_size='medium' data-shr_count='true' data-shr_href='http%3A%2F%2Fblog.tuxforge.com%2Fselinux-restore-context%2F' data-shr_title='SELinux+Restore+Default+File+Context'></a><a class='shareaholic-tweetbutton' data-shr_count='horizontal' data-shr_href='http%3A%2F%2Fblog.tuxforge.com%2Fselinux-restore-context%2F' data-shr_title='SELinux+Restore+Default+File+Context'></a></div><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><!-- End Shareaholic LikeButtonSetTop Automatic --><p><span><a href="http://blog.tuxforge.com/wp-content/uploads/2012/01/Selinux.jpg" rel="lightbox[7718]" title="SElinux"><img class="alignleft size-thumbnail wp-image-7766" title="SElinux" src="http://blog.tuxforge.com/wp-content/uploads/2012/01/Selinux-150x150.jpg" alt="Selinux 150x150 SELinux Restore Default File Context"  /></a> </span><span style="color: #ff0000;">Q:</span> I&#8217;ve accidentally modified the <b>SELinux</b> context for a file or directory and now my application is not working any more how canI restore the default context?</p>
<p><strong><span style="color: #00ff00;">A:</span></strong> As you probably know <u>SELinux</u> is enabled in Enforcing mode by default on RHEL and Fedora systems and while it helps keep your system secure, of course it is not the panacea to all security risks just one the bricks for a better protection, sometimes it can get in the &#8220;middle&#8221; of normal operations.<span id="more-7718"></span></p>
<p>In a system protected by SELinux every file and/or directory has a default context assigned to it which is usually defined by the path under which the object is created and is defined under the <em>/etc/selinux/targeted/contexts/files</em> path in the <em>file_contexts </em>file, I encourage you to open up the file with your favorite editor and have a look at it.</p>
<p>If you changed the context of a file or directory with the <em>chcon </em>command and realize that this disrupted the normal operations of the system you can use the following basic command to restore the default SELinux context :</p>
<pre class="brush: bash; title: ; notranslate"> restorecon -v $FILENAME </pre>
<p>That&#8217;s is, SELinux will try to match the file path with he default context and will eventually assign it again to the file or directory restoring the original context and hopefully solving the malfunction of the system.</p>
<p>SELinux is a fascinating and really powerful tool which I encourage you to know and use, many administrators simply disable its control, for this reason I will write again about SELinux implementations and its troubleshooting.</p>
<p>Cheers Lethe.</p>
<h4>Incoming search terms:</h4><ul><li><a href="http://blog.tuxforge.com/selinux-restore-context/" title="vmware logo">vmware logo</a></li><li><a href="http://blog.tuxforge.com/selinux-restore-context/" title="linux distributions list">linux distributions list</a></li><li><a href="http://blog.tuxforge.com/selinux-restore-context/" title="vnc logo">vnc logo</a></li><li><a href="http://blog.tuxforge.com/selinux-restore-context/" title="workstation logo">workstation logo</a></li><li><a href="http://blog.tuxforge.com/selinux-restore-context/" title="centos6 logo">centos6 logo</a></li><li><a href="http://blog.tuxforge.com/selinux-restore-context/" title="linux os logo">linux os logo</a></li><li><a href="http://blog.tuxforge.com/selinux-restore-context/" title="redhat logos">redhat logos</a></li><li><a href="http://blog.tuxforge.com/selinux-restore-context/" title="logo linux centos">logo linux centos</a></li><li><a href="http://blog.tuxforge.com/selinux-restore-context/" title="Ubuntu root">Ubuntu root</a></li><li><a href="http://blog.tuxforge.com/selinux-restore-context/" title="logo editor">logo editor</a></li></ul><div class="shr-publisher-7718"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><div class='shareaholic-like-buttonset' style='float:none;height:30px;'><a class='shareaholic-fblike' data-shr_layout='button_count' data-shr_showfaces='false' data-shr_href='http%3A%2F%2Fblog.tuxforge.com%2Fselinux-restore-context%2F' data-shr_title='SELinux+Restore+Default+File+Context'></a><a class='shareaholic-fbsend' data-shr_href='http%3A%2F%2Fblog.tuxforge.com%2Fselinux-restore-context%2F'></a><a class='shareaholic-googleplusone' data-shr_size='medium' data-shr_count='true' data-shr_href='http%3A%2F%2Fblog.tuxforge.com%2Fselinux-restore-context%2F' data-shr_title='SELinux+Restore+Default+File+Context'></a><a class='shareaholic-tweetbutton' data-shr_count='horizontal' data-shr_href='http%3A%2F%2Fblog.tuxforge.com%2Fselinux-restore-context%2F' data-shr_title='SELinux+Restore+Default+File+Context'></a></div><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><!-- End Shareaholic LikeButtonSetBottom Automatic --><div id="wherego_related"><h3>Readers who viewed this page, also viewed:</h3><ul><li><a href="http://blog.tuxforge.com/become-linux-systems-administrator/" rel="bookmark" class="wherego_title">How to become a Linux Systems Administrator</a></li><li><a href="http://blog.tuxforge.com/generate-random-password/" rel="bookmark" class="wherego_title">Linux generate random password</a></li><li><a href="http://blog.tuxforge.com/service-does-not-support-chkconfig/" rel="bookmark" class="wherego_title">Service does not support chkconfig error</a></li><li><a href="http://blog.tuxforge.com/linux-graphical-scp/" rel="bookmark" class="wherego_title">Linux Graphical SCP</a></li><li>Powered by <a href="http://ajaydsouza.com/wordpress/plugins/where-did-they-go-from-here/">Where did they go from here?</a></li></ul></div><img src="http://feeds.feedburner.com/~r/Tuxforge/~4/ArSZCnNOcV8" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://blog.tuxforge.com/selinux-restore-context/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://blog.tuxforge.com/selinux-restore-context/</feedburner:origLink></item>
		<item>
		<title>Configure Linux VNC Server</title>
		<link>http://feedproxy.google.com/~r/Tuxforge/~3/-g-VzHIlJrk/</link>
		<comments>http://blog.tuxforge.com/linux-configure-vnc-server/#comments</comments>
		<pubDate>Sun, 01 Jan 2012 12:30:19 +0000</pubDate>
		<dc:creator>Lethe</dc:creator>
				<category><![CDATA[Featured]]></category>
		<category><![CDATA[Linux Certifications]]></category>
		<category><![CDATA[Pro Linux]]></category>
		<category><![CDATA[linux rhcsa]]></category>
		<category><![CDATA[linux vnc]]></category>
		<category><![CDATA[rhcsa linux]]></category>
		<category><![CDATA[rhcsa remote administration]]></category>
		<category><![CDATA[rhcsa vnc]]></category>
		<category><![CDATA[tigervnc]]></category>
		<category><![CDATA[vnc]]></category>
		<category><![CDATA[vnc linux]]></category>
		<category><![CDATA[vnc rhcsa]]></category>
		<category><![CDATA[vnc server]]></category>

		<guid isPermaLink="false">http://blog.tuxforge.com/?p=7736</guid>
		<description><![CDATA[ While most of the Linux servers I administer and run have no GUI installed sometimes it can be handy to administer a remote Linux workstation or server via a GUI, this is also an exam requirement for the the Red Hat Certified Systems Administration exam so let&#8217;s see how a VNC server is installed and [...]]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><div class='shareaholic-like-buttonset' style='float:none;height:30px;'><a class='shareaholic-fblike' data-shr_layout='button_count' data-shr_showfaces='false' data-shr_href='http%3A%2F%2Fblog.tuxforge.com%2Flinux-configure-vnc-server%2F' data-shr_title='Configure+Linux+VNC+Server'></a><a class='shareaholic-fbsend' data-shr_href='http%3A%2F%2Fblog.tuxforge.com%2Flinux-configure-vnc-server%2F'></a><a class='shareaholic-googleplusone' data-shr_size='medium' data-shr_count='true' data-shr_href='http%3A%2F%2Fblog.tuxforge.com%2Flinux-configure-vnc-server%2F' data-shr_title='Configure+Linux+VNC+Server'></a><a class='shareaholic-tweetbutton' data-shr_count='horizontal' data-shr_href='http%3A%2F%2Fblog.tuxforge.com%2Flinux-configure-vnc-server%2F' data-shr_title='Configure+Linux+VNC+Server'></a></div><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><!-- End Shareaholic LikeButtonSetTop Automatic --><p><a href="http://blog.tuxforge.com/wp-content/uploads/2012/01/vnc.png" rel="lightbox[7736]" title="VNC Server"><img class="alignleft size-thumbnail wp-image-7747" title="VNC Server" src="http://blog.tuxforge.com/wp-content/uploads/2012/01/vnc-150x150.png" alt="vnc 150x150 Configure Linux VNC Server"  /></a> While most of the Linux servers I administer and run have no GUI installed sometimes it can be handy to administer a remote Linux workstation or server via a GUI, this is also an exam requirement for the the Red Hat Certified Systems Administration exam so let&#8217;s see how a <b>VNC server</b> is installed and configured under Linux.</p>
<h1>Install VNC Server</h1>
<p>The first step of setting up a <i>VNC Server</i> under Linux is of course that of installing the required packages, for RHEL and its rebuilt systems the process is pretty straightforward and quick and can be achieved with the following command :<span id="more-7736"></span></p>
<pre class="brush: bash; title: ; notranslate"> yum install tigervnc-server </pre>
<p>Once yum has done installing the required package, which has very few dependencies, you can proceed to the configuration of the various VNC Sessions.</p>
<h2>Configure VNC Server</h2>
<p>Once <u>VNC server</u> has been installed you need to configure the various sessions and the ports on which the VNC server will listen, the syntax of the needed command, in its simplest form, is as follows :</p>
<pre class="brush: bash; title: ; notranslate"> vncserver </pre>
<p>When launched without any argument the command will configure the required configuration files under the user&#8217;s home directory and will create a listener on the default port for VNC which is 5901, this is good as long as you need to configure only one VNC server but how to proceed in case you need to configure multiple VNC sessions for different users? The command to accomplish this is as follows :</p>
<pre class="brush: bash; title: ; notranslate"> vncserver :2 </pre>
<p>After asking you to input a session password, the above command will configure a listening VNC Server for the current user on port 5902 as specified by the argument <em>:2 </em>which can really be any other valid number relative to the 590<em>X </em>port.</p>
<h3>VNC Server change password</h3>
<p>As anticipated the <em>vncserver </em>command will configure a VNC session for any user and will require you to input a password to protect the session, if later on you need to change the password chosen you can easily do that with the following command :</p>
<pre class="brush: bash; title: ; notranslate"> vncpasswd </pre>
<p>Again the system will require you to input the password twice and will configure it for the session.</p>
<p>To test the configuration of the VNC server just configured you can use the default viewer that ships with Linux to open a connection like in the following picture  :</p>
<p><a href="http://blog.tuxforge.com/wp-content/uploads/2012/01/VNC-Connection.png" rel="lightbox[7736]" title="VNC Connection"><img class="aligncenter size-thumbnail wp-image-7748" title="VNC Connection" src="http://blog.tuxforge.com/wp-content/uploads/2012/01/VNC-Connection-150x150.png" alt="VNC Connection 150x150 Configure Linux VNC Server"  /></a></p>
<p><a href="http://blog.tuxforge.com/wp-content/uploads/2012/01/VNC-Password.png" rel="lightbox[7736]" title="VNC Password"><img class="aligncenter size-thumbnail wp-image-7749" title="VNC Password" src="http://blog.tuxforge.com/wp-content/uploads/2012/01/VNC-Password-150x150.png" alt="VNC Password 150x150 Configure Linux VNC Server"  /></a></p>
<p>That&#8217;s all for the VNC Server configuration under Linux, I hope you did find the post useful and will look forward your comments or questions in case you have any.</p>
<p>Cheers Lethe.</p>
<h4>Incoming search terms:</h4><ul><li><a href="http://blog.tuxforge.com/linux-configure-vnc-server/" title="vmware logo png">vmware logo png</a></li><li><a href="http://blog.tuxforge.com/linux-configure-vnc-server/" title="realvnc logo">realvnc logo</a></li><li><a href="http://blog.tuxforge.com/linux-configure-vnc-server/" title="VMWare png">VMWare png</a></li><li><a href="http://blog.tuxforge.com/linux-configure-vnc-server/" title="logo vnc">logo vnc</a></li><li><a href="http://blog.tuxforge.com/linux-configure-vnc-server/" title="vnc icon">vnc icon</a></li><li><a href="http://blog.tuxforge.com/linux-configure-vnc-server/" title="vnc server linux start">vnc server linux start</a></li><li><a href="http://blog.tuxforge.com/linux-configure-vnc-server/" title="linux multiple vnc users">linux multiple vnc users</a></li><li><a href="http://blog.tuxforge.com/linux-configure-vnc-server/" title="linux vnc server no password configured">linux vnc server no password configured</a></li><li><a href="http://blog.tuxforge.com/linux-configure-vnc-server/" title="linux vnc server enable multi session">linux vnc server enable multi session</a></li><li><a href="http://blog.tuxforge.com/linux-configure-vnc-server/" title="linux configurar vnc multiple">linux configurar vnc multiple</a></li></ul><div class="shr-publisher-7736"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><div class='shareaholic-like-buttonset' style='float:none;height:30px;'><a class='shareaholic-fblike' data-shr_layout='button_count' data-shr_showfaces='false' data-shr_href='http%3A%2F%2Fblog.tuxforge.com%2Flinux-configure-vnc-server%2F' data-shr_title='Configure+Linux+VNC+Server'></a><a class='shareaholic-fbsend' data-shr_href='http%3A%2F%2Fblog.tuxforge.com%2Flinux-configure-vnc-server%2F'></a><a class='shareaholic-googleplusone' data-shr_size='medium' data-shr_count='true' data-shr_href='http%3A%2F%2Fblog.tuxforge.com%2Flinux-configure-vnc-server%2F' data-shr_title='Configure+Linux+VNC+Server'></a><a class='shareaholic-tweetbutton' data-shr_count='horizontal' data-shr_href='http%3A%2F%2Fblog.tuxforge.com%2Flinux-configure-vnc-server%2F' data-shr_title='Configure+Linux+VNC+Server'></a></div><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><!-- End Shareaholic LikeButtonSetBottom Automatic --><div id="wherego_related"><h3>Readers who viewed this page, also viewed:</h3><ul><li><a href="http://blog.tuxforge.com/fedora-16-vsftpd/" rel="bookmark" class="wherego_title">Fedora 16 unable to start vsftpd</a></li><li>Powered by <a href="http://ajaydsouza.com/wordpress/plugins/where-did-they-go-from-here/">Where did they go from here?</a></li></ul></div><img src="http://feeds.feedburner.com/~r/Tuxforge/~4/-g-VzHIlJrk" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://blog.tuxforge.com/linux-configure-vnc-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://blog.tuxforge.com/linux-configure-vnc-server/</feedburner:origLink></item>
		<item>
		<title>Fedora 16 unable to start vsftpd</title>
		<link>http://feedproxy.google.com/~r/Tuxforge/~3/guctjk8z-no/</link>
		<comments>http://blog.tuxforge.com/fedora-16-vsftpd/#comments</comments>
		<pubDate>Thu, 01 Dec 2011 06:31:23 +0000</pubDate>
		<dc:creator>Lethe</dc:creator>
				<category><![CDATA[Linux Certifications]]></category>
		<category><![CDATA[Linux How to]]></category>
		<category><![CDATA[Failed to issue method call: Unit vsftpd.service failed to load: No such file or directory. See system logs and 'systemctl status vsftpd.service' for details]]></category>
		<category><![CDATA[FC16 - missing /etc/rc.d/init.d/vsftpd - FedoraForum.org]]></category>
		<category><![CDATA[fedora 16 vsftpd]]></category>
		<category><![CDATA[fedora ftp]]></category>
		<category><![CDATA[fedora start vsftpd]]></category>
		<category><![CDATA[linux ftp]]></category>
		<category><![CDATA[Linux vsftpd]]></category>
		<category><![CDATA[vsftpd]]></category>

		<guid isPermaLink="false">http://blog.tuxforge.com/?p=7681</guid>
		<description><![CDATA[*EDIT* As the Fedora project released an updated vsftpd package which fixes the described problem the article has become obsolete, I leave it in place just as a reference. The default FTP server for the Fedora, and RHEL like distributions, is vsftpd which can be easily installed with the command : Vsftpd is a feature [...]]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><div class='shareaholic-like-buttonset' style='float:none;height:30px;'><a class='shareaholic-fblike' data-shr_layout='button_count' data-shr_showfaces='false' data-shr_href='http%3A%2F%2Fblog.tuxforge.com%2Ffedora-16-vsftpd%2F' data-shr_title='Fedora+16+unable+to+start+vsftpd'></a><a class='shareaholic-fbsend' data-shr_href='http%3A%2F%2Fblog.tuxforge.com%2Ffedora-16-vsftpd%2F'></a><a class='shareaholic-googleplusone' data-shr_size='medium' data-shr_count='true' data-shr_href='http%3A%2F%2Fblog.tuxforge.com%2Ffedora-16-vsftpd%2F' data-shr_title='Fedora+16+unable+to+start+vsftpd'></a><a class='shareaholic-tweetbutton' data-shr_count='horizontal' data-shr_href='http%3A%2F%2Fblog.tuxforge.com%2Ffedora-16-vsftpd%2F' data-shr_title='Fedora+16+unable+to+start+vsftpd'></a></div><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><!-- End Shareaholic LikeButtonSetTop Automatic --><p><a href="http://blog.tuxforge.com/wp-content/uploads/2011/12/vsftpd.jpg" rel="lightbox[7681]" title="Fedora 16 unable to start vsftpd"><img class="alignleft size-thumbnail wp-image-7682" src="http://blog.tuxforge.com/wp-content/uploads/2011/12/vsftpd-150x150.jpg" height="150" title="Fedora 16 unable to start vsftpd" alt="vsftpd 150x150 Fedora 16 unable to start vsftpd" /></a>*EDIT* As the Fedora project released an updated <b>vsftpd</b> package which fixes the described problem the article has become obsolete, I leave it in place just as a reference.</p>
<p>The default FTP server for the Fedora, and RHEL like distributions, is <i>vsftpd</i> which can be easily installed with the command :</p>
<pre class="brush: bash; title: ; notranslate"> yum install &lt;u&gt;vsftpd&lt;/u&gt; </pre>
<p>Vsftpd is a feature rich FTP server and up to today it served all my needs but the version that ships with Fedora 16 has still an unresolved <a rel="nofollow" href="https://bugzilla.redhat.com/show_bug.cgi?id=753365">bug </a>that makes starting and stopping the service awkward and in any case not as described in the official Fedora documentation. <span id="more-7681"></span></p>
<h2>Fedora 16 &#8211; Start VSFTP</h2>
<p>According to the official documentation once you have the vsftp package installed you should start the service with the command :</p>
<pre class="brush: bash; title: ; notranslate"> systemctl start vsftpd.service </pre>
<p>When launching the command you will see a message like the following :</p>
<pre class="brush: bash; title: ; notranslate"> Failed to issue method call: Unit vsftpd.service failed to load:
No such file or directory. See system logs and 'systemctl status vsftpd.service'
for details. </pre>
<p>While a patch to this problem is already available in the  Fedora testing repository if you don&#8217;t feel like messing with test updates you can easily solve the problem starting the service with the command :</p>
<pre class="brush: bash; title: ; notranslate"> systemctl start vsftpd@vsftpd.service </pre>
<p>In case you want the service to automatically start you can use the command :</p>
<pre class="brush: bash; title: ; notranslate"> systemctl enable vsftpd@.service </pre>
<p>Until the patch is fully accepted and released in the stable repositories above solution should work without any problem.</p>
<p>I hope you did find the article useful and would appreciate if you could take a second to comment or share it.</p>
<p>Cheers Lethe.</p>
<h4>Incoming search terms:</h4><ul><li><a href="http://blog.tuxforge.com/fedora-16-vsftpd/" title="success">success</a></li><li><a href="http://blog.tuxforge.com/fedora-16-vsftpd/" title="linux distro logos">linux distro logos</a></li><li><a href="http://blog.tuxforge.com/fedora-16-vsftpd/" title="rhcsa logo for resume">rhcsa logo for resume</a></li><li><a href="http://blog.tuxforge.com/fedora-16-vsftpd/" title="fedora 16 vsftpd">fedora 16 vsftpd</a></li><li><a href="http://blog.tuxforge.com/fedora-16-vsftpd/" title="red hat logo for resume">red hat logo for resume</a></li><li><a href="http://blog.tuxforge.com/fedora-16-vsftpd/" title="fedora 16 ftp server">fedora 16 ftp server</a></li><li><a href="http://blog.tuxforge.com/fedora-16-vsftpd/" title="vsftpd fedora 16">vsftpd fedora 16</a></li><li><a href="http://blog.tuxforge.com/fedora-16-vsftpd/" title="no spam">no spam</a></li><li><a href="http://blog.tuxforge.com/fedora-16-vsftpd/" title="red hat certified engineer logo">red hat certified engineer logo</a></li><li><a href="http://blog.tuxforge.com/fedora-16-vsftpd/" title="linux admin">linux admin</a></li></ul><div class="shr-publisher-7681"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><div class='shareaholic-like-buttonset' style='float:none;height:30px;'><a class='shareaholic-fblike' data-shr_layout='button_count' data-shr_showfaces='false' data-shr_href='http%3A%2F%2Fblog.tuxforge.com%2Ffedora-16-vsftpd%2F' data-shr_title='Fedora+16+unable+to+start+vsftpd'></a><a class='shareaholic-fbsend' data-shr_href='http%3A%2F%2Fblog.tuxforge.com%2Ffedora-16-vsftpd%2F'></a><a class='shareaholic-googleplusone' data-shr_size='medium' data-shr_count='true' data-shr_href='http%3A%2F%2Fblog.tuxforge.com%2Ffedora-16-vsftpd%2F' data-shr_title='Fedora+16+unable+to+start+vsftpd'></a><a class='shareaholic-tweetbutton' data-shr_count='horizontal' data-shr_href='http%3A%2F%2Fblog.tuxforge.com%2Ffedora-16-vsftpd%2F' data-shr_title='Fedora+16+unable+to+start+vsftpd'></a></div><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><!-- End Shareaholic LikeButtonSetBottom Automatic --><div id="wherego_related"><h3>Readers who viewed this page, also viewed:</h3><ul><li><a href="http://blog.tuxforge.com/linux-kill-multiple-process/" rel="bookmark" class="wherego_title">Linux kill multiple process with a single command</a></li><li><a href="http://blog.tuxforge.com/rhce-scripting/" rel="bookmark" class="wherego_title">RHCE Practice Lab - Scripting</a></li><li><a href="http://blog.tuxforge.com/linux-configure-vnc-server/" rel="bookmark" class="wherego_title">Configure Linux VNC Server</a></li><li>Powered by <a href="http://ajaydsouza.com/wordpress/plugins/where-did-they-go-from-here/">Where did they go from here?</a></li></ul></div><img src="http://feeds.feedburner.com/~r/Tuxforge/~4/guctjk8z-no" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://blog.tuxforge.com/fedora-16-vsftpd/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		<feedburner:origLink>http://blog.tuxforge.com/fedora-16-vsftpd/</feedburner:origLink></item>
		<item>
		<title>Linux kill multiple process with a single command</title>
		<link>http://feedproxy.google.com/~r/Tuxforge/~3/FYQY56J0ZDE/</link>
		<comments>http://blog.tuxforge.com/linux-kill-multiple-process/#comments</comments>
		<pubDate>Mon, 28 Nov 2011 10:55:28 +0000</pubDate>
		<dc:creator>Lethe</dc:creator>
				<category><![CDATA[Linux How to]]></category>
		<category><![CDATA[Pro Linux]]></category>
		<category><![CDATA[kill -9]]></category>
		<category><![CDATA[linux kill multiple processes]]></category>
		<category><![CDATA[linux kill process]]></category>
		<category><![CDATA[linux processes]]></category>
		<category><![CDATA[ps]]></category>
		<category><![CDATA[red hat processes]]></category>

		<guid isPermaLink="false">http://blog.tuxforge.com/?p=7669</guid>
		<description><![CDATA[ Sometimes it can be useful to kill multiple processes with a single command, while using a combination of ps and grep can help you hunt down the process you need and to kill it this is not the easiest or fastest  approach if you need to kill a large number of processes. Let&#8217;s see how [...]]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><div class='shareaholic-like-buttonset' style='float:none;height:30px;'><a class='shareaholic-fblike' data-shr_layout='button_count' data-shr_showfaces='false' data-shr_href='http%3A%2F%2Fblog.tuxforge.com%2Flinux-kill-multiple-process%2F' data-shr_title='Linux+kill+multiple+process+with+a+single+command'></a><a class='shareaholic-fbsend' data-shr_href='http%3A%2F%2Fblog.tuxforge.com%2Flinux-kill-multiple-process%2F'></a><a class='shareaholic-googleplusone' data-shr_size='medium' data-shr_count='true' data-shr_href='http%3A%2F%2Fblog.tuxforge.com%2Flinux-kill-multiple-process%2F' data-shr_title='Linux+kill+multiple+process+with+a+single+command'></a><a class='shareaholic-tweetbutton' data-shr_count='horizontal' data-shr_href='http%3A%2F%2Fblog.tuxforge.com%2Flinux-kill-multiple-process%2F' data-shr_title='Linux+kill+multiple+process+with+a+single+command'></a></div><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><!-- End Shareaholic LikeButtonSetTop Automatic --><p><a href="http://blog.tuxforge.com/wp-content/uploads/2011/11/processes.jpg" rel="lightbox[7669]" title="Linux processes"><img class="alignleft size-thumbnail wp-image-7674" title="Linux processes" src="http://blog.tuxforge.com/wp-content/uploads/2011/11/processes-150x150.jpg" alt="processes 150x150 Linux kill multiple process with a single command" width="150" height="150" /></a> Sometimes it can be useful to kill multiple processes with a single command, while using a combination of ps and grep can help you hunt down the process you need and to kill it this is not the easiest or fastest  approach if you need to kill a large number of processes. Let&#8217;s see how to do this.</p>
<p>The first step would be getting a list of the interesting processes we need to kill, in this example I will use the NFS daemon, which can easily be accomplished with a command similar to the following :</p>
<pre class="brush: bash; title: ; notranslate"> ps -ef  | grep nfs </pre>
<p><span id="more-7669"></span></p>
<pre></pre>
<p>The command on my system produced the following output :</p>
<pre class="brush: bash; title: ; notranslate"> ps -ef | grep nfs
root      1873     2  0 08:50 ?        00:00:00 [nfsd4]
root      1874     2  0 08:50 ?        00:00:00 [nfsd4_callbacks]
root      1875     2  0 08:50 ?        00:00:00 [nfsd]
root      1876     2  0 08:50 ?        00:00:00 [nfsd]
root      1877     2  0 08:50 ?        00:00:00 [nfsd]
root      1878     2  0 08:50 ?        00:00:00 [nfsd]
root      1879     2  0 08:50 ?        00:00:00 [nfsd]
root      1880     2  0 08:50 ?        00:00:00 [nfsd]
root      1881     2  0 08:50 ?        00:00:00 [nfsd]
root      1882     2  0 08:50 ?        00:00:00 [nfsd]
root      4835  4554  0 18:43 pts/0    00:00:00 grep nfs
</pre>
<p>Ok we can see the full list of processes bound to NFS together with other information we actually don&#8217;t need, what is really interesting for us is PID of the process which is exposed in the second column of the output so let&#8217;s call awk to help us in the task :</p>
<pre class="brush: bash; title: ; notranslate"> ps -ef | grep nfs | awk '{print $2}' </pre>
<p>The above command will list all processes on the system bout to NFS but this time instead of printing everything  it will print on screen only the content of the second output column which again on my system looks like :</p>
<pre class="brush: bash; title: ; notranslate"> ps -ef | grep nfs | awk '{print $2}'
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
4871
</pre>
<p>Ok we&#8217;re almost there, now let&#8217;s put all together and let&#8217;s kill all the processes  with the command :</p>
<pre class="brush: bash; title: ; notranslate">  kill `ps -ef | grep nfs | awk '{print $2}'` </pre>
<p>That&#8217;s it all the processes that results from our expression will be killed with the single command, that is even easy to script when you often need to kill processes on a server (I keep a copy of it on one of my lab machines where I often run a script that launches 100+ instances of the same program and need to kill them all).</p>
<p>I hope you will find the article interesting and useful and would appreciate if you could take the time to retweet or share it.</p>
<p>Cheers Lethe.</p>
<h4>Incoming search terms:</h4><ul><li><a href="http://blog.tuxforge.com/linux-kill-multiple-process/" title="kill multiple processes linux">kill multiple processes linux</a></li><li><a href="http://blog.tuxforge.com/linux-kill-multiple-process/" title="how to kill multiple process in linux">how to kill multiple process in linux</a></li><li><a href="http://blog.tuxforge.com/linux-kill-multiple-process/" title="linux kill multiple processes">linux kill multiple processes</a></li><li><a href="http://blog.tuxforge.com/linux-kill-multiple-process/" title="how to kill multiple processes in linux">how to kill multiple processes in linux</a></li><li><a href="http://blog.tuxforge.com/linux-kill-multiple-process/" title="killing multiple processes in linux">killing multiple processes in linux</a></li><li><a href="http://blog.tuxforge.com/linux-kill-multiple-process/" title="complete linux distro logo">complete linux distro logo</a></li><li><a href="http://blog.tuxforge.com/linux-kill-multiple-process/" title="kill multiple processes in linux">kill multiple processes in linux</a></li><li><a href="http://blog.tuxforge.com/linux-kill-multiple-process/" title="kill multiple process linux">kill multiple process linux</a></li><li><a href="http://blog.tuxforge.com/linux-kill-multiple-process/" title="linux command to kill mutiple process at same time grep -v prep | awk print | xargs">linux command to kill mutiple process at same time grep -v prep | awk print | xargs</a></li><li><a href="http://blog.tuxforge.com/linux-kill-multiple-process/" title="how kill huge number of the process linux">how kill huge number of the process linux</a></li></ul><div class="shr-publisher-7669"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><div class='shareaholic-like-buttonset' style='float:none;height:30px;'><a class='shareaholic-fblike' data-shr_layout='button_count' data-shr_showfaces='false' data-shr_href='http%3A%2F%2Fblog.tuxforge.com%2Flinux-kill-multiple-process%2F' data-shr_title='Linux+kill+multiple+process+with+a+single+command'></a><a class='shareaholic-fbsend' data-shr_href='http%3A%2F%2Fblog.tuxforge.com%2Flinux-kill-multiple-process%2F'></a><a class='shareaholic-googleplusone' data-shr_size='medium' data-shr_count='true' data-shr_href='http%3A%2F%2Fblog.tuxforge.com%2Flinux-kill-multiple-process%2F' data-shr_title='Linux+kill+multiple+process+with+a+single+command'></a><a class='shareaholic-tweetbutton' data-shr_count='horizontal' data-shr_href='http%3A%2F%2Fblog.tuxforge.com%2Flinux-kill-multiple-process%2F' data-shr_title='Linux+kill+multiple+process+with+a+single+command'></a></div><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><!-- End Shareaholic LikeButtonSetBottom Automatic --><div id="wherego_related"><h3>Readers who viewed this page, also viewed:</h3><ul><li><a href="http://blog.tuxforge.com/become-linux-systems-administrator/" rel="bookmark" class="wherego_title">How to become a Linux Systems Administrator</a></li><li><a href="http://blog.tuxforge.com/nagios-easy-setup/" rel="bookmark" class="wherego_title">How to install Nagios 3 on Centos 5.x (The easy way)</a></li><li><a href="http://blog.tuxforge.com/test-smtp-connection-script/" rel="bookmark" class="wherego_title">How to test SMTP Connection</a></li><li><a href="http://blog.tuxforge.com/linux-change-duplex/" rel="bookmark" class="wherego_title">Linux change the speed and duplex settings of an Ethernet card | linux change duplex settings</a></li><li>Powered by <a href="http://ajaydsouza.com/wordpress/plugins/where-did-they-go-from-here/">Where did they go from here?</a></li></ul></div><img src="http://feeds.feedburner.com/~r/Tuxforge/~4/FYQY56J0ZDE" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://blog.tuxforge.com/linux-kill-multiple-process/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		<feedburner:origLink>http://blog.tuxforge.com/linux-kill-multiple-process/</feedburner:origLink></item>
		<item>
		<title>Linux change the speed and duplex settings of an Ethernet card | linux change duplex settings</title>
		<link>http://feedproxy.google.com/~r/Tuxforge/~3/XgVpz7cZLmI/</link>
		<comments>http://blog.tuxforge.com/linux-change-duplex/#comments</comments>
		<pubDate>Tue, 01 Nov 2011 18:27:02 +0000</pubDate>
		<dc:creator>Lethe</dc:creator>
				<category><![CDATA[Linux How to]]></category>
		<category><![CDATA[Pro Linux]]></category>
		<category><![CDATA[change network duplex]]></category>
		<category><![CDATA[change speed settings]]></category>
		<category><![CDATA[duplex setting]]></category>
		<category><![CDATA[ethtool]]></category>
		<category><![CDATA[ethtool duplex]]></category>
		<category><![CDATA[linux change duplex]]></category>
		<category><![CDATA[linux change duplex settings]]></category>
		<category><![CDATA[linux change speed settings]]></category>
		<category><![CDATA[linux duplex]]></category>
		<category><![CDATA[linux duplex and speed settings]]></category>
		<category><![CDATA[linux duplex settings]]></category>
		<category><![CDATA[linux ethtool]]></category>

		<guid isPermaLink="false">http://blog.tuxforge.com/?p=7648</guid>
		<description><![CDATA[ Q: I need to change the speed and duplex settings for my network card, is this possible? A: Under Linux you can use the built-in tool ethtool to display and change the duplex settings for your network card under Linux, depending on the NIC installed on your system you could try to use the mii-tool [...]]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><div class='shareaholic-like-buttonset' style='float:none;height:30px;'><a class='shareaholic-fblike' data-shr_layout='button_count' data-shr_showfaces='false' data-shr_href='http%3A%2F%2Fblog.tuxforge.com%2Flinux-change-duplex%2F' data-shr_title='Linux+change+the+speed+and+duplex+settings+of+an+Ethernet+card'></a><a class='shareaholic-fbsend' data-shr_href='http%3A%2F%2Fblog.tuxforge.com%2Flinux-change-duplex%2F'></a><a class='shareaholic-googleplusone' data-shr_size='medium' data-shr_count='true' data-shr_href='http%3A%2F%2Fblog.tuxforge.com%2Flinux-change-duplex%2F' data-shr_title='Linux+change+the+speed+and+duplex+settings+of+an+Ethernet+card'></a><a class='shareaholic-tweetbutton' data-shr_count='horizontal' data-shr_href='http%3A%2F%2Fblog.tuxforge.com%2Flinux-change-duplex%2F' data-shr_title='Linux+change+the+speed+and+duplex+settings+of+an+Ethernet+card'></a></div><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><!-- End Shareaholic LikeButtonSetTop Automatic --><p><strong><span style="color: #ff0000"><a href="http://blog.tuxforge.com/wp-content/uploads/2011/11/Ethernet.jpg" rel="lightbox[7648]" title="Linux change the speed and duplex settings of an Ethernet card"><img class="alignleft size-thumbnail wp-image-7649" src="http://blog.tuxforge.com/wp-content/uploads/2011/11/Ethernet-150x150.jpg" height="150" title="Linux change the speed and duplex settings of an Ethernet card" alt="Ethernet 150x150 Linux change the speed and duplex settings of an Ethernet card" /></a> Q:</span></strong> I need to change the speed and duplex settings for my network card, is this possible?</p>
<p><strong><span style="color: #00ff00">A:</span></strong> Under Linux you can use the built-in tool <strong>ethtool </strong>to display and change the duplex settings for your network card under Linux, depending on the NIC installed on your system you could try to use the mii-tool as well. In my experience ethtool works for most of the modern network cards so I will describe only the use of this tool<span id="more-7648"></span></p>
<h2>Install ethtool</h2>
<p>Depending on your system ethtool could be already present and so you  will be able to change duplex settings right away, in case it is not present you can easily install with the following command:</p>
<pre class="brush: bash; title: ; notranslate"> yum install ethtool </pre>
<p>Or if you are using Debian or Ubuntu with the command :</p>
<pre class="brush: bash; title: ; notranslate"> apt-get install ehtool </pre>
<h2>Get information of duplex settings for network card</h2>
<p>Once you have installed the tools of the trade is time to show test they are functioning, the syntax of the command is pretty straightforward all you have to do for a basic test is launch the command <strong>ethtool </strong>followed by the name of the interface for which we want to get information here&#8217;s output for my eth0 interface :</p>
<pre class="brush: bash; title: ; notranslate"> Settings for eth0:
Supported ports: [ TP MII ]
Supported link modes:   10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Half 1000baseT/Full
Supports auto-negotiation: Yes
Advertised link modes:  10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Half 1000baseT/Full
Advertised pause frame use: Symmetric Receive-only
Advertised auto-negotiation: Yes
Speed: 10Mb/s
Duplex: Half
Port: MII
PHYAD: 0
Transceiver: internal
Auto-negotiation: on
Supports Wake-on: pumbg
Wake-on: g
Current message level: 0x00000033 (51)
drv probe ifdown ifup
Link detected: no
</pre>
<p>In the above output you can see all important information about the network card, it is disconnected so your output could be slightly different, assuming that you need to configure you card to operate on full duplex at a speed of 100 Mbps you would use the following command :</p>
<pre class="brush: bash; title: ; notranslate"> ethtool -s eth0 speed 100 duplex full

ethtool -s eth0 speed 100 duplex half

ethtool -s eth0 speed 10 duplex full </pre>
<p>As you can see above I gave multiple examples on how to use ethtool to configure various duplex setting for the network card, be aware that changes made this way will not survive a reboot and so are a good way to test different settings.</p>
<h2>Make Duplex Settings change permanent</h2>
<p>Once you have configured your network card to the correct duplex settings you will want to make the changes permanent, to do so you will need to change the configuration file for your network card in our example the file will be <strong>/etc/sysconfig/network-scripts/ifcfg-eth0</strong> on a Red Hat based system and add the following text :</p>
<pre class="brush: bash; title: ; notranslate"> ETHTOOL_OPTS=&quot;speed 100 duplex full autoneg off&quot;

service networking restart </pre>
<p>The above will set the speed of the network card to 100 Mbps with full duplex enabled disabling auto negotiation, the last command is needed so that Linux will pick up the duplex changes, of course you could also reboot the server but I prefer to leave that to the Windows world <img src='http://blog.tuxforge.com/wp-includes/images/smilies/icon_smile.gif' alt="icon smile Linux change the speed and duplex settings of an Ethernet card" class='wp-smiley' title="Linux change the speed and duplex settings of an Ethernet card" /> </p>
<p>Under Debian/Ubuntu the needed steps are slightly different, in this case you will need to create a bash script and put something like the following code :</p>
<pre class="brush: bash; title: ; notranslate"> #!/bin/sh
 ETHTOOL=&quot;/usr/sbin/ethtool&quot;
 DEV=&quot;eth0&quot;
 SPEED=&quot;100 duplex full&quot;
 case &quot;$1&quot; in
 start)
 echo -n &quot;Setting eth0 speed 100 duplex full...&quot;;
 $ETHTOOL -s $DEV speed $SPEED;
 echo &quot; done.&quot;;;
 stop)
 ;;
 esac
 exit 0 </pre>
<p>Once saved the script make it executable and copy it under the <em>/etc/init.d/ </em>directory and finally add it to the startup sequence with the command :</p>
<pre class="brush: bash; title: ; notranslate"> update-rc.d &lt;your_script&gt; defaults </pre>
<p>You can try to restart the system to check the results of the new configuration.</p>
<p>That&#8217;s all you need to change duplex settings under Linux, ethtool is invaluable when testing and troubleshooting network related problems and I hope this post will help you as well.</p>
<p>In case you face any problem feel free to write me or leave a command and I will be more than glad to help you out.</p>
<p>Cheers Lethe.</p>
<h4>Incoming search terms:</h4><ul><li><a href="http://blog.tuxforge.com/linux-change-duplex/" title="Yum-yum">Yum-yum</a></li><li><a href="http://blog.tuxforge.com/linux-change-duplex/" title="how to change duplex settings in linux">how to change duplex settings in linux</a></li><li><a href="http://blog.tuxforge.com/linux-change-duplex/" title="redhat certified engineer logo">redhat certified engineer logo</a></li><li><a href="http://blog.tuxforge.com/linux-change-duplex/" title="pictures of yum">pictures of yum</a></li><li><a href="http://blog.tuxforge.com/linux-change-duplex/" title="change ethernet speed linux">change ethernet speed linux</a></li><li><a href="http://blog.tuxforge.com/linux-change-duplex/" title="rehat linux set speed duplex">rehat linux set speed duplex</a></li><li><a href="http://blog.tuxforge.com/linux-change-duplex/" title="kvm virtual network speed: 10mb/s">kvm virtual network speed: 10mb/s</a></li><li><a href="http://blog.tuxforge.com/linux-change-duplex/" title="linux add ethtool duplex settings to a network card permanently">linux add ethtool duplex settings to a network card permanently</a></li><li><a href="http://blog.tuxforge.com/linux-change-duplex/" title="linux change the speed and duplex settings">linux change the speed and duplex settings</a></li><li><a href="http://blog.tuxforge.com/linux-change-duplex/" title="Linux commands to force speed and duplex">Linux commands to force speed and duplex</a></li></ul><div class="shr-publisher-7648"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><div class='shareaholic-like-buttonset' style='float:none;height:30px;'><a class='shareaholic-fblike' data-shr_layout='button_count' data-shr_showfaces='false' data-shr_href='http%3A%2F%2Fblog.tuxforge.com%2Flinux-change-duplex%2F' data-shr_title='Linux+change+the+speed+and+duplex+settings+of+an+Ethernet+card'></a><a class='shareaholic-fbsend' data-shr_href='http%3A%2F%2Fblog.tuxforge.com%2Flinux-change-duplex%2F'></a><a class='shareaholic-googleplusone' data-shr_size='medium' data-shr_count='true' data-shr_href='http%3A%2F%2Fblog.tuxforge.com%2Flinux-change-duplex%2F' data-shr_title='Linux+change+the+speed+and+duplex+settings+of+an+Ethernet+card'></a><a class='shareaholic-tweetbutton' data-shr_count='horizontal' data-shr_href='http%3A%2F%2Fblog.tuxforge.com%2Flinux-change-duplex%2F' data-shr_title='Linux+change+the+speed+and+duplex+settings+of+an+Ethernet+card'></a></div><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><!-- End Shareaholic LikeButtonSetBottom Automatic --><div id="wherego_related"><h3>Readers who viewed this page, also viewed:</h3><ul><li><a href="http://blog.tuxforge.com/kvm-failed-to-start-domain/" rel="bookmark" class="wherego_title">KVM - Failed to start domain connection reset by peer | KVM Failed to start domain</a></li><li>Powered by <a href="http://ajaydsouza.com/wordpress/plugins/where-did-they-go-from-here/">Where did they go from here?</a></li></ul></div><img src="http://feeds.feedburner.com/~r/Tuxforge/~4/XgVpz7cZLmI" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://blog.tuxforge.com/linux-change-duplex/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		<feedburner:origLink>http://blog.tuxforge.com/linux-change-duplex/</feedburner:origLink></item>
	</channel>
</rss>
