<?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>the nullest blog &#187; Cygwin</title>
	<atom:link href="http://blog.thenullest.org/category/cygwin/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.thenullest.org</link>
	<description>Techrants</description>
	<lastBuildDate>Mon, 04 Jun 2007 05:36:52 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Cygwin: How to make sshd log to syslog in Cygwin</title>
		<link>http://blog.thenullest.org/2007/06/01/cygwin-how-to-make-sshd-log-to-syslog-in/</link>
		<comments>http://blog.thenullest.org/2007/06/01/cygwin-how-to-make-sshd-log-to-syslog-in/#comments</comments>
		<pubDate>Fri, 01 Jun 2007 19:37:56 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Cygwin]]></category>
		<category><![CDATA[Hacks]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://blog.thenullest.org/2007/06/01/cygwin-how-to-make-sshd-log-to-syslog-in/</guid>
		<description><![CDATA[I recently installed the ssh daemon on cygwin and it works very well. However, by default to the windows event log. This annoyed me. By doing some google/Internet research I found out that this could be &#8220;solved&#8221; by starting the ssh daemon with the command line flag &#8220;-e&#8221; which tells sshd to log all error [...]]]></description>
			<content:encoded><![CDATA[<p>I recently installed the ssh daemon on cygwin and it works very well. However, by default to the windows event log. This annoyed me. By doing some google/Internet research I found out that this could be &#8220;solved&#8221; by starting the ssh daemon with the command line flag &#8220;-e&#8221; which tells sshd to log all error messages to stderr. Fair enough, the messages turned up in /var/log/sshd.log. But without the date wasn&#8217;t logged. This annoyed me even more.  Infact, i didn&#8217;t want to send the log messages to stderr but I didn&#8217;t want them to be directed to the windows log niether.</p>
<p>By doing some more internet research I found out that the deamon syslog-ng could be installed for cygwin. I gave it a shot.  You&#8217;ll find it in the Admin category in the Cygwin setup:</p>
<p><a TITLE="Syslog-ng" HREF="http://blog.thenullest.org/wp-content/uploads/2007/06/syslog1.png"><img ALT="Syslog-ng" SRC="http://blog.thenullest.org/wp-content/uploads/2007/06/syslog1.png" /></a></p>
<p>Once the setup has finished you can install the syslog-ng daemon by typing:</p>
<p>/usr/bin/syslog-ng-config</p>
<p>and answer yes to all questions (or no if you should disagree on something)<br />
Before starting the daemon you might have to edit the file /etc/syslog-ng.conf.<br />
The following configuration file worked for me:</p>
<blockquote><p><code>options {<br />
keep_hostname(yes);<br />
chain_hostnames(no);<br />
owner("system");<br />
group("root");<br />
perm(0664);<br />
sync(0);<br />
};source applications {<br />
unix-dgram("/dev/log");<br />
internal();<br />
};</p>
<p>source kernel {<br />
file("/dev/kmsg", log_prefix("kernel: "));<br />
};</p>
<p>destination messages {<br />
file("/var/log/messages");<br />
};</p>
<p>destination sshd { file("/var/log/sshd.log"); };</p>
<p>filter f_sshd { program(sshd); };</p>
<p>log { source(applications); filter(f_sshd); destination(sshd); };</p>
<p>log {<br />
source(applications);<br />
destination(messages);<br />
};</p>
<p>log {<br />
source(kernel);<br />
destination(messages);<br />
};<code></code></code></p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://blog.thenullest.org/2007/06/01/cygwin-how-to-make-sshd-log-to-syslog-in/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Problem with arrow keys and tab in Vim 7 on Cygwin</title>
		<link>http://blog.thenullest.org/2007/05/30/problem-with-arrow-keys-an-tab-in-vim-7-on-cygwin/</link>
		<comments>http://blog.thenullest.org/2007/05/30/problem-with-arrow-keys-an-tab-in-vim-7-on-cygwin/#comments</comments>
		<pubDate>Wed, 30 May 2007 17:44:40 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Cygwin]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://blog.thenullest.org/2007/05/30/problem-with-arrow-keys-an-tab-in-vim-7-on-cygwin/</guid>
		<description><![CDATA[I experienced some problem with the arrow keys on Cygwin. In insert mode, pressing the arrow keys just inserted a new line and some random character (which probably wasn&#8217;t random but had some meaning - anyway,  that character  didn&#8217;t say anything to me). Furthermore, the tab didn&#8217;t work as I was used to in the Windows version of VIM. More precisely, I couldn&#8217;t use tab completion on commands in command line mode (I think shift-Tab worked though, but this is much [...]]]></description>
			<content:encoded><![CDATA[<p>I experienced some problem with the arrow keys on Cygwin. In insert mode, pressing the arrow keys just inserted a new line and some random character (which probably wasn&#8217;t random but had some meaning - anyway,  that character  didn&#8217;t say anything to me). Furthermore, the tab didn&#8217;t work as I was used to in the Windows version of VIM. More precisely, I couldn&#8217;t use tab completion on commands in command line mode (I think shift-Tab worked though, but this is much too unorthodox for me). So, what&#8217;s this all about? Well, the problem could easily be rectified by copying an example .vimrc file to my home directory:</p>
<p><code>cp /usr/share/vim/vim71/vimrc_example.vim  ~/.vimrc</code></p>
<p>The problem disappeared.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.thenullest.org/2007/05/30/problem-with-arrow-keys-an-tab-in-vim-7-on-cygwin/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
