<?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>j-zero &#187; j-zero.de</title>
	<atom:link href="http://www.j-zero.de/blog/category/computer/linux-computer/feed" rel="self" type="application/rss+xml" />
	<link>http://www.j-zero.de</link>
	<description>Leben. Computer. Rock &#039;n&#039; Roll.</description>
	<lastBuildDate>Wed, 01 Feb 2012 08:02:37 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Dockstar, OpenWRT &amp; udev</title>
		<link>http://www.j-zero.de/blog/dockstar-openwrt-udev-585.html</link>
		<comments>http://www.j-zero.de/blog/dockstar-openwrt-udev-585.html#comments</comments>
		<pubDate>Mon, 22 Nov 2010 18:34:44 +0000</pubDate>
		<dc:creator>j-zero</dc:creator>
				<category><![CDATA[Computer]]></category>
		<category><![CDATA[Hacks]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Dockstar]]></category>
		<category><![CDATA[OpenWRT]]></category>
		<category><![CDATA[udev]]></category>

		<guid isPermaLink="false">http://www.j-zero.de/?p=585</guid>
		<description><![CDATA[Mahlzeit, ich habe seit geraumer Zeit eine Seagate Dockstar, auf die ich mit der Hilfe eines guten Freundes ein OpenWRT mit Samba und NFS gezogen habe. Es lief auch alles ganz gut. Auch das mounten der USB-Platten mittels fstab.Nun passierte es jedoch eines Tages, dass ich einen USB-Stick anschließen wollte um per WLAN auf dem [...]]]></description>
			<content:encoded><![CDATA[<p>Mahlzeit,</p>
<p>ich habe seit geraumer Zeit eine <a href="http://www.seagate.com/www/de-de/products/network_storage/freeagent_dockstar/">Seagate Dockstar</a>, auf die ich mit der <a href="http://matze.efreun.de/?p=103">Hilfe eines guten Freundes</a> ein <a href="http://openwrt.org/">OpenWRT</a> mit <a href="http://www.samba.org/">Samba</a> und <a href="http://de.wikipedia.org/wiki/Network_File_System">NFS</a> gezogen habe. Es lief auch alles ganz gut. Auch das mounten der USB-Platten mittels fstab.Nun passierte es jedoch eines Tages, dass ich einen USB-Stick anschließen wollte um per WLAN auf dem Sofa drauf zugreifen zu können, dies funktionierte jedoch nicht, da der Stick nicht gemounted wurde. Was nun? Da ich eh einen neuen Kernel und ein RootFS bauen musste, weil ich ein Modul für FTDI-Serial-USB-Adapter vergessen hatte, entschloss ich mich, <a href="http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev.html">udev</a> mit zu kompilieren:</p>
<div class="codecolorer-container text geshi" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">CONFIG_DEFAULT_udevtrigger=y<br />
CONFIG_PACKAGE_udev=y<br />
CONFIG_PACKAGE_udevtrigger=y</div></td></tr></tbody></table></div>
<p>Nach einiger Recherche im World-Wide-Web hatte ich auch ungefähre Ahnung davon, wie ich udev für meine Zwecke misbrauchen kann. Ersteinmal sollte beim Start des Systems ein Ordner angelegt werden, welchen ich per NFS und Samba freigeben könne. Dies habe ich einfach mit der Zeile</p>
<div class="codecolorer-container bash geshi" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #c20cb9; font-weight: bold;">mkdir</span> <span style="color: #000000; font-weight: bold;">/</span>tmp<span style="color: #000000; font-weight: bold;">/</span>disks</div></td></tr></tbody></table></div>
<p>in der /etc/rc.local realisiert.</p>
<p>Nun ist es an der Zeit udev ein Init-Script zu verpassen, wir wollen beim Systemstart den udev-daemon starten und auch gleich antriggern, damit er eventuell vorhandene Scripts ausführt. Erstellt wird hierzu die Datei /etc/init.d/udev. Diese wird mit folgendem Inhalt gefüllt:</p>
<div class="codecolorer-container bash geshi" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br />11<br /></div></td><td><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #666666; font-style: italic;">#!/bin/sh /etc/rc.common</span><br />
<br />
start<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #7a0874; font-weight: bold;">&#123;</span><br />
<span style="color: #c20cb9; font-weight: bold;">killall</span> udevd <span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>null <span style="color: #000000;">2</span><span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>null<br />
<span style="color: #000000; font-weight: bold;">/</span>sbin<span style="color: #000000; font-weight: bold;">/</span>udevd <span style="color: #660033;">--daemon</span><br />
<span style="color: #000000; font-weight: bold;">/</span>sbin<span style="color: #000000; font-weight: bold;">/</span>udevadm trigger<br />
<span style="color: #7a0874; font-weight: bold;">&#125;</span><br />
<br />
stop<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #7a0874; font-weight: bold;">&#123;</span><br />
<span style="color: #c20cb9; font-weight: bold;">killall</span> udevd<br />
<span style="color: #7a0874; font-weight: bold;">&#125;</span></div></td></tr></tbody></table></div>
<p>Noch ein</p>
<div class="codecolorer-container bash geshi" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #c20cb9; font-weight: bold;">chmod</span> <span style="color: #000000;">755</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>init.d<span style="color: #000000; font-weight: bold;">/</span>udev</div></td></tr></tbody></table></div>
<p>und das Init-Script ist fertig.</p>
<p>Nun müssen wir udev noch dazu bringen, etwas auszuführen, wenn wir ein USB-Speichergerät anstöpseln. Also eine neue Rule erstellen:</p>
<div class="codecolorer-container bash geshi" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #c20cb9; font-weight: bold;">vi</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>udev<span style="color: #000000; font-weight: bold;">/</span>rules.d<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">10</span>-mount.rules</div></td></tr></tbody></table></div>
<p>Diese füllen wir mit der Regel zum Mounten und der zum Verzeichnis anlegen des USB-Mediums und der Regel zum Unmounten und der zum Verzeichnis löschen, wenn das Medium entfernt wird:</p>
<div class="codecolorer-container text geshi" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">KERNEL==&quot;sd[a-z][0-9]&quot;, BUS==&quot;usb&quot;, ACTION==&quot;add&quot;, RUN+=&quot;/bin/mkdir -p /tmp/disks/%k&quot;, RUN+=&quot;/bin/mount -t auto /dev/%k /tmp/disks/%k&quot;<br />
KERNEL==&quot;sd[a-z][0-9]&quot;, BUS==&quot;usb&quot;, ACTION==&quot;remove&quot;, RUN+=&quot;/bin/umount -l /dev/%k&quot;, RUN+=&quot;/bin/rmdir /tmp/disks/%k&quot;</div></td></tr></tbody></table></div>
<p>Nach einem Reboot der Dockstar sollten nur alle USB-Sticks oder Festplatten automatisch gemounted werden.</p>
<p>Falls ihr Geräte immer unter dem gleichen Mountpoint mounten wollte, z.B. einen bestimmten Stick immer unter /mnt/sonstwas, hilft euch udev hier auch, da es unter /dev/disk/by-id Symlinks zu dem Device anlegt. ein fstab-Eintrag mit &#8220;/dev/[ID-DES-GERÄTES] /mnt/sonstwas &#8230;&#8221; mounted natürlich das Gerät immer am selben Punkt</p>
<p>bis neulich.</p>
<p>j-zero</p>
]]></content:encoded>
			<wfw:commentRss>http://www.j-zero.de/blog/dockstar-openwrt-udev-585.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Bash: Logging &amp; Ausgabe</title>
		<link>http://www.j-zero.de/blog/bash-logging-ausgabe-576.html</link>
		<comments>http://www.j-zero.de/blog/bash-logging-ausgabe-576.html#comments</comments>
		<pubDate>Fri, 19 Nov 2010 12:52:34 +0000</pubDate>
		<dc:creator>j-zero</dc:creator>
				<category><![CDATA[Bash]]></category>
		<category><![CDATA[Computer]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Tipps & Tricks]]></category>

		<guid isPermaLink="false">http://www.j-zero.de/?p=576</guid>
		<description><![CDATA[Wer kennt es nicht, man möchte was in ein Log schreiben und dennoch ausgeben? Lösung: &#8220;tee&#8221; (andere mit &#8220;tail -f&#8221; halte ich für eher ekelhaft.) 1make all &#124; tee /tmp/make.log]]></description>
			<content:encoded><![CDATA[<p>Wer kennt es nicht, man möchte was in ein Log schreiben und dennoch ausgeben?</p>
<p>Lösung: &#8220;tee&#8221; (andere mit &#8220;tail -f&#8221; halte ich für eher ekelhaft.)</p>
<div class="codecolorer-container text geshi" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">make all | tee /tmp/make.log</div></td></tr></tbody></table></div>
]]></content:encoded>
			<wfw:commentRss>http://www.j-zero.de/blog/bash-logging-ausgabe-576.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Bash: Fotos Web-fähig machen</title>
		<link>http://www.j-zero.de/blog/bash-fotos-web-fahig-machen-561.html</link>
		<comments>http://www.j-zero.de/blog/bash-fotos-web-fahig-machen-561.html#comments</comments>
		<pubDate>Wed, 17 Nov 2010 19:28:52 +0000</pubDate>
		<dc:creator>j-zero</dc:creator>
				<category><![CDATA[Bash]]></category>
		<category><![CDATA[Computer]]></category>
		<category><![CDATA[Fotos]]></category>
		<category><![CDATA[Internet]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.j-zero.de/?p=561</guid>
		<description><![CDATA[Wenn man mal eben einen Satz Fotos von der Digitalkamera für das Web fit machen will, ohne sich durch &#8216;ne GUI zu klicken, helfen ImageMagick und die Bash: Beispiel (1024px und kleinschreibung 1mkdir web; for i in *.JPG; do convert -verbose -resize &#160;1024 $i web/`echo $i &#124; awk '{print tolower($0)}'` ; done Die Alten Tipps [...]]]></description>
			<content:encoded><![CDATA[<p>Wenn man mal eben einen Satz Fotos von der Digitalkamera für das Web fit  machen will, ohne sich durch &#8216;ne GUI zu klicken, helfen ImageMagick und  die Bash:  Beispiel (1024px und kleinschreibung</p>
<div class="codecolorer-container text geshi" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">mkdir web; for i in *.JPG; do convert -verbose -resize &nbsp;1024 $i web/`echo $i | awk '{print tolower($0)}'` ; done</div></td></tr></tbody></table></div>
<p>Die Alten Tipps &amp; Tricks findet ihr vorerst hier:</p>
<p><a href="http://www.j-zero.de/tipps-tricks/bash-tipps-tricks">http://www.j-zero.de/tipps-tricks/bash-tipps-tricks</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.j-zero.de/blog/bash-fotos-web-fahig-machen-561.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PuTTY und Ctrl+S (Strg+S)</title>
		<link>http://www.j-zero.de/blog/putty-und-ctrls-strgs-510.html</link>
		<comments>http://www.j-zero.de/blog/putty-und-ctrls-strgs-510.html#comments</comments>
		<pubDate>Tue, 14 Sep 2010 12:21:56 +0000</pubDate>
		<dc:creator>j-zero</dc:creator>
				<category><![CDATA[Bash]]></category>
		<category><![CDATA[Computer]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.j-zero.de/?p=510</guid>
		<description><![CDATA[Gerade ist es wieder passiert: Ich hackte gerade ein wenig Code in vim über eine PuTTY SSH-Session zusammen und drückte beim Speichern &#8211; weil ich vorher die ganze Zeit unter Windows arbeitete - Ctrl+S. Eine Frage in die Runde meiner Kollegen ergab nur: Starte die Session neu und fang neu an. Was ich aber für [...]]]></description>
			<content:encoded><![CDATA[<p>Gerade ist es wieder passiert:<br />
Ich hackte gerade ein wenig Code in <a href="http://www.vim.org">vim</a> über eine <a href="http://www.chiark.greenend.org.uk/~sgtatham/putty/">PuTTY</a> SSH-Session zusammen und drückte beim Speichern &#8211; weil ich vorher die ganze Zeit unter Windows arbeitete -<strong> Ctrl+S</strong>.</p>
<p>Eine Frage in die Runde meiner Kollegen ergab nur:</p>
<blockquote><p>Starte die Session neu und fang neu an.</p></blockquote>
<p>Was ich aber für eine blöde Methode hielt. Nach kurzen googlen hatte ich die Lösung: <strong>Ctrl+Q</strong> (Strg+Q)</p>
<p>Und Damit es einen Blogeintrag wert ist, hier die Erklärung:<br />
<strong>Ctrl+S</strong> ist das Steuerkommande für <a href="http://de.wikipedia.org/wiki/XOFF#Software-Flusssteuerung.2C_Software-Handshake.2C_Software-Protokoll_oder_X-ON.2FX-OFF">XOFF</a> welches das Gegenstück zu <a href="http://de.wikipedia.org/wiki/XOFF#Software-Flusssteuerung.2C_Software-Handshake.2C_Software-Protokoll_oder_X-ON.2FX-OFF">XON</a> ist und einfach besagt, das Terminal nimmt alle Kommandos (in unserem Fall Tastatureingaben) entgegen, zeigt aber nichts an. Um wieder in den XON-Modus zu wechseln benutzen wir einfach <strong>Ctrl+Q</strong> (Strg+Q) und schon ist die PuTTY Session wieder einsatzbereit.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.j-zero.de/blog/putty-und-ctrls-strgs-510.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>GRUB2 vs. Windows 7</title>
		<link>http://www.j-zero.de/blog/grub2-vs-windows-7-491.html</link>
		<comments>http://www.j-zero.de/blog/grub2-vs-windows-7-491.html#comments</comments>
		<pubDate>Thu, 05 Aug 2010 07:14:15 +0000</pubDate>
		<dc:creator>j-zero</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://www.j-zero.de/?p=491</guid>
		<description><![CDATA[Mahlzeit, ich hab&#8217; gestern auf meinem Notebook mal Windows 7 neu installiert. Nun stand ich natürlich vor dem Problem GRUB2 wieder zu installieren. Im Grunde kein großes Problem, außer man macht einen Fehler. Das habe ich getan. Ich hatte beim reinstallieren von GRUB aus versehen &#8220;/dev/sda1&#8243; angegeben, was zur Folge hatte GRUB2 nicht in den [...]]]></description>
			<content:encoded><![CDATA[<p>Mahlzeit,</p>
<p>ich hab&#8217; gestern auf meinem Notebook mal Windows 7 neu installiert. Nun stand ich natürlich vor dem Problem GRUB2 wieder zu installieren. Im Grunde kein großes Problem, außer man macht einen Fehler.<br />
Das habe ich getan. Ich hatte beim reinstallieren von GRUB aus versehen &#8220;/dev/sda1&#8243; angegeben, was zur Folge hatte GRUB2 nicht in den MBR sondern in den Bootrecord von meiner Windowspartition geschrieben wurde und &#8220;update-grub&#8221; die Windows Partiton nicht mehr erkannt hat.<br />
Also bootete ich die Windows 7 CD und schrieb mit &#8220;bootrec /fixboot&#8221; den Bootrecord neu, bootet in Ubuntu und führte ein &#8220;update-grub&#8221; aus. Zu meinem erstaunen bekamm ich folgende Meldung:</p>
<div class="codecolorer-container text geshi" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">Generating grub.cfg ...<br />
Found linux image: /boot/vmlinuz-2.6.32-24-generic<br />
Found initrd image: /boot/initrd.img-2.6.32-24-generic<br />
Found memtest86+ image: /boot/memtest86+.bin<br />
ls: Zugriff auf /var/lib/os-prober/mount/boot<br />
Boot nicht möglich: No such file or directory<br />
done</div></td></tr></tbody></table></div>
<p>Hmm. Die Windows Partition wurde wohl gefunden, aber irgendetwas stimmt damit nicht. Ein kurzer Blick auf die von Windows 7 angelegte Boot-Partiton zeigte schnell das Problem:</p>
<div class="codecolorer-container text geshi" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"># ls<br />
boot &nbsp;Boot &nbsp;bootmgr &nbsp;BOOTSECT.BAK &nbsp;System Volume Information</div></td></tr></tbody></table></div>
<p>Zwei &#8220;Boot-Ordner&#8221;. Da NTFS die Groß- und Kleinschreibung nicht beachtet, Linux aber schon ergibt sich hieraus das Problem.<br />
Also einfach den &#8220;boot&#8221; ordner Löschen, in dem sich NICHT die &#8220;BCD&#8221;-Datei befindet (Der mit kleinem &#8220;b&#8221;), ein &#8220;update-grub&#8221; ausführen und siehe da:</p>
<div class="codecolorer-container text geshi" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">Generating grub.cfg ...<br />
Found linux image: /boot/vmlinuz-2.6.32-24-generic<br />
Found initrd image: /boot/initrd.img-2.6.32-24-generic<br />
Found memtest86+ image: /boot/memtest86+.bin<br />
Found Windows 7 (loader) on /dev/sda1<br />
done</div></td></tr></tbody></table></div>
<p>Bis neulich.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.j-zero.de/blog/grub2-vs-windows-7-491.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Lucids Windowbuttons</title>
		<link>http://www.j-zero.de/blog/lucids-windowbuttons-485.html</link>
		<comments>http://www.j-zero.de/blog/lucids-windowbuttons-485.html#comments</comments>
		<pubDate>Mon, 05 Jul 2010 11:53:03 +0000</pubDate>
		<dc:creator>j-zero</dc:creator>
				<category><![CDATA[Computer]]></category>
		<category><![CDATA[Gnome]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Tipps & Tricks]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://www.j-zero.de/?p=485</guid>
		<description><![CDATA[Ich weiß nicht wie es euch geht, aber ich ich finde die Ausrichtung der Fensterbuttons auf der linken Seite bei Ubuntu 10.04 grauenhaft nervtötend. Nicht nur weil ich bei der Arbeit mit Windows arbeite, sondern auch, weil ich es einfach gewohnt bin. Hier ist aber die schnellste Lösung: 1$ gconftool --type=string --set /apps/metacity/general/button_layout &#34;menu:minimize,maximize,close&#34; Und [...]]]></description>
			<content:encoded><![CDATA[<p>Ich weiß nicht wie es euch geht, aber ich ich finde die Ausrichtung der Fensterbuttons auf der linken Seite bei Ubuntu 10.04 grauenhaft nervtötend. Nicht nur weil ich bei der Arbeit mit Windows arbeite, sondern auch, weil ich es einfach gewohnt bin.<br />
Hier ist aber die schnellste Lösung:</p>
<div class="codecolorer-container text geshi" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">$ gconftool --type=string --set /apps/metacity/general/button_layout &quot;menu:minimize,maximize,close&quot;</div></td></tr></tbody></table></div>
<p>Und schon erscheint wieder alles im alten Stil.</p>
<p>bin neulich.</p>
<p>j-zero</p>
]]></content:encoded>
			<wfw:commentRss>http://www.j-zero.de/blog/lucids-windowbuttons-485.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Wolpertinger mit Zwiebeln</title>
		<link>http://www.j-zero.de/blog/wolpertinger-mit-zwiebeln-304.html</link>
		<comments>http://www.j-zero.de/blog/wolpertinger-mit-zwiebeln-304.html#comments</comments>
		<pubDate>Fri, 19 Jun 2009 11:22:19 +0000</pubDate>
		<dc:creator>j-zero</dc:creator>
				<category><![CDATA[Computer]]></category>
		<category><![CDATA[Internet]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.j-zero.de/?p=304</guid>
		<description><![CDATA[Mahlzeit, ich hatte vor mal wieder Tor (The Onion Router) auf meinem Notebook, welches mit Ubuntu 9.04 (Jaunty Jackalope) läuft, zu installieren, als ich feststellen musste, dass diese nicht in den Repositories ist. Nach kurzer Suche habe ich aber Repositories die es haben: http://mirror.noreply.org/pub/tor. Also einfach Folgendes ausführen: 12345sudo echo &#34;deb http://mirror.noreply.org/pub/tor jaunty main&#34; &#62;&#62; [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://de.wikipedia.org/w/index.php?title=Datei:Wolpertinger.jpg"><img class="alignright size-thumbnail wp-image-312" title="Wolpertinger" src="http://www.j-zero.de/wp-content/uploads/2009/06/Wolpertinger-150x150.jpg" alt="Wolpertinger" width="150" height="150" /></a><br />
Mahlzeit,</p>
<p>ich hatte vor mal wieder <a href="http://www.torproject.org">Tor (The Onion Router)</a> auf meinem Notebook, welches mit <a href="http://www.ubuntu.com">Ubuntu 9.04</a> (Jaunty <a href="http://dict.leo.org/?lp=ende&amp;search=jackalope">Jackalope</a>) läuft,  zu installieren, als ich feststellen musste, dass diese nicht in den Repositories ist. Nach kurzer Suche habe ich aber Repositories die es haben: <a href="http://mirror.noreply.org/pub/tor">http://mirror.noreply.org/pub/tor</a>.</p>
<p>Also einfach Folgendes ausführen:</p>
<div class="codecolorer-container bash geshi" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br /></div></td><td><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;deb http://mirror.noreply.org/pub/tor jaunty main&quot;</span> <span style="color: #000000; font-weight: bold;">&gt;&gt;</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>apt<span style="color: #000000; font-weight: bold;">/</span>sources.list<br />
<span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;deb-src http://mirror.noreply.org/pub/tor jaunty main&quot;</span> <span style="color: #000000; font-weight: bold;">&gt;&gt;</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>apt<span style="color: #000000; font-weight: bold;">/</span>sources.list<br />
<span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">apt-key adv</span> <span style="color: #660033;">--recv-keys</span> <span style="color: #660033;">--keyserver</span> keyserver.ubuntu.com CFF71CB3AFA44BDD<br />
<span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">apt-get update</span><br />
<span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">apt-get install</span> tor</div></td></tr></tbody></table></div>
<p>Und schon habt ihr Tor wieder installiert. Danach nur noch einen SOCKS5 Proxy auf Port 9050 in den Applikationen einrichten (z.B. mit <a href="https://addons.mozilla.org/de/firefox/addon/2464">FoxyProxy</a> für den <a href="http://www.mozilla.com">Firefox</a>) und fertig.</p>
<p>Ihr könnt diesen <a href="https://torcheck.xenobite.eu/">&#8220;Torcheck&#8221;</a> machen um zu sehen ob es funktioniert. Wenn nicht, schaut mal in die /var/log/tor/log, warum nicht.</p>
<p>Bis neulich.</p>
<p>j-zero</p>
]]></content:encoded>
			<wfw:commentRss>http://www.j-zero.de/blog/wolpertinger-mit-zwiebeln-304.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ping auf einen TCP-Port</title>
		<link>http://www.j-zero.de/blog/ping-auf-einen-tcp-port-222.html</link>
		<comments>http://www.j-zero.de/blog/ping-auf-einen-tcp-port-222.html#comments</comments>
		<pubDate>Tue, 12 May 2009 13:28:04 +0000</pubDate>
		<dc:creator>j-zero</dc:creator>
				<category><![CDATA[Computer]]></category>
		<category><![CDATA[Internet]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Programmieren]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[Netzwerk]]></category>

		<guid isPermaLink="false">http://www.j-zero.de/?p=222</guid>
		<description><![CDATA[Mahlzeit, wie von schmidt24 schon angekündigt habe ich das tcpping-Skript ein wenig erweitert, da ich finde, das Timeouts nicht markant genug dargestellt wurden, habe ich diese in rot und erfolgreiche Pings durch ein grünes &#8220;ok&#8221; markiert. Zudem ist es nun möglich, anstatt des Ports den Namen aus der /etc/services anzugeben (falls man z.B. mal den [...]]]></description>
			<content:encoded><![CDATA[<p>Mahlzeit,</p>
<p>wie von <a href="http://www.schmidt24.org/blog/2009/05/12/ping-auf-einen-tcp-port/" target="_blank">schmidt24</a> schon angekündigt habe ich das tcpping-Skript ein wenig erweitert, da ich finde, das Timeouts nicht markant genug dargestellt wurden, habe ich diese in rot und erfolgreiche Pings durch ein grünes &#8220;ok&#8221; markiert.</p>
<p>Zudem ist es nun möglich, anstatt des Ports den Namen aus der /etc/services anzugeben (falls man z.B. mal den Port von IMAPS nicht im Kopf hat).</p>
<p>Beispiel: &#8220;tcpping.sh 127.0.0.1 imaps&#8221; ist equivalent zu &#8220;tcpping.sh l27.0.0.1 993&#8243;.<br />
Der Standardport ist auch nun 22, also SSH da dieser ja meist auf Linux/UN*X Maschinen auf ist.<br />
Man kann also einfach &#8220;tcpping.sh 127.0.0.1&#8243; nutzen und es wird automatisch auf SSH geprüft.<br />
Die Namens- und Portauflösung sind nur eine nette Spielerei aber für den ein oder anderen Skripter vielleicht ganz nützlich. <img src='http://www.j-zero.de/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Hier ist es:</p>
<div class="codecolorer-container bash geshi" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br />11<br />12<br />13<br />14<br />15<br />16<br />17<br />18<br />19<br />20<br />21<br />22<br />23<br />24<br />25<br />26<br />27<br />28<br />29<br />30<br />31<br />32<br />33<br />34<br />35<br />36<br />37<br />38<br />39<br />40<br />41<br />42<br /></div></td><td><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #666666; font-style: italic;">#!/bin/sh</span><br />
<br />
<span style="color: #007800;">i</span>=<span style="color: #000000;">0</span><br />
<br />
<span style="color: #000000; font-weight: bold;">if</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #007800;">$#</span> = <span style="color: #000000;">1</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span>; <span style="color: #000000; font-weight: bold;">then</span> <span style="color: #007800;">PORT</span>=<span style="color: #000000;">22</span><br />
<span style="color: #000000; font-weight: bold;">else</span> <span style="color: #007800;">PORT</span>=<span style="color: #007800;">$2</span><br />
<span style="color: #000000; font-weight: bold;">fi</span><br />
<br />
<span style="color: #000000; font-weight: bold;">if</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #007800;">$#</span> <span style="color: #660033;">-eq</span> <span style="color: #000000;">0</span> &nbsp;<span style="color: #7a0874; font-weight: bold;">&#93;</span>; <span style="color: #000000; font-weight: bold;">then</span><br />
&nbsp; &nbsp; <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;Usage: $0 &lt;HOST&gt; [PORT]&quot;</span><br />
&nbsp; &nbsp; <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot; &nbsp; PORT can be numeric or name from /etc/services&quot;</span><br />
&nbsp; &nbsp; <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot; &nbsp; Default port is 22 (ssh)&quot;</span><br />
&nbsp; &nbsp; <span style="color: #7a0874; font-weight: bold;">exit</span> <span style="color: #000000;">1</span><br />
<span style="color: #000000; font-weight: bold;">fi</span><br />
<br />
<span style="color: #000000; font-weight: bold;">if</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span> $<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;$1.&quot;</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">grep</span> <span style="color: #660033;">-E</span> <span style="color: #ff0000;">&quot;([0-9]{1,3}\.){4}&quot;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span>; <span style="color: #000000; font-weight: bold;">then</span><br />
&nbsp; &nbsp; <span style="color: #007800;">HOST</span>=$<span style="color: #7a0874; font-weight: bold;">&#40;</span>host <span style="color: #660033;">-v</span> <span style="color: #007800;">$1</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">grep</span> <span style="color: #660033;">-1</span> <span style="color: #660033;">-m1</span> &nbsp;<span style="color: #660033;">-A1</span> <span style="color: #ff0000;">&quot;;; ANSWER SECTION&quot;</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">awk</span> <span style="color: #ff0000;">'{print $5}'</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">awk</span> NF <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">sed</span> <span style="color: #ff0000;">'s/\.$//'</span><span style="color: #7a0874; font-weight: bold;">&#41;</span><br />
&nbsp; &nbsp; <span style="color: #007800;">IP</span>=<span style="color: #007800;">$1</span><br />
<span style="color: #000000; font-weight: bold;">else</span><br />
&nbsp; &nbsp; <span style="color: #007800;">IP</span>=$<span style="color: #7a0874; font-weight: bold;">&#40;</span>host <span style="color: #660033;">-v</span> <span style="color: #007800;">$1</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">grep</span> <span style="color: #660033;">-i</span> <span style="color: #660033;">-m</span> <span style="color: #000000;">1</span> <span style="color: #660033;">-A1</span> <span style="color: #ff0000;">&quot;;; ANSWER SECTION&quot;</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">awk</span> <span style="color: #ff0000;">'{print $5}'</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">awk</span> NF <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">sed</span> <span style="color: #ff0000;">'s/\.$//'</span><span style="color: #7a0874; font-weight: bold;">&#41;</span><br />
&nbsp; &nbsp; <span style="color: #007800;">HOST</span>=<span style="color: #007800;">$1</span><br />
<span style="color: #000000; font-weight: bold;">fi</span><br />
<br />
<span style="color: #000000; font-weight: bold;">case</span> <span style="color: #007800;">$PORT</span> <span style="color: #000000; font-weight: bold;">in</span><br />
&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">*</span><span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #000000; font-weight: bold;">!</span><span style="color: #000000;">0</span>-<span style="color: #000000;">9</span><span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #000000; font-weight: bold;">*</span> <span style="color: #7a0874; font-weight: bold;">&#41;</span> &nbsp;<span style="color: #007800;">PORT</span>=$<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #c20cb9; font-weight: bold;">cat</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>services <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">grep</span> <span style="color: #660033;">-i</span> <span style="color: #660033;">-m</span> <span style="color: #000000;">1</span> <span style="color: #007800;">$PORT</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">awk</span> <span style="color: #ff0000;">'{print $2}'</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">sed</span> <span style="color: #ff0000;">&quot;s/\/tcp//g&quot;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span><br />
<span style="color: #000000; font-weight: bold;">esac</span><br />
<br />
<span style="color: #007800;">PROTO</span>=$<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #c20cb9; font-weight: bold;">cat</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>services <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">grep</span> <span style="color: #660033;">-i</span> <span style="color: #660033;">-m</span> <span style="color: #000000;">1</span> <span style="color: #007800;">$PORT</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">awk</span> <span style="color: #ff0000;">'{print $1}'</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">sed</span> <span style="color: #ff0000;">&quot;s/\/tcp//g&quot;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span><br />
<br />
<span style="color: #000000; font-weight: bold;">while</span> <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #c20cb9; font-weight: bold;">true</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #000000; font-weight: bold;">do</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #007800;">TIME</span>=<span style="color: #000000; font-weight: bold;">`</span><span style="color: #c20cb9; font-weight: bold;">date</span> +<span style="color: #000000; font-weight: bold;">%</span>s<span style="color: #000000; font-weight: bold;">%</span>N<span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">cut</span> <span style="color: #660033;">-c</span> -<span style="color: #000000;">13</span><span style="color: #000000; font-weight: bold;">`</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #007800;">SCAN</span>=<span style="color: #000000; font-weight: bold;">`</span><span style="color: #c20cb9; font-weight: bold;">nmap</span> <span style="color: #660033;">-P0</span> -p<span style="color: #007800;">$PORT</span> <span style="color: #007800;">$1</span><span style="color: #000000; font-weight: bold;">`</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">if</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #007800;">$?</span> <span style="color: #000000; font-weight: bold;">!</span>= <span style="color: #000000;">0</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span>; <span style="color: #000000; font-weight: bold;">then</span> <span style="color: #7a0874; font-weight: bold;">exit</span> <span style="color: #000000;">1</span>; <span style="color: #000000; font-weight: bold;">fi</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #007800;">$SCAN</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">grep</span> <span style="color: #660033;">-q</span> open<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">if</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #007800;">$?</span> <span style="color: #000000; font-weight: bold;">!</span>= <span style="color: #000000;">0</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span>; <span style="color: #000000; font-weight: bold;">then</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;tcp ping from <span style="color: #007800;">$HOST</span> (<span style="color: #007800;">$IP</span>) port <span style="color: #007800;">$PORT</span> (<span style="color: #007800;">$PROTO</span>): tcp_seq=<span style="color: #007800;">$i</span> time=<span style="color: #007800;">$(($((`date +%s%N| cut -c -13`-$TIME)</span>)))ms<span style="color: #000099; font-weight: bold;">\t</span>[\033[1;31mtimeout\033[0m]&quot;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">else</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;tcp ping from <span style="color: #007800;">$HOST</span> (<span style="color: #007800;">$IP</span>) port <span style="color: #007800;">$PORT</span> (<span style="color: #007800;">$PROTO</span>): tcp_seq=<span style="color: #007800;">$i</span> time=<span style="color: #007800;">$(($((`date +%s%N| cut -c -13`-$TIME)</span>)))ms<span style="color: #000099; font-weight: bold;">\t</span>[\033[1;32mok\033[0m]&quot;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">fi</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #c20cb9; font-weight: bold;">sleep</span> <span style="color: #000000;">1</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #007800;">i</span>=$<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>i+<span style="color: #000000;">1</span><span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span><br />
<span style="color: #000000; font-weight: bold;">done</span></div></td></tr></tbody></table></div>
<p>viel spaß und erfolg damit.</p>
<p><strong>Known Bugs:</strong></p>
<ul>
<li>Wenn als Host ein Nmap Parameter übergeben wird wie z.B: &#8220;&#8211;help&#8221; ist der Ping &#8220;[ok]&#8220;, da Nmap die Hilfe ausgibt, &#8220;grep -q open&#8221; ist in dem Fall Wahr, da auch in der Help ein &#8220;open&#8221; vorkommt.</li>
<li>Die Domainauflösung zur IP funktioniert zurzeit nicht bei einem Alias, da dann als erstes Ergebnis von &#8220;host&#8221; der CNAME zurückgeliefert wird.</li>
</ul>
<p>Wenn jemand eine Idee hat, wie das zu lösen ist (bevor ich eine habe oder das ganze Ding in Perl implementiere) wäre ich dankbar.</p>
<p>bis neulich</p>
<p>j-zero</p>
]]></content:encoded>
			<wfw:commentRss>http://www.j-zero.de/blog/ping-auf-einen-tcp-port-222.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Perl Twitter</title>
		<link>http://www.j-zero.de/blog/perl-twitter-181.html</link>
		<comments>http://www.j-zero.de/blog/perl-twitter-181.html#comments</comments>
		<pubDate>Fri, 06 Mar 2009 15:45:52 +0000</pubDate>
		<dc:creator>j-zero</dc:creator>
				<category><![CDATA[Anderes]]></category>
		<category><![CDATA[Computer]]></category>
		<category><![CDATA[Internet]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Programmieren]]></category>
		<category><![CDATA[Perl]]></category>
		<category><![CDATA[Twitter]]></category>

		<guid isPermaLink="false">http://www.j-zero.de/?p=181</guid>
		<description><![CDATA[Mahlzeit! Ich bin nun auch unter die Twitterer gegangen, nach dem ich ja den Blogkram auch schon mit gemacht habe. Nach kurzer Zeit habe ich ein Tool gesucht, mit dem ich aus der Kommandozeile unter Linux einen Tweet absetzen kann, habe aber erstmal nix gefunden. Also habe ich mal geschaut, ob es ein Perl Modul [...]]]></description>
			<content:encoded><![CDATA[<p>Mahlzeit!</p>
<p>Ich bin nun auch unter die <a href="http://www.twitter.com" target="_blank">Twitterer</a> gegangen, nach dem ich ja den Blogkram auch schon mit gemacht habe. Nach kurzer Zeit habe ich ein Tool gesucht, mit dem ich aus der Kommandozeile unter Linux einen Tweet absetzen kann, habe aber erstmal nix gefunden. Also habe ich mal geschaut, ob es ein <a href="http://search.cpan.org" target="_blank">Perl Modul</a> gibt. Und ja(!), es gibt eins, und zwar: &#8220;<a href="http://search.cpan.org/~cthom/Net-Twitter-2.10/lib/Net/Twitter.pm" target="_blank">Net::Twitter</a>&#8221; &#8211; wär hätte das gedacht! Ihr könnt das einfach mittels &#8220;perl -MCPAN -e &#8220;install Net::Twitter&#8221; installieren.</p>
<p>Hier ist mein kleines Script, welches aus der Konsole Tweets sendet, viel Spaß damit.</p>
<div class="codecolorer-container perl geshi" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br />11<br />12<br />13<br />14<br />15<br />16<br />17<br />18<br />19<br />20<br />21<br />22<br />23<br />24<br />25<br />26<br />27<br />28<br /></div></td><td><div class="perl codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #666666; font-style: italic;">#!/usr/bin/perl</span><br />
<span style="color: #000000; font-weight: bold;">use</span> Getopt<span style="color: #339933;">::</span><span style="color: #006600;">Std</span><span style="color: #339933;">;</span><br />
<span style="color: #000000; font-weight: bold;">use</span> Term<span style="color: #339933;">::</span><span style="color: #006600;">ReadKey</span><span style="color: #339933;">;</span><br />
<span style="color: #000000; font-weight: bold;">use</span> Net<span style="color: #339933;">::</span><span style="color: #006600;">Twitter</span><span style="color: #339933;">;</span><br />
getopt<span style="color: #009900;">&#40;</span><span style="color: #ff0000;">'upt'</span><span style="color: #339933;">,</span><span style="color: #0000ff;">\%opts</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<span style="color: #0000ff;">$usage</span><span style="color: #339933;">=</span> <span style="color: #cc0000; font-style: italic;">&lt;&lt;USAGE;<br />
commandline twitter 0.1b - www.j-zero.de<br />
Usage</span><span style="color: #339933;">:</span> twitter_cmd <span style="color: #339933;">-</span>u username <span style="color: #009900;">&#91;</span><span style="color: #339933;">-</span>t tweet<span style="color: #009900;">&#93;</span> <span style="color: #009900;">&#91;</span><span style="color: #339933;">-</span>p password<span style="color: #009900;">&#93;</span><br />
USAGE<br />
<span style="color: #000000; font-weight: bold;">sub</span> gp<span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; <a href="http://perldoc.perl.org/functions/print.html"><span style="color: #000066;">print</span></a> <span style="color: #ff0000;">&quot;password: &quot;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; ReadMode <span style="color: #cc66cc;">2</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; <a href="http://perldoc.perl.org/functions/chomp.html"><span style="color: #000066;">chomp</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">$l</span> <span style="color: #339933;">=</span> ReadLine<span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">0</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <br />
&nbsp; &nbsp; ReadMode <span style="color: #cc66cc;">0</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; <a href="http://perldoc.perl.org/functions/print.html"><span style="color: #000066;">print</span></a> <span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; <a href="http://perldoc.perl.org/functions/return.html"><span style="color: #000066;">return</span></a> <span style="color: #0000ff;">$l</span><span style="color: #339933;">;</span><br />
<span style="color: #009900;">&#125;</span><br />
<span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #339933;">!</span><span style="color: #0000ff;">$opts</span><span style="color: #009900;">&#123;</span>u<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span><a href="http://perldoc.perl.org/functions/print.html"><span style="color: #000066;">print</span></a> <span style="color: #0000ff;">$usage</span><span style="color: #339933;">;</span><a href="http://perldoc.perl.org/functions/exit.html"><span style="color: #000066;">exit</span></a> <span style="color: #cc66cc;">1</span><span style="color: #339933;">;</span><span style="color: #009900;">&#125;</span><br />
&nbsp; &nbsp; <span style="color: #b1b100;">else</span><span style="color: #009900;">&#123;</span><span style="color: #0000ff;">$u</span><span style="color: #339933;">=</span><span style="color: #0000ff;">$opts</span><span style="color: #009900;">&#123;</span>u<span style="color: #009900;">&#125;</span><span style="color: #339933;">;</span><span style="color: #009900;">&#125;</span><br />
<br />
<span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #339933;">!</span><span style="color: #0000ff;">$opts</span><span style="color: #009900;">&#123;</span>t<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span><a href="http://perldoc.perl.org/functions/print.html"><span style="color: #000066;">print</span></a> <span style="color: #ff0000;">&quot;tweet: &quot;</span><span style="color: #339933;">;</span><a href="http://perldoc.perl.org/functions/chomp.html"><span style="color: #000066;">chomp</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">$t</span><span style="color: #339933;">=</span><span style="color: #009999;">&lt;STDIN&gt;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><span style="color: #009900;">&#125;</span><br />
&nbsp; &nbsp; <span style="color: #b1b100;">else</span><span style="color: #009900;">&#123;</span><span style="color: #0000ff;">$t</span><span style="color: #339933;">=</span><span style="color: #0000ff;">$opts</span><span style="color: #009900;">&#123;</span>t<span style="color: #009900;">&#125;</span><span style="color: #339933;">;</span><span style="color: #009900;">&#125;</span><br />
<br />
<span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #339933;">!</span><span style="color: #0000ff;">$opts</span><span style="color: #009900;">&#123;</span>p<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span><span style="color: #0000ff;">$p</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&amp;gp</span><span style="color: #339933;">;</span><span style="color: #009900;">&#125;</span><br />
&nbsp; &nbsp; <span style="color: #b1b100;">else</span><span style="color: #009900;">&#123;</span><span style="color: #0000ff;">$p</span><span style="color: #339933;">=</span><span style="color: #0000ff;">$opts</span><span style="color: #009900;">&#123;</span>p<span style="color: #009900;">&#125;</span><span style="color: #339933;">;</span><span style="color: #009900;">&#125;</span><br />
<span style="color: #0000ff;">$s</span><span style="color: #339933;">=</span>Net<span style="color: #339933;">::</span><span style="color: #006600;">Twitter</span><span style="color: #339933;">-&gt;</span><span style="color: #000000; font-weight: bold;">new</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span>username<span style="color: #339933;">=&gt;</span><span style="color: #ff0000;">&quot;$u&quot;</span><span style="color: #339933;">,</span>password<span style="color: #339933;">=&gt;</span><span style="color: #ff0000;">&quot;$p&quot;</span> <span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<span style="color: #0000ff;">$s</span><span style="color: #339933;">-&gt;</span><span style="color: #006600;">update</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span>status<span style="color: #339933;">=&gt;</span><span style="color: #ff0000;">&quot;$t&quot;</span><span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<a href="http://perldoc.perl.org/functions/exit.html"><span style="color: #000066;">exit</span></a> <span style="color: #cc66cc;">0</span><span style="color: #339933;">;</span></div></td></tr></tbody></table></div>
<p>j-zero</p>
]]></content:encoded>
			<wfw:commentRss>http://www.j-zero.de/blog/perl-twitter-181.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Super-Storage</title>
		<link>http://www.j-zero.de/blog/super-storage-122.html</link>
		<comments>http://www.j-zero.de/blog/super-storage-122.html#comments</comments>
		<pubDate>Thu, 29 Jan 2009 11:16:49 +0000</pubDate>
		<dc:creator>j-zero</dc:creator>
				<category><![CDATA[Computer]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Sinnfrei]]></category>

		<guid isPermaLink="false">http://www.j-zero.de/?p=122</guid>
		<description><![CDATA[Mahlzeit, ich habe es endlich getan! Ein RAID5 auf sechs USB-Disketten Laufwerken, welch ein Spaß! Die Idee rührte eigentlich aus der Frage, welchen Laufwerksbuchstaben ein drittes an einen Windows angeschlossenes Diskettenlaufwerk bekommt. Die Antwort ist so einfach wie unspektakulär: Den nächst freien. Nun hatte ich aber drei Floppys, daraus musste sich ja etwas basteln lassen. [...]]]></description>
			<content:encoded><![CDATA[<p>Mahlzeit,</p>
<p>ich habe es endlich getan! Ein RAID5 auf sechs USB-Disketten Laufwerken, welch ein Spaß!</p>
<p>Die Idee rührte eigentlich aus der Frage, welchen Laufwerksbuchstaben ein drittes an einen Windows angeschlossenes Diskettenlaufwerk bekommt. Die Antwort ist so einfach wie unspektakulär: Den nächst freien. Nun hatte ich aber drei Floppys, daraus musste sich ja etwas basteln lassen. Kurz darauf kam auch die Idee, ein Linux Software-RAID! Ich habe also alle verfügbaren Floppys zusammengetragen und mittels USB-Hubs an mein Notebook geklemmt. Flink Datenträger rein, mit Partitiontype &#8220;FD&#8221; partitioniert, das RAID5 gebildet und &#8216;nen &#8220;mkfs.ext3&#8243; auf mein /dev/md0. Siehe da: 6,7MiB unglaublicher highspeed-performance (ca. 100KiB/s) . Hier nun einige Bilder des Aufbaus und Screenshots der Daten.</p>

<div class="ngg-galleryoverview" id="ngg-gallery-4-122">


	
	<!-- Thumbnails -->
		
	<div id="ngg-image-351" class="ngg-gallery-thumbnail-box"  >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://www.j-zero.de/wp-content/gallery/floppy-raid/floppy-raid1.jpg" title=" " class="shutterset_set_4" >
								<img title="floppy-raid1.jpg" alt="floppy-raid1.jpg" src="http://www.j-zero.de/wp-content/gallery/floppy-raid/thumbs/thumbs_floppy-raid1.jpg" width="100" height="75" />
							</a>
		</div>
	</div>
	
		
 		
	<div id="ngg-image-350" class="ngg-gallery-thumbnail-box"  >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://www.j-zero.de/wp-content/gallery/floppy-raid/floppy-raid-screen1.png" title=" " class="shutterset_set_4" >
								<img title="floppy-raid-screen1.png" alt="floppy-raid-screen1.png" src="http://www.j-zero.de/wp-content/gallery/floppy-raid/thumbs/thumbs_floppy-raid-screen1.png" width="100" height="75" />
							</a>
		</div>
	</div>
	
		
 		
	<div id="ngg-image-349" class="ngg-gallery-thumbnail-box"  >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://www.j-zero.de/wp-content/gallery/floppy-raid/floppy-raid-screen0.png" title=" " class="shutterset_set_4" >
								<img title="floppy-raid-screen0.png" alt="floppy-raid-screen0.png" src="http://www.j-zero.de/wp-content/gallery/floppy-raid/thumbs/thumbs_floppy-raid-screen0.png" width="100" height="75" />
							</a>
		</div>
	</div>
	
		
 		
	<div id="ngg-image-348" class="ngg-gallery-thumbnail-box"  >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://www.j-zero.de/wp-content/gallery/floppy-raid/floppy-raid0.jpg" title=" " class="shutterset_set_4" >
								<img title="floppy-raid0.jpg" alt="floppy-raid0.jpg" src="http://www.j-zero.de/wp-content/gallery/floppy-raid/thumbs/thumbs_floppy-raid0.jpg" width="100" height="75" />
							</a>
		</div>
	</div>
	
		
 	 	
	<!-- Pagination -->
 	<div class='ngg-clear'></div>
 	
</div>


<p>Und hier noch ein Video in Aktion:</p>
<p><object type="application/x-shockwave-flash" data="http://www.j-zero.de/wp-content/plugins/pb-embedflash/swf/mediaplayer.swf?width=425&amp;height=375" width="425" height="375" class="embedflash"><param name="movie" value="http://www.j-zero.de/wp-content/plugins/pb-embedflash/swf/mediaplayer.swf?width=425&amp;height=375" /><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="flashvars" value="file=http://www.j-zero.de/wp-content/videos/floppy-raid-vid0.flv&amp;image=http://www.j-zero.de/wp-content/videos/floppy-raid-vid0-screen.png&amp;searchbar=false" /><small>(Bitte den Artikel &ouml;ffnen, um die Flashdatei oder den Flashplayer zu sehen.)</small></object></p>
<p>bis neulich und viel Spaß beim Nachbauen.</p>
<p>j-zero</p>
]]></content:encoded>
			<wfw:commentRss>http://www.j-zero.de/blog/super-storage-122.html/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>

