<?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>LogikDevelopment &#187; Linux</title>
	<atom:link href="http://www.logikdev.com/tag/linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.logikdev.com</link>
	<description>&#34;Il n&#039;y a pas de problème, il n&#039;y a que des solutions. L&#039;esprit de l&#039;homme invente ensuite le problème.&#34; André Gide</description>
	<lastBuildDate>Tue, 20 Dec 2011 12:25:13 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Samba access problem with Mac OS X 10.6+</title>
		<link>http://www.logikdev.com/2011/12/13/samba-access-problem-with-mac-os-x-10-6/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=samba-access-problem-with-mac-os-x-10-6</link>
		<comments>http://www.logikdev.com/2011/12/13/samba-access-problem-with-mac-os-x-10-6/#comments</comments>
		<pubDate>Tue, 13 Dec 2011 21:31:15 +0000</pubDate>
		<dc:creator>smoreau</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[D-Link]]></category>
		<category><![CDATA[DNS-313]]></category>
		<category><![CDATA[Mac OS X]]></category>
		<category><![CDATA[Samba]]></category>
		<category><![CDATA[security mode]]></category>

		<guid isPermaLink="false">http://www.logikdev.com/?p=1653</guid>
		<description><![CDATA[This is a problem I encountered when I upgraded Mac OS X from the version 10.5 (Leopard) to 10.6 (Snow Leopard). One of my friend also got a similar problem when she upgraded to the version 10.7 (Lion). This issue was affecting the access to the network shares set up with Samba (version 3.0.24) on [...]]]></description>
			<content:encoded><![CDATA[<p>This is a problem I encountered when I upgraded Mac OS X from the version 10.5 (Leopard) to 10.6 (Snow Leopard). One of my friend also got a similar problem when she upgraded to the version 10.7 (Lion).<br />
This issue was affecting the access to the network shares set up with <strong>Samba</strong> (version 3.0.24) on my D-Link DNS-323. For some reason, I wasn&#8217;t able to authenticate on the shares as soon as I upgraded to Snow Leopard!</p>
<p>Here is the error message I was getting:<br />
<a href="http://www.logikdev.com/wp-content/uploads/2011/12/samba-access-problem.png" rel="lightbox[1653]"><img src="http://www.logikdev.com/wp-content/uploads/2011/12/samba-access-problem-300x271.png" alt="" title="Samba authentication problem on Mac OS X" width="300" height="271" class="alignnone size-medium wp-image-1669" /></a></p>
<p>After browsing a few forums on the web, I finally found a solution. <img src='http://www.logikdev.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /><br />
I simply had to change the security mode in the Samba configuration file (<code>smb.conf</code>) to read:</p>
<pre class="brush: bash; light: true; title: ; notranslate">
security = USER
</pre>
<p>Note that this property can be found under the <code>[global]</code> section.</p>
<p>For more information about the Samba security mode, please read the following article by Jack Wallen:<br />
<a href="http://www.ghacks.net/2010/03/17/understanding-samba-security-modes/" title="Understanding Samba security modes" target="_blank">Understanding Samba security modes</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.logikdev.com/2011/12/13/samba-access-problem-with-mac-os-x-10-6/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>S3 command failed if the time is not synced</title>
		<link>http://www.logikdev.com/2011/12/06/s3-command-failed-if-time-not-synced/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=s3-command-failed-if-time-not-synced</link>
		<comments>http://www.logikdev.com/2011/12/06/s3-command-failed-if-time-not-synced/#comments</comments>
		<pubDate>Tue, 06 Dec 2011 23:11:43 +0000</pubDate>
		<dc:creator>smoreau</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Amazon S3]]></category>
		<category><![CDATA[backup]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[ntpdate]]></category>
		<category><![CDATA[s3sync]]></category>
		<category><![CDATA[shell]]></category>
		<category><![CDATA[system date]]></category>

		<guid isPermaLink="false">http://www.logikdev.com/?p=1610</guid>
		<description><![CDATA[This is already the second post about the s3sync ruby program. The first article was focused on monitoring s3sync with Zabbix. I will talk on this one about an error I got when running the S3 synchronisation: S3 command failed: list_bucket prefix /data max-keys 200 delimiter / With result 403 Forbidden S3 ERROR: # s3sync.rb:290:in [...]]]></description>
			<content:encoded><![CDATA[<p>This is already the second post about the <a href="https://forums.aws.amazon.com/thread.jspa?threadID=11975&amp;start=0&amp;tstart=0" target="_blank"><strong>s3sync</strong></a> ruby program. The first article was focused on <a title="Monitor s3sync with Zabbix" href="http://www.logikdev.com/2011/11/24/monitor-s3sync-with-zabbix/">monitoring s3sync with Zabbix</a>.</p>
<p>I will talk on this one about an error I got when running the S3 synchronisation:</p>
<pre>
S3 command failed:
list_bucket prefix /data max-keys 200 delimiter /
With result 403 Forbidden
S3 ERROR: #
s3sync.rb:290:in `+': can't convert nil into Array (TypeError)
	from s3sync.rb:290:in `s3TreeRecurse'
	from s3sync.rb:346:in `main'
	from ./thread_generator.rb:79:in `call'
	from ./thread_generator.rb:79:in `initialize'
	from ./thread_generator.rb:76:in `new'
	from ./thread_generator.rb:76:in `initialize'
	from s3sync.rb:267:in `new'
	from s3sync.rb:267:in `main'
	from s3sync.rb:735
</pre>
<p>As you can see, this error is not very human-friendly! <img src='http://www.logikdev.com/wp-includes/images/smilies/icon_surprised.gif' alt=':-o' class='wp-smiley' />  The only thing we know is that the S3 command failed because of the error <code>can't convert nil into Array</code>. It looks to me like an internal error within s3sync&#8230;</p>
<p>But after some investigation, it appears it is simply because the system date on the server is not correct. I cannot tell you how much time I spent on this one!  <img src='http://www.logikdev.com/wp-includes/images/smilies/icon_eek.gif' alt='8-O' class='wp-smiley' /> </p>
<p>Anyway, if you are doing automatic backups as describe on <a href="http://blog.eberly.org/2006/10/09/how-automate-your-backup-to-amazon-s3-using-s3sync/" target="_blank">John Eberly&#8217;s blog</a>, you need to add the following code at the top of your <code>upload.sh</code> script:</p>
<pre class="brush: bash; title: ; notranslate">
# update the system date
/usr/sbin/ntpdate 3.uk.pool.ntp.org 2.uk.pool.ntp.org 1.uk.pool.ntp.org 0.uk.pool.ntp.org
</pre>
<p><br/><strong>NB:</strong> please find below the command lines I use to install <a href="http://www.eecis.udel.edu/~mills/ntp/html/ntpdate.html" target="_blank"><strong>ntpdate</strong></a> on a Debian server:</p>
<pre class="brush: bash; light: true; title: ; notranslate">
apt-get install ntpdate
dpkg-reconfigure tzdata
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.logikdev.com/2011/12/06/s3-command-failed-if-time-not-synced/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Monitor s3sync with Zabbix</title>
		<link>http://www.logikdev.com/2011/11/24/monitor-s3sync-with-zabbix/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=monitor-s3sync-with-zabbix</link>
		<comments>http://www.logikdev.com/2011/11/24/monitor-s3sync-with-zabbix/#comments</comments>
		<pubDate>Thu, 24 Nov 2011 22:28:53 +0000</pubDate>
		<dc:creator>smoreau</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Amazon S3]]></category>
		<category><![CDATA[backup]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[cron]]></category>
		<category><![CDATA[Monitoring]]></category>
		<category><![CDATA[s3sync]]></category>
		<category><![CDATA[shell]]></category>
		<category><![CDATA[synchronisation]]></category>
		<category><![CDATA[Zabbix]]></category>

		<guid isPermaLink="false">http://www.logikdev.com/?p=1566</guid>
		<description><![CDATA[s3sync is a ruby program that easily transfers directories between a local directory and an S3 bucket:prefix. It behaves somewhat, but not precisely, like the rsync program. I am using this tool to automatically backup the important data from Debian servers to Amazon S3. I am not going to explain here how to install s3sync [...]]]></description>
			<content:encoded><![CDATA[<p><a href="https://forums.aws.amazon.com/thread.jspa?threadID=11975&#038;start=0&#038;tstart=0" target="_blank"><strong>s3sync</strong></a> is a ruby program that easily transfers directories between a local directory and an S3 bucket:prefix. It behaves somewhat, but not precisely, like the <strong>rsync</strong> program.</p>
<p>I am using this tool to automatically backup the important data from Debian servers to Amazon S3. I am not going to explain here how to install s3sync as it is not the purpose of this article. However, you can read this very useful article from John Eberly&#8217;s blog: <a href="http://blog.eberly.org/2006/10/09/how-automate-your-backup-to-amazon-s3-using-s3sync/" target="_blank">How I automated my backups to Amazon S3 using s3sync</a>.</p>
<p>If you followed the steps from John Eberly&#8217;s post, you should have an <code>upload.sh</code> script and a crontab job which executes this script periodically.</p>
<p>From this point, here is what you need to do to monitor the success of the synchronisation with <a href="http://www.zabbix.com/" target="_blank"><strong>Zabbix</strong></a>:</p>
<ol>
<li>Add the following code at the end of your <code>upload.sh</code> script:
<pre class="brush: bash; title: ; notranslate">
# print the exit code
RETVAL=$?
[ $RETVAL -eq 0 ] &amp;&amp; echo &quot;Synchronization succeed&quot;
[ $RETVAL -ne 0 ] &amp;&amp; echo &quot;Synchronization failed&quot;
</pre>
</li>
<li>Log the output of the cron script as follow:
<pre class="brush: bash; light: true; title: ; notranslate">
30 2 * * sun /path/to/upload.sh &gt; /var/log/s3sync.log 2&gt;&amp;1
</pre>
</li>
<li>On Zabbix, create a new item which will check the existence of the sentence &#8220;Synchronization failed&#8221; in the file <code>/var/log/s3sync.log</code>:<br />
<a href="http://www.logikdev.com/wp-content/uploads/2011/11/zabbix_s3sync_item.png" rel="lightbox[1566]"><img src="http://www.logikdev.com/wp-content/uploads/2011/11/zabbix_s3sync_item-297x300.png" alt="" title="Create a new item on Zabbix to monitor s3sync" width="297" height="300" class="aligncenter size-medium wp-image-1569" /></a><br />
Item key: <code>vfs.file.regmatch[/var/log/s3sync.log,Synchronization failed]</code><br />
<br/>
</li>
<li>Still on Zabbix, define a new trigger for the previously created item:<br />
<a href="http://www.logikdev.com/wp-content/uploads/2011/11/zabbix_s3sync_trigger.png" rel="lightbox[1566]"><img src="http://www.logikdev.com/wp-content/uploads/2011/11/zabbix_s3sync_trigger-300x160.png" alt="" title="Define a new trigger on Zabbix to monitor s3sync" width="300" height="160" class="aligncenter size-medium wp-image-1570" /></a><br />
Trigger expression: <code>{Template_AmazonCloud_Debian:vfs.file.regmatch[/var/log/s3sync.log,Synchronization failed].last(0)}=1</code>
</li>
</ol>
<p>With these few steps, you should now receive Zabbix alerts when a backup on S3 fails. <img src='http://www.logikdev.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.logikdev.com/2011/11/24/monitor-s3sync-with-zabbix/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Refresh GeoIP automatically</title>
		<link>http://www.logikdev.com/2011/11/07/refresh-geoip-automatically/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=refresh-geoip-automatically</link>
		<comments>http://www.logikdev.com/2011/11/07/refresh-geoip-automatically/#comments</comments>
		<pubDate>Mon, 07 Nov 2011 22:55:09 +0000</pubDate>
		<dc:creator>smoreau</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[cron]]></category>
		<category><![CDATA[GeoIP]]></category>
		<category><![CDATA[IP address]]></category>
		<category><![CDATA[MaxMind]]></category>
		<category><![CDATA[shell]]></category>

		<guid isPermaLink="false">http://www.logikdev.com/?p=1440</guid>
		<description><![CDATA[GeoIP is a very useful tool provided by MaxMind. It can determine which country, region, city, postal code, and area code the visitor is coming from in real-time. For more information, visit MaxMind website. This tool is also coming with an Apache module allowing to redirect users depending on their location. For example, we could [...]]]></description>
			<content:encoded><![CDATA[<p><strong>GeoIP</strong> is a very useful tool provided by MaxMind. It can determine which country, region, city, postal code, and area code the visitor is coming from in real-time. For more information, visit <a href="http://www.maxmind.com/app/ip-locate" target="_blank">MaxMind website</a>.</p>
<p>This tool is also coming with an Apache module allowing to redirect users depending on their location. For example, we could redirect all users from France to the French home page of a multi-language website, or we could block the traffic to users from a specific country.</p>
<p>To install this module on a Debian server, you simply need to run the following command:</p>
<pre class="brush: bash; light: true; title: ; notranslate">
apt-get install libapache2-mod-geoip
</pre>
<p><br/>But, how does this module work? How does it know where the user comes from?  <img src='http://www.logikdev.com/wp-includes/images/smilies/icon_eek.gif' alt='8-O' class='wp-smiley' /><br />
It is actually quite simple: GeoIP is using a mapping file of IP address by country. On Debian, this file is stored in the folder <code>/usr/share/GeoIP</code> and is named <code>GeoIP.dat</code>.</p>
<p>However, the IP addresses are something which change all the time. So this file will get out-of-date very quickly. This is why MaxMind provides an updated file at the beginning of each month for free. To read the installation instructions, please click the following link: <a href="http://www.maxmind.com/app/installation" target="_blank">http://www.maxmind.com/app/installation</a></p>
<p>This is good and well, but who will remember or even have the time to update this file every month? And imagine if you have to do this on hundreds of servers?<br />
The solution is to use a shell script which will download, extract and install the updated GeoIP file automatically once a month:</p>
<pre class="brush: bash; title: ; notranslate">
#!/bin/sh

# Go in the GeoIP folder
cd /usr/share/GeoIP

# Remove the previous GeoIP file (if present)
rm GeoIP.dat.gz

# Download the new GeoIP file
wget http://geolite.maxmind.com/download/geoip/database/GeoLiteCountry/GeoIP.dat.gz

# Remove the previous GeoIP backup file
rm GeoIP.dat.bak

# Backup the existing GeoIP file
mv GeoIP.dat GeoIP.dat.bak

# Extract the new GeoIP file
gunzip GeoIP.dat.gz

# Change the permission of the GeoIP file
chmod 644 GeoIP.dat

# Reload Apache
service apache2 reload
</pre>
<p>You can place this file in your root folder and set up the following crontab job:</p>
<pre class="brush: bash; light: true; title: ; notranslate">
0 0 3 * * /root/update_geoip.sh
</pre>
<p>This will execute the script automatically on the third day of every month.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.logikdev.com/2011/11/07/refresh-geoip-automatically/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Differences between Amazon instances</title>
		<link>http://www.logikdev.com/2011/07/17/differences-between-amazon-instances/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=differences-between-amazon-instances</link>
		<comments>http://www.logikdev.com/2011/07/17/differences-between-amazon-instances/#comments</comments>
		<pubDate>Sun, 17 Jul 2011 21:36:50 +0000</pubDate>
		<dc:creator>smoreau</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Amazon Cloud]]></category>
		<category><![CDATA[CPU capacity]]></category>
		<category><![CDATA[cpuinfo]]></category>
		<category><![CDATA[EC2 Compute Units]]></category>

		<guid isPermaLink="false">http://www.logikdev.com/?p=1374</guid>
		<description><![CDATA[It has now been more than a year I am using Amazon Cloud for websites hosting. I have to admit that it works pretty well and I am quite happy about their services. However, I got a strange problem a few days ago. I was deploying an application on two different large instances of Amazon [...]]]></description>
			<content:encoded><![CDATA[<p>It has now been more than a year I am using Amazon Cloud for websites hosting. I have to admit that it works pretty well and I am quite happy about their services.<br />
However, I got a strange problem a few days ago.</p>
<p>I was deploying an application on two different large instances of Amazon Cloud, one would be the UAT (User Acceptance Testing) server and the other one would be the Production server.<br />
Strangely enough, the version running on the Production server was running <strong>slower</strong> than on the UAT server! <img src='http://www.logikdev.com/wp-includes/images/smilies/icon_eek.gif' alt='8-O' class='wp-smiley' /> Why?</p>
<p>At first, I thought I missed something with the server configurations. But no, everything was absolutely identical! So where does this difference of speed come from?</p>
<p>After some more investigation, I had the brilliant idea to execute the following command:</p>
<pre class="brush: bash; light: true; title: ; notranslate">
cat /proc/cpuinfo
</pre>
<p>On the Production server, this command was returning the following:</p>
<pre class="brush: bash; light: true; title: ; notranslate">
processor	: 0
vendor_id	: AuthenticAMD
cpu family	: 15
model		: 65
model name	: Dual-Core AMD Opteron(tm) Processor 2218 HE
stepping	: 3
cpu MHz		: 2599.998
cache size	: 1024 KB
physical id	: 0
siblings	: 1
core id		: 0
cpu cores	: 1
fpu		: yes
fpu_exception	: yes
cpuid level	: 1
wp		: yes
flags		: fpu tsc msr pae mce cx8 apic mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt rdtscp lm 3dnowext 3dnow pni cx16 lahf_lm cmp_legacy svm extapic cr8_legacy
bogomips	: 5202.40
TLB size	: 1024 4K pages
clflush size	: 64
cache_alignment	: 64
address sizes	: 40 bits physical, 48 bits virtual
power management: ts fid vid ttp tm stc

processor	: 1
vendor_id	: AuthenticAMD
cpu family	: 15
model		: 65
model name	: Dual-Core AMD Opteron(tm) Processor 2218 HE
stepping	: 3
cpu MHz		: 2599.998
cache size	: 1024 KB
physical id	: 1
siblings	: 1
core id		: 0
cpu cores	: 1
fpu		: yes
fpu_exception	: yes
cpuid level	: 1
wp		: yes
flags		: fpu tsc msr pae mce cx8 apic mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt rdtscp lm 3dnowext 3dnow up pni cx16 lahf_lm cmp_legacy svm extapic cr8_legacy
bogomips	: 5202.40
TLB size	: 1024 4K pages
clflush size	: 64
cache_alignment	: 64
address sizes	: 40 bits physical, 48 bits virtual
power management: ts fid vid ttp tm stc
</pre>
<p>And on the UAT server, it was returning the following:</p>
<pre class="brush: bash; light: true; title: ; notranslate">
processor	: 0
vendor_id	: GenuineIntel
cpu family	: 6
model		: 23
model name	: Intel(R) Xeon(R) CPU           E5430  @ 2.66GHz
stepping	: 10
cpu MHz		: 2666.762
cache size	: 6144 KB
physical id	: 0
siblings	: 1
core id		: 0
cpu cores	: 1
fpu		: yes
fpu_exception	: yes
cpuid level	: 13
wp		: yes
flags		: fpu de tsc msr pae cx8 apic sep cmov pat clflush acpi mmx fxsr sse sse2 ss ht syscall nx lm constant_tsc pni ssse3 cx16 lahf_lm
bogomips	: 5337.55
clflush size	: 64
cache_alignment	: 64
address sizes	: 38 bits physical, 48 bits virtual
power management:

processor	: 1
vendor_id	: GenuineIntel
cpu family	: 6
model		: 23
model name	: Intel(R) Xeon(R) CPU           E5430  @ 2.66GHz
stepping	: 10
cpu MHz		: 2666.762
cache size	: 6144 KB
physical id	: 1
siblings	: 1
core id		: 0
cpu cores	: 1
fpu		: yes
fpu_exception	: yes
cpuid level	: 13
wp		: yes
flags		: fpu de tsc msr pae cx8 apic sep cmov pat clflush acpi mmx fxsr sse sse2 ss ht syscall nx lm constant_tsc up pni ssse3 cx16 lahf_lm
bogomips	: 5337.55
clflush size	: 64
cache_alignment	: 64
address sizes	: 38 bits physical, 48 bits virtual
power management:
</pre>
<p>As you can see, these two servers actually don&#8217;t have the same CPU model name. But the biggest difference is probably the CPU MHz (2666.762 on UAT and 2599.998 on Production) and the cache size (6MB on UAT and only 1MB on Production).</p>
<p>So what does that mean? Two large instances of Amazon Cloud actually don&#8217;t have the same power?</p>
<p>The answer of this question is actually on the Amazon instance types description (<a href="http://aws.amazon.com/ec2/instance-types/" target="_blank">http://aws.amazon.com/ec2/instance-types/</a>) under the &#8216;Measuring Compute Resources&#8217; chapter:</p>
<blockquote><p>Amazon EC2 uses a variety of measures to provide each instance with a consistent and predictable amount of CPU capacity. In order to make it easy for developers to compare CPU capacity between different instance types, we have defined an Amazon EC2 Compute Unit. The amount of CPU that is allocated to a particular instance is expressed in terms of these EC2 Compute Units. We use several benchmarks and tests to manage the consistency and predictability of the performance of an EC2 Compute Unit. One EC2 Compute Unit provides the equivalent CPU capacity of a 1.0-1.2 GHz 2007 Opteron or 2007 Xeon processor.</p></blockquote>
<p>In conclusion, two identical instance types of Amazon Cloud have the same number of EC2 Compute Units but because a EC2 Compute Unit is equivalent to a CPU capacity between 1.0Ghz and 1.2Ghz, the actual speed of the instance will be slightly different!<br />
<em>Mystery solved.</em> <img src='http://www.logikdev.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.logikdev.com/2011/07/17/differences-between-amazon-instances/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>run-parts gives an exec format error</title>
		<link>http://www.logikdev.com/2011/05/23/run-parts-gives-an-exec-format-error/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=run-parts-gives-an-exec-format-error</link>
		<comments>http://www.logikdev.com/2011/05/23/run-parts-gives-an-exec-format-error/#comments</comments>
		<pubDate>Mon, 23 May 2011 22:51:33 +0000</pubDate>
		<dc:creator>smoreau</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[Exec format error]]></category>
		<category><![CDATA[run-parts]]></category>
		<category><![CDATA[shebang]]></category>
		<category><![CDATA[shell]]></category>

		<guid isPermaLink="false">http://www.logikdev.com/?p=1255</guid>
		<description><![CDATA[I got a problem the other day with a Linux script I made. Basically, the script was working perfectly fine if I executed it directly from the command line but whenever I tried to run it with run-parts it failed! This is the error message it returned: Actually, the answer of this problem is quite [...]]]></description>
			<content:encoded><![CDATA[<p>I got a problem the other day with a Linux script I made.<br />
Basically, the script was working perfectly fine if I executed it directly from the command line but whenever I tried to run it with <code>run-parts</code> it failed!</p>
<p>This is the error message it returned:</p>
<pre class="brush: bash; light: true; title: ; notranslate">
%prompt&gt; run-parts --report /etc/cron.daily
/etc/cron.daily/myscript:
run-parts: failed to exec /etc/cron.daily/myscript: Exec format error
run-parts: /etc/cron.daily/myscript exited with return code 1
%prompt&gt;
</pre>
<p>Actually, the answer of this problem is quite simple! <img src='http://www.logikdev.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /><br />
I simply forgot the <a href="http://en.wikipedia.org/wiki/Shebang_(Unix)">shebang</a> on the first line of the script&#8230;</p>
<p>So, if you get the same error than me, make sure you have the following line at the beginning of your script:</p>
<pre class="brush: bash; light: true; title: ; notranslate">
#!/bin/sh
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.logikdev.com/2011/05/23/run-parts-gives-an-exec-format-error/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Redmine 1.1.3 on HostMonster</title>
		<link>http://www.logikdev.com/2011/05/09/redmine-on-hostmonster/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=redmine-on-hostmonster</link>
		<comments>http://www.logikdev.com/2011/05/09/redmine-on-hostmonster/#comments</comments>
		<pubDate>Mon, 09 May 2011 21:13:05 +0000</pubDate>
		<dc:creator>smoreau</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[HostMonster]]></category>
		<category><![CDATA[Redmine]]></category>
		<category><![CDATA[Ruby]]></category>

		<guid isPermaLink="false">http://www.logikdev.com/?p=1252</guid>
		<description><![CDATA[Did you guys ever hear about Redmine? It is an open source project management web application written using Ruby on Rails framework. I already used it in the past and it is quite powerful! I wanted to install the last version (1.1.3) on my HostMonster account. I would lie if I say that it has [...]]]></description>
			<content:encoded><![CDATA[<p>Did you guys ever hear about <strong><a href="http://www.redmine.org/">Redmine</a></strong>? It is an open source project management web application written using Ruby on Rails framework. I already used it in the past and it is quite powerful!</p>
<p>I wanted to install the last version (1.1.3) on my HostMonster account. I would lie if I say that it has been easy&#8230; However, after a few try and some help from the HostMonster support, I finally got it to work. <img src='http://www.logikdev.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>These instructions are basically a copy of the ones I found on <a href="http://www.gettaskdone.com/portfolio/consulting-portfolio/redmine-at-hostmonster-hosting-account/">GetTaskDone</a> but updated with additional steps (<span style="color: #ff0000;">in red</span>):</p>
<ol>
<li><strong>Create MySQL Database and Username</strong><br />
Login to CPanel and click on MySQL Database Wizard, it will prompt you for database name, then ask you to make a user, make sure you GRANT ALL privileges. Remember these database details, we will use them later.</li>
<li><strong>Create a Sub-Domain</strong><br />
For the purposes of this tutorial, name it redmine, point this sub domain to ~/public_html/redmine.<br />
Do NOT copy any files into this directory, we will be deleting it later.</li>
<li><strong>Make sure you have the right version of Rails installed</strong><br />
In case it is different from what you need you can install a specific Rails version on your machine by running:</p>
<pre class="brush: bash; light: true; title: ; notranslate">
%prompt&gt; gem install rails -v=2.3.5
</pre>
</li>
<li><strong>Create RoR directory</strong><br />
It is not recommended that you put your RoR apps within the ~/public_html directory, as users would be able to see the rb files. So we are going to create a rails directory.</p>
<pre class="brush: bash; light: true; title: ; notranslate">
%prompt&gt; cd ~
%prompt&gt; mkdir rails
</pre>
</li>
<li><strong>Create Rails App</strong><br />
You create a rails app on HostMonster just like you would on your system, by using the rails command. We are creating the rails project inside of the rails directory.</p>
<pre class="brush: bash; light: true; title: ; notranslate">
%prompt&gt; cd rails
%prompt&gt; rails -D redmine
</pre>
<p>We need -D to let rails know that we want custom dispatch.rb, dispatch.cgi and dispatch.fcgi files for later steps.</li>
<li><strong>Create a Sym-Link for Sub-Domain</strong><br />
Since the HostMonster interface won’t let you select a directory outside of public_html, we are going to create a symbolic link from the ~/public_html/redmine folder to ~/rails/redmine. To do this we will be deleting the ~/public_html/redmine directory. The symbolic link will recreate it.</p>
<pre class="brush: bash; light: true; title: ; notranslate">
%prompt&gt; cd ~/public_html
%prompt&gt; rm -R redmine
%prompt&gt; ln -s ~/rails/redmine/public redmine
</pre>
<p>Please note the space between ~/rails/redmine/public and redmine This command says create a new folder named redmine that points to ~/rails/redmine/public</li>
<li><strong>Do a Smoke-Test</strong><br />
Goto subdomain.yourdomain.com, you should see the default rails welcome page. This is fine, this is what you should see right now.</li>
<li><strong>Prepare Redmine</strong><br />
Download the latest final release of Redmine (it’s 1.1.3 now). Extract this to your desktop, you should now have a folder name redmine on your desktop. Login to your CPanel and goto File Manager. You’ll want to navigate to ~/rails/redmine/public, you’ll want to download the following files and put them in your local copy of redmine. Which should be ~/Desktop/redmine/public. Download dispatch.rb, dispatch.cgi and dispatch.fcgi.<br />
Now edit your database.yml file with the database, username and password you created in step one. You only have to change those three values for production and development configurations. To do so copy config/database.yml.example into config/database.yml and edit the latter. Comment out all the rest lines.<br />
Now inside of your local redmine folder select all the files and folders and right click and select ‘Compress all the items…’. What we are doing is uploading this archive, I seem to have problems every time I try to upload redmine file by file.</li>
<li><strong>Upload Redmine</strong><br />
If you don’t have File Manager open still then login to CPanel and open it again. Navigate to your ~/rails/redmine folder and click the check boxes on all items and click delete. Now, upload your archive. Once it’s done uploading click on the archive in File Manager and hit extract.</li>
<li><strong>Finish install</strong><br />
Now ssh into your server, you&#8217;re going to want to chmod 755 your ~/rails/redmine/public folder.</p>
<pre class="brush: bash; light: true; title: ; notranslate">
%prompt&gt; cd ~/rails/redmine
%prompt&gt; chmod 755 public
</pre>
<p>Next, you must create a custom .htaccess file for Apache to handle this directory properly. First remove any .htaccess file that may already be in the ~/rails/redmine/public directory.</p>
<pre class="brush: bash; light: true; title: ; notranslate">
%prompt&gt; cd public
%prompt&gt; rm .htaccess
</pre>
<p>Download file from here: http://www.gettaskdone.com/redmine-htaccess/htaccess.txt into ~/rails/redmine/public directory and save it as .htaccess.<br />
Best way to do this is by typing following set of commands:</p>
<pre class="brush: bash; light: true; title: ; notranslate">
%prompt&gt; cd ~/rails/redmine/public
%prompt&gt; wget http://www.gettaskdone.com/redmine-htaccess/htaccess.txt
%prompt&gt; mv htaccess.txt .htaccess
</pre>
</li>
<li style="color: #ff0000;"><strong>Edit Rakefile</strong><br />
RubyGems 1.6.x is incompatible with the bundled rails 2.3.5. It&#8217;s documented in the RubyGems release notes that &#8220;RubyGems no longer requires &#8216;thread&#8217;. Rails < 3 will need to add <code>require &#8216;thread&#8217;</code> to their applications."<br />
So we need to add <code>require 'thread'</code> to the Rakefile after the line <code>require 'rake/rdoctask'</code>.
</li>
<li><strong>Generate a session store secret</strong><br />
This is required on the trunk version of Redmine at r2493 or above and the released 0.8.7 version or above.<br />
Redmine stores session data in cookies by default, which requires a secret to be generated. This can be done by running:</p>
<pre class="brush: bash; light: true; title: ; notranslate">
%prompt&gt; cd ~/rails/redmine
%prompt&gt; RAILS_ENV=production rake config/initializers/session_store.rb
</pre>
</li>
<li style="color: #ff0000;"><strong>Edit config/enviroment.rb</strong><br />
Insert the following code between the bootstrap and the initialize sections in the config/enviroment.rb file:</p>
<pre class="brush: ruby; light: true; title: ; notranslate">
if Gem::VERSION &gt;= &quot;1.3.6&quot;
    module Rails
        class GemDependency
            def requirement
                r = super
                (r == Gem::Requirement.default) ? nil : r
            end
        end
    end
end
</pre>
</li>
<li><strong>Setup Database</strong><br />
We have to give redmine its database structure and default values.</p>
<pre class="brush: bash; light: true; title: ; notranslate">
%prompt&gt; cd ~/rails/redmine
%prompt&gt; RAILS_ENV=production rake db:migrate
</pre>
</li>
<li><strong>Insert default configuration data in database</strong><br />
Run the following command:</p>
<pre class="brush: bash; light: true; title: ; notranslate">
%prompt&gt; RAILS_ENV=production rake redmine:load_default_data
</pre>
<p>This step is optional but highly recommended, as you can define your own configuration from scratch. It will load default roles, trackers, statuses, workflows and enumerations.</li>
<li style="color: #ff0000;"><strong>Rename the 'vendor/rails' folder</strong><br />
Run the following command:</p>
<pre class="brush: bash; light: true; title: ; notranslate">
%prompt&gt; mv vendor/rails vendor/rails.old
</pre>
<p>The vendor directory generally takes precedence over the other locations where Rails looks for libraries, and if it contains different versions of gems or other items, it can cause conflicts.
</li>
</ol>
<p><br/>For your information, these are the links I used to write this article:</p>
<ul>
<li><a href="http://www.gettaskdone.com/portfolio/consulting-portfolio/redmine-at-hostmonster-hosting-account/">http://www.gettaskdone.com/portfolio/consulting-portfolio/redmine-at-hostmonster-hosting-account/</a></li>
<li><a href="http://www.redmine.org/boards/1/topics/22314">http://www.redmine.org/boards/1/topics/22314</a></li>
<li><a href="http://www.redmine.org/issues/7516">http://www.redmine.org/issues/7516</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.logikdev.com/2011/05/09/redmine-on-hostmonster/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Permissions ignored with Samba</title>
		<link>http://www.logikdev.com/2011/01/17/permissions-ignored-with-samba/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=permissions-ignored-with-samba</link>
		<comments>http://www.logikdev.com/2011/01/17/permissions-ignored-with-samba/#comments</comments>
		<pubDate>Mon, 17 Jan 2011 22:27:09 +0000</pubDate>
		<dc:creator>smoreau</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[D-Link]]></category>
		<category><![CDATA[DNS-313]]></category>
		<category><![CDATA[Mac OS X]]></category>
		<category><![CDATA[permissions]]></category>
		<category><![CDATA[Samba]]></category>
		<category><![CDATA[unix extensions]]></category>

		<guid isPermaLink="false">http://www.logikdev.com/?p=998</guid>
		<description><![CDATA[After the issue regarding the ntpd process, I encountered another problem with my D-Link DNS-313. This time it was about permissions problem using Samba. Because I have multiple user accounts sharing the same data, I added the following lines into the Samba configuration file (smb.conf): With these properties, a user will have the permission to [...]]]></description>
			<content:encoded><![CDATA[<p>After the issue regarding the <a href="http://www.logikdev.com/2011/01/10/ntpd-process-on-dlink-dns313/">ntpd process</a>, I encountered another problem with my <a href="http://dlink.co.uk/cs/Satellite?c=Product_C&amp;childpagename=DLinkEurope-GB%2FDLProductCarouselMultiple&amp;cid=1197319418492&amp;p=1197318962342&amp;packedargs=ParentPageID%3D1197318962321%26TopLevelPageProduct%3DConsumer%26locale%3D1195806691854%26packedargs%3DProductParentID%253D1195808623796&amp;pagename=DLinkEurope-GB%2FDLWrapper"><strong>D-Link DNS-313</strong></a>. This time it was about permissions problem using <a href="http://en.wikipedia.org/wiki/Samba_(software)"><strong>Samba</strong></a>.</p>
<p>Because I have multiple user accounts sharing the same data, I added the following lines into the Samba configuration file (<code>smb.conf</code>):</p>
<pre class="brush: bash; light: true; title: ; notranslate">
create mask = 0774
directory mask  = 0775
force create mode = 0774
force directory mode = 0775
</pre>
<p>With these properties, a user will have the permission to read any files created by another user and will also be able to edit them if both users are part of the same group.</p>
<p>However, it appeared that these properties had been ignored by Samba! <img src='http://www.logikdev.com/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' />  Please note that the client was a Mac OS X 10.6.6 (Snow Leopard) and the Samba version on the NAS was 3.0.25a.</p>
<p>After some googling on the web, I found the following explanation on the <a href="http://forums.contribs.org/index.php?topic=40599.0">contribs.org forum</a>:</p>
<blockquote><p>
Samba 3.0.2x has the &#8216;unix extensions&#8217; option set to &#8216;on&#8217; by default. This allows Unix users who write to the Samba shares to set their own permissions bits. Mac OS X up until now has never attempted to do this, but from Leopard, any directory that gets created on a Samba share, get chmod&#8217;ed through this Samba extension.</p></blockquote>
<p>Alright, this is clear enough! This means that we have to set the &#8216;unix extensions&#8217; option to &#8216;no&#8217; in our Samba configuration file:</p>
<pre class="brush: bash; light: true; title: ; notranslate">
unix extensions = no
</pre>
<p>The problem should be gone after restarting Samba. <img src='http://www.logikdev.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.logikdev.com/2011/01/17/permissions-ignored-with-samba/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>ntpd process on D-Link DNS-313</title>
		<link>http://www.logikdev.com/2011/01/10/ntpd-process-on-dlink-dns313/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=ntpd-process-on-dlink-dns313</link>
		<comments>http://www.logikdev.com/2011/01/10/ntpd-process-on-dlink-dns313/#comments</comments>
		<pubDate>Mon, 10 Jan 2011 19:50:51 +0000</pubDate>
		<dc:creator>smoreau</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[D-Link]]></category>
		<category><![CDATA[DNS-313]]></category>
		<category><![CDATA[DNS-323]]></category>
		<category><![CDATA[fun_plug]]></category>
		<category><![CDATA[NAS]]></category>
		<category><![CDATA[NTP]]></category>
		<category><![CDATA[ntpd]]></category>
		<category><![CDATA[shell]]></category>

		<guid isPermaLink="false">http://www.logikdev.com/?p=992</guid>
		<description><![CDATA[During the configuration of a D-Link DNS-313 which is basically a NAS (Network-Attached Storage), I got a serious but easy-to-fix problem. In order to get access to the box by command line, I installed the Fonz fun_plug. I then wanted to automatically synchronise the internal time with some NTP Pool Time Servers. But, for some [...]]]></description>
			<content:encoded><![CDATA[<p>During the configuration of a <strong><a href="http://dlink.co.uk/cs/Satellite?c=Product_C&amp;childpagename=DLinkEurope-GB%2FDLProductCarouselMultiple&amp;cid=1197319418492&amp;p=1197318962342&amp;packedargs=ParentPageID%3D1197318962321%26TopLevelPageProduct%3DConsumer%26locale%3D1195806691854%26packedargs%3DProductParentID%253D1195808623796&amp;pagename=DLinkEurope-GB%2FDLWrapper">D-Link DNS-313</a></strong> which is basically a NAS (<a href="http://en.wikipedia.org/wiki/Network-attached_storage">Network-Attached Storage</a>), I got a serious but easy-to-fix problem. <img src='http://www.logikdev.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>In order to get access to the box by command line, I installed the <a href="http://www.inreto.de/dns323/fun-plug/0.5/">Fonz fun_plug</a>. I then wanted to automatically synchronise the internal time with some <a href="http://support.ntp.org/bin/view/Servers/NTPPoolServers">NTP Pool Time Servers</a>. But, for some reason, the version of the <code>ntpd</code> process provided with fun_plug is completely freezing the NAS. I wasn&#8217;t able to find the root cause of it, trust me, I tried everything I could think of!<br />
Please also note that the same process is working perfectly fine on his brother, the <strong><a href="http://dlink.co.uk/cs/Satellite?c=Product_C&amp;childpagename=DLinkEurope-GB%2FDLProductCarouselMultiple&amp;cid=1197319419183&amp;p=1197318962342&amp;packedargs=ParentPageID%3D1197318962321%26TopLevelPageProduct%3DConsumer%26locale%3D1195806691854%26packedargs%3DProductParentID%253D1195808623796&amp;pagename=DLinkEurope-GB%2FDLWrapper">D-Link DNS-323</a></strong>. As I said, I can&#8217;t explain why&#8230; <img src='http://www.logikdev.com/wp-includes/images/smilies/icon_rolleyes.gif' alt=':roll:' class='wp-smiley' /> </p>
<p>But there is a good news! The <code>ntpd</code> process is actually part of the D-Link DNS-313 firmware. And it is working fine! <img src='http://www.logikdev.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' />  After double-checking, this process is however NOT part of the D-Link DNS-323 firmware. Why is that? Maybe D-Link got complaints from DNS-313 users and fixed it? Who knows&#8230;</p>
<p>Anyway, in order to get the <code>ntpd</code> process to work on the D-Link DNS-313, you need to replace the content of your <code>ntpd</code> startup script (<code>/ffp/start/ntpd.sh</code>) by the one below:</p>
<pre class="brush: bash; title: ; notranslate">
#!/ffp/bin/sh

# PROVIDE: ntpd
# REQUIRE: SERVERS
# BEFORE: LOGIN

. /ffp/etc/ffp.subr

name=&quot;ntpd&quot;
command=&quot;/usr/sbin/ntpd&quot;
ntpd_flags=&quot;-f /ffp/etc/ntpd.conf&quot;
required_files=&quot;/ffp/etc/ntpd.conf&quot;
start_cmd=&quot;ntpd_start&quot;

ntpd_start()
{
    # remove rtc and daylight cron jobs
    crontab -l | grep -vw '/usr/sbin/daylight' | grep -vw '/usr/sbin/rtc' | crontab -

    proc_start $command
}

run_rc_command &quot;$1&quot;
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.logikdev.com/2011/01/10/ntpd-process-on-dlink-dns313/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Relation between TortoiseSVN and locale</title>
		<link>http://www.logikdev.com/2010/08/15/relation-between-tortoisesvn-and-locale/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=relation-between-tortoisesvn-and-locale</link>
		<comments>http://www.logikdev.com/2010/08/15/relation-between-tortoisesvn-and-locale/#comments</comments>
		<pubDate>Sun, 15 Aug 2010 20:23:25 +0000</pubDate>
		<dc:creator>smoreau</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[locale]]></category>
		<category><![CDATA[svn]]></category>
		<category><![CDATA[TortoiseSVN]]></category>

		<guid isPermaLink="false">http://www.logikdev.com/?p=684</guid>
		<description><![CDATA[The other day, I got stuck on a problem with TortoiseSVN for about half a day! Yes, I know, it is a pretty long time to get a simple subversion client working&#8230; The error I was continuously getting was: Nothing else! Nothing in the log files on both the client and the server. The funny [...]]]></description>
			<content:encoded><![CDATA[<p>The other day, I got stuck on a problem with TortoiseSVN for about half a day! <img src='http://www.logikdev.com/wp-includes/images/smilies/icon_eek.gif' alt='8-O' class='wp-smiley' /><br />
Yes, I know, it is a pretty long time to get a simple subversion client working&#8230;</p>
<p>The error I was continuously getting was:</p>
<pre class="brush: plain; light: true; title: ; notranslate">
Network connection closed unexpectedly
</pre>
<p>Nothing else! Nothing in the log files on both the client and the server. <img src='http://www.logikdev.com/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /><br />
The funny thing is that it was working perfectly fine using a command line client or even <a href="http://www.eclipse.org/subversive/">Eclipse Subversive</a>.</p>
<p>After a (too) long time of investigation, I noticed that I was getting the following warnings when I was running the following command line directly on the server:</p>
<pre class="brush: bash; light: true; title: ; notranslate">
$ svn list svn+ssh://smoreau@localhost/data/svn/
svn: warning: cannot set LC_CTYPE locale
svn: warning: environment variable LANG is en_US.UTF-8
svn: warning: please check that your locale name is correct
smoreau@localhost's password:
svnserve: warning: cannot set LC_CTYPE locale
svnserve: warning: environment variable LANG is en_US.UTF-8
svnserve: warning: please check that your locale name is correct
branches/
tags/
trunk/
</pre>
<p>Actually, any <code>svn</code> command was triggering the warning messages:</p>
<pre class="brush: bash; light: true; title: ; notranslate">
$ svn info
svn: warning: cannot set LC_CTYPE locale
svn: warning: environment variable LANG is en_US.UTF-8
svn: warning: please check that your locale name is correct
</pre>
<p><br/>Could it possibly be related with my TortoiseSVN problem?<br />
Because I didn&#8217;t have any other idea, I decided to give it a go. <img src='http://www.logikdev.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>It appears that these warning messages came from a configuration problem around the locale package on the server. Indeed, look what we get if we run the <code>locale</code> command:</p>
<pre class="brush: bash; light: true; title: ; notranslate">
$ locale -a
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_COLLATE to default locale: No such file or directory
C
POSIX
</pre>
<p>After some more investigation, it looks like this problem appeared when I upgraded the version of the locale package via <a href="http://en.wikipedia.org/wiki/Advanced_Packaging_Tool">APT</a>. <img src='http://www.logikdev.com/wp-includes/images/smilies/icon_confused.gif' alt=':-?' class='wp-smiley' /> </p>
<p>Once again, I asked my friend Google to help me out. It suggested me the following solutions:</p>
<ul>
<li>Run <code>locale-gen en_US.UTF-8</code> &#8211; <strong>Didn&#8217;t work</strong></li>
<li>Run <code>update-locale LANG=en_US.UTF-8</code> &#8211; <strong>Didn&#8217;t work</strong></li>
<li>Run <code>dpkg-reconfigure locales</code> &#8211; <strong>WORKED</strong> <img src='http://www.logikdev.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </li>
</ul>
<p><br/>In conclusion, I wasn&#8217;t able to use TortoiseSVN because of a configuration problem on the locale package after an upgrade&#8230; Does it make sense? <img src='http://www.logikdev.com/wp-includes/images/smilies/icon_rolleyes.gif' alt=':roll:' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.logikdev.com/2010/08/15/relation-between-tortoisesvn-and-locale/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

