<?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; Mac</title>
	<atom:link href="http://blog.dbugs.org/category/tutorial/mac/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.dbugs.org</link>
	<description>where knowledge meets creation</description>
	<lastBuildDate>Fri, 04 Feb 2011 16:13:00 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>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[security]]></category>
		<category><![CDATA[Tutorial]]></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>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>
		<item>
		<title>WIFI inside e-U</title>
		<link>http://blog.dbugs.org/2007/02/22/wifi-inside-e-u/</link>
		<comments>http://blog.dbugs.org/2007/02/22/wifi-inside-e-u/#comments</comments>
		<pubDate>Thu, 22 Feb 2007 11:05:40 +0000</pubDate>
		<dc:creator>Marco Garcês</dc:creator>
				<category><![CDATA[Mac]]></category>
		<category><![CDATA[WIFI]]></category>

		<guid isPermaLink="false">http://blog.dbugs.org/2007/02/22/wifi-inside-e-u/</guid>
		<description><![CDATA[I had a quick break, and went to one of my University&#8217;s coffees&#8230; Since my school is part of the e-U project, we have WIFI all over the place! When we connect, we receive instructions for Windows machines, but Linux and Mac, are left aside&#8230; Since I&#8217;m connecting with a macbook, I figured out how [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://blog.dbugs.org/wp-content/uploads/2007/02/coffee.jpg" title="coffee rulz!" alt="coffee rulz!" align="right" height="91" width="122" /></p>
<p>I had a quick break, and went to one of my University&#8217;s coffees&#8230; Since my school is part of the e-U project, we have WIFI all over the place! When we connect, we receive instructions for Windows machines, but Linux and Mac, are left aside&#8230;<br />
Since I&#8217;m connecting with a macbook, I figured out how to get online, with no hassle and  left the instructions here!<span id="more-19"></span></p>
<p>Its very simple&#8230; Just go to the WIFI options on  your mac,  and choose  the <span style="font-style: italic"><span style="font-weight: bold">Other&#8230; </span></span>option.</p>
<p style="text-align: center"><img src="http://blog.dbugs.org/wp-content/uploads/2007/02/wifi1.jpg" title="WIFI, choose other…" alt="WIFI, choose other…" /></p>
<p>Now just create a new network, called <strong>e-U </strong>with 802.11x wireless security option enabled. Insert your credentials (should be similar to myne, except for the first part of the user name and, the password):</p>
<p style="text-align: center"><img src="http://blog.dbugs.org/wp-content/uploads/2007/02/wifi2.jpg" alt="insert your credentials" /></p>
<p>Just click OK and when the certification mambo jambo appears, just click <strong>Continue</strong></p>
<p style="text-align: center"><img src="http://blog.dbugs.org/wp-content/uploads/2007/02/wifi3.jpg" title="click continue… =)" alt="click continue… =)" width="500" /></p>
<p>If everything works right, you are now connected.. One last thing though: do not forget to add the local proxies, else you wont have access outside. My proxy is <strong>proxy2.si.ualg.pt:8080</strong>. Just change it for your network (ask the local computer support)</p>
<p>That&#8217;s it! Time to go back to classes&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.dbugs.org/2007/02/22/wifi-inside-e-u/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

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

