<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xml:base="http://www.bramschoenmakers.nl" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
 <title>Unix Revelations</title>
 <link>http://www.bramschoenmakers.nl/en/unixrevelations</link>
 <description>Unix Revelations</description>
 <language>en</language>
<item>
 <title>Workaround for licensing issues when connecting with rdesktop or KRDC</title>
 <link>http://www.bramschoenmakers.nl/en/node/753</link>
 <description>&lt;p&gt;This article shows a workaround whenever you cannot connect to a Windows Terminal Server anymore with either &lt;span class=&quot;commandtxt&quot;&gt;rdesktop&lt;/span&gt; or KRDC (which uses &lt;span class=&quot;commandtxt&quot;&gt;rdesktop&lt;/span&gt;). KRDC is an RDP client, part of the KDE distribution. Running &lt;span class=&quot;commandtxt&quot;&gt;rdesktop&lt;/span&gt; directly from the command line results in the following error:&lt;/p&gt;
&lt;div class=&quot;error&quot;&gt;$ rdesktop rdp.example.net&lt;br /&gt;
disconnect: No valid license available.&lt;/div&gt;
&lt;p&gt;&lt;a href=&quot;http://www.bramschoenmakers.nl/en/node/753&quot;&gt;read more&lt;/a&gt;&lt;/p&gt;</description>
 <comments>http://www.bramschoenmakers.nl/en/node/753#comments</comments>
 <category domain="http://www.bramschoenmakers.nl/en/taxonomy/term/502">KRDC</category>
 <category domain="http://www.bramschoenmakers.nl/en/taxonomy/term/501">rdesktop</category>
 <pubDate>Wed, 25 May 2011 15:54:41 +0200</pubDate>
 <dc:creator>Bram Schoenmakers</dc:creator>
 <guid isPermaLink="false">753 at http://www.bramschoenmakers.nl</guid>
</item>
<item>
 <title>scponly: scp works but sftp doesn&#039;t</title>
 <link>http://www.bramschoenmakers.nl/en/node/752</link>
 <description>&lt;p&gt;Today I spent some time in getting scponly working. Actually my end goal was a chrooted sftp-only environment for users, so it took a while to get all binaries and libraries together. In an attempt to make life easier, I raised the scponly&#039;s debuglevel to 2, to see slightly more output than &lt;span class=&quot;errortxt&quot;&gt;Connection closed&lt;/span&gt; when trying to log in.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;http://www.bramschoenmakers.nl/en/node/752&quot;&gt;read more&lt;/a&gt;&lt;/p&gt;</description>
 <comments>http://www.bramschoenmakers.nl/en/node/752#comments</comments>
 <category domain="http://www.bramschoenmakers.nl/en/taxonomy/term/500">scponly</category>
 <pubDate>Tue, 10 May 2011 23:20:09 +0200</pubDate>
 <dc:creator>Bram Schoenmakers</dc:creator>
 <guid isPermaLink="false">752 at http://www.bramschoenmakers.nl</guid>
</item>
<item>
 <title>Debian: logrotate fails when MySQL is not running</title>
 <link>http://www.bramschoenmakers.nl/en/node/747</link>
 <description>&lt;p&gt;I have a MySQL instance on my PC, but by default it&#039;s turned off. However, when I leave my PC running overnight, the next morning I find this friendly email from a person called Cron:&lt;/p&gt;
&lt;div class=&quot;error&quot;&gt;/etc/cron.daily/logrotate:&lt;br /&gt;
error: error running shared postrotate script for &#039;/var/log/mysql.log /var/log/mysql/mysql.log /var/log/mysql/mysql-slow.log &#039;&lt;br /&gt;
run-parts: /etc/cron.daily/logrotate exited with return code 1&lt;br /&gt;
Job run-parts --report /etc/cron.daily terminated (exit status: 1) (mailing output)&lt;/div&gt;
&lt;p&gt;&lt;a href=&quot;http://www.bramschoenmakers.nl/en/node/747&quot;&gt;read more&lt;/a&gt;&lt;/p&gt;</description>
 <comments>http://www.bramschoenmakers.nl/en/node/747#comments</comments>
 <category domain="http://www.bramschoenmakers.nl/en/taxonomy/term/492">Akonadi</category>
 <category domain="http://www.bramschoenmakers.nl/en/taxonomy/term/57">Debian</category>
 <category domain="http://www.bramschoenmakers.nl/en/taxonomy/term/491">logrotate</category>
 <category domain="http://www.bramschoenmakers.nl/en/taxonomy/term/186">MySQL</category>
 <pubDate>Wed, 19 Jan 2011 01:24:36 +0100</pubDate>
 <dc:creator>Bram Schoenmakers</dc:creator>
 <guid isPermaLink="false">747 at http://www.bramschoenmakers.nl</guid>
</item>
<item>
 <title>How to install VMWare tools in Debian Lenny</title>
 <link>http://www.bramschoenmakers.nl/en/node/744</link>
 <description>&lt;p&gt;Every VMWare guest should have the VMWare tools installed. This improves the performance of the VM, especially when the VMWare host is under heavy load. Here are the instructions to install these in a Debian Lenny guest system:&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;http://www.bramschoenmakers.nl/en/node/744&quot;&gt;read more&lt;/a&gt;&lt;/p&gt;</description>
 <comments>http://www.bramschoenmakers.nl/en/node/744#comments</comments>
 <category domain="http://www.bramschoenmakers.nl/en/taxonomy/term/57">Debian</category>
 <category domain="http://www.bramschoenmakers.nl/en/taxonomy/term/227">VMWare</category>
 <pubDate>Fri, 26 Nov 2010 13:20:33 +0100</pubDate>
 <dc:creator>Bram Schoenmakers</dc:creator>
 <guid isPermaLink="false">744 at http://www.bramschoenmakers.nl</guid>
</item>
<item>
 <title>Rotate MySQL log files with newsyslog</title>
 <link>http://www.bramschoenmakers.nl/en/node/730</link>
 <description>&lt;p&gt;When you log slow queries or queries without indexes in MySQL, you should regularly rotate the file to save disk space. Quite some suggestions on the internet involve complex scripts which do this, other suggestions discuss FreeBSD&#039;s log rotator newsyslog. However, most of the descriptions about newsyslog appeared wrong to me, because no PID file was specified for the rule. This means that a SIGHUP is sent to the syslog daemon instead of the &lt;span class=&quot;commandtxt&quot;&gt;mysqld&lt;/span&gt; process, which is undesired.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;http://www.bramschoenmakers.nl/en/node/730&quot;&gt;read more&lt;/a&gt;&lt;/p&gt;</description>
 <comments>http://www.bramschoenmakers.nl/en/node/730#comments</comments>
 <category domain="http://www.bramschoenmakers.nl/en/taxonomy/term/37">FreeBSD</category>
 <category domain="http://www.bramschoenmakers.nl/en/taxonomy/term/186">MySQL</category>
 <category domain="http://www.bramschoenmakers.nl/en/taxonomy/term/479">newsyslog</category>
 <pubDate>Wed, 21 Jul 2010 13:12:38 +0200</pubDate>
 <dc:creator>Bram Schoenmakers</dc:creator>
 <guid isPermaLink="false">730 at http://www.bramschoenmakers.nl</guid>
</item>
<item>
 <title>tmux 1.3: equivalents for down-pane and up-pane</title>
 <link>http://www.bramschoenmakers.nl/en/node/729</link>
 <description>&lt;p&gt;&lt;a href=&quot;http://tmux.sourceforge.net&quot; class=&quot;external-link&quot;&gt;tmux&lt;/a&gt; is a terminal multiplexer, just like screen(1). However, tmux is actively maintained and is in my opinion much better. Due to these developments, it could happen that something stops working or becomes broken from one version to another. The upgrade from version 1.2 to 1.3 caused that the commands &lt;span class=&quot;commandtxt&quot;&gt;down-pane&lt;/span&gt; and &lt;span class=&quot;commandtxt&quot;&gt;up-pane&lt;/span&gt; were no longer working.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;http://www.bramschoenmakers.nl/en/node/729&quot;&gt;read more&lt;/a&gt;&lt;/p&gt;</description>
 <comments>http://www.bramschoenmakers.nl/en/node/729#comments</comments>
 <category domain="http://www.bramschoenmakers.nl/en/taxonomy/term/431">tmux</category>
 <pubDate>Tue, 20 Jul 2010 10:15:59 +0200</pubDate>
 <dc:creator>Bram Schoenmakers</dc:creator>
 <guid isPermaLink="false">729 at http://www.bramschoenmakers.nl</guid>
</item>
<item>
 <title>R: Increase heap size for rJava</title>
 <link>http://www.bramschoenmakers.nl/en/node/726</link>
 <description>&lt;p&gt;Technically speaking, this is not strictly a Unix Revelation. Still, to me it&#039;s useful enough to note this down.&lt;/p&gt;
&lt;p&gt;We all know Java runs in a virtual machine, and assigns itself in 80% of the cases too little memory to do some real work. Result? Well, this:&lt;/p&gt;
&lt;div class=&quot;error&quot;&gt;java.lang.OutOfMemoryError: Java heap space&lt;/div&gt;
&lt;p&gt;Sun gave us the &lt;span class=&quot;commandtxt&quot;&gt;-Xmx flag&lt;/span&gt; to increase the heap size (and &lt;span class=&quot;commandtxt&quot;&gt;-Xms&lt;/span&gt; to increase the stack size).&lt;/p&gt;
&lt;p&gt;This works nicely from the commandline, the next challenge was to do something similar from an &lt;a href=&quot;http://www.r-project.org&quot; class=&quot;external-link&quot;&gt;R&lt;/a&gt; environment. Using &lt;a href=&quot;http://cran.r-project.org/web/packages/RWeka/index.html&quot; class=&quot;external-link&quot;&gt;RWeka&lt;/a&gt;, which in turn depends on &lt;a href=&quot;http://cran.r-project.org/web/packages/rJava/index.html&quot; class=&quot;external-link&quot;&gt;rJava&lt;/a&gt;, I found myself hitting the limit every time (which defaults to 512 MB).&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;http://www.bramschoenmakers.nl/en/node/726&quot;&gt;read more&lt;/a&gt;&lt;/p&gt;</description>
 <comments>http://www.bramschoenmakers.nl/en/node/726#comments</comments>
 <category domain="http://www.bramschoenmakers.nl/en/taxonomy/term/427">Java</category>
 <category domain="http://www.bramschoenmakers.nl/en/taxonomy/term/476">R</category>
 <category domain="http://www.bramschoenmakers.nl/en/taxonomy/term/478">rJava</category>
 <category domain="http://www.bramschoenmakers.nl/en/taxonomy/term/477">RWeka</category>
 <pubDate>Thu, 10 Jun 2010 01:15:33 +0200</pubDate>
 <dc:creator>Bram Schoenmakers</dc:creator>
 <guid isPermaLink="false">726 at http://www.bramschoenmakers.nl</guid>
</item>
<item>
 <title>Tethering in Linux with HTC Desire</title>
 <link>http://www.bramschoenmakers.nl/en/node/725</link>
 <description>&lt;p&gt;Again, this is primarily a note-to-self. My normal internet connection is not always that stable, so I have to fallback to alternatives when things are suboptimal (massive packet loss up to 100%).&lt;/p&gt;
&lt;p&gt;Before, I could use my Sony Ericsson C902 for tethering. With Bluetooth and a lot of PPP magic I barely understand, I was able to call my phone&#039;s modem and access the internet.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;http://www.bramschoenmakers.nl/en/node/725&quot;&gt;read more&lt;/a&gt;&lt;/p&gt;</description>
 <comments>http://www.bramschoenmakers.nl/en/node/725#comments</comments>
 <category domain="http://www.bramschoenmakers.nl/en/taxonomy/term/474">HTC Desire</category>
 <category domain="http://www.bramschoenmakers.nl/en/taxonomy/term/60">Linux</category>
 <category domain="http://www.bramschoenmakers.nl/en/taxonomy/term/59">Network</category>
 <category domain="http://www.bramschoenmakers.nl/en/taxonomy/term/475">USB</category>
 <pubDate>Fri, 23 Apr 2010 22:06:40 +0200</pubDate>
 <dc:creator>Bram Schoenmakers</dc:creator>
 <guid isPermaLink="false">725 at http://www.bramschoenmakers.nl</guid>
</item>
<item>
 <title>Git remote repository with a custom SSH port</title>
 <link>http://www.bramschoenmakers.nl/en/node/720</link>
 <description>&lt;p&gt;I keep forgetting this, so I&#039;d better jot it down here once and for all. To add a Git remote repository, accessible through SSH with a different port than 22, execute:&lt;/p&gt;
&lt;div class=&quot;command&quot;&gt;git remote add office ssh://username@hostname:2222/home/bram/.repository&lt;/div&gt;
&lt;p&gt;So this adds a remote repository behind port 2222 of the host, immediately followed by the remote path of the repository. The &lt;span class=&quot;commandtxt&quot;&gt;ssh://&lt;/span&gt; part is crucial and forgetting this part has cost already some minutes of my life.&lt;/p&gt;
</description>
 <comments>http://www.bramschoenmakers.nl/en/node/720#comments</comments>
 <category domain="http://www.bramschoenmakers.nl/en/taxonomy/term/240">git</category>
 <category domain="http://www.bramschoenmakers.nl/en/taxonomy/term/43">SSH</category>
 <pubDate>Fri, 12 Mar 2010 00:02:52 +0100</pubDate>
 <dc:creator>Bram Schoenmakers</dc:creator>
 <guid isPermaLink="false">720 at http://www.bramschoenmakers.nl</guid>
</item>
<item>
 <title>Allow other local users to run X11 applications</title>
 <link>http://www.bramschoenmakers.nl/en/node/715</link>
 <description>&lt;p&gt;For KDE development, I work with a separate user. However, when you invoke &lt;span class=&quot;commandtxt&quot;&gt;su - kde-devel&lt;/span&gt; and run an X11 application, you&#039;ll get nasty errors like:&lt;/p&gt;
&lt;div class=&quot;error&quot;&gt;kfoo: cannot connect to X server :0.0&lt;/div&gt;
&lt;p&gt; or&lt;br /&gt;
&lt;div class=&quot;error&quot;&gt;X11 initialization failed.&lt;/div&gt;
&lt;p&gt;There are several solutions for this.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;http://www.bramschoenmakers.nl/en/node/715&quot;&gt;read more&lt;/a&gt;&lt;/p&gt;</description>
 <comments>http://www.bramschoenmakers.nl/en/node/715#comments</comments>
 <category domain="http://www.bramschoenmakers.nl/en/taxonomy/term/260">Xorg</category>
 <pubDate>Sun, 27 Dec 2009 00:27:57 +0100</pubDate>
 <dc:creator>Bram Schoenmakers</dc:creator>
 <guid isPermaLink="false">715 at http://www.bramschoenmakers.nl</guid>
</item>
</channel>
</rss>

