<?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>Rob Garth &#187; centos</title>
	<atom:link href="http://blog.sumostyle.net/robg/tag/centos/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.sumostyle.net/robg</link>
	<description>Mildly Useful Stuff</description>
	<lastBuildDate>Fri, 12 Aug 2011 00:36:58 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Re-installing with yum</title>
		<link>http://blog.sumostyle.net/robg/2009/10/14/re-installing-with-yum/</link>
		<comments>http://blog.sumostyle.net/robg/2009/10/14/re-installing-with-yum/#comments</comments>
		<pubDate>Wed, 14 Oct 2009 00:57:09 +0000</pubDate>
		<dc:creator>robg</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[fedora]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[redhat]]></category>
		<category><![CDATA[rpm]]></category>

		<guid isPermaLink="false">http://blog.sumostyle.net/robg/?p=368</guid>
		<description><![CDATA[I recently had a problem where a yum update broke things because of my umask setting, I needed to reinstall the packages. Yum doesn&#8217;t have a reinstall feature, and I didn&#8217;t want to do a remove first, the packages were currently in use. So how to do a reinstall? Remove the package from the RPM [...]]]></description>
			<content:encoded><![CDATA[<p>I recently had a problem where a yum update broke things because of my umask setting, I needed to reinstall the packages.</p>
<p>Yum doesn&#8217;t have a reinstall feature, and I didn&#8217;t want to do a remove first, the packages were currently in use. So how to do a reinstall?</p>
<p>Remove the package from the RPM database without actually removing it:<br />
<code># rpm -e --justdb --nodeps "package name"</code></p>
<p>The package is still installed but when yum queries the RPM DB it will find it missing and allow you to install it:<br />
<code># yum install "package name"</code></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.sumostyle.net/robg/2009/10/14/re-installing-with-yum/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>RPM rollbacks?</title>
		<link>http://blog.sumostyle.net/robg/2008/12/09/rpm-rollbacks/</link>
		<comments>http://blog.sumostyle.net/robg/2008/12/09/rpm-rollbacks/#comments</comments>
		<pubDate>Mon, 08 Dec 2008 21:40:58 +0000</pubDate>
		<dc:creator>robg</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[fedora]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[patches]]></category>
		<category><![CDATA[redhat]]></category>
		<category><![CDATA[rpm]]></category>

		<guid isPermaLink="false">http://blog.sumostyle.net/robg/?p=283</guid>
		<description><![CDATA[I really should read man pages. I had no idea that rpm could do rollbacks with just a couple of config changes, and that it was supported in yum. This would have come in really handy last week. I upgraded an out of date file server and the latest samba broke Directory authentication, which was [...]]]></description>
			<content:encoded><![CDATA[<p>I really should read man pages. I had no idea that rpm could do rollbacks with just a couple of config changes, and that it was supported in yum.</p>
<p>This would have come in really handy last week. I upgraded an out of date file server and the latest samba broke Directory authentication, which was not cool and file shares cold not be authenticated until the problem was solved. CentOS do not keep old packages in their repos. I had to compile a FC6 version of samba to rollback to a working state until I investigated and found a patch.</p>
<p>The bug is dated May, the patch has been out for months, and the fix is still not in official repos.</p>
<p>Anyway back to rollbacks, 2 steps:</p>
<ol>
<li>In /etc/yum.conf add the line: <br />
<tt>tsflags=repackage</tt></li>
<li>In /etc/rpm/macos (create it if it does not exist), add the line:<br />
<tt>%_repackage_all_erasures 1<span style="font-family: 'Lucida Grande';"> </span></tt></li>
</ol>
<p>Now if the update or install clobbers something, you can roll back packages to their former state just with a simple rpm command.</p>
<p>Examples:</p>
<p><tt>rpm -Uhv –rollback ‘9:00 am’</tt>,<br />
<tt>rpm -Uhv –rollback ‘4 hours ago’</tt>,<br />
<tt>rpm -Uhv –rollback ‘december 25′</tt>.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.sumostyle.net/robg/2008/12/09/rpm-rollbacks/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Trash support with NFS4</title>
		<link>http://blog.sumostyle.net/robg/2008/11/11/trash-support-with-nfs4/</link>
		<comments>http://blog.sumostyle.net/robg/2008/11/11/trash-support-with-nfs4/#comments</comments>
		<pubDate>Tue, 11 Nov 2008 11:25:36 +0000</pubDate>
		<dc:creator>robg</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[fedora]]></category>
		<category><![CDATA[gnome]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[nfs4]]></category>

		<guid isPermaLink="false">http://blog.sumostyle.net/robg/?p=276</guid>
		<description><![CDATA[Wow déjà vu. So gnome-vfs is still brain dead. Of course NFS4 is going to be used at some point for home directories and need trash support. Why is the list of supported filesystems still hard-coded in a c file? Follow the instructions from the previous post, modify them to say nfs4 instead of fuse. Update: [...]]]></description>
			<content:encoded><![CDATA[<p>Wow <a href="http://blog.sumostyle.net/robg/?p=96">déjà vu</a>. So gnome-vfs is still brain dead. Of course NFS4 is going to be used at some point for home directories and need trash support. Why is the list of supported filesystems still hard-coded in a c file?</p>
<p>Follow the instructions from the previous post, modify them to say nfs4 instead of fuse.</p>
<p><strong>Update: 13/11/2008</strong></p>
<p>Patch file you can apply to the SRPM of gnome-vfs: <a href="http://blog.sumostyle.net/robg/wp-content/uploads/2008/11/gnome-vfs-2162-nfs4-trash.patch">gnome-vfs-2162-nfs4-trash.patch</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.sumostyle.net/robg/2008/11/11/trash-support-with-nfs4/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>NFS4, Kerberos, NTP and Redhat</title>
		<link>http://blog.sumostyle.net/robg/2008/11/11/nfs4-kerberos-ntp-and-redhat/</link>
		<comments>http://blog.sumostyle.net/robg/2008/11/11/nfs4-kerberos-ntp-and-redhat/#comments</comments>
		<pubDate>Tue, 11 Nov 2008 00:55:26 +0000</pubDate>
		<dc:creator>robg</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[kerberos]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[nfs4]]></category>
		<category><![CDATA[redhat]]></category>

		<guid isPermaLink="false">http://blog.sumostyle.net/robg/?p=274</guid>
		<description><![CDATA[My latest lab build is using nfs4 to mount home directories. Kerberos authentication requires the time to synced before it will work. Redhat (CentOS) tries mounting Network filesystems before syncing the time on startup. Can anyone else see the problem? If any of our lab machines have their time out by more than 5 minutes [...]]]></description>
			<content:encoded><![CDATA[<p>My latest lab build is using nfs4 to mount home directories.</p>
<p>Kerberos authentication requires the time to synced before it will work. Redhat (CentOS) tries mounting Network filesystems before syncing the time on startup. Can anyone else see the problem?</p>
<p>If any of our lab machines have their time out by more than 5 minutes the mount will fail.</p>
<p>I have changed the startup priority of ntpd from 58 to 12, and this has fixed the problem.</p>
<p>As ntpd only requires networking to work, I cannot understand why it starts at 58, but problem solved.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.sumostyle.net/robg/2008/11/11/nfs4-kerberos-ntp-and-redhat/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Xdmx rendering issues (gtk, qt and others)</title>
		<link>http://blog.sumostyle.net/robg/2008/10/29/xdmx-rendering-issues-gtk-qt-and-others/</link>
		<comments>http://blog.sumostyle.net/robg/2008/10/29/xdmx-rendering-issues-gtk-qt-and-others/#comments</comments>
		<pubDate>Wed, 29 Oct 2008 11:32:15 +0000</pubDate>
		<dc:creator>robg</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[X]]></category>
		<category><![CDATA[xdmx]]></category>

		<guid isPermaLink="false">http://blog.sumostyle.net/robg/?p=258</guid>
		<description><![CDATA[I have been setting up an Xdmx render wall. When finished it will be a 3&#215;3 rear projected screen, with 9 computers (CentOS 5 installs) and 18 projectors for 3d visualization. For a couple of years now Xdmx has been rolled into the Xorg source and getting it configured is really not that hard. When [...]]]></description>
			<content:encoded><![CDATA[<p>I have been setting up an Xdmx render wall. When finished it will be a 3&#215;3 rear projected screen, with 9 computers (CentOS 5 installs) and 18 projectors for 3d visualization.</p>
<p>For a couple of years now Xdmx has been rolled into the Xorg source and getting it configured is really not that hard. When I have ironed out this install I may write a howto. But while some stuff was working just fine and dandy most apps that use a modern widget library for the UI (ala GTK or QT) were failing to render fonts properly, not drawing icons, messing up colors and just not looking right in general.</p>
<p>I scoured the interweb for answers, and the main thing I saw was just forum posts instructing users to turn of the Xorg render extension. This works, though makes the rendering of windows very, very slow. On what should be a high performance render wall I have an issue with this.</p>
<p>Anyway, I eventually found this <a href="http://sourceforge.net/mailarchive/forum.php?thread_name=4eb2ea800607170210k1decc24bv383c57848dc01a62%40mail.gmail.com&amp;forum_name=dmx-devel">post</a>, and figured it was worth a try. And it Worked! brilliant! QT, GTK, Firefox, everything is looking peachy.</p>
<p>I threw it together in this <a href="http://blog.sumostyle.net/robg/wp-content/uploads/2008/10/dmxpict.patch">patch</a> file which I applied to the SRPM for xorg-x11-server.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.sumostyle.net/robg/2008/10/29/xdmx-rendering-issues-gtk-qt-and-others/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Building pam_mount on CentOS 5 (RHEL)</title>
		<link>http://blog.sumostyle.net/robg/2008/10/13/building-pam_mount-on-centos-5-rhel/</link>
		<comments>http://blog.sumostyle.net/robg/2008/10/13/building-pam_mount-on-centos-5-rhel/#comments</comments>
		<pubDate>Mon, 13 Oct 2008 01:27:17 +0000</pubDate>
		<dc:creator>robg</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[fedora]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[pam]]></category>
		<category><![CDATA[rpm]]></category>

		<guid isPermaLink="false">http://blog.sumostyle.net/robg/?p=254</guid>
		<description><![CDATA[huh? I can&#8217;t seem to find pam_mount for CentOS 5. RPMForge seems to have the build logs for it, but yum can&#8217;t see the rpm to install and neither can I. Pretty simple to fix, a bit lazy, but it will only take you 5 minutes. Grab the rpm sources for libHX and pam_mount from [...]]]></description>
			<content:encoded><![CDATA[<p>huh? I can&#8217;t seem to find pam_mount for CentOS 5. RPMForge seems to have the build logs for it, but yum can&#8217;t see the rpm to install and neither can I.</p>
<p>Pretty simple to fix, a bit lazy, but it will only take you 5 minutes.</p>
<p>Grab the rpm sources for libHX and pam_mount from your local Fedora 9 mirror. I got mine from here:<br />
<a href="http://mirror.aarnet.edu.au/pub/fedora/linux/updates/9/SRPMS/pam_mount-0.41-2.fc9.src.rpm"></a></p>
<p><a href="http://mirror.aarnet.edu.au/pub/fedora/linux/updates/9/SRPMS/pam_mount-0.41-2.fc9.src.rpm">http://mirror.aarnet.edu.au/pub/fedora/linux/updates/9/SRPMS/pam_mount-0.41-2.fc9.src.rpm</a><br />
<a href="http://mirror.aarnet.edu.au/pub/fedora/linux/updates/9/SRPMS/libHX-1.18-1.fc9.src.rpm">http://mirror.aarnet.edu.au/pub/fedora/linux/updates/9/SRPMS/libHX-1.18-1.fc9.src.rpm</a></p>
<p>Build the libHX source:</p>
<pre># rpmbuild --rebuild libHX-1.18-1.fc9.src.rpm</pre>
<p>Install the libHX rpm and the libHX-devel rpm. Now build pam_mount the same way:</p>
<pre># rpmbuild --rebuild pam_mount-0.41-2.fc9.src.rpm</pre>
<p>Use &#8220;yum localinstall&#8221; to install pam_mount as it probably needs to grab a perl XML module as well.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.sumostyle.net/robg/2008/10/13/building-pam_mount-on-centos-5-rhel/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Connecting Leopard to a Linux VNC Server</title>
		<link>http://blog.sumostyle.net/robg/2008/08/05/connecting-leopard-to-linux-vnc-server/</link>
		<comments>http://blog.sumostyle.net/robg/2008/08/05/connecting-leopard-to-linux-vnc-server/#comments</comments>
		<pubDate>Tue, 05 Aug 2008 00:04:01 +0000</pubDate>
		<dc:creator>robg</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[leopard]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[vnc]]></category>

		<guid isPermaLink="false">http://blog.sumostyle.net/robg/?p=176</guid>
		<description><![CDATA[Leopard has a nifty VNC implementation built right into the OS, you can share your screen from the Sharing preferences and connect to it using any VNC client. And there is a VNC client built right into the finder ⌘-K (Connect to server) allows you to enter in a vnc server in the form vnc://server:port. But [...]]]></description>
			<content:encoded><![CDATA[<p>Leopard has a nifty VNC implementation built right into the OS, you can share your screen from the Sharing preferences and connect to it using any VNC client. And there is a VNC client built right into the finder ⌘-K (Connect to server) allows you to enter in a vnc server in the form vnc://server:port.</p>
<p>But if you try and connect to an up to date Xvnc server it will probably fail, you need to specify that your VNC server uses the VNC protocol 3.3 for backwards compatibility, the command option is simply &#8220;-Protocol3.3&#8243; you will now be able to connect to your Xvnc server from Leopard using the built in viewer.</p>
<p>If you were to follow my earlier instruction for a <a href="http://blog.sumostyle.net/robg/?p=82" target="_blank">GDM VNC Server</a> then simply add this option to: /etc/xinetd.d/vnc</p>
<p><strong><em>UPDATE #1</em></strong></p>
<p>You will notice that the connecting to server box doesn&#8217;t go away, this is because Apple does not like the option: -securitytypes=none</p>
<p>Setup a password file using vncpasswd and remove the above option and add the option:</p>
<p>-rfbauth=/path/to/vncpasswd_file</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.sumostyle.net/robg/2008/08/05/connecting-leopard-to-linux-vnc-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Annoying PC Speaker beeps</title>
		<link>http://blog.sumostyle.net/robg/2008/07/24/annoying-pc-speaker-beeps/</link>
		<comments>http://blog.sumostyle.net/robg/2008/07/24/annoying-pc-speaker-beeps/#comments</comments>
		<pubDate>Thu, 24 Jul 2008 05:08:37 +0000</pubDate>
		<dc:creator>robg</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[fedora]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://blog.sumostyle.net/robg/?p=161</guid>
		<description><![CDATA[I am sure there is a better way to do this, but I am working on a linux lab build and the PC speaker beep is annoying me. Really annoying me. I can only imagine what a lab full of beeping PCs would be like. The quickest way to stop the beeps I found was [...]]]></description>
			<content:encoded><![CDATA[<div>
<p>I am sure there is a better way to do this, but I am working on a linux lab build and the PC speaker beep is annoying me. Really annoying me.</p>
<p>I can only imagine what a lab full of beeping PCs would be like. The quickest way to stop the beeps I found was to unload the pc speaker driver:</p>
<p><code>modprobe -r pcspkr</code></p>
<p>If you want to turn it off permanently add a line /etc/modprobe.conf</p>
<p><code>alias pcspkr off</code></div>
]]></content:encoded>
			<wfw:commentRss>http://blog.sumostyle.net/robg/2008/07/24/annoying-pc-speaker-beeps/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>GDM logins using VNC</title>
		<link>http://blog.sumostyle.net/robg/2006/11/15/gdm-logins-using-vnc/</link>
		<comments>http://blog.sumostyle.net/robg/2006/11/15/gdm-logins-using-vnc/#comments</comments>
		<pubDate>Wed, 15 Nov 2006 00:00:00 +0000</pubDate>
		<dc:creator>robg</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[fedora]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[vnc]]></category>

		<guid isPermaLink="false">http://blog.sumostyle.net/robg/?p=82</guid>
		<description><![CDATA[It is possible to allow remote users to login to gnome, using gdm as you would on console, via vnc. There are other tools to do this, like NX, which are technically superior, but vnc clients are almost ubiquitous making this solution work for almost any client. We will use xinetd to handle the incoming [...]]]></description>
			<content:encoded><![CDATA[<p>It is possible to allow remote users to login to gnome, using gdm as you would on console, via vnc. There are other tools to do this, like NX, which are technically superior, but vnc clients are almost ubiquitous making this solution work for almost any client.</p>
<p><span id="more-82"></span></p>
<p>We will use xinetd to handle the incoming connections. Since Core 4, xinetd is not installed by default, I have tested this on FC3 &#8211; FC6. We also need the vnc-server software as well. To install the required software:</p>
<p><code># yum install xinetd vnc-server</code></p>
<p>Open the GDM configuration tool: System -&gt; Administration -&gt; Login Screen. Select the &#8216;Remote&#8217; tab. Style will currently read &#8220;Remote login disabled&#8221;. Change this to read &#8220;Same as local&#8221;.</p>
<p><img src="http://blog.sumostyle.net/robg/wp-content/uploads/2007/10/gdm_vnc_01.png" alt="" /></p>
<p>It is probably a good idea to disable remote system logins under the security tab, unless you need it.</p>
<p>All of these gdm settings can be edited directly as well, /etc/X11/gdm/gdm.conf in FC3 and FC4, /etc/gdm/custom.conf for newer versions.</p>
<p>The relevant gdm|custom.conf entries:</p>
<pre>[daemon]
RemoteGreeter=/usr/libexec/gdmgreeter

[security]
AllowRemoteRoot=false

[xdmcp]
Enable=true</pre>
<p>Make sure vnc is not launching on startup:</p>
<p><code class="code"># chkconfig vncserver off</code></p>
<p>Edit /etc/services, adding a new service at the end of the file:</p>
<pre># Local services
vnc             5900/tcp                        # vncserver</pre>
<p>Now we need to define the new service. Create the file /etc/xinetd.d/vnc.</p>
<pre>service vnc
{
     disable = no
     socket-type = stream
     protocol = tcp
     group = tty
     wait = no
     user = nobody
     server = /usr/bin/Xvnc
     server_args = -inetd -query localhost -geometry 1024x768 -depth 16 -once -fp unix/:7100 -securitytypes=none
}</pre>
<p>Save the file. To see the changes, you can restart the machine, or:</p>
<pre># gdm-restart <em>(This will kill X Windows)</em>
# service xinetd restart</pre>
<p>From your machine you will now be able to run &#8216;vncviewer localhost:0&#8242;, and if everything has worked, a vnc window should appear and show a login screen.</p>
<h2>Firewall and Security Issues</h2>
<p>You will probably find however, that if you try this from another machine it won&#8217;t work, your firewall will be stopping the connection. One solution is to open up port 5900 on the firewall, however, vnc sends information over the network un-encrypted, including any passwords you might type in. The better solution is to leave your firewall blocking vnc and tunnel the connection over ssh.</p>
<p>On the client machine (not the vnc server the machine you are connecting from), make an ssh connection to the host machine (the vnc server):</p>
<p><code>$ ssh -L 5901:localhost:5900 vnc.host.machine</code></p>
<p>This will attach your local port 5901 to the remote machine&#8217;s port 5900, the port that runs VNC. You can now attach your vncviewer to your local port, and ssh will tunnel it through to the remote machine.</p>
<p><code>$ vncviewer localhost:1</code></p>
<p>You should now have secure remote logins to your machines.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.sumostyle.net/robg/2006/11/15/gdm-logins-using-vnc/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>

