<?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 WebSystème &#187; World Gone Web</title>
	<atom:link href="http://www.worldgoneweb.com/category/systeme/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>A Single User Across Multiple Computers</title>
		<link>http://www.worldgoneweb.com/2011/a-single-user-across-multiple-computers/</link>
		<comments>http://www.worldgoneweb.com/2011/a-single-user-across-multiple-computers/#comments</comments>
		<pubDate>Tue, 26 Apr 2011 08:21:23 +0000</pubDate>
		<dc:creator>shalfon</dc:creator>
				<category><![CDATA[Computing]]></category>
		<category><![CDATA[Mac OS X]]></category>
		<category><![CDATA[Me myself I]]></category>
		<category><![CDATA[Système]]></category>
		<category><![CDATA[backup]]></category>
		<category><![CDATA[cloud]]></category>
		<category><![CDATA[external drive]]></category>
		<category><![CDATA[home folder]]></category>
		<category><![CDATA[iMac]]></category>
		<category><![CDATA[iPhone]]></category>
		<category><![CDATA[iTunes]]></category>
		<category><![CDATA[macbook]]></category>
		<category><![CDATA[macbookpro]]></category>
		<category><![CDATA[mobile]]></category>
		<category><![CDATA[mobileme]]></category>
		<category><![CDATA[multiple macs]]></category>
		<category><![CDATA[portable]]></category>
		<category><![CDATA[Sync]]></category>
		<category><![CDATA[user]]></category>

		<guid isPermaLink="false">http://www.worldgoneweb.com/?p=711</guid>
		<description><![CDATA[The problem : The problem is famous : how to keep multiple computers in sync in order to have access to our data no matter where we are, no matter which computer we are using. It isn&#8217;t the first time I wonder about how to improve this aspect of my computer setup and I must [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.worldgoneweb.com/wp-content/uploads/2011/04/multiples.png"><img class="aligncenter size-full wp-image-712" title="multiples" src="http://www.worldgoneweb.com/wp-content/uploads/2011/04/multiples.png" alt="" width="363" height="323" /></a></p>
<h1>The problem :</h1>
<p>The problem is famous : how to keep multiple computers in sync in order to have access to our data no matter where we are, no matter which computer we are using. It isn&#8217;t the first time I wonder about how to improve this aspect of my computer setup and I must say that Dropbox, Evernote, Google Calendar, GMail and a lot of other &#8220;cloud&#8221; solutions as they are called have helped tremendously over the years. Still, <a title="Dead iMac, a geek’s nightmare (with Happy Ending)" href="http://www.worldgoneweb.com/2011/dead-imac-a-geeks-nightmare-with-happy-ending/">this week iMac incident</a> once again brought the problem to the surface.</p>
<h1>A little background :</h1>
<p>My primary computer is an iMac based at home. I work as a software engineer so I also have a work computer. At the moment, this is a brand new MacBookPro. I also own a three year old MacBook which I use when we are away from home (unload photos, check emails, simple things like that).</p>
<p>When my iMac broke down earlier this week, I wasn&#8217;t without a computer. I had two more. Still, I felt left out because my various emails accounts were not setup on either MacBooks (my work computer doesn&#8217;t carry any of my personal data), my iCal wasn&#8217;t setup on any of these machines to track my appointments. My on-going projects on the iMac (personal development, Lightroom work, etc) was also stuck on the iMac&#8217;s hard drive.</p>
<h1>A possible solution, making my Mac User portable :</h1>
<p>The problem is known and a lot of people have solved it many different ways.</p>
<p>Apple tries to answer it with MobileMe, Microsoft created LiveMesh, etc. The problem is different for each of us as we all have a different setup. Some might decide to simply sync (using rsync for example) two computers to be exact replicas of each others. With today&#8217;s bandwidth, this is a solution just as valid as any other.Of course, the problem also depends on your setup : do you have several personal computers ? Do they all run the same OS ? Are they on the same network, etc ?</p>
<p>My situation has the following characteristics</p>
<ul>
<li>I am the only person using these three computers (boyfriend is allergic to Mac somehow, he might launch Opera to check his emails on the MacBook when we&#8217;re away from home but that is an effort for him)</li>
<li>All three machines are running Mac OS X Snow Leopard</li>
<li>I usually do not use two of these computers at the same time. I work on the MacBook Pro in the daytime, turn it down in the evening and use iMac for personal stuff. If we&#8217;re going away, I&#8217;ll update the MacBook (load music and stuff on it) and pack it while I&#8217;ll switch off the iMac.</li>
</ul>
<p>Because of my situation, it seems to me that I can carry my Mac User around without taking too much risks in terms of file conflicts.</p>
<h1>Testing</h1>
<p>While I had my iMac repaired, I went and shopped for a 1TB 2.5 external hard drive. I ended up with a Western Digital Element SE (80 euros).<br />
<a href="http://www.worldgoneweb.com/wp-content/uploads/2011/04/wdbox.jpg"><img class="aligncenter size-full wp-image-713" title="wdbox" src="http://www.worldgoneweb.com/wp-content/uploads/2011/04/wdbox.jpg" alt="" width="250" height="250" /></a></p>
<h2>Here&#8217;s the idea :</h2>
<p>Using <a href="http://www.bombich.com/">Carbon Copy Cloner</a>, I will periodically sync my iMac&#8217;s Home Folder on the Western Digital Element. That simply means that my main Mac user will be available on this external drive with all my personal data (Music, Photos) and profile (Mail.app configuration, iCal configuration, etc).</p>
<p>On the MacBookPro, I renamed my user from samo (which I had used across all computers) to samowork. Then, I created another user called samo whose Home Folder is the Western Digital Element. I logged in with that user, fired Mail. It works, all my personal emails were there and the work emails were left out. So, from now on, if my iMac gets sick again, I can use another computer as a temporary replacement. Better yet, that will not leave any trace on that other computer (it&#8217;s all kept on the external drive).</p>
<p>On the MacBook, same procedure. I renamed my user to samobook and created another samo user whose Home Folder is the Western Digital. Now, when we are on the move, I don&#8217;t only have a Mac with me (which is cool) but I have MY Mac with all my stuff and that&#8217;s WAY COOL.</p>
<p>Also, the Western Digital Element also acts as an extra backup of my personal data (in addition to the Time Machine backup I make weekly)</p>
<p>I just completed this setup (doing a manual copy for now, not a CCC backup) of my Home folder and didn&#8217;t encounter a problem yet.</p>
<h2>What&#8217;s left to do ?</h2>
<ul>
<li>Automating the sync (with CCC) or rsync and a cron</li>
<li>Making sure that, when running my profile on a different computer, I can sync my iPhone and not loose my media or apps (see also my article about having <a title="2 Macs, 2 iTune Libraries, 1 iPhone: Getting it All Together" href="http://www.worldgoneweb.com/2010/2-macs-2-itune-libraries-1-iphone-getting-it-all-together/">1 phone and multiple macs</a>)</li>
</ul>
<h2>Going all the way ?</h2>
<p>I suppose, to go all the way, I should use the Western Digital drive as my Home Folder on the iMac as well. No need to sync anymore but that would mean always having that drive hooked up and not using it as a backup anymore. Also, if there is ever a conflict somewhere, I&#8217;d rather just be able to consider the iMac the master Home folder and the rest as a slave. For now, I&#8217;ll experiment that way.</p>
<h2>What you need to know :</h2>
<ul>
<li>If you wish to use your main account on the other computers (in my case, on the laptops), I would recommend pluging the external drive BEFORE logging in your account. I do not know what would happen if I was to login and my Home Folder wasn&#8217;t found.</li>
<li>You SHOULD only use your main account on what computer at a time. If I am using my account on a MacBook, I&#8217;d better sync the WD back with the iMac before using my iMac (to avoid conflicts between files)</li>
<li>Changing account&#8217;s shortnames and home folder is possible (and seems to be very well handled by OS X). Still there are dangerous operations. Check out the following pages of the Apple support site before proceeding<br />
<a href="http://support.apple.com/kb/ht1428">How to change the shortname or home folder name</a><br />
<a href="http://chris.pirillo.com/how-to-move-the-home-folder-in-os-x-and-why/">How to move the home folder</a></li>
<li>This setup doesn&#8217;t not synchronize the installed Applications. Now I can see my photos on the work MacBookPro but I would need to install my Lightroom there to work on them (which I probably won&#8217;t do) but I could easily edit a personal project on my work computer since Textmate is installed across all my machines (and setup exactly the same way every where thanks to DropBox)</li>
</ul>
<p>Anyway, I thought the idea was worth sharing as it might really answer the problem for me for now (still wondering how MobileMe will evolve).</p>
<h1>Procedure :</h1>
<h2>Source machine :</h2>
<p style="text-align: left;">Here is how to setup the backup from the imac&#8217;s home folder to the WD external drive using CCC (Carbon Copy Cloner)</p>
<ol>
<li>Download and install <a href="http://www.bombich.com/">Carbon Copy Cloner</a>, launch the software</li>
<li>On the left, select your <strong>Macintosh HD</strong> and browse to <strong>Users</strong> &gt; &lt;<strong>yourUser</strong>&gt; (ie samo)<br />
<img title="Carbon Copy Cloner" src="../wp-content/uploads/2011/04/Screen-shot-2011-04-25-at-10.22.05-PM.png" alt="" width="592" height="515" /></li>
<li>On the right, select your external hard drive (I formatted the volume and named it samo)</li>
<li>Click on <strong>Save Task</strong> button</li>
<li>In the following screen, name your task and schedule it<br />
<img title="CCC task" src="http://www.worldgoneweb.com/wp-content/uploads/2011/04/Screen-shot-2011-04-25-at-10.22.58-PM.png" alt="" width="608" height="444" /></li>
<li>To run and test it immediately, press Run<br />
<img title="CCC running" src="http://www.worldgoneweb.com/wp-content/uploads/2011/04/Screen-shot-2011-04-25-at-10.23.11-PM.png" alt="" width="369" height="211" /></li>
<li>This will take a while&#8230;</li>
<li>Check the content of your external hard drive, you should find all the files you have in your Home Folder</li>
<li>Note that, next time, the backup will take a lot less time as only modified/added files will be transfered (CCC uses rsync which backups incrementally)</li>
</ol>
<p>Some my prefer to use rsync manually and be more in control of their backup.</p>
<p>Here&#8217;s a working code sample to get your started :</p>
<p>Sync the whole samo Home Folder (dry-run mode + verbose move, will only list what rsync would have done)</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">rsync <span style="color: #660033;">-r</span> <span style="color: #660033;">-v</span> <span style="color: #660033;">--dry-run</span>   <span style="color: #000000; font-weight: bold;">/</span>Users<span style="color: #000000; font-weight: bold;">/</span>samo<span style="color: #000000; font-weight: bold;">/</span> <span style="color: #000000; font-weight: bold;">/</span>Volumes<span style="color: #000000; font-weight: bold;">/</span>samo<span style="color: #000000; font-weight: bold;">/</span></div></td></tr></tbody></table></div>
<p>Actually launch the command</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">rsync -r   <span style="color: #000000; font-weight: bold;">/</span>Users<span style="color: #000000; font-weight: bold;">/</span>samo<span style="color: #000000; font-weight: bold;">/</span> <span style="color: #000000; font-weight: bold;">/</span>Volumes<span style="color: #000000; font-weight: bold;">/</span>samo<span style="color: #000000; font-weight: bold;">/</span></div></td></tr></tbody></table></div>
<p>Delete the files that are on the external HD if there aren&#8217;t on the source computer anymore</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">rsync <span style="color: #660033;">-r</span> --delete   <span style="color: #000000; font-weight: bold;">/</span>Users<span style="color: #000000; font-weight: bold;">/</span>samo<span style="color: #000000; font-weight: bold;">/</span> <span style="color: #000000; font-weight: bold;">/</span>Volumes<span style="color: #000000; font-weight: bold;">/</span>samo<span style="color: #000000; font-weight: bold;">/</span></div></td></tr></tbody></table></div>
<p>Do not delete the files on the external HD, do not touch the ones that were modified on the external HD</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">rsync <span style="color: #660033;">-r</span> -u   <span style="color: #000000; font-weight: bold;">/</span>Users<span style="color: #000000; font-weight: bold;">/</span>samo<span style="color: #000000; font-weight: bold;">/</span> <span style="color: #000000; font-weight: bold;">/</span>Volumes<span style="color: #000000; font-weight: bold;">/</span>samo<span style="color: #000000; font-weight: bold;">/</span></div></td></tr></tbody></table></div>
<p>A lot more options and information about using rsync can be found in posts such as <a href="http://www.thegeekstuff.com/2010/09/rsync-command-examples/">15 rsync command examples</a>.</p>
<h2>Target machines :</h2>
<p>Here is the procedure I followed on the two laptops to move my current user &#8220;samo&#8221; and create the main one (with its exterrnal data).</p>
<ol>
<li>Go to <strong>System Preferences</strong> and go to the <strong>Accounts</strong> section</li>
<li>Create a new administrator user (ie login admin, password admin). We will delete it when we&#8217;re done, it&#8217;s just a user I create in case something goes wrong I can always log back with him as Administrator and solve the problem</li>
<li>OPTIONAL: if you already have an user on this computer named like your main user, you need to edit its name and Home Folder name&#8230;<br />
Launch Terminal.<br />
Navigate to /Users (cd /Users)<br />
Rename your user&#8217;s Home Folder (ie mv samo samobook)<br />
Back in the Accounts management, click on the lock to allow changes (if necessary)<br />
Right click on your user&#8217;s name in the list on the left and enter the <strong>Advanced Options</strong><br />
Change your user&#8217;s shortname (ie from samo to samobook)<br />
Change your user&#8217;s home directory (ie from /Users/samo to /Users/samobook)<br />
Restart or Logout and Log back in to make sure your user still works&#8230;</li>
<li>Return to the System Preferences &gt; Accounts section and create yet a new user. Enter the account name of your main user (ie samo)</li>
<li>Right click this new user in the list on the left, edit the home directory and select the Home Folder you copied on an external drive</li>
<li>At this point, you can delete the temporary admin user (created at step 2), then logout and back in as your main user to see if everything worked for you</li>
</ol>
<h1 style="text-align: left;"><a href="http://www.worldgoneweb.com/wp-content/uploads/2011/04/Screen-shot-2011-04-25-at-9.49.03-AM.png"><img class="aligncenter size-full wp-image-718" title="Screen shot 2011-04-25 at 9.49.03 AM" src="http://www.worldgoneweb.com/wp-content/uploads/2011/04/Screen-shot-2011-04-25-at-9.49.03-AM.png" alt="" width="598" height="489" /></a>Last but not Least</h1>
<p style="text-align: left;"><a href="http://www.worldgoneweb.com/wp-content/uploads/2011/04/iTunes.png"><img class="alignleft size-thumbnail wp-image-724" title="iTunes" src="http://www.worldgoneweb.com/wp-content/uploads/2011/04/iTunes-150x150.png" alt="" width="150" height="150" /></a>Once your Mac user is following you everywhere, you can sync your iPhone/iPad (including the media ie apps, music, etc) from any of your computers without loosing data on your device.<br />
<strong>Note:</strong> you still need to authorize each of the computers you use for purchased items so this trick won&#8217;t enable you to bypass the 5 computer limitation.</p>
<p style="text-align: left;">&nbsp;</p>
<p style="text-align: left;">I hope this setup will work for me and hopefully help other multi-mac users out there&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.worldgoneweb.com/2011/a-single-user-across-multiple-computers/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:thumbnail url="http://www.worldgoneweb.com/wp-content/uploads/2011/04/multiples-150x150.png" />
		<media:content url="http://www.worldgoneweb.com/wp-content/uploads/2011/04/multiples.png" medium="image">
			<media:title type="html">multiples</media:title>
			<media:thumbnail url="http://www.worldgoneweb.com/wp-content/uploads/2011/04/multiples-150x150.png" />
		</media:content>
		<media:content url="http://www.worldgoneweb.com/wp-content/uploads/2011/04/wdbox.jpg" medium="image">
			<media:title type="html">wdbox</media:title>
			<media:thumbnail url="http://www.worldgoneweb.com/wp-content/uploads/2011/04/wdbox-150x150.jpg" />
		</media:content>
		<media:content url="http://www.worldgoneweb.com../wp-content/uploads/2011/04/Screen-shot-2011-04-25-at-10.22.05-PM.png" medium="image">
			<media:title type="html">Carbon Copy Cloner</media:title>
		</media:content>
		<media:content url="http://www.worldgoneweb.com/wp-content/uploads/2011/04/Screen-shot-2011-04-25-at-10.22.58-PM.png" medium="image">
			<media:title type="html">CCC task</media:title>
		</media:content>
		<media:content url="http://www.worldgoneweb.com/wp-content/uploads/2011/04/Screen-shot-2011-04-25-at-10.23.11-PM.png" medium="image">
			<media:title type="html">CCC running</media:title>
		</media:content>
		<media:content url="http://www.worldgoneweb.com/wp-content/uploads/2011/04/Screen-shot-2011-04-25-at-9.49.03-AM.png" medium="image">
			<media:title type="html">Screen shot 2011-04-25 at 9.49.03 AM</media:title>
			<media:thumbnail url="http://www.worldgoneweb.com/wp-content/uploads/2011/04/Screen-shot-2011-04-25-at-9.49.03-AM-150x150.png" />
		</media:content>
		<media:content url="http://www.worldgoneweb.com/wp-content/uploads/2011/04/iTunes.png" medium="image">
			<media:title type="html">iTunes</media:title>
			<media:thumbnail url="http://www.worldgoneweb.com/wp-content/uploads/2011/04/iTunes-150x150.png" />
		</media:content>
	</item>
		<item>
		<title>Dead iMac, a geek&#8217;s nightmare (with Happy Ending)</title>
		<link>http://www.worldgoneweb.com/2011/dead-imac-a-geeks-nightmare-with-happy-ending/</link>
		<comments>http://www.worldgoneweb.com/2011/dead-imac-a-geeks-nightmare-with-happy-ending/#comments</comments>
		<pubDate>Sat, 23 Apr 2011 23:03:50 +0000</pubDate>
		<dc:creator>shalfon</dc:creator>
				<category><![CDATA[Computing]]></category>
		<category><![CDATA[Mac OS X]]></category>
		<category><![CDATA[Système]]></category>
		<category><![CDATA[apple]]></category>
		<category><![CDATA[Hard Drive Failure]]></category>
		<category><![CDATA[HDD Fan Control]]></category>
		<category><![CDATA[iMac]]></category>
		<category><![CDATA[mac os x]]></category>
		<category><![CDATA[Snow Leopard]]></category>
		<category><![CDATA[Time Machine]]></category>

		<guid isPermaLink="false">http://www.worldgoneweb.com/?p=701</guid>
		<description><![CDATA[On tuesday this week, my iMac started acting up. It would boot successfully, run normally for a while but sometimes hang from 20 to 60 seconds in a row with the spinning beach ball cursor. I quickly identified two things : hangs would occur when launching apps or triggering the launcher (spotlight, Alfred) which meant [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.worldgoneweb.com/wp-content/uploads/2011/04/broken-imac.jpg"><img class="alignleft size-thumbnail wp-image-702" title="broken-imac" src="http://www.worldgoneweb.com/wp-content/uploads/2011/04/broken-imac-150x150.jpg" alt="" width="150" height="150" /></a>On tuesday this week, my iMac started acting up. It would boot successfully, run normally for a while but sometimes hang from 20 to 60 seconds in a row with the spinning beach ball cursor.</p>
<p>I quickly identified two things :</p>
<ol>
<li>hangs would occur when launching apps or triggering the launcher (spotlight, Alfred) which meant &#8220;hard drive access&#8221;</li>
<li>with the help of the Activity Monitor I could tell that the hangings were echoed by flatlines on the hard disk activity.</li>
</ol>
<p>My hard disk was going out with all my data. Or maybe my whole computer was dying (of course, warranty had expired 3 months ago).</p>
<p>Next actions :</p>
<ol>
<li>insert my time capsule drive in the USB dock and made sure I would have a current backup</li>
<li>managed (see below) to talk to a Genius from the Apple Store and had my diagnose confirmed : the hard disk was probably causing the problem</li>
</ol>
<p><em>Side note : </em>the Apple Store Geniuses are not to answer the phone. How did I get to talk to one ? My mother was shopping that day and spotted an Apple Store. That is one of the things that makes her think of me and call. She called saying &#8220;I&#8217;m at the Apple Store, did you need anything?&#8221; She implied something about the iPad2 my whole family knows I&#8217;d like to get but I just said &#8220;Yeah, fix my iMac&#8221;&#8230; Then I asked her to see if she could find a &#8220;Genius&#8221;. It was a week day, 11am. They were not too busy and one reluctantly agreed to take my mother&#8217;s iPhone and talk to me. He wouldn&#8217;t really garanty anything over the phone but he felt, like me, the hard drive was to be checked. He asked me to bring the computer to the Store. Little did he know I live 1000km away from my parents and am unlikely to bring my iMac to his store.</p>
<p>Now this was turning into a geek&#8217;s nightmare. My iMac was going out fast. The hangs got more frequent and lasted longer. Mail.app would crash more than anything else. No more emails, no more calendars, no more address book (well, on the iPhone right?) I could have changed the HD right away but somehow, I suddenly realized I didn&#8217;t even know how to open the iMac&#8230; A quick glance around youTube taught me that opening the iMac requires suction cups (whatever that may be) and looks like a pretty dangerous (for the iMac) operation.</p>
<p><a href="http://www.worldgoneweb.com/wp-content/uploads/2011/04/imac.jpg"><img class="aligncenter size-full wp-image-703" title="imac" src="http://www.worldgoneweb.com/wp-content/uploads/2011/04/imac.jpg" alt="" width="500" height="373" /></a></p>
<p>I have built PC before but somehow, I didn&#8217;t feel like driving to the hardware store, ask for the French translation of suction cups and open the beast. I went back to my work (on the work MacBookPro) and left it at that.</p>
<p>Next steps (two days later). I took an apointment with the Apple Store Genius for the week end but still wanted to make sure the drive was at fault. I ran Disk Utility. It found errors. So I inserted the Snow Leopard Disk, pressed &#8216;C&#8217; during bootup and launched the Disk Utility from there. I repaired the disk and that went well. Rebooted, the problem remained.</p>
<p>Another attempt, the Apple Hardware Check accessible by booting with the OS CD in and pressing &#8216;D&#8217; during bootup. It found no errors.</p>
<p>Now, a quick Google search taught me that : replacing the drive at the Apple Store would cost 200 euros and take a week. That is another FULL WEEK without emails, calendars, todo list, music collection, lightroom, you know&#8230; no computer <img src='http://www.worldgoneweb.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>So, at this point, I cancelled the appointment with the Genius and went another route.The week end came and I took the iMac to a unofficial Apple Genius who claimed he knew how to change the drive and open the machine. I picked a 2TB 7200 rpm drive to replace the original 1Tb Seagate. This is where it&#8217;s going to get fun later : the hard drive model has changed&#8230;</p>
<p>Repair went well, I reinstalled Snow Leopard, it worked good, no hanging. TimeMachine backups are absolutely awesome. In 4 hours, I had all my data back, all my settings, all my applications reinstalled. TimeMachine has to be the thing PC lacks the most.</p>
<p>BUT, after a few minutes of &#8220;normal&#8221; use, a problem surfaced. The iMac was now noisy (another thing Macs do better than my home built PCs is running quietly). The fan was going nuts in there for no apparent reason. I installed the iStats widget on the dashboard (highly recommended) and realized that, even though the HDD temperature was read at 40 C, the HDD fan was spinning at 5400rpm. Insane !</p>
<p>Reading here and there, I realized this was due to the hard drive change. Either the temperature sensor has been messed with or damaged or, simply, the new hard drive is incompatible and the fan just doesn&#8217;t know what to do so it just spins at max speed. The first thing to do in that case is to <a href="http://support.apple.com/kb/ht3964">reset the SMC</a>. That didn&#8217;t do it for me though. I read about several fan control apps (most notably <a href="http://www.eidac.de/?p=134">smcFanControl</a> which seems to be famous) but none allowed to reduce the fan speed, they could only set the minimal fan speed or increase it. Finally, I found <a title="HDD Fan Control - Mac OS X" href="http://www.hddfancontrol.com/HDDFanControl/HDD_Fan_Control.html">HDD Fan Control by Ben Surtees</a>. Installed it and instantly, the HDD fan went back down to 1600 rpm and the iMac was silent again. What a relief!</p>
<p>What a week, I&#8217;m glad to have the iMac back. Many many thanks to TimeMachine and Ben Surtees for saving the week end.</p>
<p><a href="http://www.worldgoneweb.com/wp-content/uploads/2011/04/big_600-imac21.jpg"><img class="aligncenter size-full wp-image-704" title="big_600-imac21" src="http://www.worldgoneweb.com/wp-content/uploads/2011/04/big_600-imac21.jpg" alt="" width="458" height="377" /></a>Oh by the way, if you didn&#8217;t do it already, take a minute in this three day week end to setup your time machine backup. Hardware doesn&#8217;t last forever.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.worldgoneweb.com/2011/dead-imac-a-geeks-nightmare-with-happy-ending/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:thumbnail url="http://www.worldgoneweb.com/wp-content/uploads/2011/04/broken-imac-150x150.jpg" />
		<media:content url="http://www.worldgoneweb.com/wp-content/uploads/2011/04/broken-imac.jpg" medium="image">
			<media:title type="html">broken-imac</media:title>
			<media:thumbnail url="http://www.worldgoneweb.com/wp-content/uploads/2011/04/broken-imac-150x150.jpg" />
		</media:content>
		<media:content url="http://www.worldgoneweb.com/wp-content/uploads/2011/04/imac.jpg" medium="image">
			<media:title type="html">imac</media:title>
			<media:thumbnail url="http://www.worldgoneweb.com/wp-content/uploads/2011/04/imac-150x150.jpg" />
		</media:content>
		<media:content url="http://www.worldgoneweb.com/wp-content/uploads/2011/04/big_600-imac21.jpg" medium="image">
			<media:title type="html">big_600-imac21</media:title>
			<media:thumbnail url="http://www.worldgoneweb.com/wp-content/uploads/2011/04/big_600-imac21-150x150.jpg" />
		</media:content>
	</item>
		<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>Convert a VMWare Player appliance to be used with Virtual Box</title>
		<link>http://www.worldgoneweb.com/2011/convert-a-vmware-player-appliance-to-be-used-with-virtual-box/</link>
		<comments>http://www.worldgoneweb.com/2011/convert-a-vmware-player-appliance-to-be-used-with-virtual-box/#comments</comments>
		<pubDate>Sun, 17 Apr 2011 08:08:54 +0000</pubDate>
		<dc:creator>shalfon</dc:creator>
				<category><![CDATA[Computing]]></category>
		<category><![CDATA[Mac OS X]]></category>
		<category><![CDATA[Système]]></category>
		<category><![CDATA[Terminal]]></category>
		<category><![CDATA[Appliance]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[Conversion]]></category>
		<category><![CDATA[kernel panic]]></category>
		<category><![CDATA[qemu]]></category>
		<category><![CDATA[virtual box]]></category>
		<category><![CDATA[virtual machine]]></category>
		<category><![CDATA[VMWare Player]]></category>

		<guid isPermaLink="false">http://www.worldgoneweb.com/?p=666</guid>
		<description><![CDATA[As I understand, this post might soon be outdated if the next version of Virtual Box does manage to natively run VMWare Player appliances. Still, this version hasn&#8217;t be released yet and, since the VMWare Player doesn&#8217;t exist for OS X, I had to convert an appliance from VMWare player to Virtual Box. Here are [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.worldgoneweb.com/wp-content/uploads/2011/04/Screen-shot-2011-04-17-at-10.07.00-AM.png"><img class="alignleft size-full wp-image-667" title="Screen shot 2011-04-17 at 10.07.00 AM" src="http://www.worldgoneweb.com/wp-content/uploads/2011/04/Screen-shot-2011-04-17-at-10.07.00-AM.png" alt="" width="140" height="159" /></a> As I understand, this post might soon be outdated if the next version of Virtual Box does manage to natively run VMWare Player appliances. Still, this version hasn&#8217;t be released yet and, since the VMWare Player doesn&#8217;t exist for OS X, I had to convert an appliance from VMWare player to Virtual Box.</p>
<p>Here are the steps (OS X)</p>
<ul>
<li>download and install the latest version of <a title="Virtual Box" href="http://www.virtualbox.org/">Virtual Box</a></li>
<li>download and install the latest version of <a title="Qemu" href="http://wiki.qemu.org/Main_Page">qemu</a></li>
<li>Run the following commands in your terminal (assuming that your vmware appliance is called vmwareapp.vmdk)</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 /></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;">/</span>Applications<span style="color: #000000; font-weight: bold;">/</span>Q.app<span style="color: #000000; font-weight: bold;">/</span>Contents<span style="color: #000000; font-weight: bold;">/</span>MacOS<span style="color: #000000; font-weight: bold;">/</span>qemu-img convert vmwareapp.vmdk raw-file.bin<br />
<span style="color: #000000; font-weight: bold;">/</span>Applications<span style="color: #000000; font-weight: bold;">/</span>VirtualBox.app<span style="color: #000000; font-weight: bold;">/</span>Contents<span style="color: #000000; font-weight: bold;">/</span>MacOS<span style="color: #000000; font-weight: bold;">/</span>VBoxManage convertdd raw-file.bin virtualboxapp.vdi<br />
<span style="color: #000000; font-weight: bold;">/</span>Applications<span style="color: #000000; font-weight: bold;">/</span>VirtualBox.app<span style="color: #000000; font-weight: bold;">/</span>Contents<span style="color: #000000; font-weight: bold;">/</span>MacOS<span style="color: #000000; font-weight: bold;">/</span>VBoxManage modifyvdi virtualboxapp.vdi compact</div></td></tr></tbody></table></div>
<p>Run Virtual Box, in the disk management section, add the existing disk and select the virtualboxapp.vdi file. Then, create a new machine, and make it use this drive you just created.</p>
<p>Finally, boot the virtual machine&#8230;</p>
<p>My appliance was CentOS based and, at startup, I was getting a nasty kernel panic. After trying a lot of solutions provided on Google, I realized the kernel panic was simply caused by my VM settings. In Virtual Box, I edited the settings so that the virtual hard drive appeared to be mounted as Primary IDE and not as a SATA drive&#8230; That fixed it for me, so if you are facing a kernel panic in Virtual Box, check this out.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.worldgoneweb.com/2011/convert-a-vmware-player-appliance-to-be-used-with-virtual-box/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:thumbnail url="http://www.worldgoneweb.com/wp-content/uploads/2011/04/Screen-shot-2011-04-17-at-10.07.00-AM-140x150.png" />
		<media:content url="http://www.worldgoneweb.com/wp-content/uploads/2011/04/Screen-shot-2011-04-17-at-10.07.00-AM.png" medium="image">
			<media:title type="html">Screen shot 2011-04-17 at 10.07.00 AM</media:title>
			<media:thumbnail url="http://www.worldgoneweb.com/wp-content/uploads/2011/04/Screen-shot-2011-04-17-at-10.07.00-AM-140x150.png" />
		</media:content>
	</item>
		<item>
		<title>Getting rid of the .DS_Store files</title>
		<link>http://www.worldgoneweb.com/2011/getting-rid-of-the-ds_store-files/</link>
		<comments>http://www.worldgoneweb.com/2011/getting-rid-of-the-ds_store-files/#comments</comments>
		<pubDate>Sun, 10 Apr 2011 06:22:16 +0000</pubDate>
		<dc:creator>shalfon</dc:creator>
				<category><![CDATA[Mac OS X]]></category>
		<category><![CDATA[Système]]></category>
		<category><![CDATA[.DS_Store]]></category>
		<category><![CDATA[BlueHarvest]]></category>
		<category><![CDATA[drives]]></category>
		<category><![CDATA[hidden files]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[mac os x]]></category>
		<category><![CDATA[network]]></category>
		<category><![CDATA[TinkerTool]]></category>
		<category><![CDATA[usb]]></category>
		<category><![CDATA[Windwos]]></category>

		<guid isPermaLink="false">http://www.worldgoneweb.com/?p=656</guid>
		<description><![CDATA[If you are a Mac user only, you might not be aware of the trail of files our OS leaves in every folder you open and browse but as soon as you share data/external hard drives or network drives with a Windows or Linux user (or if you use multiple OS) they become a bummer [...]]]></description>
			<content:encoded><![CDATA[<p>If you are a Mac user only, you might not be aware of the trail of files our OS leaves in every folder you open and browse but as soon as you share data/external hard drives or network drives with a Windows or Linux user (or if you use multiple OS) they become a bummer appearing in every folder.</p>
<p>I will not go into the details of why Apple implemented the Finder with the use of these files (or whether this was a bad idea) but I will simply list some solutions I found around the Net to fix the &#8220;problem&#8221;.</p>
<h1>The free and incomplete solution</h1>
<p>It is possible to prevent OS X from writing these files on network drives (SMB/CIFS, AFP, NFS and WebDav to be exact). If this is the only way you and Linux/Windows users share access to the same data, this might be good enough for you.Note that it will not prevent OS X from writing these files on USB mounted drives if oyu happen to share data that way as well.</p>
<ol type="1">
<li>Open Terminal.</li>
<li>Execute the command
<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">defaults <span style="color: #c20cb9; font-weight: bold;">write</span> com.apple.desktopservices DSDontWriteNetworkStores <span style="color: #c20cb9; font-weight: bold;">true</span></div></td></tr></tbody></table></div>
</li>
<li>Either restart the computer or log out and back in to the user account.</li>
</ol>
<p>Source: <a href="http://support.apple.com/kb/ht1629">Apple Support</a></p>
<p><a href="http://www.worldgoneweb.com/wp-content/uploads/2011/04/TinkerTool3.png"><img class="alignleft size-full wp-image-657" title="TinkerTool3" src="http://www.worldgoneweb.com/wp-content/uploads/2011/04/TinkerTool3.png" alt="" width="128" height="128" /></a></p>
<p>&nbsp;</p>
<p>There is also a software way to acheive the same goal for those who do not wish to use Terminal or might be curious as to what other options are hiding in their OS</p>
<p><a href="http://www.bresink.com/osx/TinkerTool.html">Tinker Tool</a> is a software that lets you tweak the guts of OS X <a href="http://www.bresink.com/osx/0TinkerTool/details.html">including the option to write or not write the DS_Store files to your network drives</a>.</p>
<p style="text-align: center;"><a href="http://www.worldgoneweb.com/wp-content/uploads/2011/04/Screen-shot-2011-04-10-at-8.05.16-AM.png"><img class="aligncenter size-full wp-image-659" title="Tinker Tool Option" src="http://www.worldgoneweb.com/wp-content/uploads/2011/04/Screen-shot-2011-04-10-at-8.05.16-AM.png" alt="" width="569" height="433" /></a></p>
<p>Of course, by deciding to not use these files you will loose the features they are responsible of like the saving of your window position, custom view, etc.</p>
<p>Now, if you chose this path, these files will not be created on your network drives anymore though you might still need to remove the existing one.</p>
<p>Still using the terminal, you can do so by running the following command :</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;">find</span> <span style="color: #000000; font-weight: bold;">/</span>path<span style="color: #000000; font-weight: bold;">/</span>to<span style="color: #000000; font-weight: bold;">/</span>share <span style="color: #660033;">-name</span> .DS_Store <span style="color: #660033;">-exec</span> <span style="color: #c20cb9; font-weight: bold;">rm</span> <span style="color: #7a0874; font-weight: bold;">&#123;</span><span style="color: #7a0874; font-weight: bold;">&#125;</span> \;</div></td></tr></tbody></table></div>
<h1>The rich and complete solution</h1>
<p>Another software, called <a href="http://www.zeroonetwenty.com/blueharvest4/">Blue Harvest</a>, enables you to decide whether these .DS_Store files should be written on network drives or USB mounted drives and will also handle the cleaning of these files in drives where they have already been written. There is a 30 days trial available so you can check this solution out and decide if this is worth it to you.</p>
<p><a href="http://www.worldgoneweb.com/wp-content/uploads/2011/04/blueharvest.jpg"><img class="aligncenter size-full wp-image-661" title="blueharvest" src="http://www.worldgoneweb.com/wp-content/uploads/2011/04/blueharvest.jpg" alt="" width="549" height="407" /></a></p>
<p>Sources:</p>
<ul>
<li><a href="http://www.emergingtechs.com/posts/prevent-ds_store-and-trashes-creation-on-usb-drives/">Prevent .DS_Store and Trash creation on USB Drives</a></li>
<li><a href="http://offshootinc.com/blog/2007/05/17/say-goodbye-to-ds_store-files-resource-forks-and-thumbsdb-files-on-your-windowsmac-network/">Say Goodbye to .DS_Store files</a></li>
</ul>
<p>Well, unfortunately, we just found out that OS X is not 100% awesome,  but we can still make it look like it is to our &#8220;Windows users friends&#8221;.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.worldgoneweb.com/2011/getting-rid-of-the-ds_store-files/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:thumbnail url="http://www.worldgoneweb.com/wp-content/uploads/2011/04/TinkerTool3.png" />
		<media:content url="http://www.worldgoneweb.com/wp-content/uploads/2011/04/TinkerTool3.png" medium="image">
			<media:title type="html">TinkerTool3</media:title>
		</media:content>
		<media:content url="http://www.worldgoneweb.com/wp-content/uploads/2011/04/Screen-shot-2011-04-10-at-8.05.16-AM.png" medium="image">
			<media:title type="html">Tinker Tool Option</media:title>
			<media:thumbnail url="http://www.worldgoneweb.com/wp-content/uploads/2011/04/Screen-shot-2011-04-10-at-8.05.16-AM-150x150.png" />
		</media:content>
		<media:content url="http://www.worldgoneweb.com/wp-content/uploads/2011/04/blueharvest.jpg" medium="image">
			<media:title type="html">blueharvest</media:title>
			<media:thumbnail url="http://www.worldgoneweb.com/wp-content/uploads/2011/04/blueharvest-150x150.jpg" />
		</media:content>
	</item>
		<item>
		<title>Creating a Mac OS X Finder Droplet for iTerm</title>
		<link>http://www.worldgoneweb.com/2011/creating-a-mac-os-x-finder-droplet-for-iterm/</link>
		<comments>http://www.worldgoneweb.com/2011/creating-a-mac-os-x-finder-droplet-for-iterm/#comments</comments>
		<pubDate>Sun, 27 Feb 2011 21:23:48 +0000</pubDate>
		<dc:creator>shalfon</dc:creator>
				<category><![CDATA[Computing]]></category>
		<category><![CDATA[Mac OS X]]></category>
		<category><![CDATA[Système]]></category>
		<category><![CDATA[apple script]]></category>
		<category><![CDATA[apple script editor]]></category>
		<category><![CDATA[application]]></category>
		<category><![CDATA[droplet]]></category>
		<category><![CDATA[droplets]]></category>
		<category><![CDATA[finder]]></category>
		<category><![CDATA[iterm]]></category>
		<category><![CDATA[iterm2]]></category>
		<category><![CDATA[terminal]]></category>
		<category><![CDATA[textmate]]></category>

		<guid isPermaLink="false">http://www.worldgoneweb.com/?p=591</guid>
		<description><![CDATA[Recently, I stumbled on the Textmate droplet by Henrik Nyh allowing me to quickly open a file or a folder in Textmate by dragging it to the Finder toolbar. Since I had just setup iTerm2 and learned to script it with AppleScript, I figured I&#8217;d put the two together and create my own iTerm2 droplet. [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: center;"><a href="http://www.worldgoneweb.com/wp-content/uploads/2011/02/dropletiterm.png"><img class="aligncenter size-full wp-image-592" title="dropletiterm" src="http://www.worldgoneweb.com/wp-content/uploads/2011/02/dropletiterm.png" alt="" width="320" height="166" /></a>Recently, I stumbled on the <a href="http://henrik.nyh.se/2007/10/open-in-textmate-from-leopard-finder">Textmate droplet</a> by Henrik Nyh allowing me to quickly open a file or a folder in Textmate by dragging it to the Finder toolbar. Since I had just <a title="iTerm2: advanced features" href="http://www.worldgoneweb.com/2011/iterm2-advanced-features/">setup iTerm2 and learned to script it with AppleScript</a>, I figured I&#8217;d put the two together and create my own iTerm2 droplet. Since this was going to be my first droplet, I searched for some guidance and found a great article by Jarel Remick which covers the subject of <a href="http://blog.themeforest.net/general/amp-up-productivity-with-os-x-finder-droplets/">Finder productivity and droplets</a> in great depth.</p>
<p><strong>Creating the droplet</strong></p>
<p>A Finder droplet is really an AppleScript which interacts with the Finder in order to obtain either the path to the current directory or the selected file and with another app in order to launch it or interact with it. This AppleScript is then saved as an application which we will add to the Finder menu by a simple drag and drop.</p>
<p>My droplet is simple : it will get the path to the directory opened in the current Finder window. Launch iterm if itsn&#8217;t already running and cd into that directory.</p>
<p>So, here is the code behind my droplet :</p>
<div class="codecolorer-container applescript 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 /></div></td><td><div class="applescript codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #ff0033; font-weight: bold;">try</span><br />
<span style="color: #ff0033; font-weight: bold;">tell</span> <span style="color: #0066ff;">application</span> <span style="color: #009900;">&quot;Finder&quot;</span><br />
<span style="color: #ff0033; font-weight: bold;">set</span> currentPath <span style="color: #ff0033; font-weight: bold;">to</span> <span style="color: #000000;">&#40;</span><span style="color: #0066ff;">POSIX path</span> <span style="color: #ff0033; font-weight: bold;">of</span> <span style="color: #000000;">&#40;</span>target <span style="color: #ff0033; font-weight: bold;">of</span> <span style="color: #ff0033;">front</span> <span style="color: #0066ff;">window</span> <span style="color: #ff0033;">as</span> <span style="color: #0066ff;">alias</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br />
<span style="color: #ff0033; font-weight: bold;">end</span> <span style="color: #ff0033; font-weight: bold;">tell</span><br />
<br />
<span style="color: #ff0033; font-weight: bold;">tell</span> <span style="color: #0066ff;">application</span> <span style="color: #009900;">&quot;iTerm&quot;</span><br />
<span style="color: #0066ff;">activate</span><br />
<span style="color: #ff0033; font-weight: bold;">tell</span> <span style="color: #ff0033;">the</span> <span style="color: #ff0033;">last</span> terminal<br />
<span style="color: #0066ff;">launch</span> session <span style="color: #009900;">&quot;Default&quot;</span><br />
<span style="color: #ff0033; font-weight: bold;">tell</span> <span style="color: #ff0033;">the</span> <span style="color: #ff0033;">last</span> session<br />
<span style="color: #ff0033; font-weight: bold;">set</span> <span style="color: #0066ff;">name</span> <span style="color: #ff0033; font-weight: bold;">to</span> currentPath<br />
write <span style="color: #0066ff;">text</span> <span style="color: #009900;">&quot;cd &quot;</span> <span style="color: #000000;">&amp;</span>amp; currentPath<br />
<span style="color: #ff0033; font-weight: bold;">end</span> <span style="color: #ff0033; font-weight: bold;">tell</span><br />
<span style="color: #ff0033; font-weight: bold;">end</span> <span style="color: #ff0033; font-weight: bold;">tell</span><br />
<span style="color: #ff0033; font-weight: bold;">end</span> <span style="color: #ff0033; font-weight: bold;">tell</span><br />
<span style="color: #ff0033; font-weight: bold;">end</span> <span style="color: #ff0033; font-weight: bold;">try</span></div></td></tr></tbody></table></div>
<p>&nbsp;</p>
<p><strong>Customizing the droplet</strong></p>
<p>At this point, you can save your code as an application from the AppleScriptEditor and drag the resulting file to the Finder toolbar. Click it, and the current folder is opened in iTerm.</p>
<p>Still, before adding this to my Finder&#8217;s toolbar, I customized it with a little terminal icon. Mac OS really make this simple. Simply find an icon you like and open it using Preview. Copy the image to clipboard (CTRL-C). Then, select the Application you just created with AppleScriptEditor and right click to display the file info (or use CTRL-I). Select the icon at the top left of the window (it will be selected in blue) and paste your image (CTRL-V).</p>
<p><a href="http://www.worldgoneweb.com/wp-content/uploads/2011/02/Screen-shot-2011-02-27-at-10.11.19-PM.png"><img class="aligncenter size-full wp-image-594" title="Customize Icon" src="http://www.worldgoneweb.com/wp-content/uploads/2011/02/Screen-shot-2011-02-27-at-10.11.19-PM.png" alt="" width="268" height="146" /></a></p>
<p>That&#8217;s it. This step was surprisingly simple.</p>
<p>&nbsp;</p>
<p><strong>Installing the droplet</strong></p>
<p>Nothing complicated in this step : simply drag your application (or droplet) to the Finder&#8217;s toolbar. Click it, iTerm will open and your pwd will be set to the current Finder&#8217;s window directory. Handy.</p>
<p><a href="http://www.worldgoneweb.com/wp-content/uploads/2011/02/Screen-shot-2011-02-27-at-10.10.29-PM.png"><img class="aligncenter size-full wp-image-593" title="Finder Droplets" src="http://www.worldgoneweb.com/wp-content/uploads/2011/02/Screen-shot-2011-02-27-at-10.10.29-PM.png" alt="" width="456" height="200" /></a></p>
<p>&nbsp;</p>
<p><strong>Download</strong></p>
<p>If you simply want to <a title="Download iTerm droplet" href="http://www.samanthahalfon.net/resources/openPwdItermApp.zip">download my version</a> of the droplet to not go through these steps yourself, click here. If you would like to use more droplets. start your hunt <a href="http://manas.tungare.name/software/finder-toolbar-scripts/">right here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.worldgoneweb.com/2011/creating-a-mac-os-x-finder-droplet-for-iterm/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:thumbnail url="http://www.worldgoneweb.com/wp-content/uploads/2011/02/dropletiterm-150x150.png" />
		<media:content url="http://www.worldgoneweb.com/wp-content/uploads/2011/02/dropletiterm.png" medium="image">
			<media:title type="html">dropletiterm</media:title>
			<media:thumbnail url="http://www.worldgoneweb.com/wp-content/uploads/2011/02/dropletiterm-150x150.png" />
		</media:content>
		<media:content url="http://www.worldgoneweb.com/wp-content/uploads/2011/02/Screen-shot-2011-02-27-at-10.11.19-PM.png" medium="image">
			<media:title type="html">Customize Icon</media:title>
			<media:thumbnail url="http://www.worldgoneweb.com/wp-content/uploads/2011/02/Screen-shot-2011-02-27-at-10.11.19-PM-150x146.png" />
		</media:content>
		<media:content url="http://www.worldgoneweb.com/wp-content/uploads/2011/02/Screen-shot-2011-02-27-at-10.10.29-PM.png" medium="image">
			<media:title type="html">Finder Droplets</media:title>
			<media:thumbnail url="http://www.worldgoneweb.com/wp-content/uploads/2011/02/Screen-shot-2011-02-27-at-10.10.29-PM-150x150.png" />
		</media:content>
	</item>
		<item>
		<title>iTerm2: advanced features</title>
		<link>http://www.worldgoneweb.com/2011/iterm2-advanced-features/</link>
		<comments>http://www.worldgoneweb.com/2011/iterm2-advanced-features/#comments</comments>
		<pubDate>Sat, 29 Jan 2011 17:08:20 +0000</pubDate>
		<dc:creator>shalfon</dc:creator>
				<category><![CDATA[Computing]]></category>
		<category><![CDATA[Mac OS X]]></category>
		<category><![CDATA[Système]]></category>
		<category><![CDATA[Terminal]]></category>
		<category><![CDATA[apple script]]></category>
		<category><![CDATA[apple script editor]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[command]]></category>
		<category><![CDATA[console]]></category>
		<category><![CDATA[finder]]></category>
		<category><![CDATA[growl]]></category>
		<category><![CDATA[iterm]]></category>
		<category><![CDATA[terminal]]></category>
		<category><![CDATA[textmate]]></category>

		<guid isPermaLink="false">http://www.worldgoneweb.com/?p=520</guid>
		<description><![CDATA[At bluekiwi, I constantly have no less than 10 opened terminal sessions at the same time. Because it is so easy to launch a command in the wrong window (on the wrong server), I got used to always order my tabs the same way and always give them the same name. As I needed more [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignleft size-full wp-image-538" title="iTerm2" src="http://www.worldgoneweb.com/wp-content/uploads/2011/01/iTerm2-128.png" alt="" width="128" height="128" />At bluekiwi, I constantly have no less than 10 opened terminal sessions at the same time. Because it is so easy to launch a command in the wrong window (on the wrong server), I got used to always order my tabs the same way and always give them the same name. As I needed more and more shell windows to work, this little routine started to take me more time than I care to spend on every Monday morning. Laziness is also the Mother of Invention so I set out to script my iTerm in order to reset my workspace after a computer reboot.</p>
<p>Googling iTerm lead me to a few more improvements&#8230;</p>
<p><strong>iTerm2</strong></p>
<p>First, <a title="iTerm2" href="http://code.google.com/p/iterm2/">iTerm2</a> is a fork of iTerm hosted on Google Code which has been a lot more active lately than the original iTerm. I downloaded it and replaced the iTerm1 with this new one.</p>
<p>Good news, while all my profiles and bookmarks were conserved, the profile and bookmarks management was greatly simplified. I recommend you to upgrade, too.</p>
<p><strong>Growl</strong></p>
<p>iTerm and iTerm2 both support Growl notifications. That means you can display a message in Growl from your scripts with the follwing command :</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: #7a0874; font-weight: bold;">echo</span> $<span style="color: #ff0000;">'\e]9;hello\007'</span></div></td></tr></tbody></table></div>
<p>Since this is a hard command to remember, <a title="Damon Parker blog" href="http://damonparker.org/blog/2006/11/13/iterm-and-growl/">Damon Parker suggested</a> adding the following line to your .bashrc or your .bash_profile</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">growl<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #7a0874; font-weight: bold;">&#123;</span> <span style="color: #7a0874; font-weight: bold;">echo</span> -e $<span style="color: #ff0000;">'\e]9;'</span><span style="color: #800000;">${1}</span><span style="color: #ff0000;">'\007'</span> ; <span style="color: #7a0874; font-weight: bold;">return</span>  ; <span style="color: #7a0874; font-weight: bold;">&#125;</span></div></td></tr></tbody></table></div>
<p>So, if your starting a command that will run for a while and want to be notified when it&#8217;s completed, you can do</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">long_cmd ; growl <span style="color: #ff0000;">&quot;command completed&quot;</span></div></td></tr></tbody></table></div>
<p><strong>Visor</strong></p>
<p>One of the features introduced by the iTerm2 team is the &#8220;Visor&#8221;. Visor is an existing tool for Terminal allowing you, with a simple hotkey, to make the terminal appear on top of any running app.</p>
<p>To use this feature with iTerm2, no need to install anything extra. Simply edit your preference and choose a Visor hotkey.</p>
<p style="text-align: center;"><img class="aligncenter size-full wp-image-522" title="iTerm2 settings" src="http://www.worldgoneweb.com/wp-content/uploads/2011/01/Screen-shot-2011-01-29-at-9.51.26-AM.png" alt="" width="428" height="276" /></p>
<p>A nice little addition to the iTerm I was used to.</p>
<p><strong>Dashboard widget</strong></p>
<p>There is a <a title="Dashboard Widget iTerm" href="http://widgetterm.sourceforge.net/">Dashboard Widget for iTerm</a> allowing you to run quick commands from the Mac OS X Dashboard.</p>
<p><a href="http://www.worldgoneweb.com/wp-content/uploads/2011/01/WidgetITerm.png"><img class="aligncenter size-medium wp-image-521" title="WidgetITerm" src="http://www.worldgoneweb.com/wp-content/uploads/2011/01/WidgetITerm-300x184.png" alt="" width="300" height="184" /></a></p>
<p><strong>Last but not least, the launch script</strong></p>
<p>AppleScript was already compatible with iTerm and this feature was conserved in iTerm2 so that I can automate the creation of my iTerm workspace.</p>
<p>Below is an example of the type of things I do when launching my iTerm workspace like opening a tab in a given folder and running svn up. Emptying a log file and tailing it. Launching memcache in a dedicated tab. Opening a bookmarked session on a remote server, etc.</p>
<p>Below is an example of a working AppleScript.</p>
<div class="codecolorer-container applescript dawn" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:678px;height:300px;"><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 />18<br />19<br />20<br />21<br />22<br />23<br />24<br />25<br />26<br />27<br />28<br />29<br />30<br />31<br />32<br />33<br />34<br />35<br />36<br />37<br />38<br />39<br />40<br />41<br />42<br />43<br />44<br />45<br />46<br /></div></td><td><div class="applescript codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #808080; font-style: italic;">-- iTerm launching script for samo9789</span><br />
<span style="color: #0066ff;">launch</span> <span style="color: #009900;">&quot;iTerm&quot;</span><br />
<br />
<span style="color: #ff0033; font-weight: bold;">tell</span> <span style="color: #0066ff;">application</span> <span style="color: #009900;">&quot;iTerm&quot;</span><br />
<span style="color: #0066ff;">activate</span><br />
<br />
<span style="color: #808080; font-style: italic;">-- talk to the new terminal</span><br />
<span style="color: #ff0033; font-weight: bold;">tell</span> <span style="color: #ff0033;">the</span> <span style="color: #ff0033;">first</span> terminal<br />
<br />
<span style="color: #808080; font-style: italic;">-- set terminal size</span><br />
<span style="color: #ff0033; font-weight: bold;">set</span> <span style="color: #0066ff;">number</span> <span style="color: #ff0033; font-weight: bold;">of</span> columns <span style="color: #ff0033; font-weight: bold;">to</span> <span style="color: #000000;">200</span><br />
<span style="color: #ff0033; font-weight: bold;">set</span> <span style="color: #0066ff;">number</span> <span style="color: #ff0033; font-weight: bold;">of</span> rows <span style="color: #ff0033; font-weight: bold;">to</span> <span style="color: #000000;">60</span><br />
<br />
<span style="color: #808080; font-style: italic;">-- launch a default shell in a new tab in the same terminal</span><br />
<span style="color: #808080; font-style: italic;">--launch session &quot;Default&quot;</span><br />
<span style="color: #808080; font-style: italic;">-- this is automatically done at iTerm launch</span><br />
<br />
<span style="color: #808080; font-style: italic;">-- create the project tab</span><br />
<span style="color: #0066ff;">launch</span> session <span style="color: #009900;">&quot;Default&quot;</span><br />
<span style="color: #ff0033; font-weight: bold;">tell</span> <span style="color: #ff0033;">the</span> <span style="color: #ff0033;">last</span> session<br />
<span style="color: #ff0033; font-weight: bold;">set</span> <span style="color: #0066ff;">name</span> <span style="color: #ff0033; font-weight: bold;">to</span> <span style="color: #009900;">&quot;project&quot;</span><br />
write <span style="color: #0066ff;">text</span> <span style="color: #009900;">&quot;cd Workspace/my_project&quot;</span><br />
write <span style="color: #0066ff;">text</span> <span style="color: #009900;">&quot;svn up&quot;</span><br />
<span style="color: #ff0033; font-weight: bold;">end</span> <span style="color: #ff0033; font-weight: bold;">tell</span><br />
<br />
<span style="color: #808080; font-style: italic;">-- create the project log tab</span><br />
<span style="color: #0066ff;">launch</span> session <span style="color: #009900;">&quot;Default&quot;</span><br />
<span style="color: #ff0033; font-weight: bold;">tell</span> <span style="color: #ff0033;">the</span> <span style="color: #ff0033;">last</span> session<br />
<span style="color: #ff0033; font-weight: bold;">set</span> <span style="color: #0066ff;">name</span> <span style="color: #ff0033; font-weight: bold;">to</span> <span style="color: #009900;">&quot;project logs&quot;</span><br />
write <span style="color: #0066ff;">text</span> <span style="color: #009900;">&quot;echo 'Logs for Project' &amp;gt; project.log&quot;</span><br />
write <span style="color: #0066ff;">text</span> <span style="color: #009900;">&quot;tail -f project.log&quot;</span><br />
<span style="color: #ff0033; font-weight: bold;">end</span> <span style="color: #ff0033; font-weight: bold;">tell</span><br />
<br />
<span style="color: #808080; font-style: italic;">-- create the memcached tab</span><br />
<span style="color: #0066ff;">launch</span> session <span style="color: #009900;">&quot;Default&quot;</span><br />
<span style="color: #ff0033; font-weight: bold;">tell</span> <span style="color: #ff0033;">the</span> <span style="color: #ff0033;">last</span> session<br />
<span style="color: #ff0033; font-weight: bold;">set</span> <span style="color: #0066ff;">name</span> <span style="color: #ff0033; font-weight: bold;">to</span> <span style="color: #009900;">&quot;memcached&quot;</span><br />
write <span style="color: #0066ff;">text</span> <span style="color: #009900;">&quot;memcached -vv&quot;</span><br />
<span style="color: #ff0033; font-weight: bold;">end</span> <span style="color: #ff0033; font-weight: bold;">tell</span><br />
<br />
<span style="color: #808080; font-style: italic;">--open a named bookmark</span><br />
<span style="color: #0066ff;">launch</span> session <span style="color: #009900;">&quot;my_bookmark&quot;</span><br />
<br />
<span style="color: #ff0033; font-weight: bold;">end</span> <span style="color: #ff0033; font-weight: bold;">tell</span><br />
<br />
<span style="color: #ff0033; font-weight: bold;">end</span> <span style="color: #ff0033; font-weight: bold;">tell</span></div></td></tr></tbody></table></div>
<p>Finally, to use the script, you must :</p>
<ul>
<li>either save it as an application in the Apple Script Editor (File &gt; Save as) which you&#8217;ll be able to run from Spotlight, Albert, Quicksilver or any launcher you are using</li>
<li>save the scripts as <tt>~/Library/Application Support/iTerm/</tt><tt>AutoLaunch.scpt in which case the script will run when you launch iTerm - everytime<br />
</tt></li>
</ul>
<p><strong>Split Panes</strong></p>
<p>Another good news is that iTerm2 introduced split panes. I&#8217;ve just tweeted <a href="http://twitter.com/#!/gnachman">the developer</a> hoping to learn how to script the creation of split panes. Stay tuned&#8230;</p>
<p><strong>Update :</strong></p>
<p>Another iTerm2 user suggested the following Apple Script to create split plane (until the developer gets back to us with official support). You can see his contribution on <a href="http://code.google.com/p/iterm2/issues/detail?id=559">Google Code</a>.</p>
<div class="codecolorer-container applescript 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 />18<br />19<br /></div></td><td><div class="applescript codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #000000;">&lt;&lt;</span>EOF<br />
<span style="color: #ff0033; font-weight: bold;">tell</span> <span style="color: #0066ff;">application</span> <span style="color: #009900;">&quot;iTerm&quot;</span><br />
<span style="color: #0066ff;">activate</span><br />
<span style="color: #ff0033; font-weight: bold;">set</span> myterm <span style="color: #ff0033; font-weight: bold;">to</span> <span style="color: #000000;">&#40;</span><span style="color: #0066ff;">make</span> <span style="color: #0066ff;">new</span> terminal<span style="color: #000000;">&#41;</span><br />
<span style="color: #ff0033; font-weight: bold;">tell</span> myterm<br />
<span style="color: #0066ff;">launch</span> session <span style="color: #009900;">&quot;Panes&quot;</span><br />
<span style="color: #ff0033; font-weight: bold;">set</span> <span style="color: #0066ff;">number</span> <span style="color: #ff0033; font-weight: bold;">of</span> columns <span style="color: #ff0033; font-weight: bold;">to</span> <span style="color: #000000;">244</span><br />
<span style="color: #ff0033; font-weight: bold;">set</span> <span style="color: #0066ff;">number</span> <span style="color: #ff0033; font-weight: bold;">of</span> rows <span style="color: #ff0033; font-weight: bold;">to</span> <span style="color: #000000;">73</span><br />
<span style="color: #ff0033; font-weight: bold;">tell</span> <span style="color: #0066ff;">application</span> <span style="color: #009900;">&quot;System Events&quot;</span> <span style="color: #ff0033; font-weight: bold;">to</span> keystroke <span style="color: #009900;">&quot;d&quot;</span> using command down<br />
<span style="color: #ff0033; font-weight: bold;">tell</span> <span style="color: #0066ff;">application</span> <span style="color: #009900;">&quot;System Events&quot;</span> <span style="color: #ff0033; font-weight: bold;">to</span> keystroke <span style="color: #009900;">&quot;d&quot;</span> using command down<br />
<span style="color: #ff0033; font-weight: bold;">tell</span> <span style="color: #0066ff;">application</span> <span style="color: #009900;">&quot;System Events&quot;</span> <span style="color: #ff0033; font-weight: bold;">to</span> keystroke <span style="color: #009900;">&quot;D&quot;</span> using command down<br />
<span style="color: #ff0033; font-weight: bold;">tell</span> <span style="color: #0066ff;">application</span> <span style="color: #009900;">&quot;System Events&quot;</span> <span style="color: #ff0033; font-weight: bold;">to</span> keystroke <span style="color: #009900;">&quot;D&quot;</span> using command down<br />
<span style="color: #ff0033; font-weight: bold;">tell</span> <span style="color: #0066ff;">application</span> <span style="color: #009900;">&quot;System Events&quot;</span> <span style="color: #ff0033; font-weight: bold;">to</span> key code <span style="color: #000000;">123</span> using <span style="color: #000000;">&#123;</span>command down, option down<span style="color: #000000;">&#125;</span><br />
<span style="color: #ff0033; font-weight: bold;">tell</span> <span style="color: #0066ff;">application</span> <span style="color: #009900;">&quot;System Events&quot;</span> <span style="color: #ff0033; font-weight: bold;">to</span> keystroke <span style="color: #009900;">&quot;D&quot;</span> using command down<br />
<span style="color: #ff0033; font-weight: bold;">tell</span> <span style="color: #0066ff;">application</span> <span style="color: #009900;">&quot;System Events&quot;</span> <span style="color: #ff0033; font-weight: bold;">to</span> keystroke <span style="color: #009900;">&quot;D&quot;</span> using command down<br />
<span style="color: #ff0033; font-weight: bold;">tell</span> <span style="color: #0066ff;">application</span> <span style="color: #009900;">&quot;System Events&quot;</span> <span style="color: #ff0033; font-weight: bold;">to</span> key code <span style="color: #000000;">123</span> using <span style="color: #000000;">&#123;</span>command down, option down<span style="color: #000000;">&#125;</span><br />
<span style="color: #ff0033; font-weight: bold;">end</span> <span style="color: #ff0033; font-weight: bold;">tell</span><br />
<span style="color: #ff0033; font-weight: bold;">end</span> <span style="color: #ff0033; font-weight: bold;">tell</span><br />
EOF</div></td></tr></tbody></table></div>
<p>Anyway, this is a welcomed feature!</p>
<p style="text-align: center;"><a href="http://www.worldgoneweb.com/wp-content/uploads/2011/01/Screen-shot-2011-01-29-at-6.03.37-PM.png"><img class="aligncenter size-large wp-image-540" title="SplitPanes w. Iterm2" src="http://www.worldgoneweb.com/wp-content/uploads/2011/01/Screen-shot-2011-01-29-at-6.03.37-PM-1024x517.png" alt="" width="368" height="186" /></a></p>
<p><strong>And a few more tricks&#8230;</strong></p>
<ul>
<li>a <a title="term command" href="http://damonparker.org/blog/2005/09/14/iterm-tricks/">script creating a &#8220;term&#8221; command by Damon Parker</a>. The command allows you to open a new session with arguments such as current directory or a command to run. Pretty handy!</li>
<li>open iTerm with the current Finder window pwd as current directory with <a href="http://snippets.dzone.com/tag/iTerm">this Apple Script by Simon Dorfman</a></li>
<li><a href="http://xanana.ucsc.edu/xtal/iterm_tab_customization.html">several scripts and commands</a> to interact betweem iTerm and the Finder as well as between TextMate and iTerm by xanana</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.worldgoneweb.com/2011/iterm2-advanced-features/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
	
		<media:thumbnail url="http://www.worldgoneweb.com/wp-content/uploads/2011/01/iTerm2-128.png" />
		<media:content url="http://www.worldgoneweb.com/wp-content/uploads/2011/01/iTerm2-128.png" medium="image">
			<media:title type="html">iTerm2</media:title>
		</media:content>
		<media:content url="http://www.worldgoneweb.com/wp-content/uploads/2011/01/Screen-shot-2011-01-29-at-9.51.26-AM.png" medium="image">
			<media:title type="html">iTerm2 settings</media:title>
			<media:thumbnail url="http://www.worldgoneweb.com/wp-content/uploads/2011/01/Screen-shot-2011-01-29-at-9.51.26-AM-150x150.png" />
		</media:content>
		<media:content url="http://www.worldgoneweb.com/wp-content/uploads/2011/01/WidgetITerm.png" medium="image">
			<media:title type="html">WidgetITerm</media:title>
			<media:thumbnail url="http://www.worldgoneweb.com/wp-content/uploads/2011/01/WidgetITerm-150x150.png" />
		</media:content>
		<media:content url="http://www.worldgoneweb.com/wp-content/uploads/2011/01/Screen-shot-2011-01-29-at-6.03.37-PM.png" medium="image">
			<media:title type="html">SplitPanes w. Iterm2</media:title>
			<media:thumbnail url="http://www.worldgoneweb.com/wp-content/uploads/2011/01/Screen-shot-2011-01-29-at-6.03.37-PM-150x150.png" />
		</media:content>
	</item>
		<item>
		<title>ZendServer Community Edition on Mac OS X: compiling PHP extensions</title>
		<link>http://www.worldgoneweb.com/2011/zendserver-community-edition-on-mac-os-x-compiling-php-extensions/</link>
		<comments>http://www.worldgoneweb.com/2011/zendserver-community-edition-on-mac-os-x-compiling-php-extensions/#comments</comments>
		<pubDate>Sat, 29 Jan 2011 15:53:11 +0000</pubDate>
		<dc:creator>shalfon</dc:creator>
				<category><![CDATA[Computing]]></category>
		<category><![CDATA[Mac OS X]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Système]]></category>
		<category><![CDATA[memcache]]></category>
		<category><![CDATA[memcached]]></category>
		<category><![CDATA[pecl]]></category>
		<category><![CDATA[phpinfo]]></category>
		<category><![CDATA[phpize]]></category>
		<category><![CDATA[Zend Server]]></category>

		<guid isPermaLink="false">http://www.worldgoneweb.com/?p=524</guid>
		<description><![CDATA[This post aims to explain how to compile a PHP extension for ZendServer CE on Mac OS X based on my experience with the memcache extension. As it turns out, the memcache extension included in ZendServer CE 5.0.4 is version 2.2.5 which doesn&#8217;t work with the latest version of the memcached server insatlled by macposts [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.worldgoneweb.com/wp-content/uploads/2011/01/phpicon.png"><img class="alignleft size-thumbnail wp-image-530" title="phpicon" src="http://www.worldgoneweb.com/wp-content/uploads/2011/01/phpicon-150x150.png" alt="" width="150" height="150" /></a>This post aims to explain how to compile a PHP extension for ZendServer CE on Mac OS X based on my experience with the memcache extension. As it turns out, the memcache extension included in ZendServer CE 5.0.4 is version 2.2.5 which doesn&#8217;t work with the latest version of the memcached server insatlled by macposts as detailed in <a title="Installing Memcached with MacPorts" href="http://www.worldgoneweb.com/2011/install-and-query-memcache-on-mac-os-x/">my earlier post about memcached</a>. I had to build the memcache.so extension version 2.6 using pecl. Here&#8217;s how</p>
<ul>
<li>go to /usr/local/zend/lib/php_extensions and backup your memcache.so file in memcache.so.bak</li>
<li>go to /tmp and extract libmemcached which you can download from the <a href="https://launchpad.net/libmemcached/+download">libmemcached website</a></li>
<li>go to the extracted directory named libmemcached-0.44 and install the library</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 /></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;">tar</span> <span style="color: #660033;">-xvzf</span> libmemcahed-<span style="color: #000000;">0.44</span>.tar.gz<br />
<span style="color: #7a0874; font-weight: bold;">cd</span> libmemcached-<span style="color: #000000;">0.44</span><br />
.<span style="color: #000000; font-weight: bold;">/</span>configure ; <span style="color: #c20cb9; font-weight: bold;">make</span><br />
<span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">make</span> <span style="color: #c20cb9; font-weight: bold;">install</span></div></td></tr></tbody></table></div>
<ul>
<li>now, still being in /tmp, using pecl and phpize, download and install memcache</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 />7<br />8<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;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>zend<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>pecl download memcache<br />
<span style="color: #c20cb9; font-weight: bold;">tar</span> <span style="color: #660033;">-xvzf</span> memcache-2.2.6<br />
<span style="color: #7a0874; font-weight: bold;">cd</span> memcache-2.2.6<br />
<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>zend<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>phpize<br />
<span style="color: #666666; font-style: italic;">#configure using the php-config of Zend Server AND forcing the architecture to 32bits as it is what was used to compile the ZendServer</span><br />
.<span style="color: #000000; font-weight: bold;">/</span>configure <span style="color: #660033;">--with-php-config</span>=<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>zend<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>php-config  <span style="color: #007800;">MACOSX_DEPLOYMENT_TARGET</span>=<span style="color: #000000;">10.6</span> <span style="color: #007800;">CFLAGS</span>=<span style="color: #ff0000;">&quot;-arch i386 -g -Os -pipe -no-cpp-precomp&quot;</span> <span style="color: #007800;">CCFLAGS</span>=<span style="color: #ff0000;">&quot;-arch i386 -g -Os -pipe&quot;</span> <span style="color: #007800;">CXXFLAGS</span>=<span style="color: #ff0000;">&quot;-arch i386 -g -Os -pipe&quot;</span> <span style="color: #007800;">LDFLAGS</span>=<span style="color: #ff0000;">&quot;-arch i386 -bind_at_load&quot;</span><br />
<span style="color: #c20cb9; font-weight: bold;">make</span><br />
<span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">make</span> <span style="color: #c20cb9; font-weight: bold;">install</span></div></td></tr></tbody></table></div>
<ul>
<li>Enable the extension in your php.ini by uncommenting the line extension=memcache.so</li>
<li>Restart Apache</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: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>zend<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>apachectl restart</div></td></tr></tbody></table></div>
<ul>
<li>Go to a phpinfo page to make sure the extension memcache was installed</li>
</ul>
<p style="text-align: center;"><img class="aligncenter size-full wp-image-526" title="Memcache phpinfo" src="http://www.worldgoneweb.com/wp-content/uploads/2011/01/Screen-shot-2011-01-29-at-3.57.02-PM.png" alt="" width="384" height="193" /></p>
<p style="text-align: left;">This should work for most extensions available in the <a title="pecl" href="http://pecl.php.net/">PECL library</a>.</p>
<p style="text-align: left;"><strong>External Links</strong></p>
<ul>
<li><a href="http://akrabat.com/php/some-notes-on-zend-server-ce-for-mac-os-x/">Some notes on Zend Server CE for Mac OS X</a></li>
<li><a href="http://www.glenscott.co.uk/blog/2009/08/30/install-memcached-php-extension-on-os-x-snow-leopard/">Installing memcached PHP extension on OS X Snow Leopard</a></li>
<li><a href="http://devzone.zend.com/article/4512">Compiling PHP extensions with Zend Server</a></li>
</ul>
<p style="text-align: left;">&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.worldgoneweb.com/2011/zendserver-community-edition-on-mac-os-x-compiling-php-extensions/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	
		<media:thumbnail url="http://www.worldgoneweb.com/wp-content/uploads/2011/01/phpicon-150x150.png" />
		<media:content url="http://www.worldgoneweb.com/wp-content/uploads/2011/01/phpicon.png" medium="image">
			<media:title type="html">phpicon</media:title>
			<media:thumbnail url="http://www.worldgoneweb.com/wp-content/uploads/2011/01/phpicon-150x150.png" />
		</media:content>
		<media:content url="http://www.worldgoneweb.com/wp-content/uploads/2011/01/Screen-shot-2011-01-29-at-3.57.02-PM.png" medium="image">
			<media:title type="html">Memcache phpinfo</media:title>
			<media:thumbnail url="http://www.worldgoneweb.com/wp-content/uploads/2011/01/Screen-shot-2011-01-29-at-3.57.02-PM-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>
	</channel>
</rss>

