<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>egloo</title>
	<atom:link href="http://egloo.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://egloo.wordpress.com</link>
	<description>Unix System Administration</description>
	<lastBuildDate>Sun, 21 Aug 2011 05:27:51 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='egloo.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>egloo</title>
		<link>http://egloo.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://egloo.wordpress.com/osd.xml" title="egloo" />
	<atom:link rel='hub' href='http://egloo.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Change Unix File Permissions Using C</title>
		<link>http://egloo.wordpress.com/2011/03/26/change-file-permissions-using-c/</link>
		<comments>http://egloo.wordpress.com/2011/03/26/change-file-permissions-using-c/#comments</comments>
		<pubDate>Sat, 26 Mar 2011 23:28:22 +0000</pubDate>
		<dc:creator>pcabrerat</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Shells]]></category>
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">https://egloo.wordpress.com/2011/03/26/change-file-permissions-using-c/</guid>
		<description><![CDATA[This is a small program written in C used to change permissions of files in Unix. You may ask why would someone want to use a C snippet instead of a quick &#8220;chmod&#8221; shell script? Well, a simple &#8220;chown&#8221; script works just fine for cases where you don&#8217;t have a ridiculously large amount of files. [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=egloo.wordpress.com&amp;blog=4102430&amp;post=259&amp;subd=egloo&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p style="clear:both;"><img class="linked-to-original alignleft" style="display:inline;margin:0 10px 10px 0;" title="Speedopeter" src="http://egloo.files.wordpress.com/2011/03/speedometer-wide-thumb.jpg?w=160&#038;h=92" alt="" width="160" height="92" align="left" />This is a small program written in C used to change permissions of files in Unix.</p>
<p style="clear:both;">You may ask why would someone want to use a C snippet instead of a quick &#8220;chmod&#8221; shell script?</p>
<p style="clear:both;">Well, a simple &#8220;chown&#8221; script works just fine for cases where you don&#8217;t have a ridiculously large amount of files. Things get painfully slow when besides having millions of files you also have millions of directories. In those rare cases there is nothing faster than C.</p>
<p style="clear:both;">If you have a 64 bit operating system you can compile this code with &#8220;-m64&#8243; flag for better performance.</p>
<p><code>#include<br />
#include<br />
#include<br />
#include</p>
<p>#define PATH "/export/home/egloo"<br />
#define UID 501<br />
#define GID 501<br />
#define NOTIFICATION_INTERVAL 10000</p>
<p>int file_count = 0;<br />
char cmd[128];</p>
<p>static int callback(const char *fpath, const struct stat *sb, int typeflag) {<br />
// Check if it's a file or a directory<br />
if (typeflag == FTW_D || typeflag == FTW_F) {</p>
<p>// Apply new permissions<br />
chown(fpath, UID, GID);</p>
<p>// Send progress notification<br />
file_count++;<br />
if ( 0 == ( file_count % NOTIFICATION_INTERVAL ) ){<br />
fprintf( stderr, "%ld\n", file_count );<br />
sprintf(cmd,"/bin/echo \"%i files processed\" | /bin/mail -s \"CHOWN PROGRESS\" user@domain.com", file_count);<br />
system(cmd);<br />
}<br />
}</p>
<p>// Continue FTW<br />
return 0;<br />
}</p>
<p></code></p>
<p><code>int main(int argc, char **argv) {<br />
ftw(PATH, callback, 256);<br />
}</code></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/egloo.wordpress.com/259/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/egloo.wordpress.com/259/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/egloo.wordpress.com/259/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/egloo.wordpress.com/259/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/egloo.wordpress.com/259/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/egloo.wordpress.com/259/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/egloo.wordpress.com/259/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/egloo.wordpress.com/259/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/egloo.wordpress.com/259/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/egloo.wordpress.com/259/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/egloo.wordpress.com/259/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/egloo.wordpress.com/259/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/egloo.wordpress.com/259/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/egloo.wordpress.com/259/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=egloo.wordpress.com&amp;blog=4102430&amp;post=259&amp;subd=egloo&amp;ref=&amp;feed=1" width="1" height="1" /><div class="sharedaddy"></div>]]></content:encoded>
			<wfw:commentRss>http://egloo.wordpress.com/2011/03/26/change-file-permissions-using-c/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">pcabrerat</media:title>
		</media:content>

		<media:content url="http://egloo.files.wordpress.com/2011/03/speedometer-wide-thumb.jpg" medium="image">
			<media:title type="html">Speedopeter</media:title>
		</media:content>
	</item>
		<item>
		<title>Make GNOME use Xscreensaver instead of Gnome Screensaver</title>
		<link>http://egloo.wordpress.com/2009/01/22/make-gnome-use-xscreensaver-instead-of-gnome-screensaver/</link>
		<comments>http://egloo.wordpress.com/2009/01/22/make-gnome-use-xscreensaver-instead-of-gnome-screensaver/#comments</comments>
		<pubDate>Thu, 22 Jan 2009 14:30:42 +0000</pubDate>
		<dc:creator>pcabrerat</dc:creator>
				<category><![CDATA[Gnome]]></category>
		<category><![CDATA[Xserver]]></category>

		<guid isPermaLink="false">http://egloo.wordpress.com/?p=234</guid>
		<description><![CDATA[As you may know, Gnome comes preinstalled with a few catalog of basic screensavers: Gnome Screensaver which is the default screen saver and locker in a Gnome desktop. It is designed with simplicity and security in mind. For this reason many useres prefer to use xscreensaver wich is a better, more secure and universally accepted [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=egloo.wordpress.com&amp;blog=4102430&amp;post=234&amp;subd=egloo&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><img class="alignleft size-full wp-image-235" title="xscreensaver" src="http://egloo.files.wordpress.com/2009/01/osxscreensaver.png?w=128&#038;h=128" alt="xscreensaver" width="128" height="128" />As you may know, Gnome comes preinstalled with a few catalog of basic screensavers: Gnome Screensaver which is the default screen saver and locker in a Gnome desktop. It is designed with simplicity and security in mind.</p>
<p>For this reason many useres prefer to use <strong><a href="http://www.jwz.org/xscreensaver/">xscreensaver </a></strong>wich is a better, more secure and universally accepted screensaver program for Unix-like operating systems.</p>
<p>In fact xscreensaver can be found installed by default on some Linux distributions like Ubuntu and latest versions of SUSE, but there are still Red Hat based systems that do not install this packages.</p>
<p>To install xscreensaver you can use the standard repositories from your specific OS.</p>
<p><strong>Red Hat based:</strong><br />
<code>su -c "yum install xscreensaver"</code></p>
<p><strong>Debian based:</strong><br />
<code>sudo apt-get install xscreensaver</code></p>
<p>Now xscreensaver is installed, we launch the configuration screen by typing <em><strong>xsreensaver-demo</strong></em> on a console or by clicking on <em><strong>System &gt; Preferences &gt; Look and Feel &gt; Screensaver</strong></em>. This will pop a message asking you to deactivate the gnome-screensaver daemon which should be fine.</p>
<p style="text-align:center;"><img class="size-full wp-image-236  aligncenter" title="xscreensaver" src="http://egloo.files.wordpress.com/2009/01/xscreensaver.png?w=510&#038;h=332" alt="xscreensaver" width="510" height="332" /></p>
<p>Select the screensaver design of your choice, hit the <strong><em>Preview</em></strong> button and close the dialog box when you&#8217;re done.</p>
<p>At this point, the screensaver should lock automatically after the defined inactive time, BUT it wont work if you want to activate it manally by pressing <em><strong>Ctrl+Alt+L</strong></em> or <em><strong>System &gt; Lock Screen</strong></em>. This is because even when you defined xscreensaver as the default application, gnome is still looking for the old daemon in order to activate the screensaver.</p>
<p>To solve this problem open a terminal as root and issue the following command:</p>
<p><code>ln -sf /usr/bin/xscreensaver-command \<br />
/usr/bin/gnome-screensaver-command</code></p>
<p>Now you can lock your screen and start xscreensaver with the standard gnome commands. <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/egloo.wordpress.com/234/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/egloo.wordpress.com/234/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/egloo.wordpress.com/234/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/egloo.wordpress.com/234/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/egloo.wordpress.com/234/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/egloo.wordpress.com/234/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/egloo.wordpress.com/234/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/egloo.wordpress.com/234/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/egloo.wordpress.com/234/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/egloo.wordpress.com/234/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/egloo.wordpress.com/234/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/egloo.wordpress.com/234/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/egloo.wordpress.com/234/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/egloo.wordpress.com/234/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=egloo.wordpress.com&amp;blog=4102430&amp;post=234&amp;subd=egloo&amp;ref=&amp;feed=1" width="1" height="1" /><div class="sharedaddy"></div>]]></content:encoded>
			<wfw:commentRss>http://egloo.wordpress.com/2009/01/22/make-gnome-use-xscreensaver-instead-of-gnome-screensaver/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">pcabrerat</media:title>
		</media:content>

		<media:content url="http://egloo.files.wordpress.com/2009/01/osxscreensaver.png" medium="image">
			<media:title type="html">xscreensaver</media:title>
		</media:content>

		<media:content url="http://egloo.files.wordpress.com/2009/01/xscreensaver.png" medium="image">
			<media:title type="html">xscreensaver</media:title>
		</media:content>
	</item>
		<item>
		<title>Connect Through SSH Without a Password</title>
		<link>http://egloo.wordpress.com/2008/12/10/connect-through-ssh-without-a-password/</link>
		<comments>http://egloo.wordpress.com/2008/12/10/connect-through-ssh-without-a-password/#comments</comments>
		<pubDate>Wed, 10 Dec 2008 15:29:36 +0000</pubDate>
		<dc:creator>pcabrerat</dc:creator>
				<category><![CDATA[networking]]></category>
		<category><![CDATA[ssh]]></category>
		<category><![CDATA[RSA]]></category>

		<guid isPermaLink="false">http://egloo.wordpress.com/?p=227</guid>
		<description><![CDATA[One day, you will find yourself trying to execute  a command on a remote UNIX box without the need of typing the password. The basis of using this technique relies on public keys which are a kind of digital signatures. Let&#8217;s supose we have a server named &#8220;Mailserver&#8221; and another server called &#8220;Monitor&#8221; and you want [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=egloo.wordpress.com&amp;blog=4102430&amp;post=227&amp;subd=egloo&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><img class="alignleft size-thumbnail wp-image-228" title="lockpick" src="http://egloo.files.wordpress.com/2008/12/lock-picking-5.jpg?w=105&#038;h=95" alt="lockpick" width="105" height="95" />One day, you will find yourself trying to execute  a command on a remote UNIX box without the need of typing the password. The basis of using this technique relies on public keys which are a kind of digital signatures.</p>
<p>Let&#8217;s supose we have a server named &#8220;<strong>Mailserver</strong>&#8221; and another server called &#8220;<strong>Monitor</strong>&#8221; and you want Monitor to connect every 30 minutes to Mailserver and verify the health of some services.</p>
<p>Anyway, here is the quick-guide:</p>
<p>First of all connect to <strong>Monitor </strong>with the user of you choice.</p>
<p>Then,  type:</p>
<p><code>ssh-keygen -t rsa</code><br />
 This command will create the RSA public key of the current user. You will be asked to type a passphrase but it&#8217;s not necesary at all; You can just ignore it.</p>
<p>When the command finishes execution, a message will appear telling you the location of the new files. In most cases it is placed in the <em>.ssh/</em> directory inside your <em>home/ </em>path.</p>
<p>Next, you&#8217;ll have to copy the public they to the <em>authorized_keys2 </em>file on the remote server (in this case <strong>Mailserver</strong>). To make it simple, here is the command (Remember to substitute user and hostname with your own):</p>
<p><code>scp ~/.ssh/id_rsa.pub user@hostname:~/.ssh/authorized_keys2</code><br />
This will the last time you&#8217;ll prompted to type the password. When the transfer finishes, you should be able to ssh from <em>Monitor </em>to <em>Mailserver </em>without being prompted for a pass. <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><strong>NOTE</strong>: On some UNIX like Solaris the default location of the public-keys can vary from system to system.</p>
<p><strong>NOTE 2</strong>: You must have <em><strong>RSAAuthentication yes</strong></em> in your <em>/etc/ssh/sshd_config </em>file. On many Linux installations this setting is commented out in a default install.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/egloo.wordpress.com/227/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/egloo.wordpress.com/227/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/egloo.wordpress.com/227/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/egloo.wordpress.com/227/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/egloo.wordpress.com/227/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/egloo.wordpress.com/227/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/egloo.wordpress.com/227/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/egloo.wordpress.com/227/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/egloo.wordpress.com/227/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/egloo.wordpress.com/227/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/egloo.wordpress.com/227/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/egloo.wordpress.com/227/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/egloo.wordpress.com/227/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/egloo.wordpress.com/227/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=egloo.wordpress.com&amp;blog=4102430&amp;post=227&amp;subd=egloo&amp;ref=&amp;feed=1" width="1" height="1" /><div class="sharedaddy"></div>]]></content:encoded>
			<wfw:commentRss>http://egloo.wordpress.com/2008/12/10/connect-through-ssh-without-a-password/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">pcabrerat</media:title>
		</media:content>

		<media:content url="http://egloo.files.wordpress.com/2008/12/lock-picking-5.jpg?w=105" medium="image">
			<media:title type="html">lockpick</media:title>
		</media:content>
	</item>
		<item>
		<title>How to Read MySQL Binary Logs</title>
		<link>http://egloo.wordpress.com/2008/11/19/how-to-read-mysql-binary-logs/</link>
		<comments>http://egloo.wordpress.com/2008/11/19/how-to-read-mysql-binary-logs/#comments</comments>
		<pubDate>Wed, 19 Nov 2008 01:26:25 +0000</pubDate>
		<dc:creator>pcabrerat</dc:creator>
				<category><![CDATA[Databases]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[mysql]]></category>

		<guid isPermaLink="false">http://egloo.wordpress.com/?p=221</guid>
		<description><![CDATA[MySQL database server utilizes a transaction log to track all of the modifications performed within the databases. This log ensures both that the database is able to recover when abruptly interrupted (such as a loss of power) and that users are able to undo (or &#8220;rollback&#8221; in database language) the results of a database transaction. [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=egloo.wordpress.com&amp;blog=4102430&amp;post=221&amp;subd=egloo&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><img class="alignleft size-full wp-image-223" title="mysqllogo" src="http://egloo.files.wordpress.com/2008/11/mysqllogo.png?w=213&#038;h=111" alt="mysqllogo" width="213" height="111" />MySQL database server utilizes a <a href="http://en.wikipedia.org/wiki/Binary_log">transaction log</a> to track all of the modifications performed within the databases. This log ensures both that the database is able to recover when abruptly interrupted (such as a loss of power) and that users are able to undo (or &#8220;rollback&#8221; in database language) the results of a database transaction. Except for the cases where the administrator has disabled or commented out the<strong> log-bin</strong> parameter in <strong>my.cfg</strong> file, this log is generated by default. As the name implies, binary log (transaction log) files are written in binary format, but sometimes you may need to examine the content of the transaction logs in text format, where the mysqlbinlog utility will come in handy.</p>
<p>A binlog file normally is named<strong> hostname-bin.xxxxx</strong> and stored in <code>/var/lib/mysql</code> directory. It cannot be opened and read straight away as it’s a binary file so we can make use of <code>mysqlbinlog </code>command.</p>
<p>For example, to display the contents of the binary log file named <strong>localhost-bin.000004</strong>, use this command:</p>
<p><code>mysqlbinlog localhost-bin.000004</code></p>
<p>The output includes all events contained in <strong>localhost-bin.000004</strong>. Event information includes the statement executed, the time the statement took, the thread ID of the client that issued it, the timestamp when it was executed, and so forth.</p>
<p>The binlogs are likely to be very huge thus making it almost impossible to read anything on screen. However, you can pipe the output into a file which can be open up for later browsing in text editor:</p>
<p><code>mysqlbinlog localhost-bin.000004 &gt; filename.txt</code></p>
<p>To reduce the amount of data retrieved from binary logs, there are several options that can be used to limit the data that is been returned. Among the useful ones are listed below:</p>
<p><code>–start-datetime=[DATETIME]</code></p>
<p><code>–stop-datetime=[DATETIME]</code></p>
<p>The <em>datetime</em> value is relative to the local time zone on the machine where you run <code>mysqlbinlog</code>. The value should be in a format accepted for the <strong>DATETIME</strong> or <strong>TIMESTAMP</strong> data types. For example:</p>
<p><code>mysqlbinlog --start-datetime="2008-05-22 00:00:00" --stop-datetime="2008-05-29 00:00:00" localhost-bin.000004</code></p>
<p>For more information, you can take a look at the official mysqlbinlog <a href="http://dev.mysql.com/doc/refman/5.0/en/mysqlbinlog.html">documentation</a>.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/egloo.wordpress.com/221/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/egloo.wordpress.com/221/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/egloo.wordpress.com/221/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/egloo.wordpress.com/221/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/egloo.wordpress.com/221/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/egloo.wordpress.com/221/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/egloo.wordpress.com/221/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/egloo.wordpress.com/221/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/egloo.wordpress.com/221/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/egloo.wordpress.com/221/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/egloo.wordpress.com/221/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/egloo.wordpress.com/221/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/egloo.wordpress.com/221/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/egloo.wordpress.com/221/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=egloo.wordpress.com&amp;blog=4102430&amp;post=221&amp;subd=egloo&amp;ref=&amp;feed=1" width="1" height="1" /><div class="sharedaddy"></div>]]></content:encoded>
			<wfw:commentRss>http://egloo.wordpress.com/2008/11/19/how-to-read-mysql-binary-logs/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">pcabrerat</media:title>
		</media:content>

		<media:content url="http://egloo.files.wordpress.com/2008/11/mysqllogo.png" medium="image">
			<media:title type="html">mysqllogo</media:title>
		</media:content>
	</item>
		<item>
		<title>Share Keyboard and Mouse with Synergy</title>
		<link>http://egloo.wordpress.com/2008/11/12/share-keyboard-and-mouse-with-synergy/</link>
		<comments>http://egloo.wordpress.com/2008/11/12/share-keyboard-and-mouse-with-synergy/#comments</comments>
		<pubDate>Wed, 12 Nov 2008 16:27:10 +0000</pubDate>
		<dc:creator>pcabrerat</dc:creator>
				<category><![CDATA[KVM]]></category>
		<category><![CDATA[Desktop]]></category>

		<guid isPermaLink="false">http://egloo.wordpress.com/?p=213</guid>
		<description><![CDATA[It&#8217;s very usual for a Linux user to work with multiple monitors and machines; It gives a lot of flexibility and a big boost to our performance. But switching between the different keyboards and mice can be a bit tedious.   For this purpose there is a hardware device that allows you to control multiple [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=egloo.wordpress.com&amp;blog=4102430&amp;post=213&amp;subd=egloo&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p class="MsoNormal" style="text-align:left;margin:0;"><span lang="EN-US"><span style="font-size:small;"><span style="font-family:Times New Roman;"><img class="alignleft size-full wp-image-214" title="synergy_logo" src="http://egloo.files.wordpress.com/2008/11/synergy_logo.png?w=216&#038;h=77" alt="synergy_logo" width="216" height="77" />It&#8217;s very usual for a Linux user to work with multiple monitors and machines; It gives a lot of flexibility and a big boost to our performance. But switching between the different keyboards and mice can be a bit tedious.</span></span></span></p>
<p class="MsoNormal" style="margin:0;"><span lang="EN-US"><span style="font-size:small;font-family:Times New Roman;"> </span></span></p>
<p class="MsoNormal" style="margin:0;"><span lang="EN-US"><span style="font-size:small;"><span style="font-family:Times New Roman;">For this purpose there is a hardware device that allows you to control multiple computers from a single keyboard, video monitor and mouse: a <a href="http://en.wikipedia.org/wiki/KVM_switch" target="_blank">KVM switch</a>. KVM switches are today difficult to find and not very cheap.</span></span></span></p>
<p class="MsoNormal" style="margin:0;"><span lang="EN-US"><span style="font-size:small;font-family:Times New Roman;"> </span></span></p>
<p class="MsoNormal" style="margin:0;"><span lang="EN-US"><span style="font-size:small;"><span style="font-family:Times New Roman;">Fortunately there is a software approach to KVM switches: <a href="http://synergy2.sourceforge.net/" target="_blank">Synergy</a>.</span></span></span></p>
<p class="MsoNormal" style="margin:0;"><span lang="EN-US"><span style="font-size:small;font-family:Times New Roman;"> </span></span></p>
<p class="MsoNormal" style="margin:0;"><span lang="EN-US"><span style="font-size:small;"><span style="font-family:Times New Roman;">Synergy is used in situations where several PCs are used together, with a monitor connected to each, but are to be controlled by one user. You need only one keyboard and mouse on the desk. </span></span></span></p>
<p class="MsoNormal" style="margin:0;"><span lang="EN-US"><span style="font-size:small;font-family:Times New Roman;"> </span></span></p>
<p class="MsoNormal" style="margin:0;"><span lang="EN-US"><span style="font-size:small;"><span style="font-family:Times New Roman;">Synergy runs on Windows, Linux and MacOS X in command line mode. There are also some cool GUIs like <a href="http://sourceforge.net/projects/synergykm">SynergyKM</a> for MacOS X, <a href="http://quicksynergy.sourceforge.net/" target="_blank">QuickSynergy</a> for Linux and MacOS X, and the self <a href="http://sourceforge.net/project/showfiles.php?group_id=59275&amp;package_id=58013" target="_blank">Synergy GUI </a>for Windows.</span></span></span></p>
<p class="MsoNormal" style="margin:0;"><span lang="EN-US"><span style="font-size:small;font-family:Times New Roman;"> </span></span></p>
<p class="MsoNormal" style="margin:0;"><span lang="EN-US"><span style="font-size:small;"><span style="font-family:Times New Roman;">The configuration can be done from the command line but trust me, having such great and minimalistic GUIs out there you don’t want to do that.</span></span></span></p>
<p class="MsoNormal" style="margin:0;"> </p>
<p class="MsoNormal" style="margin:0;"><span lang="EN-US"><img class="aligncenter size-full wp-image-216" title="syn_example1" src="http://egloo.files.wordpress.com/2008/11/syn_example1.jpg?w=500&#038;h=348" alt="syn_example1" width="500" height="348" /></span></p>
<p class="MsoNormal" style="margin:0;"><span lang="EN-US"><span style="font-size:small;font-family:Times New Roman;"> </span></span></p>
<p class="MsoNormal" style="margin:0;"><span lang="EN-US"><span style="font-size:small;"><span style="font-family:Times New Roman;">Okay, okay the main reason why this blog entry does not cover the internal commands is because there is already an <a href="http://synergy2.sourceforge.net/configuration.html" target="_blank">excellent documentation </a>that explains step by step the commands you can use with Synergy… You know, why reinventing the wheel.</span></span></span></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/egloo.wordpress.com/213/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/egloo.wordpress.com/213/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/egloo.wordpress.com/213/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/egloo.wordpress.com/213/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/egloo.wordpress.com/213/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/egloo.wordpress.com/213/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/egloo.wordpress.com/213/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/egloo.wordpress.com/213/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/egloo.wordpress.com/213/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/egloo.wordpress.com/213/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/egloo.wordpress.com/213/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/egloo.wordpress.com/213/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/egloo.wordpress.com/213/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/egloo.wordpress.com/213/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=egloo.wordpress.com&amp;blog=4102430&amp;post=213&amp;subd=egloo&amp;ref=&amp;feed=1" width="1" height="1" /><div class="sharedaddy"></div>]]></content:encoded>
			<wfw:commentRss>http://egloo.wordpress.com/2008/11/12/share-keyboard-and-mouse-with-synergy/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">pcabrerat</media:title>
		</media:content>

		<media:content url="http://egloo.files.wordpress.com/2008/11/synergy_logo.png" medium="image">
			<media:title type="html">synergy_logo</media:title>
		</media:content>

		<media:content url="http://egloo.files.wordpress.com/2008/11/syn_example1.jpg" medium="image">
			<media:title type="html">syn_example1</media:title>
		</media:content>
	</item>
		<item>
		<title>Linux Cached Memory</title>
		<link>http://egloo.wordpress.com/2008/10/29/linux-cached-memory/</link>
		<comments>http://egloo.wordpress.com/2008/10/29/linux-cached-memory/#comments</comments>
		<pubDate>Wed, 29 Oct 2008 05:34:52 +0000</pubDate>
		<dc:creator>pcabrerat</dc:creator>
				<category><![CDATA[Memory]]></category>
		<category><![CDATA[Swap]]></category>

		<guid isPermaLink="false">http://egloo.wordpress.com/?p=203</guid>
		<description><![CDATA[In Linux, reading from a disk is very slow compared to accessing real memory. In addition, it is common to read the same part of a disk several times during relatively short periods of time. For example, one might first read an e-mail message, then read the letter into an editor when replying to it, [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=egloo.wordpress.com&amp;blog=4102430&amp;post=203&amp;subd=egloo&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><img class="alignleft size-full wp-image-204" title="coffee" src="http://egloo.files.wordpress.com/2008/10/cofee.png?w=220&#038;h=165" alt="" width="220" height="165" />In Linux, reading from a disk is very slow compared to accessing real memory. In addition, it is common to read the same part of a disk several times during relatively short periods of time. For example, one might first read an e-mail message, then read the letter into an editor when replying to it, then make the mail program read it again when copying it to a folder. Or, consider how often the command ls might be run on a system with many users. By reading the information from disk only once and then keeping it in memory until no longer needed, one can speed up all but the first read. This is called disk buffering, and the memory used for the purpose is called the buffer cache.</p>
<p>Unlike <del datetime="00">Windows</del> other operating systems, Linux administers memory the smartest way it can.</p>
<p>Since unused memory is next to worthless, the filesystem takes whatever memory is left and caches it in order to speed up disk access. When the cache fills up, the data that has been unused for the longest time is discarded and the memory thus freed is used for the new data.</p>
<p>Whenever an application needs memory, the kernel makes the cache smaller; You do not need to do anything to make use of the cache, it happens completely automatically.</p>
<p>Freeing memory buffer does not make your programs faster&#8230; Actually it makes disk access slower.</p>
<p>BUT if for some reason (kernel debugging for example) you want to force the buffer to be freed, you need to set the drop_caches value to 1:</p>
<p><code>$ echo 1 &gt; /proc/sys/vm/drop_caches</code></p>
<p>Issuing this command will release all the cached memory and also will stop collecting I/O buffer blocks. Let&#8217;s see an example of the effect:</p>
<p style="text-align:center;"><img class="size-full wp-image-205 aligncenter" title="swap" src="http://egloo.files.wordpress.com/2008/10/swap.png?w=600" alt="" /></p>
<p>Under normal situations, most of the memory is already cached by the system. But if we force the system to free the memory, you can see in the graph how the memory is suddenly dropped.</p>
<p>The technical details of how this works are explained on the <a href="http://www.faqs.org/docs/kernel_2_4/lki-4.html">Linux API</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/egloo.wordpress.com/203/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/egloo.wordpress.com/203/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/egloo.wordpress.com/203/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/egloo.wordpress.com/203/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/egloo.wordpress.com/203/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/egloo.wordpress.com/203/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/egloo.wordpress.com/203/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/egloo.wordpress.com/203/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/egloo.wordpress.com/203/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/egloo.wordpress.com/203/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/egloo.wordpress.com/203/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/egloo.wordpress.com/203/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/egloo.wordpress.com/203/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/egloo.wordpress.com/203/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=egloo.wordpress.com&amp;blog=4102430&amp;post=203&amp;subd=egloo&amp;ref=&amp;feed=1" width="1" height="1" /><div class="sharedaddy"></div>]]></content:encoded>
			<wfw:commentRss>http://egloo.wordpress.com/2008/10/29/linux-cached-memory/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">pcabrerat</media:title>
		</media:content>

		<media:content url="http://egloo.files.wordpress.com/2008/10/cofee.png" medium="image">
			<media:title type="html">coffee</media:title>
		</media:content>

		<media:content url="http://egloo.files.wordpress.com/2008/10/swap.png" medium="image">
			<media:title type="html">swap</media:title>
		</media:content>
	</item>
		<item>
		<title>FTP Error Codes</title>
		<link>http://egloo.wordpress.com/2008/10/25/ftp-error-codes/</link>
		<comments>http://egloo.wordpress.com/2008/10/25/ftp-error-codes/#comments</comments>
		<pubDate>Sat, 25 Oct 2008 12:45:56 +0000</pubDate>
		<dc:creator>pcabrerat</dc:creator>
				<category><![CDATA[FTP]]></category>
		<category><![CDATA[Protocols]]></category>

		<guid isPermaLink="false">http://egloo.wordpress.com/?p=197</guid>
		<description><![CDATA[In case you are a die-hard FTP user, you should find helpful the error code reference. Normally, these codes appear in the system log files, or directly into your terminal. 120 Service ready in nnn minutes. 125 Data connection already open; transfer starting. 150 File status okay; about to open data connection. 200 Command okay. [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=egloo.wordpress.com&amp;blog=4102430&amp;post=197&amp;subd=egloo&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><img class="alignleft size-full wp-image-199" title="ftp_icon" src="http://egloo.files.wordpress.com/2008/10/ftp_icon.gif?w=176&#038;h=176" alt="" width="176" height="176" />In case you are a die-hard FTP user, you should find helpful the error code reference. Normally, these codes appear in the system log files, or directly into your terminal.</p>
<p><strong>120 </strong>Service ready in nnn minutes.<br />
<strong>125 </strong>Data connection already open; transfer starting.<br />
<strong>150 </strong>File status okay; about to open data connection.<br />
<strong>200 </strong>Command okay.<br />
<strong>202 </strong>Command not implemented, superfluous at this site.<br />
<strong>211 </strong>System status, or system help reply.<br />
<strong>212 </strong>Directory status.<br />
<strong>213 </strong>File status.<br />
<strong>214 </strong>Help message.On how to use the server or the meaning of a particular non-standard command. This reply is useful only to the human user.<br />
<strong>120 </strong>Service ready in nnn minutes.<br />
<strong>125 </strong>Data connection already open; transfer starting.<br />
<strong>150 </strong>File status okay; about to open data connection.<br />
<strong>200 </strong>Command okay.<br />
<strong>202 </strong>Command not implemented, superfluous at this site.<br />
<strong>211 </strong>System status, or system help reply.<br />
<strong>212 </strong>Directory status.<br />
<strong>213 </strong>File status.<br />
<strong>214 </strong>Help message.On how to use the server or the meaning of a particular non-standard command. This reply is useful only to the human user.<br />
<strong>215 </strong>NAME system type. Where NAME is an official system name from the list in the Assigned Numbers document.<br />
<strong>220 </strong>Service ready for new user.<br />
<strong>221 </strong>Service closing control connection.<br />
<strong>225 </strong>Data connection open; no transfer in progress.<br />
<strong>226 </strong>Closing data connection. Requested file action successful (for example, file transfer or file abort).<br />
<strong>227 </strong>Entering Passive Mode (h1,h2,h3,h4,p1,p2).<br />
<strong>230 </strong>User logged in, proceed. Logged out if appropriate.<br />
<strong>250 </strong>Requested file action okay, completed.<br />
<strong>257 </strong>&#8220;PATHNAME&#8221; created.<br />
<strong>331 </strong>User name okay, need password.<br />
<strong>332 </strong>Need account for login.<br />
<strong>350 </strong>Requested file action pending further information<br />
<strong>421 </strong>Service not available, closing control connection.This may be a reply to any command if the service knows it must shut down.<br />
<strong>425 </strong>Can&#8217;t open data connection.<br />
<strong>426 </strong>Connection closed; transfer aborted.<br />
<strong>450 </strong>Requested file action not taken.<br />
<strong>451 </strong>Requested action aborted. Local error in processing.<br />
<strong>452 </strong>Requested action not taken. Insufficient storage space in system.File unavailable (e.g., file busy).<br />
<strong>500 </strong>Syntax error, command unrecognized. This may include errors such as command line too long.<br />
<strong>501 </strong>Syntax error in parameters or arguments.<br />
<strong>502 </strong>Command not implemented.<br />
<strong>503 </strong>Bad sequence of commands.<br />
<strong>504 </strong>Command not implemented for that parameter.<br />
<strong>530 </strong>Not logged in.<br />
<strong>532 </strong>Need account for storing files.<br />
<strong>550 </strong>Requested action not taken. File unavailable (e.g., file not found, no access).<br />
<strong>551 </strong>Requested action aborted. Page type unknown.<br />
<strong>552 </strong>Requested file action aborted. Exceeded storage allocation (for current directory or dataset).<br />
<strong>553 </strong>Requested action not taken. File name not allowed.NAME system type. Where NAME is an official system name from the list in the Assigned Numbers document.<br />
<strong>220 </strong>Service ready for new user.<br />
<strong>221 </strong>Service closing control connection.<br />
<strong>225 </strong>Data connection open; no transfer in progress.<br />
<strong>226 </strong>Closing data connection. Requested file action successful (for example, file transfer or file abort).<br />
<strong>227 </strong>Entering Passive Mode (h1,h2,h3,h4,p1,p2).<br />
<strong>230 </strong>User logged in, proceed. Logged out if appropriate.<br />
<strong>250 </strong>Requested file action okay, completed.<br />
<strong>257 </strong>&#8220;PATHNAME&#8221; created.<br />
<strong>331 </strong>User name okay, need password.<br />
<strong>332 </strong>Need account for login.<br />
<strong>350 </strong>Requested file action pending further information<br />
<strong>421 </strong>Service not available, closing control connection.This may be a reply to any command if the service knows it must shut down.<br />
<strong>425 </strong>Can&#8217;t open data connection.<br />
<strong>426 </strong>Connection closed; transfer aborted.<br />
<strong>450 </strong>Requested file action not taken.<br />
<strong>451 </strong>Requested action aborted. Local error in processing.<br />
<strong>452 </strong>Requested action not taken. Insufficient storage space in system.File unavailable (e.g., file busy).<br />
<strong>500 </strong>Syntax error, command unrecognized. This may include errors such as command line too long.<br />
<strong>501 </strong>Syntax error in parameters or arguments.<br />
<strong>502 </strong>Command not implemented.<br />
<strong>503 </strong>Bad sequence of commands.<br />
<strong>504 </strong>Command not implemented for that parameter.<br />
<strong>530 </strong>Not logged in.<br />
<strong>532 </strong>Need account for storing files.<br />
<strong>550 </strong>Requested action not taken. File unavailable (e.g., file not found, no access).<br />
<strong>551 </strong>Requested action aborted. Page type unknown.<br />
<strong>552 </strong>Requested file action aborted. Exceeded storage allocation (for current directory or dataset).<br />
<strong>553 </strong>Requested action not taken. File name not allowed.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/egloo.wordpress.com/197/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/egloo.wordpress.com/197/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/egloo.wordpress.com/197/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/egloo.wordpress.com/197/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/egloo.wordpress.com/197/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/egloo.wordpress.com/197/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/egloo.wordpress.com/197/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/egloo.wordpress.com/197/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/egloo.wordpress.com/197/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/egloo.wordpress.com/197/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/egloo.wordpress.com/197/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/egloo.wordpress.com/197/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/egloo.wordpress.com/197/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/egloo.wordpress.com/197/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=egloo.wordpress.com&amp;blog=4102430&amp;post=197&amp;subd=egloo&amp;ref=&amp;feed=1" width="1" height="1" /><div class="sharedaddy"></div>]]></content:encoded>
			<wfw:commentRss>http://egloo.wordpress.com/2008/10/25/ftp-error-codes/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">pcabrerat</media:title>
		</media:content>

		<media:content url="http://egloo.files.wordpress.com/2008/10/ftp_icon.gif" medium="image">
			<media:title type="html">ftp_icon</media:title>
		</media:content>
	</item>
		<item>
		<title>Using a Video Projector with Linux</title>
		<link>http://egloo.wordpress.com/2008/10/20/using-a-video-projector-with-linux/</link>
		<comments>http://egloo.wordpress.com/2008/10/20/using-a-video-projector-with-linux/#comments</comments>
		<pubDate>Mon, 20 Oct 2008 17:03:55 +0000</pubDate>
		<dc:creator>pcabrerat</dc:creator>
				<category><![CDATA[Screens]]></category>
		<category><![CDATA[display]]></category>
		<category><![CDATA[screen]]></category>
		<category><![CDATA[visuals]]></category>

		<guid isPermaLink="false">http://egloo.wordpress.com/?p=192</guid>
		<description><![CDATA[One of the first problems a user faces is the need to show topics and presentations with the help of a video projector and a laptop running Linux. For some reason beyond me, Linux newcomers get turned off by the mere mention of a command line. The whole concept of using a console is like [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=egloo.wordpress.com&amp;blog=4102430&amp;post=192&amp;subd=egloo&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><img class="alignleft size-full wp-image-193" title="projector" src="http://egloo.files.wordpress.com/2008/10/proj.jpg?w=148&#038;h=158" alt="" width="148" height="158" />One of the first problems a user faces is the need to show topics and presentations with the help of a video projector and a laptop running Linux.</p>
<p>For some reason beyond me, Linux newcomers get turned off by the mere mention of a command line. The whole concept of using a console is like alien.</p>
<p><strong>&#8230;</strong></p>
<p>Okay, there are two options: You can try to modify your <strong>Xorg.conf</strong> file until you mess it up, destroy your computer&#8217;s GUI, and get attacked by sharks (Let&#8217;s be honest, this is not worth the effort for just a single presentation), or you can go for a fast, secure and temporary on-the-fly screen resizing.</p>
<p>If you chose the second options, keep reading. This was tested on my HP Pavilion dv2000, with a standard <a href="http://en.wikipedia.org/wiki/VGA">VGA</a> port, running <a href="http://en.wikipedia.org/wiki/Fedora_(operating_system)">Fedora </a>9 x86_64.</p>
<p>First some easy stuff (OPTIONAL STEP): let&#8217;s disable the screensaver and as we want our screen to be ready and visible throughout the presentation.</p>
<p><code>$ xset s off</code></p>
<p>Next we have to take care of the external output. The command here is <a href="http://en.wikipedia.org/wiki/Xrandr">xrandr</a>, which stands for &#8220;<strong>X Resize And Rotate</strong>&#8221; and is used to &#8220;<em>allow clients to dynamically change X screens, so as to resize, rotate and reflect the root window of a screen</em>&#8220;.</p>
<p>On your console type <strong><code>xrandr -v</code></strong> to check if the package is installed (99% chance it is).</p>
<p><code>$ xrandr -v</code><br />
<code>Server reports RandR version 1.2</code></p>
<p>Now, connect the video projector to the laptop. And <em>automagically </em>you should see&#8230; nothing, since the screens are not yet configured.</p>
<p>In order to verify it the system recognized the device, lets query the connected screens with the command <strong><code>xrandr -q</code></strong></p>
<p><code>$ xrandr -q</code></p>
<p>You should see something like the following:</p>
<p><code>LVDS: minimum 320 x 200, current 1280 x 800, maximum 1280 x 800<br />
VGA connected 1920x1440+0+0 (normal left inverted right x axis y axis) 380mm x 285mm</code></p>
<p>As you can see, there is a device named <a href="http://en.wikipedia.org/wiki/LVDS">LVDS </a>which is the &#8220;<strong>Low-voltage differential signaling</strong>&#8221; for the laptop panel, and there is also a VGA device which represents our video projector.</p>
<p>Here you can use the same resolution on the laptop screen and the projector or using two different resolutions. The first approach is a little less prone to errors so we are going to use it.</p>
<p><strong>To clone the screen:</strong><br />
<code>$ xrandr --output LVDS --auto --output VGA --auto --same-as LVDS</code></p>
<p><strong>To extend the screen to the right in the VGA projector:</strong><br />
<code>$ xrandr --output LVDS --auto --output VGA --auto --right-of LVDS</code></p>
<p><strong>And finally, to turn off projection:</strong><br />
<code>$ xrandr --output VGA --off </code></p>
<p>This method can also be used with <a href="http://en.wikipedia.org/wiki/Digital_Visual_Interface">DVI </a>and <a href="http://en.wikipedia.org/wiki/Svideo">S-VIDEO</a> cables. Just be sure to type the correct name of the output device as it is showed with the <code>xrandr </code>command.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/egloo.wordpress.com/192/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/egloo.wordpress.com/192/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/egloo.wordpress.com/192/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/egloo.wordpress.com/192/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/egloo.wordpress.com/192/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/egloo.wordpress.com/192/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/egloo.wordpress.com/192/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/egloo.wordpress.com/192/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/egloo.wordpress.com/192/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/egloo.wordpress.com/192/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/egloo.wordpress.com/192/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/egloo.wordpress.com/192/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/egloo.wordpress.com/192/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/egloo.wordpress.com/192/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=egloo.wordpress.com&amp;blog=4102430&amp;post=192&amp;subd=egloo&amp;ref=&amp;feed=1" width="1" height="1" /><div class="sharedaddy"></div>]]></content:encoded>
			<wfw:commentRss>http://egloo.wordpress.com/2008/10/20/using-a-video-projector-with-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">pcabrerat</media:title>
		</media:content>

		<media:content url="http://egloo.files.wordpress.com/2008/10/proj.jpg" medium="image">
			<media:title type="html">projector</media:title>
		</media:content>
	</item>
		<item>
		<title>Path of the Linux Jedi</title>
		<link>http://egloo.wordpress.com/2008/10/17/path-of-the-linux-jedi/</link>
		<comments>http://egloo.wordpress.com/2008/10/17/path-of-the-linux-jedi/#comments</comments>
		<pubDate>Fri, 17 Oct 2008 00:59:57 +0000</pubDate>
		<dc:creator>pcabrerat</dc:creator>
				<category><![CDATA[Books]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[tutorials]]></category>

		<guid isPermaLink="false">http://egloo.wordpress.com/?p=178</guid>
		<description><![CDATA[If you really want to get your hands on the &#8220;dirty job&#8221; and become a serious Linux programmer, I really recommend you to read the following book. It&#8217;s called Advanced Linux Programming and is distributed under the GNU General Public License so you&#8217;re free to copy, share, and most important: read it. BROWSE PDF FILES [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=egloo.wordpress.com&amp;blog=4102430&amp;post=178&amp;subd=egloo&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><img class="alignleft size-full wp-image-181" title="Jedi" src="http://egloo.files.wordpress.com/2008/10/tux-jedi.png?w=170&#038;h=170" alt="" width="170" height="170" />If you really want to get your hands on the &#8220;dirty job&#8221; and become a serious Linux programmer, I really recommend you to read the following book.</p>
<p>It&#8217;s called <strong>Advanced Linux Programming</strong> and is distributed under the GNU General Public License so you&#8217;re free to copy, share, and most important: read it.</p>
<p><a class="aligncenter" title="BROWSE PDF FILES" href="http://www.advancedlinuxprogramming.com/alp-folder" target="_blank">BROWSE PDF FILES</a></p>
<p>As <a href="http://www.advancedlinuxprogramming.com/">the publisher</a> says, this book will help you to:</p>
<p><em>Develop GNU/Linux software that works the way users expect it to.<br />
Write more sophisticated programs with features such as multiprocessing, multi-threading, interprocess communication, and interaction with hardware devices.<br />
Improve your programs by making them run faster, more reliably, and more securely.<br />
Understand the preculiarities of a GNU/Linux system, including its limitations, special capabilities, and conventions.</em></p>
<p><em>If you&#8217;re a developer already experienced with programming for the GNU/Linux system, are experienced with another UNIX-like system and are interested in developing GNU/Linux software, or want to make the transition for a non-UNIX environment and are already familiar with the general principles of writing good software, this book is for you. In addition, you will find that this book is equally applicable to C and C++ programming. Even those progamming in other languages will find this book useful since the C language APIs and conventions are the lingua franca of GNU/Linux.</em></p>
<p>As an advice, you will need a solid grasp of C programming knowledge.</p>
<p>Thruth be told, good luck.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/egloo.wordpress.com/178/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/egloo.wordpress.com/178/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/egloo.wordpress.com/178/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/egloo.wordpress.com/178/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/egloo.wordpress.com/178/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/egloo.wordpress.com/178/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/egloo.wordpress.com/178/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/egloo.wordpress.com/178/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/egloo.wordpress.com/178/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/egloo.wordpress.com/178/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/egloo.wordpress.com/178/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/egloo.wordpress.com/178/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/egloo.wordpress.com/178/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/egloo.wordpress.com/178/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=egloo.wordpress.com&amp;blog=4102430&amp;post=178&amp;subd=egloo&amp;ref=&amp;feed=1" width="1" height="1" /><div class="sharedaddy"></div>]]></content:encoded>
			<wfw:commentRss>http://egloo.wordpress.com/2008/10/17/path-of-the-linux-jedi/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">pcabrerat</media:title>
		</media:content>

		<media:content url="http://egloo.files.wordpress.com/2008/10/tux-jedi.png" medium="image">
			<media:title type="html">Jedi</media:title>
		</media:content>
	</item>
		<item>
		<title>Turn off echo in a terminal</title>
		<link>http://egloo.wordpress.com/2008/10/13/turn-off-echo-in-a-terminal/</link>
		<comments>http://egloo.wordpress.com/2008/10/13/turn-off-echo-in-a-terminal/#comments</comments>
		<pubDate>Mon, 13 Oct 2008 20:21:52 +0000</pubDate>
		<dc:creator>pcabrerat</dc:creator>
				<category><![CDATA[Shells]]></category>

		<guid isPermaLink="false">http://egloo.wordpress.com/?p=168</guid>
		<description><![CDATA[Imagine you are writing a shell script that requires the user to input confidential information, lets say a password. The user wont feel comfortable if the password is echoed on the screen like a simple text. If you ever used expect interactive scripting, you know for sure this kind of problem. Don&#8217;t worry, its amazingly [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=egloo.wordpress.com&amp;blog=4102430&amp;post=168&amp;subd=egloo&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><img class="alignleft size-full wp-image-169" title="speaker" src="http://egloo.files.wordpress.com/2008/10/120px-speaker_iconsvg.png?w=120&#038;h=120" alt="" width="120" height="120" />Imagine you are writing a shell script that requires the user to input confidential information, lets say a password.</p>
<p>The user wont feel comfortable if the password is echoed on the screen like a simple text. If you ever used <a href="http://expect.nist.gov/">expect</a> interactive scripting, you know for sure this kind of problem.</p>
<p>Don&#8217;t worry, its amazingly easy to perform this trick and stop echoing whatever the user types on the screen.</p>
<p>Simply add the following line to your script:</p>
<p><code>stty -echo</code></p>
<p>and you are done. The <em>stty </em>output will go offline. Let&#8217;s see an example:</p>
<p><code>#!/bin/bash<br />
echo Hello</code><code><br />
stty -echo<br />
# do what ever you want to do<br />
echo 'I slept with your girlfriend'<br />
stty echo<br />
echo Bye<br />
exit 0;</code></p>
<p>That&#8217;s it! Just remember to put it back to normal with the following command:</p>
<p><code>stty echo</code></p>
<p>Also, it would be helpful for you to read the whole man page for <strong>stty</strong>.</p>
<p><code>$ man stty</code></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/egloo.wordpress.com/168/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/egloo.wordpress.com/168/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/egloo.wordpress.com/168/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/egloo.wordpress.com/168/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/egloo.wordpress.com/168/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/egloo.wordpress.com/168/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/egloo.wordpress.com/168/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/egloo.wordpress.com/168/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/egloo.wordpress.com/168/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/egloo.wordpress.com/168/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/egloo.wordpress.com/168/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/egloo.wordpress.com/168/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/egloo.wordpress.com/168/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/egloo.wordpress.com/168/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=egloo.wordpress.com&amp;blog=4102430&amp;post=168&amp;subd=egloo&amp;ref=&amp;feed=1" width="1" height="1" /><div class="sharedaddy"></div>]]></content:encoded>
			<wfw:commentRss>http://egloo.wordpress.com/2008/10/13/turn-off-echo-in-a-terminal/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">pcabrerat</media:title>
		</media:content>

		<media:content url="http://egloo.files.wordpress.com/2008/10/120px-speaker_iconsvg.png" medium="image">
			<media:title type="html">speaker</media:title>
		</media:content>
	</item>
	</channel>
</rss>
