<?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>Stempell</title>
	<atom:link href="http://stempell.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://stempell.com</link>
	<description>Urlaubsfotos, Thesen, Fun</description>
	<lastBuildDate>Wed, 18 Nov 2009 08:59:31 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=abc</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Extract filename from path with bash</title>
		<link>http://stempell.com/2009/11/extract-filename-from-path-with-bash/</link>
		<comments>http://stempell.com/2009/11/extract-filename-from-path-with-bash/#comments</comments>
		<pubDate>Wed, 18 Nov 2009 08:59:31 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Allgemein]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://stempell.com/?p=518</guid>
		<description><![CDATA[Extract filename from path with bash command substitution. Tested and functional]]></description>
			<content:encoded><![CDATA[<p><code>x=/etc/postfix/master.cf<br />
echo ${x##*/} # = master.cf<br />
echo ${x#*.} # = cf<br />
echo ${x%.*} # = /etc/postfix/master<br />
echo ${x%/*} # = /etc/postfix</p>
<p>echo ${x/.*}|awk -F/ '{print $NF}' # = master</code></p>
]]></content:encoded>
			<wfw:commentRss>http://stempell.com/2009/11/extract-filename-from-path-with-bash/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MySQL DATETIME from Bash date</title>
		<link>http://stempell.com/2009/10/mysql-datetime-from-bash-date/</link>
		<comments>http://stempell.com/2009/10/mysql-datetime-from-bash-date/#comments</comments>
		<pubDate>Thu, 29 Oct 2009 09:04:13 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Work Related]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[mysql]]></category>

		<guid isPermaLink="false">http://stempell.com/?p=506</guid>
		<description><![CDATA[SELECT now( ) equals date +"%Y-%m-%d %H:%M:%S"]]></description>
			<content:encoded><![CDATA[<p>Just execute this:<br />
<code>$> date +"%Y-%m-%d %H:%M:%S"</code><br />
this will produce the same output as:<br />
<code> SELECT now( )</code> </p>
<p>Output: <code>2009-10-29 09:53:19</code></p>
]]></content:encoded>
			<wfw:commentRss>http://stempell.com/2009/10/mysql-datetime-from-bash-date/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>cant umount ODER Wie man trotzdem unmounten kann</title>
		<link>http://stempell.com/2009/10/cant-umount-oder-wie-man-trotzdem-unmounten-kann/</link>
		<comments>http://stempell.com/2009/10/cant-umount-oder-wie-man-trotzdem-unmounten-kann/#comments</comments>
		<pubDate>Fri, 23 Oct 2009 16:37:31 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Allgemein]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://stempell.com/?p=501</guid>
		<description><![CDATA[umount device busy Lösung]]></description>
			<content:encoded><![CDATA[<p>Normalerweise kann man mit <code>umount /device</code> ein Verzeichnis/Device abhängen. Das klappt manchmal nicht. Stattdessen erhält man ein <code>umount: /device: device is busy</code><br />
Ansonsten schweigt er sich aus. Aber wenn ich es doch gern unmounten will! Irgend ein Prozess blockiert hier und man weiß nicht welcher. Die Rettung naht in Form von <code>man fuser </code>.<br />
Mit <code>fuser -m /device</code> werden einem die blockierenden Prozesse angezeigt. Die Informationen kann man dann<code> ps ax </code>vergleichen und erhält die pid zum Prozess.<br />
<code>kill -9 pid</code> und dann klappts auch mit dem umount.</p>
<p>Hier mit Beispiel:<br />
<code>root@homer:~# umount /mnt/cdrom<br />
umount: /mnt/cdrom: device is busy<br />
umount: /mnt/cdrom: device is busy<br />
root@homer:~#<br />
root@homer:~# fuser -m /mnt/cdrom/<br />
/mnt/cdrom/:         24066c<br />
root@homer:~# ps aux | grep 24066<br />
root     24066  0.0  0.5  2244 1284 pts/10   S    14:04   0:00 -su<br />
root@homer:~#<br />
root@homer:~# kill 24066<br />
root@homer:~#<br />
root@homer:~# umount /mnt/cdrom/<br />
</code></p>
<p>Das Beispiel stammt von<br />
http://www.linux-noob.com/forums/index.php?/topic/150-cant-umount-cdrom/</p>
]]></content:encoded>
			<wfw:commentRss>http://stempell.com/2009/10/cant-umount-oder-wie-man-trotzdem-unmounten-kann/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Geschützt: Geburtstagsbilder</title>
		<link>http://stempell.com/2009/10/geburtstagsbilder/</link>
		<comments>http://stempell.com/2009/10/geburtstagsbilder/#comments</comments>
		<pubDate>Fri, 16 Oct 2009 08:48:47 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Allgemein]]></category>

		<guid isPermaLink="false">http://stempell.com/?p=486</guid>
		<description><![CDATA[Es gibt keine Kurzfassung, da dies ein geschützter Artikel ist.]]></description>
			<content:encoded><![CDATA[<form action="http://stempell.com/wp-pass.php" method="post">
<p>Dieser Artikel ist durch ein Passwort geschützt. <br />Um ihn anzusehen, trage es bitte hier ein:</p>
<p><label for="pwbox-486">Passwort:<br />
<input name="post_password" id="pwbox-486" type="password" size="20" /></label><br />
<input type="submit" name="Submit" value="Senden" /></p></form>
]]></content:encoded>
			<wfw:commentRss>http://stempell.com/2009/10/geburtstagsbilder/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PDF in JPG umwandeln</title>
		<link>http://stempell.com/2009/09/pdf-in-jpg-umwandeln/</link>
		<comments>http://stempell.com/2009/09/pdf-in-jpg-umwandeln/#comments</comments>
		<pubDate>Thu, 10 Sep 2009 08:51:14 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Allgemein]]></category>
		<category><![CDATA[Work Related]]></category>
		<category><![CDATA[imagemagick]]></category>
		<category><![CDATA[jpg]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[pdf]]></category>

		<guid isPermaLink="false">http://stempell.com/?p=476</guid>
		<description><![CDATA[PDF in JPG umwandeln mit imagemagick]]></description>
			<content:encoded><![CDATA[<p>Die Axt im Hause ersetz den Zimmermann!<br />
In diesem Fall sprechen wir von ImageMagick. Unter Debian installiert man es ganz einfach mit<br />
<code>apt-get install imagemagick</code><br />
die folgende Zeile erledigt dann die Konvertierung des PDFs in das JPG<br />
<code>convert -density 300 file.pdf file.jpg</code></p>
<p>Für den Parameter -density sind übliche Werte wie 72, 300, 600 ohne Problem verdaulich. </p>
]]></content:encoded>
			<wfw:commentRss>http://stempell.com/2009/09/pdf-in-jpg-umwandeln/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Welpe in höchster Not</title>
		<link>http://stempell.com/2009/09/welpe-in-hochster-not/</link>
		<comments>http://stempell.com/2009/09/welpe-in-hochster-not/#comments</comments>
		<pubDate>Tue, 08 Sep 2009 12:25:44 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Allgemein]]></category>
		<category><![CDATA[Fun]]></category>

		<guid isPermaLink="false">http://stempell.com/?p=473</guid>
		<description><![CDATA[
Wer stellt mich wieder auf meine Beine?
]]></description>
			<content:encoded><![CDATA[<p><object width="464" height="384" id="1223262" type="application/x-shockwave-flash" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" alt="Puppy Can't Roll Over Funny Videos"><param name="movie" value="http://embed.break.com/MTIyMzI2Mg=="></param><param name="allowScriptAccess" value="always"></param><embed src="http://embed.break.com/MTIyMzI2Mg==" type="application/x-shockwave-flash" allowScriptAccess=always width="464" height="384"></embed></object></p>
<p>Wer stellt mich wieder auf meine Beine?</p>
]]></content:encoded>
			<wfw:commentRss>http://stempell.com/2009/09/welpe-in-hochster-not/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Problems with vsftp and debian</title>
		<link>http://stempell.com/2009/09/problems-with-vsftp-and-debian/</link>
		<comments>http://stempell.com/2009/09/problems-with-vsftp-and-debian/#comments</comments>
		<pubDate>Fri, 04 Sep 2009 15:40:00 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Allgemein]]></category>
		<category><![CDATA[Work Related]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[vsftpd]]></category>

		<guid isPermaLink="false">http://stempell.com/?p=469</guid>
		<description><![CDATA[https://lists.ubuntu.com/archives/ubuntu-users/2006-October/096075.html
´After spending the whole day tweaking and experimenting with vsftpd I
now have it setup as follows. Anonymous login, read only, with upload
enabled in one directory. I have a list of local users that can login
over SSL, and have read/write access to files in their jails. The
problem is that some of these users I want to [...]]]></description>
			<content:encoded><![CDATA[<p>https://lists.ubuntu.com/archives/ubuntu-users/2006-October/096075.html</p>
<p>´After spending the whole day tweaking and experimenting with vsftpd I<br />
now have it setup as follows. Anonymous login, read only, with upload<br />
enabled in one directory. I have a list of local users that can login<br />
over SSL, and have read/write access to files in their jails. The<br />
problem is that some of these users I want to be ftp-specific so they<br />
don&#8217;t need valid shells. However if any of the users has the<br />
shell /bin/false in the passwd file then when they try to login to the<br />
ftp is says LOGIN INVALID. Please, how can I go about allowing users to<br />
loging but without giving them valid shells?</p>
<p>A lot of experimenting revelaed vsftpd would only let users login that<br />
had a home directory of /home/$user and a shell, either /bin/bash<br />
or /bin/sh specified in /etc/passwd. I&#8217;m stumped. </p>
<p>On Friday 06 October 2006 19:53, Gabriel M Dragffy wrote:<br />
> This would seem to be a bit of a small discrepency, why can&#8217;t vsftpd<br />
> allow a user to login that has a shell of /bin/false? Pureftpd can, no<br />
> probs, hmm.</p>
<p>Sorry, I should have covered that.  You can add /bin/false instead<br />
of /sbin/nologin to the list of shells in /etc/shells.  We use<br />
/sbin/nologin for compatibility across our various Redhat, Fedora,<br />
Debian and Ubuntu systems.</p>
<p>&#8211;Mike Bird</p>
<p>From a nother Source<br />
Make sure you have </p>
<p>pam_service_name=vsftpd</p>
<p>in your /etc/vsftpd.conf</p>
]]></content:encoded>
			<wfw:commentRss>http://stempell.com/2009/09/problems-with-vsftp-and-debian/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Rechnen in BASH</title>
		<link>http://stempell.com/2009/08/rechnen-in-bash/</link>
		<comments>http://stempell.com/2009/08/rechnen-in-bash/#comments</comments>
		<pubDate>Mon, 31 Aug 2009 14:13:28 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Allgemein]]></category>
		<category><![CDATA[Work Related]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://stempell.com/?p=464</guid>
		<description><![CDATA[How to round with bash.
printf %.0f $TEMP]]></description>
			<content:encoded><![CDATA[<p>Wehe man hat bc nicht installiert! Dann nicht weiterlesen. Du kannst sehen, ob Du bc installiert hast:</p>
<p>ls -alh /usr/bin/bc</p>
<p>Wenn es vorhanden ist, dann kann man so wunderbare Funktionen wie sqrt benutzen. Allerdings ist wieder etwas rumprobieren erforderlich, da man bc  über echo füttert.</p>
<p><code>echo $(echo "$temp" | bc )</code></p>
<p>Das Echo in der Mitte übergibt $temp an bc. Das erste echo gibt den Inhalt der Klammer aus. Statt $temp kann da auch eine wilde Rechenoperation wie sqrt($temp) o.ä. drin stehen. Besonders wichtig:<br />
Das(bc) ist die einzige Möglichkeit Fließkommazahlen / Floatingpointnumbers in der bash zu benutzen! Und weil Floatingpointnumbers im normalen Leben einer Bash keine Rolle spielen, muss man die Nachkommastelle wieder entfernen. Wie runden in der bash funktioniert, hab ich noch nicht rausgefunden, aber truncate geht mit:</p>
<p><code>TEMP=$(echo "sqrt($TARGETSIZE/($ROWS/$COLUMNS))" | bc -l)<br />
NEWCOLUMNS=$(printf %.0f $TEMP)</code></p>
<p>Die zweite Zeile ist das Entfernend er Nachkommastelle.</p>
<p>UPDATE:<br />
Wer Mathe kann, ist klar im Vorteil. An dieser Stelle ein &#8220;Danke&#8221; an Johannes für diese verblüffend einfach Lösung.</p>
<p>x=ganzzahlanteil(a+0,5)</p>
<p>Bissel drüber nachdenken und es ergibt sich von selbst. Das klappt natürlich nach diesem System([a*10^nachkommastelle+0,5]/10^nachkommastelle) auch für beliebige Nachkommastellen, nicht nur für die Erste.</p>
<p>Die Umsetzung in ein bash script ist dann einfach gewesen:</p>
<p>bash Script:<br />
<code><br />
function round () {<br />
echo $(printf %.$2f $(echo "scale=$2;(((10^$2)*$1)+0.5)/(10^$2)" | bc))<br />
}</code></p>
<p>echo $(round 3.1234 2)<br />
echo $(round 3.1271 2)</p>
<p>Ausgabe<br />
<code><br />
3.12<br />
3.13<br />
</code></p>
]]></content:encoded>
			<wfw:commentRss>http://stempell.com/2009/08/rechnen-in-bash/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Olé olé</title>
		<link>http://stempell.com/2009/08/ole-ole/</link>
		<comments>http://stempell.com/2009/08/ole-ole/#comments</comments>
		<pubDate>Mon, 31 Aug 2009 11:48:01 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Allgemein]]></category>

		<guid isPermaLink="false">http://stempell.com/?p=458</guid>
		<description><![CDATA[Wollen wir dieses seltene Ereignis feiern! So (relativ) gut, wie jetzt wird in Hamburg nie wieder Fußball gespielt werden.

]]></description>
			<content:encoded><![CDATA[<p>Wollen wir dieses seltene Ereignis feiern! So (relativ) gut, wie jetzt wird in Hamburg nie wieder Fußball gespielt werden.<br />
<a href="http://stempell.com/wp-content/uploadz/2009/08/Hamburg-Fussball.jpg" rel="shadowbox[post-458];player=img;" rel="lightbox[458]"><img src="http://stempell.com/wp-content/uploadz/2009/08/Hamburg-Fussball-225x300.jpg" alt="Hamburg-Fussball" title="Hamburg-Fussball" width="225" height="300" class="alignleft size-medium wp-image-459" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://stempell.com/2009/08/ole-ole/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Mount FTP</title>
		<link>http://stempell.com/2009/08/mount-ftp/</link>
		<comments>http://stempell.com/2009/08/mount-ftp/#comments</comments>
		<pubDate>Thu, 27 Aug 2009 12:18:35 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Allgemein]]></category>
		<category><![CDATA[Work Related]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[fstab]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[mount]]></category>

		<guid isPermaLink="false">http://stempell.com/?p=449</guid>
		<description><![CDATA[Mit Linux ftp Server mounten
curlftpfs user:passwort@IP.IP.IP.IP /mountpoint]]></description>
			<content:encoded><![CDATA[<p>Es gibt Leute, die wollen FTP Verzeichnisse mounten. Also mit ihrem FTP Account auf den entfernten Server zugreifen, sich regulär einloggen, das soll im Hintergrund geschehen und am besten danach so anfühlen, als arbeite man auf der lokalen Maschine. Ich verstehe nicht wozu man das braucht, aber es geht. Einfach das Paket <a title="CurlFtpFS - A FTP filesystem based on cURL and FUSE" href="http://curlftpfs.sourceforge.net/" target="_blank">curlftpfs</a> installieren. Das geht bei Debian mit <code>apt-get install curlftpfs</code> dann mit<br />
<code>curlftpfs user:passwort@IP.IP.IP.IP /mountpoint</code><br />
einbinden und fertig. Soll das ganze auch nach einem Neustart funktionieren, dann geht das so:<br />
<code> curlftpfs#user:password@IP.IP.IP.IP /mountpoint fuse rw,uid=500,user,noauto 0 0</code><br />
Diese Zeile habe ich aber noch nicht getestet! </p>
<p>Spass beiseite: Selbstverständlich kann sowas sehr praktisch sein, wenn man mit einem FTP Server arbeitet, auf den man keinen Einfluss hat. Solche simplen Arbeiten, wie das Vergleichen von Verzeichnissen oder kopieren von Dateien, </p>
<p>UPDATE:<br />
Ein echter Haken ist, dass die Dateiowner hinterher nicht mehr stimmen. Klar! Wie soll das bei FTP auch gehen.<br />
Links:</p>
<ul>
<li><a title="Mount over FTP" href="http://curlftpfs.sourceforge.net/" target="_self">Paket curlftpfs</a></li>
<li><a title="Filesystem in User SpacE" href="http://de.wikipedia.org/wiki/Filesystem_in_Userspace" target="_self">Erklärung zu FUSE</a></li>
<li><a title="cURL wird von curlftpfs genutzt" href="http://curl.haxx.se/" target="_blank">Seite zu cURL</a></li>
</ul>
<p>deren Inhalt sich geänder hat, werden so erst möglich.</p>
]]></content:encoded>
			<wfw:commentRss>http://stempell.com/2009/08/mount-ftp/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
