<?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>link2caro &#187; Linux</title>
	<atom:link href="http://link2caro.net/it/linux-it/feed/" rel="self" type="application/rss+xml" />
	<link>http://link2caro.net</link>
	<description></description>
	<lastBuildDate>Mon, 30 Jan 2012 09:41:51 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Installing PHP on Debian without Apache</title>
		<link>http://link2caro.net/read/installing-php-on-debian-without-apache/</link>
		<comments>http://link2caro.net/read/installing-php-on-debian-without-apache/#comments</comments>
		<pubDate>Fri, 03 Dec 2010 19:07:49 +0000</pubDate>
		<dc:creator>CA RO</dc:creator>
				<category><![CDATA[IT]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[Apt-Get]]></category>
		<category><![CDATA[Aptitude]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://blog.link2caro.net/?p=740</guid>
		<description><![CDATA[If you need to install PHP without apache on a Debian machine, do not try the short way You need to install dependencies of php5 first and then install php5, like below]]></description>
			<content:encoded><![CDATA[<p>If you need to install PHP without apache on a Debian machine, do not try the short way</p>
<pre class="brush: bash; title: ; notranslate">
aptitude install php5
# or
apt-get install php5
</pre>
<p>You need to install dependencies of php5 first and then install php5, like below</p>
<pre class="brush: bash; title: ; notranslate">
aptitude install php5-common php5-cgi
aptitude install php5
</pre>
]]></content:encoded>
			<wfw:commentRss>http://link2caro.net/read/installing-php-on-debian-without-apache/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ssh-agent with cygwin on Windows</title>
		<link>http://link2caro.net/read/ssh-agent-with-cygwin-on-windows/</link>
		<comments>http://link2caro.net/read/ssh-agent-with-cygwin-on-windows/#comments</comments>
		<pubDate>Wed, 24 Nov 2010 11:50:34 +0000</pubDate>
		<dc:creator>CA RO</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[IT]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[cygwin]]></category>
		<category><![CDATA[private key]]></category>
		<category><![CDATA[rsync]]></category>
		<category><![CDATA[ssh]]></category>
		<category><![CDATA[ssh-agent]]></category>

		<guid isPermaLink="false">http://blog.link2caro.net/?p=712</guid>
		<description><![CDATA[Modify your .bashrc in your home directory in cygwin Add a variable into your environment variables As in this screenshot You can add the path to the directory /bin, /usr/sbin, /usr/local/bin into your PATH variable of windows too, so that you can use most of cygwin commands directly from Command Prompt. The most useful commands [...]]]></description>
			<content:encoded><![CDATA[<ul>
<li>Modify your .bashrc in your home directory in cygwin</li>
</ul>
<pre class="brush: bash; title: ; notranslate">export SSH_AUTH_SOCK=/tmp/.ssh-socket
ssh-add -l 2&gt;&amp;1 &amp;gt;/dev/null

if [ $? = 2 ]; then
# Exit status 2 means couldn't connect to ssh-agent; start one now
ssh-agent -a $SSH_AUTH_SOCK &gt; /tmp/.ssh-script
. /tmp/.ssh-script
echo $SSH_AGENT_PID &gt; /tmp/.ssh-agent-pid
echo &quot;Run ssh-add &lt;Private Key&gt; to add your key to ssh-agent&quot;
ssh-add ~/.ssh/id_rsa
fi

function kill-agent {
pid=`cat /tmp/.ssh-agent-pid`
kill $pid
}</pre>
<ul>
<li>Add a variable into your environment variables</li>
</ul>
<p>As in this screenshot <img class="aligncenter size-medium wp-image-729" title="Environment variables" src="http://files.link2caro.net/2010/11/Capture-500x230.png" alt="" width="500" height="230" /></p>
<p>You can add the path to the directory /bin, /usr/sbin, /usr/local/bin into your PATH variable of windows too, so that you can use most of cygwin commands directly from Command Prompt. The most useful commands for me are <strong>ssh</strong>,<strong> rsync </strong>and <strong>tail</strong>.</p>
<p>You can create a startup batch which launches <strong>bash</strong> when your PC starts up, so that it will start automatically the ssh-agent and register your private keys.</p>
]]></content:encoded>
			<wfw:commentRss>http://link2caro.net/read/ssh-agent-with-cygwin-on-windows/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Static IP Configuration (Debian or Red Hat)</title>
		<link>http://link2caro.net/read/static-ip-linux/</link>
		<comments>http://link2caro.net/read/static-ip-linux/#comments</comments>
		<pubDate>Thu, 11 Mar 2010 14:21:54 +0000</pubDate>
		<dc:creator>CA RO</dc:creator>
				<category><![CDATA[IT]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Tutorial]]></category>

		<guid isPermaLink="false">http://blog.link2caro.net/?p=688</guid>
		<description><![CDATA[For Debian Modify /etc/network/interfaces # /etc/network/interfaces &#8212; configuration file for ifup(8), ifdown(8) # The loopback interface auto lo iface lo inet loopback # The first network card &#8211; this entry was created during the Debian installation # (network, broadcast and gateway are optional) auto eth0 iface eth0 inet static address 192.168.1.10 netmask 255.255.255.0 network 192.168.1.0 [...]]]></description>
			<content:encoded><![CDATA[<ul>
<li>For Debian<br />
<code>Modify /etc/network/interfaces</code></p>
<p># /etc/network/interfaces &#8212; configuration file for ifup(8),  ifdown(8)</p>
<p>#  The loopback interface<br />
auto lo<br />
iface lo inet loopback</p>
<p>#  The first network card &#8211; this entry was created during the Debian   installation<br />
# (network, broadcast and gateway are optional)<br />
auto  eth0</p>
<p>iface eth0 inet static<br />
address 192.168.1.10<br />
netmask 255.255.255.0<br />
network 192.168.1.0<br />
broadcast 192.168.1.255<br />
gateway 192.168.1.1</li>
<li>For Red Hat<br />
<code>Modify /etc/sysconfig/network-scripts/ifcfg-eth*</code></p>
<p>DEVICE=eth0<br />
BOOTPROTO=static<br />
ONBOOT=yes<br />
IPADDR=192.168.1.10<br />
NETMASK=255.255.255.0<br />
GATEWAY=192.168.1.1</li>
</ul>
<p>Run /etc/init.d/networking restart to apply these changes</p>
]]></content:encoded>
			<wfw:commentRss>http://link2caro.net/read/static-ip-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>History of the name Samba</title>
		<link>http://link2caro.net/read/history-of-the-name-samba/</link>
		<comments>http://link2caro.net/read/history-of-the-name-samba/#comments</comments>
		<pubDate>Mon, 02 Nov 2009 22:49:59 +0000</pubDate>
		<dc:creator>CA RO</dc:creator>
				<category><![CDATA[IT]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Mac OS X]]></category>
		<category><![CDATA[dictionary]]></category>
		<category><![CDATA[egrep]]></category>
		<category><![CDATA[regex]]></category>
		<category><![CDATA[samba]]></category>
		<category><![CDATA[smb]]></category>
		<category><![CDATA[word]]></category>

		<guid isPermaLink="false">http://link2caro.net/?p=658</guid>
		<description><![CDATA[Source: svn://svnanon.samba.org/samba/tags/release-2-2-12/docs/history It&#8217;s now October 1998. We just got back from the 3rd CIFS conference in SanJose. The Samba Team was the biggest contingent there. Samba 2.0 should be shipping in the next few weeks with much better domain controller support, GUI configuration, a new user space SMB filesystem and lots of other neat stuff. [...]]]></description>
			<content:encoded><![CDATA[<p>Source: svn://svnanon.samba.org/samba/tags/release-2-2-12/docs/history</p>
<blockquote><p>It&#8217;s now October 1998. We just got back from the 3rd CIFS conference<br />
in SanJose. The Samba Team was the biggest contingent there.</p>
<p>Samba 2.0 should be shipping in the next few weeks with much better<br />
domain controller support, GUI configuration, a new user space SMB<br />
filesystem and lots of other neat stuff. I&#8217;ve also noticed that a<br />
search of job ads in DejaNews turned up 3900 that mention Samba. Looks<br />
like we&#8217;ve created a small industry.</p>
<p>I&#8217;ve been asked again where the name Samba came from. I might as well<br />
put it down here for everyone to read. The code in Samba was first<br />
called just &#8220;server&#8221;, it then got renamed &#8220;smbserver&#8221; when I<br />
discovered that the protocol is called SMB. Then in April 1994 I got<br />
an email from Syntax, the makers of &#8220;TotalNet advanced Server&#8221;, a<br />
commercial SMB server. They told me that they had a trademark on the<br />
name SMBserver and I would have to change the name. I ran an egrep for<br />
words containing S, M, and B on /usr/dict/words and the name Samba<br />
looked like the best choice. Strangely enough when I repeat that now I<br />
notice that Samba isn&#8217;t in /usr/dict/words on my system anymore!</p></blockquote>
<p>As he did not mention the command he ran to get this word out of the built-in dictionary, I tried some regex and got this one which is most likely the command:</p>
<blockquote><p>egrep -i &#8220;^s[a-z]{0,1}m[a-z]{0,1}b[a-z]{0,1}$&#8221; /usr/share/dict/words</p>
<p>On CentOS:</p>
<p>samba<br />
Sambo<br />
sambo<br />
Simaba<br />
simba<br />
SMB<br />
Sumba</p>
<p>On Mac OS X 10.6.1</p>
<p>samba<br />
Sambo<br />
sambo<br />
Simaba</p></blockquote>
<p>( /usr/share/dict/words, because I ran this on CentOS, Mac )</p>
]]></content:encoded>
			<wfw:commentRss>http://link2caro.net/read/history-of-the-name-samba/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Exporting Eclipse&#8217;s Color Schemes</title>
		<link>http://link2caro.net/read/eclipse-color-schemes/</link>
		<comments>http://link2caro.net/read/eclipse-color-schemes/#comments</comments>
		<pubDate>Mon, 24 Aug 2009 23:11:21 +0000</pubDate>
		<dc:creator>CA RO</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[IT]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Mac OS X]]></category>
		<category><![CDATA[Color]]></category>
		<category><![CDATA[Eclipse]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Scheme]]></category>

		<guid isPermaLink="false">http://link2caro.net/?p=634</guid>
		<description><![CDATA[Export your Eclipse preferences using File &#62; Export &#62; General &#62; Preferences. This will output a .epf file with a whole bunch of preferences including repository info; way more than you need. Run some simple  commands to create a preference file that contains color information only. Add &#8220;file_export_version=3.0&#8243; as the top line of your new [...]]]></description>
			<content:encoded><![CDATA[<ol>
<li>Export your Eclipse preferences using File &gt; Export &gt; General &gt; Preferences. This will output a .epf file with a whole bunch of preferences including repository info; way more than you need.</li>
<li>Run some simple  commands to create a preference file that contains color information only.</li>
<li>Add &#8220;file_export_version=3.0&#8243; as the top line of your new epf file. This allows the file to imported into Eclipse &gt;= 3.0. Without this your preferences will not be imported.</li>
</ol>
<p><code>"file_export_version=3.0" &gt; my_color_prefs.epf<br />
grep -i color &gt;&gt; my_color_prefs.epf<br />
grep -i org.eclipse.wst &gt;&gt; my_color_prefs.epf<br />
grep -i org.eclipse.php.ui &gt;&gt; my_color_prefs.epf</code></p>
<p>Update 27/10/2009 ( <a href="http://files.link2caro.net/2009/08/caro-20091027.epf">caro-20091027</a> )</p>
<p>Update 02/02/2010 ( <a href="http://files.link2caro.net/2009/08/caro-20100202.epf_.gz">caro-20100202</a> ) for PDT 2.2</p>
<p>Thanks to timrobles.com</p>
]]></content:encoded>
			<wfw:commentRss>http://link2caro.net/read/eclipse-color-schemes/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Installing Subversion on Ubuntu</title>
		<link>http://link2caro.net/read/install-subversion-ubuntu/</link>
		<comments>http://link2caro.net/read/install-subversion-ubuntu/#comments</comments>
		<pubDate>Sun, 08 Mar 2009 14:32:05 +0000</pubDate>
		<dc:creator>CA RO</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[IT]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[Installation]]></category>
		<category><![CDATA[Subversion]]></category>
		<category><![CDATA[SVN]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[Web&Dev]]></category>

		<guid isPermaLink="false">http://blog.link2caro.net/ubuntu/</guid>
		<description><![CDATA[Assuming that apache is installed! Install packages apt-get install subversion libapache2-svn libapache-mod-dav Enable SSL a2enmod Add &#8220;Listen 443&#8243; into httpd.conf if needed. Install SSL apt-get install ssl-cert mkdir /etc/apache2/ssl /usr/sbin/make-ssl-cert /usr/share/ssl-cert/ssleay.cnf /etc/apache2/ssl/site-name.crt Adding Basic Authentication: htpasswd2 -c -m /home/path-to/svn/project/.htpasswd username Configure site cp /etc/apache2/sites-available/default /etc/apache2/sites-available/site-name nano /etc/apache2/sites-available/site-name &#60;VirtualHost IP_ADDRESS:443&#62; ServerName hostname DocumentRoot /home/path-to/svn SSLEngine on [...]]]></description>
			<content:encoded><![CDATA[<p>Assuming that apache is installed!</p>
<ol>
<li><span style="color: #800000;"><strong>Install packages</strong></span><br />
apt-get install subversion libapache2-svn libapache-mod-dav</li>
<li><span style="color: #800000;"><strong>Enable SSL</strong></span><br />
a2enmod<br />
Add &#8220;Listen 443&#8243; into httpd.conf if needed.</li>
<li><span style="color: #800000;"><strong>Install SSL</strong></span><br />
apt-get install ssl-cert<br />
mkdir /etc/apache2/ssl<br />
/usr/sbin/make-ssl-cert /usr/share/ssl-cert/ssleay.cnf /etc/apache2/ssl/<strong>site-name.crt</strong></li>
<li><span style="color: #800000;"><strong>Adding Basic Authentication:</strong></span><br />
htpasswd2 -c -m /home/path-to/svn/project/.htpasswd <strong><em>username</em></strong></li>
<li><span style="color: #800000;"><strong>Configure site</strong></span><br />
cp /etc/apache2/sites-available/default /etc/apache2/sites-available/<strong>site-name</strong><br />
nano /etc/apache2/sites-available/site-name</p>
<blockquote><p>&lt;VirtualHost IP_ADDRESS:443&gt;<br />
ServerName <strong>hostname</strong><br />
DocumentRoot /home/path-to/svn</p>
<p>SSLEngine on<br />
SSLCertificateFile /etc/apache2/ssl/<strong>site-name.crt</strong><br />
SSLProtocol all<br />
SSLCipherSuite HIGH:MEDIUM</p>
<p>&lt;Directory &#8220;/home/path-to/svn&#8221;&gt;<br />
Options FollowSymLinks MultiViews<br />
AllowOverride All<br />
Order allow,deny<br />
Allow from All<br />
SSLRequireSSL<br />
&lt;/Directory&gt;</p>
<p>### project<br />
&lt;Location &#8220;/svn/project&#8221;&gt;<br />
AuthType Basic<br />
AuthName &#8220;Subversion Login&#8221;<br />
AuthUserFile /home/path-to/svn/project/<strong>.htpasswd</strong><br />
Require valid-user<br />
&lt;/Location&gt;<br />
&lt;/VirtualHost&gt;</p></blockquote>
<p><code>a2ensite <em>$SITENAME</em><br />
/etc/init.d/apache2 restart</code></li>
<li><span style="color: #800000;"><strong>Adding repository</strong></span><br />
mkdir /home/path-to/svn<br />
svnadmin create /home/path-to/svn/repos<br />
chown -R www-data:www-data /home/path-to/svn/repos<br />
chmod -R g+ws /home/path-to/svn/repos</li>
<li><span style="color: #800000;"><strong>Enabling SVN</strong></span><br />
Edit /etc/apache2/mods-available/dav_svn.conf<br />
<code>DAV svn<br />
SVNParentPath /home/path-to/svn (for multi repositories)<br />
SVNPath /home/path-to/svn (for single repository)</code>For non-anonymous access comment out:<br />
<code>#&lt;LimitExcept GET PROPFIND OPTIONS REPORT&gt;<br />
#&lt;/LimitExcept&gt;</code></li>
<li><span style="color: #800000;"><strong>Finalization</strong></span><br />
<code>/etc/init.d/apache2 restart</code></li>
<li><span style="color: #800000;"><strong>Initial Import and Checkout</strong></span><code><br />
svn import --username <em><strong>username</strong> <strong>files</strong></em> https://hostname/svn/<em>repos</em>/testdir -m “Testing”</code><code><br />
svn co --username <em><strong>username</strong> </em>https://hostname/svn<em>/repos</em></code></li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://link2caro.net/read/install-subversion-ubuntu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Transfer files between servers</title>
		<link>http://link2caro.net/read/transfer-files-between-servers/</link>
		<comments>http://link2caro.net/read/transfer-files-between-servers/#comments</comments>
		<pubDate>Sat, 07 Mar 2009 00:15:19 +0000</pubDate>
		<dc:creator>CA RO</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://blog.link2caro.net/?p=423</guid>
		<description><![CDATA[With Secure Copy (slowest) : scp -r dir user@destination-host:/tmp/ Tar through SSH: tar czpf &#8211; dir &#124; ssh user@destination-host tar xzpf &#8211; -C /tmp/ Tar with Netcat (fastest): On destination-host: nc -l -p 7000 &#124; tar xzpf &#8211; -C /tmp/ On source-host: tar czpf &#8211; dir &#124; nc -w 10 destination-host 7000 For the methods [...]]]></description>
			<content:encoded><![CDATA[<p>With Secure Copy (slowest) : scp -r dir user@destination-host:/tmp/</p>
<p>Tar through SSH: tar czpf &#8211; dir | ssh user@destination-host tar xzpf &#8211; -C /tmp/</p>
<p>Tar with Netcat (fastest):</p>
<ul>
<li>On destination-host: nc -l -p 7000 | tar xzpf &#8211; -C /tmp/</li>
<li>On source-host: tar czpf &#8211; dir | nc -w 10 destination-host 7000</li>
</ul>
<p>For the methods with tar command, you can use verbose with the command on the destination host to log the process.</p>
]]></content:encoded>
			<wfw:commentRss>http://link2caro.net/read/transfer-files-between-servers/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using apc
Database Caching 5/39 queries in 0.113 seconds using apc
Object Caching 654/751 objects using apc

Served from: link2caro.net @ 2012-02-08 23:31:45 -->
