<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Connecting the dots... &#187; linux</title>
	<atom:link href="http://blog.rajatpandit.com/tag/linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.rajatpandit.com</link>
	<description>Thoughts on Web Development, Infrastructure and Application Scalability</description>
	<lastBuildDate>Thu, 29 Dec 2011 13:21:11 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>How to enable apache mod_rewrite on ubuntu</title>
		<link>http://blog.rajatpandit.com/2009/02/12/how-to-enable-mod_rewrite-on-ubuntu/</link>
		<comments>http://blog.rajatpandit.com/2009/02/12/how-to-enable-mod_rewrite-on-ubuntu/#comments</comments>
		<pubDate>Thu, 12 Feb 2009 23:40:03 +0000</pubDate>
		<dc:creator>rp</dc:creator>
				<category><![CDATA[Web Development]]></category>
		<category><![CDATA[apache 2]]></category>
		<category><![CDATA[configuration files]]></category>
		<category><![CDATA[directory permissions]]></category>
		<category><![CDATA[followsymlinks multiviews]]></category>
		<category><![CDATA[htaccess file]]></category>
		<category><![CDATA[hth]]></category>
		<category><![CDATA[indexes]]></category>
		<category><![CDATA[leopard]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[rewrite]]></category>
		<category><![CDATA[struggle]]></category>

		<guid isPermaLink="false">http://blog.rajatpandit.com/?p=208</guid>
		<description><![CDATA[I have been moving my development to Linux lately and had the first real struggle getting the rewrite stuff working on Apache. Problem wasn&#8217;t that I didn&#8217;t know how to...]]></description>
			<content:encoded><![CDATA[<p>I have been moving my development to Linux lately and had the first real struggle getting the rewrite stuff working on Apache. Problem wasn&#8217;t that I didn&#8217;t know how to do it, (BTW usually i would prefer to have a self compiled version of Apache as I would know what&#8217;s in it) but that the configuration files were all so different from what I am used on Leopard and BSD etc.. Anyway so here&#8217;s what I did.</p>
<pre class="brush: php; title: ; notranslate">
# sudo a2enmod rewrite
# sudo /etc/init.d/apache2 restart
</pre>
<p>To disable an Apache 2 module, you can run:</p>
<pre class="brush: php; title: ; notranslate">
# sudo a2dismod rewrite
# sudo /etc/init.d/apache2 restart
</pre>
<p>That does the reverse.</p>
<p>With mod_rewrite enabled, you can use the .htaccess file.By the way in your directory permissions, you must set AllowOverride to “all” like this:</p>
<p>[config]<br />
<Directory /home/projects/whatever><br />
  Options Indexes FollowSymLinks MultiViews<br />
  AllowOverride all<br />
  Order allow,deny<br />
  allow from all<br />
</Directory><br />
[/config]</p>
<p>HTH</p>
<div id="in_post_ad_bottom_1" style="clear:both;margin:0;padding:0;"><div class="brp-bp-234">
<script type="text/javascript"><!--
google_ad_client = "ca-pub-4254382394977039";
/* brp-234x60-bp */
google_ad_slot = "7787511801";
google_ad_width = 234;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div>
<div class="brp-bp-234">
<script type="text/javascript"><!--
google_ad_client = "ca-pub-4254382394977039";
/* brp-234x60-BP-1 */
google_ad_slot = "9111022353";
google_ad_width = 234;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div></div><div style='clear:both'></div>]]></content:encoded>
			<wfw:commentRss>http://blog.rajatpandit.com/2009/02/12/how-to-enable-mod_rewrite-on-ubuntu/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>synergy &#8211; multiple screens multiple OS</title>
		<link>http://blog.rajatpandit.com/2008/07/30/synergy-multiple-screens-multiple-os/</link>
		<comments>http://blog.rajatpandit.com/2008/07/30/synergy-multiple-screens-multiple-os/#comments</comments>
		<pubDate>Wed, 30 Jul 2008 22:04:45 +0000</pubDate>
		<dc:creator>rp</dc:creator>
				<category><![CDATA[Web Development]]></category>
		<category><![CDATA[james]]></category>
		<category><![CDATA[kulor]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[mac]]></category>
		<category><![CDATA[multiple desktops]]></category>

		<guid isPermaLink="false">http://blog.rajatpandit.com/?p=36</guid>
		<description><![CDATA[At work I have a linux based dev server and a macbook pro running leopard. I decided to have it working together has one extended screen as some of my...]]></description>
			<content:encoded><![CDATA[<p><img class="aligncenter" src="http://blog.gnist.org/images/articles/synergy_2_original.jpg" alt="Multiple Desktops &amp; Multiple OS" width="491" height="366" /></p>
<p>At work I have a linux based dev server and a macbook pro running leopard. I decided to have it working together has one extended screen as some of my colleagues are already using. Talking to <a href="http://www.carbonsilk.com/">James</a> about it, i managed to get it together. For anyone interested in setting up the same can following the following instructions.</p>
<p>So synergy has a client server like approach, I run synergy server on my laptop but you make either of your machines run a server, I dont see how it will be any different.</p>
<p>Installing on mac/linux:</p>
<p>Following the link:</p>
<p><a href="http://sourceforge.net/project/showfiles.php?group_id=59275&amp;release_id=406637">http://sourceforge.net/project/showfiles.php?group_id=59275&amp;release_id=406637</a></p>
<p>and install the softwares on the respective OS&#8217;s</p>
<p>Now come the interesting bit, setting up the linux client so that it starts the synergy client everytime i t boots up. Here&#8217;s a bit of bash commands:</p>
<pre class="brush: bash; title: ; notranslate">
/usr/bin/killall synergyc
sleep 1
/usr/bin/synergyc --restart my-fancy.host.name
</pre>
<p>and save this in the file /etc/gdm/Init/Default (I am running Redhat Enterprise Linux) so you will need to find the equivalent file in your distro, basically this should be anywheere it gets executed before your GDM process starts.</p>
<p>Back on the mac, create a shell file which contains the following code:</p>
<pre class="brush: bash; title: ; notranslate">
exec /Applications/synergy-1.3.1/synergys --restart -f -c /Applications/synergy-1.3.1/synergy.conf &amp;
</pre>
<p>and save the file anywhere in your system path, obviously you will need to update that the actual paths on your installation.</p>
<p>Now creating the conf file which defines which screen is where, here&#8217;s a copy of my conf file and its easy to understand.</p>
<pre class="brush: bash; title: ; notranslate">
section: screens
        linux-hostname:
	mac-hostname:
end

section: links
	linux-hostname:
		right = mac-hostname
	mac-hostname:
		left = linux-hostname
end
</pre>
<p>its quite a simple config file, the first part (screens) defines the names of the of hosts involved and the second section defines the screens and their relative informations, i suppose you can add more than two hosts as fitting your need.</p>
<p>Some interesting links are for further reading/tweaking are as follows:</p>
<ul>
<li><a href="https://help.ubuntu.com/community/SynergyHowto">https://help.ubuntu.com/community/SynergyHowto</a></li>
<li><a href="http://synergy2.sourceforge.net/">http://synergy2.sourceforge.net/</a></li>
<li><a href="http://blog.gnist.org/article.php?story=synergy">http://blog.gnist.org/article.php?story=synergy</a></li>
</ul>
<div id="in_post_ad_bottom_1" style="clear:both;margin:0;padding:0;"><div class="brp-bp-234">
<script type="text/javascript"><!--
google_ad_client = "ca-pub-4254382394977039";
/* brp-234x60-bp */
google_ad_slot = "7787511801";
google_ad_width = 234;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div>
<div class="brp-bp-234">
<script type="text/javascript"><!--
google_ad_client = "ca-pub-4254382394977039";
/* brp-234x60-BP-1 */
google_ad_slot = "9111022353";
google_ad_width = 234;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div></div><div style='clear:both'></div>]]></content:encoded>
			<wfw:commentRss>http://blog.rajatpandit.com/2008/07/30/synergy-multiple-screens-multiple-os/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

