<?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>Gerds Blog &#187; Allgemein</title>
	<atom:link href="http://blog.it4sport.de/category/software/linux/allgemein/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.it4sport.de</link>
	<description>Noch so ein Blog ...</description>
	<lastBuildDate>Mon, 28 Nov 2011 17:25:32 +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>SCSI Bus neu scannen</title>
		<link>http://blog.it4sport.de/2011/01/13/scsi-bus-neu-scannen/</link>
		<comments>http://blog.it4sport.de/2011/01/13/scsi-bus-neu-scannen/#comments</comments>
		<pubDate>Thu, 13 Jan 2011 21:07:07 +0000</pubDate>
		<dc:creator>Gerd</dc:creator>
				<category><![CDATA[Allgemein]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[SCSI]]></category>

		<guid isPermaLink="false">http://blog.it4sport.de/?p=1593</guid>
		<description><![CDATA[Gut man kann neu booten oder besser echo "- - -" > /sys/class/scsi_host/hostX/scan nehmen Artikel als PDF exportieren.]]></description>
			<content:encoded><![CDATA[<p>Gut man kann neu booten oder besser </p>
<pre>
echo "- - -" > /sys/class/scsi_host/hostX/scan
</pre>
<p>nehmen</p>
 <span class="post2pdf_span" style="border: 0px solid gray; width: 160px; text-align: left; "><a href="http://blog.it4sport.de/wp-content/plugins/post2pdf/generate.php?post=9" rel="nofollow"><img src="http://blog.it4sport.de/wp-content/plugins/post2pdf/icon/pdf.png" width="16px" height="16px" /> Artikel als PDF exportieren. </a></span>]]></content:encoded>
			<wfw:commentRss>http://blog.it4sport.de/2011/01/13/scsi-bus-neu-scannen/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>/dev/disk</title>
		<link>http://blog.it4sport.de/2011/01/07/devdisk/</link>
		<comments>http://blog.it4sport.de/2011/01/07/devdisk/#comments</comments>
		<pubDate>Fri, 07 Jan 2011 13:08:51 +0000</pubDate>
		<dc:creator>Gerd</dc:creator>
				<category><![CDATA[Allgemein]]></category>
		<category><![CDATA[disk]]></category>
		<category><![CDATA[fstab]]></category>
		<category><![CDATA[label]]></category>
		<category><![CDATA[Mount]]></category>

		<guid isPermaLink="false">http://blog.it4sport.de/?p=1591</guid>
		<description><![CDATA[Will man Platten Ã¼ber die Labels mounten so gibt /dev/disk einen guten Ãœberblick. Ein Beispiel: gmueller@gm:~$ tree /dev/disk /dev/disk &#124;-- by-id &#124; &#124;-- ata-Hitachi_HTS541616J9SA00_SB2481SJEPV72E -> ../../sda &#124; &#124;-- ata-Hitachi_HTS541616J9SA00_SB2481SJEPV72E-part1 -> ../../sda1 &#124; &#124;-- ata-Hitachi_HTS541616J9SA00_SB2481SJEPV72E-part3 -> ../../sda3 &#124; &#124;-- ata-Hitachi_HTS541616J9SA00_SB2481SJEPV72E-part4 -> ../../sda4 &#124; &#124;-- ata-Hitachi_HTS541616J9SA00_SB2481SJEPV72E-part5 -> ../../sda5 &#124; &#124;-- scsi-SATA_Hitachi_HTS5416_SB2481SJEPV72E -> ../../sda &#124; &#124;-- scsi-SATA_Hitachi_HTS5416_SB2481SJEPV72E-part1 -> [...]]]></description>
			<content:encoded><![CDATA[<p>Will man Platten Ã¼ber die Labels mounten so gibt /dev/disk einen guten Ãœberblick. Ein Beispiel:</p>
<pre>
gmueller@gm:~$ tree /dev/disk
/dev/disk
|-- by-id
|   |-- ata-Hitachi_HTS541616J9SA00_SB2481SJEPV72E -> ../../sda
|   |-- ata-Hitachi_HTS541616J9SA00_SB2481SJEPV72E-part1 -> ../../sda1
|   |-- ata-Hitachi_HTS541616J9SA00_SB2481SJEPV72E-part3 -> ../../sda3
|   |-- ata-Hitachi_HTS541616J9SA00_SB2481SJEPV72E-part4 -> ../../sda4
|   |-- ata-Hitachi_HTS541616J9SA00_SB2481SJEPV72E-part5 -> ../../sda5
|   |-- scsi-SATA_Hitachi_HTS5416_SB2481SJEPV72E -> ../../sda
|   |-- scsi-SATA_Hitachi_HTS5416_SB2481SJEPV72E-part1 -> ../../sda1
|   |-- scsi-SATA_Hitachi_HTS5416_SB2481SJEPV72E-part3 -> ../../sda3
|   |-- scsi-SATA_Hitachi_HTS5416_SB2481SJEPV72E-part4 -> ../../sda4
|   `-- scsi-SATA_Hitachi_HTS5416_SB2481SJEPV72E-part5 -> ../../sda5
|-- by-label
|   `-- HP_RECOVERY -> ../../sda3
|-- by-path
|   |-- pci-0000:00:1f.1-scsi-0:0:0:0 -> ../../sr0
|   |-- pci-0000:00:1f.2-scsi-0:0:0:0 -> ../../sda
|   |-- pci-0000:00:1f.2-scsi-0:0:0:0-part1 -> ../../sda1
|   |-- pci-0000:00:1f.2-scsi-0:0:0:0-part3 -> ../../sda3
|   |-- pci-0000:00:1f.2-scsi-0:0:0:0-part4 -> ../../sda4
|   `-- pci-0000:00:1f.2-scsi-0:0:0:0-part5 -> ../../sda5
`-- by-uuid
    |-- d321dda3-bc1f-4d24-a56f-a86d66002b1c -> ../../sda5
    |-- e916f1d1-44fe-4def-8bf6-5b9eacbe13a6 -> ../../sda1
    `-- FAFC5F30FC5EE703 -> ../../sda3
</pre>
 <span class="post2pdf_span" style="border: 0px solid gray; width: 160px; text-align: left; "><a href="http://blog.it4sport.de/wp-content/plugins/post2pdf/generate.php?post=7" rel="nofollow"><img src="http://blog.it4sport.de/wp-content/plugins/post2pdf/icon/pdf.png" width="16px" height="16px" /> Artikel als PDF exportieren. </a></span>]]></content:encoded>
			<wfw:commentRss>http://blog.it4sport.de/2011/01/07/devdisk/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>xdotool oder wie gewinne ich jedes &#8220;Clickrennen&#8221;</title>
		<link>http://blog.it4sport.de/2010/11/17/xdotool-oder-wie-gewinne-ich-jedes-clickrennen/</link>
		<comments>http://blog.it4sport.de/2010/11/17/xdotool-oder-wie-gewinne-ich-jedes-clickrennen/#comments</comments>
		<pubDate>Wed, 17 Nov 2010 07:19:38 +0000</pubDate>
		<dc:creator>Gerd</dc:creator>
				<category><![CDATA[Allgemein]]></category>
		<category><![CDATA[click]]></category>
		<category><![CDATA[mouse]]></category>
		<category><![CDATA[X]]></category>
		<category><![CDATA[xdotool]]></category>

		<guid isPermaLink="false">http://blog.it4sport.de/?p=1572</guid>
		<description><![CDATA[Bevor ich wieder den Namen des Tools vergesse und wieder suche muss, schreibe ich es hier auf. xdotool ist ein ganz praktisches Tool um Eingaben unter X per Skript zu steuern. So kann man etwas ganz einfach jeden &#8220;wer clickt am schnellsten oder am Ã¶ftesten&#8221; Wettkampf mit folgenden kleinen &#8220;Skript&#8221; gewinnen. Einfach die Mouse auf [...]]]></description>
			<content:encoded><![CDATA[<p>Bevor ich wieder den Namen des Tools vergesse und wieder suche muss, schreibe ich es hier auf. <a href="http://www.semicomplete.com/projects/xdotool/">xdotool</a> ist ein ganz praktisches Tool um Eingaben unter X per Skript zu steuern. So kann man etwas ganz einfach jeden &#8220;wer clickt am schnellsten oder am Ã¶ftesten&#8221; Wettkampf mit folgenden kleinen &#8220;Skript&#8221; gewinnen. Einfach die Mouse auf dem entsprechenden Punkt platzieren und</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"> <span style="color: #000000; font-weight: bold;">for</span> i <span style="color: #000000; font-weight: bold;">in</span> <span style="color: #7a0874; font-weight: bold;">&#123;</span><span style="color: #000000;">1</span>..<span style="color: #000000;">200</span><span style="color: #7a0874; font-weight: bold;">&#125;</span>; <span style="color: #000000; font-weight: bold;">do</span> xdotool click <span style="color: #000000;">1</span> ; <span style="color: #000000; font-weight: bold;">done</span></pre></div></div>

<p> abschicken. Fertig. NatÃ¼rlich kann xdotool noch mehr&#8230; <a href="http://www.semicomplete.com/projects/xdotool/xdotool#desktop_and_window_commands">RTFM</a></p>
 <span class="post2pdf_span" style="border: 0px solid gray; width: 160px; text-align: left; "><a href="http://blog.it4sport.de/wp-content/plugins/post2pdf/generate.php?post=$" rel="nofollow"><img src="http://blog.it4sport.de/wp-content/plugins/post2pdf/icon/pdf.png" width="16px" height="16px" /> Artikel als PDF exportieren. </a></span>]]></content:encoded>
			<wfw:commentRss>http://blog.it4sport.de/2010/11/17/xdotool-oder-wie-gewinne-ich-jedes-clickrennen/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>don&#8217;t give up &#8211; Part 2</title>
		<link>http://blog.it4sport.de/2010/09/24/dont-give-up-part-2/</link>
		<comments>http://blog.it4sport.de/2010/09/24/dont-give-up-part-2/#comments</comments>
		<pubDate>Fri, 24 Sep 2010 22:19:50 +0000</pubDate>
		<dc:creator>Gerd</dc:creator>
				<category><![CDATA[Allgemein]]></category>
		<category><![CDATA[restartd]]></category>
		<category><![CDATA[watchdog]]></category>

		<guid isPermaLink="false">http://blog.it4sport.de/?p=1547</guid>
		<description><![CDATA[Leider gibt es restartd nicht unter Centos. Nachdem mir aber immer wieder ein Prozess um die Ohren fliegt hab ich mir mal ein kleines Skript dafÃ¼r geschrieben: #!/bin/sh &#160; logger &#34;watchdog: started watchdog&#34; while &#91; 1==1 &#93;; do &#160; PROCS=`ps -C pppoe &#124; grep pppoe &#124; grep -v grep &#124; wc -l ` &#160; if [...]]]></description>
			<content:encoded><![CDATA[<p>Leider gibt es <a href="http://blog.it4sport.de/2008/12/17/restartd-oder-dont-give-up/">restartd</a> nicht unter Centos. Nachdem mir aber immer wieder ein Prozess um die Ohren fliegt hab ich mir mal ein kleines Skript dafÃ¼r geschrieben:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">#!/bin/sh</span>
&nbsp;
logger <span style="color: #ff0000;">&quot;watchdog: started watchdog&quot;</span>
<span style="color: #000000; font-weight: bold;">while</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #000000;">1</span>==<span style="color: #000000;">1</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span>; <span style="color: #000000; font-weight: bold;">do</span>
&nbsp;
  <span style="color: #007800;">PROCS</span>=<span style="color: #000000; font-weight: bold;">`</span><span style="color: #c20cb9; font-weight: bold;">ps</span> <span style="color: #660033;">-C</span> pppoe <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">grep</span> pppoe <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">grep</span> <span style="color: #660033;">-v</span> <span style="color: #c20cb9; font-weight: bold;">grep</span> <span style="color: #000000; font-weight: bold;">|</span>  <span style="color: #c20cb9; font-weight: bold;">wc</span> <span style="color: #660033;">-l</span> <span style="color: #000000; font-weight: bold;">`</span>
&nbsp;
  <span style="color: #000000; font-weight: bold;">if</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #000000; font-weight: bold;">!</span> <span style="color: #ff0000;">&quot;<span style="color: #007800;">$PROCS</span>&quot;</span> == <span style="color: #ff0000;">&quot;2&quot;</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span>; <span style="color: #000000; font-weight: bold;">then</span>
    logger <span style="color: #ff0000;">&quot;watchdog: restart&quot;</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>network restart
  <span style="color: #000000; font-weight: bold;">fi</span>
&nbsp;
  <span style="color: #c20cb9; font-weight: bold;">sleep</span> <span style="color: #000000;">1</span>
<span style="color: #000000; font-weight: bold;">done</span>
<span style="color: #000000; font-weight: bold;">&lt;/</span>code<span style="color: #000000; font-weight: bold;">&gt;</span>
&nbsp;
Zum Starten bediene ich mir der inittab:
<span style="color: #000000; font-weight: bold;">&lt;</span>pre <span style="color: #007800;">lang</span>=<span style="color: #ff0000;">&quot;ini&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span>
wd:<span style="color: #000000;">2345</span>:respawn:<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>watchdog.sh</pre></div></div>

<p>Mal sehen ob das was bringt.</p>
 <span class="post2pdf_span" style="border: 0px solid gray; width: 160px; text-align: left; "><a href="http://blog.it4sport.de/wp-content/plugins/post2pdf/generate.php?post=" rel="nofollow"><img src="http://blog.it4sport.de/wp-content/plugins/post2pdf/icon/pdf.png" width="16px" height="16px" /> Artikel als PDF exportieren. </a></span>]]></content:encoded>
			<wfw:commentRss>http://blog.it4sport.de/2010/09/24/dont-give-up-part-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Iptables: Netzwerk Stats</title>
		<link>http://blog.it4sport.de/2010/08/26/iptables-netzwerk-stats/</link>
		<comments>http://blog.it4sport.de/2010/08/26/iptables-netzwerk-stats/#comments</comments>
		<pubDate>Thu, 26 Aug 2010 12:54:57 +0000</pubDate>
		<dc:creator>Gerd</dc:creator>
				<category><![CDATA[Allgemein]]></category>
		<category><![CDATA[accounting]]></category>
		<category><![CDATA[IPTables]]></category>
		<category><![CDATA[traffic]]></category>

		<guid isPermaLink="false">http://blog.it4sport.de/?p=1538</guid>
		<description><![CDATA[Bevor ich wieder manpages lesen muss, schreib ich mir das hier mal auf: Wie jede andere Firewall auch fÃ¼hrt iptables auch eine Statistik Ã¼ber den verarbeiteten Pakete und Bytes. Dabei wird pro Regel gezÃ¤hlt. Ein Beispiel iptables -nvL INPUT Chain INPUT (policy DROP 10 packets, 508 bytes) pkts bytes target prot opt in out source [...]]]></description>
			<content:encoded><![CDATA[<p>Bevor ich wieder manpages lesen muss, schreib ich mir das hier mal auf:</p>
<p>Wie jede andere Firewall auch fÃ¼hrt iptables auch eine Statistik Ã¼ber den verarbeiteten Pakete und Bytes. Dabei wird pro Regel gezÃ¤hlt. Ein Beispiel</p>
<pre>
 iptables -nvL INPUT
Chain INPUT (policy DROP 10 packets, 508 bytes)
 pkts bytes target     prot opt in     out     source               destination
 243K   43M fail2ban-ssh  tcp  --  *      *       0.0.0.0/0            0.0.0.0/0           multiport dports 22
  58M  115G ACCEPT     all  --  lo     *       0.0.0.0/0            0.0.0.0/0
  62M   18G ppp0_in    all  --  ppp0   *       0.0.0.0/0            0.0.0.0/0
 397M  460G eth0_in    all  --  eth0   *       0.0.0.0/0            0.0.0.0/0
...
</pre>
<p>ZurÃ¼cksetzen kann man die Counter Ã¼brigens ganz einfach mit -Z also etwa</p>
<pre>iptables -Z INPUT</pre>
 <span class="post2pdf_span" style="border: 0px solid gray; width: 160px; text-align: left; "><a href="http://blog.it4sport.de/wp-content/plugins/post2pdf/generate.php?post=" rel="nofollow"><img src="http://blog.it4sport.de/wp-content/plugins/post2pdf/icon/pdf.png" width="16px" height="16px" /> Artikel als PDF exportieren. </a></span>]]></content:encoded>
			<wfw:commentRss>http://blog.it4sport.de/2010/08/26/iptables-netzwerk-stats/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Reboot nach PartitionsÃ¤nderung mit fdisk vermeiden</title>
		<link>http://blog.it4sport.de/2010/08/26/reboot-nach-prationsanderung-mit-fdisk-vermeiden/</link>
		<comments>http://blog.it4sport.de/2010/08/26/reboot-nach-prationsanderung-mit-fdisk-vermeiden/#comments</comments>
		<pubDate>Thu, 26 Aug 2010 10:00:35 +0000</pubDate>
		<dc:creator>Gerd</dc:creator>
				<category><![CDATA[Allgemein]]></category>
		<category><![CDATA[fdisk]]></category>
		<category><![CDATA[LVM]]></category>
		<category><![CDATA[partition]]></category>

		<guid isPermaLink="false">http://blog.it4sport.de/?p=1533</guid>
		<description><![CDATA[Vor Ewigkeiten hatte ich mir hier aufgeschrieben, dass nach einem fdisk auf der aktuellen Platte ein Reboot notwendig ist. Das ist falsch! Mit partprobe steht ein Tool unter Linux zur VerfÃ¼gung, dass dem Kernel die Ã„nderung der Partitionstabelle mitteilt. Man lernt nie aus &#8230; Artikel als PDF exportieren.]]></description>
			<content:encoded><![CDATA[<p>Vor Ewigkeiten hatte ich mir <a href="http://blog.it4sport.de/2008/09/22/platz-da-oder-lvm-einer-vmware-vergrosern/">hier</a> aufgeschrieben, dass nach einem fdisk auf der aktuellen Platte ein Reboot notwendig ist. Das ist falsch! Mit <em>partprobe</em> steht ein Tool unter Linux zur VerfÃ¼gung, dass dem Kernel die Ã„nderung der Partitionstabelle mitteilt.</p>
<p>Man lernt nie aus &#8230;</p>
 <span class="post2pdf_span" style="border: 0px solid gray; width: 160px; text-align: left; "><a href="http://blog.it4sport.de/wp-content/plugins/post2pdf/generate.php?post=ý" rel="nofollow"><img src="http://blog.it4sport.de/wp-content/plugins/post2pdf/icon/pdf.png" width="16px" height="16px" /> Artikel als PDF exportieren. </a></span>]]></content:encoded>
			<wfw:commentRss>http://blog.it4sport.de/2010/08/26/reboot-nach-prationsanderung-mit-fdisk-vermeiden/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>PL2303 Udev Abenteuer</title>
		<link>http://blog.it4sport.de/2010/03/10/pl2303-udev-abenteuer/</link>
		<comments>http://blog.it4sport.de/2010/03/10/pl2303-udev-abenteuer/#comments</comments>
		<pubDate>Wed, 10 Mar 2010 12:48:56 +0000</pubDate>
		<dc:creator>Gerd</dc:creator>
				<category><![CDATA[Allgemein]]></category>
		<category><![CDATA[pl2303]]></category>
		<category><![CDATA[udev]]></category>

		<guid isPermaLink="false">http://blog.it4sport.de/?p=1455</guid>
		<description><![CDATA[Ich habe mir einen 4fach USB zu serial Adapter gekauft. Das Teil ist super einfach. Es hat einen Hub eingebaut an dem 4 PL2303 Adapter hÃ¤ngen. Die werden der Reihenfolge im System eingehÃ¤ngt. Doof nur, dass ich machmal auch andere Geschichten mit FTDI oder PL2303 anschlieÃŸe. So kann es vorkommen, dass die Ports nicht brav [...]]]></description>
			<content:encoded><![CDATA[<p>Ich habe mir einen 4fach USB zu serial Adapter gekauft. Das Teil ist super einfach. Es hat einen Hub eingebaut an dem 4 PL2303 Adapter hÃ¤ngen. Die werden der Reihenfolge im System eingehÃ¤ngt. Doof nur, dass ich machmal auch andere Geschichten mit FTDI oder PL2303 anschlieÃŸe. So kann es vorkommen, dass die Ports nicht brav immer am Anfang der Reihenfolge geladen werden, sondern diverse Ports haben. Logischerweise will ich aber immer den richtigen Port direkt ansprechen. Daher habe ich mir ein UDEV Regel mit einem kleinen Skript gebastelt:</p>
<ol>
<li>UDEV

<div class="wp_syntax"><div class="code"><pre class="ini" style="font-family:monospace;"><span style="color: #000099;">KERNEL</span><span style="color: #000066; font-weight:bold;">=</span><span style="color: #660066;">=</span><span style="color: #933;">&quot;ttyUSB*&quot;</span>, SYSFS<span style="">&#123;</span>product<span style="">&#125;</span><span style="color: #000066; font-weight:bold;">==</span><span style="color: #933;">&quot;USB-Serial Controller&quot;</span>, RUN<span style="color: #000066; font-weight:bold;">=</span><span style="color: #933;">&quot;/usr/local/bin/comdevice.pl %p %k&quot;</span></pre></div></div>

</li>
<li>Skript

<div class="wp_syntax"><div class="code"><pre class="perl" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">#!/usr/bin/perl</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">use</span> strict<span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">use</span> warnings<span style="color: #339933;">;</span>
&nbsp;
<span style="color: #b1b100;">my</span> <span style="color: #0000ff;">$device</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">$ARGV</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">0</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">my</span> <span style="color: #0000ff;">$path</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">$ARGV</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">1</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
<span style="color: #000066;">exit</span> <span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">$device</span> <span style="color: #339933;">!~</span> <span style="color: #009966; font-style: italic;">/devices/</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #b1b100;">my</span> <span style="color: #0000ff;">$newcomport</span> <span style="color: #339933;">=</span> <span style="color: #ff0000;">&quot;0&quot;</span><span style="color: #339933;">;</span>
<span style="color: #0000ff;">$newcomport</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">$1</span> <span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">$device</span> <span style="color: #339933;">=~</span> <span style="color: #009966; font-style: italic;">m/(\d+):[^:]+\/[^\/]+$/</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000066;">symlink</span> <span style="color: #ff0000;">&quot;/dev/&quot;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">$path</span><span style="color: #339933;">,</span> <span style="color: #ff0000;">&quot;/dev/com&quot;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">$newcomport</span> <span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #339933;">!</span> <span style="color: #339933;">-</span>e <span style="color: #ff0000;">&quot;/dev/com&quot;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">$newcomport</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

</ol>
<p>Das ganze erstellt dann Devices (/dev/com1 fÃ¼r den ersten AnschluÃŸ, /dev/com2 fÃ¼r den zweiten, &#8230;.)</p>
 <span class="post2pdf_span" style="border: 0px solid gray; width: 160px; text-align: left; "><a href="http://blog.it4sport.de/wp-content/plugins/post2pdf/generate.php?post=¯" rel="nofollow"><img src="http://blog.it4sport.de/wp-content/plugins/post2pdf/icon/pdf.png" width="16px" height="16px" /> Artikel als PDF exportieren. </a></span>]]></content:encoded>
			<wfw:commentRss>http://blog.it4sport.de/2010/03/10/pl2303-udev-abenteuer/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>dd Statistik</title>
		<link>http://blog.it4sport.de/2010/03/03/dd-statistik/</link>
		<comments>http://blog.it4sport.de/2010/03/03/dd-statistik/#comments</comments>
		<pubDate>Wed, 03 Mar 2010 14:49:38 +0000</pubDate>
		<dc:creator>Gerd</dc:creator>
				<category><![CDATA[Allgemein]]></category>
		<category><![CDATA[dd]]></category>

		<guid isPermaLink="false">http://blog.it4sport.de/?p=1453</guid>
		<description><![CDATA[dd ist ja fÃ¼r mache Tasks ganz praktisch. Was ich aber ein wenig schande finde ist, dass es nur am Ende die Statistik ausgibt und man damit sozusagen im Blindflug unterwegs ist. D.h. wÃ¤hren des Kopierens sieht man nicht wie weit er schon ist. Es gibt aber einen Trick, der sogar in den manpages steht [...]]]></description>
			<content:encoded><![CDATA[<p>dd ist ja fÃ¼r mache Tasks ganz praktisch. Was ich aber ein wenig schande finde ist, dass es nur am Ende die Statistik ausgibt und man damit sozusagen im Blindflug unterwegs ist. D.h. wÃ¤hren des Kopierens sieht man nicht wie weit er schon ist. Es gibt aber einen Trick, der sogar in den manpages steht <img src='http://blog.it4sport.de/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">$ <span style="color: #c20cb9; font-weight: bold;">dd</span> <span style="color: #007800;">if</span>=<span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>zero <span style="color: #007800;">of</span>=<span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>null<span style="color: #000000; font-weight: bold;">&amp;</span> <span style="color: #007800;">pid</span>=<span style="color: #007800;">$!</span>
$ <span style="color: #c20cb9; font-weight: bold;">kill</span> <span style="color: #660033;">-USR1</span> <span style="color: #007800;">$pid</span>; <span style="color: #c20cb9; font-weight: bold;">sleep</span> <span style="color: #000000;">1</span>; <span style="color: #c20cb9; font-weight: bold;">kill</span> <span style="color: #007800;">$pid</span>
<span style="color: #000000;">18335302</span>+<span style="color: #000000;">0</span> records <span style="color: #000000; font-weight: bold;">in</span>
<span style="color: #000000;">18335302</span>+<span style="color: #000000;">0</span> records out
<span style="color: #000000;">9387674624</span> bytes <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000;">9.4</span> GB<span style="color: #7a0874; font-weight: bold;">&#41;</span> copied, <span style="color: #000000;">34.6279</span> seconds, <span style="color: #000000;">271</span> MB<span style="color: #000000; font-weight: bold;">/</span>s</pre></div></div>

<p>Wann schaffe ich mal 271MB/s </p>
 <span class="post2pdf_span" style="border: 0px solid gray; width: 160px; text-align: left; "><a href="http://blog.it4sport.de/wp-content/plugins/post2pdf/generate.php?post=­" rel="nofollow"><img src="http://blog.it4sport.de/wp-content/plugins/post2pdf/icon/pdf.png" width="16px" height="16px" /> Artikel als PDF exportieren. </a></span>]]></content:encoded>
			<wfw:commentRss>http://blog.it4sport.de/2010/03/03/dd-statistik/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Inittab neu einlesen</title>
		<link>http://blog.it4sport.de/2010/02/25/inittab-neu-einlesen/</link>
		<comments>http://blog.it4sport.de/2010/02/25/inittab-neu-einlesen/#comments</comments>
		<pubDate>Thu, 25 Feb 2010 14:20:22 +0000</pubDate>
		<dc:creator>Gerd</dc:creator>
				<category><![CDATA[Allgemein]]></category>
		<category><![CDATA[init]]></category>
		<category><![CDATA[inittab]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://blog.it4sport.de/?p=1451</guid>
		<description><![CDATA[Ich verwende /etc/inittab fÃ¼r so manches. Es oft einfacher darÃ¼ber Daemons am laufen zu halten als Dinge wie restartd oder monit zu nehmen. Zum Neueinlesen habe ich immer folgendes geschrieben: kill -HUP 1 Das ist zwar richtig aber nicht die feine Art. Besser ist telinit q oder noch kÃ¼rzer: init q Nachdem ich zugeben muss, [...]]]></description>
			<content:encoded><![CDATA[<p>Ich verwende /etc/inittab fÃ¼r so manches. Es oft einfacher darÃ¼ber Daemons am laufen zu halten als Dinge wie <a href="http://packages.debian.org/sid/restartd">restartd</a> oder <a href="http://mmonit.com/monit/">monit</a> zu nehmen. Zum Neueinlesen habe ich immer folgendes geschrieben:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">kill</span> <span style="color: #660033;">-HUP</span> <span style="color: #000000;">1</span></pre></div></div>

<p>Das ist zwar richtig aber nicht die feine Art. Besser ist</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">telinit q</pre></div></div>

<p>oder noch kÃ¼rzer:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">init q</pre></div></div>

<p>Nachdem ich zugeben muss, dass ich das letzte nicht in dem Zusammenhang kannte schreibe ich mir das hier auf. GehÃ¶rt bestimmt zu den Linux Grundkenntnissen <img src='http://blog.it4sport.de/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
 <span class="post2pdf_span" style="border: 0px solid gray; width: 160px; text-align: left; "><a href="http://blog.it4sport.de/wp-content/plugins/post2pdf/generate.php?post=«" rel="nofollow"><img src="http://blog.it4sport.de/wp-content/plugins/post2pdf/icon/pdf.png" width="16px" height="16px" /> Artikel als PDF exportieren. </a></span>]]></content:encoded>
			<wfw:commentRss>http://blog.it4sport.de/2010/02/25/inittab-neu-einlesen/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>neuer Kernel unter RedHat/CentOS</title>
		<link>http://blog.it4sport.de/2010/02/25/neuer-kernel-unter-redhatcentos/</link>
		<comments>http://blog.it4sport.de/2010/02/25/neuer-kernel-unter-redhatcentos/#comments</comments>
		<pubDate>Thu, 25 Feb 2010 14:04:31 +0000</pubDate>
		<dc:creator>Gerd</dc:creator>
				<category><![CDATA[Allgemein]]></category>
		<category><![CDATA[Alix]]></category>
		<category><![CDATA[Kernel]]></category>

		<guid isPermaLink="false">http://blog.it4sport.de/?p=1448</guid>
		<description><![CDATA[Nachdem heute Nacht 2.6.33 herausgekommen ist und ich leider auf einem speziellen Alix Board immer den neusten einsetzen muss (ich verwende brandneue Hardware) muss ich selbst backen. Hier die Kommandos als Notiz fÃ¼r Drag and Drop . make rpm-pkg rpm -i /usr/src/redhat/RPMS/i386/kernel-2.6.33-1.i386.rpm new-kernel-pkg --mkinitrd --depmod --install 2.6.33 Artikel als PDF exportieren.]]></description>
			<content:encoded><![CDATA[<p>Nachdem heute Nacht 2.6.33 herausgekommen ist und ich leider auf einem speziellen Alix Board immer den neusten einsetzen muss (ich verwende brandneue Hardware) muss ich selbst backen. Hier die Kommandos als Notiz fÃ¼r Drag and Drop <img src='http://blog.it4sport.de/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> .</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">make</span> rpm-pkg
rpm <span style="color: #660033;">-i</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>src<span style="color: #000000; font-weight: bold;">/</span>redhat<span style="color: #000000; font-weight: bold;">/</span>RPMS<span style="color: #000000; font-weight: bold;">/</span>i386<span style="color: #000000; font-weight: bold;">/</span>kernel-2.6.33-<span style="color: #000000;">1</span>.i386.rpm
new-kernel-pkg <span style="color: #660033;">--mkinitrd</span> <span style="color: #660033;">--depmod</span> <span style="color: #660033;">--install</span> 2.6.33</pre></div></div>

 <span class="post2pdf_span" style="border: 0px solid gray; width: 160px; text-align: left; "><a href="http://blog.it4sport.de/wp-content/plugins/post2pdf/generate.php?post=¨" rel="nofollow"><img src="http://blog.it4sport.de/wp-content/plugins/post2pdf/icon/pdf.png" width="16px" height="16px" /> Artikel als PDF exportieren. </a></span>]]></content:encoded>
			<wfw:commentRss>http://blog.it4sport.de/2010/02/25/neuer-kernel-unter-redhatcentos/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

