<?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>Thu, 05 Aug 2010 07:14:15 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<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>


<div class="shr-bookmarks shr-bookmarks-expand shr-bookmarks-spaced shr-bookmarks-bg-knowledge">
<ul class="socials">
		<li class="shr-printfriendly">
			<a href="http://www.printfriendly.com/print?url=http://www.j-zero.de/blog/grub2-vs-windows-7-491.html" rel="nofollow" class="external" title="Sende diese Seite zu Print Friendly">Sende diese Seite zu Print Friendly</a>
		</li>
		<li class="shr-mail">
			<a href="mailto:?subject=%22GRUB2%20vs.%20Windows%207%22&amp;body=Link: http://www.j-zero.de/blog/grub2-vs-windows-7-491.html (sent via shareaholic)%0D%0A%0D%0A----%0D%0A Mahlzeit%2C%0D%0A%0D%0Aich%20hab%27%20gestern%20auf%20meinem%20Notebook%20mal%20Windows%207%20neu%20installiert.%20Nun%20stand%20ich%20nat%C3%BCrlich%20vor%20dem%20Problem%20GRUB2%20wieder%20zu%20installieren.%20Im%20Grunde%20kein%20gro%C3%9Fes%20Problem%2C%20au%C3%9Fer%20man%20macht%20einen%20Fehler.%0D%0ADas%20habe%20ich%20getan.%20Ich%20hatte%20beim%20reinstallieren%20von%20GRUB%20aus%20versehen%20%22%2Fdev%2Fsda1%22%20" rel="nofollow" class="external" title="Sende diesen Artikel einem Freund per Email">Sende diesen Artikel einem Freund per Email</a>
		</li>
		<li class="shr-comfeed">
			<a href="http://www.j-zero.de/blog/grub2-vs-windows-7-491.html/feed" rel="nofollow" class="external" title="Abonniere die Kommentare für diesen Beitrag">Abonniere die Kommentare für diesen Beitrag</a>
		</li>
		<li class="shr-slashdot">
			<a href="http://slashdot.org/bookmark.pl?url=http://www.j-zero.de/blog/grub2-vs-windows-7-491.html&amp;title=GRUB2+vs.+Windows+7" rel="nofollow" class="external" title="Empfehle diesen Artikel bei SlashDot">Empfehle diesen Artikel bei SlashDot</a>
		</li>
		<li class="shr-googlebookmarks">
			<a href="http://www.google.com/bookmarks/mark?op=add&amp;bkmk=http://www.j-zero.de/blog/grub2-vs-windows-7-491.html&amp;title=GRUB2+vs.+Windows+7" rel="nofollow" class="external" title="Füge hinzu zu Google Bookmarks">Füge hinzu zu Google Bookmarks</a>
		</li>
		<li class="shr-delicious">
			<a href="http://delicious.com/post?url=http://www.j-zero.de/blog/grub2-vs-windows-7-491.html&amp;title=GRUB2+vs.+Windows+7" rel="nofollow" class="external" title="Empfehle diesen Artikel bei del.icio.us">Empfehle diesen Artikel bei del.icio.us</a>
		</li>
		<li class="shr-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://www.j-zero.de/blog/grub2-vs-windows-7-491.html&amp;title=GRUB2+vs.+Windows+7" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="shr-googlereader">
			<a href="http://www.google.com/reader/link?url=http://www.j-zero.de/blog/grub2-vs-windows-7-491.html&amp;title=GRUB2+vs.+Windows+7&amp;srcUrl=http://www.j-zero.de/blog/grub2-vs-windows-7-491.html&amp;srcTitle=GRUB2+vs.+Windows+7&amp;snippet=Mahlzeit%2C%0D%0A%0D%0Aich%20hab%27%20gestern%20auf%20meinem%20Notebook%20mal%20Windows%207%20neu%20installiert.%20Nun%20stand%20ich%20nat%C3%BCrlich%20vor%20dem%20Problem%20GRUB2%20wieder%20zu%20installieren.%20Im%20Grunde%20kein%20gro%C3%9Fes%20Problem%2C%20au%C3%9Fer%20man%20macht%20einen%20Fehler.%0D%0ADas%20habe%20ich%20getan.%20Ich%20hatte%20beim%20reinstallieren%20von%20GRUB%20aus%20versehen%20%22%2Fdev%2Fsda1%22%20" rel="nofollow" class="external" title="Füge hinzu zu Google Reader">Füge hinzu zu Google Reader</a>
		</li>
		<li class="shr-twitter">
			<a href="http://twitter.com/home?status=GRUB2+vs.+Windows+7+-+http://tinyurl.com/2e3xr3p&amp;source=shareaholic" rel="nofollow" class="external" title="Twittere diesen Artikel!">Twittere diesen Artikel!</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>

]]></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>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</span> adv <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</span> update<br />
<span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">apt-get</span> <span style="color: #c20cb9; font-weight: bold;">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>


<div class="shr-bookmarks shr-bookmarks-expand shr-bookmarks-spaced shr-bookmarks-bg-knowledge">
<ul class="socials">
		<li class="shr-printfriendly">
			<a href="http://www.printfriendly.com/print?url=http://www.j-zero.de/blog/wolpertinger-mit-zwiebeln-304.html" rel="nofollow" class="external" title="Sende diese Seite zu Print Friendly">Sende diese Seite zu Print Friendly</a>
		</li>
		<li class="shr-mail">
			<a href="mailto:?subject=%22Wolpertinger%20mit%20Zwiebeln%22&amp;body=Link: http://www.j-zero.de/blog/wolpertinger-mit-zwiebeln-304.html (sent via shareaholic)%0D%0A%0D%0A----%0D%0A %0D%0AMahlzeit%2C%0D%0A%0D%0Aich%20hatte%20vor%20mal%20wieder%20Tor%20%28The%20Onion%20Router%29%20auf%20meinem%20Notebook%2C%20welches%20mit%20Ubuntu%209.04%20%28Jaunty%20Jackalope%29%20l%C3%A4uft%2C%20%20zu%20installieren%2C%20als%20ich%20feststellen%20musste%2C%20dass%20diese%20nicht%20in%20den%20Repositories%20ist.%20Nach%20kurzer%20Suche%20habe%20ich%20aber%20Repositories%20die%20es%20haben%3A%20http%3A%2F%2Fmirror.nore" rel="nofollow" class="external" title="Sende diesen Artikel einem Freund per Email">Sende diesen Artikel einem Freund per Email</a>
		</li>
		<li class="shr-comfeed">
			<a href="http://www.j-zero.de/blog/wolpertinger-mit-zwiebeln-304.html/feed" rel="nofollow" class="external" title="Abonniere die Kommentare für diesen Beitrag">Abonniere die Kommentare für diesen Beitrag</a>
		</li>
		<li class="shr-slashdot">
			<a href="http://slashdot.org/bookmark.pl?url=http://www.j-zero.de/blog/wolpertinger-mit-zwiebeln-304.html&amp;title=Wolpertinger+mit+Zwiebeln" rel="nofollow" class="external" title="Empfehle diesen Artikel bei SlashDot">Empfehle diesen Artikel bei SlashDot</a>
		</li>
		<li class="shr-googlebookmarks">
			<a href="http://www.google.com/bookmarks/mark?op=add&amp;bkmk=http://www.j-zero.de/blog/wolpertinger-mit-zwiebeln-304.html&amp;title=Wolpertinger+mit+Zwiebeln" rel="nofollow" class="external" title="Füge hinzu zu Google Bookmarks">Füge hinzu zu Google Bookmarks</a>
		</li>
		<li class="shr-delicious">
			<a href="http://delicious.com/post?url=http://www.j-zero.de/blog/wolpertinger-mit-zwiebeln-304.html&amp;title=Wolpertinger+mit+Zwiebeln" rel="nofollow" class="external" title="Empfehle diesen Artikel bei del.icio.us">Empfehle diesen Artikel bei del.icio.us</a>
		</li>
		<li class="shr-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://www.j-zero.de/blog/wolpertinger-mit-zwiebeln-304.html&amp;title=Wolpertinger+mit+Zwiebeln" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="shr-googlereader">
			<a href="http://www.google.com/reader/link?url=http://www.j-zero.de/blog/wolpertinger-mit-zwiebeln-304.html&amp;title=Wolpertinger+mit+Zwiebeln&amp;srcUrl=http://www.j-zero.de/blog/wolpertinger-mit-zwiebeln-304.html&amp;srcTitle=Wolpertinger+mit+Zwiebeln&amp;snippet=%0D%0AMahlzeit%2C%0D%0A%0D%0Aich%20hatte%20vor%20mal%20wieder%20Tor%20%28The%20Onion%20Router%29%20auf%20meinem%20Notebook%2C%20welches%20mit%20Ubuntu%209.04%20%28Jaunty%20Jackalope%29%20l%C3%A4uft%2C%20%20zu%20installieren%2C%20als%20ich%20feststellen%20musste%2C%20dass%20diese%20nicht%20in%20den%20Repositories%20ist.%20Nach%20kurzer%20Suche%20habe%20ich%20aber%20Repositories%20die%20es%20haben%3A%20http%3A%2F%2Fmirror.nore" rel="nofollow" class="external" title="Füge hinzu zu Google Reader">Füge hinzu zu Google Reader</a>
		</li>
		<li class="shr-twitter">
			<a href="http://twitter.com/home?status=Wolpertinger+mit+Zwiebeln+-+http://tinyurl.com/24ulqqv&amp;source=shareaholic" rel="nofollow" class="external" title="Twittere diesen Artikel!">Twittere diesen Artikel!</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>

]]></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>


<div class="shr-bookmarks shr-bookmarks-expand shr-bookmarks-spaced shr-bookmarks-bg-knowledge">
<ul class="socials">
		<li class="shr-printfriendly">
			<a href="http://www.printfriendly.com/print?url=http://www.j-zero.de/blog/ping-auf-einen-tcp-port-222.html" rel="nofollow" class="external" title="Sende diese Seite zu Print Friendly">Sende diese Seite zu Print Friendly</a>
		</li>
		<li class="shr-mail">
			<a href="mailto:?subject=%22Ping%20auf%20einen%20TCP-Port%22&amp;body=Link: http://www.j-zero.de/blog/ping-auf-einen-tcp-port-222.html (sent via shareaholic)%0D%0A%0D%0A----%0D%0A Mahlzeit%2C%0D%0A%0D%0Awie%20von%20schmidt24%20schon%20angek%C3%BCndigt%20habe%20ich%20das%20tcpping-Skript%20ein%20wenig%20erweitert%2C%20da%20ich%20finde%2C%20das%20Timeouts%20nicht%20markant%20genug%20dargestellt%20wurden%2C%20habe%20ich%20diese%20in%20rot%20und%20erfolgreiche%20Pings%20durch%20ein%20gr%C3%BCnes%20%22ok%22%20markiert.%0D%0A%0D%0AZudem%20ist%20es%20nun%20m%C3%B6glich%2C%20anstatt%20des%20Ports%20den%20Name" rel="nofollow" class="external" title="Sende diesen Artikel einem Freund per Email">Sende diesen Artikel einem Freund per Email</a>
		</li>
		<li class="shr-comfeed">
			<a href="http://www.j-zero.de/blog/ping-auf-einen-tcp-port-222.html/feed" rel="nofollow" class="external" title="Abonniere die Kommentare für diesen Beitrag">Abonniere die Kommentare für diesen Beitrag</a>
		</li>
		<li class="shr-slashdot">
			<a href="http://slashdot.org/bookmark.pl?url=http://www.j-zero.de/blog/ping-auf-einen-tcp-port-222.html&amp;title=Ping+auf+einen+TCP-Port" rel="nofollow" class="external" title="Empfehle diesen Artikel bei SlashDot">Empfehle diesen Artikel bei SlashDot</a>
		</li>
		<li class="shr-googlebookmarks">
			<a href="http://www.google.com/bookmarks/mark?op=add&amp;bkmk=http://www.j-zero.de/blog/ping-auf-einen-tcp-port-222.html&amp;title=Ping+auf+einen+TCP-Port" rel="nofollow" class="external" title="Füge hinzu zu Google Bookmarks">Füge hinzu zu Google Bookmarks</a>
		</li>
		<li class="shr-delicious">
			<a href="http://delicious.com/post?url=http://www.j-zero.de/blog/ping-auf-einen-tcp-port-222.html&amp;title=Ping+auf+einen+TCP-Port" rel="nofollow" class="external" title="Empfehle diesen Artikel bei del.icio.us">Empfehle diesen Artikel bei del.icio.us</a>
		</li>
		<li class="shr-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://www.j-zero.de/blog/ping-auf-einen-tcp-port-222.html&amp;title=Ping+auf+einen+TCP-Port" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="shr-googlereader">
			<a href="http://www.google.com/reader/link?url=http://www.j-zero.de/blog/ping-auf-einen-tcp-port-222.html&amp;title=Ping+auf+einen+TCP-Port&amp;srcUrl=http://www.j-zero.de/blog/ping-auf-einen-tcp-port-222.html&amp;srcTitle=Ping+auf+einen+TCP-Port&amp;snippet=Mahlzeit%2C%0D%0A%0D%0Awie%20von%20schmidt24%20schon%20angek%C3%BCndigt%20habe%20ich%20das%20tcpping-Skript%20ein%20wenig%20erweitert%2C%20da%20ich%20finde%2C%20das%20Timeouts%20nicht%20markant%20genug%20dargestellt%20wurden%2C%20habe%20ich%20diese%20in%20rot%20und%20erfolgreiche%20Pings%20durch%20ein%20gr%C3%BCnes%20%22ok%22%20markiert.%0D%0A%0D%0AZudem%20ist%20es%20nun%20m%C3%B6glich%2C%20anstatt%20des%20Ports%20den%20Name" rel="nofollow" class="external" title="Füge hinzu zu Google Reader">Füge hinzu zu Google Reader</a>
		</li>
		<li class="shr-twitter">
			<a href="http://twitter.com/home?status=Ping+auf+einen+TCP-Port+-+http://tinyurl.com/2a2jf6m&amp;source=shareaholic" rel="nofollow" class="external" title="Twittere diesen Artikel!">Twittere diesen Artikel!</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>

]]></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>exit <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>chomp<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: #006600;">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>


<div class="shr-bookmarks shr-bookmarks-expand shr-bookmarks-spaced shr-bookmarks-bg-knowledge">
<ul class="socials">
		<li class="shr-printfriendly">
			<a href="http://www.printfriendly.com/print?url=http://www.j-zero.de/blog/perl-twitter-181.html" rel="nofollow" class="external" title="Sende diese Seite zu Print Friendly">Sende diese Seite zu Print Friendly</a>
		</li>
		<li class="shr-mail">
			<a href="mailto:?subject=%22Perl%20Twitter%22&amp;body=Link: http://www.j-zero.de/blog/perl-twitter-181.html (sent via shareaholic)%0D%0A%0D%0A----%0D%0A Mahlzeit%21%0D%0A%0D%0AIch%20bin%20nun%20auch%20unter%20die%20Twitterer%20gegangen%2C%20nach%20dem%20ich%20ja%20den%20Blogkram%20auch%20schon%20mit%20gemacht%20habe.%20Nach%20kurzer%20Zeit%20habe%20ich%20ein%20Tool%20gesucht%2C%20mit%20dem%20ich%20aus%20der%20Kommandozeile%20unter%20Linux%20einen%20Tweet%20absetzen%20kann%2C%20habe%20aber%20erstmal%20nix%20gefunden.%20Also%20habe%20ich%20mal%20geschaut%2C%20ob%20es" rel="nofollow" class="external" title="Sende diesen Artikel einem Freund per Email">Sende diesen Artikel einem Freund per Email</a>
		</li>
		<li class="shr-comfeed">
			<a href="http://www.j-zero.de/blog/perl-twitter-181.html/feed" rel="nofollow" class="external" title="Abonniere die Kommentare für diesen Beitrag">Abonniere die Kommentare für diesen Beitrag</a>
		</li>
		<li class="shr-slashdot">
			<a href="http://slashdot.org/bookmark.pl?url=http://www.j-zero.de/blog/perl-twitter-181.html&amp;title=Perl+Twitter" rel="nofollow" class="external" title="Empfehle diesen Artikel bei SlashDot">Empfehle diesen Artikel bei SlashDot</a>
		</li>
		<li class="shr-googlebookmarks">
			<a href="http://www.google.com/bookmarks/mark?op=add&amp;bkmk=http://www.j-zero.de/blog/perl-twitter-181.html&amp;title=Perl+Twitter" rel="nofollow" class="external" title="Füge hinzu zu Google Bookmarks">Füge hinzu zu Google Bookmarks</a>
		</li>
		<li class="shr-delicious">
			<a href="http://delicious.com/post?url=http://www.j-zero.de/blog/perl-twitter-181.html&amp;title=Perl+Twitter" rel="nofollow" class="external" title="Empfehle diesen Artikel bei del.icio.us">Empfehle diesen Artikel bei del.icio.us</a>
		</li>
		<li class="shr-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://www.j-zero.de/blog/perl-twitter-181.html&amp;title=Perl+Twitter" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="shr-googlereader">
			<a href="http://www.google.com/reader/link?url=http://www.j-zero.de/blog/perl-twitter-181.html&amp;title=Perl+Twitter&amp;srcUrl=http://www.j-zero.de/blog/perl-twitter-181.html&amp;srcTitle=Perl+Twitter&amp;snippet=Mahlzeit%21%0D%0A%0D%0AIch%20bin%20nun%20auch%20unter%20die%20Twitterer%20gegangen%2C%20nach%20dem%20ich%20ja%20den%20Blogkram%20auch%20schon%20mit%20gemacht%20habe.%20Nach%20kurzer%20Zeit%20habe%20ich%20ein%20Tool%20gesucht%2C%20mit%20dem%20ich%20aus%20der%20Kommandozeile%20unter%20Linux%20einen%20Tweet%20absetzen%20kann%2C%20habe%20aber%20erstmal%20nix%20gefunden.%20Also%20habe%20ich%20mal%20geschaut%2C%20ob%20es" rel="nofollow" class="external" title="Füge hinzu zu Google Reader">Füge hinzu zu Google Reader</a>
		</li>
		<li class="shr-twitter">
			<a href="http://twitter.com/home?status=Perl+Twitter+-+http://tinyurl.com/cjfwgo&amp;source=shareaholic" rel="nofollow" class="external" title="Twittere diesen Artikel!">Twittere diesen Artikel!</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>

]]></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>


<div class="shr-bookmarks shr-bookmarks-expand shr-bookmarks-spaced shr-bookmarks-bg-knowledge">
<ul class="socials">
		<li class="shr-printfriendly">
			<a href="http://www.printfriendly.com/print?url=http://www.j-zero.de/blog/super-storage-122.html" rel="nofollow" class="external" title="Sende diese Seite zu Print Friendly">Sende diese Seite zu Print Friendly</a>
		</li>
		<li class="shr-mail">
			<a href="mailto:?subject=%22Super-Storage%22&amp;body=Link: http://www.j-zero.de/blog/super-storage-122.html (sent via shareaholic)%0D%0A%0D%0A----%0D%0A Mahlzeit%2C%0D%0A%0D%0Aich%20habe%20es%20endlich%20getan%21%20Ein%20RAID5%20auf%20sechs%20USB-Disketten%20Laufwerken%2C%20welch%20ein%20Spa%C3%9F%21%0D%0A%0D%0ADie%20Idee%20r%C3%BChrte%20eigentlich%20aus%20der%20Frage%2C%20welchen%20Laufwerksbuchstaben%20ein%20drittes%20an%20einen%20Windows%20angeschlossenes%20Diskettenlaufwerk%20bekommt.%20Die%20Antwort%20ist%20so%20einfach%20wie%20unspektakul%C3%A4r%3A%20Den%20" rel="nofollow" class="external" title="Sende diesen Artikel einem Freund per Email">Sende diesen Artikel einem Freund per Email</a>
		</li>
		<li class="shr-comfeed">
			<a href="http://www.j-zero.de/blog/super-storage-122.html/feed" rel="nofollow" class="external" title="Abonniere die Kommentare für diesen Beitrag">Abonniere die Kommentare für diesen Beitrag</a>
		</li>
		<li class="shr-slashdot">
			<a href="http://slashdot.org/bookmark.pl?url=http://www.j-zero.de/blog/super-storage-122.html&amp;title=Super-Storage" rel="nofollow" class="external" title="Empfehle diesen Artikel bei SlashDot">Empfehle diesen Artikel bei SlashDot</a>
		</li>
		<li class="shr-googlebookmarks">
			<a href="http://www.google.com/bookmarks/mark?op=add&amp;bkmk=http://www.j-zero.de/blog/super-storage-122.html&amp;title=Super-Storage" rel="nofollow" class="external" title="Füge hinzu zu Google Bookmarks">Füge hinzu zu Google Bookmarks</a>
		</li>
		<li class="shr-delicious">
			<a href="http://delicious.com/post?url=http://www.j-zero.de/blog/super-storage-122.html&amp;title=Super-Storage" rel="nofollow" class="external" title="Empfehle diesen Artikel bei del.icio.us">Empfehle diesen Artikel bei del.icio.us</a>
		</li>
		<li class="shr-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://www.j-zero.de/blog/super-storage-122.html&amp;title=Super-Storage" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="shr-googlereader">
			<a href="http://www.google.com/reader/link?url=http://www.j-zero.de/blog/super-storage-122.html&amp;title=Super-Storage&amp;srcUrl=http://www.j-zero.de/blog/super-storage-122.html&amp;srcTitle=Super-Storage&amp;snippet=Mahlzeit%2C%0D%0A%0D%0Aich%20habe%20es%20endlich%20getan%21%20Ein%20RAID5%20auf%20sechs%20USB-Disketten%20Laufwerken%2C%20welch%20ein%20Spa%C3%9F%21%0D%0A%0D%0ADie%20Idee%20r%C3%BChrte%20eigentlich%20aus%20der%20Frage%2C%20welchen%20Laufwerksbuchstaben%20ein%20drittes%20an%20einen%20Windows%20angeschlossenes%20Diskettenlaufwerk%20bekommt.%20Die%20Antwort%20ist%20so%20einfach%20wie%20unspektakul%C3%A4r%3A%20Den%20" rel="nofollow" class="external" title="Füge hinzu zu Google Reader">Füge hinzu zu Google Reader</a>
		</li>
		<li class="shr-twitter">
			<a href="http://twitter.com/home?status=Super-Storage+-+http://tinyurl.com/muvr65&amp;source=shareaholic" rel="nofollow" class="external" title="Twittere diesen Artikel!">Twittere diesen Artikel!</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>

]]></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>
