<?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/"
	
	xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>World Gone WebDebian &#187; World Gone Web</title>
	<atom:link href="http://www.worldgoneweb.com/category/debian/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.worldgoneweb.com</link>
	<description></description>
	<lastBuildDate>Sun, 09 Oct 2011 20:57:29 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Change the default language and keyboard layout of a Debian machine</title>
		<link>http://www.worldgoneweb.com/2011/change-the-default-language-and-keyboard-layout-of-a-debian-machine/</link>
		<comments>http://www.worldgoneweb.com/2011/change-the-default-language-and-keyboard-layout-of-a-debian-machine/#comments</comments>
		<pubDate>Sun, 17 Apr 2011 08:54:37 +0000</pubDate>
		<dc:creator>shalfon</dc:creator>
				<category><![CDATA[Computing]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[Système]]></category>
		<category><![CDATA[keyboard]]></category>
		<category><![CDATA[lang]]></category>
		<category><![CDATA[language]]></category>
		<category><![CDATA[layout]]></category>
		<category><![CDATA[qwerty]]></category>

		<guid isPermaLink="false">http://www.worldgoneweb.com/?p=671</guid>
		<description><![CDATA[Recently, I was given a Virtual Machine development appliance to work with. The machine was running Debian which I like but it had been installed in French which I &#8230; dislike. First, I find Debian to be not so well translated and I&#8217;d rather use it in English. Second, I use qwerty keyboards so the [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.worldgoneweb.com/wp-content/uploads/2011/04/Screen-shot-2011-04-17-at-10.52.19-AM.png"><img class="size-full wp-image-672 alignleft" title="Screen shot 2011-04-17 at 10.52.19 AM" src="http://www.worldgoneweb.com/wp-content/uploads/2011/04/Screen-shot-2011-04-17-at-10.52.19-AM.png" alt="" width="306" height="116" /></a> Recently, I was given a Virtual Machine development appliance to work with. The machine was running Debian which I like but it had been installed in French which I &#8230; dislike. First, I find Debian to be not so well translated and I&#8217;d rather use it in English. Second, I use qwerty keyboards so the French keyboard layout didn&#8217;t suit me at all.</p>
<p>Anyway, just as a reminder, here are the commands to edit these settings :</p>
<p>Change the language with</p>
<div class="codecolorer-container bash dawn" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:678px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">dpkg-reconfigure locales</div></td></tr></tbody></table></div>
<p>Change the default keyboard layout</p>
<div class="codecolorer-container bash dawn" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:678px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br /></div></td><td><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">dpkg-reconfigure console-data<br />
dpkg-reconfigure console-setup</div></td></tr></tbody></table></div>
<p>That&#8217;s it, much more comfortable&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.worldgoneweb.com/2011/change-the-default-language-and-keyboard-layout-of-a-debian-machine/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:thumbnail url="http://www.worldgoneweb.com/wp-content/uploads/2011/04/Screen-shot-2011-04-17-at-10.52.19-AM-150x116.png" />
		<media:content url="http://www.worldgoneweb.com/wp-content/uploads/2011/04/Screen-shot-2011-04-17-at-10.52.19-AM.png" medium="image">
			<media:title type="html">Screen shot 2011-04-17 at 10.52.19 AM</media:title>
			<media:thumbnail url="http://www.worldgoneweb.com/wp-content/uploads/2011/04/Screen-shot-2011-04-17-at-10.52.19-AM-150x116.png" />
		</media:content>
	</item>
		<item>
		<title>Setting up Ruby Enterprise, passenger and installing Teambox (RubyOnRails) on Debian</title>
		<link>http://www.worldgoneweb.com/2011/setting-up-ruby-enterprise-passenger-and-installing-teambox-rubyonrails-on-debian/</link>
		<comments>http://www.worldgoneweb.com/2011/setting-up-ruby-enterprise-passenger-and-installing-teambox-rubyonrails-on-debian/#comments</comments>
		<pubDate>Sun, 27 Feb 2011 09:30:26 +0000</pubDate>
		<dc:creator>shalfon</dc:creator>
				<category><![CDATA[Computing]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[bundle]]></category>
		<category><![CDATA[gem]]></category>
		<category><![CDATA[passenger]]></category>
		<category><![CDATA[RoR]]></category>
		<category><![CDATA[ruby]]></category>
		<category><![CDATA[RubyEnterprise]]></category>
		<category><![CDATA[Teambox]]></category>

		<guid isPermaLink="false">http://www.worldgoneweb.com/?p=583</guid>
		<description><![CDATA[Teambox is an open sourced project collaboration software with simple task managements, file sharing and wiki collaborations for small teams. Teambox can be used in a hosted mode (Saas version with various plans depending on how many team members and projects you need to manage) on teambox.com or the code can be downloaded from GitHub [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: center;"><a href="https://github.com/teambox/teambox"></a><a href="http://www.worldgoneweb.com/wp-content/uploads/2011/02/Screen-shot-2011-02-27-at-10.09.28-AM.png"><img class="size-full wp-image-584 aligncenter" title="Teambox logo" src="http://www.worldgoneweb.com/wp-content/uploads/2011/02/Screen-shot-2011-02-27-at-10.09.28-AM.png" alt="" width="227" height="52" /></a></p>
<p><a href="https://github.com/teambox/teambox">Teambox</a> is an open sourced project collaboration software with simple task managements, file sharing and wiki collaborations for small teams. Teambox can be used in a hosted mode (Saas version with various plans depending on how many team members and projects you need to manage) on teambox.com or the code can be downloaded from GitHub and installed on one&#8217;s own server.</p>
<p>&nbsp;</p>
<p style="text-align: center;"><img class="aligncenter size-full wp-image-585" title="Teambox" src="http://www.worldgoneweb.com/wp-content/uploads/2011/02/Screen-shot-2011-02-27-at-10.09.35-AM.png" alt="" width="369" height="230" /></p>
<p>Here is the step by step installation of the latest version of Teambox on a server running Debian Lenny (upgrade to squeeze coming soon). My thanks to <a href="http://twitter.com/#!/fdevillamil">Frédéric de Villamil</a> for getting this going since he is more of a Ruby Expert than I am.</p>
<p>Installing the dependances :</p>
<div class="codecolorer-container bash dawn" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:678px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br />11<br />12<br />13<br />14<br /></div></td><td><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #c20cb9; font-weight: bold;">aptitude</span> <span style="color: #c20cb9; font-weight: bold;">install</span> build-essential<br />
<br />
<span style="color: #666666; font-style: italic;"># ruby developer packages</span><br />
<span style="color: #c20cb9; font-weight: bold;">aptitude</span> <span style="color: #c20cb9; font-weight: bold;">install</span> ruby1.8-dev ruby1.8 ri1.8 rdoc1.8 irb1.8<br />
<span style="color: #c20cb9; font-weight: bold;">aptitude</span> <span style="color: #c20cb9; font-weight: bold;">install</span> libreadline-ruby1.8 libruby1.8 libopenssl-ruby<br />
<br />
<span style="color: #666666; font-style: italic;"># nokogiri bundle requirements</span><br />
<span style="color: #c20cb9; font-weight: bold;">aptitude</span> <span style="color: #c20cb9; font-weight: bold;">install</span> libxslt-dev libxml2-dev<br />
<br />
<span style="color: #666666; font-style: italic;">#Git</span><br />
<span style="color: #c20cb9; font-weight: bold;">aptitude</span> <span style="color: #c20cb9; font-weight: bold;">install</span> git-all<br />
<br />
<span style="color: #666666; font-style: italic;"># Other teambox bundles requirements</span><br />
<span style="color: #c20cb9; font-weight: bold;">aptitude</span> <span style="color: #c20cb9; font-weight: bold;">install</span> zlib1g-dev libssl-dev  libreadline5-dev libxml2-dev libxslt-ruby libxslt-dev libiconv-ruby libreadline-ruby1.8 libruby1.8 &nbsp;libopenssl-ruby</div></td></tr></tbody></table></div>
<p>Downloading and installing Ruby Enterprise and Passenger:</p>
<div class="codecolorer-container bash dawn" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:678px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br />11<br />12<br />13<br />14<br />15<br />16<br />17<br /></div></td><td><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #000000; font-weight: bold;">/</span>tmp<br />
<span style="color: #c20cb9; font-weight: bold;">wget</span> http:<span style="color: #000000; font-weight: bold;">//</span>rubyforge.org<span style="color: #000000; font-weight: bold;">/</span>frs<span style="color: #000000; font-weight: bold;">/</span>download.php<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">71096</span><span style="color: #000000; font-weight: bold;">/</span>ruby-enterprise-1.8.7-<span style="color: #000000;">2010.02</span>.tar.gz<br />
<span style="color: #c20cb9; font-weight: bold;">tar</span> <span style="color: #660033;">-xvzf</span> ruby-enterprise-1.8.7-<span style="color: #000000;">2010.02</span>.tar.gz<br />
<span style="color: #7a0874; font-weight: bold;">cd</span> ruby-enterprise-1.8.7-<span style="color: #000000;">2010.02</span><span style="color: #000000; font-weight: bold;">/</span><br />
.<span style="color: #000000; font-weight: bold;">/</span>installer<br />
<span style="color: #666666; font-style: italic;">#answer /usr for the location instead of the default /opt in order to install ruby enterprise as the system's ruby.</span><br />
<span style="color: #666666; font-style: italic;">#press enter to complete the installation</span><br />
gem update <span style="color: #660033;">--system</span><br />
<br />
<span style="color: #666666; font-style: italic;"># Installating passenger</span><br />
gem <span style="color: #c20cb9; font-weight: bold;">install</span> passenger<br />
<span style="color: #c20cb9; font-weight: bold;">apt-get</span> <span style="color: #c20cb9; font-weight: bold;">install</span> libcurl4-openssl-dev  apache2-prefork-dev libapr1-dev libaprutil1-dev<br />
passenger-install-apache2-module<br />
<br />
<span style="color: #666666; font-style: italic;"># Setting up Ruby for the system</span><br />
<span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>bin<br />
<span style="color: #c20cb9; font-weight: bold;">ln</span> <span style="color: #660033;">-s</span> ruby  ruby1.8</div></td></tr></tbody></table></div>
<p>Configuring Apache :</p>
<div class="codecolorer-container bash dawn" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:678px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><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>apache2<span style="color: #000000; font-weight: bold;">/</span>apache2.conf</div></td></tr></tbody></table></div>
<p>Add the following line in the file :</p>
<div class="codecolorer-container text dawn" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:678px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"># Ruby passenger<br />
LoadModule passenger_module /usr/lib/ruby/gems/1.8/gems/passenger-3.0.2/ext/apache2/mod_passenger.so<br />
PassengerRoot /usr/lib/ruby/gems/1.8/gems/passenger-3.0.2<br />
PassengerRuby /usr/bin/ruby</div></td></tr></tbody></table></div>
<p>Setting up Teambox :</p>
<div class="codecolorer-container bash dawn" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:678px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br /></div></td><td><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>www<span style="color: #000000; font-weight: bold;">/</span><br />
<span style="color: #c20cb9; font-weight: bold;">git</span> clone https:<span style="color: #000000; font-weight: bold;">//</span>github.com<span style="color: #000000; font-weight: bold;">/</span>teambox<span style="color: #000000; font-weight: bold;">/</span>teambox.git<br />
<span style="color: #7a0874; font-weight: bold;">cd</span> teambox<br />
bundle <span style="color: #c20cb9; font-weight: bold;">install</span><br />
<span style="color: #666666; font-style: italic;"># this will take a while</span><br />
<span style="color: #666666; font-style: italic;"># if you get errors you are missing some dependancies I already had.</span></div></td></tr></tbody></table></div>
<p>Create an Apache Virtual Host for teambox inspired by the following :</p>
<div class="codecolorer-container bash dawn" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:678px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br />11<br />12<br />13<br />14<br /></div></td><td><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #000000; font-weight: bold;">&lt;</span>VirtualHost <span style="color: #000000; font-weight: bold;">*</span>:<span style="color: #000000;">80</span><span style="color: #000000; font-weight: bold;">&gt;</span><br />
Options +Indexes<br />
ServerAdmin myname<span style="color: #000000; font-weight: bold;">@</span>mydomain.com<br />
ServerName teambox.mydomain.com<br />
DocumentRoot <span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>www<span style="color: #000000; font-weight: bold;">/</span>teambox<span style="color: #000000; font-weight: bold;">/</span>public<br />
<span style="color: #000000; font-weight: bold;">&lt;</span>Directory <span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>www<span style="color: #000000; font-weight: bold;">/</span>teambox<span style="color: #000000; font-weight: bold;">/</span>public<span style="color: #000000; font-weight: bold;">/&gt;</span><br />
Options Indexes FollowSymLinks<br />
AllowOverride All<br />
Order allow,deny<br />
Allow from all<br />
Options <span style="color: #660033;">-MultiViews</span><br />
<span style="color: #000000; font-weight: bold;">&lt;/</span>Directory<span style="color: #000000; font-weight: bold;">&gt;</span><br />
RailsEnv production<br />
<span style="color: #000000; font-weight: bold;">&lt;/</span>VirtualHost<span style="color: #000000; font-weight: bold;">&gt;</span></div></td></tr></tbody></table></div>
<p>When all these steps are completed, the rest of the process is what&#8217;s covered in <a title="Teambox documentation install Ubuntu" href="https://github.com/teambox/teambox/wiki/Installing-on-Ubuntu">Teambox&#8217; own documentation</a>.</p>
<p>All you have left to do is configure your teambox and create your database :</p>
<ul>
<li>copy the database configuration file</li>
</ul>
<div class="codecolorer-container bash dawn" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:678px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #c20cb9; font-weight: bold;">cp</span> config<span style="color: #000000; font-weight: bold;">/</span>database.example.yml config<span style="color: #000000; font-weight: bold;">/</span>database.yml</div></td></tr></tbody></table></div>
<ul>
<li>edit your database configuration in teambox/config/database.yml</li>
<li>edit teambox main configuration file in teambox/config/teambox.yml<br />
Personally, I changed the domain and the email settings only</li>
</ul>
<div class="codecolorer-container bash dawn" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:678px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br /></div></td><td><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">host: smtp.gmail.com<br />
username: me<span style="color: #000000; font-weight: bold;">@</span>gmail.com<br />
password: my_password<br />
auth: plain<br />
port: <span style="color: #000000;">587</span><br />
enable_starttls_auto: <span style="color: #c20cb9; font-weight: bold;">true</span></div></td></tr></tbody></table></div>
<ul>
<li>create your database</li>
</ul>
<div class="codecolorer-container text dawn" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:678px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">bundle exec rake db:create db:schema:load RAILS_ENV=production</div></td></tr></tbody></table></div>
<p>Finally, test your app to see if it&#8217;s working by going to teambox.mydomain.com</p>
<p style="text-align: center;"><img class="aligncenter size-full wp-image-586" title="Teambox setup" src="http://www.worldgoneweb.com/wp-content/uploads/2011/02/Screen-shot-2011-02-27-at-10.15.57-AM.png" alt="" width="421" height="199" /></p>
<p>That was it for me. Thanks again to Fred for helping pointing me to Ruby Enterprise.</p>
<p>I hope this helps someone else out there&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.worldgoneweb.com/2011/setting-up-ruby-enterprise-passenger-and-installing-teambox-rubyonrails-on-debian/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
	
		<media:thumbnail url="http://www.worldgoneweb.com/wp-content/uploads/2011/02/Screen-shot-2011-02-27-at-10.09.28-AM-150x52.png" />
		<media:content url="http://www.worldgoneweb.com/wp-content/uploads/2011/02/Screen-shot-2011-02-27-at-10.09.28-AM.png" medium="image">
			<media:title type="html">Teambox logo</media:title>
			<media:thumbnail url="http://www.worldgoneweb.com/wp-content/uploads/2011/02/Screen-shot-2011-02-27-at-10.09.28-AM-150x52.png" />
		</media:content>
		<media:content url="http://www.worldgoneweb.com/wp-content/uploads/2011/02/Screen-shot-2011-02-27-at-10.09.35-AM.png" medium="image">
			<media:title type="html">Teambox</media:title>
			<media:thumbnail url="http://www.worldgoneweb.com/wp-content/uploads/2011/02/Screen-shot-2011-02-27-at-10.09.35-AM-150x150.png" />
		</media:content>
		<media:content url="http://www.worldgoneweb.com/wp-content/uploads/2011/02/Screen-shot-2011-02-27-at-10.15.57-AM.png" medium="image">
			<media:title type="html">Teambox setup</media:title>
			<media:thumbnail url="http://www.worldgoneweb.com/wp-content/uploads/2011/02/Screen-shot-2011-02-27-at-10.15.57-AM-150x150.png" />
		</media:content>
	</item>
		<item>
		<title>Installing Mint on Virtual Box (from an .iso)</title>
		<link>http://www.worldgoneweb.com/2011/installing-mint-on-virtual-box-from-an-iso/</link>
		<comments>http://www.worldgoneweb.com/2011/installing-mint-on-virtual-box-from-an-iso/#comments</comments>
		<pubDate>Mon, 24 Jan 2011 20:51:53 +0000</pubDate>
		<dc:creator>shalfon</dc:creator>
				<category><![CDATA[Computing]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[Mac OS X]]></category>
		<category><![CDATA[Système]]></category>
		<category><![CDATA[distrib]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[live cd]]></category>
		<category><![CDATA[mint]]></category>
		<category><![CDATA[mint debian]]></category>
		<category><![CDATA[virtual box]]></category>
		<category><![CDATA[virtual machine]]></category>

		<guid isPermaLink="false">http://www.worldgoneweb.com/?p=503</guid>
		<description><![CDATA[From time to time, I feel like testing a Linux distrib. again. I always used Debian on my servers so, for me, on a desktop, the easy solution was Ubuntu. Then I heard about Mint debian. I just downloaded the Mint debian 10.iso file and ran it on my Imac with VirtualBox in a matter [...]]]></description>
			<content:encoded><![CDATA[<p>From time to time, I feel like testing a Linux distrib. again. I always used Debian on my servers so, for me, on a desktop, the easy solution was Ubuntu. Then I heard about Mint debian.<br />
I just downloaded the Mint debian 10.iso file and ran it on my Imac with VirtualBox in a matter of minutes&#8230; here&#8217;s how :</p>
<p>If you don&#8217;t already have it, download and install Virtual Box. Launch it</p>
<p><a href="http://www.worldgoneweb.com/wp-content/uploads/2011/01/Screen-shot-2011-01-24-at-9.45.28-PM.png"><img class="aligncenter size-full wp-image-516" src="http://www.worldgoneweb.com/wp-content/uploads/2011/01/Screen-shot-2011-01-24-at-9.45.28-PM.png" alt="" width="282" height="86" /></a></p>
<p>You start by creating a New Virtual Machine by clicking New. That will launch the wizard shown below:</p>
<p style="text-align: center;"><a href="http://www.worldgoneweb.com/wp-content/uploads/2011/01/Screen-shot-2011-01-23-at-4.27.58-PM.png"><img class="aligncenter size-full wp-image-504" src="http://www.worldgoneweb.com/wp-content/uploads/2011/01/Screen-shot-2011-01-23-at-4.27.58-PM.png" alt="" width="398" height="287" /></a></p>
<p>Click Next</p>
<p style="text-align: center;"><a href="http://www.worldgoneweb.com/wp-content/uploads/2011/01/Screen-shot-2011-01-23-at-4.28.30-PM.png"><img class="aligncenter size-full wp-image-505" src="http://www.worldgoneweb.com/wp-content/uploads/2011/01/Screen-shot-2011-01-23-at-4.28.30-PM.png" alt="" width="437" height="315" /></a></p>
<p>Mint isn&#8217;t an option so I just picked Linux 2.6 here</p>
<p style="text-align: center;"><a href="http://www.worldgoneweb.com/wp-content/uploads/2011/01/Screen-shot-2011-01-23-at-4.28.43-PM.png"><img class="aligncenter size-full wp-image-506" title="Screen shot 2011-01-23 at 4.28.43 PM" src="http://www.worldgoneweb.com/wp-content/uploads/2011/01/Screen-shot-2011-01-23-at-4.28.43-PM.png" alt="" width="437" height="315" /></a></p>
<p>I set the memory to 512Mb but that can be changed later in the settings</p>
<p style="text-align: center;"><a href="http://www.worldgoneweb.com/wp-content/uploads/2011/01/Screen-shot-2011-01-23-at-4.28.54-PM.png"><img class="aligncenter size-full wp-image-507" src="http://www.worldgoneweb.com/wp-content/uploads/2011/01/Screen-shot-2011-01-23-at-4.28.54-PM.png" alt="" width="437" height="315" /></a></p>
<p>Select the creation of a new hard disk</p>
<p style="text-align: center;"><a href="http://www.worldgoneweb.com/wp-content/uploads/2011/01/Screen-shot-2011-01-23-at-4.29.16-PM.png"><img class="size-full wp-image-508 aligncenter" src="http://www.worldgoneweb.com/wp-content/uploads/2011/01/Screen-shot-2011-01-23-at-4.29.16-PM.png" alt="" width="379" height="305" /></a></p>
<p>That will prompt a new wizard for the hard disk creation. I named it, picked a location and set the size to 8Gb. That&#8217;s it, the virtual machine is created.</p>
<p style="text-align: left;">Now, back to the main menu (the first picture, way on top), this time, click on Settings.The trick to boot from the .iso file is to go to Storage, select the CDRom and mount the iso file&#8230;</p>
<p style="text-align: center;"><a href="http://www.worldgoneweb.com/wp-content/uploads/2011/01/Screen-shot-2011-01-23-at-4.34.57-PM.png"><img class="aligncenter size-full wp-image-509" src="http://www.worldgoneweb.com/wp-content/uploads/2011/01/Screen-shot-2011-01-23-at-4.34.57-PM.png" alt="" width="400" height="337" /></a></p>
<p>Now, back to the main menu. Click Start to launch the virtual machine. It will boot from the iso file and launch Mint as a live distrib. From the desktop, you can click no the install Mint shortcut and follow the usual Linux installation steps (it&#8217;s pretty straightforward with Mint). Turn off the machine when asked to. Go back to the settings and unmount the iso file. Restart the machine. Welcome to Mint!</p>
<p style="text-align: center;"><a href="http://www.worldgoneweb.com/wp-content/uploads/2011/01/Screen-shot-2011-01-23-at-4.57.53-PM.png"><img class="aligncenter size-full wp-image-512" title="Screen shot 2011-01-23 at 4.57.53 PM" src="http://www.worldgoneweb.com/wp-content/uploads/2011/01/Screen-shot-2011-01-23-at-4.57.53-PM.png" alt="" width="422" height="347" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.worldgoneweb.com/2011/installing-mint-on-virtual-box-from-an-iso/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:thumbnail url="http://www.worldgoneweb.com/wp-content/uploads/2011/01/Screen-shot-2011-01-24-at-9.45.28-PM-150x86.png" />
		<media:content url="http://www.worldgoneweb.com/wp-content/uploads/2011/01/Screen-shot-2011-01-24-at-9.45.28-PM.png" medium="image">
			<media:title type="html">Screen-shot-2011-01-24-at-9.45.28-PM</media:title>
			<media:thumbnail url="http://www.worldgoneweb.com/wp-content/uploads/2011/01/Screen-shot-2011-01-24-at-9.45.28-PM-150x86.png" />
		</media:content>
		<media:content url="http://www.worldgoneweb.com/wp-content/uploads/2011/01/Screen-shot-2011-01-23-at-4.27.58-PM.png" medium="image">
			<media:title type="html">Screen-shot-2011-01-23-at-4.27.58-PM</media:title>
			<media:thumbnail url="http://www.worldgoneweb.com/wp-content/uploads/2011/01/Screen-shot-2011-01-23-at-4.27.58-PM-150x150.png" />
		</media:content>
		<media:content url="http://www.worldgoneweb.com/wp-content/uploads/2011/01/Screen-shot-2011-01-23-at-4.28.30-PM.png" medium="image">
			<media:title type="html">Screen-shot-2011-01-23-at-4.28.30-PM</media:title>
			<media:thumbnail url="http://www.worldgoneweb.com/wp-content/uploads/2011/01/Screen-shot-2011-01-23-at-4.28.30-PM-150x150.png" />
		</media:content>
		<media:content url="http://www.worldgoneweb.com/wp-content/uploads/2011/01/Screen-shot-2011-01-23-at-4.28.43-PM.png" medium="image">
			<media:title type="html">Screen shot 2011-01-23 at 4.28.43 PM</media:title>
			<media:thumbnail url="http://www.worldgoneweb.com/wp-content/uploads/2011/01/Screen-shot-2011-01-23-at-4.28.43-PM-150x150.png" />
		</media:content>
		<media:content url="http://www.worldgoneweb.com/wp-content/uploads/2011/01/Screen-shot-2011-01-23-at-4.28.54-PM.png" medium="image">
			<media:title type="html">Screen-shot-2011-01-23-at-4.28.54-PM</media:title>
			<media:thumbnail url="http://www.worldgoneweb.com/wp-content/uploads/2011/01/Screen-shot-2011-01-23-at-4.28.54-PM-150x150.png" />
		</media:content>
		<media:content url="http://www.worldgoneweb.com/wp-content/uploads/2011/01/Screen-shot-2011-01-23-at-4.29.16-PM.png" medium="image">
			<media:title type="html">Screen-shot-2011-01-23-at-4.29.16-PM</media:title>
			<media:thumbnail url="http://www.worldgoneweb.com/wp-content/uploads/2011/01/Screen-shot-2011-01-23-at-4.29.16-PM-150x150.png" />
		</media:content>
		<media:content url="http://www.worldgoneweb.com/wp-content/uploads/2011/01/Screen-shot-2011-01-23-at-4.34.57-PM.png" medium="image">
			<media:title type="html">Screen-shot-2011-01-23-at-4.34.57-PM</media:title>
			<media:thumbnail url="http://www.worldgoneweb.com/wp-content/uploads/2011/01/Screen-shot-2011-01-23-at-4.34.57-PM-150x150.png" />
		</media:content>
		<media:content url="http://www.worldgoneweb.com/wp-content/uploads/2011/01/Screen-shot-2011-01-23-at-4.57.53-PM.png" medium="image">
			<media:title type="html">Screen shot 2011-01-23 at 4.57.53 PM</media:title>
			<media:thumbnail url="http://www.worldgoneweb.com/wp-content/uploads/2011/01/Screen-shot-2011-01-23-at-4.57.53-PM-150x150.png" />
		</media:content>
	</item>
		<item>
		<title>FTP upload in a script</title>
		<link>http://www.worldgoneweb.com/2011/ftp-upload-in-a-script/</link>
		<comments>http://www.worldgoneweb.com/2011/ftp-upload-in-a-script/#comments</comments>
		<pubDate>Sun, 23 Jan 2011 15:01:11 +0000</pubDate>
		<dc:creator>shalfon</dc:creator>
				<category><![CDATA[Computing]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[Système]]></category>
		<category><![CDATA[Terminal]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[console]]></category>
		<category><![CDATA[ftp]]></category>
		<category><![CDATA[mget]]></category>
		<category><![CDATA[terminal]]></category>

		<guid isPermaLink="false">http://www.worldgoneweb.com/?p=494</guid>
		<description><![CDATA[The FTP protocol is simple to use. In a console, type ftp &#60;host&#62; to connect to your host. Enter your login and password when prompted and use get to download and put to upload a file. But what about doing that in a bash script ? Here is a working example of an FTP upload [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignleft size-thumbnail wp-image-495" title="ftp" src="http://www.worldgoneweb.com/wp-content/uploads/2011/01/ftp-150x150.png" alt="" width="150" height="150" />The FTP protocol is simple to use. In a console, type ftp &lt;host&gt; to connect to your host. Enter your login and password when prompted and use get to download and put to upload a file.<br />
But what about doing that in a bash script ?</p>
<p>Here is a working example of an FTP upload within a bash script:</p>
<div class="codecolorer-container bash dawn" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:678px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br /></div></td><td><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #c20cb9; font-weight: bold;">ftp</span> <span style="color: #660033;">-v</span> <span style="color: #660033;">-n</span> <span style="color: #007800;">$HOST_FTP</span> <span style="color: #cc0000; font-style: italic;">&lt;&lt;SCRIPT<br />
quote USER $LOGIN_FTP<br />
quote PASS $PASS_FTP<br />
put $FILE_NAME<br />
bye<br />
SCRIPT</span></div></td></tr></tbody></table></div>
<p><em><strong>Extra tip:</strong></em> if you need to download more than one file, use mget instead of get. The same works for mput instead of put.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.worldgoneweb.com/2011/ftp-upload-in-a-script/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:thumbnail url="http://www.worldgoneweb.com/wp-content/uploads/2011/01/ftp-150x150.png" />
		<media:content url="http://www.worldgoneweb.com/wp-content/uploads/2011/01/ftp.png" medium="image">
			<media:title type="html">ftp</media:title>
			<media:thumbnail url="http://www.worldgoneweb.com/wp-content/uploads/2011/01/ftp-150x150.png" />
		</media:content>
	</item>
		<item>
		<title>Sending emails from a Dedibox server</title>
		<link>http://www.worldgoneweb.com/2011/sending-emails-from-a-dedibox-server/</link>
		<comments>http://www.worldgoneweb.com/2011/sending-emails-from-a-dedibox-server/#comments</comments>
		<pubDate>Thu, 13 Jan 2011 20:00:01 +0000</pubDate>
		<dc:creator>shalfon</dc:creator>
				<category><![CDATA[Computing]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[Système]]></category>
		<category><![CDATA[dedibox]]></category>
		<category><![CDATA[dedicated]]></category>
		<category><![CDATA[emails]]></category>
		<category><![CDATA[exim]]></category>
		<category><![CDATA[MTA]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[sendmail]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.worldgoneweb.com/?p=429</guid>
		<description><![CDATA[If you install Debian on a Dedibox dedicated server, by default, you can not send emails from a PHP script (or by any call to sendmail). In order to enable that, you need to reconfigure exim (which is the MTA installed by default). Run dpkg-reconfigure exim4-config. Select the Internet mode and answer the few following [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.worldgoneweb.com/wp-content/uploads/2011/01/email.jpg"><img class="alignleft size-full wp-image-430" title="email" src="http://www.worldgoneweb.com/wp-content/uploads/2011/01/email.jpg" alt="" width="123" height="142" /></a><br />
If you install Debian on a Dedibox dedicated server, by default, you can not send emails from a PHP script (or by any call to sendmail). </p>
<p>In order to enable that, you need to reconfigure exim (which is the MTA installed by default). Run dpkg-reconfigure exim4-config. Select the Internet mode and answer the few following questions about your domains (watch out for open relay issues). Exim will then restart.</p>
<p>You can test your configuration by running sendmail your-address. Type in the body of your message then type CTRL + D on the next blank line to send your message. Hopefully, it made it to your inbox.</p>
<p>To make sure everything is okay and your server has not become an open relay, have <a href="https://console.online.net/serveurs/securite/?page=smtp_relay">Online.Net test your mail server</a>.</p>
<p>Easy enough.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.worldgoneweb.com/2011/sending-emails-from-a-dedibox-server/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:thumbnail url="http://www.worldgoneweb.com/wp-content/uploads/2011/01/email-150x150.jpg" />
		<media:content url="http://www.worldgoneweb.com/wp-content/uploads/2011/01/email.jpg" medium="image">
			<media:title type="html">email</media:title>
			<media:thumbnail url="http://www.worldgoneweb.com/wp-content/uploads/2011/01/email-150x150.jpg" />
		</media:content>
	</item>
		<item>
		<title>Backing up a Dedibox server (or most any Linux)</title>
		<link>http://www.worldgoneweb.com/2011/backing-up-a-dedibox-server-or-most-any-linux/</link>
		<comments>http://www.worldgoneweb.com/2011/backing-up-a-dedibox-server-or-most-any-linux/#comments</comments>
		<pubDate>Sun, 09 Jan 2011 15:01:05 +0000</pubDate>
		<dc:creator>shalfon</dc:creator>
				<category><![CDATA[Computing]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[Système]]></category>
		<category><![CDATA[archives]]></category>
		<category><![CDATA[backup]]></category>
		<category><![CDATA[backup manager]]></category>
		<category><![CDATA[cron]]></category>
		<category><![CDATA[full]]></category>
		<category><![CDATA[incremental]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[task]]></category>

		<guid isPermaLink="false">http://www.worldgoneweb.com/?p=419</guid>
		<description><![CDATA[I finally decided to use a single dedicated server instead of several distinct web hosting services for the different blogs I run. I picked a Dedibox server and added a backup option to have access to an extra storage space on another computer. There are two things I want to backup : my website files [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignleft size-medium wp-image-423" title="zip_icon" src="http://www.worldgoneweb.com/wp-content/uploads/2011/01/zip_icon-208x300.png" alt="" width="208" height="300" /><br />
I finally decided to use a single dedicated server instead of several distinct web hosting services for the different blogs I run.<br />
I picked a Dedibox server and added a backup option to have access to an extra storage space on another computer. There are two things I want to backup :</p>
<ul>
<li>my website files</li>
<li>my databases</li>
</ul>
<p>Since my backup space can not be used with rsync, I used <a title="Backup Manager" href="http://www.backup-manager.org/downloads/">backup manager</a> to automatically save my files.Dedibox has a great article online about <a title="How to setup Backup Manager on Debian/Unix/Dedibox" href="http://www.willdurand.fr/sauvegarde-incrementale-avec-rsync-fichiers-et-base-de-donnees-mysql/">how to set this up for any Unix Dedibox</a>.</p>
<p>For the database backups, I downloaded and tweaked (not much) <a href="http://www.willdurand.fr/sauvegarde-incrementale-avec-rsync-fichiers-et-base-de-donnees-mysql/">the script shared by William Durand</a>.</p>
<p>Everything is called daily by cron and, depending on the day of week, a full or incremental archive is created. After having one of my blog hacked, I really had to get busy working on a backup solution for my data.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.worldgoneweb.com/2011/backing-up-a-dedibox-server-or-most-any-linux/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:thumbnail url="http://www.worldgoneweb.com/wp-content/uploads/2011/01/zip_icon-150x150.png" />
		<media:content url="http://www.worldgoneweb.com/wp-content/uploads/2011/01/zip_icon.png" medium="image">
			<media:title type="html">zip_icon</media:title>
			<media:thumbnail url="http://www.worldgoneweb.com/wp-content/uploads/2011/01/zip_icon-150x150.png" />
		</media:content>
	</item>
		<item>
		<title>World Gone Web hacked</title>
		<link>http://www.worldgoneweb.com/2011/world-gone-web-hacked/</link>
		<comments>http://www.worldgoneweb.com/2011/world-gone-web-hacked/#comments</comments>
		<pubDate>Sat, 08 Jan 2011 09:00:59 +0000</pubDate>
		<dc:creator>shalfon</dc:creator>
				<category><![CDATA[Computing]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[Internet]]></category>
		<category><![CDATA[Me myself I]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Système]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[hacked]]></category>
		<category><![CDATA[malware]]></category>
		<category><![CDATA[ovh]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[webmaster]]></category>

		<guid isPermaLink="false">http://www.worldgoneweb.com/?p=414</guid>
		<description><![CDATA[On Monday morning, I received an email from Google Webmaster Tools letting me know that my WordPress blog had been hacked and was temporarily blacklisted. Users accessing my blog using Google Chrome or Firefox were advised to stay away for safety. I appreciate Google&#8217;s notification of this problem as well as their concern (and Mozilla&#8217;s) [...]]]></description>
			<content:encoded><![CDATA[<p><img class="aligncenter size-medium wp-image-415" title="Firefox Malware Warning" src="http://www.worldgoneweb.com/wp-content/uploads/2011/01/malware-300x143.png" alt="" width="300" height="143" /></p>
<p>On Monday morning, I received an email from Google Webmaster Tools letting me know that my WordPress blog had been hacked and was temporarily blacklisted. Users accessing my blog using Google Chrome or Firefox were advised to stay away for safety. I appreciate Google&#8217;s notification of this problem as well as their concern (and Mozilla&#8217;s) to protect my visitors.</p>
<p>Why was my WordPress blog hacked ? I don&#8217;t believe it was individually targeted, I believe it was hacked because it was vulnerable. Two reasons :</p>
<p>1.  I hadn&#8217;t updated my blog to the latest version of WordPress. As a matter of fact, I was not even running WordPress 3.0 yet.<br />
2. Also, I believe the file permissions I was required to use on the server by my host provider were not safe enough thought I could not change them without breaking the whole blog (Access Denied error). I largely blame my hosting provider architecture for that.<br />
So, what did the malware look like ? It was a php code which was added to every .php file in my main wordpress folder and read something like eval(base64_decode(XXXXXXXXXXX)). Once this was decoded and evaluated, it would check whether the referrer was Bing, Yahoo or Google and if so, redirect my visitor to a malware sharing site of some kind (I didn&#8217;t go to it&#8230;). This hack has been used recently on several GoDaddy hosted wordpress blogs and other CMS. With some help from @fdevillamil and Google, I found information about the problem and started working on it.</p>
<p>Finally, I finally got the problem sorted thanks to several blogs posts I&#8217;d like to point to here.</p>
<p>1. Here is a <a href="http://www.blogtips.org/analysis-of-the-latest-website-hacks/">detailed explanation of the attack</a><br />
2. I downloaded and modified <a href="http://www.blogtips.org/how-to-cure-your-godaddy-wordpress-hacked-blog/">Peter&#8217;s fixfiles.php</a> script in order to clean my PHP code of the malicious PHP script.<br />
3. Sucuri Research offers a <a href="http://blog.sucuri.net/2010/05/simple-cleanup-solution-for-the-latest-wordpress-hack.html">console command</a> (requires SSH access to your server) to clean your WordPress, too. They also detailed how <a href="http://blog.sucuri.net/2010/10/attacks-on-godaddy-sites-insomniaboldinfoorg-com.html">to fix a hacked blog</a> intended for GoDaddy users.<br />
4. Before resubmitting my blog for validation by Google, I made sure everything was okay using <a href="http://sitecheck.sucuri.net/scanner/">Sucuri&#8217;s malware scanner service</a> (free for limited use) . A very useful tool.<br />
5. I quickly searched for <a href="http://thepcsecurity.com/scan-or-check-websites-for-malware-4-free-tools/">similar tools</a> I could use in the future and found the following articles though I didn&#8217;t test these services yet.<br />
6. I moved my blog to another host where I was able to set the permission more restrictively<br />
7. I disabled several of my plugins and updated my WordPress hoping to secure my blog from too many security flaws that could lay in third party code<br />
8. Next, I read up about a few ways to fix security holes in WordPress in these posts :</p>
<ul>
<li><a href="http://www.blogtips.org/monitor-maliciousfile-changes-wordpress-blog/">Monitor Malicious File Changes in WordPress Blog</a></li>
<li><a href="http://www.blogtips.org/secure-wordpress-blog/">Secure a WordPress Blog</a></li>
<li><a href="http://serverfault.com/questions/6895/whats-the-best-way-of-handling-permissions-for-apache2s-user-www-data-in-var-w">The best way to handle file permissions for Apache www-data</a> (ServerFault discussion)</li>
<li><a href="http://www.blogtips.org/avoid-users-uploading-malware/">Avoid users uploading malware</a></li>
</ul>
<p>9. Finally, I updated my blog which was no luxury. It can quickly be done in<a href="http://minimalite.com/2011/01/wordpress-hacks/how-to-update-manually-to-wordpress-3-0-4/"> a few steps</a> which are detailed right here</p>
<p>Hope this helps out someone else in a similar situation and that Google reconsiders my website soon.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.worldgoneweb.com/2011/world-gone-web-hacked/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	
		<media:thumbnail url="http://www.worldgoneweb.com/wp-content/uploads/2011/01/malware-150x150.png" />
		<media:content url="http://www.worldgoneweb.com/wp-content/uploads/2011/01/malware.png" medium="image">
			<media:title type="html">Firefox Malware Warning</media:title>
			<media:thumbnail url="http://www.worldgoneweb.com/wp-content/uploads/2011/01/malware-150x150.png" />
		</media:content>
	</item>
		<item>
		<title>Debian Etch: setting up the basics</title>
		<link>http://www.worldgoneweb.com/2011/debian-etch-setting-up-the-basics/</link>
		<comments>http://www.worldgoneweb.com/2011/debian-etch-setting-up-the-basics/#comments</comments>
		<pubDate>Sun, 02 Jan 2011 08:50:08 +0000</pubDate>
		<dc:creator>shalfon</dc:creator>
				<category><![CDATA[Computing]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[Système]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[coloration]]></category>
		<category><![CDATA[completion]]></category>
		<category><![CDATA[iterm]]></category>
		<category><![CDATA[profile]]></category>
		<category><![CDATA[ssh]]></category>
		<category><![CDATA[vi]]></category>
		<category><![CDATA[vim]]></category>

		<guid isPermaLink="false">http://www.samanthahalfon.net/worldgoneweb/?p=407</guid>
		<description><![CDATA[There are a few things I always do when setting up a new system running Debian: I install the bash-completion, I set up my terminal colors, enable coloration in vi/vim and other little improvements. In order to make my next setup much easier and save some time, I gather the necessary steps in this post. [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.samanthahalfon.net/worldgoneweb/wp-content/uploads/2011/01/debianterm.png"><img class="aligncenter size-medium wp-image-408" title="debianterm" src="http://www.samanthahalfon.net/worldgoneweb/wp-content/uploads/2011/01/debianterm-300x216.png" alt="" width="300" height="216" /></a></p>
<p>There are a few things I always do when setting up a new system running Debian: I install the bash-completion, I set up my terminal colors, enable coloration in vi/vim and other little improvements.</p>
<p>In order to make my next setup much easier and save some time, I gather the necessary steps in this post.</p>
<p><strong>Installing linuxlogo</strong></p>
<p>I like to be greeted by my computer. After all, I spend so much time with <em>him</em> everyday. So, I always install linuxlogo.</p>
<div class="codecolorer-container text dawn" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:678px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">aptitude install linuxlogo</div></td></tr></tbody></table></div>
<p><strong>Installing bash-completion</strong></p>
<p>The bash-completion package enables a much more advanced completion (still using tab) which will not only complete on <em>apt</em> to make it <em>aptitude</em> but on <em>aptitude ins </em>to make it <em>aptitude install</em>. I got used to it, I don&#8217;t want to live without it.</p>
<div class="codecolorer-container text dawn" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:678px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">aptitude install bash-completion</div></td></tr></tbody></table></div>
<p>Wait, it doesn&#8217;t work yet, you need to enable this in your profile. Keep on reading&#8230;</p>
<p><strong>Setting up my bash profile</strong></p>
<p>I don&#8217;t do much here (share your tips in the comment) but activate the bash-completion, a connection logo and my prompt colors. There are two files to edit : .bash_profile and .bashrc (if they don&#8217;t exist, create them).</p>
<p>In .bash_profile, I add:</p>
<div class="codecolorer-container text dawn" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:678px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">alias ll='ls -l'<br />
alias lsa='ls -lsa'<br />
linux_logo -f -u -y -t &quot;Welcome, samo&quot;</div></td></tr></tbody></table></div>
<p>In .bashrc, I edit the prompt:</p>
<div class="codecolorer-container text dawn" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:678px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"># Comment in the above and uncomment this below for a color prompt<br />
PS1='${debian_chroot:+($debian_chroot)}\[\033[0;33m\]\u@\h\[\033[00m\]:\[\033[0;36m\]\w\[\033[00m\]\$ '</div></td></tr></tbody></table></div>
<p>and in .bashrc, I add:</p>
<div class="codecolorer-container text dawn" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:678px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">export VISUAL=&quot;vi&quot;</div></td></tr></tbody></table></div>
<div class="codecolorer-container text dawn" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:678px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"># enable bash-completion if it is available<br />
if [ -f /etc/bash_completion ]; then<br />
. /etc/bash_completion<br />
fi</div></td></tr></tbody></table></div>
<p>Once you edited one of these files, if you want to see the effects of your changes, run source&lt;filename&gt;. At this point, if you installed the bash-completion, it should work.</p>
<p><strong>Setting up root&#8217;s bash profile</strong></p>
<p>I don&#8217;y use root often but to run aptitude upgrade or such things but one thing I like, when I am root, is to be immediately aware of the danger. That&#8217;s why I make the prompt red in that case. To do that, I edit /root/.bashrc</p>
<div class="codecolorer-container text dawn" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:678px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">#Color prompt version<br />
PS1='${debian_chroot:+($debian_chroot)}\[\033[1;31m\]\u@\h\[\033[00m\]:\[\033[0;36m\]\w\[\033[00m\]\$ '</div></td></tr></tbody></table></div>
<p>In the same file, I also add the completion, a few aliases and I send myself an email every time root is used as a security mesure (if someone gets root access I&#8217;ll know about it)</p>
<div class="codecolorer-container text dawn" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:678px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">export VISUAL=&quot;vi&quot;<br />
#enable bash-completion if it is available<br />
if [ -f /etc/bash_completion ]; then<br />
. /etc/bash_completion<br />
fi</div></td></tr></tbody></table></div>
<div class="codecolorer-container text dawn" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:678px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">alias ls='ls $LS_OPTIONS --color=auto'<br />
alias ll='ls $LS_OPTIONS -al --color=auto'<br />
alias vi='vim'</div></td></tr></tbody></table></div>
<div class="codecolorer-container text dawn" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:678px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">echo 'Root Shell Access on ' `date` `who` | mail samantha.halfon@wwangle.net</div></td></tr></tbody></table></div>
<p><strong>Syntax coloration in vi/vim</strong></p>
<p>Another thing I got used to and would like to see by default, the syntax coloration in vi/vim. To enjoy it, install vim</p>
<div class="codecolorer-container text dawn" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:678px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">aptitude install vim<br />
vi /etc/vim/vimrc and uncomment the syntax coloration option (line syntax on)</div></td></tr></tbody></table></div>
<p>For fun, reopen that same file and this time, it will have its colors. Awesome!</p>
<p><strong>Auto login with SSH using a private key (from iTerm)</strong></p>
<p>This is so convenient, it must be setup (if your security requirements allow it). I always follow <a title="SSH and public key authentication" href="http://davidwinter.me/articles/2010/08/22/ssh-and-public-key-authentication/">this tutorial by David Winter</a> in order to set this up. Nothing complicated, just head over there and follow the few steps.</p>
<p>This would not be complete if I didn&#8217;t assign the SSH login a bookmark in iTerm </p>
<p>Press Shift + Command + B to manage your iTerm bookmarks<br />
Create a new bookmark, give it the name of your remote host and enter the command ssh xxx.xxx.xxx.xxx<br />
Choose a display profile and background as well as a shortcut letter<br />
Save your bookmark and type the key combination, you are logged in on your remote host!</p>
<p><strong>Anything else?</strong></p>
<p>I do not spend so much time playing with Debian. Truthfully, I setup my server, once my projects run, I&#8217;m good. The rest of the time, I use Mac OS X. Still, I know there must be a lot many more comfortable tweaks available. Please, share your favorite in the comments. If you feel like reading on, <a title="Customize your .bashrc" href="http://crunchbanglinux.org/forums/topic/1093/post-your-bashrc/">here is a forum post about customizing .bashrc</a> and several good examples to get inspiration.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.worldgoneweb.com/2011/debian-etch-setting-up-the-basics/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	
		<media:thumbnail url="http://www.worldgoneweb.com/wp-content/uploads/2011/01/debianterm-150x150.png" />
		<media:content url="http://www.worldgoneweb.com/wp-content/uploads/2011/01/debianterm.png" medium="image">
			<media:title type="html">debianterm</media:title>
			<media:thumbnail url="http://www.worldgoneweb.com/wp-content/uploads/2011/01/debianterm-150x150.png" />
		</media:content>
	</item>
		<item>
		<title>Installing SVN on a clean Debian Etch install</title>
		<link>http://www.worldgoneweb.com/2011/installing-svn-on-a-clean-debian-etch-install/</link>
		<comments>http://www.worldgoneweb.com/2011/installing-svn-on-a-clean-debian-etch-install/#comments</comments>
		<pubDate>Sat, 01 Jan 2011 15:14:58 +0000</pubDate>
		<dc:creator>shalfon</dc:creator>
				<category><![CDATA[Debian]]></category>
		<category><![CDATA[Système]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[ssl]]></category>
		<category><![CDATA[subversion]]></category>
		<category><![CDATA[svn]]></category>

		<guid isPermaLink="false">http://www.samanthahalfon.net/worldgoneweb/?p=400</guid>
		<description><![CDATA[This was my first assignment for 2011 and I used this blog post as a precious reference. I assume that, at this point, SSH server and Apache are already installed and running. Let&#8217;s start : Install the SVN packages aptitude install subversion aptitude install libapache2-svn Create a repository for your project(s) mkdir /var/subversion svnadmin create [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignleft size-full wp-image-403" title="TortoiseSVN" src="http://www.samanthahalfon.net/worldgoneweb/wp-content/uploads/2011/01/TortoiseSVN.gif" alt="" width="120" height="120" />This was my first assignment for 2011 and I used <a title="Installing Subversion on Debian Etch Complete" href="http://www.reviewingit.com/index.php/content/view/62/2/">this blog post as a precious reference</a>.</p>
<p>I assume that, at this point, SSH server and Apache are already installed and running. Let&#8217;s start :</p>
<ol>
<li>Install the SVN packages<br />
aptitude install subversion<br />
aptitude install libapache2-svn</li>
<li>Create a repository for your project(s)<br />
mkdir /var/subversion<br />
svnadmin create &#8211;fs-type fsfs /var/subversion/project1</li>
<li>Change the repository rights so that Apache can access/write in it<br />
chown -R www-data:www-data /var/subversion<br />
chmod -R 770 /var/subversion</li>
<li>Enable the SVN module for Apache<br />
a2enmod dav<br />
a2enmod dav_svn</li>
<li>Create the accounts for your SVN user(s) and enter the password (twice) when prompted<br />
htpasswd -c /etc/apache2/svn.passwd user1</li>
<li>Create the VirtualHost used to access your subversion ie subversion.yourdomain.com containing the following code<br />
&lt;Location /project1&gt;<br />
DAV svn<br />
SVNPath /var/subversion/project1<br />
AuthType Basic<br />
AuthName &#8220;Subversion Repository&#8221;<br />
AuthUserFile /etc/apache2/svn.passwd<br />
Require valid-user<br />
&lt;/Location&gt;</li>
<li>Restart Apache with<br />
apachectl configtest<br />
apachectl restart</li>
<li>Browse to your repository (you should be at revision 0)
<p>http://subversion.yourdomain.com/project1</li>
<li>Import files in project 1<br />
cd /var/www/project1<br />
svn import -m &#8220;importing project1 to svn&#8221; http:/subversion.yourdomain.com/project1</li>
<li>Refresh your browser window, your files should be there and you should be at revision 1</li>
</ol>
<p>If you have been migrating a Subversion repository using this tutorial, you can use the following command to relocate your local copy</p>
<p>svn switch &#8211;relocate http://old_url/subversion-repository http://shiny_new_url/subversion-repository</p>
<p>That&#8217;s it. Everything works, next, if you so desire, you can enable SSL for your repository access</p>
<ol>
<li>Install the SSL packages<br />
aptitude install openssl<br />
aptitude install ssl-cert</li>
<li>Generate your certificate with the following command (and answer the questions that follow)<br />
openssl req  -new -x509 -days 365 -nodes -out /etc/apache2/apache.pem -keyout /etc/apache2/apache.pem</li>
<li>Enable SSL in the Apache configuration<br />
Listen 443<br />
NameVirtualHost *:443</li>
<li>Edit the subversion virtual host so that<br />
it listens on port 443 &lt;NameVirtualHost *:443&gt;<br />
add SSLEngine on<br />
and SSLCertificateFile /etc/apache2/apache.pem<br />
in the Location node, add SSLRequireSSL</li>
<li>Activate the SSL module<br />
a2enmod ssl</li>
<li>Again, restart Apache<br />
apachectl configtest<br />
apachectl restart</li>
</ol>
<p>That much is done, too!</p>
<p>One last &#8211; optional &#8211; step : specify different access level to different users</p>
<ol>
<li>Create your subversion users using<br />
htpasswd /etc/apache2/svn.passwd user2<br />
htpasswd /etc/apache2/svn.passwd user3</li>
<li>Edit your VirtualHost for subversion.yourdomain.com and add<br />
AuthzSVNAccessFile /etc/apache2/svnaccess.authz</li>
<li>Edit (or create) the file /etc/apache2/svnaccess.authz using the example below<br />
[groups]<br />
group1 = user1, user2<br />
[/]<br />
@group1 = rw<br />
[/project2]<br />
user3 = rw</li>
<li>Restart Apache and test your access restrictions<br />
apachetcl configtest<br />
apachectl restart</li>
</ol>
<p>That&#8217;all. Happy New Year!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.worldgoneweb.com/2011/installing-svn-on-a-clean-debian-etch-install/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:thumbnail url="http://www.worldgoneweb.com/wp-content/uploads/2011/01/TortoiseSVN.gif" />
		<media:content url="http://www.worldgoneweb.com/wp-content/uploads/2011/01/TortoiseSVN.gif" medium="image">
			<media:title type="html">TortoiseSVN</media:title>
		</media:content>
	</item>
		<item>
		<title>Debian Lenny: updating to SVN 1.6.4</title>
		<link>http://www.worldgoneweb.com/2009/debian-lenny-updating-to-svn-1-6-4/</link>
		<comments>http://www.worldgoneweb.com/2009/debian-lenny-updating-to-svn-1-6-4/#comments</comments>
		<pubDate>Wed, 04 Nov 2009 21:46:16 +0000</pubDate>
		<dc:creator>shalfon</dc:creator>
				<category><![CDATA[Debian]]></category>
		<category><![CDATA[Système]]></category>
		<category><![CDATA[aptitude]]></category>
		<category><![CDATA[devian]]></category>
		<category><![CDATA[lenny]]></category>
		<category><![CDATA[subversion]]></category>
		<category><![CDATA[svn]]></category>

		<guid isPermaLink="false">http://www.samanthahalfon.net/worldgoneweb/?p=173</guid>
		<description><![CDATA[Working with Windwos users on my SVN repository, I needed to upgrade SVN to match with their Tortoise version. Here are the steps to do so: add the line below to /etc/apt/sources.list 1deb http://www.backports.org/debian lenny-backports main contrib non-free get the public key from lenny-backports running the following command 1wget -O - http://backports.org/debian/archive.key &#124; apt-key add [...]]]></description>
			<content:encoded><![CDATA[<p>Working with Windwos users on my SVN repository, I needed to upgrade SVN to match with their Tortoise version. Here are the steps to do so:</p>
<ul>
<li>add the line below to <em>/etc/apt/sources.list</em>
<div class="codecolorer-container php dawn" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:678px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="php codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">deb http<span style="color: #339933;">:</span><span style="color: #666666; font-style: italic;">//www.backports.org/debian lenny-backports main contrib non-free</span></div></td></tr></tbody></table></div>
</li>
<li>get the public key from lenny-backports running the following command
<div class="codecolorer-container php dawn" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:678px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="php codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">wget <span style="color: #339933;">-</span>O <span style="color: #339933;">-</span> http<span style="color: #339933;">:</span><span style="color: #666666; font-style: italic;">//backports.org/debian/archive.key | apt-key add -</span></div></td></tr></tbody></table></div>
</li>
<li>run <em>aptitude update</em></li>
<li>install subversion <em>aptitude -t lenny-backports install subversion</em></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.worldgoneweb.com/2009/debian-lenny-updating-to-svn-1-6-4/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
	</item>
	</channel>
</rss>

