<?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>dbugs.org &#187; Tutorial</title>
	<atom:link href="http://blog.dbugs.org/category/tutorial/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.dbugs.org</link>
	<description>where knowledge meets creation</description>
	<lastBuildDate>Tue, 03 Nov 2009 04:14:14 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>it&#8217;s not possible!</title>
		<link>http://blog.dbugs.org/2009/10/21/iphone_wifi_eduroam_ualg_howto/</link>
		<comments>http://blog.dbugs.org/2009/10/21/iphone_wifi_eduroam_ualg_howto/#comments</comments>
		<pubDate>Wed, 21 Oct 2009 17:39:04 +0000</pubDate>
		<dc:creator>Marco Garcês</dc:creator>
				<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[WIFI]]></category>
		<category><![CDATA[hacks]]></category>
		<category><![CDATA[eduroam]]></category>
		<category><![CDATA[hack]]></category>
		<category><![CDATA[iPhone]]></category>
		<category><![CDATA[iPod Touch]]></category>
		<category><![CDATA[UAlg]]></category>

		<guid isPermaLink="false">http://blog.dbugs.org/?p=213</guid>
		<description><![CDATA[So you are a UAlg student (or you work inside UAlg), and you have a iPhone/iPod Touch, and tried to access WiFi network using eduroam, but you were not able to do that&#8230; so they said to me!! Here is how you do it: First, with you device (iPhone or iPod) go to bit.ly/eduroam_ualg (my [...]]]></description>
			<content:encoded><![CDATA[<p>So you are a <a title="UAlg - Universidade do Algarve" href="http://www.ualg.pt">UAlg</a> student (or you work inside UAlg), and you have a iPhone/iPod Touch, and tried to access WiFi network using <em>eduroam, </em>but you were not able to do that&#8230; so they said to me!!</p>
<p><span id="more-213"></span>Here is how you do it:</p>
<ul>
<li>First, with you device (iPhone or iPod) go to <a title="http://www.deei.fct.ualg.pt/~a24121/" href="http://bit.ly/eduroam_ualg">bit.ly/eduroam_ualg</a> (my UAlg&#8217;s student homepage). You have got to do this with your 3G connection, or other WiFi network.</li>
<li>Download the <em><strong>eduroam_UAlg.mobileconfig</strong> </em>file to your device</li>
<li>A dialog will appear, asking to install a new profile. Click<strong> </strong><em><strong>Install</strong> </em>and after that, <strong> </strong><em><strong>Install Now</strong> (</em>it will say that this procedure will change setting on your device)</li>
<li>Once the new profile is installed and verified, a new dialog asking for your username, will appear. Input your UAlg&#8217;s credentials (normally it is your e-mail, in the form of <em><strong>aXXXXX@ualg.pt</strong></em>), and then click <em><strong>Next</strong></em></li>
<li>The next dialog will say in green <em><strong>Verified</strong></em>, you just have to click <em><strong>Done</strong></em></li>
<li>Once you are inside the campus, go to your <em><strong>WiFi Networks</strong> </em>in system preferences, and click on the <em><strong>eduroam</strong> </em>access point, that now shows up.</li>
<li>Your e-mail should now show up, and you should insert your password.</li>
<li>When joining for the first time, you have to accept the certificate, by clicking the <em><strong>Accept</strong></em> button.</li>
<li>After this, you can start surfing! No need to configure proxy settings!</li>
</ul>
<p>I hope this helps everyone to stay connected without problems. If you are having difficulty with some of the steps, leave a comment, and I will be happy to help you sorting this out. Also, if it keeps asking for the password, tell me. I think I solved this problem, but you never know&#8230;.</p>
<p>Here are the steps necessary, this time, with some screenshots:</p>

<div class="ngg-galleryoverview" id="ngg-gallery-2-213">


	
	<!-- Thumbnails -->
		
	<div id="ngg-image-18" class="ngg-gallery-thumbnail-box" style="width:25%;" >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://blog.dbugs.org/wp-content/gallery/eduroam_ualg/eduroamualg1.jpg" title=" " class="thickbox" rel="set_2" >
								<img title="eduroamualg1" alt="eduroamualg1" src="http://blog.dbugs.org/wp-content/gallery/eduroam_ualg/thumbs/thumbs_eduroamualg1.jpg" width="100" height="75" />
							</a>
		</div>
	</div>
	
		
 		
	<div id="ngg-image-22" class="ngg-gallery-thumbnail-box" style="width:25%;" >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://blog.dbugs.org/wp-content/gallery/eduroam_ualg/eduroamualg2.jpg" title=" " class="thickbox" rel="set_2" >
								<img title="eduroamualg2" alt="eduroamualg2" src="http://blog.dbugs.org/wp-content/gallery/eduroam_ualg/thumbs/thumbs_eduroamualg2.jpg" width="100" height="75" />
							</a>
		</div>
	</div>
	
		
 		
	<div id="ngg-image-23" class="ngg-gallery-thumbnail-box" style="width:25%;" >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://blog.dbugs.org/wp-content/gallery/eduroam_ualg/eduroamualg3.jpg" title=" " class="thickbox" rel="set_2" >
								<img title="eduroamualg3" alt="eduroamualg3" src="http://blog.dbugs.org/wp-content/gallery/eduroam_ualg/thumbs/thumbs_eduroamualg3.jpg" width="100" height="75" />
							</a>
		</div>
	</div>
	
		
 		
	<div id="ngg-image-24" class="ngg-gallery-thumbnail-box" style="width:25%;" >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://blog.dbugs.org/wp-content/gallery/eduroam_ualg/eduroamualg4.jpg" title=" " class="thickbox" rel="set_2" >
								<img title="eduroamualg4" alt="eduroamualg4" src="http://blog.dbugs.org/wp-content/gallery/eduroam_ualg/thumbs/thumbs_eduroamualg4.jpg" width="100" height="75" />
							</a>
		</div>
	</div>
	
				<br style="clear: both" />
	
 		
	<div id="ngg-image-25" class="ngg-gallery-thumbnail-box" style="width:25%;" >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://blog.dbugs.org/wp-content/gallery/eduroam_ualg/eduroamualg5.jpg" title=" " class="thickbox" rel="set_2" >
								<img title="eduroamualg5" alt="eduroamualg5" src="http://blog.dbugs.org/wp-content/gallery/eduroam_ualg/thumbs/thumbs_eduroamualg5.jpg" width="100" height="75" />
							</a>
		</div>
	</div>
	
		
 		
	<div id="ngg-image-26" class="ngg-gallery-thumbnail-box" style="width:25%;" >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://blog.dbugs.org/wp-content/gallery/eduroam_ualg/eduroamualg6.jpg" title=" " class="thickbox" rel="set_2" >
								<img title="eduroamualg6" alt="eduroamualg6" src="http://blog.dbugs.org/wp-content/gallery/eduroam_ualg/thumbs/thumbs_eduroamualg6.jpg" width="100" height="75" />
							</a>
		</div>
	</div>
	
		
 		
	<div id="ngg-image-27" class="ngg-gallery-thumbnail-box" style="width:25%;" >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://blog.dbugs.org/wp-content/gallery/eduroam_ualg/eduroamualg7.jpg" title=" " class="thickbox" rel="set_2" >
								<img title="eduroamualg7" alt="eduroamualg7" src="http://blog.dbugs.org/wp-content/gallery/eduroam_ualg/thumbs/thumbs_eduroamualg7.jpg" width="100" height="75" />
							</a>
		</div>
	</div>
	
		
 		
	<div id="ngg-image-28" class="ngg-gallery-thumbnail-box" style="width:25%;" >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://blog.dbugs.org/wp-content/gallery/eduroam_ualg/eduroamualg8.jpg" title=" " class="thickbox" rel="set_2" >
								<img title="eduroamualg8" alt="eduroamualg8" src="http://blog.dbugs.org/wp-content/gallery/eduroam_ualg/thumbs/thumbs_eduroamualg8.jpg" width="100" height="75" />
							</a>
		</div>
	</div>
	
				<br style="clear: both" />
	
 		
	<div id="ngg-image-29" class="ngg-gallery-thumbnail-box" style="width:25%;" >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://blog.dbugs.org/wp-content/gallery/eduroam_ualg/eduroamualg9.jpg" title=" " class="thickbox" rel="set_2" >
								<img title="eduroamualg9" alt="eduroamualg9" src="http://blog.dbugs.org/wp-content/gallery/eduroam_ualg/thumbs/thumbs_eduroamualg9.jpg" width="100" height="75" />
							</a>
		</div>
	</div>
	
		
 		
	<div id="ngg-image-19" class="ngg-gallery-thumbnail-box" style="width:25%;" >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://blog.dbugs.org/wp-content/gallery/eduroam_ualg/eduroamualg10.jpg" title=" " class="thickbox" rel="set_2" >
								<img title="eduroamualg10" alt="eduroamualg10" src="http://blog.dbugs.org/wp-content/gallery/eduroam_ualg/thumbs/thumbs_eduroamualg10.jpg" width="100" height="75" />
							</a>
		</div>
	</div>
	
		
 		
	<div id="ngg-image-20" class="ngg-gallery-thumbnail-box" style="width:25%;" >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://blog.dbugs.org/wp-content/gallery/eduroam_ualg/eduroamualg11.jpg" title=" " class="thickbox" rel="set_2" >
								<img title="eduroamualg11" alt="eduroamualg11" src="http://blog.dbugs.org/wp-content/gallery/eduroam_ualg/thumbs/thumbs_eduroamualg11.jpg" width="100" height="75" />
							</a>
		</div>
	</div>
	
		
 		
	<div id="ngg-image-21" class="ngg-gallery-thumbnail-box" style="width:25%;" >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://blog.dbugs.org/wp-content/gallery/eduroam_ualg/eduroamualg12.jpg" title=" " class="thickbox" rel="set_2" >
								<img title="eduroamualg12" alt="eduroamualg12" src="http://blog.dbugs.org/wp-content/gallery/eduroam_ualg/thumbs/thumbs_eduroamualg12.jpg" width="100" height="75" />
							</a>
		</div>
	</div>
	
				<br style="clear: both" />
	
 	 	
	<!-- Pagination -->
 	<div class="ngg-clear"></div> 	
</div>


]]></content:encoded>
			<wfw:commentRss>http://blog.dbugs.org/2009/10/21/iphone_wifi_eduroam_ualg_howto/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>quick recipe</title>
		<link>http://blog.dbugs.org/2009/01/05/quick-wordpress-upgrade-recipie/</link>
		<comments>http://blog.dbugs.org/2009/01/05/quick-wordpress-upgrade-recipie/#comments</comments>
		<pubDate>Mon, 05 Jan 2009 00:49:04 +0000</pubDate>
		<dc:creator>Marco Garcês</dc:creator>
				<category><![CDATA[Blogs]]></category>
		<category><![CDATA[CLI]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[new]]></category>
		<category><![CDATA[svn]]></category>
		<category><![CDATA[upgrade]]></category>

		<guid isPermaLink="false">http://blog.dbugs.org/?p=151</guid>
		<description><![CDATA[Such a long time since my last post&#8230; so here is a quick recipe for WordPress upgrade: Login to your shell mv blog blog_old mkdir blog_new &#38;&#38; cd blog_new &#38;&#38; svn co http://svn.automattic.com/wordpress/tags/2.7 . cd ~/blog_old/ cp -p wp-config.php .htaccess ../blog_new &#38;&#38; cp -rpf wp-content/* ../blognew/wp-content cd ~/blog_new/ &#38;&#38; svn sw http://svn.automattic.com/wordpress/tags/2.7/ . mv blog_new [...]]]></description>
			<content:encoded><![CDATA[<p>Such a long time since my last post&#8230; so here is a quick recipe for WordPress upgrade:</p>
<p style="text-align: center;">
<p><span id="more-151"></span></p>
<ol>
<li>Login to your shell</li>
<li><em><code>mv blog blog_old</code></em></li>
<li><em><code>mkdir blog_new &amp;&amp; cd blog_new</code></em><code><em> &amp;&amp; svn co http://svn.automattic.com/wordpress/tags/2.7 .</em></code><em></em></li>
<li><em><code>cd ~/blog_old/</code></em></li>
<li><em><code>cp -p wp-config.php .htaccess ../blog_new &amp;&amp; cp -rpf wp-content/* ../blognew/wp-content</code></em></li>
<li><em><code>cd ~/blog_new/ &amp;&amp; svn sw http://svn.automattic.com/wordpress/tags/2.7/ . </code></em></li>
<li><em><code>mv blog_new blog</code><br />
</em></li>
<li>go to http://&lt;you_url&gt;/wp-admin/upgrade.php and perform the update process</li>
</ol>
<p>And thats it! Put it in the hoven for 10 minutes and leave to rest! After that go enjoy your new and upgraded blog! Oh, by the way, each time a new version comes out, just go inside your blog dir and do a:</p>
<ul>
<li><em><code>svn sw http://svn.automattic.com/wordpress/tags/2.7/ . </code></em></li>
</ul>
<p>Pretty sweet! =)</p>
<p><strong>UPDATE:</strong> in fact you can forget step 2, and just move your old directory in the end, when about to go live. Perform the all the steps in the recipe, than at the end, just change blog to blog_old (or some other name you might have) and change blog_new to blog. This way you now point to you new <a title="svn - version control system" href="http://subversion.tigris.org/" target="_self">SVN</a> install, and you old stuff is safeguarded. Enjoy!</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.dbugs.org/2009/01/05/quick-wordpress-upgrade-recipie/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>I feel so limited&#8230;</title>
		<link>http://blog.dbugs.org/2008/02/22/4-gb-memory-limitation/</link>
		<comments>http://blog.dbugs.org/2008/02/22/4-gb-memory-limitation/#comments</comments>
		<pubDate>Fri, 22 Feb 2008 12:03:29 +0000</pubDate>
		<dc:creator>Marco Garcês</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[hardware]]></category>
		<category><![CDATA[windows]]></category>
		<category><![CDATA[4GB]]></category>
		<category><![CDATA[intel]]></category>
		<category><![CDATA[memory]]></category>
		<category><![CDATA[PAE]]></category>
		<category><![CDATA[ram]]></category>
		<category><![CDATA[vista]]></category>
		<category><![CDATA[xp]]></category>

		<guid isPermaLink="false">http://blog.dbugs.org/2008/02/22/4-gb-memory-limitation/</guid>
		<description><![CDATA[Yesterday at work, my boss asked me, if I knew the 4GB memory limitation Windows Vista had, because a client was there having problems with this issue&#8230; Since I&#8217;m not a big windows user, except for a desktop that his only purpose is to download Linux distros using bit torrent protocol, I was not fully [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://farm3.static.flickr.com/2317/1568025784_8f10e9d3c6_t.jpg" rel="lightbox"><img style="border: 5px solid black;" src="http://farm3.static.flickr.com/2317/1568025784_8f10e9d3c6_t.jpg" border="5" alt="copyright http://www.flickr.com/photos/sikachu/" width="83" height="125" align="right" /></a>Yesterday at work, my boss asked me, if I knew the 4GB memory limitation Windows Vista had, because a client was there having problems with this issue&#8230;<span id="more-117"></span></p>
<p>Since I&#8217;m not a big windows user, except for a desktop that his only purpose is to download Linux distros using bit torrent protocol, I was not fully aware of this limitation.</p>
<p>So I did some quick research and realized that this limitation was not a Windows problem, but a hardware problem! You see, 32-bit systems have a limit of memory that they can use. Normally this is 4GB minus the total ammount of memory in the Video Card, the BIOS and everything inside you machine that has memory. So most of the users that now buy 4Gib ram to use with their brand new Vista machine, get stucked at 3 ou 3,5 Gib.</p>
<p>Even thouhg Linux also suffers from the same limitations, it is able to handle higher memory installed, since it uses correctly the PAE&#8230; What is PAE you might ask? PAE, or <a title="Physical Address Extension" href="http://en.wikipedia.org/wiki/Physical_Address_Extension">Physical Address Extension</a> is a feature that allows the use of more than 4Gib of physical memory, given apropriate operating system support for this feature.</p>
<p>There are some things you might do to enable PAE in 32-bit Vista, but I haven&#8217;t tryed yet this.. maybe in the future&#8230;</p>
<p>Here are some places you can go, to read a little bit more and try for yourself:</p>
<ul>
<li><a title="Enabling PAE on 32-bit Windows Vista" href="http://www.thegeeksweek.com/blog/enabling-pae-on-32-bit-windows-vista.html">Enabling PAE in Vista</a></li>
<li><a title="Physical Address Extension" href="http://en.wikipedia.org/wiki/Physical_Address_Extension">Wiki on PAE</a></li>
<li><a title="The system memory that is reported in the System Information dialog box in Windows Vista is less than you expect if 4 GB of RAM is installed" href="http://support.microsoft.com/kb/929605">Microsoft on PAE in Vista</a></li>
</ul>
<p>In the future, this limitation will be overcome, since the use of 64-bit systems sets the memory limit much higher. If you want 4Gib, with no hassle just switch to a superior operating system like GNU/Linux or Mac OS X =)</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.dbugs.org/2008/02/22/4-gb-memory-limitation/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>SSH on Window$.. .the smart way!</title>
		<link>http://blog.dbugs.org/2007/09/29/ssh-on-windows-smart-way/</link>
		<comments>http://blog.dbugs.org/2007/09/29/ssh-on-windows-smart-way/#comments</comments>
		<pubDate>Sat, 29 Sep 2007 15:32:24 +0000</pubDate>
		<dc:creator>Marco Garcês</dc:creator>
				<category><![CDATA[CLI]]></category>
		<category><![CDATA[hacks]]></category>
		<category><![CDATA[ssh]]></category>
		<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://blog.dbugs.org/2007/09/29/ssh-on-windows-smart-way/</guid>
		<description><![CDATA[This will be a quick one&#8230; Do you use Linux over the command-line? Do you access remotely these machines using SSH? Are you sitting in front of a Windows computer? If your answers were yes to all three, I&#8217;m going to assume that you know the Putty software, and you already use it.. Now lets [...]]]></description>
			<content:encoded><![CDATA[<p>This will be a quick one&#8230; Do you use Linux over the command-line? Do you access remotely these machines using SSH? Are you sitting in front of a Windows computer? If your answers were yes to all three, I&#8217;m going to assume that you know the <a href="http://en.wikipedia.org/wiki/PuTTY" title="everything on the Putty software">Putty</a> software, and you already use it.. Now lets learn how to use it&#8230; the smart way!<br />
<span id="more-114"></span>These are very simple steps, and will save you a lot of clicks and time, not to mention its way more cool!</p>
<ol>
<li><a href="http://www.google.com/search?q=putty+download&amp;ie=utf-8&amp;oe=utf-8&amp;aq=t&amp;rls=org.mozilla:en-US:official&amp;client=firefox-a" title="get your copy of Putty">Download</a> Putty to you desktop</li>
<li>Change the name of the file, from <em>putty.exe</em> to <em>ssh.exe</em></li>
<li>Move this file to your <strong><em>Windows</em></strong> directory (should be on you drive <strong><em>C:\</em></strong>)</li>
<li>Press <em><a href="http://en.wikipedia.org/wiki/Windows_key" title="don't know the windows key?">Windows Key</a> + R</em> (shortcut for run command)</li>
<li>Type <em>ssh user@remote.example.com </em>(use your own user and server)</li>
</ol>
<p>If you got everything right, you now will be asked for your user password.. You can do it even smarter, and use <a href="http://blog.dbugs.org/2007/06/17/ssh-keys-authentication/" title="my post on the subject, no steps for putty">public key authentication</a>, which I love so much, and no more typing would be necessary.</p>
<p>Very cool right? No more fiddling for Putty.exe, no more clicks, no more hassle.. Just &#8220;<strong>RUN+ssh+options</strong>&#8221; and this will get you there! Like I said, SSH on Windows&#8230; The smart way!</p>
<p>Enjoy!</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.dbugs.org/2007/09/29/ssh-on-windows-smart-way/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Lock down! SSH lock down!</title>
		<link>http://blog.dbugs.org/2007/08/29/ssh-security/</link>
		<comments>http://blog.dbugs.org/2007/08/29/ssh-security/#comments</comments>
		<pubDate>Wed, 29 Aug 2007 16:17:24 +0000</pubDate>
		<dc:creator>Marco Garcês</dc:creator>
				<category><![CDATA[CLI]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[ssh]]></category>
		<category><![CDATA[Clients]]></category>
		<category><![CDATA[Command line interface]]></category>
		<category><![CDATA[Documentation]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Open SSH]]></category>
		<category><![CDATA[Protocols]]></category>
		<category><![CDATA[Secure Shell]]></category>

		<guid isPermaLink="false">http://blog.dbugs.org/2007/08/29/ssh-security/</guid>
		<description><![CDATA[Everybody that uses Linux, one way or another, will be using the command line for admin. Sure you can have those graphical tools to do the job, but there is nothing like the command line for this. And if you manage a couple of remote machines, the only way you can get with this, is [...]]]></description>
			<content:encoded><![CDATA[<p><img title="terminal" src="http://blog.dbugs.org/wp-content/uploads/2007/08/terminal1.png" alt="terminal" align="right" />Everybody that uses Linux, one way or another, will be using the <a class="zem_slink" title="Command line interface" rel="wikipedia" href="http://en.wikipedia.org/wiki/Command_line_interface">command line</a> for admin. Sure you can have those graphical tools to do the job, but there is nothing like the command line for this. And if you manage a couple of remote machines, the only way you can get with this, is using the command line via SSH. Although this is a discussed subject, I went to a few steps the other day, on a personal remote server, to improve SSH security, to a level I can sleep good at night. So let me show you what I did&#8230;<span id="more-90"></span><br class="webkit-block-placeholder" />To resume, here is my path to security:</p>
<ul id="null">
<li>Changed default listen port (default is 22)</li>
<li>Only allow SSH protocol 2 (there are 2 versions of SSH, version 2 is far more secure)</li>
<li>Disabled root login</li>
<li>Allowed only some users to login</li>
<li>Disabled password login</li>
<li>Set up a private/public key method for authentication</li>
<li>Set a a firewall rule for those script kiddies who like to knock on my server doors</li>
</ul>
<p>These were the steps, and believe me, it&#8217;s not that big a deal to go through them. Let&#8217;s now describe each one!</p>
<p><img src="http://blog.dbugs.org/wp-content/uploads/2007/08/bullet1.png" alt="bullet1" /><span class="Apple-style-span" style="font-weight: bold">Default Listen Port<br />
</span>By default, the <a class="zem_slink" title="OpenSSH" rel="homepage" href="http://www.openssh.com">Open SSH</a> server comes with listen <a class="zem_slink" title="TCP and UDP port" rel="wikipedia" href="http://en.wikipedia.org/wiki/TCP_and_UDP_port">TCP port</a> set to 22. Not trying to make <a class="zem_slink" title="Security through obscurity" rel="wikipedia" href="http://en.wikipedia.org/wiki/Security_through_obscurity">security by obscurity</a>, if you change this default behavior, at least those script kiddies, who scan your port 22, and hammer you with the defaults logins, will be dropped, and your bandwidth will be spared. So head to <em>/etc/ssh</em> (the default directory, most distros) and edit your <strong><em>sshd_confing.</em></strong> On the line: &#8220;<a class="zem_slink" title="Secure Shell" rel="wikipedia" href="http://en.wikipedia.org/wiki/Secure_Shell">Port 22</a>&#8220;, change this to something else, higher than 1024, because usually port scanners don&#8217;t go higher than this by default; for example, use port 2222. When connecting to you server, don&#8217;t forget to specify the port number (in the command line this goes by ssh -p 2222 hostname).</p>
<p><img src="http://blog.dbugs.org/wp-content/uploads/2007/08/bullet1.png" alt="bullet1" /><strong>SSH protocol 2</strong><br />
In the present, there are 2 versions of SSH <a title="SSH protocols differences" href="http://www.snailbook.com/faq/ssh-1-vs-2.auto.html">protocol</a>. It&#8217;s better to go with the latest, since it&#8217;s far more secure. So, in the same file you made your port changes, the line which contains the word &#8220;<span class="Apple-style-span" style="font-style: italic">Protocol</span>&#8220;, put a lonely &#8220;<span class="Apple-style-span" style="font-style: italic">2</span>&#8221; (probably there is already one there, or 2,1) in front. Save your changes.</p>
<p><img src="http://blog.dbugs.org/wp-content/uploads/2007/08/bullet1.png" alt="bullet1" /><strong>Disable root login<br />
</strong>Normally for administration purposes, we use the <a class="zem_slink" title="Superuser" rel="wikipedia" href="http://en.wikipedia.org/wiki/Superuser">super user</a> (root), but it&#8217;s not safe to remote login with this user. If something gets compromised, the attacker will have full power to change anything in your system. So, force logins with other user than the root, and then when you are <a class="zem_slink" title="Logging (computer security)" rel="wikipedia" href="http://en.wikipedia.org/wiki/Logging_%28computer_security%29">logged in</a>, su to become root. Believe me, it&#8217;s safer this way. So in the same file, when it says &#8220;<em>PermitRootLogin</em>&#8220;, put a &#8220;<em>no</em>&#8221; in front. Thats it!</p>
<p><img src="http://blog.dbugs.org/wp-content/uploads/2007/08/bullet1.png" alt="bullet1" /><strong>Allow only some users to login</strong><br />
Ok, you now have disabled root login, but any <a class="zem_slink" title="User (computing)" rel="wikipedia" href="http://en.wikipedia.org/wiki/User_%28computing%29">user account</a> on your system will be authorized to remote login. This brings a lot of issues, because more users, means more distributed logins, more chances to security issues (imagine one of your users being kidnapped by a alien, you never know). So authorize one user (you), and if needed, other users, but only if needed. I hope you never left <strong><em>sshd_config</em></strong>, because now we have to search for the line &#8220;AllowUsers&#8221;. If this line doesn&#8217;t exist, add it, in the &#8220;<em>#Authentication</em>&#8221; part of the file, and specify the users you want to allow login. Example: &#8220;<em>AllowUsers user1 user2</em>&#8220;. Easy right? Let&#8217;s continue.</p>
<p><img src="http://blog.dbugs.org/wp-content/uploads/2007/08/bullet1.png" alt="bullet1" /><strong>Password logins</strong><br />
By default, you authenticate in your remote host, by using a combination of user/password. Passwords, by it&#8217;s nature are unsafe, so why use them? Next we will set up a digital key authentication, so disable passwords for now. In the same configuration file, change &#8220;PasswordAuthentication yes&#8221; to &#8220;PasswordAuthentication no&#8221;. And we are done regarding passwords.</p>
<p><img src="http://blog.dbugs.org/wp-content/uploads/2007/08/bullet1.png" alt="bullet1" /><strong>Private/Public key authentication (using DSA)</strong><br />
In the past I <a title="ssh authentication using keys" href="http://blog.dbugs.org/2007/06/17/ssh-keys-authentication/">explained</a> this (link to previous post). You can use a combination of private/public key to authenticate yourself in a remote host, so use this. Go through that post, and set everything up. Its just a matter of following the steps: <strong>(1)</strong><em>ssh-keygen -t dsa</em>; <strong>(2)</strong><em>cat ~/.ssh/id_dsa.pub</em> <strong>(3)</strong>put the output of step <strong>(2)</strong> in remote ~/.ssh/authorized_keys (chmodded to 600). After making this, edit the lines inside <em><strong>sshd_config</strong></em>, &#8220;RSAAuthentication yes&#8221;, &#8220;PubkeyAuthentication yes&#8221; and &#8220;AuthorizedKeysFile %h/.ssh/authorized_keys&#8221;. And your done here.</p>
<p><img src="http://blog.dbugs.org/wp-content/uploads/2007/08/bullet1.png" alt="bullet1" /><strong>Firewall Rule<br />
</strong>Would it be great if your firewall detected if someone was knocking on your firewall door? Well, you can use a fully blown intrusion detection system, like Snort (link to snort), but by using simple rules in iptables, we can accomplish some security on the number of times someone tries to login. If you don&#8217;t know what iptables are, ignore this step, else, add this rules to your firewall (run this in the CLI or add it to your firewall scripts):</p>
<blockquote><p>iptables -A INPUT -i ${WAN} -p tcp &#8211;dport 2222 -m state &#8211;state NEW -m recent &#8211;set &#8211;name SSH</p></blockquote>
<blockquote><p>iptables -A INPUT -i ${WAN} -p tcp &#8211;dport 2222 -m state &#8211;state NEW -m recent &#8211;update &#8211;seconds 60 &#8211;hitcount 8 &#8211;rttl &#8211;name SSH -j DROP</p></blockquote>
<p>The <em>${WAN}</em> part of the rule, is the network interface you use to connect to your ssh server. I normally export LAN and WAN in a bash script, so I always know what is going where. In the future we will discuss firewall/iptables in detail, for those who do not know about the subject.This simple 2 rules will limit to 8, the number of ssh logins your host will permit in a minute. Thats a huge improvement (only 8 against unlimited attempts).And thats it! This were the steps I made to improve security on my remote host. Combined with a good firewall script, you will get a very tight system, believe me! There are other stuff you can make, like using TCP wrappers, but in my case, I login from a changing IP addres, and this method is not very useful if your IP address changes a lot.Oh, one last thing you can do! If all this methods fail, and someone is able to login using ssh to your server, edit again the <em>/etc/ssh/<strong>sshd_config</strong></em>, and in the line &#8220;<em>Banner</em>&#8221; add in front put &#8220;<em>/etc/sshbanner.txt</em>&#8220;. Now edit (create) the file <em>/etc/<strong>sshbanner.txt</strong></em> and put this inside (copy/paste):</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br />
WARNING! THIS IS A PRIVATE SSH SERVICE, NOT TO BE USED BY A STRANGER. IF YOU HAVE GAINED ILLICIT ACCESS ON THIS SYSTEM, A CURSE WILL BE SET UPON YOU, AND YOU WILL HAVE A SERIOUS RASH ON YOUR PRIVATE PARTS, AND SUFFER IN AGONIE! YOU HAVE BEEN WARNED!<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</p>
<p>Now, each time a user logs in, he will see this message. If it&#8217;s a unwanted user, he will be so scared, that he will log off immediately! =)</p>
<p>Please post back comments, on more things we can use to improve security on our servers!</p>
<p><strong>PS: Don&#8217;t forget, when all changes are made, to restart your ssh server (ex: <em>/etc/init.d/ssh restart</em>).</strong></p>
<div class="zemanta-pixie" style="margin-top: 10px; height: 15px;"><a class="zemanta-pixie-a" title="Zemified by Zemanta" href="http://reblog.zemanta.com/zemified/c61f8dfa-0d53-462f-a1d8-79c761e476f5/"><img class="zemanta-pixie-img" style="border: medium none; float: right;" src="http://img.zemanta.com/reblog_e.png?x-id=c61f8dfa-0d53-462f-a1d8-79c761e476f5" alt="Zemanta Pixie" /></a></div>
]]></content:encoded>
			<wfw:commentRss>http://blog.dbugs.org/2007/08/29/ssh-security/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Let&#8217;s keep it a secret!</title>
		<link>http://blog.dbugs.org/2007/08/28/encrypted-images-mac/</link>
		<comments>http://blog.dbugs.org/2007/08/28/encrypted-images-mac/#comments</comments>
		<pubDate>Tue, 28 Aug 2007 15:02:09 +0000</pubDate>
		<dc:creator>Marco Garcês</dc:creator>
				<category><![CDATA[Mac]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[security]]></category>

		<guid isPermaLink="false">http://blog.dbugs.org/2007/08/28/encrypted-images-mac/</guid>
		<description><![CDATA[Rememer that crazy project, where I transformed a Moleskine into a fully USB hard drive? In that post, i pointed out, that, to give that final &#8220;spy&#8221; touch, I&#8217;ve created a encrypted image, which I dropped inside the hard drive, for security of my data. Theres is a very simple way to do this in [...]]]></description>
			<content:encoded><![CDATA[<p>Rememer that crazy <a href="http://blog.dbugs.org/2007/07/14/moleskine-external-usb-harddrive/" title="my moleskine secrets">project</a>, where I transformed a Moleskine into a fully USB hard drive? In that post, i pointed out, that, to give that final &#8220;spy&#8221; touch, I&#8217;ve created a encrypted image, which I dropped inside the hard drive, for security of my data. Theres is a very simple way to do this in Mac OS X, and it&#8217;s a good way to keep your data safe, for example, inside a USB pen drive. So let&#8217;s get started!<br />
<span id="more-83"></span><br />
Follow this easy steps, and you will have a safe container, which  will be very hard to open, if you   take attention to some details.<br />
So, head up to Disk Utility, that came with your Mac OS X; this nifty piece of software, let&#8217;s you do a lot of stuff, from recording those ISO&#8217;s you download with your favorite distro, to fixing errors in your hard drives. For this project, we will create the encrypted image.</p>
<p><img src="http://blog.dbugs.org/wp-content/uploads/2007/08/secure1.png" title="Disk utility location" alt="Disk utility location" align="absmiddle" /></p>
<p>Once inside Disk Utility, just press the &#8220;<strong>New Image</strong>&#8221; button.</p>
<p><img src="http://blog.dbugs.org/wp-content/uploads/2007/08/secure2.png" title="click New Image" alt="click New Image" align="absmiddle" /></p>
<p>After this, put the settings that you see in the picture. Here I choose the image&#8217;s name secure, the syze 100mb (choose more if you want) and the important thing, in &#8220;<strong>Encryption</strong>&#8220;, choose AES-128. If you want to know more about this encryption, <a href="http://en.wikipedia.org/wiki/Advanced_Encryption_Standard" title="Wiki on AES">read </a>some stuff.</p>
<p><img src="http://blog.dbugs.org/wp-content/uploads/2007/08/secure3.png" title="Settings for the new image" alt="Settings for the new image" align="absmiddle" /></p>
<p>Now, it&#8217;s important to choose a strong password, this can be tested by pressing the little key in the next window. This will show you a green bar, that grows, when password gets stronger. If you prefer, let the utility pick a strong password for you. One final thing to take in account: do not remember password in the Keychain, for improved security! So just uncheck that&#8230; Click OK, and you are all done!<br />
<img src="http://blog.dbugs.org/wp-content/uploads/2007/08/secure4.png" title="image password" alt="image password" align="absmiddle" /><br />
<img src="http://blog.dbugs.org/wp-content/uploads/2007/08/secure5.png" title="more password settings" alt="more password settings" align="absmiddle" /><br />
Now eject the image, and move the secure.dmg inside your pen drive, or anywhere you want! Anytime you want to put new files, just mount the image (double click secure.dmg).<br />
<img src="http://blog.dbugs.org/wp-content/uploads/2007/08/secure6.png" title="secure.dmg" alt="secure.dmg" align="absmiddle" /></p>
<p>Very easy right? Enjoy simple encryption!</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.dbugs.org/2007/08/28/encrypted-images-mac/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Digital Backups Using GMail Storage &#8211; theory</title>
		<link>http://blog.dbugs.org/2007/08/13/backups-gmail-lvm-raid-linux/</link>
		<comments>http://blog.dbugs.org/2007/08/13/backups-gmail-lvm-raid-linux/#comments</comments>
		<pubDate>Mon, 13 Aug 2007 23:21:25 +0000</pubDate>
		<dc:creator>Marco Garcês</dc:creator>
				<category><![CDATA[LVM]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[backups]]></category>
		<category><![CDATA[dbugs]]></category>
		<category><![CDATA[gmail]]></category>
		<category><![CDATA[hacks]]></category>
		<category><![CDATA[theory]]></category>

		<guid isPermaLink="false">http://blog.dbugs.org/2007/08/13/digital-backups-using-gmail-storage-theory/</guid>
		<description><![CDATA[In the past few weeks, I have been dreaming with something that I know is not very practical to do or implement, but in fact, it could be a challenge and a fun thing to look into to. What I propose here in theory is to combine a series of tools, to create a rather [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://blog.dbugs.org/wp-content/uploads/2007/08/dbugs_post_logo1.png" alt="Digital Backups Using GMail Storage" title="Digital Backups Using GMail Storage" align="left" />In the past few weeks, I have been dreaming with something that I know is not very practical to do or implement, but in fact, it could be a challenge and a fun thing to look into to.<br />
What I propose here in theory is to combine a series of tools, to create a rather unique backup solution. What I suggest, is using tools like RAID, LVM, rsync with incremental backups&#8230; OK, you might be thinking: &#8220;but this is normal stuff&#8221;. Now let&#8217;s add the twist! Put these tools to work, using Gmail accounts, and you can begin imagining what I have in mind!<span id="more-79"></span></p>
<p>I came up with a name for this project, and the cool thing, is that I can use my domain as an acronym. So DBUGS stands for Digital Backup Using Gmail Storage.</p>
<p>So, what do I have in mind? Well, I came across some weeks ago, with Richard Jone s&#8217;s project, the <a href="http://richard.jones.name/google-hacks/gmail-filesystem/gmail-filesystem.html" title="gmailfs, currently v. 0.8.0">GmailFS</a>. This project, and using his words, provides a mountable Linux filesystem which uses your Gmail account as its storage medium. I read the entire site, and several other sites on the web, only to find out, that although this already can be achieved, some problems still need to be fixed, but since my project for now, exists only on paper, I hope that in the future, a more robust GmailFS, can be used.</p>
<p>What I propose here, is, to combine some cool open source technologies, to obtain a big, expandable online backup, but things like cost and reliability also come to my mind. Now it&#8217;s possible to create your own Gmail account for free, and all the tools I suggest using are open-source, so the cost factor, it&#8217;s only regarding your Internet connection, which by all means, must be broadband!</p>
<p>So, since it&#8217;s possible to mount GMail accounts locally, I started imagining the possibility, to use 2 accounts in a <a href="http://en.wikipedia.org/wiki/RAID#Standard_RAID_levels" title="Wiki on RAID"><strong>RAID1</strong></a> setup (mirror), where <em><strong>Gmail_account1 </strong></em>would be the mirror of <em><strong>Gmail_account2</strong></em>. This way, data would be backed up twice, in two different locations. If one dies, the other remains alive, while we add a new one to the array. When I say 2 accounts (arrays), I mean <em>n</em> arrays, since, for<strong> RAID1</strong> you can use <em>2+n</em> arrays, this way, data is mirrored against several locations.<br />
<img src="http://blog.dbugs.org/wp-content/uploads/2007/08/raid1.png" alt="RAID1" title="RAID1" align="absmiddle" /></p>
<p>The next step in my theory would be size. Google already offers almost 3GB of storage, and <a href="http://mashable.com/2007/08/09/gmail-going-huge-9000mb/" title="gmail going bigger?">rumors</a> are that they will increase this for 9GB+, but what about if you want more? My thoughts went straight to a <a href="http://en.wikipedia.org/wiki/Logical_Volume_Manager_%28Linux%29" title="Wiki on LVM"><strong>LVM</strong></a> setup, for the extra layer of complexity! Now we would have <em>2+n</em> arrays, each made by <strong>LVM</strong> volumes, which<br />
would be created using several (<em>1 + N</em>) accounts. Confused? I am! This way, each of the <strong>RAID1</strong> array would be stripped across different accounts, and in the future, if we wanted to expand the size of our online backup disk, it was just a matter of creating new accounts, and adding those to each of the <strong>LVM</strong>s, so our <strong>RAID1</strong> array would get bigger.<br />
<img src="http://blog.dbugs.org/wp-content/uploads/2007/08/lvm.png" alt="LVM" title="LVM" align="absmiddle" /></p>
<p>I also thought of security, and the best to do this, is using disk encryption. Another layer is added to the already tricky setup, but this is not important in the beginning, since for testing, I would not use sensitive data.</p>
<p>To perform the backups, I really think it’s a good idea to use some sort of <em>rsync+cp+mv</em> solution that performs incremental backups, without taking too much space. You can find many options for this online, but one my favorites is <a href="http://rsnapshot.org/" title="RSnapshot official site">RSnapshot</a>. A good source of information for this type of backup is Mike Rubel&#8217;s <a href="http://www.mikerubel.org/computers/rsync_snapshots/" title="Myke Rubel's rsync backups">site</a> on the subject.</p>
<p>And that’s it! Several problems must be addressed, and that&#8217;s why I started this post. I don&#8217;t know if it is either a very stupid idea, or if it can be accomplished and become a cool project. I’m working on some solutions, and I really hope I can post something on the subject anytime soon. Why should I even try this? Because I really think this is a cool idea, and perhaps I will not achieve what I intend, but in the process of failing, lies a path of learning&#8230; get it? =)</p>
<p>Please feel free to drop comments on this subject, with suggestions, critics or your help for the project. I&#8217;m more than happy to welcome you aboard. Let’s get this one off the paper, and make it work!</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.dbugs.org/2007/08/13/backups-gmail-lvm-raid-linux/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>I am the key master!</title>
		<link>http://blog.dbugs.org/2007/06/17/ssh-keys-authentication/</link>
		<comments>http://blog.dbugs.org/2007/06/17/ssh-keys-authentication/#comments</comments>
		<pubDate>Sun, 17 Jun 2007 22:42:02 +0000</pubDate>
		<dc:creator>Marco Garcês</dc:creator>
				<category><![CDATA[CLI]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Mac]]></category>
		<category><![CDATA[Tutorial]]></category>

		<guid isPermaLink="false">http://blog.dbugs.org/2007/06/17/i-am-the-key-master/</guid>
		<description><![CDATA[Since I acquired a hosting plan, with the great Dreamhost team, I&#8217;ve been creating some websites, experimenting with stuff, login in, login out, via terminal ssh and also using CyberDuck sftp client for Mac. And, even though I use Linux for a while now, sometimes laziness takes his best, and it seems like my brain [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://blog.dbugs.org/wp-content/uploads/2007/06/key.png" title="icon_key" alt="icon_key" align="left" height="108" width="108" />Since I acquired a hosting plan, with the great <a href="http://www.dreamhost.com/" title="my host" target="_blank">Dreamhost</a> team, I&#8217;ve been creating some websites, experimenting with stuff, login in, login out, via terminal ssh and also using <a href="http://cyberduck.ch/" title="opensource sftp client for Mac" target="_blank">CyberDuck</a> sftp client for Mac. And, even though I use Linux for a while now, sometimes laziness takes his best, and it seems like my brain goes numb! Let me explain&#8230; Every time I login on my server space, I type a username (if I&#8217;m in the terminal this part is skipped, because local user is the same in the remote server, thereby no need to specify user) and a password. This is cool, if you do it one or two times a day, but if you keep doing this a lot, and have a bunch of servers (working in system administration can do this for you =] ) to login, you will get tired typing all this username/passwords all the time! Believe me&#8230; Not to mention the fact that a password scheme, is bad for your security! Why not remove all the need for passwords, and use digital security keys? They are like your <a href="http://en.wikipedia.org/wiki/Secure_Shell#How_SSH_uses_public-key_cryptography_.28with_analogy.29" target="_blank" title="analogy">normal keys</a>, but one keys does it all! <span id="more-65"></span></p>
<p>Here I will cover both the Mac and Linux, because, well, in fact they are almost the same, command line speaking I guess.</p>
<p>So, let&#8217;s skip the romantic part of the post, and let&#8217;s cut to the chase!  =)</p>
<p>First go to your favorite command line client, and create or own set of digital keys. It&#8217;s very simple, don&#8217;t worry, just type <strong><em>ssh-keygen -t dsa</em></strong> (this generates a digital key, using <a href="http://en.wikipedia.org/wiki/Digital_Signature_Algorithm" title="wiki entry for DSA" target="_blank">DSA</a> as security algorithm). It will prompt you the destination for the key, which normally resides inside folder <em>.ssh</em> at your <em>home</em> folder, and if you want to use a passphrase each time you use the keys (let&#8217;s keep it simple for now and say no). Now if you take a look inside <em>.ssh</em> folder, you will now see 2 files or more, but the important ones are <strong><em>id_dsa</em></strong> and <strong><em>id_dsa.pub</em></strong>. This is the pair of keys, one which is public, and the other you keep it for yourself.</p>
<p>Now if you look inside your <em><strong>id_dsa.pub</strong></em>, you will see a bunch of characters, which don&#8217;t mean anything to you. But copy everything to clipboard, for use in your remote server. My looks like this:</p>
<p><img src="http://blog.dbugs.org/wp-content/uploads/2007/06/picture-2.png" alt="cat id_dsa.pub" height="98" width="479" /></p>
<p align="center"><em>(this is all in a single line)</em><br />
<em><strong> </strong></em></p>
<p>There is no problem on showing my public key, because, well, it&#8217;s public. You can learn more why <a href="http://en.wikipedia.org/wiki/Secure_Shell#How_SSH_uses_public-key_cryptography_.28with_analogy.29" target="_blank">here</a>.</p>
<p>Now, login to your server, go to  directory <em>.ssh</em> on you <em>home</em> folder, and edit or create the file <strong><em>authorized_keys</em></strong>; paste your public key inside, all in one line! That&#8217;s it, your done. If you use Dreamhost I found out that both <em>.ssh</em> folder and <strong><em>authorized_keys</em></strong> file must have <strong><em>700</em></strong> permissions set.</p>
<p>Now logout, and login again, and the remote server will match your public key, with your local private key, and if everything goes smoothly, you are in! No passwords, no hassle, no nothing!<img src="http://blog.dbugs.org/wp-content/uploads/2007/06/picture-1.png" title="keys_cyberduck" alt="keys_cyberduck" align="right" height="132" width="362" /></p>
<p>It&#8217;s also possible to make your sftp client to use your keys, just define this in the login options, and check the &#8220;<em>Use public keys authentication</em>&#8221; or something similar, and choose your private key, not your public one. Next time you login, again, no passwords will be asked. Cool eyn?</p>
<p>I did not cover ssh inside Windows systems, but you can do the same using <a href="http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html" title="ssh client tools 4 Window$" target="_blank">Putty</a> and all the tools available. Go <a href="http://sourceforge.net/docs/F02/" target="_blank">here</a> to learn more about ssh authentication inside Windows, using Putty, but also for a more precise explanation on ssh authentication.</p>
<p>In the future it also should be important for you to set a passphrase with your keys, for extra security. But for now this is enough, so enjoy!<br />
Oh, by the way, in case you did not understand the romantic vs chase part of this post, take a look <a href="http://www.phrases.org.uk/meanings/107300.html" title="let's cut to the chase!" target="_blank">here</a>&#8230;</p>
<p><em><strong>Update</strong>: By the way, this post refers to Dreamhost, but you can use this with any server you wish, just make the same steps discribed. </em></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.dbugs.org/2007/06/17/ssh-keys-authentication/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>uTorrent on your Mac? Ye right!</title>
		<link>http://blog.dbugs.org/2007/06/14/utorrent-mac-wine/</link>
		<comments>http://blog.dbugs.org/2007/06/14/utorrent-mac-wine/#comments</comments>
		<pubDate>Thu, 14 Jun 2007 17:36:29 +0000</pubDate>
		<dc:creator>Marco Garcês</dc:creator>
				<category><![CDATA[BitTorrent]]></category>
		<category><![CDATA[Mac]]></category>

		<guid isPermaLink="false">http://blog.dbugs.org/2007/06/14/utorrent-on-your-mac-ye-right/</guid>
		<description><![CDATA[I have to admit! There are a couple of things, that I miss from Windows: &#8220;blue screens of death&#8221;, the security and performance (ah feel the irony), but most of all, and this being the import one, some apps. That&#8217;s right, there are a couple of apps I really enjoy, that don&#8217;t exist in Mac. [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://blog.dbugs.org/wp-content/uploads/2007/06/utorrent_logo.png" title="uTorrent on your Mac?" alt="uTorrent on your Mac?" align="right" height="80" width="79" /> I have to admit! There are a couple of things,  that I miss from Windows: &#8220;blue screens of death&#8221;, the security and performance (ah feel the irony), but most of all, and this being the import one, some apps. That&#8217;s right, there are a couple of apps I really enjoy, that don&#8217;t exist in Mac. There&#8217;s no good eMule client (and stop yelling about aMule, that&#8217;s not the same!) and I miss using my favorite BitTorrent client, <a href="http://www.utorrent.com/" title="uTorrent website" target="_blank">uTorrent</a>!<span id="more-58"></span>This is the fastest and smartest BitTorrent client out there, and it&#8217;s a shame you don&#8217;t have it on Mac. Well, not native, because now there is a really smart way to run this clean on Mac, so just keep reading!</p>
<p style="text-align: center"><img src="http://blog.dbugs.org/wp-content/uploads/2007/06/utorrent_mac.png" alt="here it is running inside Mac OS X!" height="298" width="479" /></p>
<p>If you come from Linux, you probably are familiar with the <a href="http://www.winehq.org/" title="the WINE project">Wine</a> project, which is an Open Source implementation of the Windows API on top of X, OpenGL, and  Unix. This allows you to run a great number of Windows only applications, without emulating Windows itself. And you might ask: what about Mac OS X? Doesn&#8217;t it descend from Unix? That&#8217;s right, Mac OS X kernel is called <a href="http://developer.apple.com/opensource/index.html" title="Apple's Darwin kernel" target="_blank">Darwin</a>, and comes in direct line from Unix.<br />
Wine is also implemented in Mac, and there are 2 choices. The first is a commercial one from the guys at <a href="http://www.codeweavers.com/" title="CodeWeavers website" target="_blank">CodeWeavers</a>, and is called <em>CrossOver</em>. But if you are like me, you will use a free (both as beer and freedom), version of Wine for Mac, which is called <em>Darwine</em> (very clever, Darwin + Wine, AH!).</p>
<p><img src="http://blog.dbugs.org/wp-content/uploads/2007/06/utorrent_tray.png" title="uTorrent tray icon" alt="uTorrent tray icon" align="right" height="187" width="164" />Its very easy, just grab a copy of <em><a href="http://sourceforge.net/project/showfiles.php?group_id=69890" title="Darwine download" target="_blank">Darwine</a></em>, put it on your <em>Applications</em> folder and make sure you also have installed <em>X11</em> that came with your Mac OS X Install DVD 1. Now grab <em>uTorrent.exe</em>, run <em>WineHelper</em> (from the Darwine folder you have just installed), and open <em>uTorrent.exe</em>. If everything goes smoothly, you should be seeing uTorrent client running in your desktop. There are a few problems with fonts, a some times it looks like uTorrent is &#8220;freezed&#8221;, but in fact you only have to click <strong><em>show/hide</em></strong> from <em>uTorrent</em>&#8216;s tray icon, and it will come back alive and kicking!</p>
<p>I keep hoping that uTorrent gets ported do Mac OS X, so I can run it native, but for now this is good enough for me!</p>
<p>Enjoy this one, and post your feedback.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.dbugs.org/2007/06/14/utorrent-mac-wine/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Mac OS X reborn!</title>
		<link>http://blog.dbugs.org/2007/05/31/mac-os-x-reborn/</link>
		<comments>http://blog.dbugs.org/2007/05/31/mac-os-x-reborn/#comments</comments>
		<pubDate>Thu, 31 May 2007 22:54:34 +0000</pubDate>
		<dc:creator>Marco Garcês</dc:creator>
				<category><![CDATA[Blogs]]></category>
		<category><![CDATA[Mac]]></category>

		<guid isPermaLink="false">http://blog.dbugs.org/2007/05/31/mac-os-x-reborn/</guid>
		<description><![CDATA[Did my first full clean up to my Macbook&#8230; Everything went smoothly, and I can only say, once again Apple has everything going in the right direction! I am a big fan of GNU Linux, and other UX alike, and I recognize in the last couple of years, Linux as come a long long way, [...]]]></description>
			<content:encoded><![CDATA[<p>Did my first full clean up to my Macbook&#8230; Everything went smoothly, and I can only say, once again Apple has everything going in the right direction!</p>
<p><span id="more-56"></span></p>
<p>I am a big fan of GNU Linux, and other UX alike, and I recognize in the last couple of years, Linux as come a long long way, with every modern distro being able to recognize your hardware (at least most of them); I was positively surprised to install the latest <a href="http://www.ubuntu.com/" title="Official Ubuntu's website" target="_blank">Ubuntu</a> on my girlfriend&#8217;s laptop, and just like in my Mac, I was able to connect right away to my WIFI connection with WPA TKIP security, with no hassle.</p>
<p>Now, in my humble opinion, I believe the industry is following Apple and their ideas. Things just work, stuff does not get in the way. You tend to feel, that everything, from instant messaging, to emailing, media organizing or just file browsing, have more productivity. Hell, even the hardware doen not get in the way! I might be wrong, but it&#8217;s a strong feeling.<br />
I also believe Apple should  follow the  Open Source movement, because they have very good ideas, very good hardware, and they would win a lot more if they just shared with the rest of the world&#8230; I truly believe this, but I also know this is daydreaming (I am singing in my head, Lupe Fiasco&#8217;s &#8220;<a href="http://www.amazon.com/Food-Liquor-Lupe-Fiasco/dp/B000FS9MTW/ref=pd_bbs_sr_1/105-3140001-3258802?ie=UTF8&amp;s=music&amp;qid=1180651594&amp;sr=8-1" title="Food and Liquor, Lupe Fiasco" target="_blank">Daydreamin</a>&#8216;)</p>
<p>Getting back to the clean up! I did my backups to a external USB drive, rebooted with the Mac OS X inside the drive, and booted using the <strong>C </strong>key.<br />
This took me inside a install  &#8220;OS&#8221;, very similar to the real thing. Here, I had access to disk utility&#8217;s, log viewer. I did the full install, without answering to 100 questions! This felt very good, once again, does not get in the way. It&#8217;s simple, easy, and you don&#8217;t have to be a astronaut to get away without problems!</p>
<p>When everything was installed, it took me 5 minutes to put my login info, to configure my WIFI connection, and I was up and running!<br />
When I bought this Macbook, I messed everything around, just to get to know the operating system. With time everything felt sluggish, and not snappy anymore, so now I have the full system back, and from now on, I will keep it this way, at least I&#8217;ll try! =)</p>
<p>Stay in touch!</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.dbugs.org/2007/05/31/mac-os-x-reborn/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- Dynamic Page Served (once) in 0.775 seconds -->
