<?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>hihn.org &#187; konsole</title>
	<atom:link href="http://hihn.org/tag/konsole/feed/" rel="self" type="application/rss+xml" />
	<link>http://hihn.org</link>
	<description></description>
	<lastBuildDate>Mon, 05 Mar 2012 19:04:34 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>PDF-Datein in s/w konvertieren</title>
		<link>http://hihn.org/2011/06/pdf-datein-in-sw-konvertieren/</link>
		<comments>http://hihn.org/2011/06/pdf-datein-in-sw-konvertieren/#comments</comments>
		<pubDate>Sat, 25 Jun 2011 13:42:35 +0000</pubDate>
		<dc:creator>rh</dc:creator>
				<category><![CDATA[Allgemein]]></category>
		<category><![CDATA[konsole]]></category>
		<category><![CDATA[konvertieren]]></category>
		<category><![CDATA[pdf]]></category>

		<guid isPermaLink="false">https://hihn.org/?p=625</guid>
		<description><![CDATA[Mit ghostscript und folgendem Befehl kann man bunte PDF-Dateien in schwarz-weiß konvertieren: gs -sOutputFile=output.pdf -sDEVICE=pdfwrite -sColorConversionStrategy=Gray -dProcessColorModel=/DeviceGray -dCompatibilityLevel=1.4 -dNOPAUSE -dBATCH -sEPSCrop input.pdf]]></description>
			<content:encoded><![CDATA[<p>Mit ghostscript und folgendem Befehl kann man bunte PDF-Dateien in schwarz-weiß konvertieren:</p>
<pre>
gs -sOutputFile=output.pdf -sDEVICE=pdfwrite -sColorConversionStrategy=Gray -dProcessColorModel=/DeviceGray -dCompatibilityLevel=1.4 -dNOPAUSE -dBATCH -sEPSCrop input.pdf
</pre>
]]></content:encoded>
			<wfw:commentRss>http://hihn.org/2011/06/pdf-datein-in-sw-konvertieren/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Mit 7zip split archives erstellen</title>
		<link>http://hihn.org/2009/06/mit-7zip-split-archives-erstellen/</link>
		<comments>http://hihn.org/2009/06/mit-7zip-split-archives-erstellen/#comments</comments>
		<pubDate>Thu, 18 Jun 2009 16:46:05 +0000</pubDate>
		<dc:creator>rh</dc:creator>
				<category><![CDATA[Allgemein]]></category>
		<category><![CDATA[7z]]></category>
		<category><![CDATA[konsole]]></category>

		<guid isPermaLink="false">https://hihn.org/?p=429</guid>
		<description><![CDATA[Mit folgendem Befehl kann man mit 7zip split archives erstellen: 7z a -v5M test.7z foo1/ Erstellt 5MB große Archive aus dem Ordner foo1/]]></description>
			<content:encoded><![CDATA[<p>Mit folgendem Befehl kann man mit 7zip split archives erstellen:</p>
<pre>
7z a -v5M test.7z foo1/
</pre>
<p>Erstellt 5MB große Archive aus dem Ordner <strong>foo1/</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://hihn.org/2009/06/mit-7zip-split-archives-erstellen/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Suchen &amp; löschen in einem Zug</title>
		<link>http://hihn.org/2009/04/suchen-loschen-in-einem-zug/</link>
		<comments>http://hihn.org/2009/04/suchen-loschen-in-einem-zug/#comments</comments>
		<pubDate>Fri, 24 Apr 2009 20:55:37 +0000</pubDate>
		<dc:creator>rh</dc:creator>
				<category><![CDATA[Allgemein]]></category>
		<category><![CDATA[konsole]]></category>
		<category><![CDATA[shell]]></category>

		<guid isPermaLink="false">https://hihn.org/?p=392</guid>
		<description><![CDATA[Mit diesem Befehl kann man alle Suchergebnisse unmittelbar löschen: # löscht alle SVN Dateien aus dem aktuellen Verzeichnis find . -type d -name ".svn" -exec rm -r {} \;]]></description>
			<content:encoded><![CDATA[<p>Mit diesem Befehl kann man alle Suchergebnisse unmittelbar löschen:</p>
<pre>
# löscht alle SVN Dateien aus dem aktuellen Verzeichnis
find . -type d -name ".svn" -exec rm -r {} \;
</pre>
]]></content:encoded>
			<wfw:commentRss>http://hihn.org/2009/04/suchen-loschen-in-einem-zug/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>fusefs-kmod-Fehler beim Kompilieren</title>
		<link>http://hihn.org/2009/04/fusefs-kmod-fehler-beim-kompilieren/</link>
		<comments>http://hihn.org/2009/04/fusefs-kmod-fehler-beim-kompilieren/#comments</comments>
		<pubDate>Tue, 07 Apr 2009 22:35:35 +0000</pubDate>
		<dc:creator>rh</dc:creator>
				<category><![CDATA[Allgemein]]></category>
		<category><![CDATA[FreeBSD]]></category>
		<category><![CDATA[konsole]]></category>

		<guid isPermaLink="false">https://hihn.org/?p=381</guid>
		<description><![CDATA[Wer beim Benutzen der Ports-Collection unter FreeBSD mal über den Fehler stolpern sollte: fusefs-kmod requires the userland sources to be installed. Set SRC_BASE if it is not in /usr/src. Lösung: sysinstall Dann Configure -> Distributions -> src -> base + sbin + sys auswählen und installieren.]]></description>
			<content:encoded><![CDATA[<p>Wer beim Benutzen der Ports-Collection unter FreeBSD mal über den Fehler stolpern sollte:</p>
<pre>
fusefs-kmod requires the userland sources to be installed. Set SRC_BASE if it is not in /usr/src.
</pre>
<p>Lösung:</p>
<pre>
sysinstall
</pre>
<p>Dann <strong>Configure</strong> -> <strong>Distributions</strong> -> <strong>src</strong> -> <strong>base + sbin + sys</strong> auswählen und installieren.</p>
]]></content:encoded>
			<wfw:commentRss>http://hihn.org/2009/04/fusefs-kmod-fehler-beim-kompilieren/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Mit mplayer Bilder aus Videos extrahieren</title>
		<link>http://hihn.org/2009/02/mit-mplayer-bilder-aus-videos-extrahieren/</link>
		<comments>http://hihn.org/2009/02/mit-mplayer-bilder-aus-videos-extrahieren/#comments</comments>
		<pubDate>Tue, 10 Feb 2009 08:53:34 +0000</pubDate>
		<dc:creator>rh</dc:creator>
				<category><![CDATA[Allgemein]]></category>
		<category><![CDATA[konsole]]></category>
		<category><![CDATA[konvertieren]]></category>
		<category><![CDATA[mencoder]]></category>
		<category><![CDATA[mplayer]]></category>

		<guid isPermaLink="false">https://hihn.org/?p=348</guid>
		<description><![CDATA[Mit folgendem Befehl kann man mittels mplayer einzelne Bilder aus Videos extrahieren: mplayer -frames 10 -ss 60 -vo png outdir=/home/foo/:quality=75 /path/to/video.avi -vo png definiert das Bildformat (möglich wäre hier z.B. auch &#8220;jpeg&#8221;) -outdir=/home/foo/test/ definiert das Verzeichnis in dem das Bild gespeichert werden soll -frames 10 definiert wieviele Bilder extrahiert werden sollen -ss 200 definiert das [...]]]></description>
			<content:encoded><![CDATA[<p>Mit folgendem Befehl kann man mittels mplayer einzelne Bilder aus Videos extrahieren:</p>
<pre>
mplayer -frames 10 -ss 60 -vo png outdir=/home/foo/:quality=75 /path/to/video.avi 
</pre>
<p><strong>-vo png</strong> definiert das Bildformat (möglich wäre hier z.B. auch &#8220;jpeg&#8221;)<br />
<strong>-outdir=/home/foo/test/</strong> definiert das Verzeichnis in dem das Bild gespeichert werden soll<br />
<strong>-frames 10</strong> definiert wieviele Bilder extrahiert werden sollen<br />
<strong>-ss 200</strong> definiert das Offset, also die Stelle im Video, an der die Bilder extrahiert werden sollen</p>
]]></content:encoded>
			<wfw:commentRss>http://hihn.org/2009/02/mit-mplayer-bilder-aus-videos-extrahieren/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>mp4-Video 90° drehen</title>
		<link>http://hihn.org/2009/01/mp4-video-90%c2%b0-drehen/</link>
		<comments>http://hihn.org/2009/01/mp4-video-90%c2%b0-drehen/#comments</comments>
		<pubDate>Fri, 30 Jan 2009 08:02:16 +0000</pubDate>
		<dc:creator>rh</dc:creator>
				<category><![CDATA[Allgemein]]></category>
		<category><![CDATA[konsole]]></category>
		<category><![CDATA[konvertieren]]></category>
		<category><![CDATA[mencoder]]></category>
		<category><![CDATA[mplayer]]></category>

		<guid isPermaLink="false">https://hihn.org/?p=314</guid>
		<description><![CDATA[Mit MEncoder und folgendem Befehl kann man ein mp4-Video um 90 Grad drehen: mencoder -vf rotate=1 -ovc lavc -oac pcm input.mp4 -o output.mp4]]></description>
			<content:encoded><![CDATA[<p>Mit <a href="http://en.wikipedia.org/wiki/MEncoder">MEncoder</a> und folgendem Befehl kann man ein mp4-Video um 90 Grad drehen:</p>
<pre>
mencoder -vf rotate=1 -ovc lavc -oac pcm <strong>input.mp4</strong> -o <strong>output.mp4</strong>
</pre>
]]></content:encoded>
			<wfw:commentRss>http://hihn.org/2009/01/mp4-video-90%c2%b0-drehen/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Dateien durchsuchen</title>
		<link>http://hihn.org/2008/04/dateien-surchsuchen/</link>
		<comments>http://hihn.org/2008/04/dateien-surchsuchen/#comments</comments>
		<pubDate>Mon, 07 Apr 2008 17:53:07 +0000</pubDate>
		<dc:creator>rh</dc:creator>
				<category><![CDATA[Allgemein]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[konsole]]></category>

		<guid isPermaLink="false">http://hihn.org/?p=58</guid>
		<description><![CDATA[Folgender Befehl sucht nach einem Begriff innerhalb von Dateien: find / -type f -exec grep -q 'foo' {} \; -a -exec ls -l {} \;]]></description>
			<content:encoded><![CDATA[<p>Folgender Befehl sucht nach einem Begriff innerhalb von Dateien:</p>
<pre>
find <strong>/</strong> -type f -exec grep -q '<strong>foo</strong>' {} \; -a -exec ls -l {} \;
</pre>
]]></content:encoded>
			<wfw:commentRss>http://hihn.org/2008/04/dateien-surchsuchen/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>7z-Archive erstellen</title>
		<link>http://hihn.org/2008/02/7z-archive-erstellen/</link>
		<comments>http://hihn.org/2008/02/7z-archive-erstellen/#comments</comments>
		<pubDate>Sat, 16 Feb 2008 18:28:03 +0000</pubDate>
		<dc:creator>rh</dc:creator>
				<category><![CDATA[Allgemein]]></category>
		<category><![CDATA[7z]]></category>
		<category><![CDATA[konsole]]></category>

		<guid isPermaLink="false">http://hihn.org/?p=46</guid>
		<description><![CDATA[Erstellt ein Archiv namens archive1.7z mit der höchsten Komprimierungsrate aus dem Ordner foo: 7z a -mx=9 archive1.7z foo/ Erstellt ein Archiv namens archive1.7z mit der niedrigsten Komprimierungsrate aus dem Ordner foo: 7z a -mx=0 archive1.7z foo/ Erstellt ein Archiv namens archive1.7z mit der niedrigsten Komprimierungsrate aus dem Ordner foo und setzt als Passwort secret: 7z [...]]]></description>
			<content:encoded><![CDATA[<p>Erstellt ein Archiv namens <strong>archive1.7z</strong> mit der <strong>höchsten</strong> Komprimierungsrate aus dem Ordner <strong>foo</strong>:</p>
<pre>
7z a -mx=9 archive1.7z foo/
</pre>
<p>Erstellt ein Archiv namens <strong>archive1.7z</strong> mit der <strong>niedrigsten</strong> Komprimierungsrate aus dem Ordner <strong>foo</strong>:</p>
<pre>
7z a -mx=0 archive1.7z foo/
</pre>
<p>Erstellt ein Archiv namens <strong>archive1.7z</strong> mit der <strong>niedrigsten</strong> Komprimierungsrate aus dem Ordner <strong>foo</strong> und setzt als Passwort <strong>secret</strong>:</p>
<pre>
7z a -mx=0 -psecret archive1.7z foo/
</pre>
<p>Erstellt ein Archiv namens <strong>archive1.7z</strong> mit der <strong>niedrigsten</strong> Komprimierungsrate aus dem Ordner <strong>foo</strong>, setzt als Passwort <strong>secret</strong> und verschlüsselt die Dateinamen (<strong>header encryption</strong>):</p>
<pre>
7z a -mx=0 -psecret -mhe archive1.7z foo/
</pre>
<p>Erstellt ein Archiv namens <strong>archive1.zip</strong> mit der <strong>niedrigsten</strong> Komprimierungsrate aus dem Ordner <strong>foo</strong>:</p>
<pre>
7z a -mx=0 -tzip archive1.zip foo/
</pre>
]]></content:encoded>
			<wfw:commentRss>http://hihn.org/2008/02/7z-archive-erstellen/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Kleinschreibung per  perl-script</title>
		<link>http://hihn.org/2008/02/kleinschreibung-per-perl-script/</link>
		<comments>http://hihn.org/2008/02/kleinschreibung-per-perl-script/#comments</comments>
		<pubDate>Sun, 10 Feb 2008 20:49:22 +0000</pubDate>
		<dc:creator>rh</dc:creator>
				<category><![CDATA[Allgemein]]></category>
		<category><![CDATA[konsole]]></category>
		<category><![CDATA[Perl]]></category>

		<guid isPermaLink="false">http://hihn.org/?p=44</guid>
		<description><![CDATA[Hier ein perl-script[1], das alle Dateien in einem Ordner (inklusive Unterordner) in Kleinbuchstaben umwandelt: #!/usr/bin/perl -w use strict; # Open 'find' process to list files recursively with paths open(FIND, "find &#124;"); while() { chomp; next if $_ eq $0; # Don't rename ourself rename($_, lc($_)); } close(FIND); Einfach mit chmod u+x ausführbar machen und mit [...]]]></description>
			<content:encoded><![CDATA[<p>Hier ein perl-script[1], das alle Dateien in einem Ordner (inklusive Unterordner) in Kleinbuchstaben umwandelt:</p>
<pre>
#!/usr/bin/perl -w
use strict;

# Open 'find' process to list files recursively with paths
open(FIND, "find |");
while(<FIND>) {
        chomp;
        next if $_ eq $0;        # Don't rename ourself
        rename($_, lc($_));
        }
close(FIND);
</pre>
<p>Einfach  mit <strong>chmod u+x</strong> ausführbar machen und mit <strong>./foo.pl</strong> starten.</p>
<p>Es lief auf meinem Debian-Rechner problemlos, allerdings konnte ich es nicht auf meinem OpenBSD-Server starten. Die Ursache war find &#8211; im Gegensatz zu Linux muss man unter OpenBSD noch ein Verzeichnis angeben, zB &#8220;.&#8221; für das aktuelle.<br />
So lief es auf OpenBSD:</p>
<pre>
#!/usr/bin/perl -w
use strict;

# Open 'find' process to list files recursively with paths
open(FIND, "find . |");
while(<FIND>) {
        chomp;
        next if $_ eq $0;        # Don't rename ourself
        rename($_, lc($_));
        }
close(FIND);
</pre>
<p>[1] <a href="http://webxadmin.free.fr/article/shell-rename-all-files-in-subdirectories-to-lowe-135.php" target="_blank">http://webxadmin.free.fr/article/shell-rename-all-files-in-subdirectories-to-lowe-135.php</a></p>
]]></content:encoded>
			<wfw:commentRss>http://hihn.org/2008/02/kleinschreibung-per-perl-script/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Leserechte mit chmod entziehen</title>
		<link>http://hihn.org/2008/01/leserechte-mit-chmod-entziehen/</link>
		<comments>http://hihn.org/2008/01/leserechte-mit-chmod-entziehen/#comments</comments>
		<pubDate>Thu, 31 Jan 2008 21:22:23 +0000</pubDate>
		<dc:creator>rh</dc:creator>
				<category><![CDATA[Allgemein]]></category>
		<category><![CDATA[chmod]]></category>
		<category><![CDATA[konsole]]></category>
		<category><![CDATA[shell]]></category>

		<guid isPermaLink="false">http://hihn.org/?p=36</guid>
		<description><![CDATA[Es ist mir schon öfters aufgefallen, dass ein normaler Benutzer auf einem UNIX-System zwar an vielen Orten keine Schreib-, aber Leserechte hat, was für jemanden der sich &#8220;geschützt&#8221; fühlt eine böse Überraschung sein kann. Mit chmod kann man die Rechte für Ordner und Dateien setzen. # chmod a-r /var/www/ zum Beispiel entzieht für alle (a) [...]]]></description>
			<content:encoded><![CDATA[<p>Es ist mir schon öfters aufgefallen, dass ein normaler Benutzer auf einem UNIX-System zwar an vielen Orten keine Schreib-, aber Leserechte hat, was für jemanden der sich &#8220;geschützt&#8221; fühlt eine böse Überraschung sein kann.<br />
Mit <strong>chmod</strong> kann man die Rechte für Ordner und Dateien setzen.</p>
<pre>
# chmod a-r /var/www/
</pre>
<p>zum Beispiel <strong>entzieht</strong> für <strong>alle (a)</strong> das <strong>Leserecht (r)</strong> für den Ordner /var/www/.</p>
<p>Nähere Infos gibt es u.a. auf <a href="http://www.pro-linux.de/t_shell/chmod.html">Pro-Linux</a></p>
]]></content:encoded>
			<wfw:commentRss>http://hihn.org/2008/01/leserechte-mit-chmod-entziehen/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

