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

<channel>
	<title>Ray Heffer &#187; Scripts &amp; Commands</title>
	<atom:link href="http://www.rayheffer.com/category/linux/scripts-commands/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.rayheffer.com</link>
	<description>Enterprise Technologies</description>
	<lastBuildDate>Mon, 08 Mar 2010 21:28:53 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Installing VMware tools on a Linux guest</title>
		<link>http://www.rayheffer.com/152/installing-vmware-tools-on-a-linux-guest/</link>
		<comments>http://www.rayheffer.com/152/installing-vmware-tools-on-a-linux-guest/#comments</comments>
		<pubDate>Tue, 19 Jan 2010 10:25:00 +0000</pubDate>
		<dc:creator>Ray Heffer</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Scripts & Commands]]></category>
		<category><![CDATA[VMware]]></category>
		<category><![CDATA[Virtualisation]]></category>
		<category><![CDATA[mount]]></category>
		<category><![CDATA[rpm]]></category>
		<category><![CDATA[vmtools]]></category>
		<category><![CDATA[vmware tools]]></category>

		<guid isPermaLink="false">http://www.rayheffer.com/?p=152</guid>
		<description><![CDATA[
			
				
			
		
Start the VMware Tools installation
Using the VMware VI Client, right click on the Linux guest and select Install/Upgrade VMware Tools.
Mounting the CD-ROM
You&#8217;ll need to mount the CD-ROM on the Linux guest.
# mount /dev/cdrom /mnt

Change the working directory to /mnt
# cd /mnt
Using the RPM installer, install VMware tools.
# rpm -Uhv VMwareTools-3.5.0-153875.i386.rpm
Unmount the CD-ROM
# umount /dev/cdrom
Starting VMware [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.rayheffer.com%2F152%2Finstalling-vmware-tools-on-a-linux-guest%2F" onclick="pageTracker._trackPageview('/outgoing/api.tweetmeme.com/share?url=http_3A_2F_2Fwww.rayheffer.com_2F152_2Finstalling-vmware-tools-on-a-linux-guest_2F&amp;referer=');"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.rayheffer.com%2F152%2Finstalling-vmware-tools-on-a-linux-guest%2F&amp;source=rayheffer&amp;style=normal&amp;service=TinyURL.com" height="61" width="50" /><br />
			</a>
		</div>
<p><strong>Start the VMware Tools installation</strong></p>
<p>Using the VMware VI Client, right click on the Linux guest and select Install/Upgrade VMware Tools.</p>
<p><strong>Mounting the CD-ROM</strong></p>
<p>You&#8217;ll need to mount the CD-ROM on the Linux guest.<br />
<code># mount /dev/cdrom /mnt</code><br />
<span id="more-152"></span><br />
Change the working directory to /mnt<br />
<code># cd /mnt</code><br />
Using the RPM installer, install VMware tools.<br />
<code># rpm -Uhv VMwareTools-3.5.0-153875.i386.rpm</code><br />
Unmount the CD-ROM<br />
<code># umount /dev/cdrom</code><br />
Starting VMware tools and make sure it starts on boot.<br />
<code># service vmware-tools start<br />
# chkconfig vmware-tools on</code><br />
Run the Vmware tools configuration tool. * This will shutdown the ethernet interface, so do this from the console.</p>
<p># vmware-config-tools.pl</p>
<p>That&#8217;s it!</p>
<p><strong><br />
Troubleshooting:</strong></p>
<p><strong>&#8220;Trying to find a suitable vmmemctl module for your running kernel.&#8221;</strong></p>
<p><strong>&#8220;None of the pre-built vmmemctl modules for VMware Tools is suitable for your running kernel.  Do you want this program to try to build the vmmemctl module for your system (you need to have a C compiler installed on your system)?&#8221;</strong></p>
<p>If you are using CentOS 5 like me, then you&#8217;ll need to install GCC and kernel-devel otherwise it will fail. Also, make sure your kernel version matches the kernel-devel version. This error will also present itself if your are running Xen virtualisation.</p>
<p><code># yum install gcc kernel-devel</code><br />
<code># yum upgrade kernel kernel-devel</code></p>
<p>Finally, reboot to load the updated kernel and try again.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.rayheffer.com/152/installing-vmware-tools-on-a-linux-guest/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Linux commands and tips</title>
		<link>http://www.rayheffer.com/125/linux-commands-and-tips/</link>
		<comments>http://www.rayheffer.com/125/linux-commands-and-tips/#comments</comments>
		<pubDate>Thu, 07 Jul 2005 12:41:30 +0000</pubDate>
		<dc:creator>Ray Heffer</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Scripts & Commands]]></category>
		<category><![CDATA[Tech Tips]]></category>
		<category><![CDATA[dns]]></category>
		<category><![CDATA[grep]]></category>
		<category><![CDATA[history]]></category>
		<category><![CDATA[hosts]]></category>
		<category><![CDATA[iptables]]></category>
		<category><![CDATA[makemap]]></category>
		<category><![CDATA[nameserver]]></category>
		<category><![CDATA[network]]></category>
		<category><![CDATA[resolv]]></category>
		<category><![CDATA[sendmail]]></category>
		<category><![CDATA[uname]]></category>

		<guid isPermaLink="false">http://wp.rayheffer.com/?p=125</guid>
		<description><![CDATA[
			
				
			
		
Checking kernel &#38; CentOS version
To check which kernel version you are running use uname -r
# uname -r
To find out which CentOS (or RedHat) release is installed have a look at /etc/redhat-release
# cat /etc/redhat-release 
Checking Disk Space
To check disk space used / free use the df command and it will display each volume. The -h switch [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.rayheffer.com%2F125%2Flinux-commands-and-tips%2F" onclick="pageTracker._trackPageview('/outgoing/api.tweetmeme.com/share?url=http_3A_2F_2Fwww.rayheffer.com_2F125_2Flinux-commands-and-tips_2F&amp;referer=');"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.rayheffer.com%2F125%2Flinux-commands-and-tips%2F&amp;source=rayheffer&amp;style=normal&amp;service=TinyURL.com" height="61" width="50" /><br />
			</a>
		</div>
<p><strong><img class="size-full wp-image-376 alignright" title="Linux Tips" src="http://www.rayheffer.com/wp-content/uploads/2010/02/Programming.png" alt="" width="128" height="128" />Checking kernel &amp; CentOS version</strong></p>
<p>To check which kernel version you are running use <code>uname -r</code></p>
<p><code># uname -r</code></p>
<p>To find out which CentOS (or RedHat) release is installed have a look at <code>/etc/redhat-release</code></p>
<p><code># cat /etc/redhat-release </code></p>
<p><strong>Checking Disk Space</strong></p>
<p>To check disk space used / free use the <code>df </code>command and it will display each volume. The <code>-h</code> switch turns the bytes reading into GB to make it more readable.</p>
<p><code># df -h</code></p>
<p>If you want to check the size of a particular directory then use:</p>
<p><code># du -sh /</code><br />
<span id="more-125"></span></p>
<p><strong>Configuring DNS Settings</strong></p>
<p>To configure which DNS servers your Linux server will use you need to edit <code>/etc/resolv.conf</code></p>
<p><code># vi /etc/resolv.conf</code></p>
<p>Just add each name server as a new line as in the following example:</p>
<p><code>nameserver<br />
nameserver </code></p>
<p><strong>Changing the hostname</strong></p>
<p>You&#8217;ll find the hostname of the server in two places: <code>/etc/hosts</code> and <code>/etc/sysconfig/network</code>.</p>
<p><code># vi /etc/hosts</code></p>
<p>and</p>
<p><code># vi /etc/sysconfig/network</code></p>
<p><strong>Show Processor &amp; Memory Usage</strong></p>
<p>This is equivilant to the Windows Task Manager, and will show each process and the consumed CPU and RAM usage. Very useful!</p>
<p><code># top</code></p>
<p><strong>Show Processor Information</strong></p>
<p>This command will display the processor type and speed.</p>
<p><code># cat /proc/cpuinfo</code></p>
<p><strong>Search command history for old commands you have forgotten!</strong></p>
<p>Use the history command with <code>grep</code> to find previously entered commands.</p>
<p><code># history | grep <em>command</em></code></p>
<p><strong>Compiling sendmail.mc</strong></p>
<p><code># m4 /etc/mail/sendmail.mc &gt; /etc/mail/sendmail.cf</code></p>
<p><strong>Updating virtusertable.db from /etc/mail/virtusertable</strong></p>
<p><code># makemap hash /etc/mail/virtusertable.db &lt; /etc/mail/virtusertable</code></p>
<p><strong>Saving IPTABLES to /etc/sysconfig/iptables</strong></p>
<p><code># iptables-save &gt; /etc/sysconfig/iptables</code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.rayheffer.com/125/linux-commands-and-tips/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
