<?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>mgBlog &#187; Cygwin</title>
	<atom:link href="http://mgsimon.de/tag/cygwin/feed/" rel="self" type="application/rss+xml" />
	<link>http://mgsimon.de</link>
	<description>Esc(ape), einfach ein anderes Blog über technische Spielerei ...</description>
	<lastBuildDate>Sun, 18 Dec 2011 08:52:23 +0000</lastBuildDate>
	<language>de</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Konfigurationsverwaltung mit RCS, dateibasierte Versionierungen</title>
		<link>http://mgsimon.de/2011/11/03/konfigurationsverwaltung-mit-rcs-dateibasierte-versionierungen/</link>
		<comments>http://mgsimon.de/2011/11/03/konfigurationsverwaltung-mit-rcs-dateibasierte-versionierungen/#comments</comments>
		<pubDate>Thu, 03 Nov 2011 19:24:37 +0000</pubDate>
		<dc:creator>mg</dc:creator>
				<category><![CDATA[HowTo]]></category>
		<category><![CDATA[Linux & Unix]]></category>
		<category><![CDATA[Mac OS X]]></category>
		<category><![CDATA[uup]]></category>
		<category><![CDATA[Cygwin]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[MacOSX]]></category>
		<category><![CDATA[RCS]]></category>
		<category><![CDATA[Unix]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://mgsimon.de/?p=3318</guid>
		<description><![CDATA[Kennt man nicht die schnellen &#196;nderungen in der einen oder anderen Konfigurationsdatei? Und die immer mehr werdenden Sicherungskopien? configfile.bak configfile.201111031811 configfile.201111031815 configfile.mgsimon configfile&#8230; Wieso nicht mit einer einfachen Versionsverwaltung? Old school RCS ist auf so gut wie jedem Linux, Unix oder Mac OS X vorhanden &#8230; RCS Revision Control System (RCS) ist eine Versionierung f&#252;r [...]]]></description>
			<content:encoded><![CDATA[<p>Kennt man nicht die schnellen &#196;nderungen in der einen oder anderen Konfigurationsdatei? Und die immer mehr werdenden Sicherungskopien?</p>
<ul>
<li>configfile.bak</li>
<li>configfile.201111031811</li>
<li>configfile.201111031815</li>
<li>configfile.mgsimon</li>
<li>configfile&#8230;</li>
</ul>
<p>Wieso nicht mit einer einfachen Versionsverwaltung? Old school RCS ist auf so gut wie jedem Linux, Unix oder Mac OS X vorhanden &#8230;</p>
<p><span id="more-3318"></span><div style="background-color: rgb(191, 228, 255); border:1px solid rgb(128, 201, 255); color: rgb(0, 0, 0); margin:0 0 1.5em; overflow:auto; padding: 3px;">
<img src="/wp-content/plugins/MyShortCodes/info.png" alt="Hinweis" title="Hinweis" width="24" height="24" style="margin: 4px 8px 0 0; float:left;"/>Das folgende Beispiel wurde unter Mac OS X 10.6.8 mit der RCS Version 5.7 durchgef&#252;hrt.</div><strong>RCS</strong></p>
<p>Revision Control System (RCS) ist eine Versionierung f&#252;r einzelne Dateien. Dabei werden die Versionen mit einer zus&#228;tzlichen &#8220;,v-Datei&#8221; verwaltet. Ohne ein Repository k&#246;nnen beliebige Dateien schnell und einfach versioniert werden. Ideal zur Verwaltung verschiedener Konfigurationsst&#228;nde, ohne gleich jedes Mal eine manuelle Sicherungskopie erstellen zu m&#252;ssen.</p>
<div style="background-color: rgb(191, 255, 191); border:1px solid rgb(128, 255, 128); color: rgb(0, 0, 0); margin:0 0 1.5em; overflow:auto; padding: 3px;">
<img src="/wp-content/plugins/MyShortCodes/tip.png" alt="Tipp" title="Tipp" width="24" height="24" style="margin: 4px 8px 0 0; float:left;" />Die f&#252;r Windows frei verf&#252;gbare Unix Emulation <a href="http://www.cygwin.com/" target="_blank">Cygwin</a> unterst&#252;tzt RCS.</div>
<p><strong>Sicherung</strong></p>
<p>ohne RCS</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">$ <span style="color: #c20cb9; font-weight: bold;">cp</span> logging.properties logging.properties.201111031811</pre></div></div>

<p>mit RCS</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">$ <span style="color: #c20cb9; font-weight: bold;">rcs</span> <span style="color: #660033;">-i</span> <span style="color: #660033;">-U</span> logging.properties
RCS <span style="color: #c20cb9; font-weight: bold;">file</span>: logging.properties,v
enter description, terminated with single <span style="color: #ff0000;">'.'</span> or end of <span style="color: #c20cb9; font-weight: bold;">file</span>:
NOTE: This is NOT the log message<span style="color: #000000; font-weight: bold;">!</span>
<span style="color: #000000; font-weight: bold;">&gt;&gt;</span> existing version
<span style="color: #000000; font-weight: bold;">&gt;&gt;</span> .
<span style="color: #000000; font-weight: bold;">done</span>
$ ci <span style="color: #660033;">-u</span> logging.properties
logging.properties,v  <span style="color: #000000; font-weight: bold;">&lt;</span>--  logging.properties
initial revision: <span style="color: #000000;">1.1</span>
<span style="color: #000000; font-weight: bold;">done</span></pre></div></div>

<div style="background-color: rgb(191, 255, 191); border:1px solid rgb(128, 255, 128); color: rgb(0, 0, 0); margin:0 0 1.5em; overflow:auto; padding: 3px;">
<img src="/wp-content/plugins/MyShortCodes/tip.png" alt="Tipp" title="Tipp" width="24" height="24" style="margin: 4px 8px 0 0; float:left;" />Damit die Zugriffsrechte erhalten bleiben und die aktuelle Arbeitskopie nicht gel&#246;scht wird immer erst eine initiale Version ohne &#8220;strict locking&#8221; (rcs -i -U datei) erstellen und anschlie&#223;end (ci -u datei) versionieren.</div>
<p><strong>Neue Konfiguration</strong></p>
<p>Gew&#252;nschte Anpassungen in der der aktuellen Datei vornehmen, speichern und sichern.</p>
<p>ohne RCS</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">$ <span style="color: #c20cb9; font-weight: bold;">cp</span> logging.properties logging.properties.201111031815</pre></div></div>

<p>mit RCS</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">$ ci <span style="color: #660033;">-u</span> logging.properties
logging.properties,v  <span style="color: #000000; font-weight: bold;">&lt;</span>--  logging.properties
new revision: <span style="color: #000000;">1.2</span>; previous revision: <span style="color: #000000;">1.1</span>
enter log message, terminated with single <span style="color: #ff0000;">'.'</span> or end of <span style="color: #c20cb9; font-weight: bold;">file</span>:
<span style="color: #000000; font-weight: bold;">&gt;&gt;</span> log <span style="color: #c20cb9; font-weight: bold;">more</span> startup messages
<span style="color: #000000; font-weight: bold;">&gt;&gt;</span> .
<span style="color: #000000; font-weight: bold;">done</span></pre></div></div>

<p><strong>Versionshistorie</strong></p>
<p>ohne RCS</p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">nicht wirklich möglich</pre></div></div>

<p>mit RCS</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">$ rlog logging.properties
&nbsp;
RCS <span style="color: #c20cb9; font-weight: bold;">file</span>: logging.properties,v
Working <span style="color: #c20cb9; font-weight: bold;">file</span>: logging.properties
<span style="color: #c20cb9; font-weight: bold;">head</span>: <span style="color: #000000;">1.2</span>
branch:
locks:
access list:
symbolic names:
keyword substitution: kv
total revisions: <span style="color: #000000;">2</span>;	selected revisions: <span style="color: #000000;">2</span>
description:
existing version
<span style="color: #660033;">----------------------------</span>
revision <span style="color: #000000;">1.2</span>
<span style="color: #c20cb9; font-weight: bold;">date</span>: <span style="color: #000000;">2011</span><span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">11</span><span style="color: #000000; font-weight: bold;">/</span>03 <span style="color: #000000;">18</span>:<span style="color: #000000;">46</span>:<span style="color: #000000;">57</span>;  author: mgsimon;  state: Exp;  lines: +<span style="color: #000000;">2</span> <span style="color: #660033;">-2</span>
log <span style="color: #c20cb9; font-weight: bold;">more</span> startup messages
<span style="color: #660033;">----------------------------</span>
revision <span style="color: #000000;">1.1</span>
<span style="color: #c20cb9; font-weight: bold;">date</span>: <span style="color: #000000;">2011</span><span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">11</span><span style="color: #000000; font-weight: bold;">/</span>03 <span style="color: #000000;">18</span>:<span style="color: #000000;">44</span>:<span style="color: #000000;">54</span>;  author: mgsimon;  state: Exp;
Initial revision
=============================================================================</pre></div></div>

<p><strong>Ver&#228;nderungen</strong></p>
<p>ohne RCS</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">$ <span style="color: #c20cb9; font-weight: bold;">diff</span> logging.properties logging.properties.201111031811 
<span style="color: #000000;">61</span>,62c61,<span style="color: #000000;">62</span>
<span style="color: #000000; font-weight: bold;">&lt;</span> org.apache.catalina.startup.ContextConfig.level = FINE
<span style="color: #000000; font-weight: bold;">&lt;</span> org.apache.catalina.startup.HostConfig.level = FINE
<span style="color: #660033;">---</span>
<span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #666666; font-style: italic;">#org.apache.catalina.startup.ContextConfig.level = FINE</span>
<span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #666666; font-style: italic;">#org.apache.catalina.startup.HostConfig.level = FINE</span></pre></div></div>

<p>mit RCS</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">$ rcsdiff logging.properties
===================================================================
RCS <span style="color: #c20cb9; font-weight: bold;">file</span>: logging.properties,v
retrieving revision <span style="color: #000000;">1.2</span>
<span style="color: #c20cb9; font-weight: bold;">diff</span> -r1.2 logging.properties
mgBook:conf mgsimon$ rcsdiff -r1.1 logging.properties
===================================================================
RCS <span style="color: #c20cb9; font-weight: bold;">file</span>: logging.properties,v
retrieving revision <span style="color: #000000;">1.1</span>
<span style="color: #c20cb9; font-weight: bold;">diff</span> -r1.1 logging.properties
<span style="color: #000000;">61</span>,62c61,<span style="color: #000000;">62</span>
<span style="color: #000000; font-weight: bold;">&lt;</span> <span style="color: #666666; font-style: italic;">#org.apache.catalina.startup.ContextConfig.level = FINE</span>
<span style="color: #000000; font-weight: bold;">&lt;</span> <span style="color: #666666; font-style: italic;">#org.apache.catalina.startup.HostConfig.level = FINE</span>
<span style="color: #660033;">---</span>
<span style="color: #000000; font-weight: bold;">&gt;</span> org.apache.catalina.startup.ContextConfig.level = FINE
<span style="color: #000000; font-weight: bold;">&gt;</span> org.apache.catalina.startup.HostConfig.level = FINE</pre></div></div>

<p><strong>Alte Konfiguration</strong></p>
<p>ohne RCS</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">$ <span style="color: #c20cb9; font-weight: bold;">cp</span> logging.properties.201111031811 logging.properties</pre></div></div>

<p>mit RCS</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">$ <span style="color: #c20cb9; font-weight: bold;">co</span> -r1.1 logging.properties
logging.properties,v  --<span style="color: #000000; font-weight: bold;">&gt;</span>  logging.properties
revision <span style="color: #000000;">1.1</span>
writable logging.properties exists; remove it? <span style="color: #7a0874; font-weight: bold;">&#91;</span>ny<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>n<span style="color: #7a0874; font-weight: bold;">&#41;</span>: y
<span style="color: #000000; font-weight: bold;">done</span></pre></div></div>

<p><strong>Konfigurations&#228;nderungen</strong></p>
<p>ohne RCS</p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">nicht wirklich möglich</pre></div></div>

<p>mit RCS</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">$ <span style="color: #c20cb9; font-weight: bold;">find</span> conf<span style="color: #000000; font-weight: bold;">/</span> <span style="color: #660033;">-name</span> <span style="color: #000000; font-weight: bold;">*</span>,v
conf<span style="color: #000000; font-weight: bold;">//</span>catalina.properties,v
conf<span style="color: #000000; font-weight: bold;">//</span>context.xml,v
conf<span style="color: #000000; font-weight: bold;">//</span>logging.properties,v
conf<span style="color: #000000; font-weight: bold;">//</span>server.xml,v
conf<span style="color: #000000; font-weight: bold;">//</span>tomcat-users.xml,v
conf<span style="color: #000000; font-weight: bold;">//</span>web.xml,v</pre></div></div>

<p><strong>Zusammenfassung</strong></p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">rcs -i -U datei =&gt; ci -u datei =&gt; vi datei =&gt; ci -u datei =&gt; ...</pre></div></div>

<p>Keep IT simple &#8230; ;)</p>
<p><strong>Weiter &#8230;</strong></p>
<ul>
<li><a href="http://www.gnu.org/software/rcs/manual/rcs.html">RCS Dokumentation</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://mgsimon.de/2011/11/03/konfigurationsverwaltung-mit-rcs-dateibasierte-versionierungen/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Cygwin/X und die Zwischenablage</title>
		<link>http://mgsimon.de/2007/03/22/cygwinx-und-die-zwischenablage/</link>
		<comments>http://mgsimon.de/2007/03/22/cygwinx-und-die-zwischenablage/#comments</comments>
		<pubDate>Thu, 22 Mar 2007 14:44:12 +0000</pubDate>
		<dc:creator>mg</dc:creator>
				<category><![CDATA[Linux & Unix]]></category>
		<category><![CDATA[Cygwin]]></category>
		<category><![CDATA[X]]></category>

		<guid isPermaLink="false">http://mgsimon.de/?p=16</guid>
		<description><![CDATA[Die Zwischenablage zwischen Windows und Cygwin/X funktioniert in der aktuellen Version. Zus&#228;tzlich die Option -clipboard angeben (xwin -clipboard -query host). Eine Markierung unter X wird implizit kopiert. Das Einf&#252;gen unter X wird durch die mittlere Maustaste erreicht. Fehlt nur noch die Unterst&#252;tzung der Alt-Gr Tastenkombinationen f&#252;r einige Unix Varianten.]]></description>
			<content:encoded><![CDATA[<p>Die Zwischenablage zwischen Windows und Cygwin/X funktioniert in der aktuellen Version.</p>
<p style="text-align: center;"><img src="http://mgsimon.de/wp-content/uploads/2007/09/xlogo.gif" alt="X-Logo" /></p>
<p>Zus&#228;tzlich die Option -clipboard angeben (xwin -clipboard -query host).<br />
Eine Markierung unter X wird implizit kopiert. Das Einf&#252;gen unter X wird durch die mittlere Maustaste erreicht. Fehlt nur noch die Unterst&#252;tzung der Alt-Gr Tastenkombinationen f&#252;r einige Unix Varianten.</p>
]]></content:encoded>
			<wfw:commentRss>http://mgsimon.de/2007/03/22/cygwinx-und-die-zwischenablage/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Cygwin/X und Schriften</title>
		<link>http://mgsimon.de/2007/03/20/cygwinx-und-schriften/</link>
		<comments>http://mgsimon.de/2007/03/20/cygwinx-und-schriften/#comments</comments>
		<pubDate>Tue, 20 Mar 2007 14:00:23 +0000</pubDate>
		<dc:creator>mg</dc:creator>
				<category><![CDATA[Linux & Unix]]></category>
		<category><![CDATA[Cygwin]]></category>
		<category><![CDATA[X]]></category>

		<guid isPermaLink="false">http://mgsimon.de/?p=12</guid>
		<description><![CDATA[Die f&#252;r Windows frei verf&#252;gbare Unix Emulation Cygwin untest&#252;tzt X. Damit alle Schriften unter X funktionieren kann optional ein Fontserverpath angegeben werden.$ xwin -query host-ip -fp tcp/host-ip:portDer voreingestellte Fontserver Port ist unter Solaris 7000 und HP-UX 7100. Sollter der Fontserver nicht laufen, kann dieser auf dem entfernten Host mit xfs&#38; gestartet werden.]]></description>
			<content:encoded><![CDATA[<p>Die f&#252;r Windows frei verf&#252;gbare Unix Emulation <a href="http://www.cygwin.com/">Cygwin</a> untest&#252;tzt X.</p>
<p style="text-align: center;"><img src="http://mgsimon.de/wp-content/uploads/2007/09/xlogo.gif" alt="X-Logo" /></p>
<p>Damit alle Schriften unter X funktionieren kann optional ein Fontserverpath angegeben werden.$ xwin -query host-ip -fp tcp/host-ip:portDer voreingestellte Fontserver Port ist unter Solaris 7000 und HP-UX 7100.</p>
<p>Sollter der Fontserver nicht laufen, kann dieser auf dem entfernten Host mit xfs&amp; gestartet werden.</p>
]]></content:encoded>
			<wfw:commentRss>http://mgsimon.de/2007/03/20/cygwinx-und-schriften/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

