<?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>tymonn</title>
	<atom:link href="http://tymonn.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://tymonn.wordpress.com</link>
	<description>I would love to change the world, but they won't give me the source code.</description>
	<lastBuildDate>Tue, 10 Jan 2012 05:42:56 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='tymonn.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>tymonn</title>
		<link>http://tymonn.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://tymonn.wordpress.com/osd.xml" title="tymonn" />
	<atom:link rel='hub' href='http://tymonn.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Avoiding memory leaks in POSIX thread programming</title>
		<link>http://tymonn.wordpress.com/2010/08/28/avoiding-memory-leaks-in-posix-thread-programming/</link>
		<comments>http://tymonn.wordpress.com/2010/08/28/avoiding-memory-leaks-in-posix-thread-programming/#comments</comments>
		<pubDate>Sat, 28 Aug 2010 21:26:36 +0000</pubDate>
		<dc:creator>tymonn</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://tymonn.wordpress.com/?p=88</guid>
		<description><![CDATA[POSIX thread programming defines a standard set of C programming language types, functions, and constants—and pthreads provide a powerful tool for thread management. To use pthreads to the fullest, you&#8217;ll want to avoid the common mistakes. One common mistake is forgetting to join joinable threads, which can create memory leaks and cause extra work. In [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=tymonn.wordpress.com&amp;blog=6421500&amp;post=88&amp;subd=tymonn&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>POSIX thread programming defines a standard set of C programming language types, functions, and constants—and pthreads provide a powerful tool for thread management. To use pthreads to the fullest, you&#8217;ll want to avoid the common mistakes. One common mistake is forgetting to join joinable threads, which can create memory leaks and cause extra work. In this tips-oriented article, learn the basics of POSIX threads, see how to identify and detect thread memory leaks, and get solid advice for avoiding them.</p>
<p>read the whole story <a href="http://www.ibm.com/developerworks/linux/library/l-memory-leaks/index.html?ca=dgr-twtrPOSIX-Leaksdth-LX">here</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/tymonn.wordpress.com/88/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/tymonn.wordpress.com/88/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/tymonn.wordpress.com/88/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/tymonn.wordpress.com/88/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/tymonn.wordpress.com/88/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/tymonn.wordpress.com/88/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/tymonn.wordpress.com/88/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/tymonn.wordpress.com/88/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/tymonn.wordpress.com/88/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/tymonn.wordpress.com/88/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/tymonn.wordpress.com/88/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/tymonn.wordpress.com/88/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/tymonn.wordpress.com/88/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/tymonn.wordpress.com/88/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=tymonn.wordpress.com&amp;blog=6421500&amp;post=88&amp;subd=tymonn&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://tymonn.wordpress.com/2010/08/28/avoiding-memory-leaks-in-posix-thread-programming/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6b771b69be8ded1238fc4c8558379740?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">tymonn</media:title>
		</media:content>
	</item>
		<item>
		<title>Install ATI graphic card on Debian Linux</title>
		<link>http://tymonn.wordpress.com/2009/09/06/install-ati-graphic-card-on-debian-linux/</link>
		<comments>http://tymonn.wordpress.com/2009/09/06/install-ati-graphic-card-on-debian-linux/#comments</comments>
		<pubDate>Sun, 06 Sep 2009 12:49:43 +0000</pubDate>
		<dc:creator>tymonn</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[AMD]]></category>
		<category><![CDATA[ATI]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[HD2400]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://tymonn.wordpress.com/?p=57</guid>
		<description><![CDATA[There are at least two methods that can be used to install the fglrx driver in Debian. The first, and recommended way is to use the native Debian packages directly from the non-free repository. Get the packages updates: sudo aptitude update Install your kernel headers: sudo aptitude install linux-headers-`uname -r` Download and install the necessary [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=tymonn.wordpress.com&amp;blog=6421500&amp;post=57&amp;subd=tymonn&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><img src="http://tymonn.files.wordpress.com/2009/09/ati_logo_game.jpg?w=570" alt="ati_logo_game" title="ati_logo_game"   class="alignleft size-full wp-image-61" style="border-style:none;" /></p>
<p>There are at least two methods that can be used to install the fglrx driver in Debian. The first, and recommended way is to use the native Debian packages directly from the non-free repository.</p>
<p>Get the packages updates:<br />
<code><strong>sudo aptitude update</strong></code></p>
<p>Install your kernel headers:<br />
<code><strong>sudo aptitude install linux-headers-`uname -r`</strong></code></p>
<p><span id="more-57"></span><br />
<br />
Download and install the necessary compilers:<br />
<code><strong>sudo aptitude install build-essential</strong></code></p>
<p>Get the packages updates:<br />
<code><strong>sudo aptitude update</strong></code></p>
<p>Install the driver:<br />
<code><strong>sudo aptitude install module-assistant fglrx-driver fglrx-kernel-src</strong></code></p>
<p>Build and install the module:<br />
<code><strong>sudo module-assistant auto-install fglrx-kernel-src</strong></code></p>
<p>After this you will need:<br />
<code><strong>sudo aticonfig --initial</strong></code></p>
<p>This will update your xorg.conf to use the new driver. Restart for the changes to take effect. </p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/tymonn.wordpress.com/57/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/tymonn.wordpress.com/57/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/tymonn.wordpress.com/57/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/tymonn.wordpress.com/57/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/tymonn.wordpress.com/57/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/tymonn.wordpress.com/57/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/tymonn.wordpress.com/57/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/tymonn.wordpress.com/57/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/tymonn.wordpress.com/57/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/tymonn.wordpress.com/57/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/tymonn.wordpress.com/57/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/tymonn.wordpress.com/57/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/tymonn.wordpress.com/57/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/tymonn.wordpress.com/57/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=tymonn.wordpress.com&amp;blog=6421500&amp;post=57&amp;subd=tymonn&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://tymonn.wordpress.com/2009/09/06/install-ati-graphic-card-on-debian-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6b771b69be8ded1238fc4c8558379740?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">tymonn</media:title>
		</media:content>

		<media:content url="http://tymonn.files.wordpress.com/2009/09/ati_logo_game.jpg" medium="image">
			<media:title type="html">ati_logo_game</media:title>
		</media:content>
	</item>
		<item>
		<title>How to enable mod_rewrite in apache2 (debian/ubuntu)</title>
		<link>http://tymonn.wordpress.com/2009/07/31/how-to-enable-mod_rewrite-in-apache2-debianubuntu/</link>
		<comments>http://tymonn.wordpress.com/2009/07/31/how-to-enable-mod_rewrite-in-apache2-debianubuntu/#comments</comments>
		<pubDate>Fri, 31 Jul 2009 22:16:47 +0000</pubDate>
		<dc:creator>tymonn</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[lenny]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[sid]]></category>
		<category><![CDATA[squeeze]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://tymonn.wordpress.com/?p=51</guid>
		<description><![CDATA[First install the apache with this command: apt-get install apache2 Now use locate to find if the mod_rewrite.so is availble on your server: updatedb locate mod_rewrite.so it will found in &#8220;/usr/lib/apache2/modules&#8221; New apache follow some folders to enable and disable mods so now do this: cd /etc/apache2/mods-enabled touch rewrite.load vim rewrite.load (you may use any [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=tymonn.wordpress.com&amp;blog=6421500&amp;post=51&amp;subd=tymonn&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><img src="http://tymonn.files.wordpress.com/2009/07/apache_display1.png?w=570" alt="apache_display" title="apache_display"   class="aligncenter size-full wp-image-55" /></p>
<p>First install the apache with this command:</p>
<p><code>apt-get install apache2</code></p>
<p>Now use locate to find if the <strong>mod_rewrite.so</strong> is availble on your server:</p>
<p><code>updatedb</code><br />
<code>locate mod_rewrite.so</code></p>
<p>it will found in <strong>&#8220;/usr/lib/apache2/modules&#8221;</strong></p>
<p>New apache follow some folders to enable and disable mods so now do this:</p>
<p><code>cd /etc/apache2/mods-enabled</code><br />
<code>touch rewrite.load</code><br />
<code>vim rewrite.load</code> (you may use any editor to edit this file)<br />
<span id="more-51"></span></p>
<p>Now paste this following line:</p>
<p><code>LoadModule rewrite_module /usr/lib/apache2/modules/mod_rewrite.so</code></p>
<p>Then edit:<br />
<code>/etc/apache2/sites-available/default</code></p>
<p>Find the following:</p>
<p><code>Options Indexes FollowSymLinks MultiViews<br />
AllowOverride <strong>None</strong><br />
Order allow,deny<br />
allow from all</code></p>
<p>and change it to</p>
<p><code>Options Indexes FollowSymLinks MultiViews<br />
AllowOverride <strong>all</strong><br />
Order allow,deny<br />
allow from all</code></p>
<p>and finally restart Apache:<br />
<code><br />
/etc/init.d/apache2 restart</code></p>
<p>OK, you done <img src='http://s0.wp.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' />  </p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/tymonn.wordpress.com/51/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/tymonn.wordpress.com/51/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/tymonn.wordpress.com/51/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/tymonn.wordpress.com/51/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/tymonn.wordpress.com/51/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/tymonn.wordpress.com/51/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/tymonn.wordpress.com/51/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/tymonn.wordpress.com/51/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/tymonn.wordpress.com/51/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/tymonn.wordpress.com/51/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/tymonn.wordpress.com/51/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/tymonn.wordpress.com/51/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/tymonn.wordpress.com/51/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/tymonn.wordpress.com/51/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=tymonn.wordpress.com&amp;blog=6421500&amp;post=51&amp;subd=tymonn&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://tymonn.wordpress.com/2009/07/31/how-to-enable-mod_rewrite-in-apache2-debianubuntu/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6b771b69be8ded1238fc4c8558379740?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">tymonn</media:title>
		</media:content>

		<media:content url="http://tymonn.files.wordpress.com/2009/07/apache_display1.png" medium="image">
			<media:title type="html">apache_display</media:title>
		</media:content>
	</item>
		<item>
		<title>Debian &#8211; PHP, MySQL, Apache2</title>
		<link>http://tymonn.wordpress.com/2009/02/21/debian-php-mysql-apache2/</link>
		<comments>http://tymonn.wordpress.com/2009/02/21/debian-php-mysql-apache2/#comments</comments>
		<pubDate>Sat, 21 Feb 2009 16:28:14 +0000</pubDate>
		<dc:creator>tymonn</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[xDebug]]></category>

		<guid isPermaLink="false">http://tymonn.wordpress.com/?p=15</guid>
		<description><![CDATA[This article is a walkthrough on installing PHP environment &#8211; PHP, Apache, MySQL and xDebug on Debian. When it comes to database servers, there are several free database server applications available. The intended use of the database server will have some impact on which database package you choose. MySQL is the most widely used free [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=tymonn.wordpress.com&amp;blog=6421500&amp;post=15&amp;subd=tymonn&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><img class="aligncenter size-full wp-image-16" title="computer-server" src="http://tymonn.files.wordpress.com/2009/02/computer-server.jpg?w=570" alt="computer-server"   /><br />
This article is a walkthrough on installing PHP environment &#8211; PHP, Apache, MySQL and xDebug on Debian.</p>
<p>When it comes to database servers, there are several free database server applications available. The intended use of the database server will have some impact on which database package you choose. MySQL is the most widely used free database server. However, it&#8217;s use is primarily to act as a back end database for Web site applications written in embedded scripting languages like PHP because it doesn&#8217;t support things like triggers, stored procedures, and replication (yet).</p>
<p>Open a terminal. You will need to install all the parts as root, so&#8230; suit up!</p>
<p>Install Apache web server</p>
<pre class="html">apt-get install apache2</pre>
<p>Install MySQL server</p>
<pre class="html">apt-get install mysql-server</pre>
<p><span id="more-15"></span><br />
Install PHP 5</p>
<pre class="html">apt-get install php5</pre>
<p>Install MySQL extension for PHP</p>
<pre class="html">apt-get install php5-mysql</pre>
<p>Install xDebug extension for PHP &#8211; the extension for debugging.</p>
<pre class="html">apt-get install php5-xdebug</pre>
<p>This all what you have to install. Now we will set up Apache and PHP.</p>
<p>After installing Apache the server should be running. If you click this link <a href="http://localhost">http://localhost/</a> the Firefox is opened and you should see a page with the text &#8220;it works!&#8221;.</p>
<p>Enable remote debugging in xDebug</p>
<p>In the folder /var/www/ create an <strong>info.php</strong> file with content with the property tags:</p>
<pre class="html">phpinfo();</pre>
<p>Hit <a href="http://localhost/info.php">http://localhost/info.php</a> and you should see how the PHP runtime is setup. Search for the property xdebug.remote_enable property. By default this property is switched off.</p>
<p>To enable this property you have to open file <strong>/etc/php5/conf.d/xdebug.ini</strong> and add this line:<br />
<code>xdebug.remote_enable=on</code></p>
<p>and restart the Apache web server</p>
<pre class="html">/etc/init.d/apache2 restart</pre>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/tymonn.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/tymonn.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/tymonn.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/tymonn.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/tymonn.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/tymonn.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/tymonn.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/tymonn.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/tymonn.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/tymonn.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/tymonn.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/tymonn.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/tymonn.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/tymonn.wordpress.com/15/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=tymonn.wordpress.com&amp;blog=6421500&amp;post=15&amp;subd=tymonn&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://tymonn.wordpress.com/2009/02/21/debian-php-mysql-apache2/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6b771b69be8ded1238fc4c8558379740?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">tymonn</media:title>
		</media:content>

		<media:content url="http://tymonn.files.wordpress.com/2009/02/computer-server.jpg" medium="image">
			<media:title type="html">computer-server</media:title>
		</media:content>
	</item>
		<item>
		<title>Using Screen for Session Management</title>
		<link>http://tymonn.wordpress.com/2009/02/21/using-screen-for-session-management/</link>
		<comments>http://tymonn.wordpress.com/2009/02/21/using-screen-for-session-management/#comments</comments>
		<pubDate>Sat, 21 Feb 2009 16:17:33 +0000</pubDate>
		<dc:creator>tymonn</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[screen]]></category>

		<guid isPermaLink="false">http://tymonn.wordpress.com/?p=8</guid>
		<description><![CDATA[Lost your shell connection? Need multiple shell sessions? You are logged into your remote server via SSH and happily plucking along at your keyboard and then it happens. Suddenly, the characters stop moving and then you get the dreaded &#8220;Connection Closed&#8221; message. You have just lost your session. You were halfway through some task and [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=tymonn.wordpress.com&amp;blog=6421500&amp;post=8&amp;subd=tymonn&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><img class="alignleft size-full wp-image-11" title="terminal-icon_128x128" src="http://tymonn.files.wordpress.com/2009/02/terminal-icon_128x128.png?w=570" alt="terminal-icon_128x128"   /><strong>Lost your shell connection? Need multiple shell sessions?</strong><br />
You are logged into your remote server via SSH and happily plucking along at your keyboard and then it happens. Suddenly, the characters stop moving and then you get the dreaded &#8220;Connection Closed&#8221; message. You have just lost your session. You were halfway through some task and now you have to start over. Ugh. Well you can prevent this from happening by using screen. Screen can not only save you from disconnection disasters, but it also can increase your productivity by using multiple windows within one SSH session. <strong>Use Screen for Session Management!</strong></p>
<p><strong>What is Screen?</strong><br />
As the man page states, &#8220;Screen is a full-screen window manager that multiplexes a physical terminal between several processes (typically interactive shells).&#8221; This can be a life saver when working on your dedicated server. Screen has a several great features for helping you administer your server more productively and safely. I am going to discuss the three features (multiple windows, logging, sessions) that I use the most but be sure to see the man page for full details.</p>
<pre class="html">$ sudo apt-get install screen</pre>
<p><strong>Using Screen</strong><br />
Screen is started from the command line just like any other command:</p>
<pre class="html">$ screen</pre>
<p><span id="more-8"></span><br />
You may or may not get a text message about screen. If you do not, then you probably think nothing has happened, but it has. You are now inside of a window within screen. This functions just like a normal shell except for a few special characters. Screen uses the command &#8220;Ctrl-A&#8221; as a signal to send commands to screen instead of the shell. To get help, just use &#8220;Ctrl-A&#8221; then &#8220;?&#8221;. You should now have the screen help page.</p>
<p>Key bindings are the commands the screen accepts after you hit &#8220;Ctrl-A&#8221;. You can reconfigure these keys to your liking using a .screenrc file, but I just use the defaults.</p>
<p><strong>Multiple Windows</strong><br />
Screen, like many windows managers, can support multiple windows. This is very useful for doing many tasks at the same time without opening new sessions. As a systems manager, I often have four or five SSH sessions going at the same time. In each of the shell, I may be running two or three tasks. Without screen, that would require 15 SSH sessions, logins, windows, etc. With screen, each system gets its own single session and I use screen to manage different tasks on that system.</p>
<p>To open a new window, you just use &#8220;Ctrl-A&#8221; &#8220;c&#8221;. This will create a new window for you with your default prompt. For example, I can be running top and then open a new window to do other things. Top stays running! It is still there. To try this for yourself, start up screen and then run top.</p>
<pre class="html">tymonn@debianbox:~$ top</pre>
<pre class="delphi">top - 15:40:41 up  1:28,  3 users,  load average: 0.25, 0.36, 0.36
Tasks: 120 total,   2 running, 116 sleeping,   2 stopped,   0 zombie
Cpu(s):  5.2%us,  1.1%sy,  0.0%ni, 93.7%id,  0.0%wa,  0.0%hi,  0.0%si,  0.0%st
Mem:   2075424k total,  2033216k used,    42208k free,   571872k buffers
Swap:  1052184k total,        0k used,  1052184k free,   969644k cached

  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND
 3624 tymonn    20   0  148m  59m  20m S    3  3.0   3:35.83 rhythmbox
 5073 tymonn    20   0  260m 117m  24m R    3  5.8   9:46.60 firefox-bin
 3261 root      20   0  325m  91m  22m S    2  4.5   1:24.69 Xorg</pre>
<p>Now create another window use &#8220;Ctrl-A&#8221; &#8220;c&#8221;</p>
<pre class="html">$</pre>
<p>Now you have 2 windows, You can create several windows and toggle through them with &#8220;Ctrl-A&#8221; &#8220;n&#8221; for the next window or &#8220;Ctrl-A&#8221; &#8220;p&#8221; for the previous window. Each process will keep running while your work elsewhere.</p>
<p><strong>Leaving Screen</strong><br />
There are two ways to get out of screen. The first is just like logging out of a shell. You kill the window with &#8220;Ctrl-A&#8221; &#8220;K&#8221; or &#8220;exit&#8221; will work on some systems. This will kill the current windows. If you have other windows, you will drop into one of those. If this is the last window, then you will exit screen.</p>
<p>The second way to leave screen is to detach from a windows. This method leaves the process running and simple closes the window. If you have really long processes, you need to close your SSH program, you can detach from the window using &#8220;Ctrl-A&#8221; &#8220;d&#8221;. This will drop you into your shell. All screen windows are still there and you can re-attach to them later.</p>
<p><strong>Attaching to Sessions</strong><br />
So you are using screen now and compiling that program. It is taking forever and suddenly your connection drops. Don&#8217;t worry screen will keep the compilation going. Login to your system and use the screen listing tool to see what sessions are running:</p>
<pre class="html">tymonn@debianbox:~$ screen -ls
There are screens on:
	6039.pts-4.debianbox	(14/06/2008 15:02:09)	(Detached)
	5873.pts-0.debianbox	(14/06/2008 14:56:33)	(Detached)
2 Sockets in /var/run/screen/S-tymonn.

tymonn@debianbox:~$</pre>
<p>Here you see I have two different screen sessions. To re-attach to a session, use the re-attach command:</p>
<pre class="html">tymonn@debianbox:~$ screen -r 6039.pts-4.debianbox</pre>
<p>Just use screen with the -r flag and the session name. You are now re-attached to the screen. A nice thing about this, is you can re-attach from anywhere. If you are at work or a clients office, you can use screen to start a job and then logout. When you get back to your office or home, you can login and get back to work.</p>
<p><strong>Screen Logging</strong><br />
As a consultant, I find it important to keep track of what I do to someone&#8217;s server. Fortunately, screen makes this easy. Using &#8220;Ctrl-A&#8221; &#8220;H&#8221;, creates a running log of the session. Screen will keep appending data to the file through multiple sessions. Using the log function is very useful for capturing what you have done, especially if you are making a lot of changes. If something goes awry, you can look back through your logs.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/tymonn.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/tymonn.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/tymonn.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/tymonn.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/tymonn.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/tymonn.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/tymonn.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/tymonn.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/tymonn.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/tymonn.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/tymonn.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/tymonn.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/tymonn.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/tymonn.wordpress.com/8/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=tymonn.wordpress.com&amp;blog=6421500&amp;post=8&amp;subd=tymonn&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://tymonn.wordpress.com/2009/02/21/using-screen-for-session-management/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6b771b69be8ded1238fc4c8558379740?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">tymonn</media:title>
		</media:content>

		<media:content url="http://tymonn.files.wordpress.com/2009/02/terminal-icon_128x128.png" medium="image">
			<media:title type="html">terminal-icon_128x128</media:title>
		</media:content>
	</item>
		<item>
		<title>Simulation of Evolution by Natural Selection</title>
		<link>http://tymonn.wordpress.com/2009/02/21/simulation-of-evolution-by-natural-selection/</link>
		<comments>http://tymonn.wordpress.com/2009/02/21/simulation-of-evolution-by-natural-selection/#comments</comments>
		<pubDate>Sat, 21 Feb 2009 03:44:22 +0000</pubDate>
		<dc:creator>tymonn</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[artificial intelligence]]></category>
		<category><![CDATA[evolution]]></category>
		<category><![CDATA[Gustavo Reis]]></category>

		<guid isPermaLink="false">http://tymonn.wordpress.com/2009/02/21/simulation-of-evolution-by-natural-selection/</guid>
		<description><![CDATA[Uma coisa doce que nos foi mostrada numa aula de inteligência artificial O motor fisico assim como todo o ambiente foi criado pelos programadores, as espécies em si desenvolveram-se por si próprias através de inteligência artificial orientada por algorítmos genéticos. This video shows results from a research project involving simulated Darwinian evolutions of virtual block [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=tymonn.wordpress.com&amp;blog=6421500&amp;post=3&amp;subd=tymonn&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Uma coisa doce que nos foi mostrada numa aula de <span style="font-weight:bold;">inteligência artificial</span><br />
O motor fisico assim como todo o ambiente foi criado pelos programadores, as espécies em si desenvolveram-se por si próprias através de inteligência artificial orientada por algorítmos genéticos.</p>
<p><em>This video shows results from a research project involving simulated Darwinian evolutions of virtual block creatures. A population of several hundred creatures is created within a supercomputer, and each creature is tested for their ability to perform a given task, such the ability to swim in a simulated water environment. Those that are most successful survive, and their virtual genes containing coded instructions for their growth, are copied, combined, and mutated to make offspring for a new population. The new creatures are again tested, and some may be improvements on their parents. As this cycle of variation and selection continues, creatures with more and more successful behaviors can emerge.</em></p>
<p><em>The creatures shown are results from many independent simulations in which they were selected for swimming, walking, jumping, following, and competing for control of a green cube.</em></p>
<p><em>Interview with Karl Sims, the creator of this program:<br />
<a href="http://www.youtube.com/watch?v=b1rHS3R0llU">http://www.youtube.com/watch?v=b1rHS3R0llU</a></em></p>
<span style="text-align:center; display: block;"><a href="http://tymonn.wordpress.com/2009/02/21/simulation-of-evolution-by-natural-selection/"><img src="http://img.youtube.com/vi/oCXzcPNsqGA/2.jpg" alt="" /></a></span>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/tymonn.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/tymonn.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/tymonn.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/tymonn.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/tymonn.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/tymonn.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/tymonn.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/tymonn.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/tymonn.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/tymonn.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/tymonn.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/tymonn.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/tymonn.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/tymonn.wordpress.com/3/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=tymonn.wordpress.com&amp;blog=6421500&amp;post=3&amp;subd=tymonn&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://tymonn.wordpress.com/2009/02/21/simulation-of-evolution-by-natural-selection/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6b771b69be8ded1238fc4c8558379740?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">tymonn</media:title>
		</media:content>
	</item>
	</channel>
</rss>
