<?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>A glass case of thoughts &#187; Linux</title>
	<atom:link href="http://jyotsna.philogy.com/category/tech/linux-tech/feed/" rel="self" type="application/rss+xml" />
	<link>http://jyotsna.philogy.com</link>
	<description>Brain munch illustrated</description>
	<lastBuildDate>Wed, 24 Mar 2010 05:49:00 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>What to do : When your SVN client saves a wrong password -&gt; Make it forget it</title>
		<link>http://jyotsna.philogy.com/2009/05/what-to-do-when-your-svn-client-saves-a-wrong-password/</link>
		<comments>http://jyotsna.philogy.com/2009/05/what-to-do-when-your-svn-client-saves-a-wrong-password/#comments</comments>
		<pubDate>Wed, 13 May 2009 06:30:58 +0000</pubDate>
		<dc:creator>Jyotsna</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[SVN]]></category>
		<category><![CDATA[make tortoise svn forget password]]></category>
		<category><![CDATA[putty session forget password]]></category>
		<category><![CDATA[svn client save wrong password]]></category>

		<guid isPermaLink="false">http://jyotsna.philogy.com/?p=308</guid>
		<description><![CDATA[Applies to:
Any SVN client using putty to connect to SVN server. For e.g. tortoise SVN
Who is this post for?
This post is for anyone who wants SVN client and server to forget currently configured password
Steps to follow

Know your repository URL
For this you should be using tortoise SVN repo-browser and check out the URL. In my case, [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Applies to:</strong><br />
Any SVN client using putty to connect to SVN server. For e.g. tortoise SVN</p>
<p><strong>Who is this post for?</strong><br />
This post is for anyone who wants SVN client and server to forget currently configured password</p>
<p><strong>Steps to follow</strong></p>
<ol>
<li>Know your repository URL<br />
For this you should be using tortoise SVN repo-browser and check out the URL. In my case, it looks like</p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">svn+ssh://jyotsnas@visharad/svnRepos/travel_broker</pre></div></div>

<p>This tells me following</p>
<ul>
<li>linux username being used is jyotsnas</li>
<li>the svn server is named as visharad</li>
<li>Probably all SVN repositories are located under /var/svnRepos</li>
</ul>
</li>
<li>Now that we know the servername, in this case &#8216;visharad&#8217;, open putty. Under saved sessions list, you should find your server name. Refer to following screenshot for the same<br />
<br/><br />
<div id="attachment_318" class="wp-caption alignnone" style="width: 466px"><img src="http://jyotsna.philogy.com/wp-content/uploads/2009/05/putty-visharad.jpg" alt="visharad in saved sessions of putty" title="putty-visharad" width="456" height="435" class="size-full wp-image-318" /><p class="wp-caption-text">visharad in saved sessions of putty</p></div>
</li>
<li>
Click on Load button so that we can find out more. Putty looks like following when I clicked Load<br />
<br/><br />
<div id="attachment_319" class="wp-caption alignnone" style="width: 466px"><img src="http://jyotsna.philogy.com/wp-content/uploads/2009/05/putty-visharad-loaded.jpg" alt="visharad session loaded in putty" title="putty-visharad-loaded" width="456" height="435" class="size-full wp-image-319" /><p class="wp-caption-text">visharad session loaded in putty</p></div></p>
<p>Looking at this I have more concrete information about server i.e. Host name/IP : 192.168.1.50
</li>
<li>
Let&#8217;s move to the SSH->Auth in left tree structure &#8211;<br />
<br/><br />
<div id="attachment_320" class="wp-caption alignnone" style="width: 466px"><img src="http://jyotsna.philogy.com/wp-content/uploads/2009/05/putty-visharad-ssh-auth.jpg" alt="visharad ssh auth settings in putty" title="putty-visharad-ssh-auth" width="456" height="435" class="size-full wp-image-320" /><p class="wp-caption-text">visharad ssh auth settings in putty</p></div></p>
<p>This screen tells me a path to a private key file on my machine.</p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">F:\Jyotsna\SVN sessions\visharad.ppk</pre></div></div>

<p>Delete this path from the text box.
</li>
<li>
Go back to sessions in left tree and click on <b>save</b>.</p>
<p>When you delete this path, putty is going to forget the password to be used. Since tortoise SVN uses putty in turn to connect to server, it will forget it too. And that is it.
</li>
</ol>
<p><strong>Questions you might have</strong></p>
<ol>
<li>Why should I not delete the session instead of the private key file path?<br />
<br/></p>
<p>In cases like mine, visharad name was given to a machine with IP 192.168.1.50. If I had deleted the session, I would have have to relocate all the SVN repositories already checked out on my machine so that the new URL contains 192.168.1.50 instead of visharad. Not deleting the session saves this hassel of mine and still make tortoise svn not use the remembered password.</P>
</li>
<li>How can I make tortoise SVN remember a new password?
<p>Just refer to this <a href="http://jyotsna.philogy.com/2008/12/how-to-make-svn-remember-password/">link</a> for the instructions</p>
</li>
</ol>
<p><strong>Related posts</strong></p>
<ul>
<li><a href="http://jyotsna.philogy.com/2008/12/how-to-make-svn-remember-password/">How to make SVN remember password</a></li>
<li><a href="http://jyotsna.philogy.com/2009/02/linux-how-to-replicate-svn-repository/">linux how to: replicate svn repository</a></li>
<li><a href="http://jyotsna.philogy.com/2008/12/linux-create-svn-repository/">linux: create svn repository</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://jyotsna.philogy.com/2009/05/what-to-do-when-your-svn-client-saves-a-wrong-password/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>linux: handy commands</title>
		<link>http://jyotsna.philogy.com/2009/03/linux-handy-commands/</link>
		<comments>http://jyotsna.philogy.com/2009/03/linux-handy-commands/#comments</comments>
		<pubDate>Wed, 18 Mar 2009 06:10:08 +0000</pubDate>
		<dc:creator>Jyotsna</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[copy files]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[linux handy commands]]></category>
		<category><![CDATA[open shell]]></category>
		<category><![CDATA[scp]]></category>
		<category><![CDATA[ssh]]></category>
		<category><![CDATA[utility commands]]></category>

		<guid isPermaLink="false">http://jyotsna.philogy.com/?p=274</guid>
		<description><![CDATA[
copy files from one linux server to another through shell

$ scp user@from_computer:dir/filename user@to_computer:dir/filename


open shell to another linux machine from one through shell

$ ssh user@to_computer


Prints the owner of every file or directory in the current directory. The AWK syntax is simply &#8220;print the 3rd field in every line of data&#8221;

ls -l &#124; awk '{print $3}'


To get [...]]]></description>
			<content:encoded><![CDATA[<ol>
<li>copy files from one linux server to another through shell

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">$ scp user@from_computer:dir/filename user@to_computer:dir/filename</pre></div></div>

</li>
<li>open shell to another linux machine from one through shell

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">$ ssh user@to_computer</pre></div></div>

</li>
<li>Prints the owner of every file or directory in the current directory. The AWK syntax is simply &#8220;print the 3rd field in every line of data&#8221;

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">ls -l | awk '{print $3}'</pre></div></div>

</li>
<li>To get the owner of only one file (filename):

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">ls -l | grep filename | awk '{print $3}'</pre></div></div>

</li>
<li>To compress a folder:

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">zip -r target.zip folder/</pre></div></div>

</li>
<li>User creation

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">useradd username</pre></div></div>

</li>
<li>Change user password

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">passwd username</pre></div></div>

</li>
<li>Add user to a group

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">usermod -g grpname username</pre></div></div>

</li>
<li>Import SQL script to an empty mysql database

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">mysql -u root -p database_name &lt; script_file.sql</pre></div></div>

</li>
<li>Unfreeze vi editor in terminal window when frozen because of ctrl+S action

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">press ctrl+q</pre></div></div>

</li>
<li>Reboot linux server remotely

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">sudo reboot</pre></div></div>

</li>
<li>Shut down linux server remotely

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">sudo shutdown -h now</pre></div></div>

</li>
<li>Kill a process

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">top
type k to kill a process. You will be prompted for the PID of the task, and the signal to send to it. For a normal kill, send signal 15. For a sure, but rather abrupt, kill, send signal 9. The default signal, as with kill(1), is 15, SIGTERM. This command is not available in secure mode.</pre></div></div>

</li>
<li>To close port &#8211; 80 in following example

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">fuser -k 80/tcp</pre></div></div>

</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://jyotsna.philogy.com/2009/03/linux-handy-commands/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>linux how to: replicate svn repository</title>
		<link>http://jyotsna.philogy.com/2009/02/linux-how-to-replicate-svn-repository/</link>
		<comments>http://jyotsna.philogy.com/2009/02/linux-how-to-replicate-svn-repository/#comments</comments>
		<pubDate>Sat, 28 Feb 2009 11:27:22 +0000</pubDate>
		<dc:creator>Jyotsna</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[SVN]]></category>
		<category><![CDATA[copy svn repository]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[subversion|svn replicate]]></category>
		<category><![CDATA[svn repository replicate]]></category>

		<guid isPermaLink="false">http://jyotsna.philogy.com/?p=246</guid>
		<description><![CDATA[Task at hand:
I have a repository on one of the linux server. As a part of upgradation process, we decided to move the SVN server to a newer better linux infrastructure. Task at hand is to replicate the svn repositories on new server.
Solution:

Create dump for existing repository

svnadmin dump /path/to/repo &#62; /path/to/dump/folder/myrepo.dump

This command creates a .dump [...]]]></description>
			<content:encoded><![CDATA[<p><b>Task at hand:</b></p>
<p>I have a repository on one of the linux server. As a part of upgradation process, we decided to move the SVN server to a newer better linux infrastructure. Task at hand is to replicate the svn repositories on new server.</p>
<p><b>Solution:</b></p>
<ol>
<li>Create dump for existing repository

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">svnadmin dump /path/to/repo &gt; /path/to/dump/folder/myrepo.dump</pre></div></div>

<p>This command creates a .dump file and shows the revisions being dumped as it progresses</li>
<li>Transfer the dump file to new server. This can be accomplished through SSH / FTP connection or a simple scp command as:</li>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">scp /path/to/dump/folder/myrepo.dump user@new_server:/path/to/dump/folder/myrepo.dump</pre></div></div>

<li>Log into new server and switch to the directory where you want to place your replicated svn repository. Then, create an empty svn repository

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">svnadmin create myrepo</pre></div></div>

</li>
<li>Load empty reposity with dump file

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">svnadmin load myrepo &lt; /path/to/dump/folder/myrepo.dump</pre></div></div>

</li>
<li>Define group ownership and permission

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">chown -R :all myrepo
chmod -R 770 myrepo</pre></div></div>

</li>
</ol>
<p><strong>Related posts</strong></p>
<ul>
<li><a href="http://jyotsna.philogy.com/2009/05/what-to-do-when-your-svn-client-saves-a-wrong-password/">What to do : When your SVN client saves a wrong password</a></li>
<li><a href="http://jyotsna.philogy.com/2008/12/linux-create-svn-repository/">linux: create svn repository</a></li>
<li><a href="http://jyotsna.philogy.com/2008/12/how-to-make-svn-remember-password/">How to make SVN remember password</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://jyotsna.philogy.com/2009/02/linux-how-to-replicate-svn-repository/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>IIS SSL and linux openSSL</title>
		<link>http://jyotsna.philogy.com/2009/01/iis-ssl-and-openssl/</link>
		<comments>http://jyotsna.philogy.com/2009/01/iis-ssl-and-openssl/#comments</comments>
		<pubDate>Mon, 19 Jan 2009 12:02:36 +0000</pubDate>
		<dc:creator>Jyotsna</dc:creator>
				<category><![CDATA[IIS]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[.NET web service]]></category>
		<category><![CDATA[asmx over https]]></category>
		<category><![CDATA[https]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[openSSL]]></category>
		<category><![CDATA[secure communication]]></category>
		<category><![CDATA[security certificate]]></category>
		<category><![CDATA[Self-Signed IIS SSL Certificates using OpenSSL]]></category>
		<category><![CDATA[SSL]]></category>
		<category><![CDATA[using openssl certificateself in iis]]></category>

		<guid isPermaLink="false">http://jyotsna.philogy.com/?p=183</guid>
		<description><![CDATA[I have a .NET web service that I want to be accessed over https rather than http. Problem is HOW !!
Solution:

Activate SSL on web server (IIS)

Follow steps 1 through 4 of this very useful blog by Eric Longman



Specify the file for which SSL is required

Through inetmgr, browse to the file (in my case the .asmx [...]]]></description>
			<content:encoded><![CDATA[<p>I have a .NET web service that I want to be accessed over https rather than http. Problem is HOW !!</p>
<p>Solution:</p>
<ol>
<li>Activate SSL on web server (IIS)
<ul>
<li>Follow steps 1 through 4 of this very useful blog <a href="http://eal.us/blog/_archives/2003/6/2/25109.html">by Eric Longman</a>
</li>
</ul>
</li>
<li>Specify the file for which SSL is required
<ul>
<li>Through inetmgr, browse to the file (in my case the .asmx file). Right click -> Properties -> File Security -> Secure Communications -> Edit</li>
<li>Check Require SSL Channel (SSL)</li>
<p><br/><br />
<img src="http://jyotsna.philogy.com/wp-content/uploads/2009/01/requiressl-300x282.jpg" alt="RequireSSL" title="requiressl" width="300" height="282" class="size-medium wp-image-192" />
</ul>
</li>
</ol>
<p>And you should be done. </p>
<p><b>Related useful article:</b><br />
<a href="http://weblogs.asp.net/jan/archive/2003/12/04/41154.aspx">CONSUMING WEBSERVICES OVER HTTPS (SSL)</a></p>
]]></content:encoded>
			<wfw:commentRss>http://jyotsna.philogy.com/2009/01/iis-ssl-and-openssl/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>linux: create svn repository</title>
		<link>http://jyotsna.philogy.com/2008/12/linux-create-svn-repository/</link>
		<comments>http://jyotsna.philogy.com/2008/12/linux-create-svn-repository/#comments</comments>
		<pubDate>Fri, 26 Dec 2008 06:38:57 +0000</pubDate>
		<dc:creator>Jyotsna</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[SVN]]></category>
		<category><![CDATA[create and checkout svn repository on linux]]></category>
		<category><![CDATA[create svn on linux]]></category>
		<category><![CDATA[create svn repo + chmod]]></category>
		<category><![CDATA[create svn repository linux]]></category>
		<category><![CDATA[create svn server]]></category>
		<category><![CDATA[creating repository using svn on linux]]></category>
		<category><![CDATA[linux commands to create a new repository]]></category>
		<category><![CDATA[svn create repo command line]]></category>
		<category><![CDATA[svn repo]]></category>
		<category><![CDATA[svn repository creation]]></category>
		<category><![CDATA[svnadmin]]></category>

		<guid isPermaLink="false">http://jyotsna.philogy.com/?p=128</guid>
		<description><![CDATA[Assumptions:
You already have SVN installed on your linux server. If you do not know if it is installed, just type command

which svn

If this returns a valid path as output, then it means that svn is installed on your linux box. If not, you need to install it. Installing subversion is very easy (for most distributions) [...]]]></description>
			<content:encoded><![CDATA[<p><b>Assumptions:</b><br />
You already have SVN installed on your linux server. If you do not know if it is installed, just type command</p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">which svn</pre></div></div>

<p>If this returns a valid path as output, then it means that svn is installed on your linux box. If not, you need to install it. Installing subversion is very easy (for most distributions) and ample documentation is available on the web. You can start with <a href="http://subversion.tigris.org">http://subversion.apache.org/</a>.</p>
<p><b>Four steps to complete svn repository creation on linux</b></p>
<ol>
<li>log onto server as root</li>
<li>I prefer to have all svn repositories in one directory for better organization and easy maintenance. So next step for me would be to change to my svn directory.

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">cd /svnRepos</pre></div></div>

<p>If you do not already have a directory for svn repositories, I would recommend creating one.</p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">mkdir svnRepos</pre></div></div>

</li>
<li>Create repository using following command</li>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">svnadmin create /path/to/repo/RepoName</pre></div></div>

<p>where : RepoName is the name of repository to be created. As an example, I want to create a repository for my testproject. I would write</p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">svnadmin create testproject</pre></div></div>

<li>Change group ownership of repository for the intended group. In this case, consider I have a user group created as &#8220;all&#8221; and I want this group to have ownership to this repository.

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">chown -R :all /path/to/repo/RepoName</pre></div></div>

</li>
<li>Grant Read/Write/Execute permissions to &#8220;all&#8221; on this repository

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">chmod -R 770 /path/to/repo/RepoName</pre></div></div>

</li>
</ol>
<p>After this, all you need to do is</p>
<ul>
<li>Install a client like tortoiseSVN on the user&#8217;s machine</li>
<li>SVN Checkout the repository. I would use a URL like following to connect to my newly created repository

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">svn+ssh://username@servername/path/to/repo/RepoName</pre></div></div>

<p>Where</p>
<ul>
<li>username: one of the users from group all</li>
<li>servername: my linux server which hosts SVN</li>
</ul>
<p>For my testproject, the path looks like</p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">svn+ssh://jyotsnas@servername/svnRepos/testproject</pre></div></div>

</li>
</ul>
<p><strong>Related posts</strong></p>
<ul>
<li><a href="http://jyotsna.philogy.com/2009/05/what-to-do-when-your-svn-client-saves-a-wrong-password/">What to do : When your SVN client saves a wrong password</a></li>
<li><a href="http://jyotsna.philogy.com/2009/02/linux-how-to-replicate-svn-repository/">linux how to: replicate svn repository</a></li>
<li><a href="http://jyotsna.philogy.com/2008/12/how-to-make-svn-remember-password/">How to make SVN remember password</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://jyotsna.philogy.com/2008/12/linux-create-svn-repository/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
	</channel>
</rss>
