<?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>Alexander Holbreich&#187; linux</title> <atom:link href="http://alexander.holbreich.org/tag/linux/feed/" rel="self" type="application/rss+xml" /><link>http://alexander.holbreich.org</link> <description>Everything becomes a little different as soon as it is spoken out loud.  ~Hermann Hesse</description> <lastBuildDate>Wed, 01 Feb 2012 22:44:21 +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>Packing with tar gzip, bzip2 and zip</title><link>http://alexander.holbreich.org/2011/12/packing-tar-gzip-bzip2-zip/</link> <comments>http://alexander.holbreich.org/2011/12/packing-tar-gzip-bzip2-zip/#comments</comments> <pubDate>Sat, 31 Dec 2011 13:35:18 +0000</pubDate> <dc:creator>shuron</dc:creator> <category><![CDATA[linux]]></category> <category><![CDATA[bzip2]]></category> <category><![CDATA[gzip]]></category> <category><![CDATA[tar]]></category> <category><![CDATA[zip]]></category><guid isPermaLink="false">http://alexander.holbreich.org/?p=1044</guid> <description><![CDATA[Looking on my block at the end of the year i see than nearly two years ago i wrote about extracting archives under Linux but not about putting files in to archives. Now a have some time to continue. Tar.gz Here are some common way to create your archives. Parameters explanation: c  or &#8211;create create [...]]]></description> <content:encoded><![CDATA[<p><a href="http://alexander.holbreich.org/wp-content/uploads/2009/02/tar-gzip.gif?4c9b33"><img class="size-full wp-image-388 alignleft" style="margin: 5px;" title="tar-gzip" src="http://alexander.holbreich.org/wp-content/uploads/2009/02/tar-gzip.gif?4c9b33" alt="" width="80" height="80" /></a>Looking on my block at the end of the year i see than nearly two years ago i wrote about <a title="Extracting tar, gzip, bzip2, z" href="http://alexander.holbreich.org/2009/02/tar-gzip/">extracting archives</a> under Linux but not about putting files in to archives. Now a have some time to continue.</p><h2>Tar.gz</h2><p>Here are some common way to create your archives.</p><pre class="brush: bash; title: ; notranslate">
#Creates simple targetfile.tar without compression.
tar cvf targetfile.tar sourcedir/*

#Zip everything beneath sourcedir to targetfile.tar.gz
tar cvzf targetfile.tar.gz sourcedir/*

#Bzip2 everything beneath sourcedir to targetfile.tar.bz2
tar cvjf targetfile.tar.bz2 sourcedir/*
</pre><p>Parameters explanation:</p><ul><li><em>c</em>  or <em>&#8211;create</em> create a new archive</li><li><em>v</em> or <em>&#8211;verbose</em>  verbosely list files processed</li><li><em>z</em> or <em>&#8211;gzip</em>  usage of gzip compression (or also decompression, context dependent)</li><li><em>j</em> or <em>&#8211;bzip2</em> usage of bzip2 compression</li><li>f or &#8211;<em>file</em>  use archive file</li></ul><p>Alternative with pipe usage:</p><pre class="brush: bash; title: ; notranslate">
tar -cf - sourcedir | gzip -c &gt; filename.tar.gz
</pre><h2>Zip</h2><p>Some examples</p><pre class="brush: bash; title: ; notranslate">
#Zip every file in current directroy to file.zip.
#But hidden files like (.htaccess) are not included.
zip file.zip sourcedir/*

#also includes hidden files.
zip file.zip sourcedir/* .*
</pre><p>The above examples include directories but still not their content recursively, -<em>r</em> option is required.</p><pre class="brush: bash; title: ; notranslate">
#Adds all files and directories recursivly.
zip file.zip -r /sourcedir/*

#Same as abowe with addtional enryption and password lock.
#Password is prompted on the terminal.
zip file.zip -re /sourcedir/*

#Splitts creted archive to parts not bigger than 2 Gigabytes.
zip -s 2g -r test.zip ./*
</pre><p>Hope that helps someone.</p><p>Happy new year!!!</p><div class="sociable"><div class="sociable_tagline"><a class='sociable_tagline' target='_blank' href='http://blogplay.com' style='font-size:11px;color:#333333;text-decoration:none'>Be Sociable, Share!</a></div><ul class='clearfix'><li><a title="Facebook" class="option1_16" style="background-position:-48px 0px" rel="nofollow" target="_blank" href="http://www.facebook.com/share.php?u=http%3A%2F%2Falexander.holbreich.org%2F2011%2F12%2Fpacking-tar-gzip-bzip2-zip%2F&amp;t=Packing%20with%20tar%20gzip%2C%20bzip2%20and%20zip"></a></li><li><a title="HackerNews" class="option1_16" style="background-position:-128px 0px" rel="nofollow" target="_blank" href="http://news.ycombinator.com/submitlink?u=http%3A%2F%2Falexander.holbreich.org%2F2011%2F12%2Fpacking-tar-gzip-bzip2-zip%2F&amp;t=Packing%20with%20tar%20gzip%2C%20bzip2%20and%20zip"></a></li><li><a title="Reddit" class="option1_16" style="background-position:-64px -16px" rel="nofollow" target="_blank" href="http://reddit.com/submit?url=http%3A%2F%2Falexander.holbreich.org%2F2011%2F12%2Fpacking-tar-gzip-bzip2-zip%2F&amp;title=Packing%20with%20tar%20gzip%2C%20bzip2%20and%20zip"></a></li><li><a title="Digg" class="option1_16" style="background-position:-32px 0px" rel="nofollow" target="_blank" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Falexander.holbreich.org%2F2011%2F12%2Fpacking-tar-gzip-bzip2-zip%2F&amp;title=Packing%20with%20tar%20gzip%2C%20bzip2%20and%20zip&amp;bodytext=Looking%20on%20my%20block%20at%20the%20end%20of%20the%20year%20i%20see%20than%20nearly%20two%20years%20ago%20i%20wrote%20about%20extracting%20archives%20under%20Linux%20but%20not%20about%20putting%20files%20in%20to%20archives.%20Now%20a%20have%20some%20time%20to%20continue.%0D%0ATar.gz%0D%0AHere%20are%20some%20common%20way%20to%20create%20your%20ar"></a></li><li><a title="Tumblr" class="option1_16" style="background-position:-128px -16px" rel="nofollow" target="_blank" href="http://www.tumblr.com/share?v=3&amp;u=http%3A%2F%2Falexander.holbreich.org%2F2011%2F12%2Fpacking-tar-gzip-bzip2-zip%2F&amp;t=Packing%20with%20tar%20gzip%2C%20bzip2%20and%20zip&amp;s=Looking%20on%20my%20block%20at%20the%20end%20of%20the%20year%20i%20see%20than%20nearly%20two%20years%20ago%20i%20wrote%20about%20extracting%20archives%20under%20Linux%20but%20not%20about%20putting%20files%20in%20to%20archives.%20Now%20a%20have%20some%20time%20to%20continue.%0D%0ATar.gz%0D%0AHere%20are%20some%20common%20way%20to%20create%20your%20ar"></a></li><li><a title="BlinkList" class="option1_16" style="background-position:0px 0px" rel="nofollow" target="_blank" href="http://www.blinklist.com/index.php?Action=Blink/addblink.php&amp;Url=http%3A%2F%2Falexander.holbreich.org%2F2011%2F12%2Fpacking-tar-gzip-bzip2-zip%2F&amp;Title=Packing%20with%20tar%20gzip%2C%20bzip2%20and%20zip"></a></li><li><a title="Google Reader" class="option1_16" style="background-position:-112px 0px" rel="nofollow" target="_blank" href="http://www.google.com/reader/link?url=http%3A%2F%2Falexander.holbreich.org%2F2011%2F12%2Fpacking-tar-gzip-bzip2-zip%2F&amp;title=Packing%20with%20tar%20gzip%2C%20bzip2%20and%20zip&amp;srcURL=http%3A%2F%2Falexander.holbreich.org%2F2011%2F12%2Fpacking-tar-gzip-bzip2-zip%2F&amp;srcTitle=Alexander+Holbreich+Everything+becomes+a+little+different+as+soon+as+it+is+spoken+out+loud.++%7EHermann+Hesse"></a></li><li><a title="StumbleUpon" class="option1_16" style="background-position:-112px -16px" rel="nofollow" target="_blank" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Falexander.holbreich.org%2F2011%2F12%2Fpacking-tar-gzip-bzip2-zip%2F&title=Packing%20with%20tar%20gzip%2C%20bzip2%20and%20zip"></a></li><li><a title="Myspace" class="option1_16" style="background-position:0px -16px" rel="nofollow" target="_blank" href="http://www.myspace.com/Modules/PostTo/Pages/?u=http%3A%2F%2Falexander.holbreich.org%2F2011%2F12%2Fpacking-tar-gzip-bzip2-zip%2F&amp;t=Packing%20with%20tar%20gzip%2C%20bzip2%20and%20zip"></a></li><li><a title="Sphinn" class="option1_16" style="background-position:-96px -16px" rel="nofollow" target="_blank" href="http://sphinn.com/index.php?c=post&amp;m=submit&amp;link=http%3A%2F%2Falexander.holbreich.org%2F2011%2F12%2Fpacking-tar-gzip-bzip2-zip%2F"></a></li><li><a class="option1_16" style="cursor:pointer;background-position:-64px 0px" rel="nofollow" title="Add to favorites - doesn't work in Chrome"  onClick="javascript:AddToFavorites();"></a></li><li><a title="Posterous" class="option1_16" style="background-position:-32px -16px" rel="nofollow" target="_blank" href="http://posterous.com/share?linkto=http%3A%2F%2Falexander.holbreich.org%2F2011%2F12%2Fpacking-tar-gzip-bzip2-zip%2F&amp;title=Packing%20with%20tar%20gzip%2C%20bzip2%20and%20zip&amp;selection=Looking%20on%20my%20block%20at%20the%20end%20of%20the%20year%20i%20see%20than%20nearly%20two%20years%20ago%20i%20wrote%20about%20extracting%20archives%20under%20Linux%20but%20not%20about%20putting%20files%20in%20to%20archives.%20Now%20a%20have%20some%20time%20to%20continue.%0D%0ATar.gz%0D%0AHere%20are%20some%20common%20way%20to%20create%20your%20ar"></a></li></ul><div onMouseout="fixOnMouseOut(this,event,'post-1044')" id="sociable-post-1044" style="display:none;"><div style="top: auto; left: auto; display: block;" id="sociable"><div class="popup"><div class="content"><ul><li style="heigth:16px;width:16px"><a title="Twitter" class="option1_16" style="background-position:-144px -16px" rel="nofollow" target="_blank" href="http://twitter.com/intent/tweet?text=Packing%20with%20tar%20gzip%2C%20bzip2%20and%20zip%20-%20http%3A%2F%2Falexander.holbreich.org%2F2011%2F12%2Fpacking-tar-gzip-bzip2-zip%2F%20(via%20@sociablesite)"></a></li><li style="heigth:16px;width:16px"><a title="LinkedIn" class="option1_16" style="background-position:-144px 0px" rel="nofollow" target="_blank" href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http%3A%2F%2Falexander.holbreich.org%2F2011%2F12%2Fpacking-tar-gzip-bzip2-zip%2F&amp;title=Packing%20with%20tar%20gzip%2C%20bzip2%20and%20zip&amp;source=Alexander+Holbreich+Everything+becomes+a+little+different+as+soon+as+it+is+spoken+out+loud.++%7EHermann+Hesse&amp;summary=Looking%20on%20my%20block%20at%20the%20end%20of%20the%20year%20i%20see%20than%20nearly%20two%20years%20ago%20i%20wrote%20about%20extracting%20archives%20under%20Linux%20but%20not%20about%20putting%20files%20in%20to%20archives.%20Now%20a%20have%20some%20time%20to%20continue.%0D%0ATar.gz%0D%0AHere%20are%20some%20common%20way%20to%20create%20your%20ar"></a></li><li style="heigth:16px;width:16px"><a title="Delicious" class="option1_16" style="background-position:-16px 0px" rel="nofollow" target="_blank" href="http://delicious.com/post?url=http%3A%2F%2Falexander.holbreich.org%2F2011%2F12%2Fpacking-tar-gzip-bzip2-zip%2F&amp;title=Packing%20with%20tar%20gzip%2C%20bzip2%20and%20zip&amp;notes=Looking%20on%20my%20block%20at%20the%20end%20of%20the%20year%20i%20see%20than%20nearly%20two%20years%20ago%20i%20wrote%20about%20extracting%20archives%20under%20Linux%20but%20not%20about%20putting%20files%20in%20to%20archives.%20Now%20a%20have%20some%20time%20to%20continue.%0D%0ATar.gz%0D%0AHere%20are%20some%20common%20way%20to%20create%20your%20ar"></a></li><li style="heigth:16px;width:16px"><a title="Google Bookmarks" class="option1_16" style="background-position:-96px 0px" rel="nofollow" target="_blank" href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Falexander.holbreich.org%2F2011%2F12%2Fpacking-tar-gzip-bzip2-zip%2F&amp;title=Packing%20with%20tar%20gzip%2C%20bzip2%20and%20zip&amp;annotation=Looking%20on%20my%20block%20at%20the%20end%20of%20the%20year%20i%20see%20than%20nearly%20two%20years%20ago%20i%20wrote%20about%20extracting%20archives%20under%20Linux%20but%20not%20about%20putting%20files%20in%20to%20archives.%20Now%20a%20have%20some%20time%20to%20continue.%0D%0ATar.gz%0D%0AHere%20are%20some%20common%20way%20to%20create%20your%20ar"></a></li><li style="heigth:16px;width:16px"><a title="MSNReporter" class="option1_16" style="background-position:-176px 0px" rel="nofollow" target="_blank" href="http://reporter.es.msn.com/?fn=contribute&amp;Title=Packing%20with%20tar%20gzip%2C%20bzip2%20and%20zip&amp;URL=http%3A%2F%2Falexander.holbreich.org%2F2011%2F12%2Fpacking-tar-gzip-bzip2-zip%2F&amp;cat_id=6&amp;tag_id=31&amp;Remark=Looking%20on%20my%20block%20at%20the%20end%20of%20the%20year%20i%20see%20than%20nearly%20two%20years%20ago%20i%20wrote%20about%20extracting%20archives%20under%20Linux%20but%20not%20about%20putting%20files%20in%20to%20archives.%20Now%20a%20have%20some%20time%20to%20continue.%0D%0ATar.gz%0D%0AHere%20are%20some%20common%20way%20to%20create%20your%20ar"></a></li><li style="heigth:16px;width:16px"><a title="email" class="option1_16" style="background-position:-80px 0px" rel="nofollow" target="_blank" href="https://mail.google.com/mail/?view=cm&fs=1&to&su=Packing%20with%20tar%20gzip%2C%20bzip2%20and%20zip&body=http%3A%2F%2Falexander.holbreich.org%2F2011%2F12%2Fpacking-tar-gzip-bzip2-zip%2F&ui=2&tf=1&shva=1"></a></li><li style="heigth:16px;width:16px"><a style="cursor:poainter" rel="nofollow"   onMouseOver="more(this,'post-1044')"><img src="http://alexander.holbreich.org/wp-content/plugins/sociable/images/option1/16/more.png?4c9b33" title="Posterous" alt="Posterous" /></a></li></ul></div> <a style="cursor:pointer" onclick="hide_sociable('post-1044',true)" class="close"> <img onclick="hide_sociable('post-1044',true)" title="close" src="http://alexander.holbreich.org/wp-content/plugins/sociable/images/closelabel.png?4c9b33"> </a></div></div></div></div><div class='sociable' style='float:none'><ul class='clearfix'><li id="Twitter_Counter"><a href="https://twitter.com/share" data-text="Packing with tar gzip, bzip2 and zip - http://alexander.holbreich.org/2011/12/packing-tar-gzip-bzip2-zip/ (via #sociablesite)" data-url="http://alexander.holbreich.org/2011/12/packing-tar-gzip-bzip2-zip/" class="twitter-share-button" data-count="horizontal">Tweet</a><script type="text/javascript" src="//platform.twitter.com/widgets.js?4c9b33"></script></li><li id="Google_p"><g:plusone annotation="bubble" href="http://alexander.holbreich.org/2011/12/packing-tar-gzip-bzip2-zip/" size="medium"></g:plusone></li><li id="Digg_Counter"><script type='text/javascript'>(function(){var s=document.createElement('SCRIPT'),s1=document.getElementsByTagName('SCRIPT')[0];s.type='text/javascript';s.async=true;s.src='http://widgets.digg.com/buttons.js';s1.parentNode.insertBefore(s,s1);})();</script><a href='http://digg.com/submit?url=http%3A%2F%2Falexander.holbreich.org%2F2011%2F12%2Fpacking-tar-gzip-bzip2-zip%2F&amp;title=Packing%20with%20tar%20gzip%2C%20bzip2%20and%20zip'  class='DiggThisButton DiggCompact'></a></li><li id="StumbleUpon_Counter"><script src="http://www.stumbleupon.com/hostedbadge.php?s=2&r=http://alexander.holbreich.org/2011/12/packing-tar-gzip-bzip2-zip/"></script></li><li id="Facebook_Counter"><iframe src="//www.facebook.com/plugins/like.php?href=http://alexander.holbreich.org/2011/12/packing-tar-gzip-bzip2-zip/&send=false&layout=button_count&show_faces=false&action=like&colorscheme=light&font" scrolling="no" frameborder="0" style="border:none; overflow:hidden;height:32px;width:100px" allowTransparency="true"></iframe></li><li id="LinkedIn_Counter"><script src="http://platform.linkedin.com/in.js" type="text/javascript"></script><script type="IN/Share" data-url="http://alexander.holbreich.org/2011/12/packing-tar-gzip-bzip2-zip/" data-counter="right"></script></li></ul></div>]]></content:encoded> <wfw:commentRss>http://alexander.holbreich.org/2011/12/packing-tar-gzip-bzip2-zip/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Jboss 7 setup on debian linux</title><link>http://alexander.holbreich.org/2011/11/jboss-7-setup-linux/</link> <comments>http://alexander.holbreich.org/2011/11/jboss-7-setup-linux/#comments</comments> <pubDate>Thu, 10 Nov 2011 20:29:33 +0000</pubDate> <dc:creator>shuron</dc:creator> <category><![CDATA[JBoss]]></category> <category><![CDATA[linux]]></category> <category><![CDATA[Personal]]></category> <category><![CDATA[Software]]></category> <category><![CDATA[init.d]]></category> <category><![CDATA[open source]]></category> <category><![CDATA[setup]]></category><guid isPermaLink="false">http://alexander.holbreich.org/?p=981</guid> <description><![CDATA[This is a short step by step explanation of the setup of JBoss 7.0.2 on your Linux (explicit debian). Nowadays there is still no official Debian package for JBoss 7 out there, so we have to do a couple of steps manually.  First i describe how to download and to prepare the jboss. Secondly we [...]]]></description> <content:encoded><![CDATA[<p><a href="http://alexander.holbreich.org/wp-content/uploads/2011/11/as7_logo.png?4c9b33"><img class="alignright size-full wp-image-1012" title="jboss7_logo" src="http://alexander.holbreich.org/wp-content/uploads/2011/11/as7_logo.png?4c9b33" alt="" width="128" height="150" /></a>This is a short step by step explanation of the setup of JBoss 7.0.2 on your Linux (explicit debian). Nowadays there is still no official Debian package for JBoss 7 out there, so we have to do a couple of steps manually.  First i describe how to download and to prepare the jboss. Secondly we do some basic configuration that you&#8217;ll be needed and at the end i will show you one of the ways to register JBoss as a service.</p><h3>1. download and prepare.</h3><p>Start by download  currently available version (7.0.2) of the JBoss 7.</p><pre class="brush: bash; title: ; notranslate">
#Web Profile version download.
wget http://download.jboss.org/jbossas/7.0/jboss-as-7.0.2.Final/jboss-as-web-7.0.2.Final.tar.gz
</pre><p>Extracting files to the final location <a title="Extracting tar, gzip, bzip2, z" href="http://alexander.holbreich.org/2009/02/tar-gzip/">using tar</a>.</p><p><span id="more-981"></span><pre class="brush: bash; title: ; notranslate">
&lt;pre&gt;tar zxvf jboss-as-web-7.0.2.Final.tar.gz -C /usr/local/
</pre><p>Now your JBoss 7 is placed inside /usr/local/jboss-as-web-7.0.2.Final/.I dont&#8217;t like that name.  It&#8217;s just cosmetics, but i prefer to rename the last part ot the path.</p><pre class="brush: bash; title: ; notranslate">
cd /usr/local/
mv jboss-as-web-7.0.2.Final/ jboss-7.0.2
</pre><p>Now important things. Some basic security and right management. I suppose  you don&#8217;t want to start your JBoss with root rights.<br /> Therefore we need to create new user and new group named  <em>jboss</em>. Make them owner of your JBoss stuff.</p><pre class="brush: bash; title: ; notranslate">
addgroup jboss
useradd -g jboss jboss
chown -R jboss:jboss /usr/local/jboss-7.0.2/
</pre><p>Your jboss 7 is almost installed now.</p><h3>2. Configuration and first test.</h3><p>Start your brand new  Jboss 7 server with:</p><pre class="brush: bash; title: ; notranslate">
sudo -u jboss sh /usr/local/jboss-7.0.2/bin/standalone.sh &amp;
</pre><p>Now it  is testable on your local machine with <em>http://localhost:8080.</em><br /> <strong>But!</strong> maybe you trying to install that jboss on remote machine and want to access this installation remotely. I that case you need to enable remote interface of your JBoss. I assume we start by standalone configuration, so  you have to edit <em>/usr/local/jboss-7.0.2/standalone/configuration/standalone.xml</em> file. The easiest way is to  find <em>&lt;interfaces&gt;</em> section and replace the 127.0.0.1 address with <em>&lt;any-address/&gt;</em></p><pre class="brush: xml; title: ; notranslate">
&lt;interfaces&gt;
   &lt;interface name=&quot;management&quot;&gt;
     &lt;any-address/&gt;
     &lt;/interface&gt;
   &lt;interface name=&quot;public&quot;&gt;
    &lt;any-address/&gt;
   &lt;/interface&gt;
 &lt;/interfaces&gt;
</pre><p>Beware with this configuration you expose also the management console to the public. The console is bounded to interface named=&#8221;management&#8221; by default.  In production environments you have to put more attention to this. but now you can access your jboss from anywhere.</p><h3>3. Jboss as Service</h3><p>Now we have a basic configured JBoss, but i want to maintain it as a service. Unfortunately Jboss archive has no predefined <em>init.d</em> scripts, so i have to to it on my own. But this is not a big problem, just straightforward following some Debian conventions and useful scripts.</p><p>Ok, let&#8217;s create jboss maintenance script.</p><pre class="brush: bash; title: ; notranslate">
touch /etc/init.d/jboss
chmod 755 /etc/init.d/jboss
</pre><p>Ready! Now put following inside.</p><pre class="brush: bash; title: ; notranslate">
#!/bin/sh
### BEGIN INIT INFO
# Provides: jboss
# Required-Start: $local_fs $remote_fs $network $syslog
# Required-Stop: $local_fs $remote_fs $network $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Management of JBoss AS v7.x
### END INIT INFO

#Defining JBOSS_HOME
JBOSS_HOME=/usr/local/jboss-7.0.2

case &quot;$1&quot; in
start)
echo &quot;Starting JBoss AS7...&quot;
sudo -u jboss sh ${JBOSS_HOME}/bin/standalone.sh &amp;
;;
stop)
echo &quot;Stopping JBoss AS7...&quot;
sudo -u jboss sh ${JBOSS_HOME}/bin/jboss-admin.sh --connect command=:shutdown
;;
log)
echo &quot;Showing server.log...&quot;
tail -1000f ${JBOSS_HOME}/standalone/log/server.log
;;
*)
echo &quot;Usage: /etc/init.d/jboss {start|stop|log}&quot;
exit 1
;; esac
exit 0
</pre><p>This file is ready to use. You can use it self for manual start and stop of your jboss, you also can follow the server.log by using &#8220;log&#8221; parameter.<br /> But let&#8217;s make it to the end, as an automatic starting service. It&#8217;s easy with update-rc.d script:</p><pre class="brush: bash; title: ; notranslate">
update-rc.d jboss defaults
</pre><p>Now your ready and your JBoss will be shutdown on machine shutdown and it should start on machine start-up.</p><p>Of course this is not the only way to start using JBoss 7. Your ideas are welcome!</p><div class="sociable"><div class="sociable_tagline"><a class='sociable_tagline' target='_blank' href='http://blogplay.com' style='font-size:11px;color:#333333;text-decoration:none'>Be Sociable, Share!</a></div><ul class='clearfix'><li><a title="Facebook" class="option1_16" style="background-position:-48px 0px" rel="nofollow" target="_blank" href="http://www.facebook.com/share.php?u=http%3A%2F%2Falexander.holbreich.org%2F2011%2F11%2Fjboss-7-setup-linux%2F&amp;t=Jboss%207%20setup%20on%20debian%20linux"></a></li><li><a title="HackerNews" class="option1_16" style="background-position:-128px 0px" rel="nofollow" target="_blank" href="http://news.ycombinator.com/submitlink?u=http%3A%2F%2Falexander.holbreich.org%2F2011%2F11%2Fjboss-7-setup-linux%2F&amp;t=Jboss%207%20setup%20on%20debian%20linux"></a></li><li><a title="Reddit" class="option1_16" style="background-position:-64px -16px" rel="nofollow" target="_blank" href="http://reddit.com/submit?url=http%3A%2F%2Falexander.holbreich.org%2F2011%2F11%2Fjboss-7-setup-linux%2F&amp;title=Jboss%207%20setup%20on%20debian%20linux"></a></li><li><a title="Digg" class="option1_16" style="background-position:-32px 0px" rel="nofollow" target="_blank" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Falexander.holbreich.org%2F2011%2F11%2Fjboss-7-setup-linux%2F&amp;title=Jboss%207%20setup%20on%20debian%20linux&amp;bodytext=This%20is%20a%20short%20step%20by%20step%20explanation%20of%20the%20setup%20of%20JBoss%207.0.2%20on%20your%20Linux%20%28explicit%20debian%29.%20Nowadays%20there%20is%20still%20no%20official%20Debian%20package%20for%20JBoss%207%20out%20there%2C%20so%20we%20have%20to%20do%20a%20couple%20of%20steps%20manually.%C2%A0%20First%20i%20describe%20how%20to%20dow"></a></li><li><a title="Tumblr" class="option1_16" style="background-position:-128px -16px" rel="nofollow" target="_blank" href="http://www.tumblr.com/share?v=3&amp;u=http%3A%2F%2Falexander.holbreich.org%2F2011%2F11%2Fjboss-7-setup-linux%2F&amp;t=Jboss%207%20setup%20on%20debian%20linux&amp;s=This%20is%20a%20short%20step%20by%20step%20explanation%20of%20the%20setup%20of%20JBoss%207.0.2%20on%20your%20Linux%20%28explicit%20debian%29.%20Nowadays%20there%20is%20still%20no%20official%20Debian%20package%20for%20JBoss%207%20out%20there%2C%20so%20we%20have%20to%20do%20a%20couple%20of%20steps%20manually.%C2%A0%20First%20i%20describe%20how%20to%20dow"></a></li><li><a title="BlinkList" class="option1_16" style="background-position:0px 0px" rel="nofollow" target="_blank" href="http://www.blinklist.com/index.php?Action=Blink/addblink.php&amp;Url=http%3A%2F%2Falexander.holbreich.org%2F2011%2F11%2Fjboss-7-setup-linux%2F&amp;Title=Jboss%207%20setup%20on%20debian%20linux"></a></li><li><a title="Google Reader" class="option1_16" style="background-position:-112px 0px" rel="nofollow" target="_blank" href="http://www.google.com/reader/link?url=http%3A%2F%2Falexander.holbreich.org%2F2011%2F11%2Fjboss-7-setup-linux%2F&amp;title=Jboss%207%20setup%20on%20debian%20linux&amp;srcURL=http%3A%2F%2Falexander.holbreich.org%2F2011%2F11%2Fjboss-7-setup-linux%2F&amp;srcTitle=Alexander+Holbreich+Everything+becomes+a+little+different+as+soon+as+it+is+spoken+out+loud.++%7EHermann+Hesse"></a></li><li><a title="StumbleUpon" class="option1_16" style="background-position:-112px -16px" rel="nofollow" target="_blank" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Falexander.holbreich.org%2F2011%2F11%2Fjboss-7-setup-linux%2F&title=Jboss%207%20setup%20on%20debian%20linux"></a></li><li><a title="Myspace" class="option1_16" style="background-position:0px -16px" rel="nofollow" target="_blank" href="http://www.myspace.com/Modules/PostTo/Pages/?u=http%3A%2F%2Falexander.holbreich.org%2F2011%2F11%2Fjboss-7-setup-linux%2F&amp;t=Jboss%207%20setup%20on%20debian%20linux"></a></li><li><a title="Sphinn" class="option1_16" style="background-position:-96px -16px" rel="nofollow" target="_blank" href="http://sphinn.com/index.php?c=post&amp;m=submit&amp;link=http%3A%2F%2Falexander.holbreich.org%2F2011%2F11%2Fjboss-7-setup-linux%2F"></a></li><li><a class="option1_16" style="cursor:pointer;background-position:-64px 0px" rel="nofollow" title="Add to favorites - doesn't work in Chrome"  onClick="javascript:AddToFavorites();"></a></li><li><a title="Posterous" class="option1_16" style="background-position:-32px -16px" rel="nofollow" target="_blank" href="http://posterous.com/share?linkto=http%3A%2F%2Falexander.holbreich.org%2F2011%2F11%2Fjboss-7-setup-linux%2F&amp;title=Jboss%207%20setup%20on%20debian%20linux&amp;selection=This%20is%20a%20short%20step%20by%20step%20explanation%20of%20the%20setup%20of%20JBoss%207.0.2%20on%20your%20Linux%20%28explicit%20debian%29.%20Nowadays%20there%20is%20still%20no%20official%20Debian%20package%20for%20JBoss%207%20out%20there%2C%20so%20we%20have%20to%20do%20a%20couple%20of%20steps%20manually.%C2%A0%20First%20i%20describe%20how%20to%20dow"></a></li></ul><div onMouseout="fixOnMouseOut(this,event,'post-981')" id="sociable-post-981" style="display:none;"><div style="top: auto; left: auto; display: block;" id="sociable"><div class="popup"><div class="content"><ul><li style="heigth:16px;width:16px"><a title="Twitter" class="option1_16" style="background-position:-144px -16px" rel="nofollow" target="_blank" href="http://twitter.com/intent/tweet?text=Jboss%207%20setup%20on%20debian%20linux%20-%20http%3A%2F%2Falexander.holbreich.org%2F2011%2F11%2Fjboss-7-setup-linux%2F%20(via%20@sociablesite)"></a></li><li style="heigth:16px;width:16px"><a title="LinkedIn" class="option1_16" style="background-position:-144px 0px" rel="nofollow" target="_blank" href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http%3A%2F%2Falexander.holbreich.org%2F2011%2F11%2Fjboss-7-setup-linux%2F&amp;title=Jboss%207%20setup%20on%20debian%20linux&amp;source=Alexander+Holbreich+Everything+becomes+a+little+different+as+soon+as+it+is+spoken+out+loud.++%7EHermann+Hesse&amp;summary=This%20is%20a%20short%20step%20by%20step%20explanation%20of%20the%20setup%20of%20JBoss%207.0.2%20on%20your%20Linux%20%28explicit%20debian%29.%20Nowadays%20there%20is%20still%20no%20official%20Debian%20package%20for%20JBoss%207%20out%20there%2C%20so%20we%20have%20to%20do%20a%20couple%20of%20steps%20manually.%C2%A0%20First%20i%20describe%20how%20to%20dow"></a></li><li style="heigth:16px;width:16px"><a title="Delicious" class="option1_16" style="background-position:-16px 0px" rel="nofollow" target="_blank" href="http://delicious.com/post?url=http%3A%2F%2Falexander.holbreich.org%2F2011%2F11%2Fjboss-7-setup-linux%2F&amp;title=Jboss%207%20setup%20on%20debian%20linux&amp;notes=This%20is%20a%20short%20step%20by%20step%20explanation%20of%20the%20setup%20of%20JBoss%207.0.2%20on%20your%20Linux%20%28explicit%20debian%29.%20Nowadays%20there%20is%20still%20no%20official%20Debian%20package%20for%20JBoss%207%20out%20there%2C%20so%20we%20have%20to%20do%20a%20couple%20of%20steps%20manually.%C2%A0%20First%20i%20describe%20how%20to%20dow"></a></li><li style="heigth:16px;width:16px"><a title="Google Bookmarks" class="option1_16" style="background-position:-96px 0px" rel="nofollow" target="_blank" href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Falexander.holbreich.org%2F2011%2F11%2Fjboss-7-setup-linux%2F&amp;title=Jboss%207%20setup%20on%20debian%20linux&amp;annotation=This%20is%20a%20short%20step%20by%20step%20explanation%20of%20the%20setup%20of%20JBoss%207.0.2%20on%20your%20Linux%20%28explicit%20debian%29.%20Nowadays%20there%20is%20still%20no%20official%20Debian%20package%20for%20JBoss%207%20out%20there%2C%20so%20we%20have%20to%20do%20a%20couple%20of%20steps%20manually.%C2%A0%20First%20i%20describe%20how%20to%20dow"></a></li><li style="heigth:16px;width:16px"><a title="MSNReporter" class="option1_16" style="background-position:-176px 0px" rel="nofollow" target="_blank" href="http://reporter.es.msn.com/?fn=contribute&amp;Title=Jboss%207%20setup%20on%20debian%20linux&amp;URL=http%3A%2F%2Falexander.holbreich.org%2F2011%2F11%2Fjboss-7-setup-linux%2F&amp;cat_id=6&amp;tag_id=31&amp;Remark=This%20is%20a%20short%20step%20by%20step%20explanation%20of%20the%20setup%20of%20JBoss%207.0.2%20on%20your%20Linux%20%28explicit%20debian%29.%20Nowadays%20there%20is%20still%20no%20official%20Debian%20package%20for%20JBoss%207%20out%20there%2C%20so%20we%20have%20to%20do%20a%20couple%20of%20steps%20manually.%C2%A0%20First%20i%20describe%20how%20to%20dow"></a></li><li style="heigth:16px;width:16px"><a title="email" class="option1_16" style="background-position:-80px 0px" rel="nofollow" target="_blank" href="https://mail.google.com/mail/?view=cm&fs=1&to&su=Jboss%207%20setup%20on%20debian%20linux&body=http%3A%2F%2Falexander.holbreich.org%2F2011%2F11%2Fjboss-7-setup-linux%2F&ui=2&tf=1&shva=1"></a></li><li style="heigth:16px;width:16px"><a style="cursor:poainter" rel="nofollow"   onMouseOver="more(this,'post-981')"><img src="http://alexander.holbreich.org/wp-content/plugins/sociable/images/option1/16/more.png?4c9b33" title="Posterous" alt="Posterous" /></a></li></ul></div> <a style="cursor:pointer" onclick="hide_sociable('post-981',true)" class="close"> <img onclick="hide_sociable('post-981',true)" title="close" src="http://alexander.holbreich.org/wp-content/plugins/sociable/images/closelabel.png?4c9b33"> </a></div></div></div></div><div class='sociable' style='float:none'><ul class='clearfix'><li id="Twitter_Counter"><a href="https://twitter.com/share" data-text="Jboss 7 setup on debian linux - http://alexander.holbreich.org/2011/11/jboss-7-setup-linux/ (via #sociablesite)" data-url="http://alexander.holbreich.org/2011/11/jboss-7-setup-linux/" class="twitter-share-button" data-count="horizontal">Tweet</a><script type="text/javascript" src="//platform.twitter.com/widgets.js?4c9b33"></script></li><li id="Google_p"><g:plusone annotation="bubble" href="http://alexander.holbreich.org/2011/11/jboss-7-setup-linux/" size="medium"></g:plusone></li><li id="Digg_Counter"><script type='text/javascript'>(function(){var s=document.createElement('SCRIPT'),s1=document.getElementsByTagName('SCRIPT')[0];s.type='text/javascript';s.async=true;s.src='http://widgets.digg.com/buttons.js';s1.parentNode.insertBefore(s,s1);})();</script><a href='http://digg.com/submit?url=http%3A%2F%2Falexander.holbreich.org%2F2011%2F11%2Fjboss-7-setup-linux%2F&amp;title=Jboss%207%20setup%20on%20debian%20linux'  class='DiggThisButton DiggCompact'></a></li><li id="StumbleUpon_Counter"><script src="http://www.stumbleupon.com/hostedbadge.php?s=2&r=http://alexander.holbreich.org/2011/11/jboss-7-setup-linux/"></script></li><li id="Facebook_Counter"><iframe src="//www.facebook.com/plugins/like.php?href=http://alexander.holbreich.org/2011/11/jboss-7-setup-linux/&send=false&layout=button_count&show_faces=false&action=like&colorscheme=light&font" scrolling="no" frameborder="0" style="border:none; overflow:hidden;height:32px;width:100px" allowTransparency="true"></iframe></li><li id="LinkedIn_Counter"><script src="http://platform.linkedin.com/in.js" type="text/javascript"></script><script type="IN/Share" data-url="http://alexander.holbreich.org/2011/11/jboss-7-setup-linux/" data-counter="right"></script></li></ul></div>]]></content:encoded> <wfw:commentRss>http://alexander.holbreich.org/2011/11/jboss-7-setup-linux/feed/</wfw:commentRss> <slash:comments>3</slash:comments> </item> <item><title>Installing Java 7 on Debian</title><link>http://alexander.holbreich.org/2011/11/java-7-on-debian/</link> <comments>http://alexander.holbreich.org/2011/11/java-7-on-debian/#comments</comments> <pubDate>Wed, 09 Nov 2011 20:15:44 +0000</pubDate> <dc:creator>shuron</dc:creator> <category><![CDATA[java]]></category> <category><![CDATA[linux]]></category> <category><![CDATA[Software]]></category> <category><![CDATA[Java]]></category> <category><![CDATA[setup]]></category><guid isPermaLink="false">http://alexander.holbreich.org/?p=962</guid> <description><![CDATA[Here is just an example of how to install java 7 on your linux. I use current Debian and oracle (former sun) java 7. First i had to download the latest java from oracle site and then extrat it. I have to do it because at the moment the is no official debain package for [...]]]></description> <content:encoded><![CDATA[<pre>Here is just an example of how to install java 7 on your linux.
I use current Debian and oracle (former sun) java 7.

First i had to download the latest java from oracle site and then extrat it. I have to do it because at the moment the is no official debain package for java 7.
So we are not able to do it with <em>apt-get</em> as we can it for <a href="http://alexander.holbreich.org/2010/01/java-jboss-debian-linux/">java 6</a>.</pre><p><span id="more-962"></span></p><pre class="brush: bash; title: ; notranslate">
wget http://download.oracle.com/otn-pub/java/jdk/7/jdk-7-linux-x64.tar.gz
tar zxvf jdk-7-linux-x64.tar.gz -C /usr/lib64/jvm/
</pre><p>Then we have to do some configuration.<br /> Debian Linux has useful script to maintain different version of one programs like <em>java</em> called <a href="http://linux.die.net/man/8/update-alternatives">update-altenatives</a>. So i simply use this.</p><pre class="brush: bash; title: ; notranslate">
update-alternatives --install /usr/bin/java java /usr/lib/jvm/jdk1.7.0/bin/java 1065
update-alternatives --install /usr/bin/javac javac /usr/lib/jvm/jdk1.7.0/bin/javac 1065
</pre><p>Where <em>1065</em> is a given priority.</p><p>To check my installation i use <em>&#8211;config </em>paramter</p><pre class="brush: bash; title: ; notranslate">
update-alternatives --config java
#this prints:
There are 2 choices for the alternative java (providing /usr/bin/java).

  Selection    Path                                      Priority   Status
------------------------------------------------------------
* 0            /usr/lib/jvm/jdk1.7.0/bin/java             1065      auto mode
  1            /usr/lib/jvm/java-6-openjdk/jre/bin/java   1061      manual mode
  2            /usr/lib/jvm/jdk1.7.0/bin/java             1065      manual mode&lt;/pre&gt;
</pre><p>And because 1065 is higher than 1061, the fresh installed java 7 will be used by default on my machine</p><pre class="brush: bash; title: ; notranslate">
java -version
#prints:
java version &quot;1.7.0&quot;
 Java(TM) SE Runtime Environment (build 1.7.0-b147)
 Java HotSpot(TM) 64-Bit Server VM (build 21.0-b17, mixed mode)
</pre><p>Hope this save somebody some setup time.</p><div class="sociable"><div class="sociable_tagline"><a class='sociable_tagline' target='_blank' href='http://blogplay.com' style='font-size:11px;color:#333333;text-decoration:none'>Be Sociable, Share!</a></div><ul class='clearfix'><li><a title="Facebook" class="option1_16" style="background-position:-48px 0px" rel="nofollow" target="_blank" href="http://www.facebook.com/share.php?u=http%3A%2F%2Falexander.holbreich.org%2F2011%2F11%2Fjava-7-on-debian%2F&amp;t=Installing%20Java%207%20on%20Debian%20"></a></li><li><a title="HackerNews" class="option1_16" style="background-position:-128px 0px" rel="nofollow" target="_blank" href="http://news.ycombinator.com/submitlink?u=http%3A%2F%2Falexander.holbreich.org%2F2011%2F11%2Fjava-7-on-debian%2F&amp;t=Installing%20Java%207%20on%20Debian%20"></a></li><li><a title="Reddit" class="option1_16" style="background-position:-64px -16px" rel="nofollow" target="_blank" href="http://reddit.com/submit?url=http%3A%2F%2Falexander.holbreich.org%2F2011%2F11%2Fjava-7-on-debian%2F&amp;title=Installing%20Java%207%20on%20Debian%20"></a></li><li><a title="Digg" class="option1_16" style="background-position:-32px 0px" rel="nofollow" target="_blank" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Falexander.holbreich.org%2F2011%2F11%2Fjava-7-on-debian%2F&amp;title=Installing%20Java%207%20on%20Debian%20&amp;bodytext=Here%20is%20just%20an%20example%20of%20how%20to%20install%20java%207%20on%20your%20linux.%0D%0AI%20use%20current%20Debian%20and%20oracle%20%28former%20sun%29%20java%207.%0D%0A%0D%0AFirst%20i%20had%20to%20download%20the%20latest%20java%20from%20oracle%20site%20and%20then%20extrat%20it.%20I%20have%20to%20do%20it%20because%20at%20the%20moment%20the%20is%20no%20offi"></a></li><li><a title="Tumblr" class="option1_16" style="background-position:-128px -16px" rel="nofollow" target="_blank" href="http://www.tumblr.com/share?v=3&amp;u=http%3A%2F%2Falexander.holbreich.org%2F2011%2F11%2Fjava-7-on-debian%2F&amp;t=Installing%20Java%207%20on%20Debian%20&amp;s=Here%20is%20just%20an%20example%20of%20how%20to%20install%20java%207%20on%20your%20linux.%0D%0AI%20use%20current%20Debian%20and%20oracle%20%28former%20sun%29%20java%207.%0D%0A%0D%0AFirst%20i%20had%20to%20download%20the%20latest%20java%20from%20oracle%20site%20and%20then%20extrat%20it.%20I%20have%20to%20do%20it%20because%20at%20the%20moment%20the%20is%20no%20offi"></a></li><li><a title="BlinkList" class="option1_16" style="background-position:0px 0px" rel="nofollow" target="_blank" href="http://www.blinklist.com/index.php?Action=Blink/addblink.php&amp;Url=http%3A%2F%2Falexander.holbreich.org%2F2011%2F11%2Fjava-7-on-debian%2F&amp;Title=Installing%20Java%207%20on%20Debian%20"></a></li><li><a title="Google Reader" class="option1_16" style="background-position:-112px 0px" rel="nofollow" target="_blank" href="http://www.google.com/reader/link?url=http%3A%2F%2Falexander.holbreich.org%2F2011%2F11%2Fjava-7-on-debian%2F&amp;title=Installing%20Java%207%20on%20Debian%20&amp;srcURL=http%3A%2F%2Falexander.holbreich.org%2F2011%2F11%2Fjava-7-on-debian%2F&amp;srcTitle=Alexander+Holbreich+Everything+becomes+a+little+different+as+soon+as+it+is+spoken+out+loud.++%7EHermann+Hesse"></a></li><li><a title="StumbleUpon" class="option1_16" style="background-position:-112px -16px" rel="nofollow" target="_blank" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Falexander.holbreich.org%2F2011%2F11%2Fjava-7-on-debian%2F&title=Installing%20Java%207%20on%20Debian%20"></a></li><li><a title="Myspace" class="option1_16" style="background-position:0px -16px" rel="nofollow" target="_blank" href="http://www.myspace.com/Modules/PostTo/Pages/?u=http%3A%2F%2Falexander.holbreich.org%2F2011%2F11%2Fjava-7-on-debian%2F&amp;t=Installing%20Java%207%20on%20Debian%20"></a></li><li><a title="Sphinn" class="option1_16" style="background-position:-96px -16px" rel="nofollow" target="_blank" href="http://sphinn.com/index.php?c=post&amp;m=submit&amp;link=http%3A%2F%2Falexander.holbreich.org%2F2011%2F11%2Fjava-7-on-debian%2F"></a></li><li><a class="option1_16" style="cursor:pointer;background-position:-64px 0px" rel="nofollow" title="Add to favorites - doesn't work in Chrome"  onClick="javascript:AddToFavorites();"></a></li><li><a title="Posterous" class="option1_16" style="background-position:-32px -16px" rel="nofollow" target="_blank" href="http://posterous.com/share?linkto=http%3A%2F%2Falexander.holbreich.org%2F2011%2F11%2Fjava-7-on-debian%2F&amp;title=Installing%20Java%207%20on%20Debian%20&amp;selection=Here%20is%20just%20an%20example%20of%20how%20to%20install%20java%207%20on%20your%20linux.%0D%0AI%20use%20current%20Debian%20and%20oracle%20%28former%20sun%29%20java%207.%0D%0A%0D%0AFirst%20i%20had%20to%20download%20the%20latest%20java%20from%20oracle%20site%20and%20then%20extrat%20it.%20I%20have%20to%20do%20it%20because%20at%20the%20moment%20the%20is%20no%20offi"></a></li></ul><div onMouseout="fixOnMouseOut(this,event,'post-962')" id="sociable-post-962" style="display:none;"><div style="top: auto; left: auto; display: block;" id="sociable"><div class="popup"><div class="content"><ul><li style="heigth:16px;width:16px"><a title="Twitter" class="option1_16" style="background-position:-144px -16px" rel="nofollow" target="_blank" href="http://twitter.com/intent/tweet?text=Installing%20Java%207%20on%20Debian%20%20-%20http%3A%2F%2Falexander.holbreich.org%2F2011%2F11%2Fjava-7-on-debian%2F%20(via%20@sociablesite)"></a></li><li style="heigth:16px;width:16px"><a title="LinkedIn" class="option1_16" style="background-position:-144px 0px" rel="nofollow" target="_blank" href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http%3A%2F%2Falexander.holbreich.org%2F2011%2F11%2Fjava-7-on-debian%2F&amp;title=Installing%20Java%207%20on%20Debian%20&amp;source=Alexander+Holbreich+Everything+becomes+a+little+different+as+soon+as+it+is+spoken+out+loud.++%7EHermann+Hesse&amp;summary=Here%20is%20just%20an%20example%20of%20how%20to%20install%20java%207%20on%20your%20linux.%0D%0AI%20use%20current%20Debian%20and%20oracle%20%28former%20sun%29%20java%207.%0D%0A%0D%0AFirst%20i%20had%20to%20download%20the%20latest%20java%20from%20oracle%20site%20and%20then%20extrat%20it.%20I%20have%20to%20do%20it%20because%20at%20the%20moment%20the%20is%20no%20offi"></a></li><li style="heigth:16px;width:16px"><a title="Delicious" class="option1_16" style="background-position:-16px 0px" rel="nofollow" target="_blank" href="http://delicious.com/post?url=http%3A%2F%2Falexander.holbreich.org%2F2011%2F11%2Fjava-7-on-debian%2F&amp;title=Installing%20Java%207%20on%20Debian%20&amp;notes=Here%20is%20just%20an%20example%20of%20how%20to%20install%20java%207%20on%20your%20linux.%0D%0AI%20use%20current%20Debian%20and%20oracle%20%28former%20sun%29%20java%207.%0D%0A%0D%0AFirst%20i%20had%20to%20download%20the%20latest%20java%20from%20oracle%20site%20and%20then%20extrat%20it.%20I%20have%20to%20do%20it%20because%20at%20the%20moment%20the%20is%20no%20offi"></a></li><li style="heigth:16px;width:16px"><a title="Google Bookmarks" class="option1_16" style="background-position:-96px 0px" rel="nofollow" target="_blank" href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Falexander.holbreich.org%2F2011%2F11%2Fjava-7-on-debian%2F&amp;title=Installing%20Java%207%20on%20Debian%20&amp;annotation=Here%20is%20just%20an%20example%20of%20how%20to%20install%20java%207%20on%20your%20linux.%0D%0AI%20use%20current%20Debian%20and%20oracle%20%28former%20sun%29%20java%207.%0D%0A%0D%0AFirst%20i%20had%20to%20download%20the%20latest%20java%20from%20oracle%20site%20and%20then%20extrat%20it.%20I%20have%20to%20do%20it%20because%20at%20the%20moment%20the%20is%20no%20offi"></a></li><li style="heigth:16px;width:16px"><a title="MSNReporter" class="option1_16" style="background-position:-176px 0px" rel="nofollow" target="_blank" href="http://reporter.es.msn.com/?fn=contribute&amp;Title=Installing%20Java%207%20on%20Debian%20&amp;URL=http%3A%2F%2Falexander.holbreich.org%2F2011%2F11%2Fjava-7-on-debian%2F&amp;cat_id=6&amp;tag_id=31&amp;Remark=Here%20is%20just%20an%20example%20of%20how%20to%20install%20java%207%20on%20your%20linux.%0D%0AI%20use%20current%20Debian%20and%20oracle%20%28former%20sun%29%20java%207.%0D%0A%0D%0AFirst%20i%20had%20to%20download%20the%20latest%20java%20from%20oracle%20site%20and%20then%20extrat%20it.%20I%20have%20to%20do%20it%20because%20at%20the%20moment%20the%20is%20no%20offi"></a></li><li style="heigth:16px;width:16px"><a title="email" class="option1_16" style="background-position:-80px 0px" rel="nofollow" target="_blank" href="https://mail.google.com/mail/?view=cm&fs=1&to&su=Installing%20Java%207%20on%20Debian%20&body=http%3A%2F%2Falexander.holbreich.org%2F2011%2F11%2Fjava-7-on-debian%2F&ui=2&tf=1&shva=1"></a></li><li style="heigth:16px;width:16px"><a style="cursor:poainter" rel="nofollow"   onMouseOver="more(this,'post-962')"><img src="http://alexander.holbreich.org/wp-content/plugins/sociable/images/option1/16/more.png?4c9b33" title="Posterous" alt="Posterous" /></a></li></ul></div> <a style="cursor:pointer" onclick="hide_sociable('post-962',true)" class="close"> <img onclick="hide_sociable('post-962',true)" title="close" src="http://alexander.holbreich.org/wp-content/plugins/sociable/images/closelabel.png?4c9b33"> </a></div></div></div></div><div class='sociable' style='float:none'><ul class='clearfix'><li id="Twitter_Counter"><a href="https://twitter.com/share" data-text="Installing Java 7 on Debian  - http://alexander.holbreich.org/2011/11/java-7-on-debian/ (via #sociablesite)" data-url="http://alexander.holbreich.org/2011/11/java-7-on-debian/" class="twitter-share-button" data-count="horizontal">Tweet</a><script type="text/javascript" src="//platform.twitter.com/widgets.js?4c9b33"></script></li><li id="Google_p"><g:plusone annotation="bubble" href="http://alexander.holbreich.org/2011/11/java-7-on-debian/" size="medium"></g:plusone></li><li id="Digg_Counter"><script type='text/javascript'>(function(){var s=document.createElement('SCRIPT'),s1=document.getElementsByTagName('SCRIPT')[0];s.type='text/javascript';s.async=true;s.src='http://widgets.digg.com/buttons.js';s1.parentNode.insertBefore(s,s1);})();</script><a href='http://digg.com/submit?url=http%3A%2F%2Falexander.holbreich.org%2F2011%2F11%2Fjava-7-on-debian%2F&amp;title=Installing%20Java%207%20on%20Debian%20'  class='DiggThisButton DiggCompact'></a></li><li id="StumbleUpon_Counter"><script src="http://www.stumbleupon.com/hostedbadge.php?s=2&r=http://alexander.holbreich.org/2011/11/java-7-on-debian/"></script></li><li id="Facebook_Counter"><iframe src="//www.facebook.com/plugins/like.php?href=http://alexander.holbreich.org/2011/11/java-7-on-debian/&send=false&layout=button_count&show_faces=false&action=like&colorscheme=light&font" scrolling="no" frameborder="0" style="border:none; overflow:hidden;height:32px;width:100px" allowTransparency="true"></iframe></li><li id="LinkedIn_Counter"><script src="http://platform.linkedin.com/in.js" type="text/javascript"></script><script type="IN/Share" data-url="http://alexander.holbreich.org/2011/11/java-7-on-debian/" data-counter="right"></script></li></ul></div>]]></content:encoded> <wfw:commentRss>http://alexander.holbreich.org/2011/11/java-7-on-debian/feed/</wfw:commentRss> <slash:comments>9</slash:comments> </item> <item><title>Bootcharting</title><link>http://alexander.holbreich.org/2011/07/bootcharting/</link> <comments>http://alexander.holbreich.org/2011/07/bootcharting/#comments</comments> <pubDate>Sun, 10 Jul 2011 13:10:13 +0000</pubDate> <dc:creator>shuron</dc:creator> <category><![CDATA[linux]]></category> <category><![CDATA[Personal]]></category> <category><![CDATA[Software]]></category> <category><![CDATA[boot]]></category> <category><![CDATA[bootchart]]></category><guid isPermaLink="false">http://alexander.holbreich.org/?p=931</guid> <description><![CDATA[The pictureon the right (klick to enrange)  shows  how Ubunto boot process is going on my 5 years old Thinkpad T60. Bootchart utility does such charts automatically. If you interestiong how easy it it to enable such bootcharting read below. Installing bootchart See how to install bootchart logger on ubuntu, and other linux distributions. Yo [...]]]></description> <content:encoded><![CDATA[<pre><a href="http://alexander.holbreich.org/wp-content/uploads/2011/07/aho-ThinkPad-T60-natty-20110707-1.png?4c9b33"><img class="size-large wp-image-932 alignright" title="aho-ThinkPad-T60-natty-20110707-1" src="http://alexander.holbreich.org/wp-content/uploads/2011/07/aho-ThinkPad-T60-natty-20110707-1-213x1024.png?4c9b33" alt="" width="213" height="200" /></a></pre><p>The pictureon the right (klick to enrange)  shows  how Ubunto boot process is going on my 5 years old Thinkpad T60. Bootchart utility does such charts automatically. If you interestiong how easy it it to enable such bootcharting read below.</p><h2>Installing bootchart</h2><p>See how to install bootchart logger <a href="https://wiki.ubuntu.com/BootCharting">on ubuntu</a>, and <a href="http://www.bootchart.org/download.html">other linux distributions</a>.</p><p>Yo need bootchart and, pybootchartgui</p><pre class="brush: bash; title: ; notranslate">
apt-get install bootchart

apt-get install pybootchartgui
</pre><p><span id="more-931"></span></p><pre></pre><p>That will automatically add bootchart logger to your grub configuration . Restart your machine and look for an image file in /var/log/bootchart directory.</p><h2>Disabling bootchart</h2><p>Someday you maybe wan&#8217;t to disable bootchart again.</p><p>To disable it just throw it out of your GRUB configuration. On GRUB 2  (which is default on ubuntu since v. 9.10) you have to change file <strong>/etc/default/grub. </strong></p><p>Change line</p><pre>GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
to
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash bootchart=disable"</pre><p>and then run:</p><pre class="brush: bash; title: ; notranslate">
sudo update-grub
</pre><p>You done.</p><p>On GRUB 1 you have to edit <strong>/boot/grub/menu.lst.</strong></p><p style="text-align: center;"><strong>Any comments?</strong></p><div class="sociable"><div class="sociable_tagline"><a class='sociable_tagline' target='_blank' href='http://blogplay.com' style='font-size:11px;color:#333333;text-decoration:none'>Be Sociable, Share!</a></div><ul class='clearfix'><li><a title="Facebook" class="option1_16" style="background-position:-48px 0px" rel="nofollow" target="_blank" href="http://www.facebook.com/share.php?u=http%3A%2F%2Falexander.holbreich.org%2F2011%2F07%2Fbootcharting%2F&amp;t=Bootcharting"></a></li><li><a title="HackerNews" class="option1_16" style="background-position:-128px 0px" rel="nofollow" target="_blank" href="http://news.ycombinator.com/submitlink?u=http%3A%2F%2Falexander.holbreich.org%2F2011%2F07%2Fbootcharting%2F&amp;t=Bootcharting"></a></li><li><a title="Reddit" class="option1_16" style="background-position:-64px -16px" rel="nofollow" target="_blank" href="http://reddit.com/submit?url=http%3A%2F%2Falexander.holbreich.org%2F2011%2F07%2Fbootcharting%2F&amp;title=Bootcharting"></a></li><li><a title="Digg" class="option1_16" style="background-position:-32px 0px" rel="nofollow" target="_blank" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Falexander.holbreich.org%2F2011%2F07%2Fbootcharting%2F&amp;title=Bootcharting&amp;bodytext=%0D%0AThe%20pictureon%20the%20right%20%28klick%20to%20enrange%29%C2%A0%20shows%C2%A0%20how%20Ubunto%20boot%20process%20is%20going%20on%20my%205%20years%20old%20Thinkpad%20T60.%20Bootchart%20utility%20does%20such%20charts%20automatically.%20If%20you%20interestiong%20how%20easy%20it%20it%20to%20enable%20such%20bootcharting%20read%20below.%0D%0AInst"></a></li><li><a title="Tumblr" class="option1_16" style="background-position:-128px -16px" rel="nofollow" target="_blank" href="http://www.tumblr.com/share?v=3&amp;u=http%3A%2F%2Falexander.holbreich.org%2F2011%2F07%2Fbootcharting%2F&amp;t=Bootcharting&amp;s=%0D%0AThe%20pictureon%20the%20right%20%28klick%20to%20enrange%29%C2%A0%20shows%C2%A0%20how%20Ubunto%20boot%20process%20is%20going%20on%20my%205%20years%20old%20Thinkpad%20T60.%20Bootchart%20utility%20does%20such%20charts%20automatically.%20If%20you%20interestiong%20how%20easy%20it%20it%20to%20enable%20such%20bootcharting%20read%20below.%0D%0AInst"></a></li><li><a title="BlinkList" class="option1_16" style="background-position:0px 0px" rel="nofollow" target="_blank" href="http://www.blinklist.com/index.php?Action=Blink/addblink.php&amp;Url=http%3A%2F%2Falexander.holbreich.org%2F2011%2F07%2Fbootcharting%2F&amp;Title=Bootcharting"></a></li><li><a title="Google Reader" class="option1_16" style="background-position:-112px 0px" rel="nofollow" target="_blank" href="http://www.google.com/reader/link?url=http%3A%2F%2Falexander.holbreich.org%2F2011%2F07%2Fbootcharting%2F&amp;title=Bootcharting&amp;srcURL=http%3A%2F%2Falexander.holbreich.org%2F2011%2F07%2Fbootcharting%2F&amp;srcTitle=Alexander+Holbreich+Everything+becomes+a+little+different+as+soon+as+it+is+spoken+out+loud.++%7EHermann+Hesse"></a></li><li><a title="StumbleUpon" class="option1_16" style="background-position:-112px -16px" rel="nofollow" target="_blank" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Falexander.holbreich.org%2F2011%2F07%2Fbootcharting%2F&title=Bootcharting"></a></li><li><a title="Myspace" class="option1_16" style="background-position:0px -16px" rel="nofollow" target="_blank" href="http://www.myspace.com/Modules/PostTo/Pages/?u=http%3A%2F%2Falexander.holbreich.org%2F2011%2F07%2Fbootcharting%2F&amp;t=Bootcharting"></a></li><li><a title="Sphinn" class="option1_16" style="background-position:-96px -16px" rel="nofollow" target="_blank" href="http://sphinn.com/index.php?c=post&amp;m=submit&amp;link=http%3A%2F%2Falexander.holbreich.org%2F2011%2F07%2Fbootcharting%2F"></a></li><li><a class="option1_16" style="cursor:pointer;background-position:-64px 0px" rel="nofollow" title="Add to favorites - doesn't work in Chrome"  onClick="javascript:AddToFavorites();"></a></li><li><a title="Posterous" class="option1_16" style="background-position:-32px -16px" rel="nofollow" target="_blank" href="http://posterous.com/share?linkto=http%3A%2F%2Falexander.holbreich.org%2F2011%2F07%2Fbootcharting%2F&amp;title=Bootcharting&amp;selection=%0D%0AThe%20pictureon%20the%20right%20%28klick%20to%20enrange%29%C2%A0%20shows%C2%A0%20how%20Ubunto%20boot%20process%20is%20going%20on%20my%205%20years%20old%20Thinkpad%20T60.%20Bootchart%20utility%20does%20such%20charts%20automatically.%20If%20you%20interestiong%20how%20easy%20it%20it%20to%20enable%20such%20bootcharting%20read%20below.%0D%0AInst"></a></li></ul><div onMouseout="fixOnMouseOut(this,event,'post-931')" id="sociable-post-931" style="display:none;"><div style="top: auto; left: auto; display: block;" id="sociable"><div class="popup"><div class="content"><ul><li style="heigth:16px;width:16px"><a title="Twitter" class="option1_16" style="background-position:-144px -16px" rel="nofollow" target="_blank" href="http://twitter.com/intent/tweet?text=Bootcharting%20-%20http%3A%2F%2Falexander.holbreich.org%2F2011%2F07%2Fbootcharting%2F%20(via%20@sociablesite)"></a></li><li style="heigth:16px;width:16px"><a title="LinkedIn" class="option1_16" style="background-position:-144px 0px" rel="nofollow" target="_blank" href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http%3A%2F%2Falexander.holbreich.org%2F2011%2F07%2Fbootcharting%2F&amp;title=Bootcharting&amp;source=Alexander+Holbreich+Everything+becomes+a+little+different+as+soon+as+it+is+spoken+out+loud.++%7EHermann+Hesse&amp;summary=%0D%0AThe%20pictureon%20the%20right%20%28klick%20to%20enrange%29%C2%A0%20shows%C2%A0%20how%20Ubunto%20boot%20process%20is%20going%20on%20my%205%20years%20old%20Thinkpad%20T60.%20Bootchart%20utility%20does%20such%20charts%20automatically.%20If%20you%20interestiong%20how%20easy%20it%20it%20to%20enable%20such%20bootcharting%20read%20below.%0D%0AInst"></a></li><li style="heigth:16px;width:16px"><a title="Delicious" class="option1_16" style="background-position:-16px 0px" rel="nofollow" target="_blank" href="http://delicious.com/post?url=http%3A%2F%2Falexander.holbreich.org%2F2011%2F07%2Fbootcharting%2F&amp;title=Bootcharting&amp;notes=%0D%0AThe%20pictureon%20the%20right%20%28klick%20to%20enrange%29%C2%A0%20shows%C2%A0%20how%20Ubunto%20boot%20process%20is%20going%20on%20my%205%20years%20old%20Thinkpad%20T60.%20Bootchart%20utility%20does%20such%20charts%20automatically.%20If%20you%20interestiong%20how%20easy%20it%20it%20to%20enable%20such%20bootcharting%20read%20below.%0D%0AInst"></a></li><li style="heigth:16px;width:16px"><a title="Google Bookmarks" class="option1_16" style="background-position:-96px 0px" rel="nofollow" target="_blank" href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Falexander.holbreich.org%2F2011%2F07%2Fbootcharting%2F&amp;title=Bootcharting&amp;annotation=%0D%0AThe%20pictureon%20the%20right%20%28klick%20to%20enrange%29%C2%A0%20shows%C2%A0%20how%20Ubunto%20boot%20process%20is%20going%20on%20my%205%20years%20old%20Thinkpad%20T60.%20Bootchart%20utility%20does%20such%20charts%20automatically.%20If%20you%20interestiong%20how%20easy%20it%20it%20to%20enable%20such%20bootcharting%20read%20below.%0D%0AInst"></a></li><li style="heigth:16px;width:16px"><a title="MSNReporter" class="option1_16" style="background-position:-176px 0px" rel="nofollow" target="_blank" href="http://reporter.es.msn.com/?fn=contribute&amp;Title=Bootcharting&amp;URL=http%3A%2F%2Falexander.holbreich.org%2F2011%2F07%2Fbootcharting%2F&amp;cat_id=6&amp;tag_id=31&amp;Remark=%0D%0AThe%20pictureon%20the%20right%20%28klick%20to%20enrange%29%C2%A0%20shows%C2%A0%20how%20Ubunto%20boot%20process%20is%20going%20on%20my%205%20years%20old%20Thinkpad%20T60.%20Bootchart%20utility%20does%20such%20charts%20automatically.%20If%20you%20interestiong%20how%20easy%20it%20it%20to%20enable%20such%20bootcharting%20read%20below.%0D%0AInst"></a></li><li style="heigth:16px;width:16px"><a title="email" class="option1_16" style="background-position:-80px 0px" rel="nofollow" target="_blank" href="https://mail.google.com/mail/?view=cm&fs=1&to&su=Bootcharting&body=http%3A%2F%2Falexander.holbreich.org%2F2011%2F07%2Fbootcharting%2F&ui=2&tf=1&shva=1"></a></li><li style="heigth:16px;width:16px"><a style="cursor:poainter" rel="nofollow"   onMouseOver="more(this,'post-931')"><img src="http://alexander.holbreich.org/wp-content/plugins/sociable/images/option1/16/more.png?4c9b33" title="Posterous" alt="Posterous" /></a></li></ul></div> <a style="cursor:pointer" onclick="hide_sociable('post-931',true)" class="close"> <img onclick="hide_sociable('post-931',true)" title="close" src="http://alexander.holbreich.org/wp-content/plugins/sociable/images/closelabel.png?4c9b33"> </a></div></div></div></div><div class='sociable' style='float:none'><ul class='clearfix'><li id="Twitter_Counter"><a href="https://twitter.com/share" data-text="Bootcharting - http://alexander.holbreich.org/2011/07/bootcharting/ (via #sociablesite)" data-url="http://alexander.holbreich.org/2011/07/bootcharting/" class="twitter-share-button" data-count="horizontal">Tweet</a><script type="text/javascript" src="//platform.twitter.com/widgets.js?4c9b33"></script></li><li id="Google_p"><g:plusone annotation="bubble" href="http://alexander.holbreich.org/2011/07/bootcharting/" size="medium"></g:plusone></li><li id="Digg_Counter"><script type='text/javascript'>(function(){var s=document.createElement('SCRIPT'),s1=document.getElementsByTagName('SCRIPT')[0];s.type='text/javascript';s.async=true;s.src='http://widgets.digg.com/buttons.js';s1.parentNode.insertBefore(s,s1);})();</script><a href='http://digg.com/submit?url=http%3A%2F%2Falexander.holbreich.org%2F2011%2F07%2Fbootcharting%2F&amp;title=Bootcharting'  class='DiggThisButton DiggCompact'></a></li><li id="StumbleUpon_Counter"><script src="http://www.stumbleupon.com/hostedbadge.php?s=2&r=http://alexander.holbreich.org/2011/07/bootcharting/"></script></li><li id="Facebook_Counter"><iframe src="//www.facebook.com/plugins/like.php?href=http://alexander.holbreich.org/2011/07/bootcharting/&send=false&layout=button_count&show_faces=false&action=like&colorscheme=light&font" scrolling="no" frameborder="0" style="border:none; overflow:hidden;height:32px;width:100px" allowTransparency="true"></iframe></li><li id="LinkedIn_Counter"><script src="http://platform.linkedin.com/in.js" type="text/javascript"></script><script type="IN/Share" data-url="http://alexander.holbreich.org/2011/07/bootcharting/" data-counter="right"></script></li></ul></div>]]></content:encoded> <wfw:commentRss>http://alexander.holbreich.org/2011/07/bootcharting/feed/</wfw:commentRss> <slash:comments>5</slash:comments> </item> <item><title>Subversion on Debian Linux</title><link>http://alexander.holbreich.org/2010/11/subversion-on-debian-linux/</link> <comments>http://alexander.holbreich.org/2010/11/subversion-on-debian-linux/#comments</comments> <pubDate>Sun, 28 Nov 2010 23:58:15 +0000</pubDate> <dc:creator>shuron</dc:creator> <category><![CDATA[linux]]></category> <category><![CDATA[Software]]></category> <category><![CDATA[access control]]></category> <category><![CDATA[apache]]></category> <category><![CDATA[DAV]]></category> <category><![CDATA[mod_auth_svn]]></category> <category><![CDATA[mod_dav_svn]]></category> <category><![CDATA[repositories]]></category> <category><![CDATA[subversion]]></category><guid isPermaLink="false">http://alexander.holbreich.org/?p=430</guid> <description><![CDATA[Today i describe the few steps of installation of subversion (with repository) on Linux (Debian lenny). That description show the installtion proccess in 5 steps. And the configuration of Apache Mod-DAV as additiona information. So let&#8217;s start. Step 1: Install subversion If subversion is not installed, install it with: Step 2: Create repository Prepare place [...]]]></description> <content:encoded><![CDATA[<p><a href="http://alexander.holbreich.org/wp-content/uploads/2010/11/svnbook-cover.jpg?4c9b33"><img class="alignright size-full wp-image-793" style="margin: 15px;" title="svnbook-cover" src="http://alexander.holbreich.org/wp-content/uploads/2010/11/svnbook-cover.jpg?4c9b33" alt="" width="140" height="184" /></a>Today i describe the few steps of installation of subversion (with repository) on Linux (Debian lenny). That description show the installtion proccess in 5 steps. And the configuration of Apache Mod-DAV as additiona information. So let&#8217;s start.</p><h3>Step 1: Install subversion</h3><p>If subversion is not installed, install it with:</p><pre class="brush: bash; title: ; notranslate">
$apt-get install subversion
</pre><p><span id="more-430"></span></p><h3>Step 2: Create repository</h3><p>Prepare place for repositories. Standard good palace is <em>/var/svn</em> but i personally prefer<em> /srv/svn</em>. <em>(What is your favorite? Why?)</em></p><pre class="brush: bash; title: ; notranslate">
#create directory
$ mkdir /srv/svn/
$ mkdir /srv/svn/java
</pre><p>Create File system based repository (FSFS) or DB based. Today state of the art are FSFS repositories.<br /> So just use FSFS based repositories, believe there are many advantages compared to Berkley DB.</p><pre class="brush: bash; title: ; notranslate">
#create FSFS repository
$ svnadmin create --fs-type fsfs /srv/svn/java
</pre><h3>Step 3: Access control</h3><p>At this point subversion is running and it&#8217;s best time to think about user access rights to repositories.<br /> First create new group for svn users and assign it to your repo. In my case I&#8217;ve defined one repository special for java projects so i wanna use special group for that.</p><pre class="brush: bash; title: ; notranslate">
$ addgroup svnjava     # create new group for java repository
#apply that group to the repository location
$ chgrp -R svnjava /srv/svn/java
</pre><p>Now change authorization of the group on desired repository.</p><pre class="brush: bash; title: ; notranslate">
$ chmod -R g+rw  /srv/svn/java       # group mebers my write
$ chmod -R o-rwx  /srv/svn/java      # other not.
$ chmod g+s /srv/svn/java/db         #  this ensures log-write
</pre><p>Create new linux users (if not ready) and him to the group</p><pre class="brush: bash; title: ; notranslate">
$ useradd aho #new user
$ adduser aho svnjava #assigning user to the group
</pre><p>Soon user aho will be able to access subversion repository, but first we have to proceed with the next step.</p><h3>Step 4: Additional configuration</h3><pre>Repository needs to be configured a little to be useful. Open conf/svnserve.conf in you new repository
<pre class="brush: bash; title: ; notranslate">
$ nano /srv/svn/java/conf/svnserve.conf
</pre><p>and remove comments (#) from these lines.:</p><pre class="brush: bash; title: ; notranslate">
anon-access = read
auth-access = write
realm = My Java Repository
</pre><p>save file.</pre><h3>Step 5: Umask!</h3><pre>
After previous steps we have an repository which is suitable for one user but concurrency usage by many users will run into problems by default <em>umask 022</em>.
So the common solution is to make a wrapper invocation of subversion. Let's create an wrapper step by step.
Find where you subversion i currently installed with the following command.
<pre class="brush: bash; title: ; notranslate">
$ which svnserve
#returnes me
#/usr/bin/svnserve
</pre><p>Now rename original svnserve to svnserve_orig, create new file named svnserve with following:</p><pre class="brush: bash; title: ; notranslate">
$ mv /usr/bin/svnserve /usr/bin/svnserve_orig #renamin' of orinignal svn
$ touch /usr/bin/svnserve # create new wrapper
$ chmod 755 /usr/bin/svnserve #set rights as original
</pre><p>Now add following to new wrapper script <em>svnserve</em></p><pre class="brush: plain; title: ; notranslate">
#!/bin/bash
umask 002
/usr/bin/svnserve_orig $*
</pre><p>So we're done!</p><p>P.S. See how easy you <a href="https://wiki.archlinux.org/index.php/Subversion_backup_and_restore" rel="nofollow">can move you repository or do backups</a></pre><h3>UPD! Subversion with Mod DAV</h3><pre>On default svn is not called by a superserver line xindet .d. But it does not matter if you prefer svn+ssh access. In this case you access the svn machine directly trough ssh and call svnserve commands virtually direct on remote machine, so don't need to configure anything more.

But, if you have problems with firewalls, witch clients software or just want to have more flexibility, you may be interested in accessing you repository through http:// or https://. In dies case mod_dav commes in to play.</pre><h4>Mod DAV step by step</h4><pre>
<a href="http://alexander.holbreich.org/wp-content/uploads/2010/11/feather-small.gif?4c9b33"><img class="size-full wp-image-792 alignnone" style="margin: 10px;" title="feather-small" src="http://alexander.holbreich.org/wp-content/uploads/2010/11/feather-small.gif?4c9b33" alt="" width="203" height="61" /></a></pre><h5>1) Install Apache server if not already done it.</h5><pre class="brush: bash; title: ; notranslate">
$ apt-get install apache2
</pre><h5>2) Configuration.</h5><pre>
Normally Apache package has all of the common mods including <strong>mod_dav_svn</strong>. Debian distribution has a package <a href="http://pdb.finkproject.org/pdb/package.php/libapache2-mod-svn?distribution=10.4&amp;version=1.6.15&amp;revision=1" rel="nofollow" target="_blank"><strong>libapache2-svn</strong></a>which registers needed modules for you.
So just install it:
<pre class="brush: bash; title: ; notranslate">
$ apt-get install subversion libapache2-svn
</pre><p>Now all needed modules are registered to Apache. You just have to provide a concrete configuration for your svn repository.<br /> Here is one simple example how i do it i my case. Works fine.</p><pre class="brush: bash; title: ; notranslate">
# Check the location of dav_svn.conf then just
# copy all following lines to your shell and hit enter.
#  conf will be appended to dav_svn.conf
echo &quot;
DAV svn
SVNPath /srv/svn/java

AuthType Basic
AuthName &quot;My Java Repository&quot;
AuthUserFile /etc/apache2/svn.pass
Require valid-user

&quot; &gt;&gt; /etc/apache2/mods-enabled/dav_svn.conf
</pre><p>This configuration is self-explainable.</pre><ul><li>SVNPath = Path to repository location,</li><li>&lt;location /svn/java&gt; = is path in acces URL, e.g. http://mydomain/svn/java/</li><li>AuthType Basic = means password based access</li><li>AuthUserFile point to a file with user and passwords.</li></ul><pre>
Red more about <a href="http://httpd.apache.org/docs/2.0/howto/auth.html" rel="nofollwo" target="_blank">Auth Modul</a>if interested in advanced configuration</pre><h5>3) Now you only need to create some user an passwords.</h5><pre class="brush: bash; title: ; notranslate">
# -c option is used to create new password file.
# Don't use it if create scond user.
$ htpasswd -cm /etc/apache2/svn.pass aho
</pre><p>If you try open it now, you&#8217;ll run in to an error. It&#8217;s because now the svn repository is accessed by a user of Apache server. Default it would be <em>www-data.</em></p><h5>4) So just give him some more rights.</h5><pre class="brush: bash; title: ; notranslate">
$ adduser www-data svnjava
</pre><p>5) reload apache configuration.</p><h5>Manual approach</h5><pre>
If you are not able to use  <em>libapache2-svn</em>, then you have to register required modules manually:
<pre class="brush: bash; title: ; notranslate">
#make sure your apache is ins /usr/lib64/apache2. adapt path otherways.
$ echo &quot;LoadModule dav_svn_module  /urs/lib64/apache2/modules/mod_dav_svn.so
LoadModule authz_svn_module  /urs/lib64/apache2/ modules/mod_authz_svn.so&quot;
&gt;&gt; /etc/apache2/conf.d/svn.conf
</pre><p>More information and examples can be found in SVN Book in <a href="http://svnbook.red-bean.com/en/1.4/svn.serverconfig.httpd.html">server-conf chapter</a>.</pre><div class="sociable"><div class="sociable_tagline"><a class='sociable_tagline' target='_blank' href='http://blogplay.com' style='font-size:11px;color:#333333;text-decoration:none'>Be Sociable, Share!</a></div><ul class='clearfix'><li><a title="Facebook" class="option1_16" style="background-position:-48px 0px" rel="nofollow" target="_blank" href="http://www.facebook.com/share.php?u=http%3A%2F%2Falexander.holbreich.org%2F2010%2F11%2Fsubversion-on-debian-linux%2F&amp;t=Subversion%20on%20Debian%20Linux"></a></li><li><a title="HackerNews" class="option1_16" style="background-position:-128px 0px" rel="nofollow" target="_blank" href="http://news.ycombinator.com/submitlink?u=http%3A%2F%2Falexander.holbreich.org%2F2010%2F11%2Fsubversion-on-debian-linux%2F&amp;t=Subversion%20on%20Debian%20Linux"></a></li><li><a title="Reddit" class="option1_16" style="background-position:-64px -16px" rel="nofollow" target="_blank" href="http://reddit.com/submit?url=http%3A%2F%2Falexander.holbreich.org%2F2010%2F11%2Fsubversion-on-debian-linux%2F&amp;title=Subversion%20on%20Debian%20Linux"></a></li><li><a title="Digg" class="option1_16" style="background-position:-32px 0px" rel="nofollow" target="_blank" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Falexander.holbreich.org%2F2010%2F11%2Fsubversion-on-debian-linux%2F&amp;title=Subversion%20on%20Debian%20Linux&amp;bodytext=Today%20i%20describe%20the%20few%20steps%20of%20installation%20of%20subversion%20%28with%20repository%29%20on%20Linux%20%28Debian%20lenny%29.%20That%20description%20show%20the%20installtion%20proccess%20in%205%20steps.%20And%20the%20configuration%20of%20Apache%20Mod-DAV%20as%20additiona%20information.%20So%20let%27s%20start.%0D%0AStep"></a></li><li><a title="Tumblr" class="option1_16" style="background-position:-128px -16px" rel="nofollow" target="_blank" href="http://www.tumblr.com/share?v=3&amp;u=http%3A%2F%2Falexander.holbreich.org%2F2010%2F11%2Fsubversion-on-debian-linux%2F&amp;t=Subversion%20on%20Debian%20Linux&amp;s=Today%20i%20describe%20the%20few%20steps%20of%20installation%20of%20subversion%20%28with%20repository%29%20on%20Linux%20%28Debian%20lenny%29.%20That%20description%20show%20the%20installtion%20proccess%20in%205%20steps.%20And%20the%20configuration%20of%20Apache%20Mod-DAV%20as%20additiona%20information.%20So%20let%27s%20start.%0D%0AStep"></a></li><li><a title="BlinkList" class="option1_16" style="background-position:0px 0px" rel="nofollow" target="_blank" href="http://www.blinklist.com/index.php?Action=Blink/addblink.php&amp;Url=http%3A%2F%2Falexander.holbreich.org%2F2010%2F11%2Fsubversion-on-debian-linux%2F&amp;Title=Subversion%20on%20Debian%20Linux"></a></li><li><a title="Google Reader" class="option1_16" style="background-position:-112px 0px" rel="nofollow" target="_blank" href="http://www.google.com/reader/link?url=http%3A%2F%2Falexander.holbreich.org%2F2010%2F11%2Fsubversion-on-debian-linux%2F&amp;title=Subversion%20on%20Debian%20Linux&amp;srcURL=http%3A%2F%2Falexander.holbreich.org%2F2010%2F11%2Fsubversion-on-debian-linux%2F&amp;srcTitle=Alexander+Holbreich+Everything+becomes+a+little+different+as+soon+as+it+is+spoken+out+loud.++%7EHermann+Hesse"></a></li><li><a title="StumbleUpon" class="option1_16" style="background-position:-112px -16px" rel="nofollow" target="_blank" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Falexander.holbreich.org%2F2010%2F11%2Fsubversion-on-debian-linux%2F&title=Subversion%20on%20Debian%20Linux"></a></li><li><a title="Myspace" class="option1_16" style="background-position:0px -16px" rel="nofollow" target="_blank" href="http://www.myspace.com/Modules/PostTo/Pages/?u=http%3A%2F%2Falexander.holbreich.org%2F2010%2F11%2Fsubversion-on-debian-linux%2F&amp;t=Subversion%20on%20Debian%20Linux"></a></li><li><a title="Sphinn" class="option1_16" style="background-position:-96px -16px" rel="nofollow" target="_blank" href="http://sphinn.com/index.php?c=post&amp;m=submit&amp;link=http%3A%2F%2Falexander.holbreich.org%2F2010%2F11%2Fsubversion-on-debian-linux%2F"></a></li><li><a class="option1_16" style="cursor:pointer;background-position:-64px 0px" rel="nofollow" title="Add to favorites - doesn't work in Chrome"  onClick="javascript:AddToFavorites();"></a></li><li><a title="Posterous" class="option1_16" style="background-position:-32px -16px" rel="nofollow" target="_blank" href="http://posterous.com/share?linkto=http%3A%2F%2Falexander.holbreich.org%2F2010%2F11%2Fsubversion-on-debian-linux%2F&amp;title=Subversion%20on%20Debian%20Linux&amp;selection=Today%20i%20describe%20the%20few%20steps%20of%20installation%20of%20subversion%20%28with%20repository%29%20on%20Linux%20%28Debian%20lenny%29.%20That%20description%20show%20the%20installtion%20proccess%20in%205%20steps.%20And%20the%20configuration%20of%20Apache%20Mod-DAV%20as%20additiona%20information.%20So%20let%27s%20start.%0D%0AStep"></a></li></ul><div onMouseout="fixOnMouseOut(this,event,'post-430')" id="sociable-post-430" style="display:none;"><div style="top: auto; left: auto; display: block;" id="sociable"><div class="popup"><div class="content"><ul><li style="heigth:16px;width:16px"><a title="Twitter" class="option1_16" style="background-position:-144px -16px" rel="nofollow" target="_blank" href="http://twitter.com/intent/tweet?text=Subversion%20on%20Debian%20Linux%20-%20http%3A%2F%2Falexander.holbreich.org%2F2010%2F11%2Fsubversion-on-debian-linux%2F%20(via%20@sociablesite)"></a></li><li style="heigth:16px;width:16px"><a title="LinkedIn" class="option1_16" style="background-position:-144px 0px" rel="nofollow" target="_blank" href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http%3A%2F%2Falexander.holbreich.org%2F2010%2F11%2Fsubversion-on-debian-linux%2F&amp;title=Subversion%20on%20Debian%20Linux&amp;source=Alexander+Holbreich+Everything+becomes+a+little+different+as+soon+as+it+is+spoken+out+loud.++%7EHermann+Hesse&amp;summary=Today%20i%20describe%20the%20few%20steps%20of%20installation%20of%20subversion%20%28with%20repository%29%20on%20Linux%20%28Debian%20lenny%29.%20That%20description%20show%20the%20installtion%20proccess%20in%205%20steps.%20And%20the%20configuration%20of%20Apache%20Mod-DAV%20as%20additiona%20information.%20So%20let%27s%20start.%0D%0AStep"></a></li><li style="heigth:16px;width:16px"><a title="Delicious" class="option1_16" style="background-position:-16px 0px" rel="nofollow" target="_blank" href="http://delicious.com/post?url=http%3A%2F%2Falexander.holbreich.org%2F2010%2F11%2Fsubversion-on-debian-linux%2F&amp;title=Subversion%20on%20Debian%20Linux&amp;notes=Today%20i%20describe%20the%20few%20steps%20of%20installation%20of%20subversion%20%28with%20repository%29%20on%20Linux%20%28Debian%20lenny%29.%20That%20description%20show%20the%20installtion%20proccess%20in%205%20steps.%20And%20the%20configuration%20of%20Apache%20Mod-DAV%20as%20additiona%20information.%20So%20let%27s%20start.%0D%0AStep"></a></li><li style="heigth:16px;width:16px"><a title="Google Bookmarks" class="option1_16" style="background-position:-96px 0px" rel="nofollow" target="_blank" href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Falexander.holbreich.org%2F2010%2F11%2Fsubversion-on-debian-linux%2F&amp;title=Subversion%20on%20Debian%20Linux&amp;annotation=Today%20i%20describe%20the%20few%20steps%20of%20installation%20of%20subversion%20%28with%20repository%29%20on%20Linux%20%28Debian%20lenny%29.%20That%20description%20show%20the%20installtion%20proccess%20in%205%20steps.%20And%20the%20configuration%20of%20Apache%20Mod-DAV%20as%20additiona%20information.%20So%20let%27s%20start.%0D%0AStep"></a></li><li style="heigth:16px;width:16px"><a title="MSNReporter" class="option1_16" style="background-position:-176px 0px" rel="nofollow" target="_blank" href="http://reporter.es.msn.com/?fn=contribute&amp;Title=Subversion%20on%20Debian%20Linux&amp;URL=http%3A%2F%2Falexander.holbreich.org%2F2010%2F11%2Fsubversion-on-debian-linux%2F&amp;cat_id=6&amp;tag_id=31&amp;Remark=Today%20i%20describe%20the%20few%20steps%20of%20installation%20of%20subversion%20%28with%20repository%29%20on%20Linux%20%28Debian%20lenny%29.%20That%20description%20show%20the%20installtion%20proccess%20in%205%20steps.%20And%20the%20configuration%20of%20Apache%20Mod-DAV%20as%20additiona%20information.%20So%20let%27s%20start.%0D%0AStep"></a></li><li style="heigth:16px;width:16px"><a title="email" class="option1_16" style="background-position:-80px 0px" rel="nofollow" target="_blank" href="https://mail.google.com/mail/?view=cm&fs=1&to&su=Subversion%20on%20Debian%20Linux&body=http%3A%2F%2Falexander.holbreich.org%2F2010%2F11%2Fsubversion-on-debian-linux%2F&ui=2&tf=1&shva=1"></a></li><li style="heigth:16px;width:16px"><a style="cursor:poainter" rel="nofollow"   onMouseOver="more(this,'post-430')"><img src="http://alexander.holbreich.org/wp-content/plugins/sociable/images/option1/16/more.png?4c9b33" title="Posterous" alt="Posterous" /></a></li></ul></div> <a style="cursor:pointer" onclick="hide_sociable('post-430',true)" class="close"> <img onclick="hide_sociable('post-430',true)" title="close" src="http://alexander.holbreich.org/wp-content/plugins/sociable/images/closelabel.png?4c9b33"> </a></div></div></div></div><div class='sociable' style='float:none'><ul class='clearfix'><li id="Twitter_Counter"><a href="https://twitter.com/share" data-text="Subversion on Debian Linux - http://alexander.holbreich.org/2010/11/subversion-on-debian-linux/ (via #sociablesite)" data-url="http://alexander.holbreich.org/2010/11/subversion-on-debian-linux/" class="twitter-share-button" data-count="horizontal">Tweet</a><script type="text/javascript" src="//platform.twitter.com/widgets.js?4c9b33"></script></li><li id="Google_p"><g:plusone annotation="bubble" href="http://alexander.holbreich.org/2010/11/subversion-on-debian-linux/" size="medium"></g:plusone></li><li id="Digg_Counter"><script type='text/javascript'>(function(){var s=document.createElement('SCRIPT'),s1=document.getElementsByTagName('SCRIPT')[0];s.type='text/javascript';s.async=true;s.src='http://widgets.digg.com/buttons.js';s1.parentNode.insertBefore(s,s1);})();</script><a href='http://digg.com/submit?url=http%3A%2F%2Falexander.holbreich.org%2F2010%2F11%2Fsubversion-on-debian-linux%2F&amp;title=Subversion%20on%20Debian%20Linux'  class='DiggThisButton DiggCompact'></a></li><li id="StumbleUpon_Counter"><script src="http://www.stumbleupon.com/hostedbadge.php?s=2&r=http://alexander.holbreich.org/2010/11/subversion-on-debian-linux/"></script></li><li id="Facebook_Counter"><iframe src="//www.facebook.com/plugins/like.php?href=http://alexander.holbreich.org/2010/11/subversion-on-debian-linux/&send=false&layout=button_count&show_faces=false&action=like&colorscheme=light&font" scrolling="no" frameborder="0" style="border:none; overflow:hidden;height:32px;width:100px" allowTransparency="true"></iframe></li><li id="LinkedIn_Counter"><script src="http://platform.linkedin.com/in.js" type="text/javascript"></script><script type="IN/Share" data-url="http://alexander.holbreich.org/2010/11/subversion-on-debian-linux/" data-counter="right"></script></li></ul></div>]]></content:encoded> <wfw:commentRss>http://alexander.holbreich.org/2010/11/subversion-on-debian-linux/feed/</wfw:commentRss> <slash:comments>6</slash:comments> </item> <item><title>lsof command (Linux)</title><link>http://alexander.holbreich.org/2010/11/lsof/</link> <comments>http://alexander.holbreich.org/2010/11/lsof/#comments</comments> <pubDate>Thu, 25 Nov 2010 17:00:41 +0000</pubDate> <dc:creator>shuron</dc:creator> <category><![CDATA[Internet]]></category> <category><![CDATA[linux]]></category> <category><![CDATA[lsof]]></category><guid isPermaLink="false">http://alexander.holbreich.org/?p=624</guid> <description><![CDATA[Today i&#8217;ll give you some interesting examples of using lsof command. lsof stands for &#8220;list open files&#8221;. So actually it shows all files used by some processes of a system. That command exist on most of and on different Linuxes and Unixes. It bases on architecture of a kernel which causes evety procces to hold it [...]]]></description> <content:encoded><![CDATA[<p><em>Today i&#8217;ll give you some interesting examples of using lsof command.</em></p><p>lsof stands for &#8220;list open files&#8221;. So actually it shows all files used by some processes of a system. That command exist on most of and on different Linuxes and Unixes.<br /> It bases on architecture of a kernel which causes evety procces to hold it used files in <em>/proc</em> &#8211; (a virtual file-system).  A typical hierarchy wold look like:</p><pre class="brush: plain; title: ; notranslate">
/proc/process id/fd/file descriptor
</pre><p>In the absence of any options,<em> lsof</em> lists all open files belonging to all active processes of a system. But that is to much for most cases, because many of cases are networkrelated. An if you consider that sockets are files in linux we can use lsof to search fo them.<span id="more-624"></span></p><h3>Examples lsof sockets</h3><p>The interesting option here is the <strong><em>-i</em></strong> option and it should be followed by the Internet address which is specified in the following form:</p><p>[<em>46</em>][<em>protocol</em>][@<em>hostname</em>|<em>hostaddr</em>][:<em>service</em>|<em>port</em>]</p><p>4 and 6 stand for ip protocol versions, the rest should be self expanded. So now i think is best time to provide some examples. Here they are:</p><p>Show all open connections</p><pre class="brush: bash; title: ; notranslate">
 lsof -i
</pre><p>Show all open TCP connections</p><pre class="brush: bash; title: ; notranslate">lsof -i TCP </pre><p>Show open TCP connection on on secure ldap port 636, http 80 and UDP protocol range</p><pre class="brush: bash; title: ; notranslate">
            lsof -i TCP:636
            lsof -i TCP:80
            lsof -i UDP:3000-3025
         </pre><p>Show LDAP incoming connections</p><pre class="brush: bash; title: ; notranslate">
lsof -i TCP@192.168.0.1:636 ()
#java  890 root  18u  IPv6 8332031
#TCP myserver.com:42936 myserver.com:ldaps (ESTABLISHED)
</pre><p>Who use SMTP?</p><pre class="brush: bash; title: ; notranslate">
         lsof -i :25
         #COMMAND  PID USER   FD   TYPE        DEVICE SIZE/OFF NODE NAME
         #sendmail 401 root    5u  IPv4 0x300023cc141      0t0  TCP *:smtp (LISTEN)
         #sendmail 401 root    6u  IPv6 0x3000243c200      0t0  TCP *:smtp (LISTEN)
</pre><h3>Further useful Examples of lsof</h3><p><strong><em> -c</em></strong> option allows to see what files are open by a particular command.</p><pre class="brush: bash; title: ; notranslate">
lsof -c mysq
lsof -c ruby
</pre><p>See what files are open by a particular device or a file</p><pre class="brush: bash; title: ; notranslate">
lsof /dev/cdrom
lsof /tmp/obscure.lock
</pre><p>See what files are opened by a user shuron</p><pre class="brush: bash; title: ; notranslate">
lsof –u shuron
#vi   5200 shuron txt REG 3,1   242601 245773 /bin/vi
</pre><h3>Additional info</h3><p>And at last use <strong><em>-r </em></strong>option for monitoring. Here is example of periodically (every 10 seconds) refresh of connection status for a concrete application started as <em>php</em>.</p><pre class="brush: bash; title: ; notranslate">
lsof -r 10 -c php -a -i :1521
</pre><p>It gives periodically all 1521 port connections. 1521 is typical Oracle DB connection port, so that example may serve you as base for script that monitors connection growing of your PHP applications.</p><p>So the last on is interesting also it uses the -t parameter which causes <em>lsof </em>return only a Processor id of a file using application. So following command allows you to kill all application that are using provided file.</p><pre class="brush: bash; title: ; notranslate">
kill -9 `lsof -t /tmp/obscure.lock`
</pre><p>References: <a href="http://www.netadmintools.com/html/lsof.man.html">Lsof Man</a></p><div class="sociable"><div class="sociable_tagline"><a class='sociable_tagline' target='_blank' href='http://blogplay.com' style='font-size:11px;color:#333333;text-decoration:none'>Be Sociable, Share!</a></div><ul class='clearfix'><li><a title="Facebook" class="option1_16" style="background-position:-48px 0px" rel="nofollow" target="_blank" href="http://www.facebook.com/share.php?u=http%3A%2F%2Falexander.holbreich.org%2F2010%2F11%2Flsof%2F&amp;t=lsof%20command%20%28Linux%29"></a></li><li><a title="HackerNews" class="option1_16" style="background-position:-128px 0px" rel="nofollow" target="_blank" href="http://news.ycombinator.com/submitlink?u=http%3A%2F%2Falexander.holbreich.org%2F2010%2F11%2Flsof%2F&amp;t=lsof%20command%20%28Linux%29"></a></li><li><a title="Reddit" class="option1_16" style="background-position:-64px -16px" rel="nofollow" target="_blank" href="http://reddit.com/submit?url=http%3A%2F%2Falexander.holbreich.org%2F2010%2F11%2Flsof%2F&amp;title=lsof%20command%20%28Linux%29"></a></li><li><a title="Digg" class="option1_16" style="background-position:-32px 0px" rel="nofollow" target="_blank" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Falexander.holbreich.org%2F2010%2F11%2Flsof%2F&amp;title=lsof%20command%20%28Linux%29&amp;bodytext=Today%20i%27ll%20give%20you%20some%20interesting%20examples%20of%20using%20lsof%20command.%0D%0A%0D%0Alsof%C2%A0stands%20for%20%22list%20open%20files%22.%20So%20actually%20it%20shows%20all%20files%20used%20by%20some%20processes%20of%20a%20system.%20That%20command%20exist%20on%20most%20of%20and%20on%20different%20Linuxes%20and%20Unixes.%0D%0AIt%20base"></a></li><li><a title="Tumblr" class="option1_16" style="background-position:-128px -16px" rel="nofollow" target="_blank" href="http://www.tumblr.com/share?v=3&amp;u=http%3A%2F%2Falexander.holbreich.org%2F2010%2F11%2Flsof%2F&amp;t=lsof%20command%20%28Linux%29&amp;s=Today%20i%27ll%20give%20you%20some%20interesting%20examples%20of%20using%20lsof%20command.%0D%0A%0D%0Alsof%C2%A0stands%20for%20%22list%20open%20files%22.%20So%20actually%20it%20shows%20all%20files%20used%20by%20some%20processes%20of%20a%20system.%20That%20command%20exist%20on%20most%20of%20and%20on%20different%20Linuxes%20and%20Unixes.%0D%0AIt%20base"></a></li><li><a title="BlinkList" class="option1_16" style="background-position:0px 0px" rel="nofollow" target="_blank" href="http://www.blinklist.com/index.php?Action=Blink/addblink.php&amp;Url=http%3A%2F%2Falexander.holbreich.org%2F2010%2F11%2Flsof%2F&amp;Title=lsof%20command%20%28Linux%29"></a></li><li><a title="Google Reader" class="option1_16" style="background-position:-112px 0px" rel="nofollow" target="_blank" href="http://www.google.com/reader/link?url=http%3A%2F%2Falexander.holbreich.org%2F2010%2F11%2Flsof%2F&amp;title=lsof%20command%20%28Linux%29&amp;srcURL=http%3A%2F%2Falexander.holbreich.org%2F2010%2F11%2Flsof%2F&amp;srcTitle=Alexander+Holbreich+Everything+becomes+a+little+different+as+soon+as+it+is+spoken+out+loud.++%7EHermann+Hesse"></a></li><li><a title="StumbleUpon" class="option1_16" style="background-position:-112px -16px" rel="nofollow" target="_blank" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Falexander.holbreich.org%2F2010%2F11%2Flsof%2F&title=lsof%20command%20%28Linux%29"></a></li><li><a title="Myspace" class="option1_16" style="background-position:0px -16px" rel="nofollow" target="_blank" href="http://www.myspace.com/Modules/PostTo/Pages/?u=http%3A%2F%2Falexander.holbreich.org%2F2010%2F11%2Flsof%2F&amp;t=lsof%20command%20%28Linux%29"></a></li><li><a title="Sphinn" class="option1_16" style="background-position:-96px -16px" rel="nofollow" target="_blank" href="http://sphinn.com/index.php?c=post&amp;m=submit&amp;link=http%3A%2F%2Falexander.holbreich.org%2F2010%2F11%2Flsof%2F"></a></li><li><a class="option1_16" style="cursor:pointer;background-position:-64px 0px" rel="nofollow" title="Add to favorites - doesn't work in Chrome"  onClick="javascript:AddToFavorites();"></a></li><li><a title="Posterous" class="option1_16" style="background-position:-32px -16px" rel="nofollow" target="_blank" href="http://posterous.com/share?linkto=http%3A%2F%2Falexander.holbreich.org%2F2010%2F11%2Flsof%2F&amp;title=lsof%20command%20%28Linux%29&amp;selection=Today%20i%27ll%20give%20you%20some%20interesting%20examples%20of%20using%20lsof%20command.%0D%0A%0D%0Alsof%C2%A0stands%20for%20%22list%20open%20files%22.%20So%20actually%20it%20shows%20all%20files%20used%20by%20some%20processes%20of%20a%20system.%20That%20command%20exist%20on%20most%20of%20and%20on%20different%20Linuxes%20and%20Unixes.%0D%0AIt%20base"></a></li></ul><div onMouseout="fixOnMouseOut(this,event,'post-624')" id="sociable-post-624" style="display:none;"><div style="top: auto; left: auto; display: block;" id="sociable"><div class="popup"><div class="content"><ul><li style="heigth:16px;width:16px"><a title="Twitter" class="option1_16" style="background-position:-144px -16px" rel="nofollow" target="_blank" href="http://twitter.com/intent/tweet?text=lsof%20command%20%28Linux%29%20-%20http%3A%2F%2Falexander.holbreich.org%2F2010%2F11%2Flsof%2F%20(via%20@sociablesite)"></a></li><li style="heigth:16px;width:16px"><a title="LinkedIn" class="option1_16" style="background-position:-144px 0px" rel="nofollow" target="_blank" href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http%3A%2F%2Falexander.holbreich.org%2F2010%2F11%2Flsof%2F&amp;title=lsof%20command%20%28Linux%29&amp;source=Alexander+Holbreich+Everything+becomes+a+little+different+as+soon+as+it+is+spoken+out+loud.++%7EHermann+Hesse&amp;summary=Today%20i%27ll%20give%20you%20some%20interesting%20examples%20of%20using%20lsof%20command.%0D%0A%0D%0Alsof%C2%A0stands%20for%20%22list%20open%20files%22.%20So%20actually%20it%20shows%20all%20files%20used%20by%20some%20processes%20of%20a%20system.%20That%20command%20exist%20on%20most%20of%20and%20on%20different%20Linuxes%20and%20Unixes.%0D%0AIt%20base"></a></li><li style="heigth:16px;width:16px"><a title="Delicious" class="option1_16" style="background-position:-16px 0px" rel="nofollow" target="_blank" href="http://delicious.com/post?url=http%3A%2F%2Falexander.holbreich.org%2F2010%2F11%2Flsof%2F&amp;title=lsof%20command%20%28Linux%29&amp;notes=Today%20i%27ll%20give%20you%20some%20interesting%20examples%20of%20using%20lsof%20command.%0D%0A%0D%0Alsof%C2%A0stands%20for%20%22list%20open%20files%22.%20So%20actually%20it%20shows%20all%20files%20used%20by%20some%20processes%20of%20a%20system.%20That%20command%20exist%20on%20most%20of%20and%20on%20different%20Linuxes%20and%20Unixes.%0D%0AIt%20base"></a></li><li style="heigth:16px;width:16px"><a title="Google Bookmarks" class="option1_16" style="background-position:-96px 0px" rel="nofollow" target="_blank" href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Falexander.holbreich.org%2F2010%2F11%2Flsof%2F&amp;title=lsof%20command%20%28Linux%29&amp;annotation=Today%20i%27ll%20give%20you%20some%20interesting%20examples%20of%20using%20lsof%20command.%0D%0A%0D%0Alsof%C2%A0stands%20for%20%22list%20open%20files%22.%20So%20actually%20it%20shows%20all%20files%20used%20by%20some%20processes%20of%20a%20system.%20That%20command%20exist%20on%20most%20of%20and%20on%20different%20Linuxes%20and%20Unixes.%0D%0AIt%20base"></a></li><li style="heigth:16px;width:16px"><a title="MSNReporter" class="option1_16" style="background-position:-176px 0px" rel="nofollow" target="_blank" href="http://reporter.es.msn.com/?fn=contribute&amp;Title=lsof%20command%20%28Linux%29&amp;URL=http%3A%2F%2Falexander.holbreich.org%2F2010%2F11%2Flsof%2F&amp;cat_id=6&amp;tag_id=31&amp;Remark=Today%20i%27ll%20give%20you%20some%20interesting%20examples%20of%20using%20lsof%20command.%0D%0A%0D%0Alsof%C2%A0stands%20for%20%22list%20open%20files%22.%20So%20actually%20it%20shows%20all%20files%20used%20by%20some%20processes%20of%20a%20system.%20That%20command%20exist%20on%20most%20of%20and%20on%20different%20Linuxes%20and%20Unixes.%0D%0AIt%20base"></a></li><li style="heigth:16px;width:16px"><a title="email" class="option1_16" style="background-position:-80px 0px" rel="nofollow" target="_blank" href="https://mail.google.com/mail/?view=cm&fs=1&to&su=lsof%20command%20%28Linux%29&body=http%3A%2F%2Falexander.holbreich.org%2F2010%2F11%2Flsof%2F&ui=2&tf=1&shva=1"></a></li><li style="heigth:16px;width:16px"><a style="cursor:poainter" rel="nofollow"   onMouseOver="more(this,'post-624')"><img src="http://alexander.holbreich.org/wp-content/plugins/sociable/images/option1/16/more.png?4c9b33" title="Posterous" alt="Posterous" /></a></li></ul></div> <a style="cursor:pointer" onclick="hide_sociable('post-624',true)" class="close"> <img onclick="hide_sociable('post-624',true)" title="close" src="http://alexander.holbreich.org/wp-content/plugins/sociable/images/closelabel.png?4c9b33"> </a></div></div></div></div><div class='sociable' style='float:none'><ul class='clearfix'><li id="Twitter_Counter"><a href="https://twitter.com/share" data-text="lsof command (Linux) - http://alexander.holbreich.org/2010/11/lsof/ (via #sociablesite)" data-url="http://alexander.holbreich.org/2010/11/lsof/" class="twitter-share-button" data-count="horizontal">Tweet</a><script type="text/javascript" src="//platform.twitter.com/widgets.js?4c9b33"></script></li><li id="Google_p"><g:plusone annotation="bubble" href="http://alexander.holbreich.org/2010/11/lsof/" size="medium"></g:plusone></li><li id="Digg_Counter"><script type='text/javascript'>(function(){var s=document.createElement('SCRIPT'),s1=document.getElementsByTagName('SCRIPT')[0];s.type='text/javascript';s.async=true;s.src='http://widgets.digg.com/buttons.js';s1.parentNode.insertBefore(s,s1);})();</script><a href='http://digg.com/submit?url=http%3A%2F%2Falexander.holbreich.org%2F2010%2F11%2Flsof%2F&amp;title=lsof%20command%20%28Linux%29'  class='DiggThisButton DiggCompact'></a></li><li id="StumbleUpon_Counter"><script src="http://www.stumbleupon.com/hostedbadge.php?s=2&r=http://alexander.holbreich.org/2010/11/lsof/"></script></li><li id="Facebook_Counter"><iframe src="//www.facebook.com/plugins/like.php?href=http://alexander.holbreich.org/2010/11/lsof/&send=false&layout=button_count&show_faces=false&action=like&colorscheme=light&font" scrolling="no" frameborder="0" style="border:none; overflow:hidden;height:32px;width:100px" allowTransparency="true"></iframe></li><li id="LinkedIn_Counter"><script src="http://platform.linkedin.com/in.js" type="text/javascript"></script><script type="IN/Share" data-url="http://alexander.holbreich.org/2010/11/lsof/" data-counter="right"></script></li></ul></div>]]></content:encoded> <wfw:commentRss>http://alexander.holbreich.org/2010/11/lsof/feed/</wfw:commentRss> <slash:comments>6</slash:comments> </item> <item><title>Ubuntu vs. Windows XP on my Thinkpad</title><link>http://alexander.holbreich.org/2010/11/ubuntu-vs-windows-xp/</link> <comments>http://alexander.holbreich.org/2010/11/ubuntu-vs-windows-xp/#comments</comments> <pubDate>Sat, 20 Nov 2010 22:07:04 +0000</pubDate> <dc:creator>shuron</dc:creator> <category><![CDATA[Hardware]]></category> <category><![CDATA[linux]]></category> <category><![CDATA[Personal]]></category> <category><![CDATA[Software]]></category> <category><![CDATA[performance]]></category> <category><![CDATA[thinkpad]]></category> <category><![CDATA[ubunto]]></category><guid isPermaLink="false">http://alexander.holbreich.org/?p=678</guid> <description><![CDATA[Yesterday i  installed Ubuntu (10) linux alongside of Windows XP (SP3) on my Lenovo Thinkpad T60 &#8211; meanwhile 4 years  Laptop. To be short  i observe only start-time of both system on the same machine in this post. Here some hardware details: Intel Core Duo (T2400 -1,83 Mghz) 1 Gb RAM 60 GB 5400rpm  hard [...]]]></description> <content:encoded><![CDATA[<p>Yesterday i  installed Ubuntu (10) linux alongside of Windows XP (SP3) on my Lenovo Thinkpad T60 &#8211; meanwhile 4 years  Laptop. To be short  i observe only start-time of both system on the same machine in this post.</p><p>Here some hardware details:</p><ul><li>Intel Core Duo (T2400 -1,83 Mghz)</li><li>1 Gb RAM</li><li>60 GB 5400rpm  hard drive</li></ul><p>An here are starttimes on two Systems (in seconds):</p><p style="text-align: center;"><a href="http://alexander.holbreich.org/wp-content/uploads/2010/11/windows_vs_ubuntu.gif?4c9b33"><img class="size-full wp-image-679 aligncenter" title="windows_vs_ubuntu" src="http://alexander.holbreich.org/wp-content/uploads/2010/11/windows_vs_ubuntu.gif?4c9b33" alt="Windows vs. Ubuntu startup times" width="465" height="294" /></a></p><p>As we see Windows takes 1 minute from OS-Selection dialog till User-login dialog, whereas Ubunto takes  only 24 sec. Ok, windows checks  &#8220;security chip&#8221; (what it exactly means and why it so good for me i don&#8217;t know)  and that takes considerable time and i&#8217;m unsure whether Ubunto do something like this, but however i can&#8217;t change it.</p><p>On a graph we see also, that for the rest of &#8220;loading work&#8221; from login till first page appears in firefox browser windows takes more time again. It takes 95 seconds whereas Ubunto need only 19!  I was clicking on browser Icon as soon it appeared and was &#8220;clickable&#8221; and waited till pre-selected starting page (google) appears.</p><p>Of cause tas is not very strict measurement so maybe I&#8217;ve lost one or two seconds somewhere, who cares if</p><ul><li>Ubunto takes 24+19 =<strong>43 sec</strong></li><li>Windows takes 60+95 = <strong>155 sec</strong></li></ul><p>till i can use my typical day by day application. So now i can save more than a one and halfe minute of my life on every start of a system.</p><p>Respect Ubuntu, keep on going!</p><div class="sociable"><div class="sociable_tagline"><a class='sociable_tagline' target='_blank' href='http://blogplay.com' style='font-size:11px;color:#333333;text-decoration:none'>Be Sociable, Share!</a></div><ul class='clearfix'><li><a title="Facebook" class="option1_16" style="background-position:-48px 0px" rel="nofollow" target="_blank" href="http://www.facebook.com/share.php?u=http%3A%2F%2Falexander.holbreich.org%2F2010%2F11%2Fubuntu-vs-windows-xp%2F&amp;t=Ubuntu%20vs.%20Windows%20XP%20on%20my%20Thinkpad"></a></li><li><a title="HackerNews" class="option1_16" style="background-position:-128px 0px" rel="nofollow" target="_blank" href="http://news.ycombinator.com/submitlink?u=http%3A%2F%2Falexander.holbreich.org%2F2010%2F11%2Fubuntu-vs-windows-xp%2F&amp;t=Ubuntu%20vs.%20Windows%20XP%20on%20my%20Thinkpad"></a></li><li><a title="Reddit" class="option1_16" style="background-position:-64px -16px" rel="nofollow" target="_blank" href="http://reddit.com/submit?url=http%3A%2F%2Falexander.holbreich.org%2F2010%2F11%2Fubuntu-vs-windows-xp%2F&amp;title=Ubuntu%20vs.%20Windows%20XP%20on%20my%20Thinkpad"></a></li><li><a title="Digg" class="option1_16" style="background-position:-32px 0px" rel="nofollow" target="_blank" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Falexander.holbreich.org%2F2010%2F11%2Fubuntu-vs-windows-xp%2F&amp;title=Ubuntu%20vs.%20Windows%20XP%20on%20my%20Thinkpad&amp;bodytext=Yesterday%20i%C2%A0%20installed%20Ubuntu%20%2810%29%20linux%20alongside%20of%20Windows%20XP%20%28SP3%29%20on%20my%20Lenovo%20Thinkpad%20T60%20-%20meanwhile%204%20years%C2%A0%20Laptop.%20To%20be%20short%C2%A0%20i%20observe%20only%20start-time%20of%20both%20system%20on%20the%20same%20machine%20in%20this%20post.%0D%0A%0D%0AHere%20some%20hardware%20details%3A%0D%0A%0D"></a></li><li><a title="Tumblr" class="option1_16" style="background-position:-128px -16px" rel="nofollow" target="_blank" href="http://www.tumblr.com/share?v=3&amp;u=http%3A%2F%2Falexander.holbreich.org%2F2010%2F11%2Fubuntu-vs-windows-xp%2F&amp;t=Ubuntu%20vs.%20Windows%20XP%20on%20my%20Thinkpad&amp;s=Yesterday%20i%C2%A0%20installed%20Ubuntu%20%2810%29%20linux%20alongside%20of%20Windows%20XP%20%28SP3%29%20on%20my%20Lenovo%20Thinkpad%20T60%20-%20meanwhile%204%20years%C2%A0%20Laptop.%20To%20be%20short%C2%A0%20i%20observe%20only%20start-time%20of%20both%20system%20on%20the%20same%20machine%20in%20this%20post.%0D%0A%0D%0AHere%20some%20hardware%20details%3A%0D%0A%0D"></a></li><li><a title="BlinkList" class="option1_16" style="background-position:0px 0px" rel="nofollow" target="_blank" href="http://www.blinklist.com/index.php?Action=Blink/addblink.php&amp;Url=http%3A%2F%2Falexander.holbreich.org%2F2010%2F11%2Fubuntu-vs-windows-xp%2F&amp;Title=Ubuntu%20vs.%20Windows%20XP%20on%20my%20Thinkpad"></a></li><li><a title="Google Reader" class="option1_16" style="background-position:-112px 0px" rel="nofollow" target="_blank" href="http://www.google.com/reader/link?url=http%3A%2F%2Falexander.holbreich.org%2F2010%2F11%2Fubuntu-vs-windows-xp%2F&amp;title=Ubuntu%20vs.%20Windows%20XP%20on%20my%20Thinkpad&amp;srcURL=http%3A%2F%2Falexander.holbreich.org%2F2010%2F11%2Fubuntu-vs-windows-xp%2F&amp;srcTitle=Alexander+Holbreich+Everything+becomes+a+little+different+as+soon+as+it+is+spoken+out+loud.++%7EHermann+Hesse"></a></li><li><a title="StumbleUpon" class="option1_16" style="background-position:-112px -16px" rel="nofollow" target="_blank" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Falexander.holbreich.org%2F2010%2F11%2Fubuntu-vs-windows-xp%2F&title=Ubuntu%20vs.%20Windows%20XP%20on%20my%20Thinkpad"></a></li><li><a title="Myspace" class="option1_16" style="background-position:0px -16px" rel="nofollow" target="_blank" href="http://www.myspace.com/Modules/PostTo/Pages/?u=http%3A%2F%2Falexander.holbreich.org%2F2010%2F11%2Fubuntu-vs-windows-xp%2F&amp;t=Ubuntu%20vs.%20Windows%20XP%20on%20my%20Thinkpad"></a></li><li><a title="Sphinn" class="option1_16" style="background-position:-96px -16px" rel="nofollow" target="_blank" href="http://sphinn.com/index.php?c=post&amp;m=submit&amp;link=http%3A%2F%2Falexander.holbreich.org%2F2010%2F11%2Fubuntu-vs-windows-xp%2F"></a></li><li><a class="option1_16" style="cursor:pointer;background-position:-64px 0px" rel="nofollow" title="Add to favorites - doesn't work in Chrome"  onClick="javascript:AddToFavorites();"></a></li><li><a title="Posterous" class="option1_16" style="background-position:-32px -16px" rel="nofollow" target="_blank" href="http://posterous.com/share?linkto=http%3A%2F%2Falexander.holbreich.org%2F2010%2F11%2Fubuntu-vs-windows-xp%2F&amp;title=Ubuntu%20vs.%20Windows%20XP%20on%20my%20Thinkpad&amp;selection=Yesterday%20i%C2%A0%20installed%20Ubuntu%20%2810%29%20linux%20alongside%20of%20Windows%20XP%20%28SP3%29%20on%20my%20Lenovo%20Thinkpad%20T60%20-%20meanwhile%204%20years%C2%A0%20Laptop.%20To%20be%20short%C2%A0%20i%20observe%20only%20start-time%20of%20both%20system%20on%20the%20same%20machine%20in%20this%20post.%0D%0A%0D%0AHere%20some%20hardware%20details%3A%0D%0A%0D"></a></li></ul><div onMouseout="fixOnMouseOut(this,event,'post-678')" id="sociable-post-678" style="display:none;"><div style="top: auto; left: auto; display: block;" id="sociable"><div class="popup"><div class="content"><ul><li style="heigth:16px;width:16px"><a title="Twitter" class="option1_16" style="background-position:-144px -16px" rel="nofollow" target="_blank" href="http://twitter.com/intent/tweet?text=Ubuntu%20vs.%20Windows%20XP%20on%20my%20Thinkpad%20-%20http%3A%2F%2Falexander.holbreich.org%2F2010%2F11%2Fubuntu-vs-windows-xp%2F%20(via%20@sociablesite)"></a></li><li style="heigth:16px;width:16px"><a title="LinkedIn" class="option1_16" style="background-position:-144px 0px" rel="nofollow" target="_blank" href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http%3A%2F%2Falexander.holbreich.org%2F2010%2F11%2Fubuntu-vs-windows-xp%2F&amp;title=Ubuntu%20vs.%20Windows%20XP%20on%20my%20Thinkpad&amp;source=Alexander+Holbreich+Everything+becomes+a+little+different+as+soon+as+it+is+spoken+out+loud.++%7EHermann+Hesse&amp;summary=Yesterday%20i%C2%A0%20installed%20Ubuntu%20%2810%29%20linux%20alongside%20of%20Windows%20XP%20%28SP3%29%20on%20my%20Lenovo%20Thinkpad%20T60%20-%20meanwhile%204%20years%C2%A0%20Laptop.%20To%20be%20short%C2%A0%20i%20observe%20only%20start-time%20of%20both%20system%20on%20the%20same%20machine%20in%20this%20post.%0D%0A%0D%0AHere%20some%20hardware%20details%3A%0D%0A%0D"></a></li><li style="heigth:16px;width:16px"><a title="Delicious" class="option1_16" style="background-position:-16px 0px" rel="nofollow" target="_blank" href="http://delicious.com/post?url=http%3A%2F%2Falexander.holbreich.org%2F2010%2F11%2Fubuntu-vs-windows-xp%2F&amp;title=Ubuntu%20vs.%20Windows%20XP%20on%20my%20Thinkpad&amp;notes=Yesterday%20i%C2%A0%20installed%20Ubuntu%20%2810%29%20linux%20alongside%20of%20Windows%20XP%20%28SP3%29%20on%20my%20Lenovo%20Thinkpad%20T60%20-%20meanwhile%204%20years%C2%A0%20Laptop.%20To%20be%20short%C2%A0%20i%20observe%20only%20start-time%20of%20both%20system%20on%20the%20same%20machine%20in%20this%20post.%0D%0A%0D%0AHere%20some%20hardware%20details%3A%0D%0A%0D"></a></li><li style="heigth:16px;width:16px"><a title="Google Bookmarks" class="option1_16" style="background-position:-96px 0px" rel="nofollow" target="_blank" href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Falexander.holbreich.org%2F2010%2F11%2Fubuntu-vs-windows-xp%2F&amp;title=Ubuntu%20vs.%20Windows%20XP%20on%20my%20Thinkpad&amp;annotation=Yesterday%20i%C2%A0%20installed%20Ubuntu%20%2810%29%20linux%20alongside%20of%20Windows%20XP%20%28SP3%29%20on%20my%20Lenovo%20Thinkpad%20T60%20-%20meanwhile%204%20years%C2%A0%20Laptop.%20To%20be%20short%C2%A0%20i%20observe%20only%20start-time%20of%20both%20system%20on%20the%20same%20machine%20in%20this%20post.%0D%0A%0D%0AHere%20some%20hardware%20details%3A%0D%0A%0D"></a></li><li style="heigth:16px;width:16px"><a title="MSNReporter" class="option1_16" style="background-position:-176px 0px" rel="nofollow" target="_blank" href="http://reporter.es.msn.com/?fn=contribute&amp;Title=Ubuntu%20vs.%20Windows%20XP%20on%20my%20Thinkpad&amp;URL=http%3A%2F%2Falexander.holbreich.org%2F2010%2F11%2Fubuntu-vs-windows-xp%2F&amp;cat_id=6&amp;tag_id=31&amp;Remark=Yesterday%20i%C2%A0%20installed%20Ubuntu%20%2810%29%20linux%20alongside%20of%20Windows%20XP%20%28SP3%29%20on%20my%20Lenovo%20Thinkpad%20T60%20-%20meanwhile%204%20years%C2%A0%20Laptop.%20To%20be%20short%C2%A0%20i%20observe%20only%20start-time%20of%20both%20system%20on%20the%20same%20machine%20in%20this%20post.%0D%0A%0D%0AHere%20some%20hardware%20details%3A%0D%0A%0D"></a></li><li style="heigth:16px;width:16px"><a title="email" class="option1_16" style="background-position:-80px 0px" rel="nofollow" target="_blank" href="https://mail.google.com/mail/?view=cm&fs=1&to&su=Ubuntu%20vs.%20Windows%20XP%20on%20my%20Thinkpad&body=http%3A%2F%2Falexander.holbreich.org%2F2010%2F11%2Fubuntu-vs-windows-xp%2F&ui=2&tf=1&shva=1"></a></li><li style="heigth:16px;width:16px"><a style="cursor:poainter" rel="nofollow"   onMouseOver="more(this,'post-678')"><img src="http://alexander.holbreich.org/wp-content/plugins/sociable/images/option1/16/more.png?4c9b33" title="Posterous" alt="Posterous" /></a></li></ul></div> <a style="cursor:pointer" onclick="hide_sociable('post-678',true)" class="close"> <img onclick="hide_sociable('post-678',true)" title="close" src="http://alexander.holbreich.org/wp-content/plugins/sociable/images/closelabel.png?4c9b33"> </a></div></div></div></div><div class='sociable' style='float:none'><ul class='clearfix'><li id="Twitter_Counter"><a href="https://twitter.com/share" data-text="Ubuntu vs. Windows XP on my Thinkpad - http://alexander.holbreich.org/2010/11/ubuntu-vs-windows-xp/ (via #sociablesite)" data-url="http://alexander.holbreich.org/2010/11/ubuntu-vs-windows-xp/" class="twitter-share-button" data-count="horizontal">Tweet</a><script type="text/javascript" src="//platform.twitter.com/widgets.js?4c9b33"></script></li><li id="Google_p"><g:plusone annotation="bubble" href="http://alexander.holbreich.org/2010/11/ubuntu-vs-windows-xp/" size="medium"></g:plusone></li><li id="Digg_Counter"><script type='text/javascript'>(function(){var s=document.createElement('SCRIPT'),s1=document.getElementsByTagName('SCRIPT')[0];s.type='text/javascript';s.async=true;s.src='http://widgets.digg.com/buttons.js';s1.parentNode.insertBefore(s,s1);})();</script><a href='http://digg.com/submit?url=http%3A%2F%2Falexander.holbreich.org%2F2010%2F11%2Fubuntu-vs-windows-xp%2F&amp;title=Ubuntu%20vs.%20Windows%20XP%20on%20my%20Thinkpad'  class='DiggThisButton DiggCompact'></a></li><li id="StumbleUpon_Counter"><script src="http://www.stumbleupon.com/hostedbadge.php?s=2&r=http://alexander.holbreich.org/2010/11/ubuntu-vs-windows-xp/"></script></li><li id="Facebook_Counter"><iframe src="//www.facebook.com/plugins/like.php?href=http://alexander.holbreich.org/2010/11/ubuntu-vs-windows-xp/&send=false&layout=button_count&show_faces=false&action=like&colorscheme=light&font" scrolling="no" frameborder="0" style="border:none; overflow:hidden;height:32px;width:100px" allowTransparency="true"></iframe></li><li id="LinkedIn_Counter"><script src="http://platform.linkedin.com/in.js" type="text/javascript"></script><script type="IN/Share" data-url="http://alexander.holbreich.org/2010/11/ubuntu-vs-windows-xp/" data-counter="right"></script></li></ul></div>]]></content:encoded> <wfw:commentRss>http://alexander.holbreich.org/2010/11/ubuntu-vs-windows-xp/feed/</wfw:commentRss> <slash:comments>3</slash:comments> </item> <item><title>Sending Mails with own Exim: Google account example.</title><link>http://alexander.holbreich.org/2010/02/exim-mail-google/</link> <comments>http://alexander.holbreich.org/2010/02/exim-mail-google/#comments</comments> <pubDate>Sun, 14 Feb 2010 23:22:52 +0000</pubDate> <dc:creator>shuron</dc:creator> <category><![CDATA[linux]]></category> <category><![CDATA[exim]]></category> <category><![CDATA[googlemail]]></category> <category><![CDATA[smarthost]]></category><guid isPermaLink="false">http://alexander.holbreich.org/?p=508</guid> <description><![CDATA[Today I&#8217;ll describe short, how to configure sending of emails with your Debian or other Linux distribution. The ability of sending mails is very useful feature for every long-running server machine, it&#8217;s easy and common way to notify the administrator on problems. Here are configurationsteps for mail-sending with Exim and Googlemail account (google Apps accounts [...]]]></description> <content:encoded><![CDATA[<p> <a href="http://alexander.holbreich.org/wp-content/uploads/2010/02/exim1-e1266189286432.png?4c9b33"><img class="size-full wp-image-560 alignright" style="margin: 5px;" title="exim" src="http://alexander.holbreich.org/wp-content/uploads/2010/02/exim1-e1266189286432.png?4c9b33" alt="" width="150" height="111" /></a>Today I&#8217;ll describe short, how to configure sending of emails with your Debian or other Linux distribution. The ability of sending mails is very useful feature for every long-running server machine, it&#8217;s easy and common way to notify the administrator on problems.</p><p> Here are configurationsteps for mail-sending with Exim and Googlemail account (google Apps accounts work the same way too).</p><ol><li>first of all we need working Exim. If not installed &#8211; install exim4.<pre class="brush: bash; title: ; notranslate">
$ apt-get update
$ apt-get install exim4
</pre></li><li> Configuration should start after the installation. However you can start configuration of exim every-time with<pre class="brush: bash; title: ; notranslate">
$ dpkg-reconfigure exim4-config
</pre></li><li> Answer the questions of configuration wizard. The important one is.<br /> a <strong>general type of mail configuration</strong>. Choose &#8220;sent by <strong>smarthost</strong>&#8221;<br /> if you wanna use the ability of e.g. Googlemail account. Then SMTP with dynamic IP would be difficult <img src="http://alexander.holbreich.org/wp-includes/images/smilies/icon_wink.gif?4c9b33" alt=';)' class='wp-smiley' /></li><li> answer other questions<ul><li> Provide a System Mail Name: e.g. mycompany.com</li><li> Provide IP addresses to listen on for incoming SMTP connections<br /> User 127.0.0.1 if you don&#8217;t want only send mail from local machine and nothing for all IP&#8217;s.</li><li> <strong>Provide Machine handling outgoing mail for this host (smarthost): smtp.gmail.com::587</strong></li></ul><p>Other parameter are not so important for a start. However read more about <a href="http://pkg-exim4.alioth.debian.org/README/README.Debian.html#id280581">debconf questions</a> and other configuration if you like.</li><li> Now it&#8217;s time to provide credentials information of your gmail account. Therefore you need edit <em>/etc/exim4/passwd.client</em> file with your favorite editor.<br /> Insert that for Standard or google app account but replace with valid mail and password.</p><pre class="brush: bash; title: ; notranslate">
gmail-smtp.l.google.com:yourYourMail@googlemail.com:yourPass
*.google.com:yourYourMail@googlemail.com:yourPass
smtp.gmail.com:yourYourMail@googlemail.com:yourPass
</pre></li><li> Make sure <em>/etc/exim4/passwd.client</em> belongs to user root and group Debian-exim which is normal so on my Debian. If not, run that command:<pre class="brush: bash; title: ; notranslate">
$ chown root:Debian-exim /etc/exim4/passwd.client
</pre></li><li> Actualize the whole configuration with:<pre class="brush: bash; title: ; notranslate">
$ update-exim4.conf
</pre><p>Your &#8216;re done!</li></ol><p>Now it&#8217;s test it with.</p><pre class="brush: bash; title: ; notranslate">
echo &quot;Server Mail Test Message &quot; | mail -s &quot;Just Test&quot; SomeMail@someDomain.org
</pre><p>Watch logs:</p><pre class="brush: bash; title: ; notranslate">
$ tail -1000f /var/log/exim4/mainlog
</pre><p>When you see something like this. Everything should vent perfect.</p><pre class="brush: bash; title: ; notranslate">
2010-02-14 23:00:26 1NgmVu-0007v8-Kt &lt; = root@mail-server1.mycompany.com U=root P=local S=424
2010-02-14 23:00:28 1NgmVu-0007v8-Kt =&gt; testMail@mycompany.org R=smarthost T=remote_smtp_smarthost H=gmail-smtp-msa.l.google.com [72.14.221.109] X=TLS1.0:RSA_ARCFOUR_MD5:16 DN=&quot;C=US,ST=California,L=Mountain View,O=Google Inc,CN=smtp.gmail.com&quot;
</pre></p><div class="sociable"><div class="sociable_tagline"><a class='sociable_tagline' target='_blank' href='http://blogplay.com' style='font-size:11px;color:#333333;text-decoration:none'>Be Sociable, Share!</a></div><ul class='clearfix'><li><a title="Facebook" class="option1_16" style="background-position:-48px 0px" rel="nofollow" target="_blank" href="http://www.facebook.com/share.php?u=http%3A%2F%2Falexander.holbreich.org%2F2010%2F02%2Fexim-mail-google%2F&amp;t=Sending%20Mails%20with%20own%20Exim%3A%20Google%20account%20example."></a></li><li><a title="HackerNews" class="option1_16" style="background-position:-128px 0px" rel="nofollow" target="_blank" href="http://news.ycombinator.com/submitlink?u=http%3A%2F%2Falexander.holbreich.org%2F2010%2F02%2Fexim-mail-google%2F&amp;t=Sending%20Mails%20with%20own%20Exim%3A%20Google%20account%20example."></a></li><li><a title="Reddit" class="option1_16" style="background-position:-64px -16px" rel="nofollow" target="_blank" href="http://reddit.com/submit?url=http%3A%2F%2Falexander.holbreich.org%2F2010%2F02%2Fexim-mail-google%2F&amp;title=Sending%20Mails%20with%20own%20Exim%3A%20Google%20account%20example."></a></li><li><a title="Digg" class="option1_16" style="background-position:-32px 0px" rel="nofollow" target="_blank" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Falexander.holbreich.org%2F2010%2F02%2Fexim-mail-google%2F&amp;title=Sending%20Mails%20with%20own%20Exim%3A%20Google%20account%20example.&amp;bodytext=%0D%0AToday%20I%27ll%20describe%20short%2C%20how%20to%20configure%20sending%20of%20emails%20with%20your%20Debian%20or%20other%20Linux%20distribution.%20The%20ability%20of%20sending%20mails%20is%20very%20useful%20feature%20for%20every%20long-running%20server%20machine%2C%20it%27s%20easy%20and%20common%20way%20to%20notify%20the%20administra"></a></li><li><a title="Tumblr" class="option1_16" style="background-position:-128px -16px" rel="nofollow" target="_blank" href="http://www.tumblr.com/share?v=3&amp;u=http%3A%2F%2Falexander.holbreich.org%2F2010%2F02%2Fexim-mail-google%2F&amp;t=Sending%20Mails%20with%20own%20Exim%3A%20Google%20account%20example.&amp;s=%0D%0AToday%20I%27ll%20describe%20short%2C%20how%20to%20configure%20sending%20of%20emails%20with%20your%20Debian%20or%20other%20Linux%20distribution.%20The%20ability%20of%20sending%20mails%20is%20very%20useful%20feature%20for%20every%20long-running%20server%20machine%2C%20it%27s%20easy%20and%20common%20way%20to%20notify%20the%20administra"></a></li><li><a title="BlinkList" class="option1_16" style="background-position:0px 0px" rel="nofollow" target="_blank" href="http://www.blinklist.com/index.php?Action=Blink/addblink.php&amp;Url=http%3A%2F%2Falexander.holbreich.org%2F2010%2F02%2Fexim-mail-google%2F&amp;Title=Sending%20Mails%20with%20own%20Exim%3A%20Google%20account%20example."></a></li><li><a title="Google Reader" class="option1_16" style="background-position:-112px 0px" rel="nofollow" target="_blank" href="http://www.google.com/reader/link?url=http%3A%2F%2Falexander.holbreich.org%2F2010%2F02%2Fexim-mail-google%2F&amp;title=Sending%20Mails%20with%20own%20Exim%3A%20Google%20account%20example.&amp;srcURL=http%3A%2F%2Falexander.holbreich.org%2F2010%2F02%2Fexim-mail-google%2F&amp;srcTitle=Alexander+Holbreich+Everything+becomes+a+little+different+as+soon+as+it+is+spoken+out+loud.++%7EHermann+Hesse"></a></li><li><a title="StumbleUpon" class="option1_16" style="background-position:-112px -16px" rel="nofollow" target="_blank" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Falexander.holbreich.org%2F2010%2F02%2Fexim-mail-google%2F&title=Sending%20Mails%20with%20own%20Exim%3A%20Google%20account%20example."></a></li><li><a title="Myspace" class="option1_16" style="background-position:0px -16px" rel="nofollow" target="_blank" href="http://www.myspace.com/Modules/PostTo/Pages/?u=http%3A%2F%2Falexander.holbreich.org%2F2010%2F02%2Fexim-mail-google%2F&amp;t=Sending%20Mails%20with%20own%20Exim%3A%20Google%20account%20example."></a></li><li><a title="Sphinn" class="option1_16" style="background-position:-96px -16px" rel="nofollow" target="_blank" href="http://sphinn.com/index.php?c=post&amp;m=submit&amp;link=http%3A%2F%2Falexander.holbreich.org%2F2010%2F02%2Fexim-mail-google%2F"></a></li><li><a class="option1_16" style="cursor:pointer;background-position:-64px 0px" rel="nofollow" title="Add to favorites - doesn't work in Chrome"  onClick="javascript:AddToFavorites();"></a></li><li><a title="Posterous" class="option1_16" style="background-position:-32px -16px" rel="nofollow" target="_blank" href="http://posterous.com/share?linkto=http%3A%2F%2Falexander.holbreich.org%2F2010%2F02%2Fexim-mail-google%2F&amp;title=Sending%20Mails%20with%20own%20Exim%3A%20Google%20account%20example.&amp;selection=%0D%0AToday%20I%27ll%20describe%20short%2C%20how%20to%20configure%20sending%20of%20emails%20with%20your%20Debian%20or%20other%20Linux%20distribution.%20The%20ability%20of%20sending%20mails%20is%20very%20useful%20feature%20for%20every%20long-running%20server%20machine%2C%20it%27s%20easy%20and%20common%20way%20to%20notify%20the%20administra"></a></li></ul><div onMouseout="fixOnMouseOut(this,event,'post-508')" id="sociable-post-508" style="display:none;"><div style="top: auto; left: auto; display: block;" id="sociable"><div class="popup"><div class="content"><ul><li style="heigth:16px;width:16px"><a title="Twitter" class="option1_16" style="background-position:-144px -16px" rel="nofollow" target="_blank" href="http://twitter.com/intent/tweet?text=Sending%20Mails%20with%20own%20Exim%3A%20Google%20account%20example.%20-%20http%3A%2F%2Falexander.holbreich.org%2F2010%2F02%2Fexim-mail-google%2F%20(via%20@sociablesite)"></a></li><li style="heigth:16px;width:16px"><a title="LinkedIn" class="option1_16" style="background-position:-144px 0px" rel="nofollow" target="_blank" href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http%3A%2F%2Falexander.holbreich.org%2F2010%2F02%2Fexim-mail-google%2F&amp;title=Sending%20Mails%20with%20own%20Exim%3A%20Google%20account%20example.&amp;source=Alexander+Holbreich+Everything+becomes+a+little+different+as+soon+as+it+is+spoken+out+loud.++%7EHermann+Hesse&amp;summary=%0D%0AToday%20I%27ll%20describe%20short%2C%20how%20to%20configure%20sending%20of%20emails%20with%20your%20Debian%20or%20other%20Linux%20distribution.%20The%20ability%20of%20sending%20mails%20is%20very%20useful%20feature%20for%20every%20long-running%20server%20machine%2C%20it%27s%20easy%20and%20common%20way%20to%20notify%20the%20administra"></a></li><li style="heigth:16px;width:16px"><a title="Delicious" class="option1_16" style="background-position:-16px 0px" rel="nofollow" target="_blank" href="http://delicious.com/post?url=http%3A%2F%2Falexander.holbreich.org%2F2010%2F02%2Fexim-mail-google%2F&amp;title=Sending%20Mails%20with%20own%20Exim%3A%20Google%20account%20example.&amp;notes=%0D%0AToday%20I%27ll%20describe%20short%2C%20how%20to%20configure%20sending%20of%20emails%20with%20your%20Debian%20or%20other%20Linux%20distribution.%20The%20ability%20of%20sending%20mails%20is%20very%20useful%20feature%20for%20every%20long-running%20server%20machine%2C%20it%27s%20easy%20and%20common%20way%20to%20notify%20the%20administra"></a></li><li style="heigth:16px;width:16px"><a title="Google Bookmarks" class="option1_16" style="background-position:-96px 0px" rel="nofollow" target="_blank" href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Falexander.holbreich.org%2F2010%2F02%2Fexim-mail-google%2F&amp;title=Sending%20Mails%20with%20own%20Exim%3A%20Google%20account%20example.&amp;annotation=%0D%0AToday%20I%27ll%20describe%20short%2C%20how%20to%20configure%20sending%20of%20emails%20with%20your%20Debian%20or%20other%20Linux%20distribution.%20The%20ability%20of%20sending%20mails%20is%20very%20useful%20feature%20for%20every%20long-running%20server%20machine%2C%20it%27s%20easy%20and%20common%20way%20to%20notify%20the%20administra"></a></li><li style="heigth:16px;width:16px"><a title="MSNReporter" class="option1_16" style="background-position:-176px 0px" rel="nofollow" target="_blank" href="http://reporter.es.msn.com/?fn=contribute&amp;Title=Sending%20Mails%20with%20own%20Exim%3A%20Google%20account%20example.&amp;URL=http%3A%2F%2Falexander.holbreich.org%2F2010%2F02%2Fexim-mail-google%2F&amp;cat_id=6&amp;tag_id=31&amp;Remark=%0D%0AToday%20I%27ll%20describe%20short%2C%20how%20to%20configure%20sending%20of%20emails%20with%20your%20Debian%20or%20other%20Linux%20distribution.%20The%20ability%20of%20sending%20mails%20is%20very%20useful%20feature%20for%20every%20long-running%20server%20machine%2C%20it%27s%20easy%20and%20common%20way%20to%20notify%20the%20administra"></a></li><li style="heigth:16px;width:16px"><a title="email" class="option1_16" style="background-position:-80px 0px" rel="nofollow" target="_blank" href="https://mail.google.com/mail/?view=cm&fs=1&to&su=Sending%20Mails%20with%20own%20Exim%3A%20Google%20account%20example.&body=http%3A%2F%2Falexander.holbreich.org%2F2010%2F02%2Fexim-mail-google%2F&ui=2&tf=1&shva=1"></a></li><li style="heigth:16px;width:16px"><a style="cursor:poainter" rel="nofollow"   onMouseOver="more(this,'post-508')"><img src="http://alexander.holbreich.org/wp-content/plugins/sociable/images/option1/16/more.png?4c9b33" title="Posterous" alt="Posterous" /></a></li></ul></div> <a style="cursor:pointer" onclick="hide_sociable('post-508',true)" class="close"> <img onclick="hide_sociable('post-508',true)" title="close" src="http://alexander.holbreich.org/wp-content/plugins/sociable/images/closelabel.png?4c9b33"> </a></div></div></div></div><div class='sociable' style='float:none'><ul class='clearfix'><li id="Twitter_Counter"><a href="https://twitter.com/share" data-text="Sending Mails with own Exim: Google account example. - http://alexander.holbreich.org/2010/02/exim-mail-google/ (via #sociablesite)" data-url="http://alexander.holbreich.org/2010/02/exim-mail-google/" class="twitter-share-button" data-count="horizontal">Tweet</a><script type="text/javascript" src="//platform.twitter.com/widgets.js?4c9b33"></script></li><li id="Google_p"><g:plusone annotation="bubble" href="http://alexander.holbreich.org/2010/02/exim-mail-google/" size="medium"></g:plusone></li><li id="Digg_Counter"><script type='text/javascript'>(function(){var s=document.createElement('SCRIPT'),s1=document.getElementsByTagName('SCRIPT')[0];s.type='text/javascript';s.async=true;s.src='http://widgets.digg.com/buttons.js';s1.parentNode.insertBefore(s,s1);})();</script><a href='http://digg.com/submit?url=http%3A%2F%2Falexander.holbreich.org%2F2010%2F02%2Fexim-mail-google%2F&amp;title=Sending%20Mails%20with%20own%20Exim%3A%20Google%20account%20example.'  class='DiggThisButton DiggCompact'></a></li><li id="StumbleUpon_Counter"><script src="http://www.stumbleupon.com/hostedbadge.php?s=2&r=http://alexander.holbreich.org/2010/02/exim-mail-google/"></script></li><li id="Facebook_Counter"><iframe src="//www.facebook.com/plugins/like.php?href=http://alexander.holbreich.org/2010/02/exim-mail-google/&send=false&layout=button_count&show_faces=false&action=like&colorscheme=light&font" scrolling="no" frameborder="0" style="border:none; overflow:hidden;height:32px;width:100px" allowTransparency="true"></iframe></li><li id="LinkedIn_Counter"><script src="http://platform.linkedin.com/in.js" type="text/javascript"></script><script type="IN/Share" data-url="http://alexander.holbreich.org/2010/02/exim-mail-google/" data-counter="right"></script></li></ul></div>]]></content:encoded> <wfw:commentRss>http://alexander.holbreich.org/2010/02/exim-mail-google/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>SSH tunnel without password</title><link>http://alexander.holbreich.org/2010/02/ssh-tunnel-without-password/</link> <comments>http://alexander.holbreich.org/2010/02/ssh-tunnel-without-password/#comments</comments> <pubDate>Mon, 08 Feb 2010 23:16:40 +0000</pubDate> <dc:creator>shuron</dc:creator> <category><![CDATA[linux]]></category> <category><![CDATA[Software]]></category> <category><![CDATA[certificate]]></category> <category><![CDATA[debian]]></category> <category><![CDATA[encrypted]]></category> <category><![CDATA[public key]]></category> <category><![CDATA[remote server]]></category> <category><![CDATA[secure shell]]></category> <category><![CDATA[ssh]]></category><guid isPermaLink="false">http://alexander.holbreich.org/?p=517</guid> <description><![CDATA[SSH (Secure Shell) allows simple establishment of encrypted and authenticated connection between computers. Today i describe how easy it is do establish such SSH tunnels without using a password. You may need such connections when they have to be opened by daemons (e.g. Cron) without user interaction. Two words on theory. Password-less connections have to [...]]]></description> <content:encoded><![CDATA[<p><a href="http://alexander.holbreich.org/wp-content/uploads/2010/02/ssh.jpg?4c9b33"><img class="alignleft size-thumbnail wp-image-520" style="margin: 5px 10px;" title="ssh" src="http://alexander.holbreich.org/wp-content/uploads/2010/02/ssh-150x150.jpg?4c9b33" alt="" width="150" height="150" /></a> SSH (Secure Shell) allows simple establishment of encrypted and authenticated connection between computers. Today i describe how easy it is do establish such SSH tunnels without using a password. You may need such connections when they have to be opened by daemons (e.g. Cron) without user interaction.</p><p> Two words on theory. Password-less connections have to be authenticated at least so strong like the password enabled one, so asymmetric cryptography which enables certificates comes into play.  The clue is to have private and public keys and share your public key with domains which should be able identify you.</p><p> So therefore let&#8217;s start by generation a needed key-pair.</p><h2>Generating Keys</h2><p> It is possible to create key with pass-phrase and without (or empty pass-phrases). I prefer to not use pass phrase because it is asked every-time on later usage of a ssh.<br /> Even there are ways to gives the pass-phrase to ssh command, but it is more work, with no significant security benefits. So i do the following statement and do not enter any pass-phrase (just hit enter on question).</p><pre class="brush: bash; title: ; notranslate">
$ ssh-keygen -t rsa
</pre></p><p> This will create <a href="http://en.wikipedia.org/wiki/RSA">RSA</a> key-pair as following files in ~/.ssh directory:</p><ul><li>id_rsa</li><li>id_rsa.pub</li></ul><p>Now public key need to be copied to remote host and has to be added to end of <em>~/.ssh/authorized_keys</em> file.</p><h2>Transfer Public keys</h2><p>The best way to do it is to use <em>ssh-copy-id</em> program which is inside of many linux distributions.</p><pre class="brush: bash; title: ; notranslate">
$ ssh-copy-id -i ~/.ssh/id_rsa.pub remote-user@remote-server.org
</pre><p>In that case everything is done automatically and you are ready after that.  But if <em>ssh-copy-id</em> is not available, you can copy keys manually e.g. like that.</p><pre class="brush: bash; title: ; notranslate">
$ cat ~/.ssh/*.pub | ssh remote-user@remote-server.org 'umask 077; cat &gt;&gt;.ssh/authorized_keys'
</pre><p><strong>Attention! </strong>On some linux distrs SSH2 searches for keys in <em>~/.ssh/authorized_keys2</em> . Not so in actual Debian (Lenny), but seems to be so in SuSe linux.</p><h2>Test</h2><p>Now remote login, scp and sftp can be used without password.<br /> Test it:</p><pre class="brush: bash; title: ; notranslate">
# establish connection
$ ssh remote-user@remote-server.org
#or copy files secure and password-less.
$ scp /home/user/some-file remote-user@remote-server.org:/some-path/dir/
</pre><p>More information on <a href="http://www.openssh.org/manual.html">SSH related man pages</a>.</p><div class="sociable"><div class="sociable_tagline"><a class='sociable_tagline' target='_blank' href='http://blogplay.com' style='font-size:11px;color:#333333;text-decoration:none'>Be Sociable, Share!</a></div><ul class='clearfix'><li><a title="Facebook" class="option1_16" style="background-position:-48px 0px" rel="nofollow" target="_blank" href="http://www.facebook.com/share.php?u=http%3A%2F%2Falexander.holbreich.org%2F2010%2F02%2Fssh-tunnel-without-password%2F&amp;t=SSH%20tunnel%20without%20password"></a></li><li><a title="HackerNews" class="option1_16" style="background-position:-128px 0px" rel="nofollow" target="_blank" href="http://news.ycombinator.com/submitlink?u=http%3A%2F%2Falexander.holbreich.org%2F2010%2F02%2Fssh-tunnel-without-password%2F&amp;t=SSH%20tunnel%20without%20password"></a></li><li><a title="Reddit" class="option1_16" style="background-position:-64px -16px" rel="nofollow" target="_blank" href="http://reddit.com/submit?url=http%3A%2F%2Falexander.holbreich.org%2F2010%2F02%2Fssh-tunnel-without-password%2F&amp;title=SSH%20tunnel%20without%20password"></a></li><li><a title="Digg" class="option1_16" style="background-position:-32px 0px" rel="nofollow" target="_blank" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Falexander.holbreich.org%2F2010%2F02%2Fssh-tunnel-without-password%2F&amp;title=SSH%20tunnel%20without%20password&amp;bodytext=%20SSH%20%28Secure%20Shell%29%20allows%20simple%20establishment%20of%20encrypted%20and%20authenticated%20connection%20between%20computers.%20Today%20i%20describe%20how%20easy%20it%20is%20do%20establish%20such%20SSH%20tunnels%20without%20using%20a%20password.%20You%20may%20need%20such%20connections%20when%20they%20have%20to%20be%20op"></a></li><li><a title="Tumblr" class="option1_16" style="background-position:-128px -16px" rel="nofollow" target="_blank" href="http://www.tumblr.com/share?v=3&amp;u=http%3A%2F%2Falexander.holbreich.org%2F2010%2F02%2Fssh-tunnel-without-password%2F&amp;t=SSH%20tunnel%20without%20password&amp;s=%20SSH%20%28Secure%20Shell%29%20allows%20simple%20establishment%20of%20encrypted%20and%20authenticated%20connection%20between%20computers.%20Today%20i%20describe%20how%20easy%20it%20is%20do%20establish%20such%20SSH%20tunnels%20without%20using%20a%20password.%20You%20may%20need%20such%20connections%20when%20they%20have%20to%20be%20op"></a></li><li><a title="BlinkList" class="option1_16" style="background-position:0px 0px" rel="nofollow" target="_blank" href="http://www.blinklist.com/index.php?Action=Blink/addblink.php&amp;Url=http%3A%2F%2Falexander.holbreich.org%2F2010%2F02%2Fssh-tunnel-without-password%2F&amp;Title=SSH%20tunnel%20without%20password"></a></li><li><a title="Google Reader" class="option1_16" style="background-position:-112px 0px" rel="nofollow" target="_blank" href="http://www.google.com/reader/link?url=http%3A%2F%2Falexander.holbreich.org%2F2010%2F02%2Fssh-tunnel-without-password%2F&amp;title=SSH%20tunnel%20without%20password&amp;srcURL=http%3A%2F%2Falexander.holbreich.org%2F2010%2F02%2Fssh-tunnel-without-password%2F&amp;srcTitle=Alexander+Holbreich+Everything+becomes+a+little+different+as+soon+as+it+is+spoken+out+loud.++%7EHermann+Hesse"></a></li><li><a title="StumbleUpon" class="option1_16" style="background-position:-112px -16px" rel="nofollow" target="_blank" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Falexander.holbreich.org%2F2010%2F02%2Fssh-tunnel-without-password%2F&title=SSH%20tunnel%20without%20password"></a></li><li><a title="Myspace" class="option1_16" style="background-position:0px -16px" rel="nofollow" target="_blank" href="http://www.myspace.com/Modules/PostTo/Pages/?u=http%3A%2F%2Falexander.holbreich.org%2F2010%2F02%2Fssh-tunnel-without-password%2F&amp;t=SSH%20tunnel%20without%20password"></a></li><li><a title="Sphinn" class="option1_16" style="background-position:-96px -16px" rel="nofollow" target="_blank" href="http://sphinn.com/index.php?c=post&amp;m=submit&amp;link=http%3A%2F%2Falexander.holbreich.org%2F2010%2F02%2Fssh-tunnel-without-password%2F"></a></li><li><a class="option1_16" style="cursor:pointer;background-position:-64px 0px" rel="nofollow" title="Add to favorites - doesn't work in Chrome"  onClick="javascript:AddToFavorites();"></a></li><li><a title="Posterous" class="option1_16" style="background-position:-32px -16px" rel="nofollow" target="_blank" href="http://posterous.com/share?linkto=http%3A%2F%2Falexander.holbreich.org%2F2010%2F02%2Fssh-tunnel-without-password%2F&amp;title=SSH%20tunnel%20without%20password&amp;selection=%20SSH%20%28Secure%20Shell%29%20allows%20simple%20establishment%20of%20encrypted%20and%20authenticated%20connection%20between%20computers.%20Today%20i%20describe%20how%20easy%20it%20is%20do%20establish%20such%20SSH%20tunnels%20without%20using%20a%20password.%20You%20may%20need%20such%20connections%20when%20they%20have%20to%20be%20op"></a></li></ul><div onMouseout="fixOnMouseOut(this,event,'post-517')" id="sociable-post-517" style="display:none;"><div style="top: auto; left: auto; display: block;" id="sociable"><div class="popup"><div class="content"><ul><li style="heigth:16px;width:16px"><a title="Twitter" class="option1_16" style="background-position:-144px -16px" rel="nofollow" target="_blank" href="http://twitter.com/intent/tweet?text=SSH%20tunnel%20without%20password%20-%20http%3A%2F%2Falexander.holbreich.org%2F2010%2F02%2Fssh-tunnel-without-password%2F%20(via%20@sociablesite)"></a></li><li style="heigth:16px;width:16px"><a title="LinkedIn" class="option1_16" style="background-position:-144px 0px" rel="nofollow" target="_blank" href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http%3A%2F%2Falexander.holbreich.org%2F2010%2F02%2Fssh-tunnel-without-password%2F&amp;title=SSH%20tunnel%20without%20password&amp;source=Alexander+Holbreich+Everything+becomes+a+little+different+as+soon+as+it+is+spoken+out+loud.++%7EHermann+Hesse&amp;summary=%20SSH%20%28Secure%20Shell%29%20allows%20simple%20establishment%20of%20encrypted%20and%20authenticated%20connection%20between%20computers.%20Today%20i%20describe%20how%20easy%20it%20is%20do%20establish%20such%20SSH%20tunnels%20without%20using%20a%20password.%20You%20may%20need%20such%20connections%20when%20they%20have%20to%20be%20op"></a></li><li style="heigth:16px;width:16px"><a title="Delicious" class="option1_16" style="background-position:-16px 0px" rel="nofollow" target="_blank" href="http://delicious.com/post?url=http%3A%2F%2Falexander.holbreich.org%2F2010%2F02%2Fssh-tunnel-without-password%2F&amp;title=SSH%20tunnel%20without%20password&amp;notes=%20SSH%20%28Secure%20Shell%29%20allows%20simple%20establishment%20of%20encrypted%20and%20authenticated%20connection%20between%20computers.%20Today%20i%20describe%20how%20easy%20it%20is%20do%20establish%20such%20SSH%20tunnels%20without%20using%20a%20password.%20You%20may%20need%20such%20connections%20when%20they%20have%20to%20be%20op"></a></li><li style="heigth:16px;width:16px"><a title="Google Bookmarks" class="option1_16" style="background-position:-96px 0px" rel="nofollow" target="_blank" href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Falexander.holbreich.org%2F2010%2F02%2Fssh-tunnel-without-password%2F&amp;title=SSH%20tunnel%20without%20password&amp;annotation=%20SSH%20%28Secure%20Shell%29%20allows%20simple%20establishment%20of%20encrypted%20and%20authenticated%20connection%20between%20computers.%20Today%20i%20describe%20how%20easy%20it%20is%20do%20establish%20such%20SSH%20tunnels%20without%20using%20a%20password.%20You%20may%20need%20such%20connections%20when%20they%20have%20to%20be%20op"></a></li><li style="heigth:16px;width:16px"><a title="MSNReporter" class="option1_16" style="background-position:-176px 0px" rel="nofollow" target="_blank" href="http://reporter.es.msn.com/?fn=contribute&amp;Title=SSH%20tunnel%20without%20password&amp;URL=http%3A%2F%2Falexander.holbreich.org%2F2010%2F02%2Fssh-tunnel-without-password%2F&amp;cat_id=6&amp;tag_id=31&amp;Remark=%20SSH%20%28Secure%20Shell%29%20allows%20simple%20establishment%20of%20encrypted%20and%20authenticated%20connection%20between%20computers.%20Today%20i%20describe%20how%20easy%20it%20is%20do%20establish%20such%20SSH%20tunnels%20without%20using%20a%20password.%20You%20may%20need%20such%20connections%20when%20they%20have%20to%20be%20op"></a></li><li style="heigth:16px;width:16px"><a title="email" class="option1_16" style="background-position:-80px 0px" rel="nofollow" target="_blank" href="https://mail.google.com/mail/?view=cm&fs=1&to&su=SSH%20tunnel%20without%20password&body=http%3A%2F%2Falexander.holbreich.org%2F2010%2F02%2Fssh-tunnel-without-password%2F&ui=2&tf=1&shva=1"></a></li><li style="heigth:16px;width:16px"><a style="cursor:poainter" rel="nofollow"   onMouseOver="more(this,'post-517')"><img src="http://alexander.holbreich.org/wp-content/plugins/sociable/images/option1/16/more.png?4c9b33" title="Posterous" alt="Posterous" /></a></li></ul></div> <a style="cursor:pointer" onclick="hide_sociable('post-517',true)" class="close"> <img onclick="hide_sociable('post-517',true)" title="close" src="http://alexander.holbreich.org/wp-content/plugins/sociable/images/closelabel.png?4c9b33"> </a></div></div></div></div><div class='sociable' style='float:none'><ul class='clearfix'><li id="Twitter_Counter"><a href="https://twitter.com/share" data-text="SSH tunnel without password - http://alexander.holbreich.org/2010/02/ssh-tunnel-without-password/ (via #sociablesite)" data-url="http://alexander.holbreich.org/2010/02/ssh-tunnel-without-password/" class="twitter-share-button" data-count="horizontal">Tweet</a><script type="text/javascript" src="//platform.twitter.com/widgets.js?4c9b33"></script></li><li id="Google_p"><g:plusone annotation="bubble" href="http://alexander.holbreich.org/2010/02/ssh-tunnel-without-password/" size="medium"></g:plusone></li><li id="Digg_Counter"><script type='text/javascript'>(function(){var s=document.createElement('SCRIPT'),s1=document.getElementsByTagName('SCRIPT')[0];s.type='text/javascript';s.async=true;s.src='http://widgets.digg.com/buttons.js';s1.parentNode.insertBefore(s,s1);})();</script><a href='http://digg.com/submit?url=http%3A%2F%2Falexander.holbreich.org%2F2010%2F02%2Fssh-tunnel-without-password%2F&amp;title=SSH%20tunnel%20without%20password'  class='DiggThisButton DiggCompact'></a></li><li id="StumbleUpon_Counter"><script src="http://www.stumbleupon.com/hostedbadge.php?s=2&r=http://alexander.holbreich.org/2010/02/ssh-tunnel-without-password/"></script></li><li id="Facebook_Counter"><iframe src="//www.facebook.com/plugins/like.php?href=http://alexander.holbreich.org/2010/02/ssh-tunnel-without-password/&send=false&layout=button_count&show_faces=false&action=like&colorscheme=light&font" scrolling="no" frameborder="0" style="border:none; overflow:hidden;height:32px;width:100px" allowTransparency="true"></iframe></li><li id="LinkedIn_Counter"><script src="http://platform.linkedin.com/in.js" type="text/javascript"></script><script type="IN/Share" data-url="http://alexander.holbreich.org/2010/02/ssh-tunnel-without-password/" data-counter="right"></script></li></ul></div>]]></content:encoded> <wfw:commentRss>http://alexander.holbreich.org/2010/02/ssh-tunnel-without-password/feed/</wfw:commentRss> <slash:comments>4</slash:comments> </item> <item><title>JBoss 5 GA on Debian linux</title><link>http://alexander.holbreich.org/2010/01/java-jboss-debian-linux/</link> <comments>http://alexander.holbreich.org/2010/01/java-jboss-debian-linux/#comments</comments> <pubDate>Tue, 26 Jan 2010 23:50:05 +0000</pubDate> <dc:creator>shuron</dc:creator> <category><![CDATA[JBoss]]></category> <category><![CDATA[linux]]></category> <category><![CDATA[Software]]></category> <category><![CDATA[application server]]></category> <category><![CDATA[debian]]></category> <category><![CDATA[Java]]></category> <category><![CDATA[script]]></category><guid isPermaLink="false">http://alexander.holbreich.org?p=31</guid> <description><![CDATA[This short tutorial describes how to configure JBoss Application Server (Jboss GA 5.1.0) on a debian linux (Debian GNU/Linux 5.x &#8220;Lenny&#8221; ). Article starts with installation of java JDK and continues with JBoss installation and basic configuration according to standard  file system hierarchy. Also init.d. scripts configuration is given here. Installing Java SDK Nowadays  installing [...]]]></description> <content:encoded><![CDATA[<p>This short tutorial describes how to configure JBoss Application Server (Jboss GA 5.1.0) on a debian linux (Debian GNU/Linux 5.x &#8220;Lenny&#8221; ). Article starts with installation of java JDK and continues with JBoss installation and basic configuration according to standard  file system hierarchy. Also init.d. scripts configuration is given here.</p><h2>Installing Java SDK</h2><p>Nowadays  installing Java environment on Debian is an easy task. I used JDK 1.6. Don&#8217;t confound JDK with JRE, because bare Java Runtime Environment is not enough for running JBoss. Debian Wiki maintains (hope) a<a href="http://wiki.debian.org/Java" target="_blank"> list of available java .deb packages</a>, which are easily can be installed with your preferred way. I prefer <em>aptitude</em>, but <em>apt-get</em> of course works too.</p><pre class="brush: bash; title: ; notranslate">
$ aptitude install sun-java6-jdk
#or by good old apt-get.
$ apt-get install sun-java6-jdk
</pre><p>Installation is done after seconds. Now test your java installation with</p><pre class="brush: bash; title: ; notranslate">
$ java -version
# Here example result on my configuration:

java version &quot;1.6.0_12&quot;
Java(TM) SE Runtime Environment (build 1.6.0_12-b04)
Java HotSpot(TM) 64-Bit Server VM (build 11.2-b01, mixed mode)
</pre><p>If you get something like this, you&#8217;re done and your java should be already in the PATH.</p><h2>Installing JBoss AS</h2><p>Now let&#8217;s install  JBoss Application Server.</p><h3>Preparing</h3><p><a href="http://alexander.holbreich.org/wp-content/uploads/2010/01/openlogo-nd-50.png?4c9b33"><img class="alignleft size-full wp-image-500" style="margin-left: 15px; margin-right: 15px;" title="openlogo-nd-debian" src="http://alexander.holbreich.org/wp-content/uploads/2010/01/openlogo-nd-50.png?4c9b33" alt="" width="50" height="61" /></a>Normally you are not willing  to start services (especially when they are accessed from outher machines) with root privileges. Therefore we have to define new user and group which will be used to manage JBoss.  So next line will create new group and new user with this group.</p><pre class="brush: bash; title: ; notranslate">
 $ groupadd jboss
 $ useradd -s /bin/bash -d /home/jboss -m -g jboss jboss
</pre><p>This jboss user has no password, so nobody can login with this username. If you consider to  login with jboss user,  password has to be set. Use <em>passwd jboss</em> command for that.</p><h3>Download, Installation,  filesystem layout</h3><p>Now  download desired Jboss version. I started with JBoss 5.1.0 GA, which can be download with:</p><pre class="brush: bash; title: ; notranslate">
$ cd /tmp # swithch to temp dir
$ wget http://sourceforge.net/projects/jboss/files/JBoss/JBoss-5.1.0.GA/jboss-5.1.0.GA.zip/download
</pre><p>Check also the whole <a href="http://labs.jboss.com/jbossas/downloads/" target="_blank">list of verisons</a> if interested. As you may noticed JBoss binaries are packaged with ZIP. So it is comfortable to use<em> unzip</em> tool. Maybe you have to install it first.</p><p>But before you extract  downloaded file, we have to decide, where exactly should JBoss files be placed on a  file-system. Unfortunately JBoss is not quite conform to Linux <a href="http://proton.pathname.com/fhs/pub/fhs-2.3.html" target="_blank">File System Hierarchy Standard</a> per default, so there are many possibilities for a location configuration. Some of you may want to place JBoss  into <em>/opt</em> directory. But I prefer to split the installation a little bit and  want to start by putting  JBoss core files in <em>/usr/local/,</em> where local, unchangeable and read-only files usually placed. E.g. I use  /usr/local/jboss/510 as JBoss 5.1.0 GA root.  So let&#8217;s create that location and extract files into it.</p><pre class="brush: bash; title: ; notranslate">
mkdir /usr/local/jboss #create new jboss directroy
chown jboss:jboss /usr/local/jboss #now its belongs touser jboss and group jboss
su jboss
mkdir /usr/local/jboss/510
cd /usr/local/jboss/510
unzip /tmp/jboss-5.1.0.GA.zip
</pre><p>At this moment you should have new working JBoss. If you want, test it with</p><pre class="brush: bash; title: ; notranslate">
bin/run.sh -b 0.0.0.0
</pre><p>Where<em> -b 0.0.0.0 </em>means that JBoss is listening for every ip address of current machine.</p><p>However at this stage the installed Jboss still brakes the  Linux Filesystem Hierarchy Standard, so let&#8217;s improve this situation.</p><p><span id="more-31"></span>After the first start of the server used configuration will have new directories <em>/tmp</em> and <em>/work</em> . The /tmp directory contain the temporarily state of the deployed applications and /work is contains compiled jsp pages of deployed applications. Therefore both directories are of temporal character and  should be on more appropriate place according to Linux standards.</p><p>I use only a default JBoss configuration,  which is defined under <em>&lt;jboss_root&gt;/server/default</em>, so I need to do further changes only for this configuration. My decision is to put both directories to /var /tmp/jboss.:</p><pre class="brush: bash; title: ; notranslate">
$ mkdir /var/tmp/jboss
$ chown jboss:jboss /var/tmp/jboss/
$ su jboss
$ mkdir /var/tmp/jboss/510
$ mkdir /var/tmp/jboss/510/tmp # creating alternavtive location for tmp
$ mkdir /var/tmp/jboss/510/work # creating alternavtive location for work
$ cd /usr/local/jboss/510/server/default # switch to configuration directory if not allready here.
$ rm -R tmp # delete existing tmp directory (server should not run at this moment)
$ rm -R work # delete existing work directory
$ ln -s /var/tmp/jboss/510/tmp ./tmp # Finaly create symbolic link to new place$
$ ln -s /var/tmp/jboss/510/work ./work # Finaly create symbolic link to new place
</pre><p>repeat the same for /log directory. It is common to have logs at one place in /var/log<br /> create a log directory tree e.g. /var/log/jboss/510/ and let log link to it as was shown for tmp and work directories.</p><p>After that your configuration directory should look like:</p><pre class="brush: bash; title: ; notranslate">
$ ls -l /usr/local/jboss/510/server/default
drwxr-xr-x  6 jboss jboss 4096 22. Mai 2009  conf
drwxr-xr-x  6 jboss jboss 4096 23. Jan 00:10 data
drwxr-xr-x 15 jboss jboss 4096 22. Mai 2009  deploy
drwxr-xr-x 12 jboss jboss 4096 22. Mai 2009  deployers
drwxr-xr-x  2 jboss jboss 4096 22. Mai 2009  lib
lrwxrwxrwx  1 jboss jboss   19 23. Jan 01:07 log -&gt; /var/log/jboss/510/
lrwxrwxrwx  1 jboss jboss   23 23. Jan 01:13 tmp -&gt; /var/tmp/jboss/510/tmp/
lrwxrwxrwx  1 jboss jboss   24 23. Jan 01:13 work -&gt; /var/tmp/jboss/510/work/
</pre><p>And your logs are of course accessible directly at new location e.g.</p><pre class="brush: bash; title: ; notranslate">
tail -1000f /var/log/jboss/510/server.log
</pre><p>Furthermore you should deploy your applications to /srv/jboss/510 to enable this location for automatically scan and deployment,just create a link from /default/deploy/. Call it e.g. applications.:</p><pre class="brush: bash; title: ; notranslate">
$ ln -s /srv/jboss/510 ./usr/local/jboss/510/server/default/deploy/applications #
</pre><p>So applications which are placed to /srv/jboss/510 will be automatically deployed on the server.</p><h3>Start JBoss on boot</h3><p>First of all you need a life-cycle management script used by <em>init</em>. Jboss already provides some of then.  Let&#8217;s use one of Red Hat default script by adopting it a little bit. First of all copy the script to common place (feel free to ad version ti scriptname if you need or like)</p><pre class="brush: bash; title: ; notranslate">
$ cp /usr/local/jboss/bin/jboss_init_redhat.sh /etc/init.d/jboss
</pre><p>If you want to access you fresh JBoss also from other IP addresses you need to change<br /> JBOSS_HOST line according to:</p><pre class="brush: bash; title: ; notranslate">
JBOSS_BIND_ADDR=${JBOSS_HOST:-&quot;-b 0.0.0.0&quot;}.
</pre><p>0.0.0.0. binds it on all IP addresses. Consider to change also other param this file to mach your personal needs. Now you can automatically create all the symbolic links used by <em>init</em> service.</p><pre class="brush: bash; title: ; notranslate">

$ update-rc.d jboss defaults
</pre><p>Now your Jboss will  start automatically after reboot&#8230;</p><h3>Additional configuration</h3><ul><li><em>&lt;jboss_root&gt;/bin/run.conf</em> file configures the start parameters of the server. Maybe default limits are not suitable for your applications. So check it.</li><li>Under <em>&lt;jboss_root&gt;/server/default/conf</em> you will find some configuration files of the default server configuration. One of the interesting is of course <em>jboss-lo4j.xml</em>, where you can precisely define logging processing.</li></ul><h3>Questions &amp; Suggestions</h3><p>Thank you for reading this. Please feel free to provide any suggestions to the topic of JBoss installation on Linux and specially on Debian. Of course your questions are welcome too!</p><div class="sociable"><div class="sociable_tagline"><a class='sociable_tagline' target='_blank' href='http://blogplay.com' style='font-size:11px;color:#333333;text-decoration:none'>Be Sociable, Share!</a></div><ul class='clearfix'><li><a title="Facebook" class="option1_16" style="background-position:-48px 0px" rel="nofollow" target="_blank" href="http://www.facebook.com/share.php?u=http%3A%2F%2Falexander.holbreich.org%2F2010%2F01%2Fjava-jboss-debian-linux%2F&amp;t=JBoss%205%20GA%20on%20Debian%20linux"></a></li><li><a title="HackerNews" class="option1_16" style="background-position:-128px 0px" rel="nofollow" target="_blank" href="http://news.ycombinator.com/submitlink?u=http%3A%2F%2Falexander.holbreich.org%2F2010%2F01%2Fjava-jboss-debian-linux%2F&amp;t=JBoss%205%20GA%20on%20Debian%20linux"></a></li><li><a title="Reddit" class="option1_16" style="background-position:-64px -16px" rel="nofollow" target="_blank" href="http://reddit.com/submit?url=http%3A%2F%2Falexander.holbreich.org%2F2010%2F01%2Fjava-jboss-debian-linux%2F&amp;title=JBoss%205%20GA%20on%20Debian%20linux"></a></li><li><a title="Digg" class="option1_16" style="background-position:-32px 0px" rel="nofollow" target="_blank" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Falexander.holbreich.org%2F2010%2F01%2Fjava-jboss-debian-linux%2F&amp;title=JBoss%205%20GA%20on%20Debian%20linux&amp;bodytext=This%20short%20tutorial%20describes%20how%20to%20configure%20JBoss%20Application%20Server%20%28Jboss%20GA%205.1.0%29%20on%20a%20debian%20linux%20%28Debian%20GNU%2FLinux%205.x%20%22Lenny%22%20%29.%20Article%20starts%20with%20installation%20of%20java%20JDK%20and%20continues%20with%20JBoss%20installation%20and%20basic%20configuration%20acc"></a></li><li><a title="Tumblr" class="option1_16" style="background-position:-128px -16px" rel="nofollow" target="_blank" href="http://www.tumblr.com/share?v=3&amp;u=http%3A%2F%2Falexander.holbreich.org%2F2010%2F01%2Fjava-jboss-debian-linux%2F&amp;t=JBoss%205%20GA%20on%20Debian%20linux&amp;s=This%20short%20tutorial%20describes%20how%20to%20configure%20JBoss%20Application%20Server%20%28Jboss%20GA%205.1.0%29%20on%20a%20debian%20linux%20%28Debian%20GNU%2FLinux%205.x%20%22Lenny%22%20%29.%20Article%20starts%20with%20installation%20of%20java%20JDK%20and%20continues%20with%20JBoss%20installation%20and%20basic%20configuration%20acc"></a></li><li><a title="BlinkList" class="option1_16" style="background-position:0px 0px" rel="nofollow" target="_blank" href="http://www.blinklist.com/index.php?Action=Blink/addblink.php&amp;Url=http%3A%2F%2Falexander.holbreich.org%2F2010%2F01%2Fjava-jboss-debian-linux%2F&amp;Title=JBoss%205%20GA%20on%20Debian%20linux"></a></li><li><a title="Google Reader" class="option1_16" style="background-position:-112px 0px" rel="nofollow" target="_blank" href="http://www.google.com/reader/link?url=http%3A%2F%2Falexander.holbreich.org%2F2010%2F01%2Fjava-jboss-debian-linux%2F&amp;title=JBoss%205%20GA%20on%20Debian%20linux&amp;srcURL=http%3A%2F%2Falexander.holbreich.org%2F2010%2F01%2Fjava-jboss-debian-linux%2F&amp;srcTitle=Alexander+Holbreich+Everything+becomes+a+little+different+as+soon+as+it+is+spoken+out+loud.++%7EHermann+Hesse"></a></li><li><a title="StumbleUpon" class="option1_16" style="background-position:-112px -16px" rel="nofollow" target="_blank" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Falexander.holbreich.org%2F2010%2F01%2Fjava-jboss-debian-linux%2F&title=JBoss%205%20GA%20on%20Debian%20linux"></a></li><li><a title="Myspace" class="option1_16" style="background-position:0px -16px" rel="nofollow" target="_blank" href="http://www.myspace.com/Modules/PostTo/Pages/?u=http%3A%2F%2Falexander.holbreich.org%2F2010%2F01%2Fjava-jboss-debian-linux%2F&amp;t=JBoss%205%20GA%20on%20Debian%20linux"></a></li><li><a title="Sphinn" class="option1_16" style="background-position:-96px -16px" rel="nofollow" target="_blank" href="http://sphinn.com/index.php?c=post&amp;m=submit&amp;link=http%3A%2F%2Falexander.holbreich.org%2F2010%2F01%2Fjava-jboss-debian-linux%2F"></a></li><li><a class="option1_16" style="cursor:pointer;background-position:-64px 0px" rel="nofollow" title="Add to favorites - doesn't work in Chrome"  onClick="javascript:AddToFavorites();"></a></li><li><a title="Posterous" class="option1_16" style="background-position:-32px -16px" rel="nofollow" target="_blank" href="http://posterous.com/share?linkto=http%3A%2F%2Falexander.holbreich.org%2F2010%2F01%2Fjava-jboss-debian-linux%2F&amp;title=JBoss%205%20GA%20on%20Debian%20linux&amp;selection=This%20short%20tutorial%20describes%20how%20to%20configure%20JBoss%20Application%20Server%20%28Jboss%20GA%205.1.0%29%20on%20a%20debian%20linux%20%28Debian%20GNU%2FLinux%205.x%20%22Lenny%22%20%29.%20Article%20starts%20with%20installation%20of%20java%20JDK%20and%20continues%20with%20JBoss%20installation%20and%20basic%20configuration%20acc"></a></li></ul><div onMouseout="fixOnMouseOut(this,event,'post-31')" id="sociable-post-31" style="display:none;"><div style="top: auto; left: auto; display: block;" id="sociable"><div class="popup"><div class="content"><ul><li style="heigth:16px;width:16px"><a title="Twitter" class="option1_16" style="background-position:-144px -16px" rel="nofollow" target="_blank" href="http://twitter.com/intent/tweet?text=JBoss%205%20GA%20on%20Debian%20linux%20-%20http%3A%2F%2Falexander.holbreich.org%2F2010%2F01%2Fjava-jboss-debian-linux%2F%20(via%20@sociablesite)"></a></li><li style="heigth:16px;width:16px"><a title="LinkedIn" class="option1_16" style="background-position:-144px 0px" rel="nofollow" target="_blank" href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http%3A%2F%2Falexander.holbreich.org%2F2010%2F01%2Fjava-jboss-debian-linux%2F&amp;title=JBoss%205%20GA%20on%20Debian%20linux&amp;source=Alexander+Holbreich+Everything+becomes+a+little+different+as+soon+as+it+is+spoken+out+loud.++%7EHermann+Hesse&amp;summary=This%20short%20tutorial%20describes%20how%20to%20configure%20JBoss%20Application%20Server%20%28Jboss%20GA%205.1.0%29%20on%20a%20debian%20linux%20%28Debian%20GNU%2FLinux%205.x%20%22Lenny%22%20%29.%20Article%20starts%20with%20installation%20of%20java%20JDK%20and%20continues%20with%20JBoss%20installation%20and%20basic%20configuration%20acc"></a></li><li style="heigth:16px;width:16px"><a title="Delicious" class="option1_16" style="background-position:-16px 0px" rel="nofollow" target="_blank" href="http://delicious.com/post?url=http%3A%2F%2Falexander.holbreich.org%2F2010%2F01%2Fjava-jboss-debian-linux%2F&amp;title=JBoss%205%20GA%20on%20Debian%20linux&amp;notes=This%20short%20tutorial%20describes%20how%20to%20configure%20JBoss%20Application%20Server%20%28Jboss%20GA%205.1.0%29%20on%20a%20debian%20linux%20%28Debian%20GNU%2FLinux%205.x%20%22Lenny%22%20%29.%20Article%20starts%20with%20installation%20of%20java%20JDK%20and%20continues%20with%20JBoss%20installation%20and%20basic%20configuration%20acc"></a></li><li style="heigth:16px;width:16px"><a title="Google Bookmarks" class="option1_16" style="background-position:-96px 0px" rel="nofollow" target="_blank" href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Falexander.holbreich.org%2F2010%2F01%2Fjava-jboss-debian-linux%2F&amp;title=JBoss%205%20GA%20on%20Debian%20linux&amp;annotation=This%20short%20tutorial%20describes%20how%20to%20configure%20JBoss%20Application%20Server%20%28Jboss%20GA%205.1.0%29%20on%20a%20debian%20linux%20%28Debian%20GNU%2FLinux%205.x%20%22Lenny%22%20%29.%20Article%20starts%20with%20installation%20of%20java%20JDK%20and%20continues%20with%20JBoss%20installation%20and%20basic%20configuration%20acc"></a></li><li style="heigth:16px;width:16px"><a title="MSNReporter" class="option1_16" style="background-position:-176px 0px" rel="nofollow" target="_blank" href="http://reporter.es.msn.com/?fn=contribute&amp;Title=JBoss%205%20GA%20on%20Debian%20linux&amp;URL=http%3A%2F%2Falexander.holbreich.org%2F2010%2F01%2Fjava-jboss-debian-linux%2F&amp;cat_id=6&amp;tag_id=31&amp;Remark=This%20short%20tutorial%20describes%20how%20to%20configure%20JBoss%20Application%20Server%20%28Jboss%20GA%205.1.0%29%20on%20a%20debian%20linux%20%28Debian%20GNU%2FLinux%205.x%20%22Lenny%22%20%29.%20Article%20starts%20with%20installation%20of%20java%20JDK%20and%20continues%20with%20JBoss%20installation%20and%20basic%20configuration%20acc"></a></li><li style="heigth:16px;width:16px"><a title="email" class="option1_16" style="background-position:-80px 0px" rel="nofollow" target="_blank" href="https://mail.google.com/mail/?view=cm&fs=1&to&su=JBoss%205%20GA%20on%20Debian%20linux&body=http%3A%2F%2Falexander.holbreich.org%2F2010%2F01%2Fjava-jboss-debian-linux%2F&ui=2&tf=1&shva=1"></a></li><li style="heigth:16px;width:16px"><a style="cursor:poainter" rel="nofollow"   onMouseOver="more(this,'post-31')"><img src="http://alexander.holbreich.org/wp-content/plugins/sociable/images/option1/16/more.png?4c9b33" title="Posterous" alt="Posterous" /></a></li></ul></div> <a style="cursor:pointer" onclick="hide_sociable('post-31',true)" class="close"> <img onclick="hide_sociable('post-31',true)" title="close" src="http://alexander.holbreich.org/wp-content/plugins/sociable/images/closelabel.png?4c9b33"> </a></div></div></div></div><div class='sociable' style='float:none'><ul class='clearfix'><li id="Twitter_Counter"><a href="https://twitter.com/share" data-text="JBoss 5 GA on Debian linux - http://alexander.holbreich.org/2010/01/java-jboss-debian-linux/ (via #sociablesite)" data-url="http://alexander.holbreich.org/2010/01/java-jboss-debian-linux/" class="twitter-share-button" data-count="horizontal">Tweet</a><script type="text/javascript" src="//platform.twitter.com/widgets.js?4c9b33"></script></li><li id="Google_p"><g:plusone annotation="bubble" href="http://alexander.holbreich.org/2010/01/java-jboss-debian-linux/" size="medium"></g:plusone></li><li id="Digg_Counter"><script type='text/javascript'>(function(){var s=document.createElement('SCRIPT'),s1=document.getElementsByTagName('SCRIPT')[0];s.type='text/javascript';s.async=true;s.src='http://widgets.digg.com/buttons.js';s1.parentNode.insertBefore(s,s1);})();</script><a href='http://digg.com/submit?url=http%3A%2F%2Falexander.holbreich.org%2F2010%2F01%2Fjava-jboss-debian-linux%2F&amp;title=JBoss%205%20GA%20on%20Debian%20linux'  class='DiggThisButton DiggCompact'></a></li><li id="StumbleUpon_Counter"><script src="http://www.stumbleupon.com/hostedbadge.php?s=2&r=http://alexander.holbreich.org/2010/01/java-jboss-debian-linux/"></script></li><li id="Facebook_Counter"><iframe src="//www.facebook.com/plugins/like.php?href=http://alexander.holbreich.org/2010/01/java-jboss-debian-linux/&send=false&layout=button_count&show_faces=false&action=like&colorscheme=light&font" scrolling="no" frameborder="0" style="border:none; overflow:hidden;height:32px;width:100px" allowTransparency="true"></iframe></li><li id="LinkedIn_Counter"><script src="http://platform.linkedin.com/in.js" type="text/javascript"></script><script type="IN/Share" data-url="http://alexander.holbreich.org/2010/01/java-jboss-debian-linux/" data-counter="right"></script></li></ul></div>]]></content:encoded> <wfw:commentRss>http://alexander.holbreich.org/2010/01/java-jboss-debian-linux/feed/</wfw:commentRss> <slash:comments>17</slash:comments> </item> <item><title>Software RAID on Debian Linux</title><link>http://alexander.holbreich.org/2010/01/software-raid-debian/</link> <comments>http://alexander.holbreich.org/2010/01/software-raid-debian/#comments</comments> <pubDate>Thu, 14 Jan 2010 00:57:11 +0000</pubDate> <dc:creator>shuron</dc:creator> <category><![CDATA[Hardware]]></category> <category><![CDATA[linux]]></category> <category><![CDATA[filesystem]]></category> <category><![CDATA[mdadm]]></category> <category><![CDATA[monitoring]]></category> <category><![CDATA[raid 1]]></category> <category><![CDATA[raid test]]></category> <category><![CDATA[software raid]]></category><guid isPermaLink="false">http://alexander.holbreich.org/?p=423</guid> <description><![CDATA[Wow, my last post here is month ago. But don&#8217;t worry I did not forget about my blog. There are just many thing happened in my life, all of them are time consuming So there no reason to remove me from your RSS reader. Today i will share some thought on software RAID under linux [...]]]></description> <content:encoded><![CDATA[<p>Wow, my last post here is month ago. But don&#8217;t worry I did not forget about my blog. There are just many thing happened in my life, all of them are time consuming <img src="http://alexander.holbreich.org/wp-includes/images/smilies/icon_smile.gif?4c9b33" alt=':)' class='wp-smiley' /> So there no reason to remove me from your RSS reader. Today i will share some thought on software RAID under linux with you.</p><div class="wp-caption alignright" style="width: 216px"><img title="RAID 1" src="http://upload.wikimedia.org/wikipedia/commons/thumb/b/b7/RAID_1.svg/325px-RAID_1.svg.png" alt="RAID 1" width="206" height="286" /><p class="wp-caption-text">RAID 1</p></div><p>Sometimes you need to store data relative save and high available. That is where RAID solutions come in to play. Especially RAID 1 (mirroring) based solutions provide better availability of your data. But don&#8217;t forget to use backs anyway <img src="http://alexander.holbreich.org/wp-includes/images/smilies/icon_smile.gif?4c9b33" alt=':)' class='wp-smiley' /></p><p>Some days ago i installed RAID 1 on Debian Lenny (amd64 arch) without any troubles for now.<br /> I just was following <a href="http://dev.jerryweb.org/raid/">Jerry&#8217;s description</a> which is enough detailed to make no mistakes except maybe one thing.<br /> The Partitions used in the RAID /dev/md0/ should both enable boot flag if you want to boot from RAID.<br /> This is worked for me.</p><h2>Configuration</h2><p>My configuration is the same as Jerry&#8217;s except partition sizes and chosed LVM. So boot is done form RAID partition /dev/md0. And SWAP is on RAID too, which is controversy solution but it the best one for me, of course availability of a system is primary goal.</p><p>So how to check the state of raid after installation. The simplest is to look on /proc file-system with <em>$cat /proc/mdstat</em>. Here is my configuration.</p><pre class="brush: bash; title: ; notranslate">
$cat /proc/mdstat
Personalities : [raid1]
md1 : active raid1 sda2[0] sdb2[1]
476560128 blocks [2/2] [UU]

md0 : active raid1 sda1[0] sdb1[1]
497856 blocks [2/2] [UU]

unused devices: &lt;none&gt;
</pre><p>Here you see two RAID arrays <em>md0</em> and<em> md1</em>. Also information about used devices and state are peresent. <em>[UU] </em>stand for &#8220;used&#8221; for every disc is used in a raid. On diskfailure you wold see something like <em>[U_] </em>and <em>sdb2(F)</em>.</p><p>Next example utilizes <strong>mdadm</strong> which is used by kernel in latest kernel versions. My is 2.6.26-2-amd64 (lenny default)<br /> Use of <em>&#8211;detail </em>or <em>-D</em> option with a device name gives more information. Here my example.</p><pre class="brush: bash; title: ; notranslate">
# mdadm --detail /dev/md1
/dev/md1:
Version : 00.90
Creation Time : Wed Jan  6 00:51:37 2010
Raid Level : raid1
Array Size : 476560128 (454.48 GiB 488.00 GB)
Used Dev Size : 476560128 (454.48 GiB 488.00 GB)
Raid Devices : 2
Total Devices : 2
Preferred Minor : 1
Persistence : Superblock is persistent

Update Time : Mon Jan 11 02:18:01 2010
State : clean
Active Devices : 2
Working Devices : 2
Failed Devices : 0
Spare Devices : 0

UUID : fe3bbbfd:2c6963e7:9785a408:be715448
Events : 0.8

Number   Major   Minor   RaidDevice State
0       8        2        0      active sync   /dev/sda2
1       8       18        1      active sync   /dev/sdb2
</pre><p><span id="more-423"></span></p><h2>GRUB Config</h2><p>If you wish that your system is able to boot even if one of disks fails completely. You need to write  GRUB loader on every hard disk separately.</p><p>Here the example for hd0 ( fist hard disk)</p><pre class="brush: bash; title: ; notranslate">
$ grub
grub&gt; root (hd0,0)
Filesystem type is ext2fs, partition type 0xfd
grub&gt; setup (hd0)
setup (hd0)
Checking if &quot;/boot/grub/stage1&quot; exists... no
Checking if &quot;/grub/stage1&quot; exists... yes
Checking if &quot;/grub/stage2&quot; exists... yes
Checking if &quot;/grub/e2fs_stage1_5&quot; exists... yes
Running &quot;embed /grub/e2fs_stage1_5 (hd0)&quot;...  17 sectors are embedded.
succeeded
Running &quot;install /grub/stage1 (hd0) (hd0)1+17 p (hd0,0)/grub/stage2 /grub/menu.lst&quot;... succeeded
Done.
</pre><p>Run the same also for second disk.</p><pre class="brush: bash; title: ; notranslate">
grub&gt; root (hd1,0)
...
grub&gt; setup (hd1)
</pre><p>Also your GRUB configuration should enabe loading form the first and alternatively the second disk.</p><pre class="brush: bash; title: ; notranslate">
default 0
fallback  1
# is there after installation
title           Debian GNU/Linux, kernel 2.6.18-6-686 Raid (hd0)
root            (hd0,0)
kernel          /boot/vmlinuz-2.6.18-6-686 root=/dev/md0 ro
initrd          /boot/initrd.img-2.6.18-6-686

# manually created
title           Debian GNU/Linux, kernel 2.6.18-6-686 Raid (hd1)
root            (hd1,0)
kernel          /boot/vmlinuz-2.6.18-6-686 root=/dev/md0 ro
initrd          /boot/initrd.img-2.6.18-6-686
</pre><p>The default option declares the first configuration to run on default. fallback option forces grub to load fallback configuration (here hd1)<br /> when the firt one could not start.</p><p>You&#8217;r done.</p><h2>Monitoring</h2><p>Once you run your &#8220;high&#8221;-available RAID you&#8217;re probably very interested to be informed about problems with it.<br /> E.g. on a failure of one (hope only one) HD device.</p><p>Yet i know only two most common solutions for monitoring Software RAID. First of it bases on <a href="http://www.nagios.org/" target="_blank">Nagios tool</a>, but is not described here, because not tired yet. The second is to involve mdadm again.</p><p>The  option <em>&#8211;monitor</em> causes mdadm periodically poll a your md arrays and to inform you on every events that occurs. mdadm should never exit process, so it should normally be run in the background.<br /> Here is example of sending a mail on event. Of course sendmail must be configured.</p><pre class="brush: bash; title: ; notranslate">
mdadm --monitor --mail=admin@yourcompany.com --scan --delay=1800 -ft
</pre><p>It would run a monitor deamon which scanns all of RAID arrays with delay. The option <em>f</em> starts it as deamon process and <em>t</em> option generates test messages on a startup.</p><p>When you want to run mdadm through crone job so use option <em>-1</em></p><pre class="brush: bash; title: ; notranslate">
mdadm --monitor--scan -1
</pre><p>Also this would send your mail or run program which are specified in /etc/mdadm.conf file.<br /> Please see <a href="http://linux.die.net/man/8/mdadm" target="_blank">manual of mdadm</a> for more details.</p><h2>Test Performance</h2><p>You can test our physical drives with hdparm utility e.g.</p><pre class="brush: bash; title: ; notranslate">
hdparm -tT /dev/hda
</pre><p>But hdparm would not correct work on your <em>mdX</em> RAID arrays.</p><p>So one of the simplest methods is to try <em>time</em> utility.</p><pre class="brush: bash; title: ; notranslate">
time dd if=/dev/md0 of=/dev/null bs=1024k count=1000
</pre><p>This test reads 1 GB data file from you RAID Array but reports to copy only something like &#8220;509804544 Bytes (510 MB) in 5,73989 s, 88,8 MB/s&#8221; by me. So why only half of the Gigabyte? Just be cause it utilizes two devices, as i think, and indeed it copies 500MB two times parallel = 1 Gig. And this only in the half of time as it needed to red 1 Gigabyte from physical <em>/dev/sda </em>directly.</p><pre class="brush: bash; title: ; notranslate">
time dd if=/dev/zero bs=1024k count=1000 of=/home/1Gb.file
</pre><p>This test writes 1 Gb file on RAID partition <em>/home</em> . Therefore you can compare write performance with RAID and non raid partitions but don&#8217;t expect any considerable advantages on Mirroring systems <img src="http://alexander.holbreich.org/wp-includes/images/smilies/icon_wink.gif?4c9b33" alt=';)' class='wp-smiley' /></p><p>The last one more professional but also complex tools is <a href="http://www.iozone.org/">iozone</a>. It can perform a various of tests,which can&#8217;t be explained here detailed.<br /> Please read manual if you really need to test your raid that way. Alternatively you can start <em>iozone</em> in automatic mode, which performs various of tests (relative long-running) and prints on console.</p><pre class="brush: bash; title: ; notranslate">
iozone -a
</pre><p>See on <em>Strided Read</em> column which should consider software RAID bonus.</p><h2>Failure and Recovery</h2><p>RAID 1 should preserve you from data loose and improve your scalability. So it  is very good idea to has relative good knowledge of what to do on Failure. Best way to get this knowledge is to simulate failure. Take try to remove one disk and put it again into array.</p><div class="sociable"><div class="sociable_tagline"><a class='sociable_tagline' target='_blank' href='http://blogplay.com' style='font-size:11px;color:#333333;text-decoration:none'>Be Sociable, Share!</a></div><ul class='clearfix'><li><a title="Facebook" class="option1_16" style="background-position:-48px 0px" rel="nofollow" target="_blank" href="http://www.facebook.com/share.php?u=http%3A%2F%2Falexander.holbreich.org%2F2010%2F01%2Fsoftware-raid-debian%2F&amp;t=Software%20RAID%20on%20Debian%20Linux"></a></li><li><a title="HackerNews" class="option1_16" style="background-position:-128px 0px" rel="nofollow" target="_blank" href="http://news.ycombinator.com/submitlink?u=http%3A%2F%2Falexander.holbreich.org%2F2010%2F01%2Fsoftware-raid-debian%2F&amp;t=Software%20RAID%20on%20Debian%20Linux"></a></li><li><a title="Reddit" class="option1_16" style="background-position:-64px -16px" rel="nofollow" target="_blank" href="http://reddit.com/submit?url=http%3A%2F%2Falexander.holbreich.org%2F2010%2F01%2Fsoftware-raid-debian%2F&amp;title=Software%20RAID%20on%20Debian%20Linux"></a></li><li><a title="Digg" class="option1_16" style="background-position:-32px 0px" rel="nofollow" target="_blank" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Falexander.holbreich.org%2F2010%2F01%2Fsoftware-raid-debian%2F&amp;title=Software%20RAID%20on%20Debian%20Linux&amp;bodytext=Wow%2C%20my%20last%20post%20here%20is%20month%20ago.%20But%20don%27t%20worry%20I%20did%20not%20forget%20about%20my%20blog.%20There%20are%20just%20many%20thing%20happened%20in%20my%20life%2C%20all%20of%20them%20are%20time%20consuming%20%3A%29%20So%20there%20no%20reason%20to%20remove%20me%20from%20your%20RSS%20reader.%20Today%20i%20will%20share%20some%20though"></a></li><li><a title="Tumblr" class="option1_16" style="background-position:-128px -16px" rel="nofollow" target="_blank" href="http://www.tumblr.com/share?v=3&amp;u=http%3A%2F%2Falexander.holbreich.org%2F2010%2F01%2Fsoftware-raid-debian%2F&amp;t=Software%20RAID%20on%20Debian%20Linux&amp;s=Wow%2C%20my%20last%20post%20here%20is%20month%20ago.%20But%20don%27t%20worry%20I%20did%20not%20forget%20about%20my%20blog.%20There%20are%20just%20many%20thing%20happened%20in%20my%20life%2C%20all%20of%20them%20are%20time%20consuming%20%3A%29%20So%20there%20no%20reason%20to%20remove%20me%20from%20your%20RSS%20reader.%20Today%20i%20will%20share%20some%20though"></a></li><li><a title="BlinkList" class="option1_16" style="background-position:0px 0px" rel="nofollow" target="_blank" href="http://www.blinklist.com/index.php?Action=Blink/addblink.php&amp;Url=http%3A%2F%2Falexander.holbreich.org%2F2010%2F01%2Fsoftware-raid-debian%2F&amp;Title=Software%20RAID%20on%20Debian%20Linux"></a></li><li><a title="Google Reader" class="option1_16" style="background-position:-112px 0px" rel="nofollow" target="_blank" href="http://www.google.com/reader/link?url=http%3A%2F%2Falexander.holbreich.org%2F2010%2F01%2Fsoftware-raid-debian%2F&amp;title=Software%20RAID%20on%20Debian%20Linux&amp;srcURL=http%3A%2F%2Falexander.holbreich.org%2F2010%2F01%2Fsoftware-raid-debian%2F&amp;srcTitle=Alexander+Holbreich+Everything+becomes+a+little+different+as+soon+as+it+is+spoken+out+loud.++%7EHermann+Hesse"></a></li><li><a title="StumbleUpon" class="option1_16" style="background-position:-112px -16px" rel="nofollow" target="_blank" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Falexander.holbreich.org%2F2010%2F01%2Fsoftware-raid-debian%2F&title=Software%20RAID%20on%20Debian%20Linux"></a></li><li><a title="Myspace" class="option1_16" style="background-position:0px -16px" rel="nofollow" target="_blank" href="http://www.myspace.com/Modules/PostTo/Pages/?u=http%3A%2F%2Falexander.holbreich.org%2F2010%2F01%2Fsoftware-raid-debian%2F&amp;t=Software%20RAID%20on%20Debian%20Linux"></a></li><li><a title="Sphinn" class="option1_16" style="background-position:-96px -16px" rel="nofollow" target="_blank" href="http://sphinn.com/index.php?c=post&amp;m=submit&amp;link=http%3A%2F%2Falexander.holbreich.org%2F2010%2F01%2Fsoftware-raid-debian%2F"></a></li><li><a class="option1_16" style="cursor:pointer;background-position:-64px 0px" rel="nofollow" title="Add to favorites - doesn't work in Chrome"  onClick="javascript:AddToFavorites();"></a></li><li><a title="Posterous" class="option1_16" style="background-position:-32px -16px" rel="nofollow" target="_blank" href="http://posterous.com/share?linkto=http%3A%2F%2Falexander.holbreich.org%2F2010%2F01%2Fsoftware-raid-debian%2F&amp;title=Software%20RAID%20on%20Debian%20Linux&amp;selection=Wow%2C%20my%20last%20post%20here%20is%20month%20ago.%20But%20don%27t%20worry%20I%20did%20not%20forget%20about%20my%20blog.%20There%20are%20just%20many%20thing%20happened%20in%20my%20life%2C%20all%20of%20them%20are%20time%20consuming%20%3A%29%20So%20there%20no%20reason%20to%20remove%20me%20from%20your%20RSS%20reader.%20Today%20i%20will%20share%20some%20though"></a></li></ul><div onMouseout="fixOnMouseOut(this,event,'post-423')" id="sociable-post-423" style="display:none;"><div style="top: auto; left: auto; display: block;" id="sociable"><div class="popup"><div class="content"><ul><li style="heigth:16px;width:16px"><a title="Twitter" class="option1_16" style="background-position:-144px -16px" rel="nofollow" target="_blank" href="http://twitter.com/intent/tweet?text=Software%20RAID%20on%20Debian%20Linux%20-%20http%3A%2F%2Falexander.holbreich.org%2F2010%2F01%2Fsoftware-raid-debian%2F%20(via%20@sociablesite)"></a></li><li style="heigth:16px;width:16px"><a title="LinkedIn" class="option1_16" style="background-position:-144px 0px" rel="nofollow" target="_blank" href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http%3A%2F%2Falexander.holbreich.org%2F2010%2F01%2Fsoftware-raid-debian%2F&amp;title=Software%20RAID%20on%20Debian%20Linux&amp;source=Alexander+Holbreich+Everything+becomes+a+little+different+as+soon+as+it+is+spoken+out+loud.++%7EHermann+Hesse&amp;summary=Wow%2C%20my%20last%20post%20here%20is%20month%20ago.%20But%20don%27t%20worry%20I%20did%20not%20forget%20about%20my%20blog.%20There%20are%20just%20many%20thing%20happened%20in%20my%20life%2C%20all%20of%20them%20are%20time%20consuming%20%3A%29%20So%20there%20no%20reason%20to%20remove%20me%20from%20your%20RSS%20reader.%20Today%20i%20will%20share%20some%20though"></a></li><li style="heigth:16px;width:16px"><a title="Delicious" class="option1_16" style="background-position:-16px 0px" rel="nofollow" target="_blank" href="http://delicious.com/post?url=http%3A%2F%2Falexander.holbreich.org%2F2010%2F01%2Fsoftware-raid-debian%2F&amp;title=Software%20RAID%20on%20Debian%20Linux&amp;notes=Wow%2C%20my%20last%20post%20here%20is%20month%20ago.%20But%20don%27t%20worry%20I%20did%20not%20forget%20about%20my%20blog.%20There%20are%20just%20many%20thing%20happened%20in%20my%20life%2C%20all%20of%20them%20are%20time%20consuming%20%3A%29%20So%20there%20no%20reason%20to%20remove%20me%20from%20your%20RSS%20reader.%20Today%20i%20will%20share%20some%20though"></a></li><li style="heigth:16px;width:16px"><a title="Google Bookmarks" class="option1_16" style="background-position:-96px 0px" rel="nofollow" target="_blank" href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Falexander.holbreich.org%2F2010%2F01%2Fsoftware-raid-debian%2F&amp;title=Software%20RAID%20on%20Debian%20Linux&amp;annotation=Wow%2C%20my%20last%20post%20here%20is%20month%20ago.%20But%20don%27t%20worry%20I%20did%20not%20forget%20about%20my%20blog.%20There%20are%20just%20many%20thing%20happened%20in%20my%20life%2C%20all%20of%20them%20are%20time%20consuming%20%3A%29%20So%20there%20no%20reason%20to%20remove%20me%20from%20your%20RSS%20reader.%20Today%20i%20will%20share%20some%20though"></a></li><li style="heigth:16px;width:16px"><a title="MSNReporter" class="option1_16" style="background-position:-176px 0px" rel="nofollow" target="_blank" href="http://reporter.es.msn.com/?fn=contribute&amp;Title=Software%20RAID%20on%20Debian%20Linux&amp;URL=http%3A%2F%2Falexander.holbreich.org%2F2010%2F01%2Fsoftware-raid-debian%2F&amp;cat_id=6&amp;tag_id=31&amp;Remark=Wow%2C%20my%20last%20post%20here%20is%20month%20ago.%20But%20don%27t%20worry%20I%20did%20not%20forget%20about%20my%20blog.%20There%20are%20just%20many%20thing%20happened%20in%20my%20life%2C%20all%20of%20them%20are%20time%20consuming%20%3A%29%20So%20there%20no%20reason%20to%20remove%20me%20from%20your%20RSS%20reader.%20Today%20i%20will%20share%20some%20though"></a></li><li style="heigth:16px;width:16px"><a title="email" class="option1_16" style="background-position:-80px 0px" rel="nofollow" target="_blank" href="https://mail.google.com/mail/?view=cm&fs=1&to&su=Software%20RAID%20on%20Debian%20Linux&body=http%3A%2F%2Falexander.holbreich.org%2F2010%2F01%2Fsoftware-raid-debian%2F&ui=2&tf=1&shva=1"></a></li><li style="heigth:16px;width:16px"><a style="cursor:poainter" rel="nofollow"   onMouseOver="more(this,'post-423')"><img src="http://alexander.holbreich.org/wp-content/plugins/sociable/images/option1/16/more.png?4c9b33" title="Posterous" alt="Posterous" /></a></li></ul></div> <a style="cursor:pointer" onclick="hide_sociable('post-423',true)" class="close"> <img onclick="hide_sociable('post-423',true)" title="close" src="http://alexander.holbreich.org/wp-content/plugins/sociable/images/closelabel.png?4c9b33"> </a></div></div></div></div><div class='sociable' style='float:none'><ul class='clearfix'><li id="Twitter_Counter"><a href="https://twitter.com/share" data-text="Software RAID on Debian Linux - http://alexander.holbreich.org/2010/01/software-raid-debian/ (via #sociablesite)" data-url="http://alexander.holbreich.org/2010/01/software-raid-debian/" class="twitter-share-button" data-count="horizontal">Tweet</a><script type="text/javascript" src="//platform.twitter.com/widgets.js?4c9b33"></script></li><li id="Google_p"><g:plusone annotation="bubble" href="http://alexander.holbreich.org/2010/01/software-raid-debian/" size="medium"></g:plusone></li><li id="Digg_Counter"><script type='text/javascript'>(function(){var s=document.createElement('SCRIPT'),s1=document.getElementsByTagName('SCRIPT')[0];s.type='text/javascript';s.async=true;s.src='http://widgets.digg.com/buttons.js';s1.parentNode.insertBefore(s,s1);})();</script><a href='http://digg.com/submit?url=http%3A%2F%2Falexander.holbreich.org%2F2010%2F01%2Fsoftware-raid-debian%2F&amp;title=Software%20RAID%20on%20Debian%20Linux'  class='DiggThisButton DiggCompact'></a></li><li id="StumbleUpon_Counter"><script src="http://www.stumbleupon.com/hostedbadge.php?s=2&r=http://alexander.holbreich.org/2010/01/software-raid-debian/"></script></li><li id="Facebook_Counter"><iframe src="//www.facebook.com/plugins/like.php?href=http://alexander.holbreich.org/2010/01/software-raid-debian/&send=false&layout=button_count&show_faces=false&action=like&colorscheme=light&font" scrolling="no" frameborder="0" style="border:none; overflow:hidden;height:32px;width:100px" allowTransparency="true"></iframe></li><li id="LinkedIn_Counter"><script src="http://platform.linkedin.com/in.js" type="text/javascript"></script><script type="IN/Share" data-url="http://alexander.holbreich.org/2010/01/software-raid-debian/" data-counter="right"></script></li></ul></div>]]></content:encoded> <wfw:commentRss>http://alexander.holbreich.org/2010/01/software-raid-debian/feed/</wfw:commentRss> <slash:comments>2</slash:comments> </item> <item><title>Extracting tar, gzip, bzip2, z</title><link>http://alexander.holbreich.org/2009/02/tar-gzip/</link> <comments>http://alexander.holbreich.org/2009/02/tar-gzip/#comments</comments> <pubDate>Sun, 01 Feb 2009 21:02:16 +0000</pubDate> <dc:creator>shuron</dc:creator> <category><![CDATA[off topic]]></category> <category><![CDATA[Software]]></category> <category><![CDATA[archive]]></category> <category><![CDATA[gzip]]></category> <category><![CDATA[linux]]></category> <category><![CDATA[tar]]></category> <category><![CDATA[untar]]></category> <category><![CDATA[zcat]]></category> <category><![CDATA[zip]]></category><guid isPermaLink="false">http://alexander.holbreich.org/?p=387</guid> <description><![CDATA[Sometimes you need to extract some files on Linux console. Here  some examples how to do that. tar Tar archives are the most common way of distributing bundles of files under Linux or UNIX. A .tar file is simply a bundle of files packaged with GNU tar program. To extract such files use following: Provide [...]]]></description> <content:encoded><![CDATA[<p><img class="alignleft size-full wp-image-388" title="tar-gzip" src="http://alexander.holbreich.org/wp-content/uploads/2009/02/tar-gzip.gif?4c9b33" alt="tar-gzip" width="80" height="80" /> Sometimes you need to extract some files on Linux console. Here  some examples how to do that.</p><h2>tar</h2><p>Tar archives are the most common way of distributing bundles of files under Linux or UNIX. A <strong><em>.tar</em></strong> file is simply a bundle of files packaged with GNU tar program. To extract such files use following:</p><pre class="brush: bash; title: ; notranslate">
tar xf somearchive.tar
tar xvf somearchive.tar
</pre><ul><li>Provide <em>option f</em> if you want to extract content of files. <em>Tar</em> (from <strong>t</strong>ape <strong>ar</strong>chive) has long history and was intended to work with tape media, so when you omit <em>f </em>tar tries to work with tape device.</li><li><em>v</em>- stands for verbose. List all the files by extract process.</li><li><em>x</em>- Extract command</li></ul><p>Before extracting you may be interested in Looking inside of tar. Do it with option <em>&#8220;t</em><em>&#8221; </em>:</p><pre class="brush: bash; title: ; notranslate">
tar tf archive.tar
</pre><p>For more tar parameters see <a href="http://unixhelp.ed.ac.uk/CGI/man-cgi?tar" target="_blank">Man pages</a>.</p><h2>gzip</h2><p>Often tar-files are also compressed. One of the most known compressed formats is GNU Zip (gzip).  Tar bundeld and zipped file would  normally  have extension <em><strong>.tar.gz</strong></em>. To extract such files you can use tar with  &#8220;<em>z</em>&#8221; option, which causes tar to automatically invoke gzip. Modify abow example  and you get able to extract tar.gz  files too.</p><pre class="brush: bash; title: ; notranslate">
tar -xzf somearchive.tar.gz
</pre><p>In old tar version the &#8220;z&#8221; option is may be not available. In that case just use UNIX pipes:</p><pre class="brush: bash; title: ; notranslate">
gzip -dc target.tar.gz | tar xf -
</pre><p>Meaning of gzip options</p><ul><li>d &#8211; Do decompress!</li><li>c &#8211; write to console (So that tar can take it from there )</li><li>t &#8211; Tests file integrity</li><li>l &#8211; lists archive file information</li></ul><p>You will find more on <a href="http://persephone.cps.unizar.es/~spd/gzip/gzip_man.html" target="_blank">Man pages.</a></p><h2>bzip2</h2><p>Sometimes you can find files ending with <strong>.tar.bz2</strong>. That are files packaged with bzip (a block-sorting file compressor). Use it like gzip</p><pre class="brush: bash; title: ; notranslate">
tar xjvf filename.tar.bz2
</pre><p>Options d,c,t have the same meaning. More on <a href="http://www.edenwaith.com/support/guitar/help/man/bzip2.html" target="_blank">Man pages</a>.</p><h2>zcat</h2><p>Some files have .tar.Z endings. They can be extracted by</p><pre class="brush: bash; title: ; notranslate">
zcat somearchive.tar.Z | tar xf -
</pre><p>Look in <a href="http://cis.kutztown.edu/~frye/cgi-bin/unixManPages.cgi?zcat+1" target="_blank">Man pages</a> for more.</p><p>Any questions? You are welcome to comment!</p><div class="sociable"><div class="sociable_tagline"><a class='sociable_tagline' target='_blank' href='http://blogplay.com' style='font-size:11px;color:#333333;text-decoration:none'>Be Sociable, Share!</a></div><ul class='clearfix'><li><a title="Facebook" class="option1_16" style="background-position:-48px 0px" rel="nofollow" target="_blank" href="http://www.facebook.com/share.php?u=http%3A%2F%2Falexander.holbreich.org%2F2009%2F02%2Ftar-gzip%2F&amp;t=Extracting%20tar%2C%20gzip%2C%20bzip2%2C%20z"></a></li><li><a title="HackerNews" class="option1_16" style="background-position:-128px 0px" rel="nofollow" target="_blank" href="http://news.ycombinator.com/submitlink?u=http%3A%2F%2Falexander.holbreich.org%2F2009%2F02%2Ftar-gzip%2F&amp;t=Extracting%20tar%2C%20gzip%2C%20bzip2%2C%20z"></a></li><li><a title="Reddit" class="option1_16" style="background-position:-64px -16px" rel="nofollow" target="_blank" href="http://reddit.com/submit?url=http%3A%2F%2Falexander.holbreich.org%2F2009%2F02%2Ftar-gzip%2F&amp;title=Extracting%20tar%2C%20gzip%2C%20bzip2%2C%20z"></a></li><li><a title="Digg" class="option1_16" style="background-position:-32px 0px" rel="nofollow" target="_blank" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Falexander.holbreich.org%2F2009%2F02%2Ftar-gzip%2F&amp;title=Extracting%20tar%2C%20gzip%2C%20bzip2%2C%20z&amp;bodytext=%20Sometimes%20you%20need%20to%20extract%20some%20files%20on%20Linux%20console.%20Here%C2%A0%20some%20examples%20how%20to%20do%20that.%0D%0Atar%0D%0ATar%20archives%20are%20the%20most%20common%20way%20of%20distributing%20bundles%20of%20files%20under%20Linux%20or%20UNIX.%20A%20.tar%20file%20is%20simply%20a%20bundle%20of%20files%20packaged%20with%20GN"></a></li><li><a title="Tumblr" class="option1_16" style="background-position:-128px -16px" rel="nofollow" target="_blank" href="http://www.tumblr.com/share?v=3&amp;u=http%3A%2F%2Falexander.holbreich.org%2F2009%2F02%2Ftar-gzip%2F&amp;t=Extracting%20tar%2C%20gzip%2C%20bzip2%2C%20z&amp;s=%20Sometimes%20you%20need%20to%20extract%20some%20files%20on%20Linux%20console.%20Here%C2%A0%20some%20examples%20how%20to%20do%20that.%0D%0Atar%0D%0ATar%20archives%20are%20the%20most%20common%20way%20of%20distributing%20bundles%20of%20files%20under%20Linux%20or%20UNIX.%20A%20.tar%20file%20is%20simply%20a%20bundle%20of%20files%20packaged%20with%20GN"></a></li><li><a title="BlinkList" class="option1_16" style="background-position:0px 0px" rel="nofollow" target="_blank" href="http://www.blinklist.com/index.php?Action=Blink/addblink.php&amp;Url=http%3A%2F%2Falexander.holbreich.org%2F2009%2F02%2Ftar-gzip%2F&amp;Title=Extracting%20tar%2C%20gzip%2C%20bzip2%2C%20z"></a></li><li><a title="Google Reader" class="option1_16" style="background-position:-112px 0px" rel="nofollow" target="_blank" href="http://www.google.com/reader/link?url=http%3A%2F%2Falexander.holbreich.org%2F2009%2F02%2Ftar-gzip%2F&amp;title=Extracting%20tar%2C%20gzip%2C%20bzip2%2C%20z&amp;srcURL=http%3A%2F%2Falexander.holbreich.org%2F2009%2F02%2Ftar-gzip%2F&amp;srcTitle=Alexander+Holbreich+Everything+becomes+a+little+different+as+soon+as+it+is+spoken+out+loud.++%7EHermann+Hesse"></a></li><li><a title="StumbleUpon" class="option1_16" style="background-position:-112px -16px" rel="nofollow" target="_blank" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Falexander.holbreich.org%2F2009%2F02%2Ftar-gzip%2F&title=Extracting%20tar%2C%20gzip%2C%20bzip2%2C%20z"></a></li><li><a title="Myspace" class="option1_16" style="background-position:0px -16px" rel="nofollow" target="_blank" href="http://www.myspace.com/Modules/PostTo/Pages/?u=http%3A%2F%2Falexander.holbreich.org%2F2009%2F02%2Ftar-gzip%2F&amp;t=Extracting%20tar%2C%20gzip%2C%20bzip2%2C%20z"></a></li><li><a title="Sphinn" class="option1_16" style="background-position:-96px -16px" rel="nofollow" target="_blank" href="http://sphinn.com/index.php?c=post&amp;m=submit&amp;link=http%3A%2F%2Falexander.holbreich.org%2F2009%2F02%2Ftar-gzip%2F"></a></li><li><a class="option1_16" style="cursor:pointer;background-position:-64px 0px" rel="nofollow" title="Add to favorites - doesn't work in Chrome"  onClick="javascript:AddToFavorites();"></a></li><li><a title="Posterous" class="option1_16" style="background-position:-32px -16px" rel="nofollow" target="_blank" href="http://posterous.com/share?linkto=http%3A%2F%2Falexander.holbreich.org%2F2009%2F02%2Ftar-gzip%2F&amp;title=Extracting%20tar%2C%20gzip%2C%20bzip2%2C%20z&amp;selection=%20Sometimes%20you%20need%20to%20extract%20some%20files%20on%20Linux%20console.%20Here%C2%A0%20some%20examples%20how%20to%20do%20that.%0D%0Atar%0D%0ATar%20archives%20are%20the%20most%20common%20way%20of%20distributing%20bundles%20of%20files%20under%20Linux%20or%20UNIX.%20A%20.tar%20file%20is%20simply%20a%20bundle%20of%20files%20packaged%20with%20GN"></a></li></ul><div onMouseout="fixOnMouseOut(this,event,'post-387')" id="sociable-post-387" style="display:none;"><div style="top: auto; left: auto; display: block;" id="sociable"><div class="popup"><div class="content"><ul><li style="heigth:16px;width:16px"><a title="Twitter" class="option1_16" style="background-position:-144px -16px" rel="nofollow" target="_blank" href="http://twitter.com/intent/tweet?text=Extracting%20tar%2C%20gzip%2C%20bzip2%2C%20z%20-%20http%3A%2F%2Falexander.holbreich.org%2F2009%2F02%2Ftar-gzip%2F%20(via%20@sociablesite)"></a></li><li style="heigth:16px;width:16px"><a title="LinkedIn" class="option1_16" style="background-position:-144px 0px" rel="nofollow" target="_blank" href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http%3A%2F%2Falexander.holbreich.org%2F2009%2F02%2Ftar-gzip%2F&amp;title=Extracting%20tar%2C%20gzip%2C%20bzip2%2C%20z&amp;source=Alexander+Holbreich+Everything+becomes+a+little+different+as+soon+as+it+is+spoken+out+loud.++%7EHermann+Hesse&amp;summary=%20Sometimes%20you%20need%20to%20extract%20some%20files%20on%20Linux%20console.%20Here%C2%A0%20some%20examples%20how%20to%20do%20that.%0D%0Atar%0D%0ATar%20archives%20are%20the%20most%20common%20way%20of%20distributing%20bundles%20of%20files%20under%20Linux%20or%20UNIX.%20A%20.tar%20file%20is%20simply%20a%20bundle%20of%20files%20packaged%20with%20GN"></a></li><li style="heigth:16px;width:16px"><a title="Delicious" class="option1_16" style="background-position:-16px 0px" rel="nofollow" target="_blank" href="http://delicious.com/post?url=http%3A%2F%2Falexander.holbreich.org%2F2009%2F02%2Ftar-gzip%2F&amp;title=Extracting%20tar%2C%20gzip%2C%20bzip2%2C%20z&amp;notes=%20Sometimes%20you%20need%20to%20extract%20some%20files%20on%20Linux%20console.%20Here%C2%A0%20some%20examples%20how%20to%20do%20that.%0D%0Atar%0D%0ATar%20archives%20are%20the%20most%20common%20way%20of%20distributing%20bundles%20of%20files%20under%20Linux%20or%20UNIX.%20A%20.tar%20file%20is%20simply%20a%20bundle%20of%20files%20packaged%20with%20GN"></a></li><li style="heigth:16px;width:16px"><a title="Google Bookmarks" class="option1_16" style="background-position:-96px 0px" rel="nofollow" target="_blank" href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Falexander.holbreich.org%2F2009%2F02%2Ftar-gzip%2F&amp;title=Extracting%20tar%2C%20gzip%2C%20bzip2%2C%20z&amp;annotation=%20Sometimes%20you%20need%20to%20extract%20some%20files%20on%20Linux%20console.%20Here%C2%A0%20some%20examples%20how%20to%20do%20that.%0D%0Atar%0D%0ATar%20archives%20are%20the%20most%20common%20way%20of%20distributing%20bundles%20of%20files%20under%20Linux%20or%20UNIX.%20A%20.tar%20file%20is%20simply%20a%20bundle%20of%20files%20packaged%20with%20GN"></a></li><li style="heigth:16px;width:16px"><a title="MSNReporter" class="option1_16" style="background-position:-176px 0px" rel="nofollow" target="_blank" href="http://reporter.es.msn.com/?fn=contribute&amp;Title=Extracting%20tar%2C%20gzip%2C%20bzip2%2C%20z&amp;URL=http%3A%2F%2Falexander.holbreich.org%2F2009%2F02%2Ftar-gzip%2F&amp;cat_id=6&amp;tag_id=31&amp;Remark=%20Sometimes%20you%20need%20to%20extract%20some%20files%20on%20Linux%20console.%20Here%C2%A0%20some%20examples%20how%20to%20do%20that.%0D%0Atar%0D%0ATar%20archives%20are%20the%20most%20common%20way%20of%20distributing%20bundles%20of%20files%20under%20Linux%20or%20UNIX.%20A%20.tar%20file%20is%20simply%20a%20bundle%20of%20files%20packaged%20with%20GN"></a></li><li style="heigth:16px;width:16px"><a title="email" class="option1_16" style="background-position:-80px 0px" rel="nofollow" target="_blank" href="https://mail.google.com/mail/?view=cm&fs=1&to&su=Extracting%20tar%2C%20gzip%2C%20bzip2%2C%20z&body=http%3A%2F%2Falexander.holbreich.org%2F2009%2F02%2Ftar-gzip%2F&ui=2&tf=1&shva=1"></a></li><li style="heigth:16px;width:16px"><a style="cursor:poainter" rel="nofollow"   onMouseOver="more(this,'post-387')"><img src="http://alexander.holbreich.org/wp-content/plugins/sociable/images/option1/16/more.png?4c9b33" title="Posterous" alt="Posterous" /></a></li></ul></div> <a style="cursor:pointer" onclick="hide_sociable('post-387',true)" class="close"> <img onclick="hide_sociable('post-387',true)" title="close" src="http://alexander.holbreich.org/wp-content/plugins/sociable/images/closelabel.png?4c9b33"> </a></div></div></div></div><div class='sociable' style='float:none'><ul class='clearfix'><li id="Twitter_Counter"><a href="https://twitter.com/share" data-text="Extracting tar, gzip, bzip2, z - http://alexander.holbreich.org/2009/02/tar-gzip/ (via #sociablesite)" data-url="http://alexander.holbreich.org/2009/02/tar-gzip/" class="twitter-share-button" data-count="horizontal">Tweet</a><script type="text/javascript" src="//platform.twitter.com/widgets.js?4c9b33"></script></li><li id="Google_p"><g:plusone annotation="bubble" href="http://alexander.holbreich.org/2009/02/tar-gzip/" size="medium"></g:plusone></li><li id="Digg_Counter"><script type='text/javascript'>(function(){var s=document.createElement('SCRIPT'),s1=document.getElementsByTagName('SCRIPT')[0];s.type='text/javascript';s.async=true;s.src='http://widgets.digg.com/buttons.js';s1.parentNode.insertBefore(s,s1);})();</script><a href='http://digg.com/submit?url=http%3A%2F%2Falexander.holbreich.org%2F2009%2F02%2Ftar-gzip%2F&amp;title=Extracting%20tar%2C%20gzip%2C%20bzip2%2C%20z'  class='DiggThisButton DiggCompact'></a></li><li id="StumbleUpon_Counter"><script src="http://www.stumbleupon.com/hostedbadge.php?s=2&r=http://alexander.holbreich.org/2009/02/tar-gzip/"></script></li><li id="Facebook_Counter"><iframe src="//www.facebook.com/plugins/like.php?href=http://alexander.holbreich.org/2009/02/tar-gzip/&send=false&layout=button_count&show_faces=false&action=like&colorscheme=light&font" scrolling="no" frameborder="0" style="border:none; overflow:hidden;height:32px;width:100px" allowTransparency="true"></iframe></li><li id="LinkedIn_Counter"><script src="http://platform.linkedin.com/in.js" type="text/javascript"></script><script type="IN/Share" data-url="http://alexander.holbreich.org/2009/02/tar-gzip/" data-counter="right"></script></li></ul></div>]]></content:encoded> <wfw:commentRss>http://alexander.holbreich.org/2009/02/tar-gzip/feed/</wfw:commentRss> <slash:comments>8</slash:comments> </item> </channel> </rss>
<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic
Page Caching using disk: enhanced
Database Caching 1/47 queries in 0.046 seconds using disk: basic
Object Caching 1546/1682 objects using disk: basic

Served from: alexander.holbreich.org @ 2012-02-04 19:50:50 -->
