<?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>/home/claw</title>
	<atom:link href="http://claw.triple6.org/feed/" rel="self" type="application/rss+xml" />
	<link>http://claw.triple6.org</link>
	<description>Zwischen / und /claw</description>
	<lastBuildDate>Sun, 23 Feb 2014 01:01:05 +0000</lastBuildDate>
	<language>en-US</language>
		<sy:updatePeriod>hourly</sy:updatePeriod>
		<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.9.1</generator>
	<item>
		<title>Snippet: Converting all .flac to .mp3 into the same directory</title>
		<link>http://claw.triple6.org/linux/snippet-converting-flac-mp3-directory/?lang=en</link>
		<comments>http://claw.triple6.org/linux/snippet-converting-flac-mp3-directory/?lang=en#comments</comments>
		<pubDate>Sat, 04 May 2013 19:08:20 +0000</pubDate>
		<dc:creator><![CDATA[claw]]></dc:creator>
				<category><![CDATA[bash]]></category>
		<category><![CDATA[coding]]></category>
		<category><![CDATA[Deutsch]]></category>
		<category><![CDATA[English]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[sed]]></category>
		<category><![CDATA[shell]]></category>
		<category><![CDATA[ubuntu-planet]]></category>
		<category><![CDATA[convert]]></category>
		<category><![CDATA[flac]]></category>
		<category><![CDATA[flac to mp3]]></category>
		<category><![CDATA[konvertieren]]></category>
		<category><![CDATA[mp3]]></category>
		<category><![CDATA[mp3 convertieren]]></category>
		<category><![CDATA[mp3 to flac]]></category>
		<category><![CDATA[sox]]></category>

		<guid isPermaLink="false">http://claw.triple6.org/?p=1383</guid>
		<description><![CDATA[I needed all my flac as mp3 to play them on a device that does not support .flac. Heres how to convert them all: [crayon-53943c9300832297329846/] You may have to install sox and libsox-fmt-mp3: [crayon-53943c930083f110580945/] Link to this post!<div class='yarpp-related-rss'>

Related posts:<ol>
<li><a href="http://claw.triple6.org/linux/taskwarrior-mein-task-switch-zum-schnellen-wechseln-zwichen-mehreren-datenbanken/?lang=en" rel="bookmark" title="Taskwarrior: My task-switch for fast switching between multiple databases">Taskwarrior: My task-switch for fast switching between multiple databases </a></li>
<li><a href="http://claw.triple6.org/linux/conky-temperatur-von-wetter-com-auslesen/?lang=en" rel="bookmark" title="(Deutsch) Mit Conky Temperatur von Wetter.com auslesen">(Deutsch) Mit Conky Temperatur von Wetter.com auslesen </a></li>
<li><a href="http://claw.triple6.org/linux/ssh-verbindung-uber-einen-proxyserver/?lang=en" rel="bookmark" title="SSH : Connect using a proxy">SSH : Connect using a proxy </a></li>
</ol>
</div>
]]></description>
				<content:encoded><![CDATA[<p>I needed all my flac as mp3 to play them on a device that does not support .flac. Heres how to convert them all:<br />
<pre class="crayon-plain-tag">export IFS=&quot;                                                                                                                                          
&quot;
for file in `find /home/claw/Musik -name *.flac` ; do echo &quot;converting $file&quot; &amp;&amp; nice -19 sox $file `echo $file | sed 's/\.flac/\.mp3/g'`   ; done</pre>
<p>You may have to install sox and libsox-fmt-mp3:<br />
<pre class="crayon-plain-tag">apt-get install sox libsox-fmt-mp3</pre>
<div class="su-linkbox" id="post-1383-linkbox"><div class="su-linkbox-label">Link to this post!</div><div class="su-linkbox-field"><input type="text" value="&lt;a href=&quot;http://claw.triple6.org/linux/snippet-converting-flac-mp3-directory/?lang=en&quot;&gt;Snippet: Converting all .flac to .mp3 into the same directory&lt;/a&gt;" onclick="javascript:this.select()" readonly="readonly" style="width: 100%;" /></div></div><div class='yarpp-related-rss'>
<p>Related posts:</p><ol>
<li><a href="http://claw.triple6.org/linux/taskwarrior-mein-task-switch-zum-schnellen-wechseln-zwichen-mehreren-datenbanken/?lang=en" rel="bookmark" title="Taskwarrior: My task-switch for fast switching between multiple databases">Taskwarrior: My task-switch for fast switching between multiple databases </a></li>
<li><a href="http://claw.triple6.org/linux/conky-temperatur-von-wetter-com-auslesen/?lang=en" rel="bookmark" title="(Deutsch) Mit Conky Temperatur von Wetter.com auslesen">(Deutsch) Mit Conky Temperatur von Wetter.com auslesen </a></li>
<li><a href="http://claw.triple6.org/linux/ssh-verbindung-uber-einen-proxyserver/?lang=en" rel="bookmark" title="SSH : Connect using a proxy">SSH : Connect using a proxy </a></li>
</ol>
</div>
]]></content:encoded>
			<wfw:commentRss>http://claw.triple6.org/linux/snippet-converting-flac-mp3-directory/?lang=en/feed/&#038;lang=en</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>OpenVPN DNS-Resolution not working</title>
		<link>http://claw.triple6.org/linux/openvpn-kann-keine-hostnames-auflosen/?lang=en</link>
		<comments>http://claw.triple6.org/linux/openvpn-kann-keine-hostnames-auflosen/?lang=en#comments</comments>
		<pubDate>Wed, 03 Apr 2013 19:46:27 +0000</pubDate>
		<dc:creator><![CDATA[claw]]></dc:creator>
				<category><![CDATA[Deutsch]]></category>
		<category><![CDATA[English]]></category>
		<category><![CDATA[gui]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[shell]]></category>
		<category><![CDATA[ubuntu-planet]]></category>
		<category><![CDATA[Auflösung]]></category>
		<category><![CDATA[DHCP]]></category>
		<category><![CDATA[DNS]]></category>
		<category><![CDATA[DNS-Server]]></category>
		<category><![CDATA[hostname]]></category>
		<category><![CDATA[OpenVPN]]></category>
		<category><![CDATA[OpenWrt]]></category>
		<category><![CDATA[Resolution]]></category>
		<category><![CDATA[VPN]]></category>
		<category><![CDATA[VPN-Server]]></category>

		<guid isPermaLink="false">http://claw.triple6.org/?p=1274</guid>
		<description><![CDATA[I just noticed a problem with OpenVPN. My Client was not able to resolute Hostnames in the remote network. That was because the VPN-Server acts as DHCP for the Client and need an option to push the DNS-Server to the &#8230; <a href="http://claw.triple6.org/linux/openvpn-kann-keine-hostnames-auflosen/?lang=en">Continue reading <span class="meta-nav">&#8594;</span></a><div class='yarpp-related-rss'>

Related posts:<ol>
<li><a href="http://claw.triple6.org/allgemein/openwrt-und-wds/?lang=en" rel="bookmark" title="(Deutsch) OpenWrt und WDS">(Deutsch) OpenWrt und WDS </a></li>
<li><a href="http://claw.triple6.org/linux/scan-und-printserver-einrichten-raspberry-pi/?lang=en" rel="bookmark" title="(Deutsch) Scan- und Printserver einrichten (Raspberry Pi)">(Deutsch) Scan- und Printserver einrichten (Raspberry Pi) </a></li>
<li><a href="http://claw.triple6.org/linux/sabnzbd-als-daemon-beim-boot-starten-lassen-autostart/?lang=en" rel="bookmark" title="sabnzbd: Start as daemon while booting (auto start)">sabnzbd: Start as daemon while booting (auto start) </a></li>
</ol>
</div>
]]></description>
				<content:encoded><![CDATA[<p><a href="http://claw.triple6.org/wp-content/uploads/2013/04/openvpn.png" rel="lightbox"><img class="alignright" alt="openvpn 150x150 OpenVPN DNS Resolution not working" src="http://claw.triple6.org/wp-content/uploads/2013/04/openvpn-150x150.png" width="150" height="150" title="OpenVPN DNS Resolution not working" /></a>I just noticed a problem with OpenVPN. My Client was not able to resolute Hostnames in the remote network. That was because the VPN-Server acts as DHCP for the Client and need an option to push the DNS-Server to the Clients.</p>
<p><span id="more-1274"></span>You can either configure the DNS for each Client or let the Server push the configuration to its Clients. To do this add the following lines to the configuration of the VPN-Server:</p><pre class="crayon-plain-tag">push 'dhcp-option DOMAIN lan'
push 'dhcp-option DNS 192.168.1.1</pre><p>
Where <strong>192.168.1.1</strong> is the IP of the DNS-Servers and <strong>&#8220;lan&#8221;</strong> is the Domain.</p>
<p style="text-align: justify;"><strong>Important!:</strong><br />
OpenWRT got a different Syntax for the config. For OpenWRT the lines in <em>/etc/config/openvpn</em> are:</p>
<pre class="crayon-plain-tag">list 'push' 'dhcp-option DOMAIN lan'
list 'push' 'dhcp-option DNS 192.168.1.1'</pre>
<div class="su-linkbox" id="post-1274-linkbox"><div class="su-linkbox-label">Link to this post!</div><div class="su-linkbox-field"><input type="text" value="&lt;a href=&quot;http://claw.triple6.org/linux/openvpn-kann-keine-hostnames-auflosen/?lang=en&quot;&gt;OpenVPN DNS-Resolution not working&lt;/a&gt;" onclick="javascript:this.select()" readonly="readonly" style="width: 100%;" /></div></div><div class='yarpp-related-rss'>
<p>Related posts:</p><ol>
<li><a href="http://claw.triple6.org/allgemein/openwrt-und-wds/?lang=en" rel="bookmark" title="(Deutsch) OpenWrt und WDS">(Deutsch) OpenWrt und WDS </a></li>
<li><a href="http://claw.triple6.org/linux/scan-und-printserver-einrichten-raspberry-pi/?lang=en" rel="bookmark" title="(Deutsch) Scan- und Printserver einrichten (Raspberry Pi)">(Deutsch) Scan- und Printserver einrichten (Raspberry Pi) </a></li>
<li><a href="http://claw.triple6.org/linux/sabnzbd-als-daemon-beim-boot-starten-lassen-autostart/?lang=en" rel="bookmark" title="sabnzbd: Start as daemon while booting (auto start)">sabnzbd: Start as daemon while booting (auto start) </a></li>
</ol>
</div>
]]></content:encoded>
			<wfw:commentRss>http://claw.triple6.org/linux/openvpn-kann-keine-hostnames-auflosen/?lang=en/feed/&#038;lang=en</wfw:commentRss>
		<slash:comments></slash:comments>
		</item>
		<item>
		<title>(Deutsch) Scan- und Printserver einrichten (Raspberry Pi)</title>
		<link>http://claw.triple6.org/linux/scan-und-printserver-einrichten-raspberry-pi/?lang=en</link>
		<comments>http://claw.triple6.org/linux/scan-und-printserver-einrichten-raspberry-pi/?lang=en#comments</comments>
		<pubDate>Sun, 13 Jan 2013 22:50:21 +0000</pubDate>
		<dc:creator><![CDATA[claw]]></dc:creator>
				<category><![CDATA[Deutsch]]></category>
		<category><![CDATA[gui]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[shell]]></category>
		<category><![CDATA[ubuntu-planet]]></category>
		<category><![CDATA[windows]]></category>
		<category><![CDATA[CUPS]]></category>
		<category><![CDATA[Default authentication type]]></category>
		<category><![CDATA[Drucker]]></category>
		<category><![CDATA[OpenWrt]]></category>
		<category><![CDATA[pi]]></category>
		<category><![CDATA[Print]]></category>
		<category><![CDATA[Printserver]]></category>
		<category><![CDATA[raspberry]]></category>
		<category><![CDATA[Raspberry Pi]]></category>
		<category><![CDATA[Sane]]></category>
		<category><![CDATA[Saned]]></category>
		<category><![CDATA[Scanner]]></category>
		<category><![CDATA[Scannerserver]]></category>
		<category><![CDATA[Scanserver]]></category>
		<category><![CDATA[Server]]></category>
		<category><![CDATA[Wifi]]></category>
		<category><![CDATA[Wireless]]></category>
		<category><![CDATA[WLAN]]></category>

		<guid isPermaLink="false">http://claw.triple6.org/?p=1242</guid>
		<description><![CDATA[Sorry, this entry is only available in Deutsch. Link to this post!<div class='yarpp-related-rss'>

Related posts:<ol>
<li><a href="http://claw.triple6.org/allgemein/openwrt-und-wds/?lang=en" rel="bookmark" title="(Deutsch) OpenWrt und WDS">(Deutsch) OpenWrt und WDS </a></li>
<li><a href="http://claw.triple6.org/linux/taskwarrior-und-andere-dateien-hilfe-von-dropbox-synchronisieren/?lang=en" rel="bookmark" title="Synchronize Taskwarrior and other files using Dropbox">Synchronize Taskwarrior and other files using Dropbox </a></li>
<li><a href="http://claw.triple6.org/linux/intelligenter-standby-fur-server-und-nas-systeme/?lang=en" rel="bookmark" title="Intelligent standby for Server- and NAS-Systems">Intelligent standby for Server- and NAS-Systems </a></li>
</ol>
</div>
]]></description>
				<content:encoded><![CDATA[<p>Sorry, this entry is only available in <a href="http://claw.triple6.org/feed/?lang=de">Deutsch</a>.</p>
<div class="su-linkbox" id="post-1242-linkbox"><div class="su-linkbox-label">Link to this post!</div><div class="su-linkbox-field"><input type="text" value="&lt;a href=&quot;http://claw.triple6.org/linux/scan-und-printserver-einrichten-raspberry-pi/?lang=en&quot;&gt;(Deutsch) Scan- und Printserver einrichten (Raspberry Pi)&lt;/a&gt;" onclick="javascript:this.select()" readonly="readonly" style="width: 100%;" /></div></div><div class='yarpp-related-rss'>
<p>Related posts:</p><ol>
<li><a href="http://claw.triple6.org/allgemein/openwrt-und-wds/?lang=en" rel="bookmark" title="(Deutsch) OpenWrt und WDS">(Deutsch) OpenWrt und WDS </a></li>
<li><a href="http://claw.triple6.org/linux/taskwarrior-und-andere-dateien-hilfe-von-dropbox-synchronisieren/?lang=en" rel="bookmark" title="Synchronize Taskwarrior and other files using Dropbox">Synchronize Taskwarrior and other files using Dropbox </a></li>
<li><a href="http://claw.triple6.org/linux/intelligenter-standby-fur-server-und-nas-systeme/?lang=en" rel="bookmark" title="Intelligent standby for Server- and NAS-Systems">Intelligent standby for Server- and NAS-Systems </a></li>
</ol>
</div>
]]></content:encoded>
			<wfw:commentRss>http://claw.triple6.org/linux/scan-und-printserver-einrichten-raspberry-pi/?lang=en/feed/&#038;lang=en</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>(Deutsch) OpenWrt und WDS</title>
		<link>http://claw.triple6.org/allgemein/openwrt-und-wds/?lang=en</link>
		<comments>http://claw.triple6.org/allgemein/openwrt-und-wds/?lang=en#comments</comments>
		<pubDate>Thu, 10 Jan 2013 21:46:17 +0000</pubDate>
		<dc:creator><![CDATA[claw]]></dc:creator>
				<category><![CDATA[allgemein]]></category>
		<category><![CDATA[Deutsch]]></category>
		<category><![CDATA[gui]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[ubuntu-planet]]></category>
		<category><![CDATA[Access Point]]></category>
		<category><![CDATA[AP]]></category>
		<category><![CDATA[AR]]></category>
		<category><![CDATA[Atheros]]></category>
		<category><![CDATA[BCM]]></category>
		<category><![CDATA[Broadcom]]></category>
		<category><![CDATA[OpenWrt]]></category>
		<category><![CDATA[Repeater]]></category>
		<category><![CDATA[Station]]></category>
		<category><![CDATA[WDS]]></category>
		<category><![CDATA[WLAN]]></category>

		<guid isPermaLink="false">http://claw.triple6.org/?p=1230</guid>
		<description><![CDATA[Sorry, this entry is only available in Deutsch. Link to this post!<div class='yarpp-related-rss'>

Related posts:<ol>
<li><a href="http://claw.triple6.org/allgemein/preload-der-turbo-fur-linux/?lang=en" rel="bookmark" title="Preload &#8211; Speed up your Linux">Preload &#8211; Speed up your Linux </a></li>
</ol>
</div>
]]></description>
				<content:encoded><![CDATA[<p>Sorry, this entry is only available in <a href="http://claw.triple6.org/feed/?lang=de">Deutsch</a>.</p>
<div class="su-linkbox" id="post-1230-linkbox"><div class="su-linkbox-label">Link to this post!</div><div class="su-linkbox-field"><input type="text" value="&lt;a href=&quot;http://claw.triple6.org/allgemein/openwrt-und-wds/?lang=en&quot;&gt;(Deutsch) OpenWrt und WDS&lt;/a&gt;" onclick="javascript:this.select()" readonly="readonly" style="width: 100%;" /></div></div><div class='yarpp-related-rss'>
<p>Related posts:</p><ol>
<li><a href="http://claw.triple6.org/allgemein/preload-der-turbo-fur-linux/?lang=en" rel="bookmark" title="Preload &#8211; Speed up your Linux">Preload &#8211; Speed up your Linux </a></li>
</ol>
</div>
]]></content:encoded>
			<wfw:commentRss>http://claw.triple6.org/allgemein/openwrt-und-wds/?lang=en/feed/&#038;lang=en</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>File Encryption using LUKS</title>
		<link>http://claw.triple6.org/linux/dateiverschlusselung-luks/?lang=en</link>
		<comments>http://claw.triple6.org/linux/dateiverschlusselung-luks/?lang=en#comments</comments>
		<pubDate>Sat, 17 Nov 2012 18:50:46 +0000</pubDate>
		<dc:creator><![CDATA[claw]]></dc:creator>
				<category><![CDATA[Deutsch]]></category>
		<category><![CDATA[gui]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[shell]]></category>
		<category><![CDATA[ubuntu-planet]]></category>
		<category><![CDATA[Container]]></category>
		<category><![CDATA[crypt]]></category>
		<category><![CDATA[crypto]]></category>
		<category><![CDATA[cryptsetup]]></category>
		<category><![CDATA[Dateisystem]]></category>
		<category><![CDATA[Dateiverschlüsselung]]></category>
		<category><![CDATA[dev]]></category>
		<category><![CDATA[Device]]></category>
		<category><![CDATA[dm-crypt]]></category>
		<category><![CDATA[dolphin]]></category>
		<category><![CDATA[Dropbox]]></category>
		<category><![CDATA[encryption]]></category>
		<category><![CDATA[Entwurf]]></category>
		<category><![CDATA[Erweiterung]]></category>
		<category><![CDATA[filemanager]]></category>
		<category><![CDATA[Kontainer]]></category>
		<category><![CDATA[Kryptographie]]></category>
		<category><![CDATA[Linux Unified Key Setup]]></category>
		<category><![CDATA[losetup]]></category>
		<category><![CDATA[LUKS]]></category>
		<category><![CDATA[nautilus]]></category>
		<category><![CDATA[nbsp]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[sicherheit]]></category>
		<category><![CDATA[start]]></category>
		<category><![CDATA[verschlüsseln]]></category>
		<category><![CDATA[Verschlüsselung]]></category>

		<guid isPermaLink="false">http://claw.triple6.org/?p=1176</guid>
		<description><![CDATA[LUKS (Linux Unified Key Setup) is a part of dm-crypt which provides encryption for block devices by the Linux Kernel. It is possible to encrypt a whole hard drive or a container which can be stored in a native file &#8230; <a href="http://claw.triple6.org/linux/dateiverschlusselung-luks/?lang=en">Continue reading <span class="meta-nav">&#8594;</span></a><div class='yarpp-related-rss'>

Related posts:<ol>
<li><a href="http://claw.triple6.org/linux/use-100-aber-eigentlich-noch-platz/?lang=en" rel="bookmark" title="&#8216;Use 100%&#8217; &#8211; But there is space left!">&#8216;Use 100%&#8217; &#8211; But there is space left! </a></li>
<li><a href="http://claw.triple6.org/linux/badblocksfestplatten-auf-defekte-sektoren-prufen/?lang=en" rel="bookmark" title="badblocks: Check your hard drive for bad sectors">badblocks: Check your hard drive for bad sectors </a></li>
<li><a href="http://claw.triple6.org/allgemein/preload-der-turbo-fur-linux/?lang=en" rel="bookmark" title="Preload &#8211; Speed up your Linux">Preload &#8211; Speed up your Linux </a></li>
</ol>
</div>
]]></description>
				<content:encoded><![CDATA[<p><a href="http://claw.triple6.org/wp-content/uploads/2012/11/luks-logo.png" rel="lightbox"><img class="alignright" title="luks-logo" alt="luks logo File Encryption using LUKS" src="http://claw.triple6.org/wp-content/uploads/2012/11/luks-logo.png" width="150" height="50" /></a>LUKS (<em>Linux Unified Key Setup</em>) is a part of dm-crypt which provides encryption for block devices by the Linux Kernel. It is possible to encrypt a whole hard drive or a container which can be stored in a native file system containing unencrypted files.</p>
<p>You will learn how to create such an encrypted container here. Some common scenarios could be to store the container on an cloud service such as (<a href="https://www.dropbox.com/">Dropbox</a>, <a href="https://drive.google.com/">Google Drive</a>, <a href="http://owncloud.org/">Own Cloud</a> and co.) or to store sensible data own your own devices or at your workplace.</p>
<p><span id="more-1176"></span></p>
<p>First of all you have to install <strong>cryptsetup</strong>.</p><pre class="crayon-plain-tag">apt-get install cryptsetup</pre><p>
<h1>1.Create an Container</h1>
<p>At first we need to create an Container in which we will store our data. Using dd we can create a file containing random data</p><pre class="crayon-plain-tag">dd if=/dev/urandom of=crypt bs=1G count=60</pre><p>
<em>&#8216;bs&#8217;</em> is the block-size and <em>&#8216;count&#8217;</em> the amount. That means: 1G*60=60G. The result would be an container of 60GB named <em>&#8216;crypt&#8217;</em>. It is possible to enlarge it later and it should be enough for demonstration purposes.</p>
<p>Next step is to mount the container to a not yet used loop device. To find one just use:</p><pre class="crayon-plain-tag">losetup -f</pre><p>
As Result we will get e.g. /dev/loop0. To mount <em>crypt </em>to any free device use:</p><pre class="crayon-plain-tag">losetup $(losetup -f) crypt</pre><p>
<h1>2. Encrypting the container</h1>
<h2>2.1 Using AES:</h2>
</p><pre class="crayon-plain-tag">cryptsetup -c aes-xts-plain -y -s 512 luksFormat /dev/loop0</pre><p>
or:</p>
<h2>2.2 Using Twofish:</h2>
<pre class="crayon-plain-tag">cryptsetup -c twofish-xts-plain -y -s 512 luksFormat /dev/loop0</pre>
Cryptographic is a well known discussion threat and therefore it does not matter which encryption algorithm you choose.</p>
<h1>3.Mounting the Container</h1>
<p>Next step we need to create a filesystem within the encrypted container in order to store file in it. To do so use the following command. The value is used here ( <em>crypt0 </em>) can be chosen as you want and the filesystem that is used is ext4:</p><pre class="crayon-plain-tag">cryptsetup luksOpen /dev/loop0 crypt0
mkfs.ext4 /dev/mapper/crypt0</pre><p>
If every thing is done we can unmount the container again:</p><pre class="crayon-plain-tag">umount /dev/mapper/crypto0</pre><p>
Filemanagers such as Dolphin or Nautilus are able to handle such LUKS encrypted devices and should display them in the overview.</p>
<p><a href="http://claw.triple6.org/wp-content/uploads/2012/11/crypt.png" rel="lightbox"><img class="alignleft size-large wp-image-1181" alt="crypt 1024x485 File Encryption using LUKS" src="http://claw.triple6.org/wp-content/uploads/2012/11/crypt-1024x485.png" width="584" height="276" title="File Encryption using LUKS" /></a></p>
<h1>3. Mounting the container after boot</h1>
<p><strong>This part could be an security risk because the encrypted filesystem is not hidden any more. That does not mean that it is unencrypted after boot but an attacker will notice that you have some files encrypted without having to search them. </strong></p>
<p>By adding following line to <strong>/etc/rc.local</strong>:</p><pre class="crayon-plain-tag">losetup $(losetup -f) &lt;em&gt;/path/to/the/container&lt;/em&gt;</pre><p>
The encrypted filesystem will be mounted after boot. That way you can encrypt it in your filemanager every time.</p>
<div class="su-linkbox" id="post-1176-linkbox"><div class="su-linkbox-label">Link to this post!</div><div class="su-linkbox-field"><input type="text" value="&lt;a href=&quot;http://claw.triple6.org/linux/dateiverschlusselung-luks/?lang=en&quot;&gt;File Encryption using LUKS&lt;/a&gt;" onclick="javascript:this.select()" readonly="readonly" style="width: 100%;" /></div></div><div class='yarpp-related-rss'>
<p>Related posts:</p><ol>
<li><a href="http://claw.triple6.org/linux/use-100-aber-eigentlich-noch-platz/?lang=en" rel="bookmark" title="&#8216;Use 100%&#8217; &#8211; But there is space left!">&#8216;Use 100%&#8217; &#8211; But there is space left! </a></li>
<li><a href="http://claw.triple6.org/linux/badblocksfestplatten-auf-defekte-sektoren-prufen/?lang=en" rel="bookmark" title="badblocks: Check your hard drive for bad sectors">badblocks: Check your hard drive for bad sectors </a></li>
<li><a href="http://claw.triple6.org/allgemein/preload-der-turbo-fur-linux/?lang=en" rel="bookmark" title="Preload &#8211; Speed up your Linux">Preload &#8211; Speed up your Linux </a></li>
</ol>
</div>
]]></content:encoded>
			<wfw:commentRss>http://claw.triple6.org/linux/dateiverschlusselung-luks/?lang=en/feed/&#038;lang=en</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>(Deutsch) Mit Conky Temperatur von Wetter.com auslesen</title>
		<link>http://claw.triple6.org/linux/conky-temperatur-von-wetter-com-auslesen/?lang=en</link>
		<comments>http://claw.triple6.org/linux/conky-temperatur-von-wetter-com-auslesen/?lang=en#comments</comments>
		<pubDate>Thu, 08 Nov 2012 06:17:31 +0000</pubDate>
		<dc:creator><![CDATA[claw]]></dc:creator>
				<category><![CDATA[bash]]></category>
		<category><![CDATA[coding]]></category>
		<category><![CDATA[Deutsch]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[shell]]></category>
		<category><![CDATA[ubuntu-planet]]></category>
		<category><![CDATA[Adresse]]></category>
		<category><![CDATA[auslesen]]></category>
		<category><![CDATA[com]]></category>
		<category><![CDATA[Conky]]></category>
		<category><![CDATA[Entwurf]]></category>
		<category><![CDATA[execi]]></category>
		<category><![CDATA[glichkeit]]></category>
		<category><![CDATA[grep]]></category>
		<category><![CDATA[Head]]></category>
		<category><![CDATA[Lynx]]></category>
		<category><![CDATA[n1]]></category>
		<category><![CDATA[parsen]]></category>
		<category><![CDATA[sed]]></category>
		<category><![CDATA[Stunde]]></category>
		<category><![CDATA[Temperatur]]></category>
		<category><![CDATA[Wetter]]></category>
		<category><![CDATA[Wetter.com]]></category>

		<guid isPermaLink="false">http://claw.triple6.org/?p=1165</guid>
		<description><![CDATA[Sorry, this entry is only available in Deutsch. Link to this post!<div class='yarpp-related-rss'>

Related posts:<ol>
<li><a href="http://claw.triple6.org/linux/ssh-verbindung-uber-einen-proxyserver/?lang=en" rel="bookmark" title="SSH : Connect using a proxy">SSH : Connect using a proxy </a></li>
<li><a href="http://claw.triple6.org/linux/intelligenter-standby-fur-server-und-nas-systeme/?lang=en" rel="bookmark" title="Intelligent standby for Server- and NAS-Systems">Intelligent standby for Server- and NAS-Systems </a></li>
<li><a href="http://claw.triple6.org/linux/taskwarrior-und-andere-dateien-hilfe-von-dropbox-synchronisieren/?lang=en" rel="bookmark" title="Synchronize Taskwarrior and other files using Dropbox">Synchronize Taskwarrior and other files using Dropbox </a></li>
</ol>
</div>
]]></description>
				<content:encoded><![CDATA[<p>Sorry, this entry is only available in <a href="http://claw.triple6.org/feed/?lang=de">Deutsch</a>.</p>
<div class="su-linkbox" id="post-1165-linkbox"><div class="su-linkbox-label">Link to this post!</div><div class="su-linkbox-field"><input type="text" value="&lt;a href=&quot;http://claw.triple6.org/linux/conky-temperatur-von-wetter-com-auslesen/?lang=en&quot;&gt;(Deutsch) Mit Conky Temperatur von Wetter.com auslesen&lt;/a&gt;" onclick="javascript:this.select()" readonly="readonly" style="width: 100%;" /></div></div><div class='yarpp-related-rss'>
<p>Related posts:</p><ol>
<li><a href="http://claw.triple6.org/linux/ssh-verbindung-uber-einen-proxyserver/?lang=en" rel="bookmark" title="SSH : Connect using a proxy">SSH : Connect using a proxy </a></li>
<li><a href="http://claw.triple6.org/linux/intelligenter-standby-fur-server-und-nas-systeme/?lang=en" rel="bookmark" title="Intelligent standby for Server- and NAS-Systems">Intelligent standby for Server- and NAS-Systems </a></li>
<li><a href="http://claw.triple6.org/linux/taskwarrior-und-andere-dateien-hilfe-von-dropbox-synchronisieren/?lang=en" rel="bookmark" title="Synchronize Taskwarrior and other files using Dropbox">Synchronize Taskwarrior and other files using Dropbox </a></li>
</ol>
</div>
]]></content:encoded>
			<wfw:commentRss>http://claw.triple6.org/linux/conky-temperatur-von-wetter-com-auslesen/?lang=en/feed/&#038;lang=en</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>(Deutsch) 1A Connect Paket für Opsi</title>
		<link>http://claw.triple6.org/allgemein/1a-paket-fur-opsi/?lang=en</link>
		<comments>http://claw.triple6.org/allgemein/1a-paket-fur-opsi/?lang=en#comments</comments>
		<pubDate>Mon, 01 Oct 2012 12:32:20 +0000</pubDate>
		<dc:creator><![CDATA[claw]]></dc:creator>
				<category><![CDATA[allgemein]]></category>
		<category><![CDATA[Deutsch]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[OPSI]]></category>
		<category><![CDATA[shell]]></category>
		<category><![CDATA[ubuntu-planet]]></category>
		<category><![CDATA[windows]]></category>
		<category><![CDATA[1A]]></category>
		<category><![CDATA[1A Archiv]]></category>
		<category><![CDATA[1A Connect]]></category>
		<category><![CDATA[control]]></category>
		<category><![CDATA[Entwurf]]></category>
		<category><![CDATA[exitcode]]></category>
		<category><![CDATA[file]]></category>
		<category><![CDATA[für]]></category>
		<category><![CDATA[Message]]></category>
		<category><![CDATA[Opsi]]></category>
		<category><![CDATA[Paket]]></category>
		<category><![CDATA[preinst]]></category>
		<category><![CDATA[ProductName]]></category>
		<category><![CDATA[schalter]]></category>
		<category><![CDATA[scriptpath]]></category>
		<category><![CDATA[setup program]]></category>
		<category><![CDATA[silent]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[Software Deployment]]></category>
		<category><![CDATA[Uninst]]></category>

		<guid isPermaLink="false">http://claw.triple6.org/?p=1141</guid>
		<description><![CDATA[Sorry, this entry is only available in Deutsch. Link to this post!<div class='yarpp-related-rss'>

Related posts:<ol>
<li><a href="http://claw.triple6.org/linux/ssh-verbindung-uber-einen-proxyserver/?lang=en" rel="bookmark" title="SSH : Connect using a proxy">SSH : Connect using a proxy </a></li>
<li><a href="http://claw.triple6.org/allgemein/tt-rss-und-die-lesbarkeit/?lang=en" rel="bookmark" title="tt-rss: Improve readability">tt-rss: Improve readability </a></li>
<li><a href="http://claw.triple6.org/linux/vim-mehrere-zeilen-kommentieren-auskommentieren/?lang=en" rel="bookmark" title="Vim: Comment / Uncomment , Comment out multiple lines">Vim: Comment / Uncomment , Comment out multiple lines </a></li>
</ol>
</div>
]]></description>
				<content:encoded><![CDATA[<p>Sorry, this entry is only available in <a href="http://claw.triple6.org/feed/?lang=de">Deutsch</a>.</p>
<div class="su-linkbox" id="post-1141-linkbox"><div class="su-linkbox-label">Link to this post!</div><div class="su-linkbox-field"><input type="text" value="&lt;a href=&quot;http://claw.triple6.org/allgemein/1a-paket-fur-opsi/?lang=en&quot;&gt;(Deutsch) 1A Connect Paket für Opsi&lt;/a&gt;" onclick="javascript:this.select()" readonly="readonly" style="width: 100%;" /></div></div><div class='yarpp-related-rss'>
<p>Related posts:</p><ol>
<li><a href="http://claw.triple6.org/linux/ssh-verbindung-uber-einen-proxyserver/?lang=en" rel="bookmark" title="SSH : Connect using a proxy">SSH : Connect using a proxy </a></li>
<li><a href="http://claw.triple6.org/allgemein/tt-rss-und-die-lesbarkeit/?lang=en" rel="bookmark" title="tt-rss: Improve readability">tt-rss: Improve readability </a></li>
<li><a href="http://claw.triple6.org/linux/vim-mehrere-zeilen-kommentieren-auskommentieren/?lang=en" rel="bookmark" title="Vim: Comment / Uncomment , Comment out multiple lines">Vim: Comment / Uncomment , Comment out multiple lines </a></li>
</ol>
</div>
]]></content:encoded>
			<wfw:commentRss>http://claw.triple6.org/allgemein/1a-paket-fur-opsi/?lang=en/feed/&#038;lang=en</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Intelligent standby for Server- and NAS-Systems</title>
		<link>http://claw.triple6.org/linux/intelligenter-standby-fur-server-und-nas-systeme/?lang=en</link>
		<comments>http://claw.triple6.org/linux/intelligenter-standby-fur-server-und-nas-systeme/?lang=en#comments</comments>
		<pubDate>Tue, 11 Sep 2012 15:32:55 +0000</pubDate>
		<dc:creator><![CDATA[claw]]></dc:creator>
				<category><![CDATA[Deutsch]]></category>
		<category><![CDATA[English]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[shell]]></category>
		<category><![CDATA[ubuntu-planet]]></category>
		<category><![CDATA[Aktion]]></category>
		<category><![CDATA[automatisch]]></category>
		<category><![CDATA[before]]></category>
		<category><![CDATA[Checks]]></category>
		<category><![CDATA[Connected]]></category>
		<category><![CDATA[consumption]]></category>
		<category><![CDATA[done]]></category>
		<category><![CDATA[Entwurf]]></category>
		<category><![CDATA[etherwake]]></category>
		<category><![CDATA[ethtool]]></category>
		<category><![CDATA[grep]]></category>
		<category><![CDATA[hibernate]]></category>
		<category><![CDATA[Intelligent]]></category>
		<category><![CDATA[Laufzeiten]]></category>
		<category><![CDATA[Methoden]]></category>
		<category><![CDATA[NAS]]></category>
		<category><![CDATA[NAS-Systeme Ich]]></category>
		<category><![CDATA[network attached storage]]></category>
		<category><![CDATA[power]]></category>
		<category><![CDATA[root]]></category>
		<category><![CDATA[sbin]]></category>
		<category><![CDATA[script]]></category>
		<category><![CDATA[Sep]]></category>
		<category><![CDATA[Server]]></category>
		<category><![CDATA[Service]]></category>
		<category><![CDATA[smbstatus]]></category>
		<category><![CDATA[Standby]]></category>
		<category><![CDATA[Strom]]></category>
		<category><![CDATA[suspend]]></category>
		<category><![CDATA[wake]]></category>
		<category><![CDATA[wake-on-lan]]></category>
		<category><![CDATA[wakeonlan]]></category>
		<category><![CDATA[zeit]]></category>

		<guid isPermaLink="false">http://claw.triple6.org/?p=1122</guid>
		<description><![CDATA[I have developed a concept which reduces the power consumption and uptime of my network attached storage. The system is therefore intelligent because it is recognizing that its needed or not on its own and sets to standby.There are many &#8230; <a href="http://claw.triple6.org/linux/intelligenter-standby-fur-server-und-nas-systeme/?lang=en">Continue reading <span class="meta-nav">&#8594;</span></a><div class='yarpp-related-rss'>

Related posts:<ol>
<li><a href="http://claw.triple6.org/linux/ubuntu-server-lts-10-04-lucid-lynx-von-usb-stick-installieren/?lang=en" rel="bookmark" title="(Deutsch) Ubuntu Server LTS 10.04 (Lucid Lynx) von USB-Stick installieren">(Deutsch) Ubuntu Server LTS 10.04 (Lucid Lynx) von USB-Stick installieren </a></li>
<li><a href="http://claw.triple6.org/linux/prelink-der-turbo-fur-linux-2/?lang=en" rel="bookmark" title="Prelink &#8211; Speed up your Linux even more">Prelink &#8211; Speed up your Linux even more </a></li>
<li><a href="http://claw.triple6.org/allgemein/clonezilla-modifizieren/?lang=en" rel="bookmark" title="Modify Clonezilla">Modify Clonezilla </a></li>
</ol>
</div>
]]></description>
				<content:encoded><![CDATA[<p style="text-align: justify;"><a href="http://claw.triple6.org/wp-content/uploads/2012/09/177px-IEC5009_Standby_Symbol.svg_.png" rel="lightbox"><img class="alignright" title="177px-IEC5009_Standby_Symbol.svg" alt="177px IEC5009 Standby Symbol.svg  Intelligent standby for Server  and NAS Systems" src="http://claw.triple6.org/wp-content/uploads/2012/09/177px-IEC5009_Standby_Symbol.svg_.png" width="124" height="141" /></a></p>
<p style="text-align: justify;">I have developed a concept which reduces the power consumption and uptime of my network attached storage.</p>
<p style="text-align: justify;">The system is therefore intelligent because it is recognizing that its needed or not on its own and sets to standby.There are many methods out there how to do that but none of them worked for me quiet well because the system turned off when i was coping files what was not really meant to be. For doing it my way i am using simple bash scripts which i would like to share with you and explain.<span id="more-1122"></span></p>
<h1 style="text-align: justify;">Configuring the Server/NAS:</h1>
<p style="text-align: justify;">Many services are providing commands to monitor their activities. E.g samba provides &#8216;smbstatus&#8217; which prints active connections.</p>
<pre class="crayon-plain-tag">root@claw-storage:~# smbstatus -S

Service      pid     machine       Connected at
-------------------------------------------------------</pre>
<p style="text-align: justify;">In that case there are no active connection. If there where any they would be listed like that:</p>
<pre class="crayon-plain-tag">root@claw-storage:~# smbstatus -S

Service      pid     machine       Connected at
-------------------------------------------------------
raid1        17006   claw-t430     Tue Sep 11 13:50:29 2012
raid1        17005   claw-t430     Tue Sep 11 13:50:29 2012</pre>
<p style="text-align: justify;">So if there are no active connections smbstatus prints 4 lines. If there are more there must be more lines.<br />
We can use that condition in an if-statement:</p>
<pre class="crayon-plain-tag">if [[ $( smbstatus -S | wc -l ) -lt 5 ]] 
then 
pm-suspend
fi</pre>
<p style="text-align: justify;">&#8220;If nobody is using samba right now run pm-suspend&#8221;</p>
<p style="text-align: justify;">Lets do that endlessly using a while-loop:</p>
<pre class="crayon-plain-tag">while(true) 
do
if [[ $( smbstatus -S | wc -l ) -lt 5 ]] 
then 
pm-suspend
fi
done</pre>
<p style="text-align: justify;">Thats a solution. But not a good one because if nobody is logged in the server will be shut down immediately. We&#8217;ll need something like tolerance limit. We are going to specify a variable that looses value every time. If the value reaches 0 it is time to trigger the standby:</p>
<pre class="crayon-plain-tag">sleep 15m # Wait 15Minutes before starting the check                            
checks=15 # Number of Checks before taking action   
live=$checks

while(true)
do
sleep 1m
if [[ $( smbstatus -S | wc -l ) -lt 5 ]] 
then 
live=$(($live-1))
fi
if [[ $live -eq 0 ]]
then
live=$checks
pm-suspend
done</pre>
<p style="text-align: justify;">At the start of that script we are going to wait for 15 minutes because there is ofcourse a good reason why the system has been turned on. The number for checks till standby is set 15. Every check that ends positive ( nobody is logged in ) reduces the variable $live by 1. If $live=0 its raised to $checks ( meaning 15 ) again and the pm-suspend is gone to be executed.</p>
<p style="text-align: justify;">Thats the principle. I divided it to a function and added checks for SSH, RSYNC and rdiff. The whole is this:</p>
<pre class="crayon-plain-tag">#!/bin/bash

sleep 15m # Wait 15Minutes before starting the check
checks=15 # Number of Checks before taking action

live=$checks

loggedin() #This function checks if ssh,rsync,samba or rdiff is running
           #if nothing of that is running system is going to suspend
{
    if [[ $( smbstatus -S | wc -l ) -lt 5 &amp;amp;&amp;amp; $( w | grep pts | wc -l ) -lt 1 &amp;amp;&amp;amp; $( ps aux | grep rsync | wc -l ) -lt 2 &amp;amp;&amp;amp; $( ps aux | grep rdiff | wc -l ) -lt 3 ]] 
    then
        live=$(($live-1))
    else
        live=$checks
    fi

    if [[ $live -lt 1 ]]
    then
        live=$checks
        /usr/sbin/pm-suspend # IF no one is connected pm-suspend
    fi
}

# Durchlauf 
while(true)   # Endless while loop
do            #
    loggedin  # function
    sleep 1m  # time between checks
done</pre>
<p style="text-align: justify;">Copy the script to /usr/local/sbin/checkalive and make it executable:</p>
<pre class="crayon-plain-tag">chmod +x /usr/local/sbin/checkalive</pre>
<p style="text-align: justify;">and start it after boot  by running it from rc.local:</p>
<p style="text-align: justify;">/etc/rc.local:</p>
<pre class="crayon-plain-tag">#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will &quot;exit 0&quot; on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.

bash /usr/local/sbin/checkalive
exit 0</pre>
<p style="text-align: justify;">Now we need a way to start the system remotely. Lets check if wake on lan is supported by the ethernet controller:</p>
<pre class="crayon-plain-tag">root@claw-storage:~# ethtool eth0 | grep -i wake Supports Wake-on: umbg Wake-on: g</pre>
<p style="text-align: justify;">If there is a line &#8220;Wake-on: g&#8221; the system can be waked by a magic packet. If not you have to add the following line to /etc/rc.local:</p>
<pre class="crayon-plain-tag">ethtool -s eth0 wol g</pre>
<h1 style="text-align: justify;">Waking the Server/NAS</h1>
<p style="text-align: justify;">In order to send such a magic packet to the server or the network attached storage we need the MAC of the ethernet controller to which we want to send it:</p>
<pre class="crayon-plain-tag">root@claw-storage:~# ifconfig 
eth0      Link encap:Ethernet  Hardware Adresse 00:1b:21:59:90:4f  
          inet Adresse:192.168.1.137  Bcast:192.168.1.255  Maske:255.255.255.0
          inet6-Adresse: fe80::21b:21ff:fe59:904f/64 G&uuml;ltigkeitsbereich:Verbindung</pre>
<p style="text-align: justify;">The MAC of eth0 is 00:1b:21:59:90:4f</p>
<p style="text-align: justify;">Now we can send the packet to the broadcast address of the subnet</p>
<pre class="crayon-plain-tag">root@claw-t430:~#wakeonlan -i 192.168.0.255 00:1b:21:59:90:4f</pre>
<p style="text-align: justify;">And viola the system wakes up!</p>
<p style="text-align: justify;">You can add to whole to a script e.g /usr/local/bin/wake:</p>
<pre class="crayon-plain-tag">#!/bin/bash
wakeonlan -i 192.168.0.255 00:1b:21:59:90:4f
exit 0</pre>
<p style="text-align: justify;">and make it executeable:</p>
<pre class="crayon-plain-tag">chmod +x /usr/local/bin/wake</pre>
<p style="text-align: justify;">Now it should be enough to run</p>
<pre class="crayon-plain-tag">wake</pre>
<p style="text-align: justify;">for waking the system up.</p>
<div class="su-linkbox" id="post-1122-linkbox"><div class="su-linkbox-label">Link to this post!</div><div class="su-linkbox-field"><input type="text" value="&lt;a href=&quot;http://claw.triple6.org/linux/intelligenter-standby-fur-server-und-nas-systeme/?lang=en&quot;&gt;Intelligent standby for Server- and NAS-Systems&lt;/a&gt;" onclick="javascript:this.select()" readonly="readonly" style="width: 100%;" /></div></div><div class='yarpp-related-rss'>
<p>Related posts:</p><ol>
<li><a href="http://claw.triple6.org/linux/ubuntu-server-lts-10-04-lucid-lynx-von-usb-stick-installieren/?lang=en" rel="bookmark" title="(Deutsch) Ubuntu Server LTS 10.04 (Lucid Lynx) von USB-Stick installieren">(Deutsch) Ubuntu Server LTS 10.04 (Lucid Lynx) von USB-Stick installieren </a></li>
<li><a href="http://claw.triple6.org/linux/prelink-der-turbo-fur-linux-2/?lang=en" rel="bookmark" title="Prelink &#8211; Speed up your Linux even more">Prelink &#8211; Speed up your Linux even more </a></li>
<li><a href="http://claw.triple6.org/allgemein/clonezilla-modifizieren/?lang=en" rel="bookmark" title="Modify Clonezilla">Modify Clonezilla </a></li>
</ol>
</div>
]]></content:encoded>
			<wfw:commentRss>http://claw.triple6.org/linux/intelligenter-standby-fur-server-und-nas-systeme/?lang=en/feed/&#038;lang=en</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>&#8216;Use 100%&#8217; &#8211; But there is space left!</title>
		<link>http://claw.triple6.org/linux/use-100-aber-eigentlich-noch-platz/?lang=en</link>
		<comments>http://claw.triple6.org/linux/use-100-aber-eigentlich-noch-platz/?lang=en#comments</comments>
		<pubDate>Mon, 16 Jul 2012 05:50:04 +0000</pubDate>
		<dc:creator><![CDATA[claw]]></dc:creator>
				<category><![CDATA[Deutsch]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[shell]]></category>
		<category><![CDATA[ubuntu-planet]]></category>
		<category><![CDATA[100%]]></category>
		<category><![CDATA[Bl]]></category>
		<category><![CDATA[cke]]></category>
		<category><![CDATA[Dateisystem]]></category>
		<category><![CDATA[dev]]></category>
		<category><![CDATA[Device]]></category>
		<category><![CDATA[ext]]></category>
		<category><![CDATA[filesystem]]></category>
		<category><![CDATA[full]]></category>
		<category><![CDATA[left]]></category>
		<category><![CDATA[lt]]></category>
		<category><![CDATA[md]]></category>
		<category><![CDATA[mnt]]></category>
		<category><![CDATA[no space]]></category>
		<category><![CDATA[no space left]]></category>
		<category><![CDATA[raid]]></category>
		<category><![CDATA[Reserve]]></category>
		<category><![CDATA[voll]]></category>

		<guid isPermaLink="false">http://claw.triple6.org/?p=1083</guid>
		<description><![CDATA[It just happened that a md device appeared as out of storage space. df displayed the following: [crayon-53943c9303ef2371815413/] Calculative there is something wrong because there are still 0,4T left. This is because ext reserves 5% of space per default because &#8230; <a href="http://claw.triple6.org/linux/use-100-aber-eigentlich-noch-platz/?lang=en">Continue reading <span class="meta-nav">&#8594;</span></a><div class='yarpp-related-rss'>

Related posts:<ol>
<li><a href="http://claw.triple6.org/linux/md-datenkonsistenz-eines-raids-prufen/?lang=en" rel="bookmark" title="md: Check consistency of Raids">md: Check consistency of Raids </a></li>
<li><a href="http://claw.triple6.org/linux/taskwarrior-und-andere-dateien-hilfe-von-dropbox-synchronisieren/?lang=en" rel="bookmark" title="Synchronize Taskwarrior and other files using Dropbox">Synchronize Taskwarrior and other files using Dropbox </a></li>
<li><a href="http://claw.triple6.org/linux/prelink-der-turbo-fur-linux-2/?lang=en" rel="bookmark" title="Prelink &#8211; Speed up your Linux even more">Prelink &#8211; Speed up your Linux even more </a></li>
</ol>
</div>
]]></description>
				<content:encoded><![CDATA[<p><img class="alignright" title="lrg_tango_drive_hard_disk" alt="lrg tango drive hard disk Use 100%   But there is space left!" src="http://claw.triple6.org/wp-content/uploads/2012/03/lrg_tango_drive_hard_disk.png" width="150" height="150" />It just happened that a md device appeared as out of storage space.</p>
<p>df displayed the following:</p><pre class="crayon-plain-tag"># df -H
Dateisystem   Size   Used  Avail Use% Eingeh&auml;ngt auf
/dev/md0      6,0T   5,6T    13G 100% /mnt/raid1</pre><p>
Calculative there is something wrong because there are still 0,4T left. This is because ext reserves 5% of space per default because you would not be able to login in if there not enough space on the filesystem and you wont be able to enter the rescuing rm command. For my md device, which does not contain any systemfiles there is no need to reserve any space :</p><pre class="crayon-plain-tag">#tune2fs -m &lt;em&gt;0&lt;/em&gt; /dev/md0</pre><p>
Sets the reserve to 0% and the 0,4T are free for usage.</p>
<div class="su-linkbox" id="post-1083-linkbox"><div class="su-linkbox-label">Link to this post!</div><div class="su-linkbox-field"><input type="text" value="&lt;a href=&quot;http://claw.triple6.org/linux/use-100-aber-eigentlich-noch-platz/?lang=en&quot;&gt;&#8216;Use 100%&#8217; &#8211; But there is space left!&lt;/a&gt;" onclick="javascript:this.select()" readonly="readonly" style="width: 100%;" /></div></div><div class='yarpp-related-rss'>
<p>Related posts:</p><ol>
<li><a href="http://claw.triple6.org/linux/md-datenkonsistenz-eines-raids-prufen/?lang=en" rel="bookmark" title="md: Check consistency of Raids">md: Check consistency of Raids </a></li>
<li><a href="http://claw.triple6.org/linux/taskwarrior-und-andere-dateien-hilfe-von-dropbox-synchronisieren/?lang=en" rel="bookmark" title="Synchronize Taskwarrior and other files using Dropbox">Synchronize Taskwarrior and other files using Dropbox </a></li>
<li><a href="http://claw.triple6.org/linux/prelink-der-turbo-fur-linux-2/?lang=en" rel="bookmark" title="Prelink &#8211; Speed up your Linux even more">Prelink &#8211; Speed up your Linux even more </a></li>
</ol>
</div>
]]></content:encoded>
			<wfw:commentRss>http://claw.triple6.org/linux/use-100-aber-eigentlich-noch-platz/?lang=en/feed/&#038;lang=en</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>(Deutsch) Microsoft on its best: Vulgär und sexistisch in Hexadezimal</title>
		<link>http://claw.triple6.org/allgemein/microsoft-best-vulgar-und-sexistisch-hexadezimal/?lang=en</link>
		<comments>http://claw.triple6.org/allgemein/microsoft-best-vulgar-und-sexistisch-hexadezimal/?lang=en#comments</comments>
		<pubDate>Sat, 14 Jul 2012 00:58:42 +0000</pubDate>
		<dc:creator><![CDATA[claw]]></dc:creator>
				<category><![CDATA[allgemein]]></category>
		<category><![CDATA[Deutsch]]></category>
		<category><![CDATA[ubuntu-planet]]></category>
		<category><![CDATA[BOOBS]]></category>
		<category><![CDATA[Char]]></category>
		<category><![CDATA[Effekt]]></category>
		<category><![CDATA[Eigentlich]]></category>
		<category><![CDATA[Fail]]></category>
		<category><![CDATA[Hexadezimal]]></category>
		<category><![CDATA[HyperV-Moduls]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[Monopolstellung]]></category>
		<category><![CDATA[Vulg]]></category>

		<guid isPermaLink="false">http://claw.triple6.org/?p=1063</guid>
		<description><![CDATA[Sorry, this entry is only available in Deutsch. Link to this post!<div class='yarpp-related-rss'>

Related posts:<ol>
<li><a href="http://claw.triple6.org/linux/prelink-der-turbo-fur-linux-2/?lang=en" rel="bookmark" title="Prelink &#8211; Speed up your Linux even more">Prelink &#8211; Speed up your Linux even more </a></li>
<li><a href="http://claw.triple6.org/allgemein/preload-der-turbo-fur-linux/?lang=en" rel="bookmark" title="Preload &#8211; Speed up your Linux">Preload &#8211; Speed up your Linux </a></li>
</ol>
</div>
]]></description>
				<content:encoded><![CDATA[<p>Sorry, this entry is only available in <a href="http://claw.triple6.org/feed/?lang=de">Deutsch</a>.</p>
<div class="su-linkbox" id="post-1063-linkbox"><div class="su-linkbox-label">Link to this post!</div><div class="su-linkbox-field"><input type="text" value="&lt;a href=&quot;http://claw.triple6.org/allgemein/microsoft-best-vulgar-und-sexistisch-hexadezimal/?lang=en&quot;&gt;(Deutsch) Microsoft on its best: Vulgär und sexistisch in Hexadezimal&lt;/a&gt;" onclick="javascript:this.select()" readonly="readonly" style="width: 100%;" /></div></div><div class='yarpp-related-rss'>
<p>Related posts:</p><ol>
<li><a href="http://claw.triple6.org/linux/prelink-der-turbo-fur-linux-2/?lang=en" rel="bookmark" title="Prelink &#8211; Speed up your Linux even more">Prelink &#8211; Speed up your Linux even more </a></li>
<li><a href="http://claw.triple6.org/allgemein/preload-der-turbo-fur-linux/?lang=en" rel="bookmark" title="Preload &#8211; Speed up your Linux">Preload &#8211; Speed up your Linux </a></li>
</ol>
</div>
]]></content:encoded>
			<wfw:commentRss>http://claw.triple6.org/allgemein/microsoft-best-vulgar-und-sexistisch-hexadezimal/?lang=en/feed/&#038;lang=en</wfw:commentRss>
		<slash:comments></slash:comments>
		</item>
		<item>
		<title>tt-rss: Improve readability</title>
		<link>http://claw.triple6.org/allgemein/tt-rss-und-die-lesbarkeit/?lang=en</link>
		<comments>http://claw.triple6.org/allgemein/tt-rss-und-die-lesbarkeit/?lang=en#comments</comments>
		<pubDate>Fri, 15 Jun 2012 06:59:49 +0000</pubDate>
		<dc:creator><![CDATA[claw]]></dc:creator>
				<category><![CDATA[allgemein]]></category>
		<category><![CDATA[Deutsch]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[ubuntu-planet]]></category>
		<category><![CDATA[windows]]></category>
		<category><![CDATA[Art]]></category>
		<category><![CDATA[at home]]></category>
		<category><![CDATA[Augen]]></category>
		<category><![CDATA[Blocksatz]]></category>
		<category><![CDATA[Browsers]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[Entwurf]]></category>
		<category><![CDATA[eyes]]></category>
		<category><![CDATA[Feed]]></category>
		<category><![CDATA[Feeds]]></category>
		<category><![CDATA[font]]></category>
		<category><![CDATA[justify]]></category>
		<category><![CDATA[Layout]]></category>
		<category><![CDATA[Lesbarkeit]]></category>
		<category><![CDATA[max-width]]></category>
		<category><![CDATA[mobie]]></category>
		<category><![CDATA[nicht gerade sinnvoll]]></category>
		<category><![CDATA[on the go]]></category>
		<category><![CDATA[readability]]></category>
		<category><![CDATA[RSS-Reader]]></category>
		<category><![CDATA[Schrift]]></category>
		<category><![CDATA[Text]]></category>
		<category><![CDATA[text-align]]></category>
		<category><![CDATA[Theme]]></category>
		<category><![CDATA[Tiny]]></category>
		<category><![CDATA[Tiny Tiny RSS]]></category>
		<category><![CDATA[tt-rss]]></category>
		<category><![CDATA[ttrss]]></category>
		<category><![CDATA[Unterweg]]></category>
		<category><![CDATA[Unterwegs]]></category>
		<category><![CDATA[Zuhause]]></category>

		<guid isPermaLink="false">http://claw.triple6.org/?p=1024</guid>
		<description><![CDATA[Tiny Tiny RSS is a great RSS-Reader i am using to read my feeds at home and mobile. But I don&#8217;t like the default layout. But not the Theme i am talking about the readability of the text. The articles &#8230; <a href="http://claw.triple6.org/allgemein/tt-rss-und-die-lesbarkeit/?lang=en">Continue reading <span class="meta-nav">&#8594;</span></a><div class='yarpp-related-rss yarpp-related-none'>

No related posts.
</div>
]]></description>
				<content:encoded><![CDATA[<p><img class="alignright" title="lrg_tango_drive_hard_disk" alt="orgttrssreader 1220.pngw124h124 tt rss: Improve readability" src="http://claw.triple6.org/wp-content/uploads/2012/07/orgttrssreader-1220.pngw124h124.png" width="150" height="150" />Tiny Tiny RSS is a great RSS-Reader i am using to read my feeds at home and mobile. But I don&#8217;t like the default layout. But not the Theme i am talking about the readability of the text.</p>
<p>The articles using the whole width of the browser what isn&#8217;t really nice because your eyes need to do much more motions that way. Furthermore for such kind of text serif fonts are recommended, because we can read them better.</p>
<p>The readability concept is use for tt-rss is the same i use for this blog. If you like you should continue reading.</p>
<p><span id="more-1024"></span></p>
<p>Because pictures can say more than a thousand word here are some screenshots:</p>

<a href='http://claw.triple6.org/?attachment_id=1026'><img width="300" height="173" src="http://claw.triple6.org/wp-content/uploads/2012/06/tt-rss-readability1-300x173.jpeg" class="attachment-medium" alt=" tt rss: Improve readability"  title="tt rss: Improve readability" /></a>
<a href='http://claw.triple6.org/?attachment_id=1027'><img width="300" height="174" src="http://claw.triple6.org/wp-content/uploads/2012/06/tt-rss-readability-300x174.jpeg" class="attachment-medium" alt=" tt rss: Improve readability"  title="tt rss: Improve readability" /></a>
<a href='http://claw.triple6.org/?attachment_id=1053'><img width="300" height="215" src="http://claw.triple6.org/wp-content/uploads/2012/06/tt-rss-readability3-300x215.jpeg" class="attachment-medium" alt=" tt rss: Improve readability"  title="tt rss: Improve readability" /></a>

<p>Only theory. Here the practice:</p>
<p>tt-rss allows you on the webinterface under settings to use a own stylesheet.<br />
Add the following text there:</p><pre class="crayon-plain-tag">body#ttrssMain, body#ttrssPrefs, body#ttrssLogin, body {
    font-family : inherit;
}

div.cdmContentInner {
    font-family : inherit;
    font-size : 14px;
    font-weight: normal;
    text-align: justify;
    margin: 0 35% 0 8%;
    width: 80%;
    max-width: 700px;
}

div.cdmHeader &amp;gt; * {
    font-size : 18px;
    font-weight: bolder;
}</pre><p>
Because this blog is about teaching and learning:</p>
<ul>
<li><strong>font-family : inherit;</strong> &#8211; Defines the font to &#8220;Inherit&#8221;</li>
<li><strong>font-size : 14px; </strong>- 14 Pixel font size</li>
<li><strong>font-weight : normal; </strong>- font weight ( could be bold, bolder, etc.)</li>
<li><strong>text-align: justify; </strong>- justify Layout as know from newspapers.</li>
<li><strong>width: 80%; </strong>- Text should use 80% of available space</li>
<li><strong>max-width: 700px;</strong>- But not more than 700 pixels ( what should be about A4 on common monitor resolutions.)</li>
</ul>
<p><strong>&#8220;div.cdmContentInner {&#8221; </strong>ist for the article text and <strong>&#8220;div.cdmHeader &gt; * {&#8221;  </strong>the headline..</p>
<div class="su-linkbox" id="post-1024-linkbox"><div class="su-linkbox-label">Link to this post!</div><div class="su-linkbox-field"><input type="text" value="&lt;a href=&quot;http://claw.triple6.org/allgemein/tt-rss-und-die-lesbarkeit/?lang=en&quot;&gt;tt-rss: Improve readability&lt;/a&gt;" onclick="javascript:this.select()" readonly="readonly" style="width: 100%;" /></div></div><div class='yarpp-related-rss yarpp-related-none'>
<p>No related posts.</p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://claw.triple6.org/allgemein/tt-rss-und-die-lesbarkeit/?lang=en/feed/&#038;lang=en</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>badblocks: Check your hard drive for bad sectors</title>
		<link>http://claw.triple6.org/linux/badblocksfestplatten-auf-defekte-sektoren-prufen/?lang=en</link>
		<comments>http://claw.triple6.org/linux/badblocksfestplatten-auf-defekte-sektoren-prufen/?lang=en#comments</comments>
		<pubDate>Fri, 11 May 2012 11:23:59 +0000</pubDate>
		<dc:creator><![CDATA[claw]]></dc:creator>
				<category><![CDATA[Deutsch]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[shell]]></category>
		<category><![CDATA[ubuntu-planet]]></category>
		<category><![CDATA[Anf]]></category>
		<category><![CDATA[babblock]]></category>
		<category><![CDATA[bad block]]></category>
		<category><![CDATA[bad sector]]></category>
		<category><![CDATA[badblock]]></category>
		<category><![CDATA[block]]></category>
		<category><![CDATA[blocks]]></category>
		<category><![CDATA[dead block]]></category>
		<category><![CDATA[dead sector]]></category>
		<category><![CDATA[defekte Sektoren]]></category>
		<category><![CDATA[dev]]></category>
		<category><![CDATA[Festplatte]]></category>
		<category><![CDATA[Festplatten]]></category>
		<category><![CDATA[fsck]]></category>
		<category><![CDATA[HDD]]></category>
		<category><![CDATA[Hersteller]]></category>
		<category><![CDATA[Modus]]></category>
		<category><![CDATA[prüfen]]></category>
		<category><![CDATA[sdX]]></category>
		<category><![CDATA[smart]]></category>
		<category><![CDATA[SSD]]></category>
		<category><![CDATA[tote sektoren]]></category>
		<category><![CDATA[toter sektor]]></category>
		<category><![CDATA[zeit]]></category>

		<guid isPermaLink="false">http://claw.triple6.org/?p=955</guid>
		<description><![CDATA[We are living in a time where the quality of hard drives has been drastically decreased. The Vendors are struggling to improve the the capacity what is leading to ECC-Errors. Also the vulnerability for bad blocks has increased. Its no &#8230; <a href="http://claw.triple6.org/linux/badblocksfestplatten-auf-defekte-sektoren-prufen/?lang=en">Continue reading <span class="meta-nav">&#8594;</span></a><div class='yarpp-related-rss'>

Related posts:<ol>
<li><a href="http://claw.triple6.org/linux/md-datenkonsistenz-eines-raids-prufen/?lang=en" rel="bookmark" title="md: Check consistency of Raids">md: Check consistency of Raids </a></li>
<li><a href="http://claw.triple6.org/linux/festplatten-benchmark-linux-hard-drive-benchmark-linux/?lang=en" rel="bookmark" title="Hard Drive Benchmark using Linux">Hard Drive Benchmark using Linux </a></li>
<li><a href="http://claw.triple6.org/linux/benchmark-md_raid5-4-festplatten-im-vergleich-zu-3-2/?lang=en" rel="bookmark" title="Benchmark: md_raid5 &#8211; comparing 4 hard drives versus 3">Benchmark: md_raid5 &#8211; comparing 4 hard drives versus 3 </a></li>
</ol>
</div>
]]></description>
				<content:encoded><![CDATA[<p><a href="http://claw.triple6.org/wp-content/uploads/2012/03/lrg_tango_drive_hard_disk.png" rel="lightbox"><img class="alignright" title="lrg_tango_drive_hard_disk" alt="lrg tango drive hard disk badblocks: Check your hard drive for bad sectors " src="http://claw.triple6.org/wp-content/uploads/2012/03/lrg_tango_drive_hard_disk.png" width="150" height="150" /></a>We are living in a time where the quality of hard drives has been drastically decreased. The Vendors are struggling to improve the the capacity what is leading to ECC-Errors. Also the vulnerability for bad blocks has increased. Its no wonder that in one of my PCs an old IDE Spinpoint F1 by Samsung is doing its work while i already had to replace 3 drives within 2 years in my NAS. Because of the dead sectors.</p>
<p>Such dead sectors are blocks on the surface of an hard drive which are not writable due to physical damages. Facing bad blocks can be the sentence of death  for a RAID Array.</p>
<p>But how can we be sure that an hard drive is healthy?</p>
<p><span id="more-955"></span></p>
<p>On the one hand there is <a href="http://en.wikipedia.org/wiki/Self-Monitoring,_Analysis_and_Reporting_Technology">SMART</a>, which provides various quick checks for the drive but according to studies it is not that meaningful.</p>
<p>If you want to be confident you need to check block by block without leaving one out.</p>
<p>For doing so i am using &#8216;badblocks&#8217; &#8211; Badblocks can check destructive (meaning all data will be lost) or non-destructive. The advantage over the non-destructive mode is that the check will be done ten times faster using the destructive mode. Besides you can also load the check result of badblocks into fsck, which will mark the block as faulty on the filesystem to prevent further writes on them.</p>
<h1>Destructive Mode</h1>
<p><span style="color: #ff0000;">Warning: Using that mode your data will be wiped!<br />
</span></p><pre class="crayon-plain-tag">badblocks -wsv -o foo.badblocks /dev/sdX</pre><p>
<ul>
<li>This line starts an check for <strong>/dev/sdX</strong>.</li>
<li><strong>-w</strong> is the destructive Mode.</li>
<li><strong>-s</strong> shows an progressbar (e.g.: 12.16% done, 35:46 elapsed).</li>
<li><strong>-v</strong> like always this is for &#8216;verbose&#8217; whereby found bad blocks will be print to stdin.</li>
<li><strong>-o</strong> provides the path for an output file (<strong>i used foo.badblock here</strong>). It can be loaded by fsck.</li>
</ul>
<p>Because all data will be wiped by this mode its suitable for checking new hard drives or those where the data is not needed anymore.</p>
<h1>Non-Destructive Mode</h1>
<p>That mode is absolutely harmless and no data will be lost.</p><pre class="crayon-plain-tag">badblocks -nsv -o foo.badblocks /dev/sdX</pre><p>
<ul>
<li>This line starts an check for <strong>/dev/sdX</strong>.</li>
<li><strong>-n</strong> is the <strong>non</strong>-destructive mode.</li>
<li><strong>-s</strong> shows an progressbar (e.g.: 12.16% done, 35:46 elapsed).</li>
<li><strong>-v </strong>like always this is for &#8216;verbose&#8217; whereby found bad blocks will be print to stdin.</li>
<li><strong>-o</strong> provides the path for an output file (<strong>i used foo.badblock here</strong>). It can be loaded by fsck.</li>
</ul>
<p>This mode is suitable when there is a suspicion for bad blocks (e.g because S.M.A.R.T reported them). The found dead sectors can be marked as faulty by fsck which will lead to an consistent device again. <strong>But keep in mind: </strong>bad blocks are spreading.</p>
<p>You can tell fsck to mark the found bad blocks as faulty by running:</p><pre class="crayon-plain-tag">fsck -l foo.badblocks /dev/sdX</pre><p>
The executing of badblocks can take a long time. The faster destructive mode took 48 hours for an 2TB drive during my investigations.</p>
<div class="su-linkbox" id="post-955-linkbox"><div class="su-linkbox-label">Link to this post!</div><div class="su-linkbox-field"><input type="text" value="&lt;a href=&quot;http://claw.triple6.org/linux/badblocksfestplatten-auf-defekte-sektoren-prufen/?lang=en&quot;&gt;badblocks: Check your hard drive for bad sectors&lt;/a&gt;" onclick="javascript:this.select()" readonly="readonly" style="width: 100%;" /></div></div><div class='yarpp-related-rss'>
<p>Related posts:</p><ol>
<li><a href="http://claw.triple6.org/linux/md-datenkonsistenz-eines-raids-prufen/?lang=en" rel="bookmark" title="md: Check consistency of Raids">md: Check consistency of Raids </a></li>
<li><a href="http://claw.triple6.org/linux/festplatten-benchmark-linux-hard-drive-benchmark-linux/?lang=en" rel="bookmark" title="Hard Drive Benchmark using Linux">Hard Drive Benchmark using Linux </a></li>
<li><a href="http://claw.triple6.org/linux/benchmark-md_raid5-4-festplatten-im-vergleich-zu-3-2/?lang=en" rel="bookmark" title="Benchmark: md_raid5 &#8211; comparing 4 hard drives versus 3">Benchmark: md_raid5 &#8211; comparing 4 hard drives versus 3 </a></li>
</ol>
</div>
]]></content:encoded>
			<wfw:commentRss>http://claw.triple6.org/linux/badblocksfestplatten-auf-defekte-sektoren-prufen/?lang=en/feed/&#038;lang=en</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>md: Check consistency of Raids</title>
		<link>http://claw.triple6.org/linux/md-datenkonsistenz-eines-raids-prufen/?lang=en</link>
		<comments>http://claw.triple6.org/linux/md-datenkonsistenz-eines-raids-prufen/?lang=en#comments</comments>
		<pubDate>Mon, 07 May 2012 06:26:50 +0000</pubDate>
		<dc:creator><![CDATA[claw]]></dc:creator>
				<category><![CDATA[Deutsch]]></category>
		<category><![CDATA[English]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[shell]]></category>
		<category><![CDATA[ubuntu-planet]]></category>
		<category><![CDATA[algorithm]]></category>
		<category><![CDATA[cat]]></category>
		<category><![CDATA[check]]></category>
		<category><![CDATA[Checkfunktion]]></category>
		<category><![CDATA[Datenkonsistenz]]></category>
		<category><![CDATA[Festplatte]]></category>
		<category><![CDATA[Festplatten]]></category>
		<category><![CDATA[konsistenz]]></category>
		<category><![CDATA[md]]></category>
		<category><![CDATA[mdadm]]></category>
		<category><![CDATA[mdstat]]></category>
		<category><![CDATA[Ordnung]]></category>
		<category><![CDATA[Personalities]]></category>
		<category><![CDATA[raid]]></category>
		<category><![CDATA[Raids]]></category>
		<category><![CDATA[sys]]></category>

		<guid isPermaLink="false">http://claw.triple6.org/?p=940</guid>
		<description><![CDATA[If you want to grow a raid array or perform other actions on it you should make sure that all files are consistent. mdadm has a function that can ensure this even without having to rebuild the raid. Before you &#8230; <a href="http://claw.triple6.org/linux/md-datenkonsistenz-eines-raids-prufen/?lang=en">Continue reading <span class="meta-nav">&#8594;</span></a><div class='yarpp-related-rss'>

Related posts:<ol>
<li><a href="http://claw.triple6.org/linux/benchmark-md_raid5-4-festplatten-im-vergleich-zu-3-2/?lang=en" rel="bookmark" title="Benchmark: md_raid5 &#8211; comparing 4 hard drives versus 3">Benchmark: md_raid5 &#8211; comparing 4 hard drives versus 3 </a></li>
<li><a href="http://claw.triple6.org/linux/festplatten-benchmark-linux-hard-drive-benchmark-linux/?lang=en" rel="bookmark" title="Hard Drive Benchmark using Linux">Hard Drive Benchmark using Linux </a></li>
<li><a href="http://claw.triple6.org/linux/systembackup-mit-rsync/?lang=en" rel="bookmark" title="Systembackup using rsync">Systembackup using rsync </a></li>
</ol>
</div>
]]></description>
				<content:encoded><![CDATA[<p><a href="http://claw.triple6.org/wp-content/uploads/2012/03/lrg_tango_drive_hard_disk.png" rel="lightbox"><img class="alignright" title="lrg_tango_drive_hard_disk" alt="lrg tango drive hard disk md: Check consistency of Raids" src="http://claw.triple6.org/wp-content/uploads/2012/03/lrg_tango_drive_hard_disk.png" width="150" height="150" /></a>If you want to grow a raid array or perform other actions on it you should make sure that all files are consistent.</p>
<p>mdadm has a function that can ensure this even without having to rebuild the raid.</p>
<p><img title="Weiterlesen …" alt="trans md: Check consistency of Raids" src="http://claw.triple6.org/wp-includes/js/tinymce/plugins/wordpress/img/trans.gif" /></p>
<p>Before you can start you always have to make sure that everything is save for the present:</p><pre class="crayon-plain-tag">root@nas34 cat /proc/mdstat
Personalities : [raid6] [raid5] [raid4]
md42 : active raid5 sdd[0] sdb[4] sda[3] sde[1]
      4395411456 blocks super 1.2 level 5, 512k chunk, algorithm 2 [4/4] [UUUU]</pre><p>
If everything looks just fine, as above, we would not have to be concerned, if there would not be the risk of bad blocks because they have the characteristic that they become conspicuous only if there are read or write actions performed to them. For ensuring that the array act correct we are going to perform a manual check:</p><pre class="crayon-plain-tag">echo check &gt;/sys/block/md42/md/sync_action</pre><p>
Now we have to check that the &#8220;check&#8221; we have just sent to /sys/block/md42/md/sync_action produces an effect:</p><pre class="crayon-plain-tag">cat /proc/mdstat
Personalities : [raid6] [raid5] [raid4]
md42 : active raid5 sdd[0] sdb[4] sda[3] sde[1]
      4395411456 blocks super 1.2 level 5, 512k chunk, algorithm 2 [4/4] [UUUU]
      [&gt;....................]  check = 0.0% (23564/1465137152) finish=500.0min speed=63564K/sec</pre><p>
Alright! The action has been started. If the Raid does not show any errors:</p><pre class="crayon-plain-tag">cat /sys/block/md42/md/mismatch_cnt
0</pre><p>
and does not suddenly start to rebuild we can grant that it is stable and start with the proper work, without being concerned that one of the disk could be damaged any way.</p>
<p>If you want to you can cancel the procedure by sending &#8216;idle&#8217; to  /sys/block/md42/md/sync_action:</p><pre class="crayon-plain-tag">echo idle &gt; /sys/block/md42/md/sync_action</pre><p>
auffallend<span id="more-940"></span></p>
<div class="su-linkbox" id="post-940-linkbox"><div class="su-linkbox-label">Link to this post!</div><div class="su-linkbox-field"><input type="text" value="&lt;a href=&quot;http://claw.triple6.org/linux/md-datenkonsistenz-eines-raids-prufen/?lang=en&quot;&gt;md: Check consistency of Raids&lt;/a&gt;" onclick="javascript:this.select()" readonly="readonly" style="width: 100%;" /></div></div><div class='yarpp-related-rss'>
<p>Related posts:</p><ol>
<li><a href="http://claw.triple6.org/linux/benchmark-md_raid5-4-festplatten-im-vergleich-zu-3-2/?lang=en" rel="bookmark" title="Benchmark: md_raid5 &#8211; comparing 4 hard drives versus 3">Benchmark: md_raid5 &#8211; comparing 4 hard drives versus 3 </a></li>
<li><a href="http://claw.triple6.org/linux/festplatten-benchmark-linux-hard-drive-benchmark-linux/?lang=en" rel="bookmark" title="Hard Drive Benchmark using Linux">Hard Drive Benchmark using Linux </a></li>
<li><a href="http://claw.triple6.org/linux/systembackup-mit-rsync/?lang=en" rel="bookmark" title="Systembackup using rsync">Systembackup using rsync </a></li>
</ol>
</div>
]]></content:encoded>
			<wfw:commentRss>http://claw.triple6.org/linux/md-datenkonsistenz-eines-raids-prufen/?lang=en/feed/&#038;lang=en</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>vsftpd sets wrong timestamps</title>
		<link>http://claw.triple6.org/linux/vsftpd-zeigt-falsche-timestamps/?lang=en</link>
		<comments>http://claw.triple6.org/linux/vsftpd-zeigt-falsche-timestamps/?lang=en#comments</comments>
		<pubDate>Fri, 13 Apr 2012 09:09:17 +0000</pubDate>
		<dc:creator><![CDATA[claw]]></dc:creator>
				<category><![CDATA[Deutsch]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[shell]]></category>
		<category><![CDATA[ubuntu-planet]]></category>
		<category><![CDATA[Eintrag]]></category>
		<category><![CDATA[English]]></category>
		<category><![CDATA[etc]]></category>
		<category><![CDATA[FTP]]></category>
		<category><![CDATA[GMT]]></category>
		<category><![CDATA[host]]></category>
		<category><![CDATA[konfiguration]]></category>
		<category><![CDATA[nomen]]></category>
		<category><![CDATA[timestamp]]></category>
		<category><![CDATA[timestamps]]></category>
		<category><![CDATA[upload]]></category>
		<category><![CDATA[use_localtime]]></category>
		<category><![CDATA[vsftpd]]></category>
		<category><![CDATA[vsftpd.conf]]></category>
		<category><![CDATA[zeit]]></category>
		<category><![CDATA[zeitstempel]]></category>
		<category><![CDATA[Zeitzone]]></category>

		<guid isPermaLink="false">http://claw.triple6.org/?p=906</guid>
		<description><![CDATA[The reason why vsftpd is setting the timestamps wrong is might that vsftpd uses GMT by default and not the local timezone on the host. In order to solve this there is just a quick modification in the configuration of &#8230; <a href="http://claw.triple6.org/linux/vsftpd-zeigt-falsche-timestamps/?lang=en">Continue reading <span class="meta-nav">&#8594;</span></a><div class='yarpp-related-rss'>

Related posts:<ol>
<li><a href="http://claw.triple6.org/allgemein/preload-der-turbo-fur-linux/?lang=en" rel="bookmark" title="Preload &#8211; Speed up your Linux">Preload &#8211; Speed up your Linux </a></li>
<li><a href="http://claw.triple6.org/linux/prelink-der-turbo-fur-linux-2/?lang=en" rel="bookmark" title="Prelink &#8211; Speed up your Linux even more">Prelink &#8211; Speed up your Linux even more </a></li>
<li><a href="http://claw.triple6.org/linux/ssh-verbindung-uber-einen-proxyserver/?lang=en" rel="bookmark" title="SSH : Connect using a proxy">SSH : Connect using a proxy </a></li>
</ol>
</div>
]]></description>
				<content:encoded><![CDATA[<p title="vsftpd zeigt falsche Timestamps an">The reason why vsftpd is setting the timestamps wrong is might that vsftpd uses GMT by default and not the local timezone on the host. In order to solve this there is just a quick modification in the configuration of vsftpd needed.</p>
<p style="text-align: justify;" title="vsftpd zeigt falsche Timestamps an"><span id="more-906"></span></p>
<p style="text-align: justify;" title="vsftpd zeigt falsche Timestamps an">In /etc/vsftpd.conf the value of &#8220;use_localtime=&#8221; has to be set to &#8220;YES&#8221;. After changing the configuration you will have to restart ftp server:</p>
<pre class="crayon-plain-tag">invoke-rc.d vsftpd restart</pre>
<p style="text-align: justify;" title="vsftpd zeigt falsche Timestamps an">For now on the timestamps should be set correctly.</p>
<div class="su-linkbox" id="post-906-linkbox"><div class="su-linkbox-label">Link to this post!</div><div class="su-linkbox-field"><input type="text" value="&lt;a href=&quot;http://claw.triple6.org/linux/vsftpd-zeigt-falsche-timestamps/?lang=en&quot;&gt;vsftpd sets wrong timestamps&lt;/a&gt;" onclick="javascript:this.select()" readonly="readonly" style="width: 100%;" /></div></div><div class='yarpp-related-rss'>
<p>Related posts:</p><ol>
<li><a href="http://claw.triple6.org/allgemein/preload-der-turbo-fur-linux/?lang=en" rel="bookmark" title="Preload &#8211; Speed up your Linux">Preload &#8211; Speed up your Linux </a></li>
<li><a href="http://claw.triple6.org/linux/prelink-der-turbo-fur-linux-2/?lang=en" rel="bookmark" title="Prelink &#8211; Speed up your Linux even more">Prelink &#8211; Speed up your Linux even more </a></li>
<li><a href="http://claw.triple6.org/linux/ssh-verbindung-uber-einen-proxyserver/?lang=en" rel="bookmark" title="SSH : Connect using a proxy">SSH : Connect using a proxy </a></li>
</ol>
</div>
]]></content:encoded>
			<wfw:commentRss>http://claw.triple6.org/linux/vsftpd-zeigt-falsche-timestamps/?lang=en/feed/&#038;lang=en</wfw:commentRss>
		<slash:comments></slash:comments>
		</item>
		<item>
		<title>Benchmark: md_raid5 &#8211; comparing 4 hard drives versus 3</title>
		<link>http://claw.triple6.org/linux/benchmark-md_raid5-4-festplatten-im-vergleich-zu-3-2/?lang=en</link>
		<comments>http://claw.triple6.org/linux/benchmark-md_raid5-4-festplatten-im-vergleich-zu-3-2/?lang=en#comments</comments>
		<pubDate>Wed, 28 Mar 2012 00:30:04 +0000</pubDate>
		<dc:creator><![CDATA[claw]]></dc:creator>
				<category><![CDATA[Deutsch]]></category>
		<category><![CDATA[English]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[ubuntu-planet]]></category>
		<category><![CDATA[Benchmark]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[Festplatte]]></category>
		<category><![CDATA[Festplatten]]></category>
		<category><![CDATA[Geschwindigkeit]]></category>
		<category><![CDATA[hard drives]]></category>
		<category><![CDATA[Input]]></category>
		<category><![CDATA[leistung]]></category>
		<category><![CDATA[lesen]]></category>
		<category><![CDATA[leserate]]></category>
		<category><![CDATA[md]]></category>
		<category><![CDATA[mdadm]]></category>
		<category><![CDATA[NAS]]></category>
		<category><![CDATA[performace]]></category>
		<category><![CDATA[raid]]></category>
		<category><![CDATA[raid5]]></category>
		<category><![CDATA[schreiben]]></category>
		<category><![CDATA[schreibrate]]></category>
		<category><![CDATA[vergleich]]></category>

		<guid isPermaLink="false">http://claw.triple6.org/?p=886</guid>
		<description><![CDATA[Recently i had to grow the capacity of my NAS. The NAS is running Debian and RAID is powered by md. I had attached 3 hard drives to it which were working as RAID5 array. Now i could write about &#8230; <a href="http://claw.triple6.org/linux/benchmark-md_raid5-4-festplatten-im-vergleich-zu-3-2/?lang=en">Continue reading <span class="meta-nav">&#8594;</span></a><div class='yarpp-related-rss'>

Related posts:<ol>
<li><a href="http://claw.triple6.org/linux/festplatten-benchmark-linux-hard-drive-benchmark-linux/?lang=en" rel="bookmark" title="Hard Drive Benchmark using Linux">Hard Drive Benchmark using Linux </a></li>
<li><a href="http://claw.triple6.org/allgemein/clonezilla-modifizieren/?lang=en" rel="bookmark" title="Modify Clonezilla">Modify Clonezilla </a></li>
<li><a href="http://claw.triple6.org/allgemein/preload-der-turbo-fur-linux/?lang=en" rel="bookmark" title="Preload &#8211; Speed up your Linux">Preload &#8211; Speed up your Linux </a></li>
</ol>
</div>
]]></description>
				<content:encoded><![CDATA[<p style="text-align: justify;" title="Hard Drive Benchmark using Linux"><a href="http://claw.triple6.org/wp-content/uploads/2012/03/lrg_tango_drive_hard_disk.png" rel="lightbox"><img class="alignright" title="lrg_tango_drive_hard_disk" alt="lrg tango drive hard disk Benchmark: md raid5   comparing 4 hard drives versus 3" src="http://claw.triple6.org/wp-content/uploads/2012/03/lrg_tango_drive_hard_disk.png" width="150" height="150" /></a>Recently i had to grow the capacity of my NAS. The NAS is running Debian and RAID is powered by md. I had attached 3 hard drives to it which were working as RAID5 array. Now i could write about how to grow a RAID, but you will be able to read that on more than enough other websites. I would rather share a benchmark i have created using <a title="Hard Drive Benchmark using Linux" href="http://claw.triple6.org/linux/hard-drive-benchmark-linux/">Bonnie++.</a> Let me show you the effects of changing the amount of hard drive on the read and write performance.</p>
<p style="text-align: justify;"><span id="more-886"></span></p>
<p style="text-align: justify;">The theory is that the more hard drives are in an array the more performance in reading and writing you will have. But having more hard drives will mean that the parities have to be distributed complexer what would reduce to write performance.</p>
<p style="text-align: justify;">According to my benchmark these facts have been proven because i could notice an enhancement on reading and writing throughput. Have a look at the diagrams:</p>
<table border="0" frame="VOID" rules="NONE" cellspacing="0">
<colgroup>
<col width="143" />
<col width="168" />
<col width="86" /></colgroup>
<tbody>
<tr>
<td align="LEFT" width="143" height="23">Anzahl Platten</td>
<td colspan="2" align="CENTER" valign="MIDDLE" width="254"><strong>Sequential Output</strong></td>
</tr>
<tr>
<td align="LEFT" height="22"></td>
<td colspan="2" align="CENTER" valign="MIDDLE">Per Chr</td>
</tr>
<tr>
<td align="LEFT" height="17"></td>
<td align="LEFT">K/sec</td>
<td align="LEFT">%CP</td>
</tr>
<tr>
<td align="LEFT" height="17">4</td>
<td align="RIGHT">551</td>
<td align="RIGHT">97</td>
</tr>
<tr>
<td align="LEFT" height="17">3</td>
<td align="RIGHT">540</td>
<td align="RIGHT">97</td>
</tr>
<tr>
<td align="LEFT" height="22"></td>
<td colspan="2" align="CENTER" valign="MIDDLE">Block</td>
</tr>
<tr>
<td align="LEFT" height="17"></td>
<td align="LEFT">K/sec</td>
<td align="LEFT">%CP</td>
</tr>
<tr>
<td align="LEFT" height="17">4</td>
<td align="RIGHT">94653</td>
<td align="RIGHT">18</td>
</tr>
<tr>
<td align="LEFT" height="17">3</td>
<td align="RIGHT">56140</td>
<td align="RIGHT">10</td>
</tr>
<tr>
<td align="LEFT" height="22"></td>
<td colspan="2" align="CENTER">Rewrite</td>
</tr>
<tr>
<td align="LEFT" height="17"></td>
<td align="LEFT">K/sec</td>
<td align="LEFT">%CP</td>
</tr>
<tr>
<td align="LEFT" height="17">4</td>
<td align="LEFT">61931</td>
<td align="LEFT">10</td>
</tr>
<tr>
<td align="LEFT" height="17">3</td>
<td align="LEFT">33581</td>
<td align="LEFT">5</td>
</tr>
<tr>
<td align="LEFT" height="23"></td>
<td colspan="2" align="CENTER" valign="MIDDLE"><strong>Sequential Input</strong></td>
</tr>
<tr>
<td align="LEFT" height="22"></td>
<td colspan="2" align="CENTER" valign="MIDDLE">Per Chr</td>
</tr>
<tr>
<td align="LEFT" height="17"></td>
<td align="LEFT">K/sec</td>
<td align="LEFT">%CP</td>
</tr>
<tr>
<td align="LEFT" height="17">4</td>
<td align="LEFT">1841</td>
<td align="LEFT">92</td>
</tr>
<tr>
<td align="LEFT" height="17">3</td>
<td align="LEFT">1898</td>
<td align="LEFT">94</td>
</tr>
<tr>
<td align="LEFT" height="22"></td>
<td colspan="2" align="CENTER" valign="MIDDLE">Block</td>
</tr>
<tr>
<td align="LEFT" height="17"></td>
<td align="LEFT">K/sec</td>
<td align="LEFT">%CP</td>
</tr>
<tr>
<td align="LEFT" height="17">4</td>
<td align="LEFT">225288</td>
<td align="LEFT">15</td>
</tr>
<tr>
<td align="LEFT" height="17">3</td>
<td align="LEFT">121653</td>
<td align="LEFT">8</td>
</tr>
<tr>
<td align="LEFT" height="23"></td>
<td colspan="2" align="CENTER" valign="MIDDLE"><strong>Random</strong></td>
</tr>
<tr>
<td align="LEFT" height="22"></td>
<td colspan="2" align="CENTER" valign="MIDDLE">Seeks</td>
</tr>
<tr>
<td align="LEFT" height="17"></td>
<td align="LEFT">Seeks/sec</td>
<td align="LEFT">%CP</td>
</tr>
<tr>
<td align="LEFT" height="17">4</td>
<td align="LEFT">250,1</td>
<td align="LEFT">5</td>
</tr>
<tr>
<td align="LEFT" height="17">3</td>
<td align="LEFT">206,1</td>
<td align="LEFT">4</td>
</tr>
<tr>
<td align="LEFT" height="17"></td>
<td align="LEFT"></td>
<td align="LEFT"></td>
</tr>
</tbody>
</table>
<p style="text-align: justify;"><a href="http://claw.triple6.org/wp-content/uploads/2012/03/md_raid5-bench3vs4disks_html_opc.jpg" rel="lightbox"><img title="md_raid5-bench3vs4disks_html_opc" alt="md raid5 bench3vs4disks html opc 234x300 Benchmark: md raid5   comparing 4 hard drives versus 3" src="http://claw.triple6.org/wp-content/uploads/2012/03/md_raid5-bench3vs4disks_html_opc-234x300.jpg" width="234" height="300" /></a><a href="http://claw.triple6.org/wp-content/uploads/2012/03/md_raid5-bench3vs4disks_html_ipc.jpg" rel="lightbox"><img title="md_raid5-bench3vs4disks_html_ipc" alt="md raid5 bench3vs4disks html ipc 234x300 Benchmark: md raid5   comparing 4 hard drives versus 3" src="http://claw.triple6.org/wp-content/uploads/2012/03/md_raid5-bench3vs4disks_html_ipc-234x300.jpg" width="234" height="300" /></a></p>
<p style="text-align: justify;">Per Char there are no logical changes. The fact that the proportion has turned might be an accident.</p>
<p style="text-align: justify;"><a href="http://claw.triple6.org/wp-content/uploads/2012/03/md_raid5-bench3vs4disks_html_ob.jpg" rel="lightbox"><img title="md_raid5-bench3vs4disks_html_ob" alt="md raid5 bench3vs4disks html ob 234x300 Benchmark: md raid5   comparing 4 hard drives versus 3" src="http://claw.triple6.org/wp-content/uploads/2012/03/md_raid5-bench3vs4disks_html_ob-234x300.jpg" width="234" height="300" /></a><a href="http://claw.triple6.org/wp-content/uploads/2012/03/md_raid5-bench3vs4disks_html_ib.jpg" rel="lightbox"><img title="md_raid5-bench3vs4disks_html_ib" alt="md raid5 bench3vs4disks html ib 238x300 Benchmark: md raid5   comparing 4 hard drives versus 3" src="http://claw.triple6.org/wp-content/uploads/2012/03/md_raid5-bench3vs4disks_html_ib-238x300.jpg" width="238" height="300" /></a></p>
<p style="text-align: justify;">The bars rise sensible here</p>
<p style="text-align: justify;"><a href="http://claw.triple6.org/wp-content/uploads/2012/03/md_raid5-bench3vs4disks_html_rewrite.jpg" rel="lightbox"><img title="md_raid5-bench3vs4disks_html_rewrite" alt="md raid5 bench3vs4disks html rewrite 234x300 Benchmark: md raid5   comparing 4 hard drives versus 3" src="http://claw.triple6.org/wp-content/uploads/2012/03/md_raid5-bench3vs4disks_html_rewrite-234x300.jpg" width="234" height="300" /></a><a href="http://claw.triple6.org/wp-content/uploads/2012/03/md_raid5-bench3vs4disks_html_seeks.jpg" rel="lightbox"><img title="md_raid5-bench3vs4disks_html_seeks" alt="md raid5 bench3vs4disks html seeks 234x300 Benchmark: md raid5   comparing 4 hard drives versus 3" src="http://claw.triple6.org/wp-content/uploads/2012/03/md_raid5-bench3vs4disks_html_seeks-234x300.jpg" width="234" height="300" /></a></p>
<p style="text-align: justify;">On Rewrite the factor x2 can be noticed and the Random Seeks are 40-50 more per second.</p>
<p style="text-align: justify;">Altogether you can say that the performance of the RAID has really increased a lot after attaching one more hard drive. With an input of 225.288 K/s i have exceeded the theoretical speed of Gigabit Ethernet (120 MB/s) obviously.</p>
<div class="su-linkbox" id="post-886-linkbox"><div class="su-linkbox-label">Link to this post!</div><div class="su-linkbox-field"><input type="text" value="&lt;a href=&quot;http://claw.triple6.org/linux/benchmark-md_raid5-4-festplatten-im-vergleich-zu-3-2/?lang=en&quot;&gt;Benchmark: md_raid5 &#8211; comparing 4 hard drives versus 3&lt;/a&gt;" onclick="javascript:this.select()" readonly="readonly" style="width: 100%;" /></div></div><div class='yarpp-related-rss'>
<p>Related posts:</p><ol>
<li><a href="http://claw.triple6.org/linux/festplatten-benchmark-linux-hard-drive-benchmark-linux/?lang=en" rel="bookmark" title="Hard Drive Benchmark using Linux">Hard Drive Benchmark using Linux </a></li>
<li><a href="http://claw.triple6.org/allgemein/clonezilla-modifizieren/?lang=en" rel="bookmark" title="Modify Clonezilla">Modify Clonezilla </a></li>
<li><a href="http://claw.triple6.org/allgemein/preload-der-turbo-fur-linux/?lang=en" rel="bookmark" title="Preload &#8211; Speed up your Linux">Preload &#8211; Speed up your Linux </a></li>
</ol>
</div>
]]></content:encoded>
			<wfw:commentRss>http://claw.triple6.org/linux/benchmark-md_raid5-4-festplatten-im-vergleich-zu-3-2/?lang=en/feed/&#038;lang=en</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Prelink &#8211; Speed up your Linux even more</title>
		<link>http://claw.triple6.org/linux/prelink-der-turbo-fur-linux-2/?lang=en</link>
		<comments>http://claw.triple6.org/linux/prelink-der-turbo-fur-linux-2/?lang=en#comments</comments>
		<pubDate>Wed, 21 Mar 2012 10:47:54 +0000</pubDate>
		<dc:creator><![CDATA[claw]]></dc:creator>
				<category><![CDATA[Deutsch]]></category>
		<category><![CDATA[English]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[shell]]></category>
		<category><![CDATA[ubuntu-planet]]></category>
		<category><![CDATA[Cache]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[Effekt]]></category>
		<category><![CDATA[fast]]></category>
		<category><![CDATA[Gnome]]></category>
		<category><![CDATA[kde]]></category>
		<category><![CDATA[libraries]]></category>
		<category><![CDATA[load]]></category>
		<category><![CDATA[prelink]]></category>
		<category><![CDATA[preload]]></category>
		<category><![CDATA[Programm]]></category>
		<category><![CDATA[ram]]></category>
		<category><![CDATA[sbin]]></category>
		<category><![CDATA[speed]]></category>
		<category><![CDATA[speedup]]></category>
		<category><![CDATA[Turbo]]></category>
		<category><![CDATA[with]]></category>

		<guid isPermaLink="false">http://claw.triple6.org/?p=785</guid>
		<description><![CDATA[Last week i posted an article about the application Preload and how you can use it to tune the startup of applications impressively. While researching on Preload i found another way for tuning my system even more with a similar &#8230; <a href="http://claw.triple6.org/linux/prelink-der-turbo-fur-linux-2/?lang=en">Continue reading <span class="meta-nav">&#8594;</span></a><div class='yarpp-related-rss'>

Related posts:<ol>
<li><a href="http://claw.triple6.org/allgemein/preload-der-turbo-fur-linux/?lang=en" rel="bookmark" title="Preload &#8211; Speed up your Linux">Preload &#8211; Speed up your Linux </a></li>
<li><a href="http://claw.triple6.org/linux/festplatten-benchmark-linux-hard-drive-benchmark-linux/?lang=en" rel="bookmark" title="Hard Drive Benchmark using Linux">Hard Drive Benchmark using Linux </a></li>
<li><a href="http://claw.triple6.org/linux/hanvon-art-master/?lang=en" rel="bookmark" title="Hanvon Art Master Driver for Linux">Hanvon Art Master Driver for Linux </a></li>
</ol>
</div>
]]></description>
				<content:encoded><![CDATA[<p style="text-align: justify;"><a title="Preload – Speed up your Linux" href="http://claw.triple6.org/linux/preload-speed-linux/"><img class="alignright" title="tux" alt="tux Prelink   Speed up your Linux even more" src="http://claw.triple6.org/wp-content/uploads/2011/02/tux.png" width="128" height="150" />Last week i posted an article about the application Preload and how you can use it to tune the startup of applications impressively.</a> While researching on Preload i found another way for tuning my system even more with a similar technique. Lets talk about Prelink:</p>
<p style="text-align: justify;"><span id="more-785"></span></p>
<p style="text-align: justify;">Like Preload, Prelink is loading the files that are required for applications into RAM in order to load them faster than from a hard drive.</p>
<p style="text-align: justify;">Unlike Preload Prelink has its focus on the required Libraries. The way files are cached is different too. But let me explain:</p>
<p style="text-align: justify;">Libraries are cached to RAM and attached to an unique  memory address. The effect on doing this is that the files are accessible much faster. This tunes the startup of application sensible ( i would say about 30% ) because the dynamic linker does not need to fetch the often used libraries from hard drive and can find them much faster.</p>
<p style="text-align: justify;">This effect is most qualified for applications that need to access many libraries. Like KDE and Gnome too.</p>
<p id="firstHeading" style="text-align: justify;">Apple named it Prebinding, Microsoft named it Prefetcher.</p>
<p style="text-align: justify;">You can install Prelink on Debian and Co. by typing</p>
<pre class="crayon-plain-tag">apt-get install prelink</pre>
<p style="text-align: justify;">to prompt. After installation is finished you will have to enable prelinking by editing following file:</p>
<pre class="crayon-plain-tag">editor /etc/default/prelink</pre>
<p style="text-align: justify;">change the value of <strong>&#8216;PRELINKING&#8217;</strong> to <strong>&#8216;yes&#8217;</strong>. Like that:</p>
<pre class="crayon-plain-tag"># Set this to no to disable prelinking altogether
# or to yes to enable it. Any other value will
# make prelink do nothing.
# (if you change this from yes to no prelink -ua
# will be run next night to undo prelinking)
PRELINKING=yes # Fill in 'yes' here</pre>
<p style="text-align: justify;">When this is done the prelink daemon will fetch informations about used libraries. What actually is cached can be shown by running:</p>
<pre class="crayon-plain-tag">prelink -p</pre>
<p style="text-align: justify;">The configuration is stored here:</p>
<pre class="crayon-plain-tag">/etc/prelink.conf</pre>
<p style="text-align: justify;">The files contains paths that are involved or not:</p>
<pre class="crayon-plain-tag"># This config file contains a list of directories both with binaries
# and libraries prelink should consider by default.
# If a directory name is prefixed with `-l ', the directory hierarchy
# will be walked as long as filesystem boundaries are not crossed.
# If a directory name is prefixed with `-h ', symbolic links in a
# directory hierarchy are followed.
# Directories or files with `-b ' prefix will be blacklisted.
-b *.la
-b *.png
-b *.py
-b *.pl
-b *.pm
-b *.sh
-b *.xml
-b *.xslt
-b *.a
-b *.js
-b /lib/modules
-b /usr/lib/locale
-l /usr/local/sbin
-l /sbin
-l /usr/sbin
-l /usr/local/bin
-l /bin
-l /usr/bin
-l /usr/X11R6/bin
-l /usr/games
-l /usr/local/lib
-l /lib
-l /usr/lib
-l /usr/X11R6/lib</pre>
<p style="text-align: justify;">This file wont need any modification, unless in some special cases e.g. if huge files will be cached or some impotent wont.</p>
<p style="text-align: justify;">It would be great if you can give any feedback on how efficient <a title="Preload – Speed up your Linux" href="http://claw.triple6.org/linux/preload-speed-linux/">Preload</a> or Prelink was for you. Feel free to leave a comment. <img src="http://claw.triple6.org/wp-includes/images/smilies/icon_smile.gif" alt="icon smile Prelink   Speed up your Linux even more" class="wp-smiley" title="Prelink   Speed up your Linux even more" /> </p>
<div class="su-linkbox" id="post-785-linkbox"><div class="su-linkbox-label">Link to this post!</div><div class="su-linkbox-field"><input type="text" value="&lt;a href=&quot;http://claw.triple6.org/linux/prelink-der-turbo-fur-linux-2/?lang=en&quot;&gt;Prelink &#8211; Speed up your Linux even more&lt;/a&gt;" onclick="javascript:this.select()" readonly="readonly" style="width: 100%;" /></div></div><div class='yarpp-related-rss'>
<p>Related posts:</p><ol>
<li><a href="http://claw.triple6.org/allgemein/preload-der-turbo-fur-linux/?lang=en" rel="bookmark" title="Preload &#8211; Speed up your Linux">Preload &#8211; Speed up your Linux </a></li>
<li><a href="http://claw.triple6.org/linux/festplatten-benchmark-linux-hard-drive-benchmark-linux/?lang=en" rel="bookmark" title="Hard Drive Benchmark using Linux">Hard Drive Benchmark using Linux </a></li>
<li><a href="http://claw.triple6.org/linux/hanvon-art-master/?lang=en" rel="bookmark" title="Hanvon Art Master Driver for Linux">Hanvon Art Master Driver for Linux </a></li>
</ol>
</div>
]]></content:encoded>
			<wfw:commentRss>http://claw.triple6.org/linux/prelink-der-turbo-fur-linux-2/?lang=en/feed/&#038;lang=en</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Preload &#8211; Speed up your Linux</title>
		<link>http://claw.triple6.org/allgemein/preload-der-turbo-fur-linux/?lang=en</link>
		<comments>http://claw.triple6.org/allgemein/preload-der-turbo-fur-linux/?lang=en#comments</comments>
		<pubDate>Tue, 13 Mar 2012 16:32:50 +0000</pubDate>
		<dc:creator><![CDATA[claw]]></dc:creator>
				<category><![CDATA[allgemein]]></category>
		<category><![CDATA[Deutsch]]></category>
		<category><![CDATA[English]]></category>
		<category><![CDATA[gui]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[shell]]></category>
		<category><![CDATA[ubuntu-planet]]></category>
		<category><![CDATA[besser]]></category>
		<category><![CDATA[chache]]></category>
		<category><![CDATA[Gbit]]></category>
		<category><![CDATA[Hintergrund]]></category>
		<category><![CDATA[preload]]></category>
		<category><![CDATA[Programm]]></category>
		<category><![CDATA[programme]]></category>
		<category><![CDATA[Prozesse]]></category>
		<category><![CDATA[ram]]></category>
		<category><![CDATA[schneller]]></category>
		<category><![CDATA[speedup]]></category>
		<category><![CDATA[start]]></category>
		<category><![CDATA[startzeit]]></category>
		<category><![CDATA[Turbo]]></category>

		<guid isPermaLink="false">http://claw.triple6.org/?p=753</guid>
		<description><![CDATA[Preadload is a daemon that runs in background of your system just as every daemon does. This daemon creates statistics of your process and application usage. And that is all that is need for speeding up the start of applications &#8230; <a href="http://claw.triple6.org/allgemein/preload-der-turbo-fur-linux/?lang=en">Continue reading <span class="meta-nav">&#8594;</span></a><div class='yarpp-related-rss'>

Related posts:<ol>
<li><a href="http://claw.triple6.org/linux/festplatten-benchmark-linux-hard-drive-benchmark-linux/?lang=en" rel="bookmark" title="Hard Drive Benchmark using Linux">Hard Drive Benchmark using Linux </a></li>
<li><a href="http://claw.triple6.org/linux/ssh-verbindung-uber-einen-proxyserver/?lang=en" rel="bookmark" title="SSH : Connect using a proxy">SSH : Connect using a proxy </a></li>
<li><a href="http://claw.triple6.org/linux/hanvon-art-master/?lang=en" rel="bookmark" title="Hanvon Art Master Driver for Linux">Hanvon Art Master Driver for Linux </a></li>
</ol>
</div>
]]></description>
				<content:encoded><![CDATA[<p style="text-align: justify;"><a title="Preload – Der Turbo für Linux" href="http://claw.triple6.org/allgemein/preload-der-turbo-fur-linux/"><img class=" wp-image-155 alignright" title="tux" alt="tux Preload   Speed up your Linux" src="http://claw.triple6.org/wp-content/uploads/2011/02/tux.png" width="129" height="150" /></a>Preadload is a daemon that runs in background of your system just as every daemon does.</p>
<p style="text-align: justify;">This daemon creates statistics of your process and application usage. And that is all that is need for speeding up the start of applications by about 50%.</p>
<p style="text-align: justify;">Preload is one of the applications i usually install right after setting up a new desktop distribution. Die effect on the response time of a system is clearly observable. Everything goes faster an makes much more fun :).</p>
<p style="text-align: justify;"><span id="more-753"></span></p>
<p style="text-align: justify;">The clou is about the caching process, which loads everything that is need for your most used applications into the RAM. Thus the needed files can be loaded from RAM and not from hard drive.</p>
<p style="text-align: justify;">Memory like DDR3-1333 RAM has a throughput of 84,8 Gbit/s while a hard drive has ~0,8 Gbit/s. Access times for RAM are in nanosecond range while hard drives are about 9 milliseconds.</p>
<p style="text-align: justify;">The reason why this better for loading applications should be clear to everyone.</p>
<p style="text-align: justify;">You can install preload on Debian and Co. by executing:</p>
<pre class="crayon-plain-tag">apt-get install preload</pre>
<p style="text-align: justify;">Further configuration is not needed but if want to have a look anyway refer</p>
<pre class="crayon-plain-tag">/etc/preload.conf</pre>
<p style="text-align: justify;"><strong>Be careful with the value of &#8216;cycle&#8217;. Do not set it too low.</strong></p>
<p style="text-align: justify;">preload will reduce the speed of your system on boot because the daemon has to be loaded and the cache needs to be collected. But the log in to your environment will be faster because it is already cached into RAM.</p>
<p style="text-align: justify;">With default settings preload uses maximal 50% of your <strong>free</strong> memory. Therefore there will never be an overflow and the more RAM you have the better preload can cache. But in my experience 4 gigabyte of RAM will be more than enough.</p>
<div class="su-linkbox" id="post-753-linkbox"><div class="su-linkbox-label">Link to this post!</div><div class="su-linkbox-field"><input type="text" value="&lt;a href=&quot;http://claw.triple6.org/allgemein/preload-der-turbo-fur-linux/?lang=en&quot;&gt;Preload &#8211; Speed up your Linux&lt;/a&gt;" onclick="javascript:this.select()" readonly="readonly" style="width: 100%;" /></div></div><div class='yarpp-related-rss'>
<p>Related posts:</p><ol>
<li><a href="http://claw.triple6.org/linux/festplatten-benchmark-linux-hard-drive-benchmark-linux/?lang=en" rel="bookmark" title="Hard Drive Benchmark using Linux">Hard Drive Benchmark using Linux </a></li>
<li><a href="http://claw.triple6.org/linux/ssh-verbindung-uber-einen-proxyserver/?lang=en" rel="bookmark" title="SSH : Connect using a proxy">SSH : Connect using a proxy </a></li>
<li><a href="http://claw.triple6.org/linux/hanvon-art-master/?lang=en" rel="bookmark" title="Hanvon Art Master Driver for Linux">Hanvon Art Master Driver for Linux </a></li>
</ol>
</div>
]]></content:encoded>
			<wfw:commentRss>http://claw.triple6.org/allgemein/preload-der-turbo-fur-linux/?lang=en/feed/&#038;lang=en</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SSH : Connect using a proxy</title>
		<link>http://claw.triple6.org/linux/ssh-verbindung-uber-einen-proxyserver/?lang=en</link>
		<comments>http://claw.triple6.org/linux/ssh-verbindung-uber-einen-proxyserver/?lang=en#comments</comments>
		<pubDate>Thu, 16 Feb 2012 14:17:49 +0000</pubDate>
		<dc:creator><![CDATA[claw]]></dc:creator>
				<category><![CDATA[bash]]></category>
		<category><![CDATA[Deutsch]]></category>
		<category><![CDATA[English]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[shell]]></category>
		<category><![CDATA[ubuntu-planet]]></category>
		<category><![CDATA[corkscrew]]></category>
		<category><![CDATA[Editor]]></category>
		<category><![CDATA[glichkeit]]></category>
		<category><![CDATA[Programm]]></category>
		<category><![CDATA[proxy]]></category>
		<category><![CDATA[Proxyserver]]></category>
		<category><![CDATA[SSH]]></category>
		<category><![CDATA[tor]]></category>
		<category><![CDATA[tunnel]]></category>
		<category><![CDATA[Verbindung]]></category>

		<guid isPermaLink="false">http://claw.triple6.org/?p=704</guid>
		<description><![CDATA[Open-SSH has not nativ support for using a proxy to connect. Using the application &#8216;corksrew&#8217; it is possible anyway. Usage is easy. First you will need to install corksrew. Using distributions that are based on Debian (like Ubuntu) just run &#8230; <a href="http://claw.triple6.org/linux/ssh-verbindung-uber-einen-proxyserver/?lang=en">Continue reading <span class="meta-nav">&#8594;</span></a><div class='yarpp-related-rss'>

Related posts:<ol>
<li><a href="http://claw.triple6.org/linux/geteilte-screen-session-fur-prasentation-und-support/?lang=en" rel="bookmark" title="Shared Screen session for presentation and support usage">Shared Screen session for presentation and support usage </a></li>
<li><a href="http://claw.triple6.org/linux/taskwarrior-mein-task-switch-zum-schnellen-wechseln-zwichen-mehreren-datenbanken/?lang=en" rel="bookmark" title="Taskwarrior: My task-switch for fast switching between multiple databases">Taskwarrior: My task-switch for fast switching between multiple databases </a></li>
<li><a href="http://claw.triple6.org/linux/systembackup-mit-rsync/?lang=en" rel="bookmark" title="Systembackup using rsync">Systembackup using rsync </a></li>
</ol>
</div>
]]></description>
				<content:encoded><![CDATA[<p style="text-align: justify;"><a href="http://claw.triple6.org/wp-content/uploads/2012/02/logo_openssh_meego.png" rel="lightbox"><img class="alignright" title="logo_openssh_meego" alt="logo openssh meego SSH : Connect using a proxy" src="http://claw.triple6.org/wp-content/uploads/2012/02/logo_openssh_meego.png" width="150" height="148" /></a>Open-SSH has not nativ support for using a proxy to connect.<br />
Using the application &#8216;corksrew&#8217; it is possible anyway.</p>
<p style="text-align: justify;"><span id="more-704"></span></p>
<p style="text-align: justify;">Usage is easy. First you will need to install corksrew. Using distributions that are based on Debian (like Ubuntu) just run</p>
<pre class="crayon-plain-tag">apt-get install corkscrew</pre>
<p style="text-align: justify;">in commandline.<br />
After the installation is done we have to add the proxy server to the ssh config &#8211; Start your editor of choice using:</p>
<pre class="crayon-plain-tag">editor /etc/ssh/ssh_config</pre>
<p style="text-align: justify;">and add a line which looks (in my case) like that:</p>
<pre class="crayon-plain-tag">ProxyCommand corkscrew &lt;strong&gt;localhost 8118&lt;/strong&gt; %h %p</pre>
<p style="text-align: justify;">I am using Tor which runs on my local machine (therefore i used &#8216;localhost&#8217;) on port 8118.<br />
You will have to modify those value fitting to your setup.</p>
<div class="su-linkbox" id="post-704-linkbox"><div class="su-linkbox-label">Link to this post!</div><div class="su-linkbox-field"><input type="text" value="&lt;a href=&quot;http://claw.triple6.org/linux/ssh-verbindung-uber-einen-proxyserver/?lang=en&quot;&gt;SSH : Connect using a proxy&lt;/a&gt;" onclick="javascript:this.select()" readonly="readonly" style="width: 100%;" /></div></div><div class='yarpp-related-rss'>
<p>Related posts:</p><ol>
<li><a href="http://claw.triple6.org/linux/geteilte-screen-session-fur-prasentation-und-support/?lang=en" rel="bookmark" title="Shared Screen session for presentation and support usage">Shared Screen session for presentation and support usage </a></li>
<li><a href="http://claw.triple6.org/linux/taskwarrior-mein-task-switch-zum-schnellen-wechseln-zwichen-mehreren-datenbanken/?lang=en" rel="bookmark" title="Taskwarrior: My task-switch for fast switching between multiple databases">Taskwarrior: My task-switch for fast switching between multiple databases </a></li>
<li><a href="http://claw.triple6.org/linux/systembackup-mit-rsync/?lang=en" rel="bookmark" title="Systembackup using rsync">Systembackup using rsync </a></li>
</ol>
</div>
]]></content:encoded>
			<wfw:commentRss>http://claw.triple6.org/linux/ssh-verbindung-uber-einen-proxyserver/?lang=en/feed/&#038;lang=en</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Synchronize Taskwarrior and other files using Dropbox</title>
		<link>http://claw.triple6.org/linux/taskwarrior-und-andere-dateien-hilfe-von-dropbox-synchronisieren/?lang=en</link>
		<comments>http://claw.triple6.org/linux/taskwarrior-und-andere-dateien-hilfe-von-dropbox-synchronisieren/?lang=en#comments</comments>
		<pubDate>Wed, 01 Feb 2012 12:08:29 +0000</pubDate>
		<dc:creator><![CDATA[claw]]></dc:creator>
				<category><![CDATA[Deutsch]]></category>
		<category><![CDATA[English]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[shell]]></category>
		<category><![CDATA[ubuntu-planet]]></category>
		<category><![CDATA[Dropbox]]></category>
		<category><![CDATA[Funktioniert]]></category>
		<category><![CDATA[konfiguration]]></category>
		<category><![CDATA[Lösung]]></category>
		<category><![CDATA[ordner]]></category>
		<category><![CDATA[Privat]]></category>
		<category><![CDATA[Referenzen]]></category>
		<category><![CDATA[Symbolische]]></category>
		<category><![CDATA[synchron]]></category>
		<category><![CDATA[synchronisieren]]></category>
		<category><![CDATA[Task]]></category>
		<category><![CDATA[Taskwarrior]]></category>
		<category><![CDATA[Verzeichnis]]></category>
		<category><![CDATA[verzeichniss]]></category>
		<category><![CDATA[Weise]]></category>

		<guid isPermaLink="false">http://claw.triple6.org/?p=690</guid>
		<description><![CDATA[This is may not the usual way to do it but it just works and you are able to synchronize folders and files that are native not synchronize-able by Dropbox, even if they are not in your homes Dropbox-Folder. I &#8230; <a href="http://claw.triple6.org/linux/taskwarrior-und-andere-dateien-hilfe-von-dropbox-synchronisieren/?lang=en">Continue reading <span class="meta-nav">&#8594;</span></a><div class='yarpp-related-rss'>

Related posts:<ol>
<li><a href="http://claw.triple6.org/linux/taskwarrior-mein-task-switch-zum-schnellen-wechseln-zwichen-mehreren-datenbanken/?lang=en" rel="bookmark" title="Taskwarrior: My task-switch for fast switching between multiple databases">Taskwarrior: My task-switch for fast switching between multiple databases </a></li>
<li><a href="http://claw.triple6.org/linux/taskwarrior-tasks-auflisten-beim-aufruf-des-terminals/?lang=en" rel="bookmark" title="Taskwarrior: List tasks when opening a terminal">Taskwarrior: List tasks when opening a terminal </a></li>
<li><a href="http://claw.triple6.org/linux/systembackup-mit-rsync/?lang=en" rel="bookmark" title="Systembackup using rsync">Systembackup using rsync </a></li>
</ol>
</div>
]]></description>
				<content:encoded><![CDATA[<p style="text-align: justify;"><img class="alignright size-full wp-image-580" title="Taskwarrior_logo" alt="Taskwarrior logo Synchronize Taskwarrior and other files using Dropbox" src="http://claw.triple6.org/wp-content/uploads/2012/01/Taskwarrior_logo.png" width="110" height="110" />This is may not the usual way to do it but it just works and you are able to synchronize folders and files that are native not synchronize-able by Dropbox, even if they are not in your homes Dropbox-Folder.<br />
<span id="more-690"></span></p>
<p style="text-align: justify;">I use symbolic links to do that. Those links are just an reference to an existing files. That means that both files coexist.</p>
<ul style="text-align: justify;">
<li>If you modify A you will modify B as well.</li>
</ul>
<p style="text-align: justify;">In order to give you an example i will list how you can sync the databases of Taskwarrior using Dropbox:</p>
<p style="text-align: justify;">You will have to create a softlink of a file you want to be synced to another,</p>
<pre class="crayon-plain-tag">ln -s ~/.task ~/DropBox/Private/</pre>
<p style="text-align: justify;">this will create that link of &#8220;.task&#8221; to the private folder of Dropbox.</p>
<p style="text-align: justify;">Now we need to link the file in the privat Dropbox folder to our local files on the second machine ( so just the other way around <img src="http://claw.triple6.org/wp-includes/images/smilies/icon_wink.gif" alt="icon wink Synchronize Taskwarrior and other files using Dropbox" class="wp-smiley" title="Synchronize Taskwarrior and other files using Dropbox" />  ):</p>
<pre class="crayon-plain-tag">ln -s ~/DropBox/Private/ ~/.task</pre>
<p style="text-align: justify;">Thats it. Linking files that way you are able to sync just everything and put it on its right place.</p>
<p style="text-align: justify;">Try it and enjoy!</p>
<div class="su-linkbox" id="post-690-linkbox"><div class="su-linkbox-label">Link to this post!</div><div class="su-linkbox-field"><input type="text" value="&lt;a href=&quot;http://claw.triple6.org/linux/taskwarrior-und-andere-dateien-hilfe-von-dropbox-synchronisieren/?lang=en&quot;&gt;Synchronize Taskwarrior and other files using Dropbox&lt;/a&gt;" onclick="javascript:this.select()" readonly="readonly" style="width: 100%;" /></div></div><div class='yarpp-related-rss'>
<p>Related posts:</p><ol>
<li><a href="http://claw.triple6.org/linux/taskwarrior-mein-task-switch-zum-schnellen-wechseln-zwichen-mehreren-datenbanken/?lang=en" rel="bookmark" title="Taskwarrior: My task-switch for fast switching between multiple databases">Taskwarrior: My task-switch for fast switching between multiple databases </a></li>
<li><a href="http://claw.triple6.org/linux/taskwarrior-tasks-auflisten-beim-aufruf-des-terminals/?lang=en" rel="bookmark" title="Taskwarrior: List tasks when opening a terminal">Taskwarrior: List tasks when opening a terminal </a></li>
<li><a href="http://claw.triple6.org/linux/systembackup-mit-rsync/?lang=en" rel="bookmark" title="Systembackup using rsync">Systembackup using rsync </a></li>
</ol>
</div>
]]></content:encoded>
			<wfw:commentRss>http://claw.triple6.org/linux/taskwarrior-und-andere-dateien-hilfe-von-dropbox-synchronisieren/?lang=en/feed/&#038;lang=en</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Taskwarrior: List tasks when opening a terminal</title>
		<link>http://claw.triple6.org/linux/taskwarrior-tasks-auflisten-beim-aufruf-des-terminals/?lang=en</link>
		<comments>http://claw.triple6.org/linux/taskwarrior-tasks-auflisten-beim-aufruf-des-terminals/?lang=en#comments</comments>
		<pubDate>Mon, 30 Jan 2012 18:20:44 +0000</pubDate>
		<dc:creator><![CDATA[claw]]></dc:creator>
				<category><![CDATA[bash]]></category>
		<category><![CDATA[Deutsch]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[shell]]></category>
		<category><![CDATA[Aufgabe]]></category>
		<category><![CDATA[Aufruf]]></category>
		<category><![CDATA[ausführen]]></category>
		<category><![CDATA[Faul]]></category>
		<category><![CDATA[Ich bin von Natur]]></category>
		<category><![CDATA[Natur]]></category>
		<category><![CDATA[pending]]></category>
		<category><![CDATA[Shell]]></category>
		<category><![CDATA[start]]></category>
		<category><![CDATA[Task]]></category>
		<category><![CDATA[task calendar]]></category>
		<category><![CDATA[task summary]]></category>
		<category><![CDATA[Tasks]]></category>
		<category><![CDATA[Taskwarrior]]></category>
		<category><![CDATA[terminal]]></category>
		<category><![CDATA[Terminals]]></category>
		<category><![CDATA[todo]]></category>

		<guid isPermaLink="false">http://claw.triple6.org/?p=663</guid>
		<description><![CDATA[Originally i am a lazy dude and i do not want to be reminded of my pending tasks. That is why i am not forcing my self often to type &#8216;task&#8217; into the terminal. In order to solve that problem &#8230; <a href="http://claw.triple6.org/linux/taskwarrior-tasks-auflisten-beim-aufruf-des-terminals/?lang=en">Continue reading <span class="meta-nav">&#8594;</span></a><div class='yarpp-related-rss'>

Related posts:<ol>
<li><a href="http://claw.triple6.org/linux/taskwarrior-mein-task-switch-zum-schnellen-wechseln-zwichen-mehreren-datenbanken/?lang=en" rel="bookmark" title="Taskwarrior: My task-switch for fast switching between multiple databases">Taskwarrior: My task-switch for fast switching between multiple databases </a></li>
<li><a href="http://claw.triple6.org/linux/geteilte-screen-session-fur-prasentation-und-support/?lang=en" rel="bookmark" title="Shared Screen session for presentation and support usage">Shared Screen session for presentation and support usage </a></li>
<li><a href="http://claw.triple6.org/linux/sabnzbd-als-daemon-beim-boot-starten-lassen-autostart/?lang=en" rel="bookmark" title="sabnzbd: Start as daemon while booting (auto start)">sabnzbd: Start as daemon while booting (auto start) </a></li>
</ol>
</div>
]]></description>
				<content:encoded><![CDATA[<p style="text-align: justify;"><a href="http://claw.triple6.org/wp-content/uploads/2012/01/Taskwarrior_logo.png"><img class="alignright" title="Taskwarrior_logo" alt="Taskwarrior logo Taskwarrior: List tasks when opening a terminal" src="http://claw.triple6.org/wp-content/uploads/2012/01/Taskwarrior_logo.png" width="110" height="110" /></a>Originally i am a lazy dude and i do not want to be reminded of my pending tasks. That is why i am not forcing my self often to type &#8216;task&#8217; into the terminal.</p>
<p style="text-align: justify;">In order to solve that problem i had to think about a solution that will constantly remind me of my pending tasks and forces me to complete them.</p>
<p style="text-align: justify;"><span id="more-663"></span></p>
<p style="text-align: justify;">I decided that the way to do is to call task every time i open a terminal (Konsole for KDE).</p>
<p style="text-align: justify;">I added the following two lines to the .bashrc in my home directory:</p>
<pre class="crayon-plain-tag">alias todo='task calendar ; task ; task summary'
todo</pre>
<p style="text-align: justify;">The first line defines a new alias named &#8216;todo&#8217;. When &#8216;todo&#8217; is executed it actually start &#8216;task calendar&#8217;, &#8216;task&#8217; and &#8216;task summary&#8217; in a row. The second line executes todo when starting a bash.</p>
<p style="text-align: justify;">That could like this:</p>
<p style="text-align: justify;"><a href="http://claw.triple6.org/wp-content/uploads/2012/01/Bildschirmfoto5.png" rel="lightbox"><img class="wp-image-664 aligncenter" title="taskwarrior" alt="Bildschirmfoto5 Taskwarrior: List tasks when opening a terminal" src="http://claw.triple6.org/wp-content/uploads/2012/01/Bildschirmfoto5.png" width="1358" height="582" /></a></p>
<div class="su-linkbox" id="post-663-linkbox"><div class="su-linkbox-label">Link to this post!</div><div class="su-linkbox-field"><input type="text" value="&lt;a href=&quot;http://claw.triple6.org/linux/taskwarrior-tasks-auflisten-beim-aufruf-des-terminals/?lang=en&quot;&gt;Taskwarrior: List tasks when opening a terminal&lt;/a&gt;" onclick="javascript:this.select()" readonly="readonly" style="width: 100%;" /></div></div><div class='yarpp-related-rss'>
<p>Related posts:</p><ol>
<li><a href="http://claw.triple6.org/linux/taskwarrior-mein-task-switch-zum-schnellen-wechseln-zwichen-mehreren-datenbanken/?lang=en" rel="bookmark" title="Taskwarrior: My task-switch for fast switching between multiple databases">Taskwarrior: My task-switch for fast switching between multiple databases </a></li>
<li><a href="http://claw.triple6.org/linux/geteilte-screen-session-fur-prasentation-und-support/?lang=en" rel="bookmark" title="Shared Screen session for presentation and support usage">Shared Screen session for presentation and support usage </a></li>
<li><a href="http://claw.triple6.org/linux/sabnzbd-als-daemon-beim-boot-starten-lassen-autostart/?lang=en" rel="bookmark" title="sabnzbd: Start as daemon while booting (auto start)">sabnzbd: Start as daemon while booting (auto start) </a></li>
</ol>
</div>
]]></content:encoded>
			<wfw:commentRss>http://claw.triple6.org/linux/taskwarrior-tasks-auflisten-beim-aufruf-des-terminals/?lang=en/feed/&#038;lang=en</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Shared Screen session for presentation and support usage</title>
		<link>http://claw.triple6.org/linux/geteilte-screen-session-fur-prasentation-und-support/?lang=en</link>
		<comments>http://claw.triple6.org/linux/geteilte-screen-session-fur-prasentation-und-support/?lang=en#comments</comments>
		<pubDate>Tue, 24 Jan 2012 11:47:28 +0000</pubDate>
		<dc:creator><![CDATA[claw]]></dc:creator>
				<category><![CDATA[Deutsch]]></category>
		<category><![CDATA[English]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[shell]]></category>
		<category><![CDATA[acladd]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[console]]></category>
		<category><![CDATA[gemeinsam]]></category>
		<category><![CDATA[geteilt]]></category>
		<category><![CDATA[konsole]]></category>
		<category><![CDATA[präsentation]]></category>
		<category><![CDATA[remote]]></category>
		<category><![CDATA[Screen]]></category>
		<category><![CDATA[Screen Session]]></category>
		<category><![CDATA[screenrc]]></category>
		<category><![CDATA[Share]]></category>
		<category><![CDATA[Shell]]></category>
		<category><![CDATA[Sitzung]]></category>
		<category><![CDATA[SSH]]></category>
		<category><![CDATA[Teilen]]></category>
		<category><![CDATA[terminal]]></category>
		<category><![CDATA[This Article]]></category>
		<category><![CDATA[User]]></category>
		<category><![CDATA[zusammen]]></category>

		<guid isPermaLink="false">http://claw.triple6.org/?p=617</guid>
		<description><![CDATA[Have you ever been wondering if there is a way to join someones shell, terminal, command line (or what ever you would name it) remotely ? Here is the solution: First you will need the application &#8220;screen&#8221;. It will emulate &#8230; <a href="http://claw.triple6.org/linux/geteilte-screen-session-fur-prasentation-und-support/?lang=en">Continue reading <span class="meta-nav">&#8594;</span></a><div class='yarpp-related-rss'>

Related posts:<ol>
<li><a href="http://claw.triple6.org/linux/taskwarrior-mein-task-switch-zum-schnellen-wechseln-zwichen-mehreren-datenbanken/?lang=en" rel="bookmark" title="Taskwarrior: My task-switch for fast switching between multiple databases">Taskwarrior: My task-switch for fast switching between multiple databases </a></li>
<li><a href="http://claw.triple6.org/allgemein/clonezilla-modifizieren/?lang=en" rel="bookmark" title="Modify Clonezilla">Modify Clonezilla </a></li>
<li><a href="http://claw.triple6.org/linux/systembackup-mit-rsync/?lang=en" rel="bookmark" title="Systembackup using rsync">Systembackup using rsync </a></li>
</ol>
</div>
]]></description>
				<content:encoded><![CDATA[<p style="text-align: justify;">Have you ever been wondering if there is a way to join someones shell, terminal, command line (or what ever you would name it) remotely ?<br />
Here is the solution:</p>
<p style="text-align: justify;"><span id="more-617"></span></p>
<p style="text-align: justify;">First you will need the application &#8220;screen&#8221;. It will emulate a terminal (just as konsole, gterminal und other do).</p>
<pre class="crayon-plain-tag">apt-get install screen</pre>
<p style="text-align: justify;">Modify the permissions and SUID Bit in order to make screen executable to any user.<br />
<em>It is /usr/bin/screen for Debian. If it is not for your distribution you can find the binary using: </em></p>
<pre class="crayon-plain-tag">whereis screen</pre>
<pre class="crayon-plain-tag">chmod +s /usr/bin/screen
chmod 755 /var/run/screen</pre>
<p style="text-align: justify;">We need a local user who will be able to log in and work on our shell. For security reasons you better set it up with a restricted Bash in which he wont be able to leave his home directory.</p>
<pre class="crayon-plain-tag">adduser --system --shell /bin/rbash &lt;em&gt;&lt;strong&gt;USERNAME&lt;/strong&gt;&lt;/em&gt;</pre>
<p style="text-align: justify;">and add a password</p>
<pre class="crayon-plain-tag">passwd &lt;em&gt;&lt;strong&gt;USERNAME&lt;/strong&gt;&lt;/em&gt;</pre>
<p style="text-align: justify;">Now your friend is able to connect to your machine using SSH:</p>
<pre class="crayon-plain-tag">ssh &lt;em&gt;&lt;strong&gt;USERNAME&lt;/strong&gt;&lt;/em&gt;@&lt;strong&gt;&lt;em&gt;YOUR-IP/HOSTNAME/DYNDNS&lt;/em&gt;&lt;/strong&gt;</pre>
<p style="text-align: justify;">In order to allow him joining your screen session you will have to edit /etc/screenrc</p>
<pre class="crayon-plain-tag">editor /etc/screenrc</pre>
<p style="text-align: justify;">Add the following lines to the &#8220;SCREEN SETTINGS&#8221; block:</p>
<pre class="crayon-plain-tag">multiuser on
acladd &lt;strong&gt;&lt;em&gt;USERNAME&lt;/em&gt;&lt;/strong&gt;</pre>
<p style="text-align: justify;"><em>acladd defines the user who will be able to join and type into your shell (So you are able to insert more users). </em></p>
<p style="text-align: justify;">Start a screen session:</p>
<pre class="crayon-plain-tag">screen -S &lt;strong&gt;&lt;em&gt;SESSION-NAME&lt;/em&gt;&lt;/strong&gt;</pre>
<p style="text-align: justify;">Your friend can now join that session using</p>
<pre class="crayon-plain-tag">screen -x &lt;strong&gt;&lt;em&gt;YOUR-USERNAME&lt;/em&gt;&lt;/strong&gt;/&lt;strong&gt;&lt;em&gt;SESSION-NAME&lt;/em&gt;&lt;/strong&gt;</pre>
<p style="text-align: justify;">If this wont work for you &#8211; Feel free to ask</p>
<div class="su-linkbox" id="post-617-linkbox"><div class="su-linkbox-label">Link to this post!</div><div class="su-linkbox-field"><input type="text" value="&lt;a href=&quot;http://claw.triple6.org/linux/geteilte-screen-session-fur-prasentation-und-support/?lang=en&quot;&gt;Shared Screen session for presentation and support usage&lt;/a&gt;" onclick="javascript:this.select()" readonly="readonly" style="width: 100%;" /></div></div><div class='yarpp-related-rss'>
<p>Related posts:</p><ol>
<li><a href="http://claw.triple6.org/linux/taskwarrior-mein-task-switch-zum-schnellen-wechseln-zwichen-mehreren-datenbanken/?lang=en" rel="bookmark" title="Taskwarrior: My task-switch for fast switching between multiple databases">Taskwarrior: My task-switch for fast switching between multiple databases </a></li>
<li><a href="http://claw.triple6.org/allgemein/clonezilla-modifizieren/?lang=en" rel="bookmark" title="Modify Clonezilla">Modify Clonezilla </a></li>
<li><a href="http://claw.triple6.org/linux/systembackup-mit-rsync/?lang=en" rel="bookmark" title="Systembackup using rsync">Systembackup using rsync </a></li>
</ol>
</div>
]]></content:encoded>
			<wfw:commentRss>http://claw.triple6.org/linux/geteilte-screen-session-fur-prasentation-und-support/?lang=en/feed/&#038;lang=en</wfw:commentRss>
		<slash:comments></slash:comments>
		</item>
		<item>
		<title>sabnzbd: Start as daemon while booting (auto start)</title>
		<link>http://claw.triple6.org/linux/sabnzbd-als-daemon-beim-boot-starten-lassen-autostart/?lang=en</link>
		<comments>http://claw.triple6.org/linux/sabnzbd-als-daemon-beim-boot-starten-lassen-autostart/?lang=en#comments</comments>
		<pubDate>Sun, 22 Jan 2012 19:38:39 +0000</pubDate>
		<dc:creator><![CDATA[claw]]></dc:creator>
				<category><![CDATA[Deutsch]]></category>
		<category><![CDATA[English]]></category>
		<category><![CDATA[gui]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[shell]]></category>
		<category><![CDATA[Autostart]]></category>
		<category><![CDATA[boot]]></category>
		<category><![CDATA[config]]></category>
		<category><![CDATA[configuration file]]></category>
		<category><![CDATA[Daemon]]></category>
		<category><![CDATA[Dämon]]></category>
		<category><![CDATA[default location]]></category>
		<category><![CDATA[der]]></category>
		<category><![CDATA[English sabnzbdplus]]></category>
		<category><![CDATA[init script]]></category>
		<category><![CDATA[nicht]]></category>
		<category><![CDATA[nzb]]></category>
		<category><![CDATA[sab]]></category>
		<category><![CDATA[sabnzb]]></category>
		<category><![CDATA[sabnzbd]]></category>
		<category><![CDATA[sabnzbdplus]]></category>

		<guid isPermaLink="false">http://claw.triple6.org/?p=591</guid>
		<description><![CDATA[sabnzbdplus is not running after boot by default. The best way to get in running is to configure sabnzbdplus as daemon. In order to do that you will just have to add an user to the config. (/etc/default/sabnzbdplus). [crayon-53943c9307a4e083324399/] Notice &#8230; <a href="http://claw.triple6.org/linux/sabnzbd-als-daemon-beim-boot-starten-lassen-autostart/?lang=en">Continue reading <span class="meta-nav">&#8594;</span></a><div class='yarpp-related-rss'>

Related posts:<ol>
<li><a href="http://claw.triple6.org/linux/anwendung-minimiert-starten/?lang=en" rel="bookmark" title="Start applications minimized">Start applications minimized </a></li>
<li><a href="http://claw.triple6.org/allgemein/clonezilla-modifizieren/?lang=en" rel="bookmark" title="Modify Clonezilla">Modify Clonezilla </a></li>
<li><a href="http://claw.triple6.org/linux/taskwarrior-mein-task-switch-zum-schnellen-wechseln-zwichen-mehreren-datenbanken/?lang=en" rel="bookmark" title="Taskwarrior: My task-switch for fast switching between multiple databases">Taskwarrior: My task-switch for fast switching between multiple databases </a></li>
</ol>
</div>
]]></description>
				<content:encoded><![CDATA[<p style="text-align: justify;"><a href="http://claw.triple6.org/wp-content/uploads/2012/01/sab2_512.png"><img class="alignright size-thumbnail wp-image-592" title="sab2_512" alt="sab2 512 150x150 sabnzbd: Start as daemon while booting (auto start)" src="http://claw.triple6.org/wp-content/uploads/2012/01/sab2_512-150x150.png" width="150" height="150" /></a>sabnzbdplus is not running after boot by default. The best way to get in running is to configure sabnzbdplus as daemon.<br />
In order to do that you will just have to add an user to the config. <em>(/etc/default/sabnzbdplus)</em>.</p>
<p style="text-align: justify;"><span id="more-591"></span></p>
<pre class="crayon-plain-tag"># This file is sourced by /etc/init.d/sabnzbdplus
#
# When SABnzbd+ is started using the init script, the
# --daemon option is always used, and the program is
# started under the account of $USER, as set below.
#
# Each setting is marked either &quot;required&quot; or &quot;optional&quot;;
# leaving any required setting unconfigured will cause
# the service to not start.

# [required] user or uid of account to run the program as:
USER=claw #&amp;lt;--- Add username here

# [optional] full path to the configuration file of your choice;
#            otherwise, the default location (in $USER's home
#            directory) is used:
CONFIG=

# [optional] hostname/ip and port number to listen on:
HOST=
PORT=

# [optional] extra command line options, if any:
EXTRAOPTS=</pre>
<p style="text-align: justify;"><em><strong>Notice line 12</strong></em><br />
That is the user the sabnzbdplus progress will run under when booting next time. Who does not want to wait long could run:</p>
<pre class="crayon-plain-tag">/etc/init.d/sabnzbdplus start</pre>
<p style="text-align: justify;">instead.</p>
<div class="su-linkbox" id="post-591-linkbox"><div class="su-linkbox-label">Link to this post!</div><div class="su-linkbox-field"><input type="text" value="&lt;a href=&quot;http://claw.triple6.org/linux/sabnzbd-als-daemon-beim-boot-starten-lassen-autostart/?lang=en&quot;&gt;sabnzbd: Start as daemon while booting (auto start)&lt;/a&gt;" onclick="javascript:this.select()" readonly="readonly" style="width: 100%;" /></div></div><div class='yarpp-related-rss'>
<p>Related posts:</p><ol>
<li><a href="http://claw.triple6.org/linux/anwendung-minimiert-starten/?lang=en" rel="bookmark" title="Start applications minimized">Start applications minimized </a></li>
<li><a href="http://claw.triple6.org/allgemein/clonezilla-modifizieren/?lang=en" rel="bookmark" title="Modify Clonezilla">Modify Clonezilla </a></li>
<li><a href="http://claw.triple6.org/linux/taskwarrior-mein-task-switch-zum-schnellen-wechseln-zwichen-mehreren-datenbanken/?lang=en" rel="bookmark" title="Taskwarrior: My task-switch for fast switching between multiple databases">Taskwarrior: My task-switch for fast switching between multiple databases </a></li>
</ol>
</div>
]]></content:encoded>
			<wfw:commentRss>http://claw.triple6.org/linux/sabnzbd-als-daemon-beim-boot-starten-lassen-autostart/?lang=en/feed/&#038;lang=en</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Taskwarrior: My task-switch for fast switching between multiple databases</title>
		<link>http://claw.triple6.org/linux/taskwarrior-mein-task-switch-zum-schnellen-wechseln-zwichen-mehreren-datenbanken/?lang=en</link>
		<comments>http://claw.triple6.org/linux/taskwarrior-mein-task-switch-zum-schnellen-wechseln-zwichen-mehreren-datenbanken/?lang=en#comments</comments>
		<pubDate>Sat, 21 Jan 2012 20:55:24 +0000</pubDate>
		<dc:creator><![CDATA[claw]]></dc:creator>
				<category><![CDATA[bash]]></category>
		<category><![CDATA[Deutsch]]></category>
		<category><![CDATA[English]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[shell]]></category>
		<category><![CDATA[Aufgabenverwaltung]]></category>
		<category><![CDATA[bestehende Datenbank]]></category>
		<category><![CDATA[Datenbank]]></category>
		<category><![CDATA[Datenbanken]]></category>
		<category><![CDATA[location]]></category>
		<category><![CDATA[mehrere Datenbanken]]></category>
		<category><![CDATA[script]]></category>
		<category><![CDATA[Shell]]></category>
		<category><![CDATA[Task]]></category>
		<category><![CDATA[task-switch]]></category>
		<category><![CDATA[taskrc]]></category>
		<category><![CDATA[Taskwarrior]]></category>
		<category><![CDATA[User]]></category>

		<guid isPermaLink="false">http://claw.triple6.org/?p=551</guid>
		<description><![CDATA[Taskwarrior is a command-line todo list manager I use it at work and at home, but that made some problems to me. It has become very confusing which task belongs to which group of my life. Do i have to &#8230; <a href="http://claw.triple6.org/linux/taskwarrior-mein-task-switch-zum-schnellen-wechseln-zwichen-mehreren-datenbanken/?lang=en">Continue reading <span class="meta-nav">&#8594;</span></a><div class='yarpp-related-rss'>

Related posts:<ol>
<li><a href="http://claw.triple6.org/allgemein/clonezilla-modifizieren/?lang=en" rel="bookmark" title="Modify Clonezilla">Modify Clonezilla </a></li>
<li><a href="http://claw.triple6.org/coding/endlose-schleife/?lang=en" rel="bookmark" title="Endless while loop">Endless while loop </a></li>
<li><a href="http://claw.triple6.org/linux/vim-mehrere-zeilen-kommentieren-auskommentieren/?lang=en" rel="bookmark" title="Vim: Comment / Uncomment , Comment out multiple lines">Vim: Comment / Uncomment , Comment out multiple lines </a></li>
</ol>
</div>
]]></description>
				<content:encoded><![CDATA[<p style="text-align: justify;"><a href="http://claw.triple6.org/wp-content/uploads/2012/01/Taskwarrior_logo.png"><img class="alignright size-full wp-image-580" title="Taskwarrior_logo" alt="Taskwarrior logo Taskwarrior: My task switch for fast switching between multiple databases" src="http://claw.triple6.org/wp-content/uploads/2012/01/Taskwarrior_logo.png" width="110" height="110" /></a>Taskwarrior is a command-line todo list manager<br />
I use it at work and at home, but that made some problems to me. It has become very confusing which task belongs to which group of my life.<br />
Do i have to call Mr. Miller for private thing or for business ?</p>
<p style="text-align: justify;">For solving this problem i wrote a tiny bash script and i want to share it with you<br />
<span id="more-551"></span></p>
<pre class="crayon-plain-tag">#!/bin/bash
status() {
        if [[ $(grep data.location /home/$USER/.taskrc) == data.location=/home/$USER/.task/work ]]; then #Using work?
                echo &quot;Task is using WORK&quot;
        elif [[ $(grep data.location /home/$USER/.taskrc) == data.location=/home/$USER/.task/home ]]; then #Using home?
                echo &quot;Task is using HOME&quot;
        else
                echo &quot;Error&quot;
        fi
}

if [[ $1 == home ]]; then
        echo &quot;HOME activated&quot; #Activates home
        sed -i 's/^data.location=\/home\/'${USER}'\/.task\/work/data.location=\/home\/'${USER}'\/.task\/home/' /home/$USER/.taskrc
elif [[ $1 == work ]]; then
        echo &quot;Work activated&quot; #Activates work
        sed -i 's/^data.location=\/home\/'${USER}'\/.task\/home/data.location=\/home\/'${USER}'\/.task\/work/' /home/$USER/.taskrc
else
        status
fi
exit 0</pre>
<p style="text-align: justify;">Just put that script to /usr/local/bin and name it task-switch</p>
<pre class="crayon-plain-tag">editor /usr/local/bin/task-switch</pre>
<p style="text-align: justify;">And copy the script text to it &#8211; There is an button for source view when hovering it.<br />
Make it executable using:</p>
<pre class="crayon-plain-tag">chmod a+x /usr/local/bin/task-switch</pre>
<p style="text-align: justify;">Those who are into bash will notice that the .taskrc located in you /home-folder is modified. In order to make that possible you will have to create two directories in .task like that:</p>
<pre class="crayon-plain-tag">cd
cd .task
mkdir home work
&lt;em&gt;mv *.data home-oder-work&lt;/em&gt;</pre>
<p style="text-align: justify;">For the last line you will have to chose if you want to migrate your existing database to &#8216;work&#8217; or to &#8216;home&#8217;.<br />
Use:</p>
<pre class="crayon-plain-tag">mv *.data home # For home</pre>
<p style="text-align: justify;">or</p>
<pre class="crayon-plain-tag">mv *.data work # For work</pre>
<p style="text-align: justify;">Now you have to edit the .taskrc and change the value of data.location= like that:</p>
<pre class="crayon-plain-tag">data.location=/home/'${USER}'/.task</pre>
<p style="text-align: justify;">change it to:</p>
<pre class="crayon-plain-tag">data.location=/home/'${USER}'/.task/home</pre>
<p style="text-align: justify;">Now the active database is set to &#8216;home&#8217;.<br />
When executing task-switch you should get similar output:</p>
<pre class="crayon-plain-tag">claw@claw-hp625:~$ task-switch
Task is using HOME</pre>
<p style="text-align: justify;">If you want to switch to another database execute task followed by the database name you want to use:</p>
<pre class="crayon-plain-tag">claw@claw-hp625:~$ task-switch work
Work activated</pre>
<p style="text-align: justify;">If this is not working well in anyway feel free to contact me. I will try to fix your problems as soon as i can <img src="http://claw.triple6.org/wp-includes/images/smilies/icon_wink.gif" alt="icon wink Taskwarrior: My task switch for fast switching between multiple databases" class="wp-smiley" title="Taskwarrior: My task switch for fast switching between multiple databases" /> </p>
<div class="su-linkbox" id="post-551-linkbox"><div class="su-linkbox-label">Link to this post!</div><div class="su-linkbox-field"><input type="text" value="&lt;a href=&quot;http://claw.triple6.org/linux/taskwarrior-mein-task-switch-zum-schnellen-wechseln-zwichen-mehreren-datenbanken/?lang=en&quot;&gt;Taskwarrior: My task-switch for fast switching between multiple databases&lt;/a&gt;" onclick="javascript:this.select()" readonly="readonly" style="width: 100%;" /></div></div><div class='yarpp-related-rss'>
<p>Related posts:</p><ol>
<li><a href="http://claw.triple6.org/allgemein/clonezilla-modifizieren/?lang=en" rel="bookmark" title="Modify Clonezilla">Modify Clonezilla </a></li>
<li><a href="http://claw.triple6.org/coding/endlose-schleife/?lang=en" rel="bookmark" title="Endless while loop">Endless while loop </a></li>
<li><a href="http://claw.triple6.org/linux/vim-mehrere-zeilen-kommentieren-auskommentieren/?lang=en" rel="bookmark" title="Vim: Comment / Uncomment , Comment out multiple lines">Vim: Comment / Uncomment , Comment out multiple lines </a></li>
</ol>
</div>
]]></content:encoded>
			<wfw:commentRss>http://claw.triple6.org/linux/taskwarrior-mein-task-switch-zum-schnellen-wechseln-zwichen-mehreren-datenbanken/?lang=en/feed/&#038;lang=en</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Variables within sed</title>
		<link>http://claw.triple6.org/allgemein/variable-sed-ubergeben/?lang=en</link>
		<comments>http://claw.triple6.org/allgemein/variable-sed-ubergeben/?lang=en#comments</comments>
		<pubDate>Mon, 16 Jan 2012 06:32:52 +0000</pubDate>
		<dc:creator><![CDATA[claw]]></dc:creator>
				<category><![CDATA[allgemein]]></category>
		<category><![CDATA[Deutsch]]></category>
		<category><![CDATA[English]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[shell]]></category>
		<category><![CDATA[foo]]></category>
		<category><![CDATA[Formatierung]]></category>
		<category><![CDATA[leider nicht]]></category>
		<category><![CDATA[sed]]></category>
		<category><![CDATA[String]]></category>
		<category><![CDATA[Variable]]></category>

		<guid isPermaLink="false">http://claw.triple6.org/?p=544</guid>
		<description><![CDATA[If you want to use a variable within sed you can not use the usual way ($var) to do so. There are some easy formatting needed to make sed understanding that $var is a variable. So if you want to &#8230; <a href="http://claw.triple6.org/allgemein/variable-sed-ubergeben/?lang=en">Continue reading <span class="meta-nav">&#8594;</span></a><div class='yarpp-related-rss yarpp-related-none'>

No related posts.
</div>
]]></description>
				<content:encoded><![CDATA[<p style="text-align: justify;">If you want to use a variable within sed you can not use the usual way ($var) to do so. There are some easy formatting needed to make sed understanding that $var is a variable.<br />
<span id="more-544"></span><br />
So if you want to perform something like &#8216;s/$var/$foo/g&#8217; the string should look this way to work:</p>
<pre class="crayon-plain-tag">sed 's/'${var}'/'${foo}'/g'</pre>
<p style="text-align: justify;">This is how variables can be used with sed <img src="http://claw.triple6.org/wp-includes/images/smilies/icon_wink.gif" alt="icon wink Variables within sed" class="wp-smiley" title="Variables within sed" /> </p>
<div class="su-linkbox" id="post-544-linkbox"><div class="su-linkbox-label">Link to this post!</div><div class="su-linkbox-field"><input type="text" value="&lt;a href=&quot;http://claw.triple6.org/allgemein/variable-sed-ubergeben/?lang=en&quot;&gt;Variables within sed&lt;/a&gt;" onclick="javascript:this.select()" readonly="readonly" style="width: 100%;" /></div></div><div class='yarpp-related-rss yarpp-related-none'>
<p>No related posts.</p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://claw.triple6.org/allgemein/variable-sed-ubergeben/?lang=en/feed/&#038;lang=en</wfw:commentRss>
		<slash:comments></slash:comments>
		</item>
		<item>
		<title>Vim: Comment / Uncomment , Comment out multiple lines</title>
		<link>http://claw.triple6.org/linux/vim-mehrere-zeilen-kommentieren-auskommentieren/?lang=en</link>
		<comments>http://claw.triple6.org/linux/vim-mehrere-zeilen-kommentieren-auskommentieren/?lang=en#comments</comments>
		<pubDate>Thu, 12 Jan 2012 13:46:22 +0000</pubDate>
		<dc:creator><![CDATA[claw]]></dc:creator>
				<category><![CDATA[coding]]></category>
		<category><![CDATA[Deutsch]]></category>
		<category><![CDATA[English]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[vim]]></category>
		<category><![CDATA[windows]]></category>
		<category><![CDATA[auskommentieren]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[einfügen modus]]></category>
		<category><![CDATA[entfernen]]></category>
		<category><![CDATA[entkommentieren]]></category>
		<category><![CDATA[gew]]></category>
		<category><![CDATA[Kommentarzeichen]]></category>
		<category><![CDATA[kommentieren]]></category>
		<category><![CDATA[mehrere]]></category>
		<category><![CDATA[mehrfach]]></category>
		<category><![CDATA[Modus]]></category>
		<category><![CDATA[Pfeil]]></category>
		<category><![CDATA[STRG]]></category>
		<category><![CDATA[vi]]></category>
		<category><![CDATA[visueller block modus]]></category>
		<category><![CDATA[zeilen]]></category>

		<guid isPermaLink="false">http://claw.triple6.org/?p=529</guid>
		<description><![CDATA[There is a way to comment or uncomment multiple lines with vim. Comment Switch to the &#8220;visual block mode&#8221; using CTRL+V and mark downwards every line you want to comment out. (Arrow down or j). If you have marked every &#8230; <a href="http://claw.triple6.org/linux/vim-mehrere-zeilen-kommentieren-auskommentieren/?lang=en">Continue reading <span class="meta-nav">&#8594;</span></a><div class='yarpp-related-rss'>

Related posts:<ol>
<li><a href="http://claw.triple6.org/allgemein/clonezilla-modifizieren/?lang=en" rel="bookmark" title="Modify Clonezilla">Modify Clonezilla </a></li>
<li><a href="http://claw.triple6.org/linux/electric-sheep/?lang=en" rel="bookmark" title="(Deutsch) Electric Sheep">(Deutsch) Electric Sheep </a></li>
</ol>
</div>
]]></description>
				<content:encoded><![CDATA[<p style="text-align: justify;"><a href="http://claw.triple6.org/wp-content/uploads/2012/01/605px-Vimlogo.svg_.png"><img class="alignright size-thumbnail wp-image-585" title="605px-Vimlogo.svg" alt="605px Vimlogo.svg  150x136 Vim: Comment / Uncomment , Comment out multiple lines" src="http://claw.triple6.org/wp-content/uploads/2012/01/605px-Vimlogo.svg_-150x136.png" width="150" height="136" /></a>There is a way to comment or uncomment multiple lines with vim.</p>
<p style="text-align: justify;"><span id="more-529"></span></p>
<p style="text-align: justify;"><strong>Comment</strong><br />
Switch to the &#8220;visual block mode&#8221; using CTRL+V<br />
and mark downwards every line you want to comment out. (Arrow down or j).<br />
If you have marked every line switch to the &#8220;insert mode&#8221; using SHIFT+I.<br />
Now add the command char (e.g. # in bash) to the beginning of the upper line and then hit ESC for escaping the &#8220;insert mode&#8221;.<br />
Now there will be added # at the beginning of every marked line.</p>
<p style="text-align: justify;"><strong>Un-Comment</strong><br />
Switch to the &#8220;visual block mode&#8221; using CTRL+V<br />
and mark every number-sign you want to remove (Arrow down or j)<br />
If you have marked all signs just hit &#8216;x&#8217;</p>
<div class="su-linkbox" id="post-529-linkbox"><div class="su-linkbox-label">Link to this post!</div><div class="su-linkbox-field"><input type="text" value="&lt;a href=&quot;http://claw.triple6.org/linux/vim-mehrere-zeilen-kommentieren-auskommentieren/?lang=en&quot;&gt;Vim: Comment / Uncomment , Comment out multiple lines&lt;/a&gt;" onclick="javascript:this.select()" readonly="readonly" style="width: 100%;" /></div></div><div class='yarpp-related-rss'>
<p>Related posts:</p><ol>
<li><a href="http://claw.triple6.org/allgemein/clonezilla-modifizieren/?lang=en" rel="bookmark" title="Modify Clonezilla">Modify Clonezilla </a></li>
<li><a href="http://claw.triple6.org/linux/electric-sheep/?lang=en" rel="bookmark" title="(Deutsch) Electric Sheep">(Deutsch) Electric Sheep </a></li>
</ol>
</div>
]]></content:encoded>
			<wfw:commentRss>http://claw.triple6.org/linux/vim-mehrere-zeilen-kommentieren-auskommentieren/?lang=en/feed/&#038;lang=en</wfw:commentRss>
		<slash:comments></slash:comments>
		</item>
	</channel>
</rss>
