<?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>Cinq Software &#187; Linux</title>
	<atom:link href="http://cinq.com/category/linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://cinq.com</link>
	<description>my code</description>
	<lastBuildDate>Tue, 27 Jul 2010 18:30:18 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>How to do a SVN Dump from a remote repo</title>
		<link>http://cinq.com/2010/07/27/how-to-do-a-svn-dump-from-a-remote-repo/</link>
		<comments>http://cinq.com/2010/07/27/how-to-do-a-svn-dump-from-a-remote-repo/#comments</comments>
		<pubDate>Tue, 27 Jul 2010 18:08:10 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[documentation]]></category>
		<category><![CDATA[hack]]></category>

		<guid isPermaLink="false">http://cinq.com/?p=97</guid>
		<description><![CDATA[Found this great article on how to hack your way to do a SVN dump from a remote repo. I had never use the svnsync command but this allows you to make the remote repo a local one and you can easily use it to create your dump file. Very useful when you have lost [...]]]></description>
			<content:encoded><![CDATA[<p>Found this great <a href="http://pogopixels.com/blog/dumping-a-svn-repository-from-a-remote-url/">article on how to hack your way to do a SVN dump from a remote repo</a>. I had never use the svnsync command but this allows you to make the remote repo a local one and you can easily use it to create your dump file. Very useful when you have lost admin access to the original server and you need to migrate to a new SVN server.</p>
<p>Quick command list:</p>
<ul>
<li>svnadmin create temprepo</li>
<li>echo &#8216;#!/bin/sh&#8217; &gt; temprepo/hooks/pre-revprop-change</li>
<li>chmod +x temprepo/hooks/pre-revprop-change</li>
<li>svnsync init file://temprepo https://server/svn/origrepo</li>
<li>svnsync sync temprepo</li>
<li>svnadmin dump temprepo &gt; dumpfile</li>
</ul>
<p>Copy the dump file over to the new SVN server and on it:</p>
<ul>
<li>svnadmin load reponame &lt; dumpfile</li>
</ul>
<p>A quick word of warning because the UUID will change with this process so doing &#8220;svn sw&#8221; on existing working copy might prove to be challenging.</p>
]]></content:encoded>
			<wfw:commentRss>http://cinq.com/2010/07/27/how-to-do-a-svn-dump-from-a-remote-repo/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>rhn_register erroring out</title>
		<link>http://cinq.com/2010/03/23/rhn_register-erroring-out/</link>
		<comments>http://cinq.com/2010/03/23/rhn_register-erroring-out/#comments</comments>
		<pubDate>Tue, 23 Mar 2010 19:21:19 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[CIS]]></category>
		<category><![CDATA[haldaemon]]></category>
		<category><![CDATA[rhn_register]]></category>

		<guid isPermaLink="false">http://cinq.com/?p=80</guid>
		<description><![CDATA[It took me over an hour to figure out why it was failing like this: An error has occurred: exceptions.TypeError See /var/log/up2date for more information In the log you would get this explaination: ﻿﻿[Tue Mar 23 11:30:43 2010] rhn_register There was an error while reading the hardware info from the bios. Traceback: [Tue Mar 23 [...]]]></description>
			<content:encoded><![CDATA[<p>It took me over an hour to figure out why it was failing like this:</p>
<p>An error has occurred:<br />
exceptions.TypeError<br />
See /var/log/up2date for more information</p>
<p>In the log you would get this explaination:</p>
<p>﻿﻿[Tue Mar 23 11:30:43 2010] rhn_register There was an error while reading the hardware info from the bios. Traceback:</p>
<p>[Tue Mar 23 11:30:43 2010] rhn_register<br />
Traceback (most recent call last):<br />
File &#8220;/usr/share/rhn/up2date_client/tui.py&#8221;, line 1510, in _activate_hardware<br />
hardwareInfo = hardware.get_hal_system_and_smbios()<br />
File &#8220;/usr/share/rhn/up2date_client/hardware.py&#8221;, line 863, in get_hal_system_and_smbios<br />
props = computer.GetAllProperties()<br />
File &#8220;/usr/lib64/python2.4/site-packages/dbus/proxies.py&#8221;, line 25, in __call__<br />
ret = self._proxy_method (*args, **keywords)<br />
File &#8220;/usr/lib64/python2.4/site-packages/dbus/proxies.py&#8221;, line 102, in __call__<br />
reply_message = self._connection.send_with_reply_and_block(message, timeout)<br />
File &#8220;dbus_bindings.pyx&#8221;, line 455, in dbus_bindings.Connection.send_with_reply_and_block<br />
dbus_bindings.DBusException: The name org.freedesktop.Hal was not provided by any .service files</p>
<p>[Tue Mar 23 11:30:43 2010] rhn_register<br />
Traceback (most recent call last):<br />
File &#8220;/usr/sbin/rhn_register&#8221;, line 82, in ?<br />
app.run()<br />
File &#8220;/usr/share/rhn/up2date_client/rhncli.py&#8221;, line 65, in run<br />
sys.exit(self.main() or 0)<br />
File &#8220;/usr/sbin/rhn_register&#8221;, line 64, in main<br />
ui.main()<br />
File &#8220;/usr/share/rhn/up2date_client/tui.py&#8221;, line 1721, in main<br />
tui.run()<br />
File &#8220;/usr/share/rhn/up2date_client/tui.py&#8221;, line 1608, in run<br />
if self._show_subscription_window() == False:<br />
File &#8220;/usr/share/rhn/up2date_client/tui.py&#8221;, line 1562, in _show_subscription_window<br />
self.password)<br />
File &#8220;/usr/share/rhn/up2date_client/rhnreg.py&#8221;, line 588, in getRemainingSubscriptions<br />
smbios)<br />
File &#8220;/usr/share/rhn/up2date_client/rhnserver.py&#8221;, line 50, in __call__<br />
return rpcServer.doCall(method, *args, **kwargs)<br />
File &#8220;/usr/share/rhn/up2date_client/rpcServer.py&#8221;, line 199, in doCall<br />
ret = method(*args, **kwargs)<br />
File &#8220;/usr/lib64/python2.4/xmlrpclib.py&#8221;, line 1096, in __call__<br />
return self.__send(self.__name, args)<br />
File &#8220;/usr/share/rhn/up2date_client/rpcServer.py&#8221;, line 38, in _request1<br />
ret = self._request(methodname, params)<br />
File &#8220;/usr/lib/python2.4/site-packages/rhn/rpclib.py&#8221;, line 314, in _request<br />
request = self._req_body(params, methodname)<br />
File &#8220;/usr/lib/python2.4/site-packages/rhn/rpclib.py&#8221;, line 222, in _req_body<br />
return xmlrpclib.dumps(params, methodname, encoding=self._encoding)<br />
File &#8220;/usr/lib64/python2.4/xmlrpclib.py&#8221;, line 1029, in dumps<br />
data = m.dumps(params)<br />
File &#8220;/usr/lib64/python2.4/xmlrpclib.py&#8221;, line 603, in dumps<br />
dump(v, write)<br />
File &#8220;/usr/lib64/python2.4/xmlrpclib.py&#8221;, line 615, in __dump<br />
f(self, value, write)<br />
File &#8220;/usr/lib64/python2.4/xmlrpclib.py&#8221;, line 619, in dump_nil<br />
raise TypeError, &#8220;cannot marshal None unless allow_none is enabled&#8221;<br />
exceptions.TypeError: cannot marshal None unless allow_none is enabled</p>
<p>I also tried the rhnreg_ks utility with the &#8211;nohardware argument and that is when it gave me more information about the error:</p>
<p>[Tue Mar 23 15:18:39 2010] up2date Warning: haldaemon or messagebus service not running. Cannot probe hardware and DMI information.</p>
<p>I started the haldaemon process and I could then rhn_register my host.</p>
<p>Why did we disable the haldaemon process? It is part of the CIS recommendation to disable that startup service.</p>
<p>You learn the side effect of security as you go try things.</p>
]]></content:encoded>
			<wfw:commentRss>http://cinq.com/2010/03/23/rhn_register-erroring-out/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Forwarding DNS Server</title>
		<link>http://cinq.com/2010/02/04/forwarding-dns-server/</link>
		<comments>http://cinq.com/2010/02/04/forwarding-dns-server/#comments</comments>
		<pubDate>Thu, 04 Feb 2010 19:09:20 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[documentation]]></category>

		<guid isPermaLink="false">http://cinq.com/?p=71</guid>
		<description><![CDATA[options { directory &#8220;/var/named&#8221;; forwarders {172.16.10.1; 172.16.10.2;}; forward only; }; I had to setup a forwarding DNS servers today and since I had never done it before I was looking for a quick way. I installed the bind rpm package that comes with RHEL5 and was puzzled since it did not create the /etc/named.conf. So [...]]]></description>
			<content:encoded><![CDATA[<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">options {</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">directory &#8220;/var/named&#8221;;</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">forwarders {172.16.10.1; 172.16.10.2;};</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">forward only;</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">};</div>
<p>I had to setup a forwarding DNS servers today and since I had never done it before I was looking for a quick way.</p>
<p>I installed the bind rpm package that comes with RHEL5 and was puzzled since it did not create the /etc/named.conf. So I created one with this content:</p>
<p>options {<br />
directory &#8220;/var/named&#8221;;<br />
forwarders {10.1.1.1; 10.1.1.2;};<br />
forward only;<br />
};</p>
<div>Changed the ownership to named:named and started the service.</div>
<div></div>
<div>Quite simple and in our lab it is a simple way to address an issue with routes to access a DNS Server.</div>
]]></content:encoded>
			<wfw:commentRss>http://cinq.com/2010/02/04/forwarding-dns-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Sun Java in KUbuntu</title>
		<link>http://cinq.com/2009/12/30/sun-java-in-kubuntu/</link>
		<comments>http://cinq.com/2009/12/30/sun-java-in-kubuntu/#comments</comments>
		<pubDate>Wed, 30 Dec 2009 15:50:16 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[kubuntu]]></category>

		<guid isPermaLink="false">http://cinq.com/?p=69</guid>
		<description><![CDATA[That was not an obvious one. Under KUbuntu I typically use the KPackageKit application to install and update applications.  It did not work well. I tried to install the sun-java-jdk package many times and every time it would list the dependencies and do the install but the &#8220;java -version&#8221; would tell me that I was [...]]]></description>
			<content:encoded><![CDATA[<p>That was not an obvious one. Under KUbuntu I typically use the KPackageKit application to install and update applications.  It did not work well. I tried to install the sun-java-jdk package many times and every time it would list the dependencies and do the install but the &#8220;java -version&#8221; would tell me that I was still using the OpenJDK.</p>
<p>After reading a few different posts in forums I tested the idea to use the synaptic package manager. The installation worked much better.</p>
<p>To finalize the install I ran a few commands at the cli:</p>
<p><strong>sudo update-java-alternatives -l</strong></p>
<p>This listed the fact that I now have the OpenJDK and Sun Java installed on my workstation.</p>
<p><strong>sudo update-alternatives &#8211;config java</strong></p>
<p>This allowed me to specify to use the Sun Java as my default JVM.</p>
<p><strong>java -version </strong></p>
<p>This now reports the Sun Java JRE as my JVM.</p>
<p>I can now use Maven to compile some test projects.</p>
<p>I guess there are still a few issues with the OpenJDK to be fully compatible (might just be some configuration that I am not aware of).</p>
]]></content:encoded>
			<wfw:commentRss>http://cinq.com/2009/12/30/sun-java-in-kubuntu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>64 bits Linux and NVidia Drivers</title>
		<link>http://cinq.com/2009/08/13/64-bits-linux-and-nvidia-drivers/</link>
		<comments>http://cinq.com/2009/08/13/64-bits-linux-and-nvidia-drivers/#comments</comments>
		<pubDate>Thu, 13 Aug 2009 18:53:44 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://cinq.com/?p=48</guid>
		<description><![CDATA[I spent days trying to get the NVidia drivers to work on different 64 bits Linux distributions without success. Initially I was blaming Kubuntu 9.04 for these issues but I tried with Slamd64 and downloading the drivers from NVidia and had the same issues. I also tried with openSUSE 11.1 64 bits and it did [...]]]></description>
			<content:encoded><![CDATA[<p>I spent days trying to get the NVidia drivers to work on different 64 bits Linux distributions without success. Initially I was blaming Kubuntu 9.04 for these issues but I tried with Slamd64 and downloading the drivers from NVidia and had the same issues. I also tried with openSUSE 11.1 64 bits and it did not work.</p>
<p>Some desperate time passed&#8230;</p>
<p>I tried Kubuntu 9.04 32 bits and it worked on the first try.</p>
<p>I am quite puzzled about this. The Slamd64 site specifically mention that they have done testing to make sure that binaries like the NVidia Drivers would work. They work to install and compile but the X server does not start properly.</p>
<p>Not only that issue is bothering me but I can&#8217;t have one monitor turned 90 degrees and the other in normal mode. These limitations are not pleasant.</p>
<p>I must be missing something since it should work.</p>
]]></content:encoded>
			<wfw:commentRss>http://cinq.com/2009/08/13/64-bits-linux-and-nvidia-drivers/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Rebuilding the DVD ISO for CentOS 5 or RHEL 5</title>
		<link>http://cinq.com/2008/04/14/rebuilding-the-dvd-iso-for-centos-5-or-rhel-5/</link>
		<comments>http://cinq.com/2008/04/14/rebuilding-the-dvd-iso-for-centos-5-or-rhel-5/#comments</comments>
		<pubDate>Mon, 14 Apr 2008 17:28:32 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[software]]></category>
		<category><![CDATA[CentOS]]></category>
		<category><![CDATA[RHEL]]></category>

		<guid isPermaLink="false">http://cinq.com/?p=20</guid>
		<description><![CDATA[I found a few documents on the Internet about what I needed to do to rebuild the DVD to integrate my kickstart file. Unfortunately none of the solution had all the needed command in one place for my setup to work so here is my cookbook from the different sources. First I mounted the dvdrom [...]]]></description>
			<content:encoded><![CDATA[<p>I found a few documents on the Internet about what I needed to do to rebuild the DVD to integrate my kickstart file. Unfortunately none of the solution had all the needed command in one place for my setup to work so here is my cookbook from the different sources.</p>
<p>First I mounted the dvdrom with the CentOS DVD to /mnt/cdrom:</p>
<p><span style="color: #888888;">mount /dev/cdrom /mnt/cdrom</span></p>
<p>Then I copied a few files:</p>
<ul>
<li><span style="color: #888888;">cd /tmp</span></li>
<li><span style="color: #888888;">cp -R /mnt/cdrom/isolinux ./</span></li>
<li><span style="color: #888888;">cp -R /mnt/cdrom/CentOS ./isolinux/</span></li>
<li><span style="color: #888888;">cp -R /mnt/cdrom/* ./isolinux/  [say yes to overwrite the TRANS.TBL]</span></li>
<li><span style="color: #888888;">cp -R /mnt/cdrom/.discinfo ./isolinux/</span></li>
<li><span style="color: #888888;">cp ks.cfg /tmp/isolinux/</span></li>
</ul>
<p>For my RHEL5.1 rebuild I did similar commands but the paths are a bit different:</p>
<ul>
<li><span style="color: #888888;">cd /tmp</span></li>
<li><span style="color: #888888;">cp -R /mnt/cdrom/isolinux ./</span></li>
<li><span style="color: #888888;">cp -R /mnt/cdrom/Server ./isolinux/</span></li>
<li><span style="color: #888888;">cp -R /mnt/cdrom/VT ./isolinux/</span></li>
<li><span style="color: #888888;">cp -R /mnt/cdrom/images ./isolinux/</span></li>
<li><span style="color: #888888;">cp -R /mnt/cdrom/Cluster ./isolinux/</span></li>
<li><span style="color: #888888;">cp -R /mnt/cdrom/ClusterStorage ./isolinux/</span></li>
<li><span style="color: #888888;">cp /mnt/cdrom/* ./isolinux/  [say yes to overwrite the TRANS.TBL]</span></li>
<li><span style="color: #888888;">cp -R /mnt/cdrom/.discinfo ./isolinux/</span></li>
<li><span style="color: #888888;">cp ks.cfg /tmp/isolinux/</span></li>
</ul>
<p style="text-align: left;"><span style="color: #ffffff;">I had to change permissions on 2 files:</span></p>
<ul>
<li><span style="color: #888888;">chmod 664 ./isolinux/isolinux.bin</span></li>
<li><span style="color: #888888;">chmod 664 ./isolinux/isolinux.cfg</span></li>
</ul>
<p>I had to edit the isolinux.cfg (in the isolinux directory) to change a couple of lines:</p>
<ul>
<li>the &#8220;<span style="color: #888888;">default linux</span>&#8221; line became &#8220;<span style="color: #888888;">default ks</span>&#8220;</li>
<li>The 2 line after &#8220;label ks&#8221; went from &#8220;<span style="color: #888888;">append ks initrd=initrd.img</span>&#8221; to &#8220;<span style="color: #888888;">append ks=cdrom:/ks.cfg initrd=initrd.img</span>&#8220;</li>
</ul>
<p>The isolinux.cfg file now looks like:</p>
<pre><span style="color: #888888;"><strong>default ks</strong>
prompt 1
timeout 600
display boot.msg
F1 boot.msg
F2 options.msg
F3 general.msg
F4 param.msg
F5 rescue.msg
label linux
kernel vmlinuz
append initrd=initrd.img
label text
kernel vmlinuz
append initrd=initrd.img text
label ks
kernel vmlinuz
<strong>append ks=cdrom:/ks.cfg initrd=initrd.img</strong>
label local
localboot 1
label memtest86
kernel memtest
append -</span></pre>
<p>To build the ISO (all this on one line):</p>
<p><span style="color: #888888;">mkisofs -o centos5-dvd1.iso -b isolinux.bin -c boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table -r -R -J -V &#8220;CentOS 5.1 (CentOS) Disk1&#8243; -A &#8220;CentOS 5.1 (CentOS) Disk1&#8243; -p &#8220;Cinq&#8221; -T isolinux/</span></p>
<p>For Red Hat Entreprise Linux 5.1 I had to change the label for the DVD from &#8220;CentOS 5.1 (CentOS) Disk1&#8243; to &#8220;RHEL_5.1 x86_64 DVD&#8221; (obviously I am using the x64 version for RHEL5) so the command became:</p>
<p><span style="color: #888888;">mkisofs -o centos5-dvd1.iso -b isolinux.bin -c boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table -r -R -J -V &#8220;RHEL_5.1 x86_64 DVD&#8221; -A &#8220;RHEL_5.1 x86_64 DVD&#8221; -p &#8220;Cinq&#8221; -T isolinux/</span></p>
<p>Reference sites:</p>
<ul>
<li><a href="http://www.techonthenet.com/linux/centos4_update.php">http://www.techonthenet.com/linux/centos4_update.php</a></li>
<li><a href="https://www.centos.org/modules/newbb/viewtopic.php?viewmode=flat&amp;order=ASC&amp;topic_id=3635&amp;forum=27&amp;move=next&amp;topic_time=1149676608">https://www.centos.org/modules/newbb/viewtopic.php?viewmode=flat&amp;order=ASC&amp;topic_id=3635&amp;forum=27&amp;move=next&amp;topic_time=1149676608</a></li>
<li><a href="http://blog.nominet.org.uk/tech/2005/09/19/building-a-redhat-enterprise-linux-serial-console-boot-dvd/">http://blog.nominet.org.uk/tech/2005/09/19/building-a-redhat-enterprise-linux-serial-console-boot-dvd/</a></li>
<li><a href="http://www.redhat.com/docs/manuals/enterprise/RHEL-4-Manual/en-US/System_Administration_Guide/Kickstart_Installations-Kickstart_Options.html">http://www.redhat.com/docs/manuals/enterprise/RHEL-4-Manual/en-US/System_Administration_Guide/Kickstart_Installations-Kickstart_Options.html</a></li>
<li><a href="http://nootech.wordpress.com/2007/12/11/build-a-custom-centos-5-install-cd/">http://nootech.wordpress.com/2007/12/11/build-a-custom-centos-5-install-cd/</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://cinq.com/2008/04/14/rebuilding-the-dvd-iso-for-centos-5-or-rhel-5/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
