<?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>Blog dot Melimato dot Com &#187; Ubuntu</title>
	<atom:link href="http://blog.melimato.com/tag/ubuntu/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.melimato.com</link>
	<description>Those things we do</description>
	<lastBuildDate>Fri, 29 Jul 2011 09:24:27 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
		<item>
		<title>Restoring readline capabilities of Ubuntu&#8217;s 9.10 (Karmic Koala) MySQL client</title>
		<link>http://blog.melimato.com/restoring-readline-capabilities-of-ubuntus-9-10-karmic-koala-mysql-client/</link>
		<comments>http://blog.melimato.com/restoring-readline-capabilities-of-ubuntus-9-10-karmic-koala-mysql-client/#comments</comments>
		<pubDate>Thu, 24 Dec 2009 11:58:58 +0000</pubDate>
		<dc:creator>pedro</dc:creator>
				<category><![CDATA[mysql]]></category>
		<category><![CDATA[mysql command line]]></category>
		<category><![CDATA[readline]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://blog.melimato.com/?p=227</guid>
		<description><![CDATA[I recently updated to the newest version, 9.10 AKA Karmic Koala and I love it. It&#8217;s fast and everything works perfectly. Or nearly everything&#8230; The one thing that really annoyed me in this version was the MySQL terminal. All of a sudden after the upgrade ctrl+r for reverse search didn&#8217;t work anymore. And there was [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fblog.melimato.com%2Frestoring-readline-capabilities-of-ubuntus-9-10-karmic-koala-mysql-client%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fblog.melimato.com%2Frestoring-readline-capabilities-of-ubuntus-9-10-karmic-koala-mysql-client%2F&amp;style=normal&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>I recently updated to the <a href="http://www.ubuntu.com/">newest version, 9.10 AKA Karmic Koala</a> and I love it. It&#8217;s fast and everything works perfectly. Or nearly everything&#8230;</p>
<p><span id="more-227"></span></p>
<p>The one thing that really annoyed me in this version was the MySQL terminal. All of a sudden after the upgrade ctrl+r for reverse search didn&#8217;t work anymore. And there was more&#8230;delete didn&#8217;t work either and esc+backspace was behaving weirdly too. Unfortunately I did not have time to look for a solution because of my work load. But then xmas came and here I am, stuck at home with the family, giving me a lot of time to research about those things that were very low on my priorities list. And I found a solution!</p>
<p>It seems that Ubuntu replaced <a href="http://utopia.knoware.nl/~hlub/uck/rlwrap/">libreadline</a> with <a href="http://thrysoee.dk/editline/">libedit</a>. And <a href="http://utopia.knoware.nl/~hlub/uck/rlwrap/">readline</a> is the library that provides all those cool command line capabilities. So let&#8217;s enable it again, but instead of compiling the whole thing again, let&#8217;s just use a wrapper, the <a href="http://freshmeat.net/projects/rlwrap/">readline wrapper</a>!</p>
<p>First, let&#8217;s install it:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">apt-get</span> <span style="color: #c20cb9; font-weight: bold;">install</span> rlwrap</pre></div></div>

<p>That&#8217;s it! Now all we need to do is to start mysql command line interface through rlwrap:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">rlwrap <span style="color: #660033;">-a</span> mysql <span style="color: #660033;">-uUSER</span> <span style="color: #660033;">-pPASSWORD</span> DBNAME</pre></div></div>

<p>To make things easier, let&#8217;s create an alias in our bashrc file.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">vi</span> ~<span style="color: #000000; font-weight: bold;">/</span>.bashrc</pre></div></div>

<p>And add the alias:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">alias</span> <span style="color: #007800;">mysql</span>=<span style="color: #ff0000;">'rlwrap -a mysql'</span></pre></div></div>

<p>Credit: <a href="http://ubuntuforums.org/showthread.php?t=1147183">http://ubuntuforums.org/showthread.php?t=1147183</a></p>
<div id="wherego_related"> </div>]]></content:encoded>
			<wfw:commentRss>http://blog.melimato.com/restoring-readline-capabilities-of-ubuntus-9-10-karmic-koala-mysql-client/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Make svnserve load on startup (Ubuntu)</title>
		<link>http://blog.melimato.com/make-svnserve-load-on-startup-ubuntu/</link>
		<comments>http://blog.melimato.com/make-svnserve-load-on-startup-ubuntu/#comments</comments>
		<pubDate>Sat, 25 Apr 2009 15:23:14 +0000</pubDate>
		<dc:creator>pedro</dc:creator>
				<category><![CDATA[svn]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://blog.melimato.com/?p=96</guid>
		<description><![CDATA[Make svnserve load on startup: First create a new script on init.d vi /etc/init.d/svnserve The script&#8217;s contents: #!/bin/bash ### BEGIN INIT INFO # Provides: svnserve # Required-Start: $local_fs $remote_fs $network $syslog # Required-Stop: $local_fs $remote_fs $network $syslog # Default-Start: 2 3 4 5 # Default-Stop: 0 1 6 # Short-Description: Start subversion server ### END [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fblog.melimato.com%2Fmake-svnserve-load-on-startup-ubuntu%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fblog.melimato.com%2Fmake-svnserve-load-on-startup-ubuntu%2F&amp;style=normal&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>Make svnserve load on startup:</p>
<p>First create a new script on init.d</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">vi</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><span style="color: #c20cb9; font-weight: bold;">svnserve</span></pre></div></div>

<p><span id="more-96"></span></p>
<p>The script&#8217;s contents:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">#!/bin/bash</span>
<span style="color: #666666; font-style: italic;">### BEGIN INIT INFO</span>
<span style="color: #666666; font-style: italic;"># Provides:          svnserve</span>
<span style="color: #666666; font-style: italic;"># Required-Start:    $local_fs $remote_fs $network $syslog</span>
<span style="color: #666666; font-style: italic;"># Required-Stop:     $local_fs $remote_fs $network $syslog</span>
<span style="color: #666666; font-style: italic;"># Default-Start:     2 3 4 5</span>
<span style="color: #666666; font-style: italic;"># Default-Stop:      0 1 6</span>
<span style="color: #666666; font-style: italic;"># Short-Description: Start subversion server</span>
<span style="color: #666666; font-style: italic;">### END INIT INFO</span>
&nbsp;
<span style="color: #c20cb9; font-weight: bold;">svnserve</span> <span style="color: #660033;">--listen-host</span>=myhost.com <span style="color: #660033;">-d</span> <span style="color: #660033;">-r</span> <span style="color: #000000; font-weight: bold;">/</span>path<span style="color: #000000; font-weight: bold;">/</span>to<span style="color: #000000; font-weight: bold;">/</span>svn<span style="color: #000000; font-weight: bold;">/</span>repos</pre></div></div>

<p>Then make the script is executable</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">chmod</span> +x <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><span style="color: #c20cb9; font-weight: bold;">svnserve</span></pre></div></div>

<p>Use update-rc.d to add script to init</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">update-rc.d <span style="color: #c20cb9; font-weight: bold;">svnserve</span> defaults</pre></div></div>

<p>That&#8217;s it!</p>
<div id="wherego_related"><h3>Readers who viewed this page, also viewed:</h3><ul><li><a href="http://blog.melimato.com/set-new-logrotate-tasks-to-rotate-apache-logs-in-non-standard-directories/" rel="bookmark" class="wherego_title">Set new logrotate tasks to rotate apache logs in non-standard directories</a></li><li>Powered by <a href="http://ajaydsouza.com/wordpress/plugins/where-did-they-go-from-here/">Where did they go from here?</a></li></ul></div>]]></content:encoded>
			<wfw:commentRss>http://blog.melimato.com/make-svnserve-load-on-startup-ubuntu/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>How to sync date/time in Ubuntu Intrepid</title>
		<link>http://blog.melimato.com/how-to-sync-datetime-in-ubuntu-intrepid/</link>
		<comments>http://blog.melimato.com/how-to-sync-datetime-in-ubuntu-intrepid/#comments</comments>
		<pubDate>Thu, 23 Apr 2009 14:55:39 +0000</pubDate>
		<dc:creator>pedro</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[apt]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[chrony]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[ntp]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://www.melimato.com/blog/?p=9</guid>
		<description><![CDATA[In order to keep my servers always showing the correct date/time I use a little software called chrony and make sure I&#8217;m using the correct time zone. All the actions below need superuser privileges To install it simply use apt-get: $ apt-get install chrony Once you&#8217;ve installed chrony you need to select your current time [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fblog.melimato.com%2Fhow-to-sync-datetime-in-ubuntu-intrepid%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fblog.melimato.com%2Fhow-to-sync-datetime-in-ubuntu-intrepid%2F&amp;style=normal&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>In order to keep my servers always showing the correct date/time I use a little software called <a href="http://chrony.sunsite.dk/" title="chrony website">chrony</a> and make sure I&#8217;m using the correct time zone.</p>
<p><span id="more-9"></span></p>
<p><strong>All the actions below need superuser privileges</strong></p>
<p>To install it simply use apt-get:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">$ <span style="color: #c20cb9; font-weight: bold;">apt-get</span> <span style="color: #c20cb9; font-weight: bold;">install</span> chrony</pre></div></div>

<p>Once you&#8217;ve installed chrony you need to select your current time zone:</p>

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

<p>To make sure it is selected on every boot I just export the TZ environment variable in my /etc/rc.local</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">$ <span style="color: #c20cb9; font-weight: bold;">vi</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>rc.local</pre></div></div>

<p>And add the following lines:<br />
# Export timezone<br />
TZ=&#8217;Europe/Brussels&#8217;; export TZ</p>
<p>I found doing the above was not enough, so I also edited my /etc/timezone file and added the correct time zone there:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">$ <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;Europe/Brussels&quot;</span> <span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>timezone</pre></div></div>

<p>And still it wasn&#8217;t enough, so I reconfigured the package tzdata</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">$ dpkg-reconfigure tzdata</pre></div></div>

<p>And finally that did it! To make sure it would still be correct on a future reboot I rebooted my machine:</p>

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

<div id="wherego_related"><h3>Readers who viewed this page, also viewed:</h3><ul><li>Powered by <a href="http://ajaydsouza.com/wordpress/plugins/where-did-they-go-from-here/">Where did they go from here?</a></li></ul></div>]]></content:encoded>
			<wfw:commentRss>http://blog.melimato.com/how-to-sync-datetime-in-ubuntu-intrepid/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>

