<?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>Spind.net Blog &#187; Linux</title>
	<atom:link href="http://blog.spind.net/tag/linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.spind.net</link>
	<description>Stories from the trenches of System Administration</description>
	<lastBuildDate>Mon, 19 Dec 2011 09:21:50 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>Fedora 16 notes</title>
		<link>http://blog.spind.net/2011/11/10/fedora-16-notes/</link>
		<comments>http://blog.spind.net/2011/11/10/fedora-16-notes/#comments</comments>
		<pubDate>Thu, 10 Nov 2011 12:49:58 +0000</pubDate>
		<dc:creator>hc</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Fedora]]></category>
		<category><![CDATA[Fedora16]]></category>
		<category><![CDATA[Install]]></category>
		<category><![CDATA[InstallNotes]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[nVidia]]></category>

		<guid isPermaLink="false">http://blog.spind.net/?p=225</guid>
		<description><![CDATA[I&#8217;m an early adopter, so of course I&#8217;m giving the newly release Fedora 16 a go. This blog post will cover my basic setup woes and delights. My system&#8217;s a pretty straight forward Intel i7-based setup with some kind of nVidia graphics adapter. Honestly, I don&#8217;t remember which model, but I don&#8217;t think it makes [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m an early adopter, so of course I&#8217;m giving the newly release Fedora 16 a go. This blog post will cover my basic setup woes and delights.</p>
<p>My system&#8217;s a pretty straight forward Intel i7-based setup with some kind of nVidia graphics adapter. Honestly, I don&#8217;t remember which model, but I don&#8217;t think it makes that much of a difference. Its rather large and looks more like a vacuum cleaner than a electronic device for producing shiny pixels. The box has 6GB of RAM and two monitors attached via DVI. There&#8217;s a Logitech HD webcam attached too. Other than this, it&#8217;s pretty much plain vanilla.</p>
<p>First issue: After burning the 64 bit install DVD, I rebooted and found that the installation process (Anaconda?) <a href="https://bugzilla.redhat.com/show_bug.cgi?id=725219">failed to provide me with the bottom part of the dialog window</a>, meaning I can&#8217;t see the <em>Back</em> and <em>Next</em> buttons. I tried to make it through the process just by counting my tabs, but I finally gave in, rebooted and started the install with VNC by adding the <a href="http://fedoraproject.org/wiki/Anaconda_Boot_Options">parameters</a> <em>ip=dhcp vnc vncconnect={ip of laptop}</em>. This issue <strike>could perhaps be</strike> is due to my dual monitor setup, and it could be a showstopper for many people who want to give Fedora a spin.</p>
<p>A picked a pretty basic installation &#8211; <em>Graphical Desktop</em> on a freshly formatted root partition with my old home partition preserved. I rarely do a lot of system wide customization on my office box, so reinstalling like this really isn&#8217;t a big deal for me.</p>
<p>Besides the dual monitor issue and the general confusion about the new data/install media dialog box &#8211; which didn&#8217;t seem to work &#8211; the installation process itself went without a hitch. When completed, I rebooted my system, and was presented with a  blank screen and a blinking cursor.</p>
<p>I rebooted from the installation media in rescue mode, mounted the system and ran this:</p>
<div class="codecolorer-container text geshi" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:590px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">$ cd /mnt/sysimage<br />
$ chroot .<br />
$ grub2-install /dev/sda<br />
(many errors, and a finishing statement saying &quot;No error reported&quot;)<br />
$ exit<br />
$ reboot</div></td></tr></tbody></table></div>
<p>That seemed to do the trick &#8211; I expect my three hard drives got in each others way. First boot drags me through a lengthy SELinux relabelling, which annoys me since I&#8217;m probably going to disable it anyway.</p>
<p>After relabelling, the system rebooted and presented me with a text-mode login. Logging in as root and issuing &#8220;init 5&#8243; seemed to fix that problem, and presented me with the usual graphical &#8220;Welcome&#8221; dialogue. I&#8217;m not sure if my previous boot problems caused this? Changes in the system now means that <em>/etc/inittab</em> isn&#8217;t the place to fix this &#8211; instead a symbolic link is required:</p>
<div class="codecolorer-container text geshi" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:590px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">ln -sf /lib/systemd/system/graphical.target /etc/systemd/system/default.target</div></td></tr></tbody></table></div>
<p>Next up &#8211; installing the right repositories:</p>
<div class="codecolorer-container text geshi" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:590px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">$ yum install -y \<br />
&nbsp; http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-stable.noarch.rpm \<br />
&nbsp; http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-stable.noarch.rpm</div></td></tr></tbody></table></div>
<p>Then make sure the system is fresh:</p>
<div class="codecolorer-container text geshi" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:590px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">$ yum upgrade -y</div></td></tr></tbody></table></div>
<p>Install drivers for my nVidia graphics card:</p>
<div class="codecolorer-container text geshi" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:590px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">$ yum install -y akmod-nvidia<br />
$ nvidia-xconfig</div></td></tr></tbody></table></div>
<p>Make absolutely sure the open sourced nVidia driver &#8211; Nouveau &#8211; does not conflict with the proprietary driver:</p>
<div class="codecolorer-container text geshi" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:590px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">$ mv /boot/initramfs-$(uname -r).img /boot/initramfs-$(uname -r)-nouveau.img<br />
$ dracut /boot/initramfs-$(uname -r).img $(uname -r)</div></td></tr></tbody></table></div>
<p>Disable (or <a href="http://www.if-not-true-then-false.com/2011/fedora-16-nvidia-drivers-install-guide-disable-nouveau-driver/">partially disable</a>) SELinux to allow Gnome Shell to use the nVidia driver:</p>
<div class="codecolorer-container text geshi" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:590px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">$ sed -i s/SELINUX=enforcing/SELINUX=disabled/ /etc/selinux/config</div></td></tr></tbody></table></div>
<p>Reboot, and the proprietary nVidia driver should be rolling. If you need dual monitor support, run <em>nvidia-settings</em> as root.</p>
<p>Various multimedia stuff that isn&#8217;t distributed with Fedora itself:</p>
<div class="codecolorer-container text geshi" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:590px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">mplayer<br />
ffmpeg<br />
xbmc</div></td></tr></tbody></table></div>
<p>Stuff that Fedora thinks I can live without, but I really think I need:</p>
<div class="codecolorer-container text geshi" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:590px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br />11<br />12<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">$ yum install -y \<br />
&nbsp; thunderbird \<br />
&nbsp; pidgin pidgin-logviewer gnome-shell-extension-pidgin \<br />
&nbsp; gnome-do gnome-do-plugins-pidgin \<br />
&nbsp; VirtualBox-OSE akmod-VirtualBox-OSE \<br />
&nbsp; subversion git \<br />
&nbsp; gstreamer-plugins-ugly \<br />
&nbsp; gstreamer-plugins-bad \<br />
&nbsp; gstreamer-plugins-bad-nonfree \<br />
&nbsp; mplayer \<br />
&nbsp; ffmpeg \<br />
&nbsp; mkvtoolnix</div></td></tr></tbody></table></div>
<p>That was easy, wasn&#8217;t it? <img src='http://blog.spind.net/wp/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  I&#8217;m not so impressed with the installation process of Fedora 16 &#8211; even if it&#8217;s due to multiple hard drives and monitors on my system, someone should have caught the issues mentioned above before it was released. Once fixed though, the system seems to work find. Can&#8217;t seem to find the new &#8220;j&#8221; command mentioned in the release notes though.</p>
<p><b>UPDATE:</b> Tried to install the office printer (HP Color LaserJet CP2025n), but the graphical setup tool said it couldn&#8217;t detect network printers without installing, enabling and starting <em>firewalld</em>. I did so, but it didn&#8217;t help much &#8211; I still had to select <em>Search by address</em> and punch in the printer&#8217;s IP.</p>
<p><b>UPDATE:</b> Xorg seems to take up ~99% CPU at times according to <em>top</em>, and it&#8217;s really sluggish. Not sure what&#8217;s causing this.</p>
<p><b>UPDATE:</b> VirtualBox-OSE seems to be broken &#8211; I get this error:</p>
<div class="codecolorer-container text geshi" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:590px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">$ virtualbox<br />
VirtualBox: supR3HardenedVerifyFileInternal: Failed to open &quot;/usr/lib64/virtualbox/components/VBoxXPCOMBase.xpt&quot;: No such file or directory (2)</div></td></tr></tbody></table></div>
<p><b>UPDATE:</b> This morning my system greeted me with one black screen and one half gray. It turned out this was the locked screen dialogue, so entering my password and hitting return brought my desktop back. Still horribly slow, especially when changing focus to another window. Switching tabs in Firefox is just unbearable. I miss Fedora 15.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.spind.net/2011/11/10/fedora-16-notes/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Pulse-Eight&#8217;s USB-CEC adapter &#8211; Part 1</title>
		<link>http://blog.spind.net/2011/11/07/pulse-eights-usb-cec-adapter-part-1/</link>
		<comments>http://blog.spind.net/2011/11/07/pulse-eights-usb-cec-adapter-part-1/#comments</comments>
		<pubDate>Mon, 07 Nov 2011 11:01:53 +0000</pubDate>
		<dc:creator>hc</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Bravia]]></category>
		<category><![CDATA[BraviaLink]]></category>
		<category><![CDATA[CEC]]></category>
		<category><![CDATA[HDMI]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Panasonic]]></category>
		<category><![CDATA[PulseEight]]></category>
		<category><![CDATA[TV]]></category>
		<category><![CDATA[USB]]></category>
		<category><![CDATA[USB-CEC]]></category>
		<category><![CDATA[Viera]]></category>
		<category><![CDATA[XBMC]]></category>

		<guid isPermaLink="false">http://blog.spind.net/?p=213</guid>
		<description><![CDATA[Got the USB &#8211; CEC Adapter from Pulse-Eight and hooked it up to the office&#8217;s Sony Bravia TV. Output from dmesg: [945751.683883] usb 2-2.3: USB disconnect, device number 5 [945756.456657] usb 2-2.3: new full speed USB device number 13 using ehci_hcd [945756.543124] usb 2-2.3: New USB device found, idVendor=2548, idProduct=1001 [945756.543129] usb 2-2.3: New USB [...]]]></description>
			<content:encoded><![CDATA[<p>Got the <a href="http://www.pulse-eight.com/store/products/104-usb-hdmi-cec-adapter.aspx">USB &#8211; CEC Adapter</a> from <a href="http://www.pulse-eight.com/">Pulse-Eight</a> and hooked it up to the office&#8217;s Sony Bravia TV. Output from dmesg:</p>
<blockquote><p>[945751.683883] usb 2-2.3: USB disconnect, device number 5<br />
[945756.456657] usb 2-2.3: new full speed USB device number 13 using ehci_hcd<br />
[945756.543124] usb 2-2.3: New USB device found, idVendor=2548, idProduct=1001<br />
[945756.543129] usb 2-2.3: New USB device strings: Mfr=0, Product=0, SerialNumber=0<br />
[945756.796580] cdc_acm 2-2.3:1.0: ttyACM0: USB ACM device<br />
[945756.797164] usbcore: registered new interface driver cdc_acm<br />
[945756.797167] cdc_acm: USB Abstract Control Model driver for USB modems and ISDN adapters
</p></blockquote>
<p>Compiled and installed the latest Git-version of Pulse-Eight&#8217;s <a href="http://libcec.pulse-eight.com/">libCEC</a> (note, add <em>-b release</em> to the <em>git clone</em> command), and fired up the <em>cec-client</em>. The device doesn&#8217;t show up in the Sony TV&#8217;s Bravia Link menu. All HDMI ports were tried on the TV.</p>
<blockquote><p>$ cec-client<br />
No device type given. Using &#8216;playback device&#8217;<br />
CEC Parser created &#8211; libcec version 1.0<br />
no serial port given. trying autodetect:<br />
 path:     /sys/devices/pci0000:00/0000:00:1d.7/usb2/2-2/2-2.3<br />
 com port: /dev/ttyACM0</p>
<p>cec device opened<br />
DEBUG:   [               0]	trying to autodetect all CEC adapters<br />
DEBUG:   [              18]	connection opened<br />
DEBUG:   [              19]	communication thread started<br />
DEBUG:   [              20]	FindLogicalAddresses &#8211; device 0: type 4<br />
DEBUG:   [              20]	detecting logical address for type &#8216;playback device&#8217;<br />
DEBUG:   [              20]	trying logical address &#8216;playback 1&#8242;<br />
DEBUG:   [              20]	setting ackmask to 10<br />
DEBUG:   [              24]	command sent<br />
NOTICE:  [             159]	<< 4 -> 4: POLL<br />
TRAFFIC: [             159]	<< 44<br />
DEBUG:   [             164]	command sent<br />
DEBUG:   [             371]	COMMAND_ACCEPTED<br />
DEBUG:   [             371]	COMMAND_ACCEPTED<br />
DEBUG:   [             371]	COMMAND_ACCEPTED<br />
ERROR:   [             371]	did not receive ack<br />
DEBUG:   [             371]	>> POLL not sent<br />
NOTICE:  [             371]	using logical address &#8216;playback 1&#8242;<br />
DEBUG:   [             371]	>> 4 changed physical address from ffff to 1000<br />
DEBUG:   [             371]	setting ackmask to 10<br />
DEBUG:   [             376]	command sent<br />
DEBUG:   [             511]	processor thread started<br />
DEBUG:   [             511]	COMMAND_ACCEPTED<br />
DEBUG:   [             511]	<< powering on device with logical address 0<br />
TRAFFIC: [             511]	<< 40:04<br />
DEBUG:   [             516]	command sent<br />
DEBUG:   [             819]	COMMAND_ACCEPTED<br />
DEBUG:   [             819]	COMMAND_ACCEPTED<br />
DEBUG:   [             819]	COMMAND_ACCEPTED<br />
ERROR:   [             819]	did not receive ack<br />
NOTICE:  [             820]	<< 4 -> broadcast: active view (1000)<br />
TRAFFIC: [             820]	<< 4f:82:10:00<br />
DEBUG:   [             874]	command sent<br />
DEBUG:   [            1369]	COMMAND_ACCEPTED<br />
DEBUG:   [            1369]	COMMAND_ACCEPTED<br />
DEBUG:   [            1369]	COMMAND_ACCEPTED<br />
DEBUG:   [            1369]	COMMAND_ACCEPTED<br />
DEBUG:   [            1369]	COMMAND_ACCEPTED<br />
DEBUG:   [            1369]	TRANSMIT_SUCCEEDED<br />
waiting for input
</p></blockquote>
<p>I tried to get some feedback on Pulse-Eight&#8217;s <a href="http://blog.pulse-eight.com/2011/10/11/interested-in-contributing-to-libcec/">IRC channel</a>, but <STRIKE>most people there seemed to be idling</STRIKE> I was horribly impatient and they didn&#8217;t fix my problem in the first 60 seconds <img src='http://blog.spind.net/wp/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' />  One thing was worth mentioning though &#8211; the HDMI ports on the device are labeled &#8220;IN&#8221; and &#8220;OUT&#8221;, but according to one user it actually doesn&#8217;t matter which port you use.</p>
<p>Stay tuned for part 2, where I will be taking this mysteriout device with me home and hooking it up to my Panasonic Viera TV. Fingers crossed.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.spind.net/2011/11/07/pulse-eights-usb-cec-adapter-part-1/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Reinstalling CentOS 5.6 remote</title>
		<link>http://blog.spind.net/2011/06/07/reinstalling-centos-5-6-remote/</link>
		<comments>http://blog.spind.net/2011/06/07/reinstalling-centos-5-6-remote/#comments</comments>
		<pubDate>Tue, 07 Jun 2011 14:58:18 +0000</pubDate>
		<dc:creator>hc</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[CentOS]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Reinstallation]]></category>
		<category><![CDATA[Remote]]></category>
		<category><![CDATA[VNC]]></category>

		<guid isPermaLink="false">http://blog.spind.net/?p=184</guid>
		<description><![CDATA[Download images and add entry to Grub boot loader. Make sure you put in the right networking values: 1234567891011121314151617cd /boot mkdir centos5-x86_64 cd centos5-x86_64 wget http://mirror.leaseweb.com/centos/5.6/os/x86_64/isolinux/initrd.img wget http://mirror.leaseweb.com/centos/5.6/os/x86_64/isolinux/vmlinuz /sbin/grubby &#160; --add-kernel /boot/centos5-x86_64/vmlinuz &#160; --initrd=/boot/centos5-x86_64/initrd.img &#160; --args=&#34;ip=x.x.x.x netmask=y.y.y.y gateway=z.z.z.z dns=n.n.n.n &#160; &#160; ksdevice=eth0 &#160; &#160; method=http://mirror.leaseweb.com/centos/5.6/os/x86_64/ &#160; &#160; lang=en_US &#160; &#160; keymap=us &#160; &#160; vnc &#160; [...]]]></description>
			<content:encoded><![CDATA[<p>Download images and add entry to Grub boot loader. Make sure you put in the right networking values:</p>
<div class="codecolorer-container text geshi" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:590px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br />11<br />12<br />13<br />14<br />15<br />16<br />17<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">cd /boot<br />
mkdir centos5-x86_64<br />
cd centos5-x86_64<br />
wget http://mirror.leaseweb.com/centos/5.6/os/x86_64/isolinux/initrd.img<br />
wget http://mirror.leaseweb.com/centos/5.6/os/x86_64/isolinux/vmlinuz <br />
/sbin/grubby<br />
&nbsp; --add-kernel /boot/centos5-x86_64/vmlinuz<br />
&nbsp; --initrd=/boot/centos5-x86_64/initrd.img<br />
&nbsp; --args=&quot;ip=x.x.x.x netmask=y.y.y.y gateway=z.z.z.z dns=n.n.n.n<br />
&nbsp; &nbsp; ksdevice=eth0<br />
&nbsp; &nbsp; method=http://mirror.leaseweb.com/centos/5.6/os/x86_64/<br />
&nbsp; &nbsp; lang=en_US<br />
&nbsp; &nbsp; keymap=us<br />
&nbsp; &nbsp; vnc<br />
&nbsp; &nbsp; vncpassword=foobar<br />
&nbsp; &nbsp; headless&quot;<br />
&nbsp; --title=&quot;CentOS Reinstall&quot;</div></td></tr></tbody></table></div>
<p>Assuming the new Grub entry is the first one (0), ask Grub to boot pick it next reboot:</p>
<div class="codecolorer-container text geshi" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:590px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">echo “savedefault --stage2=/boot/grub/stage2 --default=0 --once” | grub --batch</div></td></tr></tbody></table></div>
<p>Now cross your fingers, pray to your preferred deity or lack thereof and reboot. If your karma is good, the server should come up in a few minutes. Now connect to it with the VNC client of your choice. Example:</p>
<div class="codecolorer-container text geshi" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:590px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">vncviewer x.x.x.x:1</div></td></tr></tbody></table></div>
<p>If you&#8217;re lucky, you should be presented with something along the lines of this:</p>
<p><img src="/uploads/2011/06/centos-reinstall-11-600x450.png" alt="" title="centos-reinstall-1" width="600" height="450" class="alignnone size-medium wp-image-190" /></p>
<p>Now it&#8217;s all up to you. Based on my experience, I recommend making good use of RAID and LVM and keep your /root and /home partitions separate, but it&#8217;s all up to you. Be careful though &#8211; once you&#8217;ve started messing with the partition table, your disk is wiped and there is no way back &#8211; you have to finish the installation before you can give the remote reinstall another go.</p>
<p><img src="/uploads/2011/06/centos-reinstall-2-600x450.png" alt="" title="centos-reinstall-2" width="600" height="450" class="alignnone size-medium wp-image-192" /></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.spind.net/2011/06/07/reinstalling-centos-5-6-remote/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Setting DHCP hostname with Network Manager</title>
		<link>http://blog.spind.net/2010/06/10/setting-dhcp-hostname-with-network-manager/</link>
		<comments>http://blog.spind.net/2010/06/10/setting-dhcp-hostname-with-network-manager/#comments</comments>
		<pubDate>Thu, 10 Jun 2010 10:51:21 +0000</pubDate>
		<dc:creator>hc</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[DHCP]]></category>
		<category><![CDATA[Hostname]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[NetworkManager]]></category>

		<guid isPermaLink="false">http://blog.spind.net/?p=179</guid>
		<description><![CDATA[If you&#8217;re running Linux on your desktop, you&#8217;re probably using Network Manager to handle your network connections. The configuration interface doesn&#8217;t let you specify a DHCP hostname, which strikes me as odd. Luckily there&#8217;s a solution; add the following to /etc/dhclient-eth0.conf: send host-name &#8220;myneathostname&#8221;;]]></description>
			<content:encoded><![CDATA[<p>If you&#8217;re running Linux on your desktop, you&#8217;re probably using Network Manager to handle your network connections. The configuration interface doesn&#8217;t let you specify a DHCP hostname, which strikes me as odd. Luckily there&#8217;s a solution; add the following to <tt>/etc/dhclient-eth0.conf</tt>:</p>
<div class="codebox">
send host-name &#8220;myneathostname&#8221;;
</div>
]]></content:encoded>
			<wfw:commentRss>http://blog.spind.net/2010/06/10/setting-dhcp-hostname-with-network-manager/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Installing Fedora 13 on a MacBook Pro</title>
		<link>http://blog.spind.net/2010/05/27/installing-fedora-13-on-a-macbook-pro/</link>
		<comments>http://blog.spind.net/2010/05/27/installing-fedora-13-on-a-macbook-pro/#comments</comments>
		<pubDate>Thu, 27 May 2010 20:52:50 +0000</pubDate>
		<dc:creator>hc</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Fedora]]></category>
		<category><![CDATA[Fedora13]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Mac]]></category>
		<category><![CDATA[MacBook]]></category>
		<category><![CDATA[MacBookPro]]></category>
		<category><![CDATA[x86_64]]></category>

		<guid isPermaLink="false">http://blog.spind.net/?p=177</guid>
		<description><![CDATA[Fedora releases are sometimes a bit flaky, and Fedora 13 isn&#8217;t an exception &#8211; at least not when I was trying to install it on my MacBook Pro 5,5. It simply froze while booting the installation operating system &#8211; last display error was &#8220;Waiting for hardware to initialize&#8221;. Hours later, it turns out the magic [...]]]></description>
			<content:encoded><![CDATA[<p>Fedora releases are sometimes a bit flaky, and Fedora 13 isn&#8217;t an exception &#8211; at least not when I was trying to install it on my MacBook Pro 5,5. It simply froze while booting the installation operating system &#8211; last display error was <em>&#8220;Waiting for hardware to initialize&#8221;</em>. Hours later, it turns out the magic trick is to add the <em>nomodeset</em> kernel option when booting the installation.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.spind.net/2010/05/27/installing-fedora-13-on-a-macbook-pro/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CentOS 5 Remote Reinstall over VNC</title>
		<link>http://blog.spind.net/2010/01/14/centos-5-remote-reinstall-over-vnc/</link>
		<comments>http://blog.spind.net/2010/01/14/centos-5-remote-reinstall-over-vnc/#comments</comments>
		<pubDate>Thu, 14 Jan 2010 21:26:57 +0000</pubDate>
		<dc:creator>hc</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[CentOS]]></category>
		<category><![CDATA[Installation]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Reinstall]]></category>
		<category><![CDATA[Remote]]></category>
		<category><![CDATA[VNC]]></category>

		<guid isPermaLink="false">http://blog.spind.net/?p=169</guid>
		<description><![CDATA[So you want to live your life on the edge, and do a remote reinstall of your server? The reasons can be many &#8211; maybe the server was compromised, or &#8211; like me &#8211; you just received a freshly installed new system with a horrible disk partitioning or maybe even the wrong choice of architecture. [...]]]></description>
			<content:encoded><![CDATA[<p>So you want to live your life on the edge, and do a remote reinstall of your server? The reasons can be many &#8211; maybe the server was compromised, or &#8211; like me &#8211; you just received a freshly installed new system with a horrible disk partitioning or maybe even the wrong choice of architecture. I&#8217;ll show you how! <img src='http://blog.spind.net/wp/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>I just received my dedicated server at bulk price, but unfortunately also with a bulk installation of CentOS. It&#8217;s fitted with two 250G disks, yet there is no mirroring or anything installed. On top of this, this delicious 64-bit system was running a 32-bit operating system. I was not amused. Asking for a special reinstall would probably cost me a fortune in support, and even then I probably wouldn&#8217;t get it exactly like I wanted it.</p>
<p>Luckily most new Linux distributions feature remote installation via VNC. If the system is already running Linux &#8211; like this one &#8211; its both easy and safe to play around with this method. In this example, we&#8217;ll be installing CentOS 5.4 x86_64.</p>
<p>Step 1: Get a hold of the bootstrap files. This includes the Linux kernel image and the ramdisk image. Put these on your /boot partition:</p>
<div class="codebox">
$ cd /boot<br />
$ mkdir centos5-x86_64<br />
$ cd centos5-x86_64<br />
$ wget http://mirror.leaseweb.com/centos/5.4/os/x86_64/isolinux/vmlinuz<br />
$ wget http://mirror.leaseweb.com/centos/5.4/os/x86_64/isolinux/initrd.img
</div>
<p>Step 2: Add an entry to the Grub boot loader. Adjust values for network (ip, netmask, dns, gateway) and pick a better VNC password than me. Copy the &#8220;root (&#8230;)&#8221; line from a working entry:</p>
<div class="codebox">
title CentOS 5 VNC Install<br />
        root (hd0,0)<br />
        kernel /centos5-x86_64/vmlinuz vnc vncpassword=foobar headless ip=1.2.3.4 netmask=255.255.255.0 gateway=1.2.3.1 dns=2.3.4.5 ksdevice=eth0 method=http://mirror.leaseweb.com/centos/5.4/os/x86_64/ lang=en_US keymap=us<br />
        initrd /centos5-x86_64/initrd.img
</div>
<p>Step 3: Ask the Grub boot loader to boot your new entry next time, and only next time. This makes a lot of sense if your hosting facility allows you to power cycle the server remote &#8211; and they should. Really. If you can&#8217;t do this yourself, at least you can have some support drone push the reset button if the server doesn&#8217;t come up. Note what number your new entry in the Grub configuration file has. First one is 0, second is 1 etc. I had two entries already, so that made my new entry number 2:</p>
<div class="codebox">
$ echo &#8220;savedefault &#8211;stage2=/boot/grub/stage2 &#8211;default=2 &#8211;once&#8221; | grub &#8211;batch
</div>
<p>Step 4: Reboot and be patient. Some servers take up to five minutes to come back up &#8211; probably because of a BIOS misconfiguration. Anyway, reboot it:</p>
<div class="codebox">
$ reboot
</div>
<p>Step 5: Connect to your server with your favorite VNC client. Mine&#8217;s <a href="http://sourceforge.net/projects/cotvnc/">Chicken of the VNC</a> <img src='http://blog.spind.net/wp/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' />  You&#8217;ll need to connect to port 5901, which in VNC-terms often is referred to as &#8220;Display 1&#8243;. Use the password you specified:</p>
<p><a href="/uploads/2010/01/vnc.png"><img src="/uploads/2010/01/vnc.png" alt="vnc" title="vnc" width="509" height="314" class="alignnone size-full wp-image-173" /></a></p>
<p>Step 6: Run the install <img src='http://blog.spind.net/wp/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' />  After this, your neat remote installation will be wiped, so double check all your network settings.</p>
<p><a href="/uploads/2010/01/install.png"><img src="/uploads/2010/01/install-600x466.png" alt="install" title="install" width="600" height="466" class="alignnone size-medium wp-image-174" /></a></p>
<p>Good luck! <img src='http://blog.spind.net/wp/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://blog.spind.net/2010/01/14/centos-5-remote-reinstall-over-vnc/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Moving disk images from VMWare to VirtualBox</title>
		<link>http://blog.spind.net/2009/07/02/moving-disk-images-from-vmware-to-virtualbox/</link>
		<comments>http://blog.spind.net/2009/07/02/moving-disk-images-from-vmware-to-virtualbox/#comments</comments>
		<pubDate>Thu, 02 Jul 2009 14:34:39 +0000</pubDate>
		<dc:creator>hc</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Fedora]]></category>
		<category><![CDATA[Fedora11]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[VirtualBox]]></category>
		<category><![CDATA[VMWare]]></category>

		<guid isPermaLink="false">http://blog.spind.net/?p=153</guid>
		<description><![CDATA[I couldn&#8217;t find any updated information on this online, so this is my ultra short guide to converting VMWare disk images to VirtualBox. This is tested with VirtualBox 3.0.0 under Fedora 11. Step one is to concatenate fragmented VMWare images. This might not me necessary in your case, but we&#8217;ll do it anyway. Let&#8217;s assume [...]]]></description>
			<content:encoded><![CDATA[<p>I couldn&#8217;t find any updated information on this online, so this is my ultra short guide to converting VMWare disk images to VirtualBox. This is tested with VirtualBox 3.0.0 under Fedora 11.</p>
<p>Step one is to concatenate fragmented VMWare images. This might not me necessary in your case, but we&#8217;ll do it anyway. Let&#8217;s assume the image you want to convert is called <tt>leopard-fragmented.vmdk</tt>:</p>
<div class="codebox">
vdiskmanager -r leopard-fragmented.vmdk leopard.vmdk
</div>
<p>Now you&#8217;re got a rather huge VMWare disk image file, and we&#8217;ll use <tt>qemu</tt> to convert it into a raw disk image:</p>
<div class="codebox">
qemu-img convert leopard.vmdk leopard.bin
</div>
<p>This will take a while, and you&#8217;ll probably end up with a less-than-huge file since this is the raw file, without any fancy compression. Now you&#8217;ll want to convert this to the VirtualBox disk format, <tt>vdi</tt>:</p>
<div class="codebox">
VBoxManage convertfromraw leopard.bin leopard.vdi
</div>
<p>The <tt>vdi</tt> ended up being around 7GB &#8211; more or less the exact size of the <tt>vmdk</tt> file. The temporary <tt>bin</tt> file was 32GB though. Be sure you&#8217;re got enough room on your disk for this job.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.spind.net/2009/07/02/moving-disk-images-from-vmware-to-virtualbox/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The mysterious case of the 501 error</title>
		<link>http://blog.spind.net/2009/05/13/the-mysterious-case-of-the-501-error/</link>
		<comments>http://blog.spind.net/2009/05/13/the-mysterious-case-of-the-501-error/#comments</comments>
		<pubDate>Wed, 13 May 2009 09:10:30 +0000</pubDate>
		<dc:creator>hc</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[CentOS]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[ModSecurity]]></category>
		<category><![CDATA[Paranoia]]></category>

		<guid isPermaLink="false">http://blog.spind.net/?p=137</guid>
		<description><![CDATA[I recently installed mod_security on our Apache server, and everything seemed to be working fine. Suddenly, while working on the previous post, I was presented with this error: Method Not Implemented POST to /wp/wp-admin/post.php not supported. I checked the log files, and found these hits: [Wed May 13 10:52:48 2009] [error] [client xxx.xxx.xxx.xxx] ModSecurity: Access [...]]]></description>
			<content:encoded><![CDATA[<p>I recently installed <a href="http://www.modsecurity.org/">mod_security</a> on our Apache server, and everything seemed to be working fine. Suddenly, while working on the <a href="http://blog.spind.net/2009/05/13/prioritizing-linux-services/">previous post</a>, I was presented with this error:</p>
<div class="codebox">
Method Not Implemented<br />
POST to /wp/wp-admin/post.php not supported.
</div>
<p>I checked the log files, and found these hits:</p>
<div class="codebox">
[Wed May 13 10:52:48 2009] [error] [client xxx.xxx.xxx.xxx] ModSecurity: Access denied with code 501 (phase 2). Pattern match &#8220;(?:\\b(?:\\.(?:ht(?:access|passwd|group)|www_?acl)|global\\.asa|httpd\\.conf|boot\\.ini)\\b|\\/etc\\/)&#8221; at ARGS:content. [file "/etc/httpd/modsecurity.d/modsecurity_crs_40_generic_attacks.conf"] [line "114"] [id "950005"] [msg "Remote File Access Attempt"] [data "/etc/"] [severity "CRITICAL"] [tag "WEB_ATTACK/FILE_INJECTION"] [hostname "blog.spind.net"] [uri "/wp/wp-admin/post.php"] [unique_id "xxxxxxxxxxxxx"]
</div>
<p>In short, it&#8217;s <tt>mod_security</tt> telling me that the text <tt>/etc/</tt> triggered rule 950005, which should be protecting our server against malicious attempts to access local files &#8211; like the ones in the <tt>/etc</tt> directory. The access file only showed a POST to <tt>/wp/wp-admin/post.php</tt> so I had no idea where the <tt>/etc/</tt> string was coming from. Maybe some weird hidden Javascript? Maybe something else?</p>
<p><a href="http://techpulp.com/2009/02/how-to-resolve-post-to-wp-admin-post-php-not-supported-error-in-wordpress/">This post</a> narrowed acknowledged it to be related to <tt>mod_security</tt> and suggested to disable it permanently or just turn it temporarily off while posting. I aim to do better.</p>
<p>The <a href="http://blog.spind.net/2009/05/13/prioritizing-linux-services/">previous post</a> has a wonderful nugget of enlightenment about prioritizing services on Linux, and suggested a couple of changes to the Linux configuration files &#8211; most of which are located in.. the <tt>/etc/</tt> folder. In short, I triggered <tt>mod_security</tt> rule 950005 by posting data containing <tt>/etc/</tt>.</p>
<p>If you ever plan to cover issues related to deployment and administration of operating system in the Unix family, this rule absolutely has got to go. Obviously it&#8217;s written with the best of intentions, but as it is doesn&#8217;t work and should be disabled.</p>
<p>Avoid messing with <tt>/etc/httpd/modsecurity.d/modsecurity_crs_40_generic_attacks.conf</tt> and just disable the specific rules in <tt>/etc/httpd/conf.d/mod_security.conf</tt> by adding this:</p>
<div class="codebox">
# Disable a couple of rules in modsecurity.d/modsecurity_crs_40_generic_attacks.conf<br />
# that prevents submitting text containing filenames in the Unix family.<br />
SecRuleRemoveById 950005<br />
SecRuleRemoveById 950006
</div>
]]></content:encoded>
			<wfw:commentRss>http://blog.spind.net/2009/05/13/the-mysterious-case-of-the-501-error/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Updating CentOS &#8211; the right way</title>
		<link>http://blog.spind.net/2009/04/15/updating-centos-the-right-way/</link>
		<comments>http://blog.spind.net/2009/04/15/updating-centos-the-right-way/#comments</comments>
		<pubDate>Wed, 15 Apr 2009 14:13:43 +0000</pubDate>
		<dc:creator>hc</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[CentOS]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[RPM]]></category>
		<category><![CDATA[Yum]]></category>

		<guid isPermaLink="false">http://blog.spind.net/?p=121</guid>
		<description><![CDATA[I&#8217;ve always had trouble understanding exactly why I would get a million .rpmnew files after updating my servers, especially when those files were exactly identical to their original counterparts. Luckily there seems to be a solution &#8211; the yum-merge-conf plugin! I updated my CentOS 5.2 to 5.3 by running yum --merge-conf, and after downloading and [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve always had trouble understanding exactly why I would get a million <tt>.rpmnew</tt> files after updating my servers, especially when those files were exactly identical to their original counterparts. Luckily there seems to be a solution &#8211; the <tt>yum-merge-conf</tt> plugin!</p>
<p>I updated my CentOS 5.2 to 5.3 by running <tt>yum --merge-conf</tt>, and after downloading and updating, yum asked me what it should do about the new configuration files &#8211; kindly sparing me the identical ones:</p>
<div class="codebox">
&#8230;<br />
Config files &#8216;/etc/ld.so.conf&#8217; and &#8216;/etc/ld.so.conf.rpmnew&#8217; are identical, I&#8217;m removing the duplicate one<br />
Config files &#8216;/etc/nsswitch.conf&#8217; and &#8216;/etc/nsswitch.conf.rpmnew&#8217; are identical, I&#8217;m removing the duplicate one<br />
Config files &#8216;/etc/krb5.conf&#8217; and &#8216;/etc/krb5.conf.rpmnew&#8217; are identical, I&#8217;m removing the duplicate one<br />
Config files &#8216;/etc/libaudit.conf&#8217; and &#8216;/etc/libaudit.conf.rpmnew&#8217; are identical, I&#8217;m removing the duplicate one</p>
<p>Package sudo: merging configuration for file &#8220;/etc/sudoers&#8221;:<br />
By default, RPM would keep your local version and rename the new one to /etc/sudoers.rpmnew<br />
What do you want to do ?<br />
 &#8211; diff the two versions (d)<br />
 &#8211; do the default RPM action (q)<br />
 &#8211; install the package&#8217;s version (i)<br />
 &#8211; merge interactively with vim (v)<br />
 &#8211; background this process and examine manually (z)<br />
Your answer ?
</p></div>
<p>I chose <em>install the package’s version</em> for everything I know I didn&#8217;t mess with, and <em>do the default RPM action</em> (keep local version) for the ones I had been tweaking.</p>
<p>Now, isn&#8217;t that cool?</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.spind.net/2009/04/15/updating-centos-the-right-way/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>VMWare vs Paranoia</title>
		<link>http://blog.spind.net/2009/03/10/vmware-vs-paranoia/</link>
		<comments>http://blog.spind.net/2009/03/10/vmware-vs-paranoia/#comments</comments>
		<pubDate>Tue, 10 Mar 2009 10:58:08 +0000</pubDate>
		<dc:creator>hc</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Fedora]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Paranoia]]></category>
		<category><![CDATA[VMWare]]></category>

		<guid isPermaLink="false">http://blog.spind.net/?p=102</guid>
		<description><![CDATA[As a website developer, I unfortunately need to test everything in Microsoft&#8217;s dreaded Internet Explorer. For this, I&#8217;ve got a Windows XP running on an installation of VMware® Workstation on my Linux desktop. It works like a charm, except when the kernel is updated. Aside from being a website developer, I&#8217;m also a paranoid system [...]]]></description>
			<content:encoded><![CDATA[<p>As a website developer, I unfortunately need to test everything in Microsoft&#8217;s dreaded Internet Explorer. For this, I&#8217;ve got a Windows XP running on an installation of <a href="http://www.vmware.com/">VMware® Workstation</a> on my Linux desktop. It works like a charm, except when the kernel is updated.</p>
<p>Aside from being a website developer, I&#8217;m also a paranoid system administrator. One of the first thing I add to my login scripts, is <tt>umask 077</tt> &#8211; the command that sets the permission mask for newly created files. Setting this to <tt>077</tt> prevents anyone but the current user from being granted any rights &#8211; read, write or execution. It&#8217;s a sane thing to do, but unfortunately a lot of scripts fail to explicitly grant access to other users, especially when installing RPM packages or &#8211; in this case &#8211; running VMWare after a kernel upgrade to build new VMWare-specific kernel modules.</p>
<p>In this specific case, VMWare kernel modules were built by the <tt>root</tt> user, and ended up in <tt>/lib/modules/2.6.27.19-170.2.35.fc10.x86_64/misc/</tt> which was created by the build process. Read permissions were not explicitly granted to everyone, so when running <tt>vmware</tt> as a mortal user, it was unable to actually read and verify the newly built kernel modules. The natural response to the user wasn&#8217;t <em>&#8220;Unable to read kernel module files&#8221;</em>, but instead <em>&#8220;You need to build kernel modules for your specific kernel&#8221;</em>. Makes a lot of sense, eh? <img src='http://blog.spind.net/wp/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>Manually granting read and execution rights on the <tt>/misc</tt> directory and the files in it fixed the issue.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.spind.net/2009/03/10/vmware-vs-paranoia/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

