<?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>42 &#187; linux</title>
	<atom:link href="http://www.42.mach7x.com/tag/linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.42.mach7x.com</link>
	<description>Thoughts and tips about programming with Ruby on Rails</description>
	<lastBuildDate>Fri, 06 Aug 2010 11:57:17 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Help! I&#8217;m getting the message &#8220;libMagickWand.so.1: cannot open shared object file: No such file or directory&#8221; I know ImageMagick is installed! What should I do?</title>
		<link>http://www.42.mach7x.com/2010/07/13/help-im-getting-the-message-libmagickwand-so-1-cannot-open-shared-object-file-no-such-file-or-directory-i-know-imagemagick-is-installed-what-should-i-do/</link>
		<comments>http://www.42.mach7x.com/2010/07/13/help-im-getting-the-message-libmagickwand-so-1-cannot-open-shared-object-file-no-such-file-or-directory-i-know-imagemagick-is-installed-what-should-i-do/#comments</comments>
		<pubDate>Tue, 13 Jul 2010 16:20:01 +0000</pubDate>
		<dc:creator>kosmas</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[ruby on rails]]></category>
		<category><![CDATA[LD_LIBRARY_PATH]]></category>
		<category><![CDATA[Rmagick]]></category>
		<category><![CDATA[shared libraries]]></category>

		<guid isPermaLink="false">http://www.42.mach7x.com/?p=203</guid>
		<description><![CDATA[Problem Cannot install RMagick as there is an error about nob being able to find some shared libraries. Solution After reading the RMagick installation FAQ it seem there is a problem with the LD_LIBRARY_PATH that cannot find the needed libraries as they are installed in /usr/local/lib instead of /usr/lib. Doing a quick search revealed that [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Problem</strong><br />
Cannot install RMagick as there is an error about nob being able to find some shared libraries.</p>
<p><strong>Solution</strong><br />
After reading the RMagick installation FAQ it seem there is a problem with the LD_LIBRARY_PATH that cannot find the needed libraries as they are installed in /usr/local/lib instead of /usr/lib.<br />
Doing a quick search revealed that people suggest that the LD_LIBRARY_PATH shouldn&#8217;t be changed, for various reasons.<br />
So, the quick solution is to create a couple of symbolic links for the libraries that cannot be found, ie:</p>
<p><span class="code">sudo ln -s /usr/local/lib/libMagickWand.so.4 /usr/lib/libMagickWand.so.4<br />
ln -s /usr/local/lib/libMagickCore.so.4 /usr/lib/libMagickCore.so.4</span></p>
]]></content:encoded>
			<wfw:commentRss>http://www.42.mach7x.com/2010/07/13/help-im-getting-the-message-libmagickwand-so-1-cannot-open-shared-object-file-no-such-file-or-directory-i-know-imagemagick-is-installed-what-should-i-do/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ATI Radeon HD-4350 Mandriva 2010 Dual Monitor</title>
		<link>http://www.42.mach7x.com/2010/05/14/ati-radeon-hd-43500-mandriva-201-dual-monitor/</link>
		<comments>http://www.42.mach7x.com/2010/05/14/ati-radeon-hd-43500-mandriva-201-dual-monitor/#comments</comments>
		<pubDate>Fri, 14 May 2010 10:47:29 +0000</pubDate>
		<dc:creator>kosmas</dc:creator>
				<category><![CDATA[Mandriva]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[Dual Monitor]]></category>
		<category><![CDATA[mandriva 2010]]></category>
		<category><![CDATA[Xorg]]></category>
		<category><![CDATA[xranr]]></category>

		<guid isPermaLink="false">http://www.42.mach7x.com/?p=198</guid>
		<description><![CDATA[Problem Trying to get Mandriva 2010 to work on a dual monitor with an ATI Radeon HD 4350. Desktop used is a Dell Vostro 430 and two BenQ G920WL monitors. Solution After reading the articles here and here, the steps required were: Select driver ATI Radeon HD 2000 and later (radeon/fglrx) Don&#8217;t select proprietary driver [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Problem</strong><br />
Trying to get Mandriva 2010 to work on a dual monitor with an ATI Radeon HD 4350. Desktop used is a Dell Vostro 430 and two BenQ G920WL monitors.</p>
<p><strong>Solution</strong><br />
After reading the articles <a href="http://forum.mandriva.com/viewtopic.php?t=110181">here</a> and <a href="http://www.thinkwiki.org/wiki/Xorg_RandR_1.2">here</a>, the steps required were:</p>
<ul>
<li>Select driver ATI Radeon HD 2000 and later (radeon/fglrx)</li>
<li>Don&#8217;t select proprietary driver from next screen</li>
<li>Run xrandr -q to find out the name of the monitors</li>
<li>From the output find out the current resolution (1440&#215;900), names (VGA_1,DVI-I_2/analog) and maximum resolution (1440&#215;900)</li>
<li>Edit the xorg.conf file (/etc/X11/xorg.conf) and add the Virtual 2880 900 (without quotes) underneath the Modes line in the Display Subsection</li>
<li>Save the file and restart the X server</li>
<li>Run again the xrandr -q command and make sure the maximum resolution has changed to 2880&#215;900</li>
<li>Run xrandr &#8211;output DVI-I_2/analog &#8211;auto &#8211;right-of VGA_1 to put one screen next to the other
<li>
<li>Follow the description <a href="http://www.thinkwiki.org/wiki/Xorg_RandR_1.2">here</a> to set it up permanently on login</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.42.mach7x.com/2010/05/14/ati-radeon-hd-43500-mandriva-201-dual-monitor/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Mandriva 2010, Dell Vostro 430, Broadcom Netlink BCM57780 problem</title>
		<link>http://www.42.mach7x.com/2010/03/11/mandriva-2010-dell-vostro-430-broadcom-netlink-bcm57780-problem/</link>
		<comments>http://www.42.mach7x.com/2010/03/11/mandriva-2010-dell-vostro-430-broadcom-netlink-bcm57780-problem/#comments</comments>
		<pubDate>Thu, 11 Mar 2010 16:15:26 +0000</pubDate>
		<dc:creator>kosmas</dc:creator>
				<category><![CDATA[Mandriva]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[broadcom]]></category>
		<category><![CDATA[Dell Vostro 430]]></category>
		<category><![CDATA[mandriva 2010]]></category>
		<category><![CDATA[network]]></category>

		<guid isPermaLink="false">http://www.42.mach7x.com/?p=167</guid>
		<description><![CDATA[Problem Just recently installed Mandriva 2010 in a new Dell Vostro 430 and the network card (Broadcom Netlink BCM57780) was not recognized. Solution Add the following to the /etc/modprobe.conf file: sudo vi /etc/modprobe.conf install tg3 /sbin/modprobe broadcom; /sbin/modprobe/ &#8211;ignore-install tg3]]></description>
			<content:encoded><![CDATA[<p><strong>Problem</strong><br />
Just recently installed Mandriva 2010 in a new Dell Vostro 430 and the network card (Broadcom Netlink BCM57780) was not recognized.</p>
<p><strong>Solution</strong><br />
Add the following to the /etc/modprobe.conf file:<br />
<span class="code">sudo vi /etc/modprobe.conf</span><br />
<span class="code">install tg3 /sbin/modprobe broadcom; /sbin/modprobe/ &#8211;ignore-install tg3</span></p>
]]></content:encoded>
			<wfw:commentRss>http://www.42.mach7x.com/2010/03/11/mandriva-2010-dell-vostro-430-broadcom-netlink-bcm57780-problem/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Converting Paradox tables to MySQL sql in Linux</title>
		<link>http://www.42.mach7x.com/2008/04/21/converting-paradox-tables-to-mysql-in-linux/</link>
		<comments>http://www.42.mach7x.com/2008/04/21/converting-paradox-tables-to-mysql-in-linux/#comments</comments>
		<pubDate>Mon, 21 Apr 2008 13:11:07 +0000</pubDate>
		<dc:creator>kosmas</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[exporting]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[paradox]]></category>

		<guid isPermaLink="false">http://www.42.mach7x.com/?p=28</guid>
		<description><![CDATA[Problem You want to convert some legacy tables created in Paradox (.db, .px) to another format so you can use it in MySQL. Solution Download the px tools from here. Follow the instructions, in the INSTALL file after you untar the file. You should have to do the usual three step linux installation: configure make [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Problem</strong><br />
You want to convert some legacy tables created in Paradox (.db, .px) to another format so you can use it in MySQL.</p>
<p><strong>Solution</strong><br />
Download the px tools from <a href="http://jan.kneschke.de/projects/pxtools/">here</a>.</p>
<p>Follow the instructions, in the INSTALL file after you untar the file.<br />
You should have to do the usual three step linux installation:</p>
<pre class="code">configure
make
sudo make install</pre>
<p>Afterwards to make sure that the .db file is a paradox file run:</p>
<pre class="code">pxinfo -f  path/to/paradox/db/file.db</pre>
<p>The program should read the header and report back with something along the lines:</p>
<pre class="code">File-Version: Paradox 7.x
Filetype: indexed .DB
....</pre>
<p>To export each Paradox db file to an sql statement run the following:</p>
<pre class="code">pxsqldump -d mysql -f path/to/paradox/file.db > path/to/mysql/exported/file.sql</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.42.mach7x.com/2008/04/21/converting-paradox-tables-to-mysql-in-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Installing sqlite3-ruby in Mandriva and Rails 2.0.2</title>
		<link>http://www.42.mach7x.com/2008/04/11/installing-sqlite3-ruby-in-mandriva-and-rails-202/</link>
		<comments>http://www.42.mach7x.com/2008/04/11/installing-sqlite3-ruby-in-mandriva-and-rails-202/#comments</comments>
		<pubDate>Fri, 11 Apr 2008 15:48:36 +0000</pubDate>
		<dc:creator>kosmas</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[ruby on rails]]></category>
		<category><![CDATA[Add new tag]]></category>
		<category><![CDATA[Mandriva]]></category>
		<category><![CDATA[ruby on rails 2.0.2]]></category>
		<category><![CDATA[sqlite3-ruby]]></category>

		<guid isPermaLink="false">http://www.42.mach7x.com/?p=26</guid>
		<description><![CDATA[Problem After upgrading to Rails 2.0.2 when trying to install the sqlite3-ruby gem got the following error: ERROR: Error installing sqlite3-ruby: ERROR: Failed to build gem native extension. /usr/bin/ruby extconf.rb install sqlite3-ruby checking for sqlite3.h... no make make: *** No rule to make target `ruby.h', needed by `sqlite3_api_wrap.o'. Stop. Gem files will remain installed in [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Problem</strong><br />
After upgrading to Rails 2.0.2 when trying to install the sqlite3-ruby gem got the following error:</p>
<pre class="code">
ERROR:  Error installing sqlite3-ruby:
ERROR: Failed to build gem native extension.
/usr/bin/ruby extconf.rb install sqlite3-ruby
checking for sqlite3.h... no
make
make: *** No rule to make target `ruby.h', needed by `sqlite3_api_wrap.o'.  Stop.
Gem files will remain installed in /usr/lib/ruby/gems/1.8/gems/sqlite3-ruby-1.2.1 for inspection.
Results logged to /usr/lib/ruby/gems/1.8/gems/sqlite3-ruby-1.2.1/ext/sqlite3_api/gem_make.out</pre>
<p><strong>Solution</strong><br />
In Mandriva you need to install the ruby-sqlite3 and the development libraries first, like:</p>
<pre class="code">sudo urpmi ruby-sqlite3
sudo urpmi libsqlite3-devel</pre>
<p>After that you should be able to install the gem as normal.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.42.mach7x.com/2008/04/11/installing-sqlite3-ruby-in-mandriva-and-rails-202/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Checking out a remote CVS project</title>
		<link>http://www.42.mach7x.com/2008/02/27/checking-out-a-remote-cvs-project/</link>
		<comments>http://www.42.mach7x.com/2008/02/27/checking-out-a-remote-cvs-project/#comments</comments>
		<pubDate>Wed, 27 Feb 2008 16:27:49 +0000</pubDate>
		<dc:creator>kosmas</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[cvs]]></category>

		<guid isPermaLink="false">http://www.42.mach7x.com/2008/02/27/checking-out-a-remote-cvs-project/</guid>
		<description><![CDATA[Problem You want to use cvs to checkout a repository from a remote server. Solution If you were using subversion it would be very simple to do by using the remote url. In CVS you have to to do the following: First find out where the cvsroot in the remote server is. We will assume [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Problem</strong><br />
You want to use cvs to checkout a repository from a remote server.</p>
<p><strong>Solution</strong><br />
If you were using subversion it would be very simple to do by using the remote url.<br />
In CVS you have to to do the following:<br />
First find out where the cvsroot in the remote server is. We will assume for this example that is located in /usr/local/cvsroot.<br />
Then run the following on your local linux pc:</p>
<pre class="code">export CVSROOT=:ext:user_name@remote_pc:/path_to_csvroot export
export CVS_RSH=ssh</pre>
<p>You then should be able to do a checkout by typing the following and supplying your password:</p>
<pre class="code">cvs checkout project_name</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.42.mach7x.com/2008/02/27/checking-out-a-remote-cvs-project/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ruby On Rails on CentOS 4.6</title>
		<link>http://www.42.mach7x.com/2008/02/26/ruby-on-rails-on-centos-46/</link>
		<comments>http://www.42.mach7x.com/2008/02/26/ruby-on-rails-on-centos-46/#comments</comments>
		<pubDate>Tue, 26 Feb 2008 15:08:57 +0000</pubDate>
		<dc:creator>kosmas</dc:creator>
				<category><![CDATA[ruby on rails]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://www.42.mach7x.com/2008/02/26/ruby-on-rails-on-centos-46/</guid>
		<description><![CDATA[Problem Installing Ruby on Rails on CentOS 4.6. The yum install ruby installs an old version of Ruby 1.8.1, but you want 1.8.6 Solution Based on a script from uberdose The original post is here: http://wp.uberdose.com/2007/07/15/ruby-on-rails-on-centos-45/ wget ftp://ftp.gnu.org/gnu/readline/readline-5.1.tar.gz tar xvfz readline-5.1.tar.gz cd readline-5.1 ./configure --prefix=/usr/local make sudo make install cd .. wget ftp://ftp.ruby-lang.org/pub/ruby/1.8/ruby-1.8.6.tar.gz tar xvfz [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Problem</strong><br />
Installing Ruby on Rails on CentOS 4.6.<br />
The yum install ruby installs an old version of Ruby 1.8.1, but you want 1.8.6<br />
<strong>Solution</strong><br />
Based on a script from uberdose</p>
<p>The original post is here:<br />
<a href="http://wp.uberdose.com/2007/07/15/ruby-on-rails-on-centos-45/"> http://wp.uberdose.com/2007/07/15/ruby-on-rails-on-centos-45/</a></p>
<pre class="code">
  wget ftp://ftp.gnu.org/gnu/readline/readline-5.1.tar.gz
  tar xvfz readline-5.1.tar.gz
  cd readline-5.1
  ./configure --prefix=/usr/local
  make
  sudo make install

  cd ..
  wget ftp://ftp.ruby-lang.org/pub/ruby/1.8/ruby-1.8.6.tar.gz
  tar xvfz ruby-1.8.6.tar.gz
  cd ruby-1.8.6
  ./configure --prefix=/usr/local --enable-pthread --with-readline-dir=/usr/local --enable-shared
  make
  sudo make install

  cd ..
  wget http://rubyforge.org/frs/download.php/20980/rubygems-0.9.4.tgz
  tar xvfz rubygems-0.9.4
  cd rubygems-0.9.4
  sudo /usr/local/bin/ruby setup.rb
  cd ..
  sudo gem install rails --include-dependencies
  sudo gem install termios --include-dependencies
  sudo gem install mongrel --include-dependencies
  sudo gem install mongrel-cluster --include-dependencies
  sudo gem install capistrano --include-dependencies
  sudo gem install mysql -- --with-mysql-dir=/usr/</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.42.mach7x.com/2008/02/26/ruby-on-rails-on-centos-46/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Password &#8211; less logins and aliases with ssh</title>
		<link>http://www.42.mach7x.com/2008/02/06/password-less-logins-and-aliases-with-ssh/</link>
		<comments>http://www.42.mach7x.com/2008/02/06/password-less-logins-and-aliases-with-ssh/#comments</comments>
		<pubDate>Wed, 06 Feb 2008 11:44:54 +0000</pubDate>
		<dc:creator>kosmas</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[alias]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[passwords]]></category>
		<category><![CDATA[ssh]]></category>

		<guid isPermaLink="false">http://www.42.mach7x.com/2008/02/06/password-less-logins-and-aliases-with-ssh/</guid>
		<description><![CDATA[Problem You want to be able to login to different servers with ssh, but don&#8217;t want to be using your password every time. Solution We assume that you already have installed ssh and have created ssh public keys in your local machine. Run the following in your local machine: ssh-copy-id -i ~/.ssh/id_rsa.pub user_name@remote_host If you [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Problem</strong><br />
You want to be able to login to different servers with ssh, but don&#8217;t want to be using your password every time.</p>
<p><srtong>Solution</strong><br />
We assume that you already have installed ssh and have created ssh public keys in your local machine.</stong></p>
<ol>
<li>Run the following in your local machine:
<pre class="code">ssh-copy-id -i ~/.ssh/id_rsa.pub user_name@remote_host</pre>
</li>
<li>If you want to add aliases in your bash profile so you don&#8217;t have to type the whole address of the remote host, edit your .bashrc and add:
<pre class="code">alias short_name="ssh user_name@remote_host"</pre>
</li>
<li>Restart your X server</li>
<li>You should be able to login with ssh without using your password by typing in your command prompt in your local machine:
<pre class="code">short_name</pre>
</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://www.42.mach7x.com/2008/02/06/password-less-logins-and-aliases-with-ssh/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Combining multiple ps pages into a multiple page pdf file</title>
		<link>http://www.42.mach7x.com/2008/01/25/combining-multiple-ps-pages-into-a-multiple-page-pdf-file/</link>
		<comments>http://www.42.mach7x.com/2008/01/25/combining-multiple-ps-pages-into-a-multiple-page-pdf-file/#comments</comments>
		<pubDate>Fri, 25 Jan 2008 10:22:50 +0000</pubDate>
		<dc:creator>kosmas</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[ghostscript]]></category>
		<category><![CDATA[pdf]]></category>
		<category><![CDATA[ps]]></category>

		<guid isPermaLink="false">http://www.42.mach7x.com/2008/01/25/combining-multiple-ps-pages-into-a-multiple-page-pdf-file/</guid>
		<description><![CDATA[Problem You have a lot of ps files and you want to combine them into a single pdf file with multiple pages. Solution You can use Ghostscript: gs -q -sPAPERSIZE=a4 -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -sOutputFile=out.pdf in1.ps in2.ps in3.ps]]></description>
			<content:encoded><![CDATA[<p><strong>Problem</strong><br />
You have a lot of ps files and you want to combine them into a single pdf file with multiple pages.</p>
<p><strong>Solution</strong><br />
You can use Ghostscript:</p>
<pre class="code">gs -q -sPAPERSIZE=a4 -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -sOutputFile=out.pdf in1.ps in2.ps in3.ps</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.42.mach7x.com/2008/01/25/combining-multiple-ps-pages-into-a-multiple-page-pdf-file/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
