<?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>Samet Kilictas's Blog &#187; Linux</title>
	<atom:link href="http://samet.kilictas.com/tag/linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://samet.kilictas.com</link>
	<description>Personal E-Notebook</description>
	<lastBuildDate>Fri, 30 Apr 2010 07:29:03 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Bash Shell Scripting Tutorial</title>
		<link>http://samet.kilictas.com/bash-shell-scripting-tutorial/</link>
		<comments>http://samet.kilictas.com/bash-shell-scripting-tutorial/#comments</comments>
		<pubDate>Fri, 30 Apr 2010 07:19:24 +0000</pubDate>
		<dc:creator>Samet Kilictas</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[HowTo]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[scripting]]></category>
		<category><![CDATA[Shell]]></category>

		<guid isPermaLink="false">http://samet.kilictas.com/?p=420</guid>
		<description><![CDATA[Basics This tutorial assumes that you already know how to log in to your UNIX machine, bring up the bash shell, and run basic commands such as ls and cat. Getting to this point is fairly easy, but unfortunately this is the level that most users stay at indefinitely. This tutorial is intended to help [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Basics</strong><br />
This tutorial assumes that you already know how to log in to your UNIX machine, bring up the bash shell, and run basic commands such as ls and cat. Getting to this point is fairly easy, but unfortunately this is the level that most users stay at indefinitely. This tutorial is intended to help you start to learn the more advanced features of using a shell, and specifically bash, one of the most powerful shells available.</p>
<p>Please note that most of the command themselves are not explained; you can examine their functionality yourself by either reading their man page, or just experimenting with them to see what they do.</p>
<p><strong>Redirection</strong><br />
Normally programs take input from our keyboard, and display the output to our screens. However, these are just the defaults &#8211; UNIX has the ability to redirect the input (commonly referred to as stdin, short for standard input) and output (commonly referred to as stdout, short for standard output).</p>
<p>Here is a simple example: the cat command displays the contents of a file to the screen. But we can redirect those contents to a file using the redirection operator &#8216;&gt;&#8217;, like so:</p>
<pre class="brush: bash">
$ cat myfile.txt
This is the contents of the file myfile.txt
$ cat myfile.txt &gt; newfile.txt
$ cat newfile.txt
This is the contents of the file myfile.txt
$
</pre>
<p>In effect, we&#8217;ve made cat do the same thing as cp, by redirecting the output from the screen to a file. This isn&#8217;t terribly useful, but consider another, similar, scenario: cat can take multiple arguments, and it will display the files one after the other. This can be used to append one file onto another and create a new, combined file.</p>
<pre class="brush: bash">
$ cat file1.txt
The quick brown fox...
$ cat file2.txt
...jumped over the lazy dog.
$ cat file1.txt file2.txt &gt; combined.txt
$ cat combined.txt
The quick brown fox...
...jumped over the lazy dog.
</pre>
<p>Neat, eh?</p>
<p>We can also redirect the input, so that a program takes the contents of a file as if it were typed at your keyboard. cat doesn&#8217;t take any input, so let&#8217;s use bc, a command line calculator. Normally, you run the program, and it lets you type in calculations such as &#8220;2+2&#8243;, and then displays the result. But if you have a file which already contains the calculations, you can send it straight to bc &#8211; faster and more powerful than cutting-and-pasting the text in with your mouse.</p>
<pre class="brush: bash">
$ cat calc.txt
2+2
$ bc &lt; calc.txt 4 $ </pre>
<p> A final note: you can use two output redirect symbols together &#8211; &gt;&gt; &#8211; to indicate that you want to append the file, not overwrite it. Hence:</p>
<pre class="brush: bash">
$ cat file1.txt
Contents of file1.
$ cat file2.txt
Contents of file2.txt.
$ cat file2.txt &gt;&gt; file1.txt
$ cat file1.txt
Contents of file1.
Contents of file2.txt.
$
</pre>
<p><span id="more-420"></span></p>
<p><strong>Pipes</strong><br />
Pipes are similar to redirection, but they are even more powerful, because they allow you to send input and output back and forth between programs. For example, let&#8217;s say that you want to send the calculation &#8220;2+2&#8243; to bc in a single command, without creating a file for redirection, or firing up bc and then entering the calculation. You can use the command echo, which normally sends output to the screen:</p>
<pre class="brush: bash">
$ echo 2+2
2+2
$
</pre>
<p>But instead we can send it through a pipe using the pipe character &#8216;|&#8217;, which you create by typing shift-backslash on your keyboard.</p>
<pre class="brush: bash">
$ echo 2+2 | bc
4
$
</pre>
<p>One thing that may throw you off about this example is that it seems intuitively out of order; bc is the &#8220;important&#8221; program being run, and normally we would expect that to come first. But it doesn&#8217;t, and for good reason: the pipeline works by sending the output of each successive program to the one immediately to its right. In this case, echo has to run first, because it generates the text &#8220;2+2&#8243; and stuffs it into the pipe. bc then receives the &#8220;2+2&#8243; text, and does its thing, which is process the calculation.</p>
<p>Possibly one of the most immediately useful features of the UNIX command line is the ability to fire off an email instantaneously using the mail command.</p>
<pre class="brush: bash">
$ echo &quot;Hey, I sent this mail from the bash command line!&quot; | mail -s &quot;bash rocks&quot; user@host.com
</pre>
<p><strong>Combinations</strong><br />
The true power of UNIX shells, and especially bash, is reflected in your ability to mix and match redirection, pipes, and other operators almost limitlessly. Here&#8217;s a combination example: we send 2+2 through the pipe, which bc calculates, and then sends the output to a file.</p>
<pre class="brush: bash">
$ echo 2+2 | bc &gt; result.txt
$ cat result.txt
4
$
</pre>
<p><strong>Variables</strong><br />
Variables are values that you give a name. They are significant because you can call them by that name throughout your bash &#8220;code&#8221;, but it can contain different values at different times. A simpler way to think about them is that they are simply storage containers, for keeping data around that you will later use within bash.</p>
<p>Here is an example of assigning a value, and then displaying its contents:</p>
<pre class="brush: bash">
$ MYVAR=3
$ echo $MYVAR
3
$
</pre>
<p>When the variable is first assigned (and created), the $ symbol is not used. From that point forward, however, it must be prefixed with the $ symbol or it will not be properly recognized by bash.</p>
<p>Variables can contain text, numbers, lists &#8211; just about anything that you can think of. There is no &#8220;type casting&#8221; as in structured programming languages, so you need not keep track of what sort of data is stored where.</p>
<p>It&#8217;s possible to do basic math with variables, like so:</p>
<pre class="brush: bash">
$ A=2
$ B=3
$ C=$((A+B))
$ echo $C
5
</pre>
<p>A simple use for variables is to save some data temporarily that you&#8217;re going to use in a later command, possibly several commands. In this example, we&#8217;ll get a list of files, print each one, append them to a master file, and then delete them.</p>
<pre class="brush: bash">
$ FILES=*.txt
$ lpr $FILES
$ cat $FILES &gt;&gt; master.txt
$ rm $FILES
</pre>
<p>So far variables might not seem terribly useful. In fact, their power doesn&#8217;t become obvious until we start using constructs such as loops.</p>
<p><strong>Loops</strong><br />
Computers are excellent at repetitious tasks. Yet all too often, because of limited user interfaces (especially the GUI interfaces that are the most popular), computer users find themselves doing mindless tasks, such as renaming a long list of files. This is a task that is ideal for an iterative loop. It is &#8220;iterative&#8221; because we step through each item in a list, doing a similar operation on each one. The two main types of loops are for loops and while loops, but let&#8217;s focus on for loops as they are generally more useful at the command line.</p>
<p>The format of the for loop command is as follows:</p>
<p>for counter in list; do command; done</p>
<p>Everything in italics are items you need to replace with your own values. Counter is the name of the variable you want to use to count with; it can be any single word. List is a list of items, one after the other, that you wish to step through, one by one. And command is what you actually want to do to each one. Since an example is worth a thousand words, take a look:</p>
<pre class="brush: bash">
$ for i in 1 2 3; do echo Loop iteration: $i; done
Loop iteration: 1
Loop iteration: 2
Loop iteration: 3
$
</pre>
<p>The counter variable is called &#8220;i&#8221;, and you may note that when referring to it in places other than right after the for we place a $ character in front of its name, so it becomes $i.</p>
<p>The list is 1, 2, and 3. List items should be separated by spaces.</p>
<p>The command is &#8220;echo Loop iteration: $i&#8221;. This command gets run for each member of the list; and the counter variable ($i) gets replaced with the current list member we are executing on each time we step through it. Thus, the first time it prints &#8220;Loop iteration: 1&#8243; because the value of $i is 1.</p>
<p>One neat trick we can use is to use wildcard characters (* and ?) in order to loop through files in the current directory. As a simple example, we could simply print each filename, duplicating the effect of the command ls:</p>
<pre class="brush: bash">
$ ls
file1.txt file2.txt
$ for i in *; do echo $i; done
file1.txt
file2.txt
$
</pre>
<p>That&#8217;s not so useful, but let&#8217;s say that we want to rename each file to start with the word &#8220;my&#8221;.</p>
<pre class="brush: bash">
$ ls
file1.txt file2.txt
$ for i in *; do mv $i my-$i; done
$ ls
myfile1.txt myfile2.txt
$
</pre>
<p><strong>Backticks</strong><br />
The magical backticks (the character `) are one of the best kept secrets of shell scripting, but at the same time one of the most useful. They allow you to run a secondary command inside of a new shell, and the output from that command will be placed onto the command line on the spot! As usual, and example shows best.</p>
<pre class="brush: bash">
$ cat masterfile.txt
file1.txt
file2.txt
file3.txt
$ cat `grep -l 2 masterfile.txt`
This is the contents of file 2.
$
</pre>
<p>In this example, the result of the command &#8220;grep -l 2 masterfile.txt&#8221; is going to be &#8220;file2.txt&#8221;. Normally that would just be displayed to the screen, and at that point you could manually type &#8220;cat file2.txt&#8221; to see its contents. But you can do it in a single command with backticks; the output of the grep command (&#8220;file2.txt&#8221;) is substituted on the command line, producing the command &#8220;cat file2.txt&#8221; for you!</p>
<p><strong>Bringing It All Together</strong><br />
At this point, you need to explore these tools yourself in order to get a better understanding of their great flexibility. Provided below are a number of examples to aid in your exploration of these topics.</p>
<p>Converting a list of filenames into lower case</p>
<pre class="brush: bash">
$ for i in *; do mv $i `echo $i | tr A-Z a-z`; done
</pre>
<p>Printing out only files which contain the text &#8220;PrintMe&#8221;</p>
<pre class="brush: bash">
$ lpr `grep -l PrintMe *`
</pre>
<p>Determining the difference in length (number of lines) between two files</p>
<pre class="brush: bash">
$ echo `cat file1.txt | wc -l` - `cat file2.txt | wc -l` | bc
</pre>
<p>Sending mail to a list of email addresses in a file</p>
<pre class="brush: bash">
$ for addr in `cat email-addresses.txt`; do cat message.txt | mail -s &quot;Hi there!&quot; $addr; done
</pre>
<p>Archiving all logfiles to a file named after the current date</p>
<pre class="brush: bash">
$ tar czvf logs-`date +%m%d%y`.tar.gz *.log
</pre>
<p><strong><em>Queued from</em></strong> : <a title="Here" href="http://www.tlc-networks.polito.it/giaccone/corsi/laboratorio/Scripting/Bash/bash.html">Here</a></p>
]]></content:encoded>
			<wfw:commentRss>http://samet.kilictas.com/bash-shell-scripting-tutorial/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>IBM RAD 7.5 on Ubuntu Karmic 32 Bit</title>
		<link>http://samet.kilictas.com/ibm-rad-7-5-on-ubuntu-karmic-32-bit/</link>
		<comments>http://samet.kilictas.com/ibm-rad-7-5-on-ubuntu-karmic-32-bit/#comments</comments>
		<pubDate>Tue, 08 Dec 2009 17:08:32 +0000</pubDate>
		<dc:creator>Samet Kilictas</dc:creator>
				<category><![CDATA[HowTo]]></category>
		<category><![CDATA[IBM]]></category>
		<category><![CDATA[Karmic]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[RAD]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[Websphere]]></category>

		<guid isPermaLink="false">http://samet.kilictas.com/?p=396</guid>
		<description><![CDATA[Lets assume you were using ubuntu 9.04 jaunty and now you have upgraded your distribution to 9.10 karmic. Before i get into 9.10 version i had my RAD 7.5 installed and running. Then decided to upgrade my distro. I&#8217;ve read an article and futures of karmic distro, that says plenty of packages getting updated. After getting done [...]]]></description>
			<content:encoded><![CDATA[<p><img class="size-full wp-image-399 alignleft" title="IBM Rational Application Developer" src="http://samet.kilictas.com/wp-content/uploads/2009/12/rtl-mark-title-235x50.gif" alt="IBM Rational Application Developer" width="235" height="50" /><br />
Lets assume you were using ubuntu 9.04 jaunty and now you have upgraded your distribution to 9.10 karmic. Before i get into 9.10 version i had my RAD 7.5 installed and running. Then decided to upgrade my distro. I&#8217;ve read an article and futures of karmic distro, that says plenty of packages getting updated. After getting done with upgrade process i tried to run my RAD 7.5 , it was ok for the first time but there were plenty of errors on screen.</p>
<p>First of all when you upgrade your distro, the gcc++ package gets upgareded so libstdc++.so.5 file to libstdc++.so.6 .Unfortunately RAD 7.5 version looks for libstdc++.5.so file on your system. You have to download this file. Download it by using link below;</p>
<p><a title="http://packages.debian.org/stable/base/libstdc++5" href="http://packages.debian.org/stable/base/libstdc++5">http://packages.debian.org/stable/base/libstdc++5</a></p>
<p>Then install this deb package (If you are running on another linux distro you have to place it just next to where your libstdc++.6.so file, you can use &#8220;locate libstdc++.so.6&#8243; command to see where your file is). Then copy below bash script and paste it any of your text editor, save it as &#8220;run.sh&#8221;. From now on, you can use this script to run your RAD 7.5.</p>
<pre class="brush: bash">
#!/bin/bash
export GTK_NATIVE_WINDOWS=1
/where/your/RADis &amp;
</pre>
<p>After this process your problem should be gone. Have fun.</p>
]]></content:encoded>
			<wfw:commentRss>http://samet.kilictas.com/ibm-rad-7-5-on-ubuntu-karmic-32-bit/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to enable TCP connections to XServer?</title>
		<link>http://samet.kilictas.com/how-to-enable-tcp-connections-to-xserver/</link>
		<comments>http://samet.kilictas.com/how-to-enable-tcp-connections-to-xserver/#comments</comments>
		<pubDate>Mon, 07 Dec 2009 13:01:01 +0000</pubDate>
		<dc:creator>Samet Kilictas</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[Xserver]]></category>

		<guid isPermaLink="false">http://samet.kilictas.com/?p=393</guid>
		<description><![CDATA[sudo gedit /etc/gdm/gdm.schemas find: &#60;schema&#62; &#60;key&#62;security/DisallowTCP&#60;/key&#62; &#60;signature&#62;b&#60;/signature&#62; &#60;default&#62;true&#60;/default&#62; &#60;/schema&#62; shift from true to false: &#60;schema&#62; &#60;key&#62;security/DisallowTCP&#60;/key&#62; &#60;signature&#62;b&#60;/signature&#62; &#60;default&#62;false&#60;/default&#62; &#60;/schema&#62;]]></description>
			<content:encoded><![CDATA[<hr style="color: #ffffff; background-color: #ffffff;" size="1" /><!-- / icon and title --> <!-- message --></p>
<div id="post_message_8227965"></div>
<div>sudo gedit /etc/gdm/gdm.schemas</div>
<div id="post_message_8227965">
<p>find:</p>
<p>&lt;schema&gt;<br />
&lt;key&gt;security/DisallowTCP&lt;/key&gt;<br />
&lt;signature&gt;b&lt;/signature&gt;<br />
&lt;default&gt;true&lt;/default&gt;<br />
&lt;/schema&gt;</p>
<p>shift from true to false:</p>
<p>&lt;schema&gt;<br />
&lt;key&gt;security/DisallowTCP&lt;/key&gt;<br />
&lt;signature&gt;b&lt;/signature&gt;<br />
&lt;default&gt;false&lt;/default&gt;<br />
&lt;/schema&gt;</p></div>
]]></content:encoded>
			<wfw:commentRss>http://samet.kilictas.com/how-to-enable-tcp-connections-to-xserver/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Linux desktop will wipe out Windows 7</title>
		<link>http://samet.kilictas.com/linux-desktop-will-wipe-out-windows-7/</link>
		<comments>http://samet.kilictas.com/linux-desktop-will-wipe-out-windows-7/#comments</comments>
		<pubDate>Thu, 15 Oct 2009 14:58:53 +0000</pubDate>
		<dc:creator>Samet Kilictas</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[win7]]></category>
		<category><![CDATA[windows7]]></category>

		<guid isPermaLink="false">http://samet.kilictas.com/?p=372</guid>
		<description><![CDATA[This month naked marketing muscle once again shows us how it should be done. In the World, Microsoft made it to number one as the most respected and trusted brand, ahead even of Mercedes-Benz. The people have spoken. Quite an achievement considering Vista bombed and no amount of PR power could persuade the non-OEM consumer [...]]]></description>
			<content:encoded><![CDATA[<p>This month naked marketing muscle once again shows us how it should be done. In the World, Microsoft made it to number one as the most respected and trusted brand, ahead even of Mercedes-Benz. The people have spoken.</p>
<p>Quite an achievement considering Vista bombed and no amount of PR power could persuade the non-OEM consumer otherwise. Now, obviously before it was too late and the Windows brand itself was damaged, Windows 7 has been released. Word is that it is OK, better even than XP.</p>
<p>Thus, the hiatus that may have been the golden Window of Vista opportunity for Linux on the desktop will soon be gone. The power of the &#8216;brand&#8217; coupled with a product that actually works is hard to stop. If you think that Microsoft has done a number on the Linux netbook using venerable XP and a fat cheque book then just wait for Windows 7 to get into full swing.</p>
]]></content:encoded>
			<wfw:commentRss>http://samet.kilictas.com/linux-desktop-will-wipe-out-windows-7/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Free Shell Accounts</title>
		<link>http://samet.kilictas.com/free-shell-accounts/</link>
		<comments>http://samet.kilictas.com/free-shell-accounts/#comments</comments>
		<pubDate>Fri, 21 Aug 2009 06:10:43 +0000</pubDate>
		<dc:creator>Samet Kilictas</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[account]]></category>
		<category><![CDATA[free]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Shell]]></category>
		<category><![CDATA[ssh]]></category>
		<category><![CDATA[tunnel]]></category>

		<guid isPermaLink="false">http://samet.kilictas.com/?p=360</guid>
		<description><![CDATA[Here is a tiny list of free shell account services. I should remember them when i need it. http://www.bylur.net/free/ http://www.red-pill.eu/freeunix.shtml * http://www.rootshell.be/]]></description>
			<content:encoded><![CDATA[<p>Here is a tiny list of free shell account services. I should remember them when i need it.</p>
<ul>
<li>http://www.bylur.net/free/</li>
<li>http://www.red-pill.eu/freeunix.shtml *</li>
<li>http://www.rootshell.be/</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://samet.kilictas.com/free-shell-accounts/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Save Penguins!</title>
		<link>http://samet.kilictas.com/save-penguins/</link>
		<comments>http://samet.kilictas.com/save-penguins/#comments</comments>
		<pubDate>Thu, 07 May 2009 19:19:32 +0000</pubDate>
		<dc:creator>Samet Kilictas</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://samet.kilictas.com/?p=297</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[<p style="text-align: center;"><a href="http://samet.kilictas.com/wp-content/uploads/2009/05/4143_96515232501_550627501_2538644_6549685_n.jpg"><img class="size-full wp-image-298 aligncenter" title="4143_96515232501_550627501_2538644_6549685_n" src="http://samet.kilictas.com/wp-content/uploads/2009/05/4143_96515232501_550627501_2538644_6549685_n.jpg" alt="" width="500" height="312" /></a></p>
<p style="text-align: center;">
]]></content:encoded>
			<wfw:commentRss>http://samet.kilictas.com/save-penguins/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Subversion (SVN) Server Nasıl Kurulur (Turkish)</title>
		<link>http://samet.kilictas.com/subversion-svn-server-nasil-kurulur/</link>
		<comments>http://samet.kilictas.com/subversion-svn-server-nasil-kurulur/#comments</comments>
		<pubDate>Fri, 19 Dec 2008 01:18:35 +0000</pubDate>
		<dc:creator>Samet Kilictas</dc:creator>
				<category><![CDATA[HowTo]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[apache2]]></category>
		<category><![CDATA[CMS]]></category>
		<category><![CDATA[SourceSafe]]></category>
		<category><![CDATA[SubVersion]]></category>
		<category><![CDATA[SVN]]></category>
		<category><![CDATA[Team Foundation Server]]></category>

		<guid isPermaLink="false">http://samet.kilictas.com/?p=160</guid>
		<description><![CDATA[Merhaba arkadaşlar subversion hakkında türkçe yazılmış çok fazla kaynak olmamasından dolayı bu yazımı türkçe yazdığımı belirtmek istiyorum. Halen ingilizce dilinin artık global bir dil olduğunun bazı kişiler tarafından kabul edilmeyişide ayrı bir tartışma konusu bence. Neyse hemen anlatmaya başlıyorum. Aslında kişisel olarak bir projeyi tek başıma yapıyorsam bunda daha başarılı olabildiğimi düşünüyordum ancak bazı nedenlerden [...]]]></description>
			<content:encoded><![CDATA[<p>Merhaba arkadaşlar subversion hakkında türkçe yazılmış çok fazla kaynak olmamasından dolayı bu yazımı türkçe yazdığımı belirtmek istiyorum. Halen ingilizce dilinin artık global bir dil olduğunun bazı kişiler tarafından kabul edilmeyişide ayrı bir tartışma konusu bence.</p>
<p>Neyse hemen anlatmaya başlıyorum. Aslında kişisel olarak bir projeyi tek başıma yapıyorsam bunda daha başarılı olabildiğimi düşünüyordum ancak bazı nedenlerden dolayı anladım ki atasözümüz olan &#8220;Bir elin nesi var iki elin sesi&#8221; var sözü gerçekten yerinde ve mantıklı söylenmiş bir söz. <img src='http://samet.kilictas.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  . Geçenlerde üniversitede grup çalışması yaptıgım samimi arkadaşlar ile bir projeye başlama kararı aldık ve ortak bir çalışma ortamı oluşturmam gerekiyordu. Ortak çalışma ortamı çok şekilde yaratılabilir aslında;</p>
<ul>
<li>Subversion</li>
<li>CVS</li>
<li>SourceSafe</li>
<li>Team Foundation Server</li>
<li>Birkaç duyulmamış sistem daha</li>
</ul>
<p>Bu sistemler arasında en mantıklı ve uygulanabilirliği açısından rahat olan sistemin subversion olduğunu düşünüyorum. Linux altında çalışmışlığınız var ise bir Subversion (SVN) server kurmak yanlızca 30 saniyenizi alacaktır. Subversion sistemini windows işletim sistemilerinde de kurabiliyoruz ancak tabiki biz linuxumuza kurup rahat ve hızlı çalışmanın tadına varacağız <img src='http://samet.kilictas.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><span id="more-160"></span></p>
<p>Ben extra bir server bulamadığımdan dolayı kendi bilgisayarıma Vmware kurup onun üzerindeki sanal makine yardımıyla subversion yayımı yapmaya başladım. Sizinde benim gibi bu aralar imkanlarınız biraz kısıtlı ise vmware tek çözüm gibi görünüyor. Kuruluma geçmeden önce ubuntu distromuzu bilgisayarımıza kuralım bu kısım tamamiyle size ait. (Vmware kullanacaksanız ubuntu server edition tavsiyemdir.)</p>
<p>Şimdi sisteminize yeni bir ubuntu kurulumu var ve üzerinde apache2 sunucusu sorunsuz olarak çalışıyor kabul edelim.  Bu aşamadan sonra yapmamız gereken sadece apache2 server a gerekli eklentileri yapıp subversion serveri kullanılabilir hale getirmek.</p>
<p>Subversion server için subversion ve libapache2-svn paketlerini kurmamız gerekli, bunu için</p>
<pre class="brush: php">sudo apt-get install subversion libapache2-svn</pre>
<p>komutunu kullanarak bu paketleri serverımıza kuruyoruz. Artık SVN modüllerini apache2 serverımızda port 80 ile kullanılabilir hale getirdik. Paketleri yüklediğimizde modüller otomatik olarak aktif hale gelmiş olması ancak biz yinede bi kontrol edelim. Bunun için</p>
<pre class="brush: php">sudo a2enmod dav_svn</pre>
<p>komutunu kullanıyoruz ve kullanım sonrasında bize &#8220;already enabled&#8221; gibi bir uyarı gelmesi gerekiyor şu an tam olarak hatırlamıyorum. Şimdide apache2 de bir kaç ayarlama yapmamız gerekiyor.</p>
<pre class="brush: php">sudo nano /etc/apache2/mods-enabled/dav_svn.conf</pre>
<p>açılan dosyarı konsolda şu şekilde değiştirmemiz gerekiyor. (Genelde satır önlerindeki # işaretini kaldırarak kolaylıkla yapabilirsiniz)</p>
<pre class="brush: php">
&amp;lt; Location /svn &amp;gt;
DAV svn
SVNPath /home/svn

AuthType Basic
AuthName &quot;Subversion Repository - veya repository adı&quot;
AuthUserFile /etc/apache2/dav_svn.passwd
Require valid-user
&amp;lt; / Location &amp;gt;
</pre>
<p>buradaki /home/svn dizinini kendi repository dizininize göre değiştirebilirsiniz. Aynı kalmasında bir sakınca yok aslında. dizinimizin /home/svn olduğunu varsayarak devam ediyorum.</p>
<pre class="brush: php">sudo mkdir /home/svn
sudo svnadmin create /home/svn</pre>
<p>şimdide apache2 yi bu repository için owner yapmamız gerekiyor.</p>
<pre class="brush: php">sudo chown -R www-data /home/svn</pre>
<p>repository&#8217; e erişimimizi biraz güvenli hale getirebilmek için bir şifre belirleyelim.</p>
<pre class="brush: php">sudo htpasswd -cm /etc/apache2/dav_svn.passwd kullanı_adınız</pre>
<p>daha sonra sistem sizden şifrenizi belirlemenizi isteyecektir. Bu aşamadan sonra yapmamız gereken tek şey apache serverimizi yeniden başlatmak.</p>
<pre class="brush: php">sudo /etc/init.d/apache2 restart</pre>
<p>bu aşamaya kadar kazasız belasız geldiyseniz artık sizin <span style="text-decoration: underline;"><strong>http://sun.ucu.nuz/svn</strong></span> altında bir subversion serverınız var. Tebrikler <img src='http://samet.kilictas.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>İyi Çalışmalar&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://samet.kilictas.com/subversion-svn-server-nasil-kurulur/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Unix Toolbox</title>
		<link>http://samet.kilictas.com/unix-toolbox/</link>
		<comments>http://samet.kilictas.com/unix-toolbox/#comments</comments>
		<pubDate>Sun, 18 May 2008 22:28:40 +0000</pubDate>
		<dc:creator>Samet Kilictas</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[openBSD]]></category>
		<category><![CDATA[Shell]]></category>
		<category><![CDATA[Unix]]></category>

		<guid isPermaLink="false">http://samet.kilictas.com/?p=24</guid>
		<description><![CDATA[Bloguma daha yeni yazı ekledim ama az önce gezerken buldum bu dökümanı çok güzel.. okuyorum şu an dayanamadım bitirene kadar hemen burdanda duyurmak istedim. This document is a collection of Unix/Linux/BSD commands and tasks which are useful for IT work or for advanced users. This is a practical guide with concise explanations, however the reader [...]]]></description>
			<content:encoded><![CDATA[<p>Bloguma daha yeni yazı ekledim ama az önce gezerken buldum bu dökümanı çok güzel.. okuyorum şu an dayanamadım bitirene kadar hemen burdanda duyurmak istedim.</p>
<blockquote><p>This document is a collection of Unix/Linux/BSD commands and tasks which are useful for IT work or for advanced users. This is a practical guide with concise explanations, however the reader is supposed to know what s/he is doing.</p></blockquote>
<p>Buyrun burdan inceleyebilirsiniz. <a href="http://samet.kilictas.com/unixtoolbox.xhtml" target="_blank"> UnixToolbox</a></p>
<p> <img src='http://samet.kilictas.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://samet.kilictas.com/unix-toolbox/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>About PARDUS Project</title>
		<link>http://samet.kilictas.com/about-pardus-project-2007-tubitak/</link>
		<comments>http://samet.kilictas.com/about-pardus-project-2007-tubitak/#comments</comments>
		<pubDate>Wed, 16 Apr 2008 22:28:05 +0000</pubDate>
		<dc:creator>Samet Kilictas</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Pardus]]></category>
		<category><![CDATA[Research]]></category>
		<category><![CDATA[CentOS]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[Gentoo]]></category>
		<category><![CDATA[Knoppix]]></category>
		<category><![CDATA[Linspire]]></category>
		<category><![CDATA[openSUSE]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://samet.kilictas.com/?p=11</guid>
		<description><![CDATA[Hello People, Do you know about PARDUS? .. Yes in this post i am going to mention to you about PARDUS project. I assume that you know some about linux operating system. Unfortunately im not going to tell you about the history of linux. But first of all i want you to know the basics [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.ozgurlukicin.com" target="_blank"><img title="Pardus... Özgürlük İçin..." src="http://www.pardus.org.tr/banner/btm02.png" border="0" alt="Pardus... Özgürlük İçin..." /></a></p>
<p>Hello People,</p>
<p>Do you know about PARDUS? ..  Yes in this post i am going to mention to you about PARDUS project. I assume that you know some about <a title="linux operating system" href="http://en.wikipedia.org/wiki/Linux" target="_blank">linux operating system</a>. Unfortunately im not going to tell you about the history of linux.</p>
<p>But first of all i want you to know the basics before i start. Common known <a href="http://en.wikipedia.org/wiki/Linux_distribution" target="_blank">distros</a> of linux are Fedora, Slackware, Ubuntu[i was using this], CentOS, Debian, Gentoo, Knoppix, Linspire, openSUSE, PCLinuxOS etc. As you see we got many of them. I see you got a question. -&gt; &#8220;Woow This is too much.. &#8221;  You are definitely right it is too much and it is not the other side of it. But you should know that each disribution has it&#8217;s own properties. For example ubuntu is which i used to use is more efficient for generaly users not for specially multimedia users. CentOS is good for CPanel uses. My Point is If you are running on Linux you can choose the best one for you. This not possible on Windows side. I am not here to tell you &#8220;Windows is BAD!!&#8221;  .. Of Course it is doing someting.. : ) without blue screens .. : )</p>
<p>Let&#8217;s turn on the main topic..  PARDUS Project. <a href="http://www.uekae.tubitak.gov.tr/home.do;&amp;lang=en" target="_blank">TÜBİTAK UEKAE</a> is developing this disrubution. Of course is it linux based operating system. I can say this is another oppourtunity for home users. First of all this is the first official operating system of TURKEY. Second distro of PARDUS has came in the last quarter of 2006. First edition was PARDUS 1.0 and it took a year to announce about Second edition. PARDUS is really special OS System for me big reason is this PARDUS is for a user who wants to run all the multimedia applications with no problems. It comes with codecs and such on it.</p>
<p>I have installed my PARDUS distro about a year ago and using it since this time. I&#8217;ve read many article about PARDUS <a href="http://en.wikipedia.org/wiki/Pardus_%28operating_system%29" target="_blank">Here is a link</a> you can find more about it.</p>
<p><span id="more-11"></span></p>
<p>Language Support!</p>
<p>Yes this is an official turkish operating system and also it has language support of course. There are some web sites for PARDUS project that you can find some more information on your own language. There is an official <a href="http://www.pardus.org.tr/eng/" target="_blank">English Website</a> . And people created unofficial <a href="http://www.pardus.it/">Italian Website</a> and <a href="http://www.pardus-linux.nl/" target="_blank">Holland Website</a> . Nowadays people are talking about PARDUS all around the world this is good news and there is a <a href="http://distrowatch.com/table.php?distribution=pardus" target="_blank">webpage</a> in the <a href="http://distrowatch.com/" target="_blank">DistroWatch.com</a> about PARDUS.</p>
<p>I Say..?</p>
<p>I say the PARDUS distro has user friendly interface, good graphics..Satisfied!.. During the installation it is very easy. You can find PARDUS as CD/DVD. <a href="http://pardus.org.tr/eng/download.html" target="_blank">Here is link</a> and you can download PARDUS distro.</p>
<p>Some More Information:</p>
<ul>
<li>http://pardus.org.tr/eng/index.html</li>
<li>http://www.pardus-wiki.org/</li>
<li>http://pardus.org.tr/eng/documents/index.html</li>
</ul>
<p>Note: The new version is coming up soon-&gt; PARDUS 2008<br />
Samet Kilictas</p>
]]></content:encoded>
			<wfw:commentRss>http://samet.kilictas.com/about-pardus-project-2007-tubitak/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
