<?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>Fritz Thomas &#187; Linux</title>
	<atom:link href="http://fritzthomas.com/categorys/open-source/linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://fritzthomas.com</link>
	<description></description>
	<lastBuildDate>Fri, 23 Jul 2010 08:02:28 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>How To use FLOW3 with NGINX &#8211; working server configuration</title>
		<link>http://fritzthomas.com/php/600-how-to-use-flow3-with-nginx-working-server-configuration/</link>
		<comments>http://fritzthomas.com/php/600-how-to-use-flow3-with-nginx-working-server-configuration/#comments</comments>
		<pubDate>Sat, 17 Jul 2010 18:29:00 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[alternative]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[configuration]]></category>
		<category><![CDATA[nginx]]></category>
		<category><![CDATA[php-5.3]]></category>

		<guid isPermaLink="false">http://fritzthomas.com/?p=600</guid>
		<description><![CDATA[I installed the default nginx package available in Ubuntu 10.04 server. For PHP-5.3.2 you have to use the cgi version, of course. But enough of the words. It is really really simple, so i just post the config files. The only &#8220;trickier&#8221; part was to convert the Apache Rewrite Rules from the FLOW3 distribution. After [...]]]></description>
			<content:encoded><![CDATA[<p>I installed the default nginx package available in Ubuntu 10.04 server. For PHP-5.3.2 you have to use the cgi version, of course. But enough of the words.</p>
<p>It is really really simple, so i just post the config files. The only &#8220;trickier&#8221; part was to convert the Apache Rewrite Rules from the FLOW3 distribution. After this you can completly delete the .htaccess file.</p>
<p>It should be self-explanatory:</p>
<p><span id="more-600"></span><br />
<div style="width:100%;text-align:center;padding:0;margin:0;border:0;overflow:hidden;clear:both;"><script type="text/javascript"><!--
google_ad_client = "pub-1963733382421272";
google_ui_features = "rc:0";
google_ad_width = 234;
google_ad_height = 60;
google_ad_format = "234x60_as";
google_ad_type = "text_image";
google_alternate_ad_color = "ffffff";
google_color_border = "ffffff";
google_color_bg = "ffffff";
google_color_link = "319BD8";
google_color_text = "666666";
google_color_url = "319BD8";

//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
</div></p>
<p>/etc/nginx/sites/flow3.conf:</p>

<div class="wp_syntax"><div class="code"><pre class="nginx" style="font-family:monospace;">&nbsp;
server {
        listen          80; 
        server_name     flow3.local *.flow3.local;
        root            /var/www/test/flow3/Web;
        autoindex       off; 
&nbsp;
        access_log      /var/www/test/logs/access.log combined;
        error_log       /var/www/test/logs/error.log info;
&nbsp;
        location ~ &quot;^/_Resources/Persistent/&quot; {
                rewrite &quot;^(_Resources/Persistent/.{40})/.+(\..+)&quot; /$1$2 break;
        }   
&nbsp;
        location ~ &quot;^/_Resources/&quot; {
                access_log off;
                log_not_found off;
                expires max;
                break;
        }   
&nbsp;
        location / { 
                rewrite &quot;.*&quot; /index.php last;
        }   
&nbsp;
        location = /index.php {
                #fastcgi_param   FLOW3_CONTEXT          Development;
                fastcgi_param   FLOW3_CONTEXT           Production;
                fastcgi_param   FLOW3_REWRITEURLS       1;  
                fastcgi_intercept_errors on; 
                fastcgi_split_path_info ^(.+\.php)(/.+)$;
                include includes/fastcgi_params;
&nbsp;
                # &quot;Upstream&quot; defined in nginx.conf
                fastcgi_pass    php-5.3.2; 
        }   
}</pre></div></div>

<p><div style="width:100%;text-align:center;padding:0;margin:0;border:0;overflow:hidden;clear:both;"><script type="text/javascript"><!--
google_ad_client = "pub-1963733382421272";
google_ui_features = "rc:0";
google_ad_width = 234;
google_ad_height = 60;
google_ad_format = "234x60_as";
google_ad_type = "text_image";
google_alternate_ad_color = "ffffff";
google_color_border = "ffffff";
google_color_bg = "ffffff";
google_color_link = "319BD8";
google_color_text = "666666";
google_color_url = "319BD8";

//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
</div></p>
<p>/etc/nginx/includes/fastcgi_params:</p>

<div class="wp_syntax"><div class="code"><pre class="nginx" style="font-family:monospace;">fastcgi_param  QUERY_STRING       $query_string;
fastcgi_param  REQUEST_METHOD     $request_method;
fastcgi_param  CONTENT_TYPE       $content_type;
fastcgi_param  CONTENT_LENGTH     $content_length;
&nbsp;
fastcgi_param  SCRIPT_NAME        $fastcgi_script_name;
fastcgi_param  SCRIPT_FILENAME    $document_root$fastcgi_script_name;
&nbsp;
fastcgi_param  REQUEST_URI        $request_uri;
fastcgi_param  DOCUMENT_URI       $document_uri;
fastcgi_param  DOCUMENT_ROOT      $document_root;
fastcgi_param  SERVER_PROTOCOL    $server_protocol;
&nbsp;
#the two lines below are possible now because of the fastcgi_split_path_info function
fastcgi_param  PATH_INFO          $fastcgi_path_info;
fastcgi_param  PATH_TRANSLATED    $document_root$fastcgi_path_info;
&nbsp;
fastcgi_param  GATEWAY_INTERFACE  CGI/1.1;
fastcgi_param  SERVER_SOFTWARE    nginx/$nginx_version;
&nbsp;
fastcgi_param  REMOTE_ADDR        $remote_addr;
fastcgi_param  REMOTE_PORT        $remote_port;
fastcgi_param  SERVER_ADDR        $server_addr;
fastcgi_param  SERVER_PORT        $server_port;
fastcgi_param  SERVER_NAME        $server_name;
&nbsp;
# PHP only, required if PHP was built with --enable-force-cgi-redirect
fastcgi_param  REDIRECT_STATUS    200;</pre></div></div>

<p>
/etc/nginx/nginx.conf:</p>

<div class="wp_syntax"><div class="code"><pre class="nginx" style="font-family:monospace;">user                            www-data www-data;
worker_processes                1;  
&nbsp;
error_log                       /var/log/nginx/error.log;
pid                             /var/run/nginx.pid;
&nbsp;
events {
        accept_mutex            on; 
        worker_connections      512;
        # use [ kqueue | rtsig | epoll | /dev/poll | select | poll ] ;
        use                     epoll;
        multi_accept            on; 
}
&nbsp;
http {
        include                 mime.types;
        default_type            application/octet-stream;
&nbsp;
        access_log              /var/log/nginx/access.log;
&nbsp;
        sendfile                on; 
        tcp_nopush              on; 
        tcp_nodelay             on; 
&nbsp;
        keepalive_timeout       75 20; 
&nbsp;
        gzip                    on; 
        gzip_comp_level         1;  
        gzip_min_length         1100;
        gzip_buffers            4 8k; 
        gzip_types              text/plain text/css application/x-javascript text/xml application/xml text/javascript application/json application/javascript text/json application/x-json;
        upstream php-5.3.2 {
            server unix:/var/run/php/5.3.2/fpm.sock;
        }
        include                 sites/*.conf;
}</pre></div></div>

<p></p>
<p>On a next Blog Post i will show how to compile php-5.3.x as php-fpm SAPI and how to configure and use it.</p>

	Tags: <a href="http://fritzthomas.com/tags/alternative/" title="alternative" rel="tag">alternative</a>, <a href="http://fritzthomas.com/tags/apache/" title="apache" rel="tag">apache</a>, <a href="http://fritzthomas.com/tags/configuration/" title="configuration" rel="tag">configuration</a>, <a href="http://fritzthomas.com/tags/nginx/" title="nginx" rel="tag">nginx</a>, <a href="http://fritzthomas.com/tags/php/" title="PHP" rel="tag">PHP</a>, <a href="http://fritzthomas.com/tags/php-5-3/" title="php-5.3" rel="tag">php-5.3</a><br />

	<h4>&Auml;hnliche Beitr&auml;ge:</h4>
	<ul class="st-related-posts">
	<li><a href="http://fritzthomas.com/gentoo-php-web-development-vmware-appliance/" title="Web Dev Appliance (January 13, 2008)">Web Dev Appliance</a> (16)</li>
	<li><a href="http://fritzthomas.com/php/536-php-5-3-3-with-php-fpm-included/" title="PHP-5.3.3 with php-fpm included? (June 28, 2010)">PHP-5.3.3 with php-fpm included?</a> (0)</li>
	<li><a href="http://fritzthomas.com/php/464-php-5-3-0-officially-released/" title="PHP 5.3.0 officially released (June 30, 2009)">PHP 5.3.0 officially released</a> (0)</li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://fritzthomas.com/php/600-how-to-use-flow3-with-nginx-working-server-configuration/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Manually set syntax for a file in vim</title>
		<link>http://fritzthomas.com/open-source/linux/593-manually-set-syntax-for-a-file-in-vim/</link>
		<comments>http://fritzthomas.com/open-source/linux/593-manually-set-syntax-for-a-file-in-vim/#comments</comments>
		<pubDate>Mon, 12 Jul 2010 14:05:40 +0000</pubDate>
		<dc:creator>Thomas</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[note to myself]]></category>
		<category><![CDATA[vim]]></category>

		<guid isPermaLink="false">http://fritzthomas.com/?p=593</guid>
		<description><![CDATA[If you edit a file and vim does not recognize its syntax correctly or not at all you can set its syntax manually with :set syntax=[SYNTAX] Do you want to know which syntax your vim installation understands you can list all with this find: find /usr/share/vim/*/syntax -name "*\.vim". This is also the place where to [...]]]></description>
			<content:encoded><![CDATA[<p>If you edit a file and vim does not recognize its syntax correctly or not at all you can set its syntax manually with <code>:set syntax=[SYNTAX]</code><br />
Do you want to know which syntax your vim installation understands you can list all with this find: <code>find /usr/share/vim/*/syntax -name "*\.vim"</code>. This is also the place where to put new Syntax files.</p>

	Tags: <a href="http://fritzthomas.com/tags/linux/" title="Linux" rel="tag">Linux</a>, <a href="http://fritzthomas.com/tags/note-to-myself/" title="note to myself" rel="tag">note to myself</a>, <a href="http://fritzthomas.com/tags/vim/" title="vim" rel="tag">vim</a><br />

	<h4>&Auml;hnliche Beitr&auml;ge:</h4>
	<ul class="st-related-posts">
	<li><a href="http://fritzthomas.com/gentoo-php-web-development-vmware-appliance/" title="Web Dev Appliance (January 13, 2008)">Web Dev Appliance</a> (16)</li>
	<li><a href="http://fritzthomas.com/open-source/13-was-google-so-erfolgreich-macht/" title="Was Google so erfolgreich macht. (January 1, 2008)">Was Google so erfolgreich macht.</a> (0)</li>
	<li><a href="http://fritzthomas.com/open-source/linux/12-aendern-oder-setzen-eines-statischen-netzwerk-device-namen-unter-gentoo-eth0-eth1ethn/" title="Setzen eines statischen Netzwerk Device Namen unter Gentoo. (eth0,eth1,&#8230;) (December 27, 2007)">Setzen eines statischen Netzwerk Device Namen unter Gentoo. (eth0,eth1,&#8230;)</a> (0)</li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://fritzthomas.com/open-source/linux/593-manually-set-syntax-for-a-file-in-vim/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to recursive set different permissions on directories and files</title>
		<link>http://fritzthomas.com/open-source/linux/546-how-to-recursive-set-different-permissions-on-directories-and-files/</link>
		<comments>http://fritzthomas.com/open-source/linux/546-how-to-recursive-set-different-permissions-on-directories-and-files/#comments</comments>
		<pubDate>Wed, 07 Jul 2010 14:04:56 +0000</pubDate>
		<dc:creator>Thomas</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[bash]]></category>

		<guid isPermaLink="false">http://fritzthomas.com/?p=546</guid>
		<description><![CDATA[Have you ever wanted to set permission to all directories under a certain directory to 755 and permissions to files under that certain path to 644? D=/home/user/certain/directory/;find &#34;$D&#34; -type f -exec chmod 0644 &#123;&#125; \; &#38;&#38; find &#34;$D&#34; -type d -exec chmod 0755 &#123;&#125; \; This will change all files under &#8220;/home/user/certain/directory/&#8221; to 644 and [...]]]></description>
			<content:encoded><![CDATA[<p>Have you ever wanted to set permission to all directories under a certain directory to 755 and permissions to files under that certain path to 644?</p>
<p><span id="more-546"></span></p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #007800;">D</span>=<span style="color: #000000; font-weight: bold;">/</span>home<span style="color: #000000; font-weight: bold;">/</span>user<span style="color: #000000; font-weight: bold;">/</span>certain<span style="color: #000000; font-weight: bold;">/</span>directory<span style="color: #000000; font-weight: bold;">/</span>;<span style="color: #c20cb9; font-weight: bold;">find</span> <span style="color: #ff0000;">&quot;<span style="color: #007800;">$D</span>&quot;</span> <span style="color: #660033;">-type</span> f <span style="color: #660033;">-exec</span> <span style="color: #c20cb9; font-weight: bold;">chmod</span> 0644 <span style="color: #7a0874; font-weight: bold;">&#123;</span><span style="color: #7a0874; font-weight: bold;">&#125;</span> \; <span style="color: #000000; font-weight: bold;">&amp;&amp;</span> <span style="color: #c20cb9; font-weight: bold;">find</span> <span style="color: #ff0000;">&quot;<span style="color: #007800;">$D</span>&quot;</span> <span style="color: #660033;">-type</span> d <span style="color: #660033;">-exec</span> <span style="color: #c20cb9; font-weight: bold;">chmod</span> 0755 <span style="color: #7a0874; font-weight: bold;">&#123;</span><span style="color: #7a0874; font-weight: bold;">&#125;</span> \;</pre></div></div>

<p><div style="width:100%;text-align:center;padding:0;margin:0;border:0;overflow:hidden;clear:both;"><script type="text/javascript"><!--
google_ad_client = "pub-1963733382421272";
google_ui_features = "rc:0";
google_ad_width = 234;
google_ad_height = 60;
google_ad_format = "234x60_as";
google_ad_type = "text_image";
google_alternate_ad_color = "ffffff";
google_color_border = "ffffff";
google_color_bg = "ffffff";
google_color_link = "319BD8";
google_color_text = "666666";
google_color_url = "319BD8";

//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
</div></p>
<p>This will change all files under &#8220;/home/user/certain/directory/&#8221; to 644 and all directories to 755. The permission of the directory itself gets not changed. you have to do that manually.</p>
<p><code>find "$D"</code> searches under that given directory. <code>$D</code> is a variable reference to the path. We did this that way so you have to change the path only once. You could also use <code>find "/home/user/certain/directory/"</code> which is the same.<br />
<code>-type d</code> returns all directorys and <code>-type f</code> returns all files under the given directory.<br />
The last important parameter to find is <code>-exec</code>. It EXECutes the given command after <code>-exec</code>. In our case we want to execute chmod. To substitute the path for each single founding you have to use the two braces <code>{}</code>. With <code>\;</code> you tell find that the command ends here.
</p>
<p><div style="width:100%;text-align:center;padding:0;margin:0;border:0;overflow:hidden;clear:both;"><script type="text/javascript"><!--
google_ad_client = "pub-1963733382421272";
google_ui_features = "rc:0";
google_ad_width = 234;
google_ad_height = 60;
google_ad_format = "234x60_as";
google_ad_type = "text_image";
google_alternate_ad_color = "ffffff";
google_color_border = "ffffff";
google_color_bg = "ffffff";
google_color_link = "319BD8";
google_color_text = "666666";
google_color_url = "319BD8";

//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
</div></p>
<p>Thats it. I hope that helped you.</p>

	Tags: <a href="http://fritzthomas.com/tags/bash/" title="bash" rel="tag">bash</a>, <a href="http://fritzthomas.com/tags/linux/" title="Linux" rel="tag">Linux</a><br />

	<h4>&Auml;hnliche Beitr&auml;ge:</h4>
	<ul class="st-related-posts">
	<li><a href="http://fritzthomas.com/gentoo-php-web-development-vmware-appliance/" title="Web Dev Appliance (January 13, 2008)">Web Dev Appliance</a> (16)</li>
	<li><a href="http://fritzthomas.com/open-source/linux/12-aendern-oder-setzen-eines-statischen-netzwerk-device-namen-unter-gentoo-eth0-eth1ethn/" title="Setzen eines statischen Netzwerk Device Namen unter Gentoo. (eth0,eth1,&#8230;) (December 27, 2007)">Setzen eines statischen Netzwerk Device Namen unter Gentoo. (eth0,eth1,&#8230;)</a> (0)</li>
	<li><a href="http://fritzthomas.com/open-source/linux/384-how-to-get-the-absolute-path-within-the-running-bash-script/" title="How to get the absolute path within the running bash script (February 6, 2009)">How to get the absolute path within the running bash script</a> (10)</li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://fritzthomas.com/open-source/linux/546-how-to-recursive-set-different-permissions-on-directories-and-files/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to get absolute path within shell script &#8211; PART2</title>
		<link>http://fritzthomas.com/open-source/linux/551-how-to-get-absolute-path-within-shell-script-part2/</link>
		<comments>http://fritzthomas.com/open-source/linux/551-how-to-get-absolute-path-within-shell-script-part2/#comments</comments>
		<pubDate>Mon, 28 Jun 2010 14:22:17 +0000</pubDate>
		<dc:creator>Thomas</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[absolute path]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[script]]></category>
		<category><![CDATA[shell]]></category>

		<guid isPermaLink="false">http://fritzthomas.com/?p=551</guid>
		<description><![CDATA[This is an update and in depth look to my previous Blog post of &#8220;How to get absolute path within the running shell script&#8220;. In my previous post i used a solution with readlink which is not available everywhere. Especially on Mac OS there is no readlink. But, we do not need readlink anyway&#8230; A [...]]]></description>
			<content:encoded><![CDATA[<p>This is an update and in depth look to my <a href="http://fritzthomas.com/open-source/linux/384-how-to-get-the-absolute-path-within-the-running-bash-script/">previous Blog post</a> of &#8220;<a href="http://fritzthomas.com/open-source/linux/384-how-to-get-the-absolute-path-within-the-running-bash-script/">How to get absolute path within the running shell script</a>&#8220;.</p>
<p>
In my previous post i used a solution with readlink which is not available everywhere. Especially on Mac OS there is no readlink. But, we do not need readlink anyway&#8230;</p>
<p><span id="more-551"></span><br />
<div style="float:left;margin-left:0,margin-right:4px;margin-top:4px;margin-bottom:0;padding:4px;border:0;"><script type="text/javascript"><!--
google_ad_client = "pub-1963733382421272";
google_ad_slot = "3802836967";
google_ad_width = 120;
google_ad_height = 240;
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
</div></p>
<p>
A requisite for me was that one can easily reuse some functions and variables in every shell script. In that global included (or sourced) file i set some variables with absolute paths to directorys within a web application. Because you do not know where a script is called from, i had to canonicalize all paths to absolute paths, so it is absolutely safe to rely on that paths for further processing.</p>
<p>
Lets say you have a web application installed in /var/www/webapp. Let us call this path &#8216;Application Path&#8217;. In your Application Path you have a directory <code>tmp</code>, <code>log</code>, <code>bin</code> and <code>public</code> per convention. Your global sourced script is in <code>bin</code> &#8211; lets call it <code>environment.sh</code>. And one script called <code>webapp-setup</code> is also in this <code>bin</code> directory. This <script>webapp-setup</script> script gets called on a customers server and does all the magic voodoo to get your web application up and running. The &#8216;Voodoo&#8217; is most of the time some fancy search and replaces via sed or something similar and therefore you will need most of the time absolute paths.</p>
<p></p>
<p>
Let`s take a look at this environment.sh script:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">#!/bin/sh</span>
<span style="color: #666666; font-style: italic;"># bin/environment.sh</span>
<span style="color: #666666; font-style: italic;"># Original Path the script is called from.</span>
<span style="color: #7a0874; font-weight: bold;">export</span> <span style="color: #007800;">ORIGINAL_PATH</span>=<span style="color: #ff0000;">&quot;<span style="color: #007800;">$(pwd)</span>&quot;</span>
<span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #ff0000;">&quot;<span style="color: #007800;">$(dirname $0)</span>&quot;</span>
<span style="color: #666666; font-style: italic;"># Absolute Path to the bin Dir</span>
<span style="color: #7a0874; font-weight: bold;">export</span> <span style="color: #007800;">BIN_PATH</span>=<span style="color: #ff0000;">&quot;<span style="color: #007800;">$(pwd)</span>&quot;</span>
<span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #ff0000;">&quot;<span style="color: #007800;">${ORIGINAL_PATH}</span>&quot;</span>
<span style="color: #7a0874; font-weight: bold;">export</span> <span style="color: #007800;">APPLICATION_PATH</span>=<span style="color: #ff0000;">&quot;<span style="color: #007800;">$(dirname ${BIN_PATH})</span>&quot;</span>
<span style="color: #7a0874; font-weight: bold;">export</span> <span style="color: #007800;">PUBLIC_PATH</span>=<span style="color: #ff0000;">&quot;<span style="color: #007800;">${APPLICATION_PATH}</span>/public&quot;</span>
<span style="color: #7a0874; font-weight: bold;">export</span> <span style="color: #007800;">TMP_PATH</span>=<span style="color: #ff0000;">&quot;<span style="color: #007800;">${APPLICATION_PATH}</span>/tmp&quot;</span>
<span style="color: #7a0874; font-weight: bold;">export</span> <span style="color: #007800;">LOG_PATH</span>=<span style="color: #ff0000;">&quot;<span style="color: #007800;">${APPLICATION_PATH}</span>/log&quot;</span></pre></div></div>

<p>If you only access this variables within your bash scripts you can avoid using export. But if you execute a php script within your bash scripts you have to export them and use the <code>$_SERVER</code> Array. In this case you can access <code>TMP_PATH</code> via <code>$_SERVER['TMP_PATH']</code><br />

</p>
<p>
And the webapp-setup Script sources this global script</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">#!/bin/bash</span>
<span style="color: #666666; font-style: italic;"># bin/webapp-setup</span>
&nbsp;
<span style="color: #666666; font-style: italic;"># the '.' is the short form for 'source'</span>
. <span style="color: #ff0000;">&quot;<span style="color: #007800;">$(dirname $0)</span>/environment.sh&quot;</span>
&nbsp;
<span style="color: #007800;">CONFIG_FILE</span>=<span style="color: #800000;">${APPLICATION_PATH}</span><span style="color: #000000; font-weight: bold;">/</span>config.ini
<span style="color: #666666; font-style: italic;"># After this you have an absolute path</span>
<span style="color: #666666; font-style: italic;"># to this configuration file within your web application.</span>
&nbsp;
&nbsp;
<span style="color: #666666; font-style: italic;">#...</span></pre></div></div>

</p>
<p><div style="width:100%;text-align:center;padding:0;margin:0;border:0;overflow:hidden;clear:both;"><script type="text/javascript"><!--
google_ad_client = "pub-1963733382421272";
google_ui_features = "rc:0";
google_ad_width = 234;
google_ad_height = 60;
google_ad_format = "234x60_as";
google_ad_type = "text_image";
google_alternate_ad_color = "ffffff";
google_color_border = "ffffff";
google_color_bg = "ffffff";
google_color_link = "319BD8";
google_color_text = "666666";
google_color_url = "319BD8";

//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
</div></p>
<p>
Thats it. With that simple setup you can call this from every path on that machine. No matter it gets called <code>bin/webapp-setup</code> or <code>/var/www/webapp/bin/webapp-setup</code> or <code>webapp/bin/webapp-setup</code>. You will always get absolute existing paths within you shell scripts.</p>
<p>I hope you were able to follow my example. If it was helpful for you i would be thankful if you leave a comment</p>

	Tags: <a href="http://fritzthomas.com/tags/absolute-path/" title="absolute path" rel="tag">absolute path</a>, <a href="http://fritzthomas.com/tags/bash/" title="bash" rel="tag">bash</a>, <a href="http://fritzthomas.com/tags/linux/" title="Linux" rel="tag">Linux</a>, <a href="http://fritzthomas.com/tags/script/" title="script" rel="tag">script</a>, <a href="http://fritzthomas.com/tags/shell/" title="shell" rel="tag">shell</a><br />

	<h4>&Auml;hnliche Beitr&auml;ge:</h4>
	<ul class="st-related-posts">
	<li><a href="http://fritzthomas.com/open-source/linux/384-how-to-get-the-absolute-path-within-the-running-bash-script/" title="How to get the absolute path within the running bash script (February 6, 2009)">How to get the absolute path within the running bash script</a> (10)</li>
	<li><a href="http://fritzthomas.com/open-source/linux/520-cloning-copying-a-complete-directory-tree-with-relative-paths-symlinks-and-hardlinks/" title="Cloning / copying a complete directory tree with relative paths symlinks and hardlinks (June 23, 2010)">Cloning / copying a complete directory tree with relative paths symlinks and hardlinks</a> (0)</li>
	<li><a href="http://fritzthomas.com/gentoo-php-web-development-vmware-appliance/" title="Web Dev Appliance (January 13, 2008)">Web Dev Appliance</a> (16)</li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://fritzthomas.com/open-source/linux/551-how-to-get-absolute-path-within-shell-script-part2/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Clear / free memory on Linux</title>
		<link>http://fritzthomas.com/open-source/linux/524-clear-free-memory-on-linux/</link>
		<comments>http://fritzthomas.com/open-source/linux/524-clear-free-memory-on-linux/#comments</comments>
		<pubDate>Fri, 25 Jun 2010 12:40:19 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Open-Source]]></category>
		<category><![CDATA[bash]]></category>

		<guid isPermaLink="false">http://fritzthomas.com/?p=524</guid>
		<description><![CDATA[If you want to free the memory from all unused &#8220;crap&#8221; you can run this little one liner as root: sync;echo 3 &#62; /proc/sys/vm/drop_caches The sync command flushes all buffers from memory to disk so you are safe that you do not loose anything. Keep also in mind that not everything from the cleared memory [...]]]></description>
			<content:encoded><![CDATA[<p>If you want to free the memory from all unused &#8220;crap&#8221; you can run this little one liner as root:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sync</span>;<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #000000;">3</span> <span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #000000; font-weight: bold;">/</span>proc<span style="color: #000000; font-weight: bold;">/</span>sys<span style="color: #000000; font-weight: bold;">/</span>vm<span style="color: #000000; font-weight: bold;">/</span>drop_caches</pre></div></div>

<p><div style="width:100%;text-align:center;padding:0;margin:0;border:0;overflow:hidden;clear:both;"><script type="text/javascript"><!--
google_ad_client = "pub-1963733382421272";
google_ui_features = "rc:0";
google_ad_width = 234;
google_ad_height = 60;
google_ad_format = "234x60_as";
google_ad_type = "text_image";
google_alternate_ad_color = "ffffff";
google_color_border = "ffffff";
google_color_bg = "ffffff";
google_color_link = "319BD8";
google_color_text = "666666";
google_color_url = "319BD8";

//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
</div></p>
<p>The sync command flushes all buffers from memory to disk so you are safe that you do not loose anything. Keep also in mind that not everything from the cleared memory was crap. You dropped all caches &#8211; so expect that some things might run even slower.</p>

	Tags: <a href="http://fritzthomas.com/tags/bash/" title="bash" rel="tag">bash</a>, <a href="http://fritzthomas.com/tags/linux/" title="Linux" rel="tag">Linux</a><br />

	<h4>&Auml;hnliche Beitr&auml;ge:</h4>
	<ul class="st-related-posts">
	<li><a href="http://fritzthomas.com/gentoo-php-web-development-vmware-appliance/" title="Web Dev Appliance (January 13, 2008)">Web Dev Appliance</a> (16)</li>
	<li><a href="http://fritzthomas.com/open-source/linux/12-aendern-oder-setzen-eines-statischen-netzwerk-device-namen-unter-gentoo-eth0-eth1ethn/" title="Setzen eines statischen Netzwerk Device Namen unter Gentoo. (eth0,eth1,&#8230;) (December 27, 2007)">Setzen eines statischen Netzwerk Device Namen unter Gentoo. (eth0,eth1,&#8230;)</a> (0)</li>
	<li><a href="http://fritzthomas.com/open-source/linux/546-how-to-recursive-set-different-permissions-on-directories-and-files/" title="How to recursive set different permissions on directories and files (July 7, 2010)">How to recursive set different permissions on directories and files</a> (0)</li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://fritzthomas.com/open-source/linux/524-clear-free-memory-on-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Cloning / copying a complete directory tree with relative paths symlinks and hardlinks</title>
		<link>http://fritzthomas.com/open-source/linux/520-cloning-copying-a-complete-directory-tree-with-relative-paths-symlinks-and-hardlinks/</link>
		<comments>http://fritzthomas.com/open-source/linux/520-cloning-copying-a-complete-directory-tree-with-relative-paths-symlinks-and-hardlinks/#comments</comments>
		<pubDate>Wed, 23 Jun 2010 14:52:24 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[backup]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[shell]]></category>
		<category><![CDATA[tar]]></category>

		<guid isPermaLink="false">http://fritzthomas.com/?p=520</guid>
		<description><![CDATA[cd /home/USER tar cf - . &#124; &#40;cd /dir/where/you/want/to/copy &#38;&#38; tar xBf -&#41; This has some advantages over cp -rfp. You can read it in detail at O`Reilly Tags: backup, bash, Linux, shell, tar &#196;hnliche Beitr&#228;ge: How to get the absolute path within the running bash script (10) How to get absolute path within shell [...]]]></description>
			<content:encoded><![CDATA[
<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #000000; font-weight: bold;">/</span>home<span style="color: #000000; font-weight: bold;">/</span>USER
<span style="color: #c20cb9; font-weight: bold;">tar</span> cf - . <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #000000; font-weight: bold;">/</span>dir<span style="color: #000000; font-weight: bold;">/</span>where<span style="color: #000000; font-weight: bold;">/</span>you<span style="color: #000000; font-weight: bold;">/</span>want<span style="color: #000000; font-weight: bold;">/</span>to<span style="color: #000000; font-weight: bold;">/</span>copy <span style="color: #000000; font-weight: bold;">&amp;&amp;</span> <span style="color: #c20cb9; font-weight: bold;">tar</span> xBf -<span style="color: #7a0874; font-weight: bold;">&#41;</span></pre></div></div>

<p><div style="width:100%;text-align:center;padding:0;margin:0;border:0;overflow:hidden;clear:both;"><script type="text/javascript"><!--
google_ad_client = "pub-1963733382421272";
google_ui_features = "rc:0";
google_ad_width = 234;
google_ad_height = 60;
google_ad_format = "234x60_as";
google_ad_type = "text_image";
google_alternate_ad_color = "ffffff";
google_color_border = "ffffff";
google_color_bg = "ffffff";
google_color_link = "319BD8";
google_color_text = "666666";
google_color_url = "319BD8";

//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
</div></p>
<p>This has some advantages over <code>cp -rfp</code>. You can read it in detail at <a href="http://linuxdevcenter.com/pub/a/linux/lpt/18_16.html">O`Reilly</a></p>

	Tags: <a href="http://fritzthomas.com/tags/backup/" title="backup" rel="tag">backup</a>, <a href="http://fritzthomas.com/tags/bash/" title="bash" rel="tag">bash</a>, <a href="http://fritzthomas.com/tags/linux/" title="Linux" rel="tag">Linux</a>, <a href="http://fritzthomas.com/tags/shell/" title="shell" rel="tag">shell</a>, <a href="http://fritzthomas.com/tags/tar/" title="tar" rel="tag">tar</a><br />

	<h4>&Auml;hnliche Beitr&auml;ge:</h4>
	<ul class="st-related-posts">
	<li><a href="http://fritzthomas.com/open-source/linux/384-how-to-get-the-absolute-path-within-the-running-bash-script/" title="How to get the absolute path within the running bash script (February 6, 2009)">How to get the absolute path within the running bash script</a> (10)</li>
	<li><a href="http://fritzthomas.com/open-source/linux/551-how-to-get-absolute-path-within-shell-script-part2/" title="How to get absolute path within shell script &#8211; PART2 (June 28, 2010)">How to get absolute path within shell script &#8211; PART2</a> (1)</li>
	<li><a href="http://fritzthomas.com/gentoo-php-web-development-vmware-appliance/" title="Web Dev Appliance (January 13, 2008)">Web Dev Appliance</a> (16)</li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://fritzthomas.com/open-source/linux/520-cloning-copying-a-complete-directory-tree-with-relative-paths-symlinks-and-hardlinks/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How-To: Cleaning up Gentoo to get more free disk space</title>
		<link>http://fritzthomas.com/overall/491-how-to-cleaning-up-gentoo-to-get-more-free-disk-space/</link>
		<comments>http://fritzthomas.com/overall/491-how-to-cleaning-up-gentoo-to-get-more-free-disk-space/#comments</comments>
		<pubDate>Thu, 20 Aug 2009 10:33:03 +0000</pubDate>
		<dc:creator>Thomas</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Overall]]></category>
		<category><![CDATA[cleaning]]></category>
		<category><![CDATA[gentoo]]></category>
		<category><![CDATA[how-to]]></category>
		<category><![CDATA[xfs]]></category>

		<guid isPermaLink="false">http://fritzthomas.com/?p=491</guid>
		<description><![CDATA[You can safely empty some directory`s in Gentoo. But as always &#8211; first make sure if my suggestions are OK for YOU too! # As superuser gentoo ~ # emerge --sync gentoo ~ # emerge -av gentoolkit gentoo ~ # emerge -av --newuse --deep --update world gentoo ~ # emerge -av --depclean gentoo ~ # [...]]]></description>
			<content:encoded><![CDATA[<p>You can safely empty some directory`s in Gentoo. But as always &#8211; first make sure if my suggestions are OK for YOU too!</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;"># As superuser</span>
gentoo ~ <span style="color: #666666; font-style: italic;"># emerge --sync</span>
gentoo ~ <span style="color: #666666; font-style: italic;"># emerge -av gentoolkit</span>
gentoo ~ <span style="color: #666666; font-style: italic;"># emerge -av --newuse --deep --update world</span>
gentoo ~ <span style="color: #666666; font-style: italic;"># emerge -av --depclean</span>
gentoo ~ <span style="color: #666666; font-style: italic;"># revdep-rebuild</span>
gentoo ~ <span style="color: #666666; font-style: italic;"># rm -rf /var/tmp/portage/*</span>
gentoo ~ <span style="color: #666666; font-style: italic;"># rm -rf /var/tmp/ccache/*</span>
gentoo ~ <span style="color: #666666; font-style: italic;"># rm -rf /var/tmp/binpkgs/*</span>
gentoo ~ <span style="color: #666666; font-style: italic;"># rm -rf /var/tmp/genkernel/*</span>
gentoo ~ <span style="color: #666666; font-style: italic;"># rm -rf /usr/portage/distfiles/*</span>
gentoo ~ <span style="color: #666666; font-style: italic;"># rm -rf /tmp/*</span></pre></div></div>

<p>First, you have to install gentoolkit if you haven done this already. Then we remerge or update all packages where USE flags have changed. Then we are searching for unneeded dependencies and remove them. Finally we check if there are any packages with unresolved link dependencies, let them emerge and then clean up some directories.</p>
<p>Optionally you can defrag some of your partitions if this is neccessary. In case of XFS you can do this by:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">gentoo ~ <span style="color: #666666; font-style: italic;"># xfs_db -r /dev/hda2</span></pre></div></div>

</p>
<p>After this you should have a cleaned up gentoo environment, with no broken dependencies and no unneeded packages or libraries.</p>

	Tags: <a href="http://fritzthomas.com/tags/cleaning/" title="cleaning" rel="tag">cleaning</a>, <a href="http://fritzthomas.com/tags/gentoo/" title="gentoo" rel="tag">gentoo</a>, <a href="http://fritzthomas.com/tags/how-to/" title="how-to" rel="tag">how-to</a>, <a href="http://fritzthomas.com/tags/xfs/" title="xfs" rel="tag">xfs</a><br />

	<h4>&Auml;hnliche Beitr&auml;ge:</h4>
	<ul class="st-related-posts">
	<li><a href="http://fritzthomas.com/open-source/linux/12-aendern-oder-setzen-eines-statischen-netzwerk-device-namen-unter-gentoo-eth0-eth1ethn/" title="Setzen eines statischen Netzwerk Device Namen unter Gentoo. (eth0,eth1,&#8230;) (December 27, 2007)">Setzen eines statischen Netzwerk Device Namen unter Gentoo. (eth0,eth1,&#8230;)</a> (0)</li>
	<li><a href="http://fritzthomas.com/open-source/linux/22-7zip-unter-gentoo-linux-verwenden/" title="7zip unter Gentoo Linux verwenden (January 11, 2008)">7zip unter Gentoo Linux verwenden</a> (1)</li>
	<li><a href="http://fritzthomas.com/php/24-zend-framework-web-developer-appliance/" title="Zend Framework Web Developer Appliance (January 15, 2008)">Zend Framework Web Developer Appliance</a> (1)</li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://fritzthomas.com/overall/491-how-to-cleaning-up-gentoo-to-get-more-free-disk-space/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Swiftfox &#8211; an optimized up-to-date firefox build</title>
		<link>http://fritzthomas.com/open-source/linux/475-swiftfox-an-optimized-up-to-date-firefox-build/</link>
		<comments>http://fritzthomas.com/open-source/linux/475-swiftfox-an-optimized-up-to-date-firefox-build/#comments</comments>
		<pubDate>Sun, 16 Aug 2009 10:55:25 +0000</pubDate>
		<dc:creator>Thomas</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Open-Source]]></category>
		<category><![CDATA[Firefox]]></category>
		<category><![CDATA[optimized]]></category>
		<category><![CDATA[swiftfox]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://fritzthomas.com/?p=475</guid>
		<description><![CDATA[I recently stumpled across Swiftfox when i searched for a Firefox 3.5 .deb File for Ubuntu 9.04. The .deb Files should be compatible with all Debian based distributions. The benefit of Swiftfox is it is up-to-date with the latest Firefox Version and you get it as an optimized build for your CPU! Currently there are [...]]]></description>
			<content:encoded><![CDATA[<p>I recently stumpled across Swiftfox when i searched for a <a href="http://getswiftfox.com/deb.htm">Firefox 3.5 .deb File for Ubuntu 9.04</a>. The .deb Files should be compatible with all Debian based distributions.</p>
<p>The benefit of Swiftfox is it is up-to-date with the latest Firefox Version and you get it as an optimized build for your CPU! Currently there are build for Intel Prescott, AMD64, AMD64 (32bit OS) and each with one build for older CPUs.</p>
<p></p>
<p>Go to <a href="http://getswiftfox.com/">http://getswiftfox.com/</a> to read more about it.</p>

	Tags: <a href="http://fritzthomas.com/tags/firefox/" title="Firefox" rel="tag">Firefox</a>, <a href="http://fritzthomas.com/tags/optimized/" title="optimized" rel="tag">optimized</a>, <a href="http://fritzthomas.com/tags/swiftfox/" title="swiftfox" rel="tag">swiftfox</a>, <a href="http://fritzthomas.com/tags/ubuntu/" title="ubuntu" rel="tag">ubuntu</a><br />

	<h4>&Auml;hnliche Beitr&auml;ge:</h4>
	<ul class="st-related-posts">
	<li><a href="http://fritzthomas.com/overall/500-fixing-firefox-3-5-on-ubuntu-to-crash-when-changing-flash-videos-to-fullscreen/" title="Fixing Firefox 3.5 on Ubuntu to crash when changing flash videos to fullscreen (September 22, 2009)">Fixing Firefox 3.5 on Ubuntu to crash when changing flash videos to fullscreen</a> (0)</li>
	<li><a href="http://fritzthomas.com/open-source/13-was-google-so-erfolgreich-macht/" title="Was Google so erfolgreich macht. (January 1, 2008)">Was Google so erfolgreich macht.</a> (0)</li>
	<li><a href="http://fritzthomas.com/open-source/linux/343-no-space-left-on-device-error-with-sshfs-how-to-fix-it/" title="No space left on device error with sshfs &#8211; how to fix it (November 27, 2008)">No space left on device error with sshfs &#8211; how to fix it</a> (2)</li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://fritzthomas.com/open-source/linux/475-swiftfox-an-optimized-up-to-date-firefox-build/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to get the absolute path within the running bash script</title>
		<link>http://fritzthomas.com/open-source/linux/384-how-to-get-the-absolute-path-within-the-running-bash-script/</link>
		<comments>http://fritzthomas.com/open-source/linux/384-how-to-get-the-absolute-path-within-the-running-bash-script/#comments</comments>
		<pubDate>Fri, 06 Feb 2009 09:39:43 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[script]]></category>
		<category><![CDATA[shell]]></category>

		<guid isPermaLink="false">http://fritzthomas.com/?p=384</guid>
		<description><![CDATA[Take a look at my updated post Have you ever needed the absolute path of the shell script within this script? I do not mean the current working dir (pwd). That is different, because you do not know from which path the bash script is called. In my case i needed the absolute path, because [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://fritzthomas.com/open-source/linux/551-how-to-get-absolute-path-within-shell-script-part2/">Take a look at my updated post</a></p>
<p>
Have you ever needed the absolute path of the shell script within this script? I do not mean the current working dir (pwd). That is different, because you do not know from which path the bash script is called.<br />
<div style="width:100%;text-align:center;padding:0;margin:0;border:0;overflow:hidden;clear:both;"><script type="text/javascript"><!--
google_ad_client = "pub-1963733382421272";
google_ui_features = "rc:0";
google_ad_width = 234;
google_ad_height = 60;
google_ad_format = "234x60_as";
google_ad_type = "text_image";
google_alternate_ad_color = "ffffff";
google_color_border = "ffffff";
google_color_bg = "ffffff";
google_color_link = "319BD8";
google_color_text = "666666";
google_color_url = "319BD8";

//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
</div></p>
<p>
In my case i needed the absolute path, because i wanted to call another script, which is by convention, in the same directory as the called script. In such a case you would use realpath in PHP &#8211; readlink is the bash equivalent to it.</p>
<p></p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;"># Absolute path to this script. /home/user/bin/foo.sh</span>
<span style="color: #007800;">SCRIPT</span>=$<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #c20cb9; font-weight: bold;">readlink</span> <span style="color: #660033;">-f</span> $<span style="color: #000000;">0</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>
<span style="color: #666666; font-style: italic;"># Absolute path this script is in. /home/user/bin</span>
<span style="color: #007800;">SCRIPTPATH</span>=<span style="color: #000000; font-weight: bold;">`</span><span style="color: #c20cb9; font-weight: bold;">dirname</span> <span style="color: #007800;">$SCRIPT</span><span style="color: #000000; font-weight: bold;">`</span></pre></td></tr></table></div>


	Tags: <a href="http://fritzthomas.com/tags/bash/" title="bash" rel="tag">bash</a>, <a href="http://fritzthomas.com/tags/howto/" title="howto" rel="tag">howto</a>, <a href="http://fritzthomas.com/tags/linux/" title="Linux" rel="tag">Linux</a>, <a href="http://fritzthomas.com/tags/php/" title="PHP" rel="tag">PHP</a>, <a href="http://fritzthomas.com/tags/script/" title="script" rel="tag">script</a>, <a href="http://fritzthomas.com/tags/shell/" title="shell" rel="tag">shell</a><br />

	<h4>&Auml;hnliche Beitr&auml;ge:</h4>
	<ul class="st-related-posts">
	<li><a href="http://fritzthomas.com/open-source/linux/551-how-to-get-absolute-path-within-shell-script-part2/" title="How to get absolute path within shell script &#8211; PART2 (June 28, 2010)">How to get absolute path within shell script &#8211; PART2</a> (1)</li>
	<li><a href="http://fritzthomas.com/gentoo-php-web-development-vmware-appliance/" title="Web Dev Appliance (January 13, 2008)">Web Dev Appliance</a> (16)</li>
	<li><a href="http://fritzthomas.com/open-source/linux/520-cloning-copying-a-complete-directory-tree-with-relative-paths-symlinks-and-hardlinks/" title="Cloning / copying a complete directory tree with relative paths symlinks and hardlinks (June 23, 2010)">Cloning / copying a complete directory tree with relative paths symlinks and hardlinks</a> (0)</li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://fritzthomas.com/open-source/linux/384-how-to-get-the-absolute-path-within-the-running-bash-script/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
		<item>
		<title>Adobe releases AIR 1.5 for Linux</title>
		<link>http://fritzthomas.com/open-source/linux/351-adobe-releases-air-15-for-linux/</link>
		<comments>http://fritzthomas.com/open-source/linux/351-adobe-releases-air-15-for-linux/#comments</comments>
		<pubDate>Thu, 18 Dec 2008 10:58:49 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Air]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Adobe]]></category>
		<category><![CDATA[how-to]]></category>
		<category><![CDATA[Release]]></category>

		<guid isPermaLink="false">http://fritzthomas.com/?p=351</guid>
		<description><![CDATA[A few weeks ago Adobe announced to release new versions of the Flash player and Air simultaneously for the 3 major operating systems Linux, Mac and Windows. Today Adobe released AIR for Linux in Version 1.5 to catch up with the others. So in future Linux Users of AIR do not have to wait for [...]]]></description>
			<content:encoded><![CDATA[<p>A few weeks ago Adobe announced to release new versions of the Flash player and Air simultaneously for the 3 major operating systems Linux, Mac and Windows.</p>
<p>Today Adobe released AIR for Linux in Version 1.5 to catch up with the others. So in future Linux Users of AIR do not have to wait for new version. I think this is just another step of Adobe in the Linux world. I hope they will release also other Software simultaneously for Linux in future. For example Photoshop or other foto related programs of Adobe.</p>
<p><a href="http://fritzthomas.com/open-source/linux/351-adobe-releases-air-15-for-linux/"><img class="alignnone size-full wp-image-352" title="bildschirmfoto-adobe-adobe-air-mozilla-firefox" src="http://fritzthomas.com/wp-content/uploads/2008/12/bildschirmfoto-adobe-adobe-air-mozilla-firefox.png" alt="bildschirmfoto-adobe-adobe-air-mozilla-firefox" width="445" height="242" /></a></p>
<p><span id="more-351"></span></p>
<p><div style="width:100%;text-align:center;padding:0;margin:0;border:0;overflow:hidden;clear:both;"><script type="text/javascript"><!--
google_ad_client = "pub-1963733382421272";
google_ui_features = "rc:0";
google_ad_width = 234;
google_ad_height = 60;
google_ad_format = "234x60_as";
google_ad_type = "text_image";
google_alternate_ad_color = "ffffff";
google_color_border = "ffffff";
google_color_bg = "ffffff";
google_color_link = "319BD8";
google_color_text = "666666";
google_color_url = "319BD8";

//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
</div>
<p>
Install Adobe Air on Linux is really simple. Here some Screenshots of the steps:
</p>

<a href='http://fritzthomas.com/open-source/linux/351-adobe-releases-air-15-for-linux/attachment/bildschirmfoto-adobe-adobe-air-mozilla-firefox/' title='bildschirmfoto-adobe-adobe-air-mozilla-firefox'><img width="120" height="65" src="http://fritzthomas.com/wp-content/uploads/2008/12/bildschirmfoto-adobe-adobe-air-mozilla-firefox-120x65.png" class="attachment-thumbnail" alt="bildschirmfoto-adobe-adobe-air-mozilla-firefox" title="bildschirmfoto-adobe-adobe-air-mozilla-firefox" /></a>
<a href='http://fritzthomas.com/open-source/linux/351-adobe-releases-air-15-for-linux/attachment/screenshot41/' title='Make it executeable'><img width="120" height="67" src="http://fritzthomas.com/wp-content/uploads/2008/12/screenshot41-120x67.png" class="attachment-thumbnail" alt="Make it executeable" title="Make it executeable" /></a>
<a href='http://fritzthomas.com/open-source/linux/351-adobe-releases-air-15-for-linux/attachment/screenshot5-2/' title='Execute it'><img width="120" height="67" src="http://fritzthomas.com/wp-content/uploads/2008/12/screenshot5-120x67.png" class="attachment-thumbnail" alt="Execute it" title="Execute it" /></a>
<a href='http://fritzthomas.com/open-source/linux/351-adobe-releases-air-15-for-linux/attachment/screenshot6/' title='Follow the Clicks - Step1'><img width="120" height="100" src="http://fritzthomas.com/wp-content/uploads/2008/12/screenshot6-120x100.png" class="attachment-thumbnail" alt="Follow the Clicks - Step1" title="Follow the Clicks - Step1" /></a>
<a href='http://fritzthomas.com/open-source/linux/351-adobe-releases-air-15-for-linux/attachment/screenshot7-2/' title='Watching the progress'><img width="120" height="59" src="http://fritzthomas.com/wp-content/uploads/2008/12/screenshot7-120x59.png" class="attachment-thumbnail" alt="Watching the progress" title="Watching the progress" /></a>
<a href='http://fritzthomas.com/open-source/linux/351-adobe-releases-air-15-for-linux/attachment/screenshot8/' title='Adobe Air for Linux is installed'><img width="120" height="60" src="http://fritzthomas.com/wp-content/uploads/2008/12/screenshot8-120x60.png" class="attachment-thumbnail" alt="Adobe Air for Linux is installed" title="Adobe Air for Linux is installed" /></a>


	Tags: <a href="http://fritzthomas.com/tags/adobe/" title="Adobe" rel="tag">Adobe</a>, <a href="http://fritzthomas.com/tags/air/" title="Air" rel="tag">Air</a>, <a href="http://fritzthomas.com/tags/how-to/" title="how-to" rel="tag">how-to</a>, <a href="http://fritzthomas.com/tags/linux/" title="Linux" rel="tag">Linux</a>, <a href="http://fritzthomas.com/tags/release/" title="Release" rel="tag">Release</a><br />

	<h4>&Auml;hnliche Beitr&auml;ge:</h4>
	<ul class="st-related-posts">
	<li><a href="http://fritzthomas.com/open-source/linux/292-adobe-air-11-for-linux-beta-released/" title="Adobe AIR 1.1 for Linux Beta released (September 18, 2008)">Adobe AIR 1.1 for Linux Beta released</a> (0)</li>
	<li><a href="http://fritzthomas.com/overall/298-adobe-released-flash-player-10/" title="Adobe released Flash Player 10 (October 16, 2008)">Adobe released Flash Player 10</a> (0)</li>
	<li><a href="http://fritzthomas.com/open-source/linux/46-adobe-hat-erste-air-alpha-fur-linux-angekundigt/" title="Adobe hat erste Air Alpha für Linux angekündigt (March 31, 2008)">Adobe hat erste Air Alpha für Linux angekündigt</a> (0)</li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://fritzthomas.com/open-source/linux/351-adobe-releases-air-15-for-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>No space left on device error with sshfs &#8211; how to fix it</title>
		<link>http://fritzthomas.com/open-source/linux/343-no-space-left-on-device-error-with-sshfs-how-to-fix-it/</link>
		<comments>http://fritzthomas.com/open-source/linux/343-no-space-left-on-device-error-with-sshfs-how-to-fix-it/#comments</comments>
		<pubDate>Thu, 27 Nov 2008 14:08:54 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[error]]></category>
		<category><![CDATA[how-to]]></category>
		<category><![CDATA[sshfs]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://fritzthomas.com/?p=343</guid>
		<description><![CDATA[After upgrading to Ubuntu 8.10 Intrepid you may get some error on sshfs mounted directories, when you tried to copy something on this places. This fix seems to be fixed in sshfs 2.1. If you need a fast fix on this install sshfs 2.1 manually from here: http://packages.ubuntu.com/jaunty/sshfs Select the right Architecture and download the [...]]]></description>
			<content:encoded><![CDATA[<p>After upgrading to Ubuntu 8.10 Intrepid you may get some error on sshfs mounted directories, when you tried to copy something on this places. This fix seems to be fixed in sshfs 2.1. If you need a fast fix on this install sshfs 2.1 manually from here: <a href="http://packages.ubuntu.com/jaunty/sshfs">http://packages.ubuntu.com/jaunty/sshfs</a></p>
<p>Select the right Architecture and download the .deb file from one of the locations on the next site. You can open the deb file directly with GDebi Package Manager.</p>
<p>Ignore warnings that an older version was found in your package manager.</p>

	Tags: <a href="http://fritzthomas.com/tags/error/" title="error" rel="tag">error</a>, <a href="http://fritzthomas.com/tags/how-to/" title="how-to" rel="tag">how-to</a>, <a href="http://fritzthomas.com/tags/sshfs/" title="sshfs" rel="tag">sshfs</a>, <a href="http://fritzthomas.com/tags/ubuntu/" title="ubuntu" rel="tag">ubuntu</a><br />

	<h4>&Auml;hnliche Beitr&auml;ge:</h4>
	<ul class="st-related-posts">
	<li><a href="http://fritzthomas.com/php/zend-framework/33-how-to-teil-1-projektaufbau-konventionen-und-modulare-verzeichnisstruktur/" title="Zend Framework How-To Teil 1: Projektaufbau, Konventionen und modulare Verzeichnisstruktur (January 28, 2008)">Zend Framework How-To Teil 1: Projektaufbau, Konventionen und modulare Verzeichnisstruktur</a> (13)</li>
	<li><a href="http://fritzthomas.com/open-source/linux/475-swiftfox-an-optimized-up-to-date-firefox-build/" title="Swiftfox &#8211; an optimized up-to-date firefox build (August 16, 2009)">Swiftfox &#8211; an optimized up-to-date firefox build</a> (0)</li>
	<li><a href="http://fritzthomas.com/open-source/linux/12-aendern-oder-setzen-eines-statischen-netzwerk-device-namen-unter-gentoo-eth0-eth1ethn/" title="Setzen eines statischen Netzwerk Device Namen unter Gentoo. (eth0,eth1,&#8230;) (December 27, 2007)">Setzen eines statischen Netzwerk Device Namen unter Gentoo. (eth0,eth1,&#8230;)</a> (0)</li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://fritzthomas.com/open-source/linux/343-no-space-left-on-device-error-with-sshfs-how-to-fix-it/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Adobe AIR 1.1 for Linux Beta released</title>
		<link>http://fritzthomas.com/open-source/linux/292-adobe-air-11-for-linux-beta-released/</link>
		<comments>http://fritzthomas.com/open-source/linux/292-adobe-air-11-for-linux-beta-released/#comments</comments>
		<pubDate>Thu, 18 Sep 2008 08:57:47 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Air]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Adobe]]></category>
		<category><![CDATA[cross platform support]]></category>
		<category><![CDATA[Release]]></category>
		<category><![CDATA[RIA]]></category>

		<guid isPermaLink="false">http://fritzthomas.com/?p=292</guid>
		<description><![CDATA[Until now Adobe does not provide full Cross Platform Support for their RIA Project AIR. AIR was only available for Windows and MAC. Now the Linux version gets a little bit closer to this versions. With the Release of the Adobe AIR 1.1 Beta for Linux all Applications which runs on MAC and Win are [...]]]></description>
			<content:encoded><![CDATA[<p>Until now Adobe does not provide full Cross Platform Support for their RIA Project AIR. AIR was only available for Windows and MAC. Now the Linux version gets a little bit closer to this versions. With the Release of the Adobe AIR 1.1 Beta for Linux all Applications which runs on MAC and Win are supported with this release.</p>
<p>Adobe says on the <a href="http://labs.adobe.com/wiki/index.php/AIR_for_Linux:FAQ">FAQ Site</a> that with version 1.5 they will release all new version of Adobe AIR on all Platforms (Win, Mac and Linux) at the same time. Hoping so&#8230;</p>
<p><a href="http://labs.adobe.com/technologies/air/">Try the new Version here</a></p>

	Tags: <a href="http://fritzthomas.com/tags/adobe/" title="Adobe" rel="tag">Adobe</a>, <a href="http://fritzthomas.com/tags/air/" title="Air" rel="tag">Air</a>, <a href="http://fritzthomas.com/tags/cross-platform-support/" title="cross platform support" rel="tag">cross platform support</a>, <a href="http://fritzthomas.com/tags/linux/" title="Linux" rel="tag">Linux</a>, <a href="http://fritzthomas.com/tags/release/" title="Release" rel="tag">Release</a>, <a href="http://fritzthomas.com/tags/ria/" title="RIA" rel="tag">RIA</a><br />

	<h4>&Auml;hnliche Beitr&auml;ge:</h4>
	<ul class="st-related-posts">
	<li><a href="http://fritzthomas.com/open-source/linux/351-adobe-releases-air-15-for-linux/" title="Adobe releases AIR 1.5 for Linux (December 18, 2008)">Adobe releases AIR 1.5 for Linux</a> (0)</li>
	<li><a href="http://fritzthomas.com/overall/298-adobe-released-flash-player-10/" title="Adobe released Flash Player 10 (October 16, 2008)">Adobe released Flash Player 10</a> (0)</li>
	<li><a href="http://fritzthomas.com/open-source/linux/46-adobe-hat-erste-air-alpha-fur-linux-angekundigt/" title="Adobe hat erste Air Alpha für Linux angekündigt (March 31, 2008)">Adobe hat erste Air Alpha für Linux angekündigt</a> (0)</li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://fritzthomas.com/open-source/linux/292-adobe-air-11-for-linux-beta-released/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Adobe hat erste Air Alpha für Linux angekündigt</title>
		<link>http://fritzthomas.com/open-source/linux/46-adobe-hat-erste-air-alpha-fur-linux-angekundigt/</link>
		<comments>http://fritzthomas.com/open-source/linux/46-adobe-hat-erste-air-alpha-fur-linux-angekundigt/#comments</comments>
		<pubDate>Mon, 31 Mar 2008 08:04:46 +0000</pubDate>
		<dc:creator>Thomas</dc:creator>
				<category><![CDATA[Air]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Adobe]]></category>
		<category><![CDATA[Ankündigung]]></category>

		<guid isPermaLink="false">http://fritzthomas.com/linux/46-adobe-hat-erste-air-alpha-fur-linux-angekundigt/</guid>
		<description><![CDATA[Version 1 der Multi/Cross Plattform API von Adobe wurde ja kürzlich veröffentlicht. Wie von Beginn an angekündigt wird nun laut einem Bericht von CNET eine erste Alpha Version für Linux erscheinen. Interessant wird ob und wie allgemein die API von AIR nun auch unter Linux zu verwenden sein wird. Das wird vor allem bei Dateisystemoperationen [...]]]></description>
			<content:encoded><![CDATA[<p>Version 1 der <a href="http://www.adobe.com/products/air/">Multi/Cross Plattform API von Adobe</a> wurde ja kürzlich veröffentlicht. Wie von Beginn an angekündigt wird nun laut einem Bericht von <a href="http://www.news.com/8301-10784_3-9906127-7.html?part=rss&#038;subj=news&#038;tag=2547-1_3-0-20">CNET</a> eine erste Alpha Version für Linux erscheinen.<br />
Interessant wird ob und wie allgemein die API von AIR nun auch unter Linux zu verwenden sein wird. Das wird vor allem bei Dateisystemoperationen interessant.<br />
Ich denke das sich Adobes Runtime Air bei einer stabilen sicheren Version für alle 3 Major Betriebsysteme durchaus durchsetzen wird und uns eine Menge nützlicher Tools die noch mehr mit dem Internet verknüpft sind, bescheren wird.</p>

	Tags: <a href="http://fritzthomas.com/tags/adobe/" title="Adobe" rel="tag">Adobe</a>, <a href="http://fritzthomas.com/tags/air/" title="Air" rel="tag">Air</a>, <a href="http://fritzthomas.com/tags/ankundigung/" title="Ankündigung" rel="tag">Ankündigung</a>, <a href="http://fritzthomas.com/tags/linux/" title="Linux" rel="tag">Linux</a><br />

	<h4>&Auml;hnliche Beitr&auml;ge:</h4>
	<ul class="st-related-posts">
	<li><a href="http://fritzthomas.com/open-source/linux/351-adobe-releases-air-15-for-linux/" title="Adobe releases AIR 1.5 for Linux (December 18, 2008)">Adobe releases AIR 1.5 for Linux</a> (0)</li>
	<li><a href="http://fritzthomas.com/open-source/linux/292-adobe-air-11-for-linux-beta-released/" title="Adobe AIR 1.1 for Linux Beta released (September 18, 2008)">Adobe AIR 1.1 for Linux Beta released</a> (0)</li>
	<li><a href="http://fritzthomas.com/air/36-adobe-air-1-0-released/" title="Adobe AIR 1.0 Released (February 25, 2008)">Adobe AIR 1.0 Released</a> (1)</li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://fritzthomas.com/open-source/linux/46-adobe-hat-erste-air-alpha-fur-linux-angekundigt/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Rekursiv für bestimmte Dateien Dateioperation durchführen</title>
		<link>http://fritzthomas.com/open-source/linux/45-rekursiv-fur-bestimmte-dateien-dateioperation-durchfuhren/</link>
		<comments>http://fritzthomas.com/open-source/linux/45-rekursiv-fur-bestimmte-dateien-dateioperation-durchfuhren/#comments</comments>
		<pubDate>Fri, 21 Mar 2008 14:26:44 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[dos2unix]]></category>
		<category><![CDATA[how-to]]></category>
		<category><![CDATA[svn propset]]></category>

		<guid isPermaLink="false">http://fritzthomas.com/linux/45-rekursiv-fur-bestimmte-dateien-dateioperation-durchfuhren/</guid>
		<description><![CDATA[Ich hatte das Problem das ich über ein ganzes Projektverzeichnis bei bestimmten Dateien (.php, .phtml, .js, .css) ein svn propset ausführen wollte. Unter Windows und TortoiseSVN hat man zwar die Möglichkeit über ein ganzes Verzeichnis rekursiv ein Property zu setzen, jedoch nicht nach Dateiendungen zu entscheiden ob es gesetzt werden soll. Eine einfache und schnelle [...]]]></description>
			<content:encoded><![CDATA[<p>Ich hatte das Problem das ich über ein ganzes Projektverzeichnis bei bestimmten Dateien (.php, .phtml, .js, .css) ein svn propset ausführen wollte. Unter Windows und TortoiseSVN hat man zwar die Möglichkeit über ein ganzes Verzeichnis rekursiv ein Property zu setzen, jedoch nicht nach Dateiendungen zu entscheiden ob es gesetzt werden soll. Eine einfache und schnelle Möglichkeit ist dazu das Unix/Linux Tool &#8216;find&#8217;.</p>
<p><span id="more-45"></span></p>
<p>Nach Dateien suchen und dabei Dateien in einem .svn Verzeichnis nicht durchsuchen. Auf jedes gefundene File ein svn propset anwenden:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">find</span> \<span style="color: #000000; font-weight: bold;">!</span> <span style="color: #660033;">-wholename</span> \<span style="color: #000000; font-weight: bold;">*</span>.svn\<span style="color: #000000; font-weight: bold;">*</span> <span style="color: #660033;">-type</span> f  \<span style="color: #7a0874; font-weight: bold;">&#40;</span> <span style="color: #660033;">-name</span> \<span style="color: #000000; font-weight: bold;">*</span>.php <span style="color: #660033;">-o</span> <span style="color: #660033;">-name</span> \<span style="color: #000000; font-weight: bold;">*</span>.phtml <span style="color: #660033;">-o</span> <span style="color: #660033;">-name</span> \<span style="color: #000000; font-weight: bold;">*</span>.css <span style="color: #660033;">-o</span> <span style="color: #660033;">-name</span> \<span style="color: #000000; font-weight: bold;">*</span>.js <span style="color: #660033;">-o</span> <span style="color: #660033;">-name</span> \<span style="color: #000000; font-weight: bold;">*</span>.ini \<span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #660033;">-exec</span> <span style="color: #c20cb9; font-weight: bold;">svn</span> propset <span style="color: #c20cb9; font-weight: bold;">svn</span>:keywords <span style="color: #ff0000;">'Date Revision Author HeadURL Id'</span> <span style="color: #7a0874; font-weight: bold;">&#123;</span><span style="color: #7a0874; font-weight: bold;">&#125;</span> \;</pre></td></tr></table></div>

<p><div style="width:100%;text-align:center;padding:0;margin:0;border:0;overflow:hidden;clear:both;"><script type="text/javascript"><!--
google_ad_client = "pub-1963733382421272";
google_ui_features = "rc:0";
google_ad_width = 234;
google_ad_height = 60;
google_ad_format = "234x60_as";
google_ad_type = "text_image";
google_alternate_ad_color = "ffffff";
google_color_border = "ffffff";
google_color_bg = "ffffff";
google_color_link = "319BD8";
google_color_text = "666666";
google_color_url = "319BD8";

//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
</div>
<p>Das ganze kann natuerlich auch fuer andere Dateioperationen angewandt werden wir zum Beispiel dos2unix:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">find</span> \<span style="color: #000000; font-weight: bold;">!</span> <span style="color: #660033;">-wholename</span> \<span style="color: #000000; font-weight: bold;">*</span>.svn\<span style="color: #000000; font-weight: bold;">*</span> <span style="color: #660033;">-type</span> f  \<span style="color: #7a0874; font-weight: bold;">&#40;</span> <span style="color: #660033;">-name</span> \<span style="color: #000000; font-weight: bold;">*</span>.php <span style="color: #660033;">-o</span> <span style="color: #660033;">-name</span> \<span style="color: #000000; font-weight: bold;">*</span>.phtml <span style="color: #660033;">-o</span> <span style="color: #660033;">-name</span> \<span style="color: #000000; font-weight: bold;">*</span>.css <span style="color: #660033;">-o</span> <span style="color: #660033;">-name</span> \<span style="color: #000000; font-weight: bold;">*</span>.js <span style="color: #660033;">-o</span> <span style="color: #660033;">-name</span> \<span style="color: #000000; font-weight: bold;">*</span>.html <span style="color: #660033;">-o</span> <span style="color: #660033;">-name</span> \<span style="color: #000000; font-weight: bold;">*</span>.ini \<span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #660033;">-exec</span> dos2unix <span style="color: #7a0874; font-weight: bold;">&#123;</span><span style="color: #7a0874; font-weight: bold;">&#125;</span> \;</pre></td></tr></table></div>

<p>Bei den Beispielen werden alle &#8216;.svn&#8217; Verzeichnisse nicht durchsucht: \! -wholename \*.svn\*<br />
Es wird nur nach Dateien gesucht: -type f<br />
Und nur nach Dateien mit der Endung .php .phtml .css .js .html .ini : \( -name \*.php -o -name \*.phtml -o -name \*.css -o -name \*.js -o -name \*.html -o -name \*.ini \)</p>

	Tags: <a href="http://fritzthomas.com/tags/bash/" title="bash" rel="tag">bash</a>, <a href="http://fritzthomas.com/tags/dos2unix/" title="dos2unix" rel="tag">dos2unix</a>, <a href="http://fritzthomas.com/tags/how-to/" title="how-to" rel="tag">how-to</a>, <a href="http://fritzthomas.com/tags/svn-propset/" title="svn propset" rel="tag">svn propset</a><br />

	<h4>&Auml;hnliche Beitr&auml;ge:</h4>
	<ul class="st-related-posts">
	<li><a href="http://fritzthomas.com/open-source/linux/12-aendern-oder-setzen-eines-statischen-netzwerk-device-namen-unter-gentoo-eth0-eth1ethn/" title="Setzen eines statischen Netzwerk Device Namen unter Gentoo. (eth0,eth1,&#8230;) (December 27, 2007)">Setzen eines statischen Netzwerk Device Namen unter Gentoo. (eth0,eth1,&#8230;)</a> (0)</li>
	<li><a href="http://fritzthomas.com/php/zend-framework/33-how-to-teil-1-projektaufbau-konventionen-und-modulare-verzeichnisstruktur/" title="Zend Framework How-To Teil 1: Projektaufbau, Konventionen und modulare Verzeichnisstruktur (January 28, 2008)">Zend Framework How-To Teil 1: Projektaufbau, Konventionen und modulare Verzeichnisstruktur</a> (13)</li>
	<li><a href="http://fritzthomas.com/gentoo-php-web-development-vmware-appliance/" title="Web Dev Appliance (January 13, 2008)">Web Dev Appliance</a> (16)</li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://fritzthomas.com/open-source/linux/45-rekursiv-fur-bestimmte-dateien-dateioperation-durchfuhren/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>7zip unter Gentoo Linux verwenden</title>
		<link>http://fritzthomas.com/open-source/linux/22-7zip-unter-gentoo-linux-verwenden/</link>
		<comments>http://fritzthomas.com/open-source/linux/22-7zip-unter-gentoo-linux-verwenden/#comments</comments>
		<pubDate>Fri, 11 Jan 2008 10:27:44 +0000</pubDate>
		<dc:creator>Thomas</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Open-Source]]></category>
		<category><![CDATA[7zip]]></category>
		<category><![CDATA[gentoo]]></category>
		<category><![CDATA[how-to]]></category>

		<guid isPermaLink="false">http://fritzthomas.com/allgemein/22-7zip-unter-gentoo-linux-verwenden/</guid>
		<description><![CDATA[Das 7zip Kompressionsformat wird nicht &#8220;Out-Of-The-Box&#8221; unterst&#252;tzt. Das Programm kann einfach mit thomas@gentoo ~ $ emerge -av p7zip installiert werden. Einfaches schnelles Komprimieren Eine Datei oder ein ganzen Verzeichnis mit den Standard Optionen zu komprimieren ist ganz einfach. Nehmen wir an, wir wollen ein ganzes Verzeichnis komprimieren. thomas@gentoo ~ $ 7za a test.7z test-verzeichnis/ Starkes [...]]]></description>
			<content:encoded><![CDATA[<p>Das 7zip Kompressionsformat wird nicht &#8220;Out-Of-The-Box&#8221; unterst&uuml;tzt. Das Programm kann einfach mit</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">thomas<span style="color: #000000; font-weight: bold;">@</span>gentoo ~ $ emerge <span style="color: #660033;">-av</span> p7zip</pre></div></div>

<p>installiert werden.</p>
<h3>Einfaches schnelles Komprimieren</h3>
<p>Eine Datei oder ein ganzen Verzeichnis mit den Standard Optionen zu komprimieren ist ganz einfach. Nehmen wir an, wir wollen ein ganzes Verzeichnis komprimieren.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">thomas<span style="color: #000000; font-weight: bold;">@</span>gentoo ~ $ 7za a test.7z test-verzeichnis<span style="color: #000000; font-weight: bold;">/</span></pre></div></div>

<h3>Starkes Komprimieren mit den &#8220;Ultra&#8221; Optionen</h3>
<p>Um eine Datei oder ein ganzes Verzeichnis st&auml;rker zu komprimieren sind einige Optionen n&ouml;tig. An den einzelenen Optionen kann nat&uuml;rlich noch &#8220;getuned&#8221; werden, aber man sollte daran denken, dass sich die Zeit zum komprimieren und entpacken des Archives erh&ouml;ht umso st&auml;rker komprimiert wird. Ausserdem wird, bei st&auml;rker Komprimierung, auch der Speicherverbrauch beim Entpacken gr&ouml;&szlig;er.</p>
<p><span id="more-22"></span><br />
<div style="width:100%;text-align:center;padding:0;margin:0;border:0;overflow:hidden;clear:both;"><script type="text/javascript"><!--
google_ad_client = "pub-1963733382421272";
google_ui_features = "rc:0";
google_ad_width = 234;
google_ad_height = 60;
google_ad_format = "234x60_as";
google_ad_type = "text_image";
google_alternate_ad_color = "ffffff";
google_color_border = "ffffff";
google_color_bg = "ffffff";
google_color_link = "319BD8";
google_color_text = "666666";
google_color_url = "319BD8";

//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
</div><br />
Bei der schnellsten Kompressionsst&uuml;rke sind laut 7zip lediglich 3MB beim komprimieren und 3MB beim Entpacken n&ouml;tig, mit den &#8220;Ultra&#8221; Optionen sind zur Komprimierung ca. 709Mb n&uuml;tig und beim Entpacken ca. 66Mb.</p>
<p>Diese &#8220;Ultra&#8221; Kompressionsst&auml;rke setzt sich aus folgenden Kommandozeilen Paramteren zusammen:</p>
<ul>
<li>Archivtyp: -t7z</li>
<li>Kompressionsverfahren: -m0=lzma</li>
<li>Kompressionsst&auml;rke: -mx=9</li>
<li>Wortgr&ouml;&szlig;e (Fast Bytes): -mfb=64</li>
<li>W&ouml;rterbuchgr&ouml;&szlig;e: -md=32m</li>
<li>Solides Archiv: -ms=on</li>
</ul>
<p>Auf der Kommandozeile w&uuml;rde das dann so aussehen:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">thomas<span style="color: #000000; font-weight: bold;">@</span>gentoo ~ $ 7za a <span style="color: #660033;">-t7z</span> <span style="color: #660033;">-m0</span>=lzma <span style="color: #660033;">-mx</span>=<span style="color: #000000;">9</span> <span style="color: #660033;">-mfb</span>=<span style="color: #000000;">64</span> <span style="color: #660033;">-ms</span>=on <span style="color: #660033;">-md</span>=32m test.7z test-verzeichnis<span style="color: #000000; font-weight: bold;">/</span></pre></div></div>

<p>Wie schon erw&aumlhnt;, mit den einzelenen Optionen kann man sich noch spielen um eine ideale Kompressionsrate zu erzielen.</p>
<p>Mit diesen Optionen hab ich auf einem AMD Athlon(tm) 64 X2 Dual Core Processor 4600+ ein Verzeichnis mit mehreren Dateien (insgesamt 5Gb) komprimieren lassen. Nach 20 Minuten war das 1.4Gb gro&szlig;e Archiv fertig komprimiert. Ein Ersparnis von 3.6Gb. Das Ergebnis kann sich sehen lassen.</p>

	Tags: <a href="http://fritzthomas.com/tags/7zip/" title="7zip" rel="tag">7zip</a>, <a href="http://fritzthomas.com/tags/gentoo/" title="gentoo" rel="tag">gentoo</a>, <a href="http://fritzthomas.com/tags/how-to/" title="how-to" rel="tag">how-to</a>, <a href="http://fritzthomas.com/tags/linux/" title="Linux" rel="tag">Linux</a><br />

	<h4>&Auml;hnliche Beitr&auml;ge:</h4>
	<ul class="st-related-posts">
	<li><a href="http://fritzthomas.com/open-source/linux/12-aendern-oder-setzen-eines-statischen-netzwerk-device-namen-unter-gentoo-eth0-eth1ethn/" title="Setzen eines statischen Netzwerk Device Namen unter Gentoo. (eth0,eth1,&#8230;) (December 27, 2007)">Setzen eines statischen Netzwerk Device Namen unter Gentoo. (eth0,eth1,&#8230;)</a> (0)</li>
	<li><a href="http://fritzthomas.com/gentoo-php-web-development-vmware-appliance/" title="Web Dev Appliance (January 13, 2008)">Web Dev Appliance</a> (16)</li>
	<li><a href="http://fritzthomas.com/overall/491-how-to-cleaning-up-gentoo-to-get-more-free-disk-space/" title="How-To: Cleaning up Gentoo to get more free disk space (August 20, 2009)">How-To: Cleaning up Gentoo to get more free disk space</a> (4)</li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://fritzthomas.com/open-source/linux/22-7zip-unter-gentoo-linux-verwenden/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Setzen eines statischen Netzwerk Device Namen unter Gentoo. (eth0,eth1,&#8230;)</title>
		<link>http://fritzthomas.com/open-source/linux/12-aendern-oder-setzen-eines-statischen-netzwerk-device-namen-unter-gentoo-eth0-eth1ethn/</link>
		<comments>http://fritzthomas.com/open-source/linux/12-aendern-oder-setzen-eines-statischen-netzwerk-device-namen-unter-gentoo-eth0-eth1ethn/#comments</comments>
		<pubDate>Thu, 27 Dec 2007 16:33:18 +0000</pubDate>
		<dc:creator>Thomas</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[gentoo]]></category>
		<category><![CDATA[how-to]]></category>
		<category><![CDATA[vmware]]></category>

		<guid isPermaLink="false">http://fritzthomas.com/archives/2007/12/aendern-oder-setzen-eines-statischen-netzwerk-device-namen-unter-gentoo-eth0-eth1ethn/</guid>
		<description><![CDATA[Wird durch den Kernel eine neue Mac Adresse erkannt, wird angenommen das es sich dabei um ein neues Netzwerk Interface handelt. Dieses neue Device muss anschließend auch neu konfiguriert werden. Soweit so gut. Möchte man aber seine Netzwerkkarte gegen eine neue tauschen, aber denselben Device Namen behalten, um so die evtl. bereits erstellte und wahrscheinlich [...]]]></description>
			<content:encoded><![CDATA[<p>Wird durch den Kernel eine neue Mac Adresse erkannt, wird angenommen das es sich dabei um ein <em>neues</em> Netzwerk Interface handelt. Dieses neue Device muss anschließend  auch <em>neu</em> konfiguriert werden.</p>
<p><div style="width:100%;text-align:center;padding:0;margin:0;border:0;overflow:hidden;clear:both;"><script type="text/javascript"><!--
google_ad_client = "pub-1963733382421272";
google_ui_features = "rc:0";
google_ad_width = 234;
google_ad_height = 60;
google_ad_format = "234x60_as";
google_ad_type = "text_image";
google_alternate_ad_color = "ffffff";
google_color_border = "ffffff";
google_color_bg = "ffffff";
google_color_link = "319BD8";
google_color_text = "666666";
google_color_url = "319BD8";

//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
</div></p>
<p>Soweit so gut. Möchte man aber seine Netzwerkkarte gegen eine neue <em>tauschen</em>, aber denselben Device Namen behalten, um so die evtl. bereits erstellte und wahrscheinlich auch funktionierende Konfiguration (Netzwerkkonfiguration, iptables,&#8230;) zu verwenden, kann mittels udev Regeln der neuen Mac Adresse einen statischen Namen zuweisen.</p>
<p>Das ist auch dann hilfreich wenn man eine Linux <strong>VMware</strong> Appliance kopiert, und eine neue UUID generieren l&auml;sst, um zum Beispiel mehrere &#8220;identische&#8221; Appliances im selben Netzwerk zu betreiben. Das neu generieren ändert auch die Mac Adresse der virtuellen Netzwerkkarte und somit wird auch ein neues Interface angelegt. Was vorher eth0 war wird dann zu eth1 und muss auch wieder neu konfiguriert werden.<br />
Will man einfach <a href="/allgemein/19-manuell-die-mac-adresse-einer-vmware-appliance-andern/">manuell die Mac Adresse einer Appliance &auml;ndern</a> oder zuweisen, um immer dieselbe MAC Adresse zu haben auch wenn die Appliance kopiert wird seht <a href="/allgemein/19-manuell-die-mac-adresse-einer-vmware-appliance-andern/">hier</a>.</p>
<p><span id="more-12"></span></p>
<p>Um sich das neu Konfigurieren zu ersparen kann man mit einer einfachen udev Regel den Namen des Devices setzen.</p>
<h2>Mac Adresse rausfinden</h2>
<p>Zuerst müssen wir die neue Mac Adresse rausfinden.<br />
Entweder die Ausgabe von ifconfig verrät uns schon die Mac Adresse (HWaddr XX:XX:XX:XX:XX:XX):</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">ifconfig</span> <span style="color: #660033;">-a</span>
eth1      Link encap:Ethernet  HWaddr XX:XX:XX:XX:XX:XX
          inet addr:192.168.0.1  Bcast:192.168.0.255  Mask:255.255.255.0
          inet6 addr: fe80::20c:29ff:fe06:<span style="color: #000000;">528</span><span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">64</span> Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:<span style="color: #000000;">1500</span>  Metric:<span style="color: #000000;">1</span>
          RX packets:<span style="color: #000000;">14656</span> errors:<span style="color: #000000;">0</span> dropped:<span style="color: #000000;">0</span> overruns:<span style="color: #000000;">0</span> frame:<span style="color: #000000;">0</span>
          TX packets:<span style="color: #000000;">13877</span> errors:<span style="color: #000000;">0</span> dropped:<span style="color: #000000;">0</span> overruns:<span style="color: #000000;">0</span> carrier:<span style="color: #000000;">0</span>
          collisions:<span style="color: #000000;">0</span> txqueuelen:<span style="color: #000000;">1000</span>
          RX bytes:<span style="color: #000000;">5958558</span> <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000;">5.6</span> Mb<span style="color: #7a0874; font-weight: bold;">&#41;</span>  TX bytes:<span style="color: #000000;">2020530</span> <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000;">1.9</span> Mb<span style="color: #7a0874; font-weight: bold;">&#41;</span>
          Interrupt:<span style="color: #000000;">16</span> Base address:0x1400</pre></div></div>

<p>oder aber udevinfo:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">udevinfo <span style="color: #660033;">-a</span> <span style="color: #660033;">-p</span> <span style="color: #000000; font-weight: bold;">/</span>sys<span style="color: #000000; font-weight: bold;">/</span>class<span style="color: #000000; font-weight: bold;">/</span>net<span style="color: #000000; font-weight: bold;">/</span>eth1 <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">grep</span> address
    ATTR<span style="color: #7a0874; font-weight: bold;">&#123;</span>address<span style="color: #7a0874; font-weight: bold;">&#125;</span>==<span style="color: #ff0000;">&quot;XX:XX:XX:XX:XX:XX&quot;</span></pre></div></div>

<p>Wenn man die Mac Adresse einer vmware Appliance herausfinden will, ist es ganz einfach. Die &#8220;.vmx&#8221; Datei der Appliance mit einem Texteditor offnen. Die Mac Adresse wird nach &#8220;ethernet0.generatedAddress&#8221; gespeichert. In derselben Datei findet man auch auch die UUID. Die wird in &#8220;uuid.location&#8221; und &#8220;uuid.bios&#8221; gespeichert.</p>
<h2>Namen für das Device setzen / ändern</h2>
<p>Mit der Mac Adresse die wir jetzt wissen, können wir eine neue Udev Regel erstellen und einen beliebigen Namen setzen. Also können wir aus eth1 ein eth0 machen.</p>
<p>Unter <strong>Gentoo</strong> werden die Regeln in <strong>/etc/udev/rules.d</strong> gespeichert.<br />
Unsere neue Regel speichern wir in ein neues File.<br />
<strong>/etc/udev/rules.d/10-rules.local</strong>:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #007800;">SUBSYSTEM</span>==<span style="color: #ff0000;">&quot;net&quot;</span>, ATTR<span style="color: #7a0874; font-weight: bold;">&#123;</span>address<span style="color: #7a0874; font-weight: bold;">&#125;</span>==<span style="color: #ff0000;">&quot;XX:XX:XX:XX:XX:XX&quot;</span>, <span style="color: #007800;">NAME</span>=<span style="color: #ff0000;">&quot;eth0&quot;</span></pre></div></div>

<p>Die Mac Adresse (&#8220;XX:XX:XX:XX:XX:XX&#8221;) und den Namen (&#8220;eth0&#8243;) muesst ihr natürlich mit eurer Mac Adresse und euren Wunschnamen ersetzen.</p>
<p>Das obige Beispiel wird also das Device mit der Mac Adresse XX:XX:XX:XX:XX:XX mit dem Namen eth0 erstellen und nicht eth1 wie in unserem Beispiel.<br />
Man kann auch sprechendere Namen verwenden, wenn man mehrere Devices für verschiedene Dienste verwendet und man sich keine Zahlen merken will (oder kann)<br />
Zum Beispiel: eth_www und eth_db oder eth_lan und eth_wan. Alles ist möglich.</p>
<p>Ändert sich die Mac Adresse erneut, zum Beispiel beim erneuten generieren der UUID unter VMware, muss natürlich in <strong>/etc/udev/rules.d/10-local.rules</strong> die neue Mac Adresse nachgetragen werden.</p>
<p>Wie man den Namen unter Ubuntu ändert findet man <a href="http://www.ubuntu-forum.de/artikel/15909/GELOeST-bezeichnung-der-Netzwerkkarte-aendern.html">HIER</a></p>

	Tags: <a href="http://fritzthomas.com/tags/bash/" title="bash" rel="tag">bash</a>, <a href="http://fritzthomas.com/tags/gentoo/" title="gentoo" rel="tag">gentoo</a>, <a href="http://fritzthomas.com/tags/how-to/" title="how-to" rel="tag">how-to</a>, <a href="http://fritzthomas.com/tags/linux/" title="Linux" rel="tag">Linux</a>, <a href="http://fritzthomas.com/tags/vmware/" title="vmware" rel="tag">vmware</a><br />

	<h4>&Auml;hnliche Beitr&auml;ge:</h4>
	<ul class="st-related-posts">
	<li><a href="http://fritzthomas.com/gentoo-php-web-development-vmware-appliance/" title="Web Dev Appliance (January 13, 2008)">Web Dev Appliance</a> (16)</li>
	<li><a href="http://fritzthomas.com/open-source/linux/22-7zip-unter-gentoo-linux-verwenden/" title="7zip unter Gentoo Linux verwenden (January 11, 2008)">7zip unter Gentoo Linux verwenden</a> (1)</li>
	<li><a href="http://fritzthomas.com/php/24-zend-framework-web-developer-appliance/" title="Zend Framework Web Developer Appliance (January 15, 2008)">Zend Framework Web Developer Appliance</a> (1)</li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://fritzthomas.com/open-source/linux/12-aendern-oder-setzen-eines-statischen-netzwerk-device-namen-unter-gentoo-eth0-eth1ethn/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
