<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>

<channel>
	<title>cmdln.org (a sysadmin blog)</title>
	<atom:link href="http://www.cmdln.org/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.cmdln.org</link>
	<description>a system administrators mutterings</description>
	<pubDate>Fri, 29 Aug 2008 07:56:58 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5</generator>
	<language>en</language>
			<item>
		<title>10 Traits of a Successful SysAdmin</title>
		<link>http://www.cmdln.org/2008/08/29/10-traits-of-a-successful-sysadmin/</link>
		<comments>http://www.cmdln.org/2008/08/29/10-traits-of-a-successful-sysadmin/#comments</comments>
		<pubDate>Fri, 29 Aug 2008 07:56:58 +0000</pubDate>
		<dc:creator>cmdln</dc:creator>
		
		<category><![CDATA[administration]]></category>

		<category><![CDATA[tips]]></category>

		<category><![CDATA[personal growth]]></category>

		<category><![CDATA[sys admin]]></category>

		<category><![CDATA[sysadmin]]></category>

		<category><![CDATA[systems administrator]]></category>

		<category><![CDATA[top 10]]></category>

		<guid isPermaLink="false">http://www.cmdln.org/?p=82</guid>
		<description><![CDATA[I was recently asked how I became a Systems Administrator. I answered with the normal story of my life and moved on. However, it got me thinking about what has actually led me to where I am. A colleague of mine had recently mentioned how people love top x lists and best x lists so [...]]]></description>
			<content:encoded><![CDATA[<p>I was recently asked how I became a Systems Administrator. I answered with the normal story of my life and moved on. However, it got me thinking about what has actually led me to where I am. A colleague of mine had recently mentioned how people love top x lists and best x lists so I sat down and came up with my list of top 10 traits of a Systems Administrator.<span id="more-82"></span></p>
<p><strong>9. Don&#8217;t be afraid to be wrong</strong><br />
Learning from your mistakes is extremely important. No one can be perfect, you can strive to be, but everyone makes mistakes. Recognize your mistakes and figure out how to not repeat them.<br />
<strong>8. Give credit where credit is due</strong><br />
If a colleague solved one of your problems, or had a great idea be sure to give them the credit. This is beneficial in several ways. First, it makes that person feel good. Second, they will continue to bring you solutions and ideas. Third, you won&#8217;t look like an ass for always trying to be &#8220;the man&#8221; (or woman as the case may be). Fourth, it will (or should) make you feel good to praise someones good idea after all you like your good ideas praised.<br />
<strong>7. Don&#8217;t be afraid to be right</strong><br />
You are an expert. You may not be THE expert but you are an expert. There are (or should be) valid reasons for your decisions. Don&#8217;t back down for politics sake or because you (in the back of your mind are unsure).<br />
<strong>6. Be open minded</strong><br />
Just because you are an expert doesn&#8217;t mean you should not listen to others. If an idea is brought up at least consider it (even if only momentarily).<br />
<strong>5. Be cordial</strong><br />
Be kind to your users. They are the reason you have a job, can afford to drive to work (or own the fancy bicycle to save the trees). Yes that means don&#8217;t immediately say NO when a user asks if they can have a sticky note on their screen with their password on it. Explain why it&#8217;s not a good idea, offer to help them come up with a secure AND memorable password. Ask them if they understand why you have asked them to do something a certain way. This makes them feel happy about you being around, makes you (or should) feel happy about helping, and ultimately makes your job easier in the long run. Your users will be more willing to accept change even if it scares them because they know your there to back them up and their past experience should prove that it&#8217;s for the best.<br />
<strong>4. Share information</strong><br />
Sharing information is important. It allows everyone to be on the same page. If it is not company secret (like the fact that you have slave pidgin labor) or your root password then share it. Share it with your co-workers, share it with the community. Good information is hard to find, help someone get home before 2am and post how to rebuild a software raid. Have a blog, write documentation! Never forget the <a href="http://en.wikipedia.org/wiki/Bus_factor">Bus Factor</a>.<br />
<strong>3. Be discrete</strong><br />
You are entrusted with sensitive information. As a sys admin you may have access to everything from payroll to, hiring and firing, to passwords, and even other general personal and company data that needs to remain private. Do not break this trust. As Uncle Ben said, &#8220;With great power comes great responsibility.&#8221;<br />
<strong>2. Work Hard</strong><br />
Have a great work ethic. Be there when the job needs done. Spend the extra time to get things working as best you can. In the long run it will help you with the next trait on my list.<br />
<strong>1. Be Lazy</strong><br />
Thats right, &#8220;Be Lazy&#8221;. Good sysadmins are lazy sysadmins. They want to sit and not be bothered by fires. Good sysadmins go to great lengths to be lazy. They write scripts to automate their jobs in the never ending quest of automating themselves out of a job.<br />
<strong>0. Be passionate and Never Stop Learning</strong><br />
This I consider to be one of the most important traits of a successful Systems Administrator (or anyone for that matter). Be passionate about what you do. When you love your work its not hard to get out of bed in the morning, its not hard to stay up writing until 2:56am. Its not hard to constantly be on top of emerging technologies. Just because they are new and should not be implemented does not mean you should not follow the progress. Work can begin now on a project that may not come to fruition for years, but when the time comes you will be familiar and will not have to spend months getting a basic understanding of a system only to deploy and have no idea how to deal with the inevitable failure of a system. Read, Listen, Watch, Talk to people who know more than you.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.cmdln.org/2008/08/29/10-traits-of-a-successful-sysadmin/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Console sharing without setuid gnu screen</title>
		<link>http://www.cmdln.org/2008/08/25/console-sharing-without-setuid-gnu-screen/</link>
		<comments>http://www.cmdln.org/2008/08/25/console-sharing-without-setuid-gnu-screen/#comments</comments>
		<pubDate>Mon, 25 Aug 2008 21:34:33 +0000</pubDate>
		<dc:creator>cmdln</dc:creator>
		
		<category><![CDATA[administration]]></category>

		<category><![CDATA[security]]></category>

		<category><![CDATA[tips]]></category>

		<category><![CDATA[kibitz]]></category>

		<category><![CDATA[screen]]></category>

		<category><![CDATA[shared console]]></category>

		<guid isPermaLink="false">http://www.cmdln.org/?p=81</guid>
		<description><![CDATA[I mentioned in my last post Shared console sessions that I would have an update to get near same functionality without setuid of the screen binary. Well here it is. Hopefully you are aware of expect and how it can be used to automate interactive programs like telnet. Expect is has many more uses that [...]]]></description>
			<content:encoded><![CDATA[<p>I mentioned in my last post <a href="http://www.cmdln.org/2008/08/13/shared-console-sessions/">Shared console sessions</a> that I would have an update to get near same functionality without setuid of the screen binary. Well here it is. Hopefully you are aware of expect and how it can be used to automate interactive programs like telnet. Expect is has many more uses that people are exploiting. Enter kibitz. <span id="more-81"></span><br />
Kibitz allows two (or more) people to interact with one shell. Kibitz comes along buried in the examples of expect (in Debian see package libexpect-perl). Its fairly easy to use but one note any person expecting to use it should have messaging enabled as it also uses talk.</p>
<p><code>mesg y</code></p>
<p>To initiate a shared session just run </p>
<p><code>/usr/share/doc/libexpect-perl/examples/kibitz user</code></p>
<p>where user is the user that you would like to share a session with. Kibitz will then prompt that user to run a kibitz command that will connect them to the shared session.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.cmdln.org/2008/08/25/console-sharing-without-setuid-gnu-screen/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Shared console sessions</title>
		<link>http://www.cmdln.org/2008/08/13/shared-console-sessions/</link>
		<comments>http://www.cmdln.org/2008/08/13/shared-console-sessions/#comments</comments>
		<pubDate>Thu, 14 Aug 2008 01:14:34 +0000</pubDate>
		<dc:creator>cmdln</dc:creator>
		
		<category><![CDATA[administration]]></category>

		<category><![CDATA[howto]]></category>

		<category><![CDATA[security]]></category>

		<category><![CDATA[screen]]></category>

		<category><![CDATA[shared command line]]></category>

		<category><![CDATA[shared console]]></category>

		<category><![CDATA[shared session]]></category>

		<category><![CDATA[shared terminal]]></category>

		<guid isPermaLink="false">http://www.cmdln.org/?p=80</guid>
		<description><![CDATA[I have had several posts regarding screen. Hopefully you have already realized the greatness of screen. Screen has a great feature that allows screen sessions to be shared. To my knowledge there are two ways to use this feature. First you can connect to a screen multiple times as the same user. Second you can [...]]]></description>
			<content:encoded><![CDATA[<p>I have had several posts regarding screen. Hopefully you have already realized the greatness of screen. Screen has a great feature that allows screen sessions to be shared. To my knowledge there are two ways to use this feature. First you can connect to a screen multiple times as the same user. Second you can use the multiuser mode of screen.<span id="more-80"></span></p>
<p>Obviously the first option is less helpful in a multi user environment as one has to wheel up to a different user to share a screen. At first glance screens multiuser mode seems to be a great option. However multiuser mode requires that screen be setuid. Hopefully you are well aware of the dangers of running setuid processes. I will not drive the point home any more. If you still wish to use multiuser mode on screen by all means proceed.</p>
<p>I assume you have already installed screen. To enable multiuser mode log in to your machine</p>
<p><code>sudo setuid /usr/bin/screen<br />
sudo chmod 755 /usr/bin/screen</code></p>
<p>now run screen as your normal user. Then enable multi user mode with C-a :multiuser on. And allow the user joe to connect to your session with C-a :addacl joe (optional password)</p>
<p>Now user joe can see what screens you have available with<br />
<code>screen -ls youruser/</code><br />
and joe could connect to a screen with<br />
<code>screen -x youruser/(optional name of session)</code></p>
<p>For those of you who yearn for a better way to share a session without the setuid stay tuned for the next post where we actually address this issue.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.cmdln.org/2008/08/13/shared-console-sessions/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Backdoor corporate sabotage with DNS</title>
		<link>http://www.cmdln.org/2008/07/09/backdoor-corporate-sabotage-with-dns/</link>
		<comments>http://www.cmdln.org/2008/07/09/backdoor-corporate-sabotage-with-dns/#comments</comments>
		<pubDate>Thu, 10 Jul 2008 01:07:45 +0000</pubDate>
		<dc:creator>cmdln</dc:creator>
		
		<category><![CDATA[security]]></category>

		<category><![CDATA[corperate sabatoge]]></category>

		<category><![CDATA[dns]]></category>

		<category><![CDATA[dnsmadeeasy]]></category>

		<category><![CDATA[ultradns]]></category>

		<guid isPermaLink="false">http://www.cmdln.org/?p=79</guid>
		<description><![CDATA[I&#8217;m not really certain how common corporate sabotage is. Sure there are DOS attacks daily on this or that network or this or that server but what percentage of those are script kiddies and what percentage are well thought out planned attacks designed to cripple a competitor even if only for a short time. Typically [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m not really certain how common corporate sabotage is. Sure there are DOS attacks daily on this or that network or this or that server but what percentage of those are script kiddies and what percentage are well thought out planned attacks designed to cripple a competitor even if only for a short time. Typically DOS attacks are dealt with by Server and Network Admins adding black holes to offending networks. Recently while doing some research I stumbled on what seems to be a neglected DNS attack. One that the target may not become aware of until the next billing cycle or if carried out methodically months.<span id="more-79"></span><script type="text/javascript"><!--
google_ad_client = "pub-7751373112734770";
/* 468x60, created 4/6/08 */
google_ad_slot = "4087271425";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></p>
<p>Ultradns and Dnsmadeeasy are two leading hosted DNS providers. The model is simple. You pay to have your dns hosted on their network and servers. They ensure DNS propagation between their servers is fast and they have the capacity to protect against DOS attacks. Typically you get some base package of queries per month. For example the Business Membership is 59.95/yr and you get 10 million queries/month. That is a lot of queries when you consider that many queries for your domain will be served by caching servers. And overage charges are minimal at $6.00/ 1 million queries (if you don&#8217;t purchase blocks ahead of time). I was thinking boy I hope there is some kind of throttling in place to prevent some unsavory competitor from looping a dig against their name servers for my domain. So on a whim i looked around and actually found a domain (on the first try I might add) which uses Dnsmadeeasy. Oh in case you were wondering how I found out, I just did a whois and looked at the authoritative name servers and wow ns0.dnsmadeeasy.com was listed. So I ran a quick loop for 100 lookups on the domain.</p>
<p><code>time for i in $(seq 100);do dig redacted.tld @ns0.dnsmadeeasy.com;done</code></p>
<p>While I expected to get off a few lookups and then just wait for some throttle timeout to shut me down I was supprised to get all 100 lookups done in 11 seconds, subsequent tests showed similar times mostly faster. So conservativly say you can do 10 lookups a second. If my math serves me correct you can do 10 million lookups in just about 5 hours. After that you have broken the 10 million limit for the month. Holding steady at the same rate thats 864000 queries in 24 hours and 25920000 in 30 days. Yeah so not a bank breaker at $6/ million but this was from a single PC and I doubt network was the bottle neck. A distributed attack could end up costing a company thousands upon thousands. Refusal to pay could result in DNS being shut off, and effectively creating a DOS. For fun I tried 100 lookups against Ultradns for some of their banner customers and also received no throttling. Still a bit surprised at this seemingly overlooked hole I called Dnsmadeeasy and asked the sales department what protections were in place to prevent or mitigate malicious lookups. His response was do you mean DOS? When I explained the issue he said we can not block that, as we do not know if there are 1000 people behind your company firewall that are really interested in that website.</p>
<p>It does not seem unreasonable to provide a throttling mechanism. Oh you queried 10 times in the last 2 seconds? I think I will block you for 5 mintues. Happens again within x time increase block time to 10 minutes and so on. So who wants to loop while true dig amazon @udns1.ultradns.net for a month or so and see what happens. Will they report being hacked? Will the cops bust down your door? Will amazon just eat the cost (probably). But why not just provide simple throttling for obviously either misconfigured or malicious lookups?</p>
]]></content:encoded>
			<wfw:commentRss>http://www.cmdln.org/2008/07/09/backdoor-corporate-sabotage-with-dns/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Change KDE 4 panel clock to 12hr from 24hr military</title>
		<link>http://www.cmdln.org/2008/06/15/change-kde-4-panel-clock-to-12hr-from-24hr-military/</link>
		<comments>http://www.cmdln.org/2008/06/15/change-kde-4-panel-clock-to-12hr-from-24hr-military/#comments</comments>
		<pubDate>Mon, 16 Jun 2008 01:43:05 +0000</pubDate>
		<dc:creator>cmdln</dc:creator>
		
		<category><![CDATA[tips]]></category>

		<category><![CDATA[kde4]]></category>

		<category><![CDATA[time format]]></category>

		<guid isPermaLink="false">http://www.cmdln.org/?p=78</guid>
		<description><![CDATA[It&#8217;s not that I can not read 24 hour time, it&#8217;s just a pain to deal with on a daily basis. I was raised with 12 hr, and its just quicker for me to read. So if you are running KDE4 and you would prefer 12 hour format in your panel read on.
In KDE4 the [...]]]></description>
			<content:encoded><![CDATA[<p>It&#8217;s not that I can not read 24 hour time, it&#8217;s just a pain to deal with on a daily basis. I was raised with 12 hr, and its just quicker for me to read. So if you are running KDE4 and you would prefer 12 hour format in your panel read on.<span id="more-78"></span></p>
<p>In KDE4 the panel takes its configuration from the global settings so you need to change the time format under System Settings.</p>
<p>System Settings -> Regional &#038; Language -> Time &#038; Dates -> Time Format</p>
]]></content:encoded>
			<wfw:commentRss>http://www.cmdln.org/2008/06/15/change-kde-4-panel-clock-to-12hr-from-24hr-military/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Dynamic Reverse Proxy with Apache, mod_rewrite, and mod_proxy</title>
		<link>http://www.cmdln.org/2008/06/10/dynamic-reverse-proxy-with-apache-mod_rewrite-and-mod_proxy/</link>
		<comments>http://www.cmdln.org/2008/06/10/dynamic-reverse-proxy-with-apache-mod_rewrite-and-mod_proxy/#comments</comments>
		<pubDate>Tue, 10 Jun 2008 13:50:27 +0000</pubDate>
		<dc:creator>cmdln</dc:creator>
		
		<category><![CDATA[administration]]></category>

		<category><![CDATA[howto]]></category>

		<category><![CDATA[apache2]]></category>

		<category><![CDATA[dynamic proxy]]></category>

		<category><![CDATA[mod-proxy]]></category>

		<category><![CDATA[mod-rewrite]]></category>

		<guid isPermaLink="false">http://www.cmdln.org/?p=77</guid>
		<description><![CDATA[Recently I found myself wanting to expose more and more internal web services to the outside. We have an internal mail caching server, ticket system, a handful of development sites, as well as several other internal web services that would be handy to access from remote locations. If you have internal dns, and your dns [...]]]></description>
			<content:encoded><![CDATA[<p>Recently I found myself wanting to expose more and more internal web services to the outside. We have an internal mail caching server, ticket system, a handful of development sites, as well as several other internal web services that would be handy to access from remote locations. If you have internal dns, and your dns heirichy is sane you can probably use the same trick I did to allow any internal webservice that has a proper fqdn to work from outside your local LAN. I used Apache2, mod_proxy, and mod_rewrite. Only a few lines need to be altered in the default apache site install.</p>
<p><span id="more-77"></span><br />
<script type="text/javascript"><!--
google_ad_client = "pub-7751373112734770";
/* 468x60, created 4/6/08 */
google_ad_slot = "4087271425";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></p>
<p>You need to aptitude install libapache2-mod-proxy-html apache2, and a2enmod proxy proxy_connect proxy_html proxy_http rewrite.</p>
<p>Then comment out the the line</p>
<p><code></p>
<p>RedirectMatch ^/$ /apache2-default/</p>
<p></code></p>
<p>from /etc/apache2/sites-available/000-default.</p>
<p>Then add these lines outside a Directory directive.</p>
<pre>

ProxyRequests Off
&lt;Proxy *&gt;
AddDefaultCharset off
Order deny,allow
Allow from all #
&lt;/Proxy&gt;

RewriteEngine on
RewriteRule ^(.+) $1 [P]
ProxyPassReverse / $1
</pre>
<p>Thats basically it. So if you have a dns setup where something.lan.tld.com resolves to your main firewall from the outside. But on the inside resolves to a local webserver, and you have defaulted port 80 to this new gateway machine you should be able to access the internal machine from outside.</p>
<p>The thing to note is that remotely something.lan.tld.com will resolve to your public ip. And locally it will resolve to a local lan ip. That allows the rewrite and proxy rule to work correctly. Since it just rewrites the same thing and proxies for it the gateway server has to be able to resolve the internal names correctly.</p>
<p>Example:</p>
<p>ticket.lan.somecompany.com resolves to a world routable address like 151.164.1.8. (externally)</p>
<p>ticket.lan.somecompany.com resolves to a local ip like 192.168.1.5 (internally)</p>
<p>Now you can access that internal resource with the same domain name either internally or externally.</p>
<p>It scales well because you do not have to add a new proxy rule for each specific internal resource, all you have to do is add dns both externally and internally. On top of that you could wildcard your external dns for *.lan.somecompany.com and then all that has to be done is add internal dns for each resource you want to access.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.cmdln.org/2008/06/10/dynamic-reverse-proxy-with-apache-mod_rewrite-and-mod_proxy/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Slowdown VMware Bios Screen</title>
		<link>http://www.cmdln.org/2008/05/03/slowdown-vmware-bios-screen/</link>
		<comments>http://www.cmdln.org/2008/05/03/slowdown-vmware-bios-screen/#comments</comments>
		<pubDate>Sat, 03 May 2008 22:35:04 +0000</pubDate>
		<dc:creator>cmdln</dc:creator>
		
		<category><![CDATA[administration]]></category>

		<category><![CDATA[tips]]></category>

		<category><![CDATA[bios]]></category>

		<category><![CDATA[increse timeout]]></category>

		<category><![CDATA[slowdown]]></category>

		<category><![CDATA[vmware]]></category>

		<guid isPermaLink="false">http://www.cmdln.org/?p=76</guid>
		<description><![CDATA[Working with virtual machines after having worked with physical machines can be a wonderful experience. Wonderful that is until the bios scree blows past you several times.

Changing the boot dealy for vmware is pretty easy. One line needs to be added to the vmx configuration file.

bios.bootDelay = "boot delay in milliseconds"

]]></description>
			<content:encoded><![CDATA[<p>Working with virtual machines after having worked with physical machines can be a wonderful experience. Wonderful that is until the bios scree blows past you several times.<span id="more-76"></span></p>
<p><!--adsense--></p>
<p>Changing the boot dealy for vmware is pretty easy. One line needs to be added to the vmx configuration file.<br />
<code><br />
bios.bootDelay = "boot delay in milliseconds"<br />
</code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.cmdln.org/2008/05/03/slowdown-vmware-bios-screen/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Cpanel WHM inside Centos 5.1 domU</title>
		<link>http://www.cmdln.org/2008/05/01/cpanel-whm-inside-centos-51-domu/</link>
		<comments>http://www.cmdln.org/2008/05/01/cpanel-whm-inside-centos-51-domu/#comments</comments>
		<pubDate>Fri, 02 May 2008 00:19:53 +0000</pubDate>
		<dc:creator>cmdln</dc:creator>
		
		<category><![CDATA[administration]]></category>

		<category><![CDATA[tips]]></category>

		<category><![CDATA[Add new tag]]></category>

		<category><![CDATA[centos]]></category>

		<category><![CDATA[cpanel]]></category>

		<category><![CDATA[rinse]]></category>

		<category><![CDATA[xen-tools]]></category>

		<guid isPermaLink="false">http://www.cmdln.org/?p=74</guid>
		<description><![CDATA[I needed to install cpanel inside of one of my Centos 5.1 domU. The centos install was bootstrapped by the default rinse configuration (see xen-tools with my patch that you can see from a previous post). If you follow the install docs you will have tried to uninstall openldap etc &#8230;.

I can tell you from [...]]]></description>
			<content:encoded><![CDATA[<p>I needed to install cpanel inside of one of my Centos 5.1 domU. The centos install was bootstrapped by the default rinse configuration (see <a href="http://www.xen-tools.org/software/xen-tools/">xen-tools</a> with my <a href="http://www.cmdln.org/wp-content/uploads/2008/04/rinse-centos5.patch">patch</a> that you can see from a <a href="http://www.cmdln.org/2008/04/25/xen-installing-centos-5-domu-inside-debian-etch-dom0-with-xen-tools-and-rinse-the-patch-to-fix-it/">previous post</a>). If you follow the <a href="http://www.cpanel.net/docs/vps/">install docs</a> you will have tried to uninstall openldap etc &#8230;.<span id="more-74"></span></p>
<p><!--adsense--></p>
<p>I can tell you from experience don&#8217;t even try. The install docs are not that great. All you need to do (if you have bootstrapped with rinse) is install a few packages so that the cpanel installer can complete successfully. I had to install tar, gzip, wget, and perl. The error that I got when first trying to install was related to uncompressing. I contacted Cpanel about the issue and one of their techs logged into my vm to see what was going on. All we did was install the above packages then run the installer. We did not remove any other packages, and I have yet to have an issue (granted its been hours, and it is cpanel, so I expect something to rear its ugly head). But if anyone else is trying to get cpanel installed on a fresh xen-create-image with rinse and centos 5.1 is having issues try installing the above packages before doing anything else to your system and see how you fair.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.cmdln.org/2008/05/01/cpanel-whm-inside-centos-51-domu/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Review: Running Xen a Hands-On guide to the Art of Virtualization</title>
		<link>http://www.cmdln.org/2008/04/28/review-running-xen-a-hands-on-guide-to-the-art-of-virtualization/</link>
		<comments>http://www.cmdln.org/2008/04/28/review-running-xen-a-hands-on-guide-to-the-art-of-virtualization/#comments</comments>
		<pubDate>Mon, 28 Apr 2008 23:32:23 +0000</pubDate>
		<dc:creator>cmdln</dc:creator>
		
		<category><![CDATA[uncategorized]]></category>

		<category><![CDATA[book]]></category>

		<category><![CDATA[review]]></category>

		<category><![CDATA[xen]]></category>

		<guid isPermaLink="false">http://www.cmdln.org/?p=73</guid>
		<description><![CDATA[A few days ago I finally got my copy of Running Xen. I was anxious to see how the information would be presented. I can tell you I was not disappointed.  I am by no means a Xen master. I have tinkered with it a few times over the past several years but as [...]]]></description>
			<content:encoded><![CDATA[<p>A few days ago I finally got my copy of Running Xen. I was anxious to see how the information would be presented. I can tell you I was not disappointed. <span id="more-73"></span> I am by no means a Xen master. I have tinkered with it a few times over the past several years but as I am getting ready to use it full time in production I need as much information as I can get. The books authors include Eli Dow, and Todd Deshane who worked on <a href="http://www.usenix.org/events/usenix04/tech/freenix/full_papers/clark/clark.pdf">Xen and the Art of Repeated Research</a>, as well as <a href="http://www.usenix.org/events/expcs07/papers/6-matthews.pdf">Quantifying the Performance Isolation Properties of Virtualization Systems</a>.</p>
<p>Running Xen is an easy read. Easy in that it can actually be read cover to cover without becoming tired of mundane drivel. However it is not a glossy overview of Xen. Its 500 plus pages cover everything from using prebuilt images that can be downloaded from jailtime.org, rpath, virtualappliances.net as well as other resources. I do believe this is the first book I have come across that actually explains how to use the different image types (disk and partition). Ok so there are not many Xen books around, and I have not actually read Xen Virtualization: A Practical Handbook or Virtualization with Xen but I will not be surprised if they cover what prebuilt images are in less detail than Running Xen.</p>
<p>65 pages are dedicated to networking, covering bridging, routing, and Nat modes of operation. If you want to include the pages on fire walling there are more than 65 pages of networking related material. Storage backends including LVM, file, partition, nfs, and iscsi are also covered in detail. I was particularly impressed with the coverage of LVM being that many authors would consider it beyond the scope of the book. It is a great resource for any new Xen administrator, and I can wager that it will be valuable for mid-level Xen administrators as well. I defiantly will be revisiting several sections as I get deeper into Xen (read more hardware to test with). For those of you wanting to  virtualize Windows, you have not been forgotten. The first several pages of chapter 7 Populating Guest Images shows how to install a windows (or linux) system using an iso or physical rom drive.</p>
<p>What was missing? One backend that was omitted was DRDB. I found this to be somewhat disappointing as live migration can be obtained with less than 3 machines and for those of us on a budget like me scrimping pennies while trying to make a scalable system is a prime directive. Also there was no mention of how to use multiple iso files for installing, how to change them out or if its possible. I have seen that question several times in the #Xen channel on freenode so I know its something people want to do. Other than that I am streched to think of something I would like to do with Xen that is not in some way shape or form covered. Perhaps a section on backups would be a good addition. How to save state and image the operating system with little downtime. I say little because to my knowledge its not yet possible to do hot backups. (if your wondering how to do it think xm save; lv snapshot, xm restore; dd snapshot to image file).</p>
<p>What is the verdict? If you are a new Xen administrator, or thinking about heading down the Xen path this book will be well worth your dime. If you have read The Definitive Guide to the Xen Hypervisor and felt overwhelmed not to worry, this book was written for us mere mortals. (The Definitive Guide to Xen Hypervisor, was a good book but most of it went over my head)</p>
<p><!--adsense--></p>
]]></content:encoded>
			<wfw:commentRss>http://www.cmdln.org/2008/04/28/review-running-xen-a-hands-on-guide-to-the-art-of-virtualization/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Benchmark hard drive performance in Linux</title>
		<link>http://www.cmdln.org/2008/04/26/benchmark-hard-drive-performance-in-linux/</link>
		<comments>http://www.cmdln.org/2008/04/26/benchmark-hard-drive-performance-in-linux/#comments</comments>
		<pubDate>Sat, 26 Apr 2008 19:41:21 +0000</pubDate>
		<dc:creator>cmdln</dc:creator>
		
		<category><![CDATA[tips]]></category>

		<category><![CDATA[bash]]></category>

		<category><![CDATA[bonnie]]></category>

		<guid isPermaLink="false">http://www.cmdln.org/?p=72</guid>
		<description><![CDATA[Bonnie is a great tool to use to benchmark your file system. Just a quick tip on using bonnie. You need to give bonnie how much ram you have have in your system, and when you run bonnie you should run with a size 2x as big as your ram. So using this command will [...]]]></description>
			<content:encoded><![CDATA[<p>Bonnie is a great tool to use to benchmark your file system. Just a quick tip on using bonnie. <span id="more-72"></span>You need to give bonnie how much ram you have have in your system, and when you run bonnie you should run with a size 2x as big as your ram. So using this command will help you speed up that calculation.</p>
<pre class="syntax-highlight:bash">
bonnie++ -r  $(free -m | awk '/^Mem/{print $2}') -s $(echo $(free -m | awk '/^Mem/{print $2}')*2| bc)
</pre>
<p>We use subcommands to expand and automattically use the right parameters for bonnie. Would be easy enough to stick that into a shell script to make a small wrapper and pass along any other arguments to bonnie like user and directory.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.cmdln.org/2008/04/26/benchmark-hard-drive-performance-in-linux/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
