<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>A long long way from home &#187; TricksAndTips</title>
	<atom:link href="http://ormset.no/wordpress/category/tricksandtips/feed/" rel="self" type="application/rss+xml" />
	<link>http://ormset.no/wordpress</link>
	<description></description>
	<lastBuildDate>Sun, 25 Jul 2010 13:37:27 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Multitouch trackpad DIY button</title>
		<link>http://ormset.no/wordpress/2010/06/30/multitouch-trackpad-diy-button/</link>
		<comments>http://ormset.no/wordpress/2010/06/30/multitouch-trackpad-diy-button/#comments</comments>
		<pubDate>Wed, 30 Jun 2010 10:01:25 +0000</pubDate>
		<dc:creator>ola</dc:creator>
				<category><![CDATA[TechStuff]]></category>
		<category><![CDATA[Things Mac]]></category>
		<category><![CDATA[TricksAndTips]]></category>

		<guid isPermaLink="false">http://ormset.no/wordpress/2010/06/30/multitouch-trackpad-diy-button/</guid>
		<description><![CDATA[Two days ago I picked up a brand new MacBook Pro 15-inch with a Intel core i7 CPU from my local hardware pusher. I have to admit it&#8217;s a DAMN fast machine, especially after fitting it with a Corsair SSD disk. However, it has one major grievance in my opinion &#8211; the button-less multitouch trackpad. [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://ormset.no/wordpress/wp-content/uploads/2010/06/IMG_0011.jpg"><img src="http://ormset.no/wordpress/wp-content/uploads/2010/06/IMG_0011-tm.jpg" width="200" height="266" alt="IMG_0011.jpg" style="float:left; margin-right:5px; margin-bottom:5px;" /></a>Two days ago I picked up a brand new MacBook Pro 15-inch with a Intel core i7 CPU from my local hardware pusher. I have to admit it&#8217;s a DAMN fast machine, especially after fitting it with a Corsair SSD disk. However, it has one major grievance in my opinion &#8211; the button-less multitouch trackpad. My old 2007 model MBP has a physical button located below the trackpad, and I have gotten accustomed to resting my right hand thumb there when using the trackpad.</p>
<p>The new multitouch trackpad does not come with a physical button, but it can detect &#8220;idle&#8221; fingers on the trackpad so when resting my thumb I can still use the trackpad as if the thumb was not in contact with the pad. Most of the time. If I am to move my thumb only the slightest &#8211; which I typically do when I try to tap-to-click with my index finger &#8211; it will start interpreting my movements as multitouch gestures and very diffrent things than I intended will start to happen. Most annoying.</p>
<p>After searching for a software solution to disable the lover one third of the trackpad I got pissed of and typed <a href="http://www.google.com/search?hl=en&amp;client=firefox-a&amp;hs=FFF&amp;rls=org.mozilla%3Aen-US%3Aofficial&amp;q=I+hate+the+macbook+multitouch+trackpad&amp;aq=f&amp;aqi=m1&amp;aql=&amp;oq=&amp;gs_rfai=">&#8220;I hate the macbook multitouch trackpad&#8221;</a> and guess what, I am not the only one. First hit in the result list is Kustaa Nyholms site over at <a href="http://sparetimelabs.com" title="sparetimelabs.com">sparetimelabs.com</a>, which on his Multitouch page explains why he hates the trackpad and what he did to fool it into behaving properly. I have to admit, It&#8217;s a sexy solution <img src='http://ormset.no/wordpress/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Now my thumb rests nicely on a piece of former DVD case, and my erranous click rate has gone down to zero. It even looks good, although I will try to get some thinner double sided tape and do a better job with my scissors to get it perfect. Thanks Kusti!</p>
]]></content:encoded>
			<wfw:commentRss>http://ormset.no/wordpress/2010/06/30/multitouch-trackpad-diy-button/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to limit the size of a Time Machine networked backup</title>
		<link>http://ormset.no/wordpress/2009/02/02/how-to-limit-the-size-of-a-time-machine-networked-backup/</link>
		<comments>http://ormset.no/wordpress/2009/02/02/how-to-limit-the-size-of-a-time-machine-networked-backup/#comments</comments>
		<pubDate>Mon, 02 Feb 2009 10:07:19 +0000</pubDate>
		<dc:creator>ola</dc:creator>
				<category><![CDATA[Things Mac]]></category>
		<category><![CDATA[TricksAndTips]]></category>

		<guid isPermaLink="false">http://ormset.no/wordpress/2009/02/02/how-to-limit-the-size-of-a-time-machine-networked-backup/</guid>
		<description><![CDATA[As a little reminder to self, here is how you do it &#8211; from macosoxhints.com via Bytex. If you don&#8217;t limit the size of the DMG you will apparently run into problems with Time Machine (TM) killing off your entire backup. I currently use a smallish USB disk for backup, but I would much rather [...]]]></description>
			<content:encoded><![CDATA[<p><img style="max-width: 800px;" src="http://ormset.no/wordpress/wp-content/uploads/2009/02/time-machine-221.jpg" align="left" />As a little reminder to self, here is how you do it &#8211; from <a href="http://www.macosxhints.com/article.php?story=20071108020121567">macosoxhints.com</a> via <a href="http://www.bytex.no/">Bytex</a>. If you don&#8217;t limit the size of the DMG you will apparently run into problems with Time Machine (TM) killing off your entire backup. I currently use a smallish USB disk for backup, but I would much rather have TM back up over the network, preferrably via SSH. Unfortunately, <a href="http://www.expandrive.com/expandrive">ExpanDrive</a> does not support this officially. I am planning on giving it a try over ordinary sshfs in Fuse. I&#8217;ll be back with more.</p>
]]></content:encoded>
			<wfw:commentRss>http://ormset.no/wordpress/2009/02/02/how-to-limit-the-size-of-a-time-machine-networked-backup/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Topp-posting &#8211; det eg kaster bort mest tid på i løpet av dagen.</title>
		<link>http://ormset.no/wordpress/2007/12/07/topp-posting-det-eg-kaster-bort-mest-tid-pa-i-lopet-av-dagen/</link>
		<comments>http://ormset.no/wordpress/2007/12/07/topp-posting-det-eg-kaster-bort-mest-tid-pa-i-lopet-av-dagen/#comments</comments>
		<pubDate>Fri, 07 Dec 2007 09:30:32 +0000</pubDate>
		<dc:creator>ola</dc:creator>
				<category><![CDATA[Things Mac]]></category>
		<category><![CDATA[TricksAndTips]]></category>

		<guid isPermaLink="false">http://ormset.no/wordpress/2007/12/07/topp-posting-det-eg-kaster-bort-mest-tid-pa-i-l%c3%b8pet-av-dagen/</guid>
		<description><![CDATA[I forretningsverda er det blitt slik at det er vanleg å topp-poste. Dette medfører at istadenfor ein vanleg tekstflyt lyt ein begynne nederst i eposten og lese oppover for å få med seg heile historien. Personleg brukar eg utruleg mykje tid på dette i høve til å kunne lese ein korrekt sitert epost. Difor oppmodar [...]]]></description>
			<content:encoded><![CDATA[<p>I forretningsverda er det blitt slik at det er vanleg å topp-poste. Dette medfører at istadenfor ein vanleg tekstflyt lyt ein begynne nederst i eposten og lese oppover for å få med seg heile historien. Personleg brukar eg utruleg mykje tid på dette i høve til å kunne lese ein korrekt sitert epost. Difor oppmodar eg alle om å legge til denne vesle tankevekkjaren i signaturen sin &#8211; på fritt vald målføre:</p>
<p>  A: Fordi det er heilt motsett av den måten menneske vanlegvis les tekst.<br />
  Q: Kvifor det?<br />
  A: Topp-posting.<br />
  Q: Kva er det mest slitsame i epost og på news?</p>
<p>  A: Fordi det er helt motsatt av den måten mennesker vanligvis leser tekst.<br />
  Q: Hvorfor det?<br />
  A: Topp-posting.<br />
  Q: Hva er det mest slitsomme i epost og på news?</p>
<p>  A: Because it messes up the order in which people normally read text.<br />
  Q: Why is top-posting such a bad thing?<br />
  A: Top-posting.<br />
  Q: What is the most annoying thing on usenet and in e-mail? </p>
<p>Meir om det same:</p>
<p><a href="http://audun.norblogg.net/2007/01/10/sitering-av-epost/">http://audun.norblogg.net/2007/01/10/sitering-av-epost/</a><br />
<a href="http://home.online.no/~vidaandr/news/OBSquoting.html">http://home.online.no/~vidaandr/news/OBSquoting.html</a><br />
<a href="http://antibiomatika.net/usenet/quoting.html">http://antibiomatika.net/usenet/quoting.html</a></p>
]]></content:encoded>
			<wfw:commentRss>http://ormset.no/wordpress/2007/12/07/topp-posting-det-eg-kaster-bort-mest-tid-pa-i-lopet-av-dagen/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Finally figured out how to customize Spaces &#8220;Switch directly to a space&#8221;shortcuts</title>
		<link>http://ormset.no/wordpress/2007/11/22/finally-figured-out-how-to-customize-spaces-switch-directly-to-a-spaceshortcuts/</link>
		<comments>http://ormset.no/wordpress/2007/11/22/finally-figured-out-how-to-customize-spaces-switch-directly-to-a-spaceshortcuts/#comments</comments>
		<pubDate>Thu, 22 Nov 2007 14:59:06 +0000</pubDate>
		<dc:creator>ola</dc:creator>
				<category><![CDATA[Things Mac]]></category>
		<category><![CDATA[TricksAndTips]]></category>

		<guid isPermaLink="false">http://ormset.no/wordpress/2007/11/22/finally-figured-out-how-to-customize-spaces-switch-directly-to-a-spaceshortcuts/</guid>
		<description><![CDATA[I started using Linux in 1997, and fell in love with virtual desktops right away. A real productivity-booster. When I turned to Mac OS X in 2006 after a hard breakup with Linux on my laptop one of the first things I installed was VirtueDesktops. It worked very well, and  I used it all the [...]]]></description>
			<content:encoded><![CDATA[<p>I started using Linux in 1997, and fell in love with virtual desktops right away. A real productivity-booster. When I turned to Mac OS X in 2006 after a hard breakup with Linux on my laptop one of the first things I installed was <a href="http://virtuedesktops.info/">VirtueDesktops</a>. It worked very well, and  I used it all the time.</p>
<p>Then came Leopard bringing not gifts, but Spaces. Spaces is one of the worse implementations of virtual desktops I have seen.</p>
<ol>
<li>Impossible to turn off the animations when switching desktop. Theese animations tend to get slower during the day also.</li>
<li>Impossible to have more than 4 columns of desktops</li>
<li>When you Cmd-Tab around in your applications you also switch desktop. With the whole animation and all this is horrible. Just ask Nick Santilli over at <a href="http://virtuedesktops.info/">theAppleBlog</a>.</li>
<li>You may not set up your own keyboard shortcuts for direct access to each desktop. You must live with &lt;Modifier&gt;+&lt;Number&gt;</li>
</ol>
<p>The first three annoyances are something I cannot remedy that easily. But number four is something you may actually do something about! Or at least, there is a workaround.</p>
<p>Enter <a href="http://www.manytricks.com/butler">Butler</a>.</p>
<p>Butler is a tool to make repetitive tasks easier. Like launching applications. It&#8217;s much like QuickSilver in many ways. The Butler website has some challenges as I write this, so I enclose the install DMG here.</p>
<p><span style="font-size:12pt;">Download Butler:  </span><a href="http://ormset.no/wordpress/wp-content/uploads/2007/11/butler.dmg.zip">butler.dmg.zip</a></p>
<p>Now, for the setup. I want to have a grid of 4&#215;2 desktops. I want the upper row to be accessible with Cmd-Esc to Cmd-F3, and the lower row with Cmd-1 to Cmd-4.</p>
<p>So, what to do?<br />
<span style="font-size:12pt;"><br />
</span>* Start Butler.</p>
<p>* Modify your spaces settings. Set the &#8220;Switch directly to a space&#8221; key to be Option, as you want Cmd as your future hot<br />
key, and Control is convenient for having as the real spaces shortcut. See illustration below.</p>
<p><a href="http://ormset.no/wordpress/wp-content/uploads/2007/11/dock-7.jpg" onclick="window.open('http://ormset.no/wordpress/wp-content/uploads/2007/11/dock-7.jpg','popup','width=691,height=679,scrollbars=no,resizable=yes,toolbar=no,directories=no,location=no,menubar=no,status=yes,left=0,top=0');return false"><img src="http://ormset.no/wordpress/wp-content/uploads/2007/11/dock-7-tm.jpg" height="200" width="203" border="1" hspace="4" vspace="4" alt="Dock-7" /></a><br />
* Configure/Customize Butler. Add a new Keystroke Smart Item.</p>
<p><a href="http://ormset.no/wordpress/wp-content/uploads/2007/11/butler-add-item.png" onclick="window.open('http://ormset.no/wordpress/wp-content/uploads/2007/11/butler-add-item.png','popup','width=1281,height=981,scrollbars=no,resizable=yes,toolbar=no,directories=no,location=no,menubar=no,status=yes,left=0,top=0');return false"><img src="http://ormset.no/wordpress/wp-content/uploads/2007/11/butler-add-item-tm.png" height="200" width="261" border="1" hspace="4" vspace="4" alt="Butler Add Item" /></a><br />
<span style="font-size:12pt;"><br />
</span>* Then add a name to it, like &#8220;Workspace 1&#8243;. Also give the keystroke that you want Butler to generate.<br />
<a href="http://ormset.no/wordpress/wp-content/uploads/2007/11/workspace-keys.png" onclick="window.open('http://ormset.no/wordpress/wp-content/uploads/2007/11/workspace-keys.png','popup','width=1255,height=694,scrollbars=no,resizable=yes,toolbar=no,directories=no,location=no,menubar=no,status=yes,left=0,top=0');return false"><img src="http://ormset.no/wordpress/wp-content/uploads/2007/11/workspace-keys-tm.png" height="200" width="361" border="1" hspace="4" vspace="4" alt="Workspace Keys" /></a></p>
<p>* Now select the &#8220;Triggers&#8221; tab, and give the hotkey wanted for switching to that workspace. I prefer my first workspace to be on Cmd-Escape:<br />
<a href="http://ormset.no/wordpress/wp-content/uploads/2007/11/workspace-hotkey.png" onclick="window.open('http://ormset.no/wordpress/wp-content/uploads/2007/11/workspace-hotkey.png','popup','width=1263,height=700,scrollbars=no,resizable=yes,toolbar=no,directories=no,location=no,menubar=no,status=yes,left=0,top=0');return false"><img src="http://ormset.no/wordpress/wp-content/uploads/2007/11/workspace-hotkey-tm.jpg" height="200" width="360" border="1" hspace="4" vspace="4" alt="Workspace Hotkey" /></a><br />
* Repeat the process for all your desktops/workspaces, then go back to System Preferences and make the hot key for &#8220;Switch directly to a space&#8221; to be Control (^).</p>
<p><a href="http://ormset.no/wordpress/wp-content/uploads/2007/11/workspace-hotkeyspaces.png" onclick="window.open('http://ormset.no/wordpress/wp-content/uploads/2007/11/workspace-hotkeyspaces.png','popup','width=693,height=683,scrollbars=no,resizable=yes,toolbar=no,directories=no,location=no,menubar=no,status=yes,left=0,top=0');return false"><img src="http://ormset.no/wordpress/wp-content/uploads/2007/11/workspace-hotkeyspaces-tm.png" height="200" width="202" border="1" hspace="4" vspace="4" alt="Workspace Hotkeyspaces" /></a></p>
<p>Voilá. You now have your own hotkeys for navigating directly to a desktop in spaces.</p>
]]></content:encoded>
			<wfw:commentRss>http://ormset.no/wordpress/2007/11/22/finally-figured-out-how-to-customize-spaces-switch-directly-to-a-spaceshortcuts/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Backing up the Leopard?</title>
		<link>http://ormset.no/wordpress/2007/10/30/backing-up-the-leopard/</link>
		<comments>http://ormset.no/wordpress/2007/10/30/backing-up-the-leopard/#comments</comments>
		<pubDate>Tue, 30 Oct 2007 07:13:42 +0000</pubDate>
		<dc:creator>ola</dc:creator>
				<category><![CDATA[Things Mac]]></category>
		<category><![CDATA[TricksAndTips]]></category>

		<guid isPermaLink="false">http://ormset.no/wordpress/2007/10/30/backing-up-the-leopard/</guid>
		<description><![CDATA[I have now switched to Leopard, and wanted to test out the much anticipated Time Machine that supposedly makes backups a breeze. So I happily plugged in a empty USB drive, Time Machine asked me if I wanted to use that disk as a backup disk, and then it started backing up my data so [...]]]></description>
			<content:encoded><![CDATA[<p>I have now switched to Leopard, and wanted to test out the much anticipated Time Machine that supposedly makes backups a breeze. So I happily plugged in a empty USB drive, Time Machine asked me if I wanted to use that disk as a backup disk, and then it started backing up my data so that I can easily restore them&#8230; or not.</p>
<p>You see, I am one of those paranoid geezers that like to keep their files encrypted in case someone steals their laptop. So I use Apple&#8217;s built in encryption, FileVault, for my home folder. And it seems Time Machine does not play as nice with FileVaults as it does with non-protected data. Time Machine itself states, albeit not in that exact wording, that it sucks with FileVault:</p>
<p><a href="http://ormset.no/wordpress/wp-content/uploads/2007/10/time-machine-filevault.jpg" onclick="window.open('http://ormset.no/wordpress/wp-content/uploads/2007/10/time-machine-filevault.jpg','popup','width=679,height=456,scrollbars=no,resizable=yes,toolbar=no,directories=no,location=no,menubar=no,status=yes,left=0,top=0');return false"><img src="http://ormset.no/wordpress/wp-content/uploads/2007/10/time-machine-filevault-tm.jpg" height="300" width="446" border="1" hspace="4" vspace="4" alt="Time Machine Filevault" /></a></p>
<p>Another thing that annoys me with Time Machine is that you cannot make bootable backup disks with it. When your laptop gets stolen or your disk crashes and the customers are calling you every ten minutes the luxury of just plugging your USB/Firewire disk in, boot from it and have your complete work environment ready is pretty priceless. I&#8217;ve been there. Spending time reinstalling may not always be an option.</p>
<p>My current backup scheme that allows for this consists of two parts:</p>
<ul>
<li>Using RsyncX for backing up my entire system. This approach has the same caveat as Time Machine &#8211; I prefer to log out and back in as a second Admin user in order to successfully unmount the sparsebundle (sparseimage in Tiger) that holds my home folder, so that I am sure that it gets backed up properly. There is one &#8220;problem&#8221; with this &#8211; I only get the latest snapshot of my complete system. I can live with that, as I can boot from it. This method is not new, I used<a href="http://www.egg-tech.com/mac_backup/"> this howto from 2005</a> to get it rolling.</li>
<li>Using plain rsync over ssh to get incremental backups of my home folder. I used a slightly modified version of the &#8220;backup to a central backup server with 7 day incremental&#8221; from <a href="http://samba.anu.edu.au/rsync/examples.html">the rsync examples page</a>. Since this runs over ssh to a server at home I may take backups while on the run with my laptop, so I do not have to lug around the extra USB drive in order to get backups done.</li>
</ul>
<p>The combination of theese two methods makes restoring my system in case of a disk replacement as easy as two rsync commands after I boot from my USB drive:</p>
<ol>
<li>Rsync the entire contents of the USB drive into the new disk after partitioning it. The backup USB disk is, needless to say, also the perfect rescue tool.</li>
<li>Log in as my FileVaulted user and update my home folder from the server via ssh.</li>
</ol>
<p>However, if bootable backups is not a priority and you are OK with carrying the extra Time Machine backup disk with you and risk getting BOTH your laptop and your backups stolen &#8211; then Time Machine is for you. Also, if you are a home user with a desktop Mac Time Machine is also probably perfect for you. But as a laptop user with security needs Time Machine is not an ideal solution. The rsync setup is also more of a hack, and could be more seamless.  Any hints towards a seamless, fast restore, backup regime for security-minded laptop users is greatly welcome <img src='http://ormset.no/wordpress/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://ormset.no/wordpress/2007/10/30/backing-up-the-leopard/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Leopard finally supporting ssh-agent at login</title>
		<link>http://ormset.no/wordpress/2007/10/28/leopard-finally-supporting-ssh-agent-at-login/</link>
		<comments>http://ormset.no/wordpress/2007/10/28/leopard-finally-supporting-ssh-agent-at-login/#comments</comments>
		<pubDate>Sun, 28 Oct 2007 18:22:51 +0000</pubDate>
		<dc:creator>ola</dc:creator>
				<category><![CDATA[Things Mac]]></category>
		<category><![CDATA[TricksAndTips]]></category>

		<guid isPermaLink="false">http://ormset.no/wordpress/?p=178</guid>
		<description><![CDATA[In previous iterations of the feline OS we had to rely on SSHKeyChain in order to get a working ssh-agent setup that was global to all applications and not only for the current bash instance.
With Leopard the environment variable $SSH_AUTH_SOCK is set automatically, and the ssh-agent is managed by launchd (I think). SSHKeyChain may still [...]]]></description>
			<content:encoded><![CDATA[<p>In previous iterations of the feline OS we had to rely on <a href="http://www.sshkeychain.org/">SSHKeyChain</a> in order to get a working ssh-agent setup that was global to all applications and not only for the current bash instance.</p>
<p>With Leopard the environment variable $SSH_AUTH_SOCK is set automatically, and the ssh-agent is managed by launchd (I think). SSHKeyChain may still prove useful for setting up tunnels, but I see no point in waiting for yet another application to start at login.</p>
<p>If you have been using SSHKeyChain you must remember to go into it&#8217;s Preferences and Uncheck the &#8220;Manage (and modify) global environment variables&#8221; ticker, otherwise SSHKeyChain will override the OS settings &#8211; even if it&#8217;s not running.</p>
<p><img src="http://ormset.no/wordpress/wp-content/uploads/2007/10/sshkeychain.jpg" height="148" width="492" border="1" hspace="4" vspace="4" alt="Sshkeychain" /><br />
The actual adding of ssh keys is a bit non-intuitive for people used to doing <em>ssh-add</em>. Just using <em>ssh-add &lt;keyfile&gt;</em>  will only add the keyfile to the current session. If you want to never type your passphrase again, but let ssh-agent get your passphrase from Keychain every time you try to use the ssh key/identoty file you need to have a few things in place:</p>
<p>* Your &lt;identity&gt;.pub must be present in the remote accounts <em>$HOME/.ssh/authorized_keys</em> file</p>
<p>* You may use this syntax from the command line to add the key: <em>ssh -i &lt;identity file&gt; user@host</em> . I guess you may do this from the Keychain Access application in some way too, but I was not able to find out how. There must be a slicker way.</p>
<p>So, I used this command in my terminal to add my &#8220;lolcats&#8221; private key/identity to my Keychain:</p>
<p><em>ssh -i lolcats lolcat@hostname.tld<br />
</em><br />
And up came this dialog window, voilá:</p>
<p><img src="http://ormset.no/wordpress/wp-content/uploads/2007/10/dock-1.jpg" height="289" width="473" border="1" hspace="4" vspace="4" alt="Dock-1" /></p>
]]></content:encoded>
			<wfw:commentRss>http://ormset.no/wordpress/2007/10/28/leopard-finally-supporting-ssh-agent-at-login/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>Cat 5 cable</title>
		<link>http://ormset.no/wordpress/2005/06/29/cat-5-cable/</link>
		<comments>http://ormset.no/wordpress/2005/06/29/cat-5-cable/#comments</comments>
		<pubDate>Wed, 29 Jun 2005 14:00:58 +0000</pubDate>
		<dc:creator>ola</dc:creator>
				<category><![CDATA[TricksAndTips]]></category>

		<guid isPermaLink="false">http://ormset.no/wordpress/?p=6</guid>
		<description><![CDATA[
RJ45 alignment

      To utilize these color codes correctly you should hold your RJ45 connector
      with the locking thingy away from yourself, and with the little
      metal contacts facing towards you.
    
Pairs

      Most [...]]]></description>
			<content:encoded><![CDATA[<style type="text/css"><!--
      table.cable {
      padding: 0px;
      margin: 0px;
      border-collapse:	collapse; 
/*      border-collapse: separate ; */
/*    border-spacing: 5px ; */
      border: 1px solid black;
      }
      th.cable {
      width: 100px;
      border-bottom: 1px solid black;
      border-right: 1px solid black;
      padding: 0px;
      margin: 0px;</p>
<p>      }
      td.cable {
      width: 100px;
      text-align: center;
      border: 1px solid black;
      padding: 0px;
      margin: 0px;</p>
<p>      }</p>
<p>      /* Colors */
      td.orange {
      background-color: #CC6600;
      width: 100px;
      border: 1px solid black;
      padding: 0px;
      margin: 0px;</p>
<p>      }
      td.green {
      background-color: green;
      width: 100px;
      border: 1px solid black;
      padding: 0px;
      margin: 0px;</p>
<p>      }
      td.blue {
      background-color: blue;
      width: 100px;
      border: 1px solid black;
      padding: 0px;
      margin: 0px;</p>
<p>      }
      td.brown {
      background-color: brown;
      width: 100px;
      border: 1px solid black;
      padding: 0px;
      margin: 0px;
      }</p>
<p>      /* Colgate */
      div.white {
      position: relative;
      top: 0;
      left: 50;
      width: 50%;
      background-color: white;
      }</p>
<p>--></style>
<h2>RJ45 alignment</h2>
<p>
      To utilize these color codes correctly you should hold your RJ45 connector<br />
      with the locking thingy <u>away</u> from yourself, and with the little<br />
      metal contacts facing <u>towards</u> you.
    </p>
<h3>Pairs</h3>
<p>
      Most CAT5 cable comes with 4 pairs (otherwise, would it be a CAT5<br />
      cable?). On the standard, el-cheapo CAT5 from <a href="http://biltema.se">Biltema</a> those pairs have certain color<br />
      codes. I use them as an example here.
    </p>
<p> <span id="more-6"></span>   </p>
<table class="cable" width="202px">
<tr>
<th class="cable">Pair number</th>
<th class="cable" colspan="2">Color</th>
</tr>
<tr>
<td class="cable" rowspan="2">1</td>
<td class="orange">&nbsp;</td>
</tr>
<tr>
<td class="orange">
<div class="white">&nbsp;</div>
</td>
</tr>
<tr>
<td class="cable" rowspan="2">2</td>
<td class="green">&nbsp;</td>
</tr>
<tr>
<td class="green">
<div class="white">&nbsp;</div>
</td>
</tr>
<tr>
<td class="cable" rowspan="2">3</td>
<td class="blue">&nbsp;</td>
</tr>
<tr>
<td class="blue">
<div class="white">&nbsp;</div>
</td>
</tr>
<tr>
<td class="cable" rowspan="2">4</td>
<td class="brown">&nbsp;</td>
</tr>
<tr>
<td class="brown">
<div class="white">&nbsp;</div>
</td>
</tr>
</table>
<h3>PC to hub Cable</h3>
<p>
      This is the most common cable, often referred to as a &#8220;patch cable&#8221;. One<br />
      end goes into your RJ45 compatible network interface, and the other one<br />
      fits smugly into your switch, HUB, broadband router or your least<br />
      favourite pets ass^H^H^H favourite toy.
    </p>
<table class="cable" width="202px">
<tr>
<th class="cable" >Pin number</th>
<th class="cable" colspan="2">Color</th>
</tr>
<tr>
<td class="cable">1</td>
<td class="orange">&nbsp;</td>
</tr>
<tr>
<td class="cable">2</td>
<td class="orange">
<div class="white">&nbsp;</div>
</td>
</tr>
<tr>
<td class="cable">3</td>
<td class="green">&nbsp;</td>
</tr>
<tr>
<td class="cable">4</td>
<td class="blue">&nbsp;</td>
</tr>
<tr>
<td class="cable">5</td>
<td class="blue">
<div class="white">&nbsp;</div>
</td>
</tr>
<tr>
<td class="cable">6</td>
<td class="green">
<div class="white">&nbsp;</div>
</td>
</tr>
<tr>
<td class="cable">7</td>
<td class="brown">&nbsp;</td>
</tr>
<tr>
<td class="cable">8</td>
<td class="brown">
<div class="white">&nbsp;</div>
</td>
</tr>
</table>
<h3>Two computers over one CAT5?</h3>
<p>
      Yes, this is indeed possible. Just remember that the plug utilizing pairs<br />
      <b>3</b> and <b>4</b> should be plugged into the computer which transfers<br />
      the least data of the two.
    </p>
<p>
      This setup is most commonly used between a hub and a dual connector walljack.
    </p>
<table class="cable" width="304px">
<tr>
<th class="cable">Plug/walljack number</th>
<th class="cable" >Pin number</th>
<th class="cable" colspan="2">Color</th>
</tr>
<tr>
<td class="cable" rowspan="8">1</td>
<td class="cable">1</td>
<td class="orange">&nbsp;</td>
</tr>
<tr>
<td class="cable">2</td>
<td class="orange">
<div class="white">&nbsp;</div>
</td>
</tr>
<tr>
<td class="cable">3</td>
<td class="green">&nbsp;</td>
</tr>
<tr>
<td class="cable">4</td>
<td class="cable">&nbsp;</td>
</tr>
<tr>
<td class="cable">5</td>
<td class="cable">&nbsp;</td>
</tr>
<tr>
<td class="cable">6</td>
<td class="green">
<div class="white">&nbsp;</div>
</td>
</tr>
<tr>
<td class="cable">7</td>
<td class="cable">&nbsp;</td>
</tr>
<tr>
<td class="cable">8</td>
<td class="cable">&nbsp;</td>
</tr>
<tr>
<td class="cable" rowspan="8">2</td>
<td class="cable">1</td>
<td class="blue">&nbsp;</td>
</tr>
<tr>
<td class="cable">2</td>
<td class="blue">
<div class="white">&nbsp;</div>
</td>
</tr>
<tr>
<td class="cable">3</td>
<td class="brown">&nbsp;</td>
</tr>
<tr>
<td class="cable">4</td>
<td class="cable">&nbsp;</td>
</tr>
<tr>
<td class="cable">5</td>
<td class="cable">&nbsp;</td>
</tr>
<tr>
<td class="cable">6</td>
<td class="brown">
<div class="white">&nbsp;</div>
</td>
</tr>
<tr>
<td class="cable">7</td>
<td class="cable">&nbsp;</td>
</tr>
<tr>
<td class="cable">8</td>
<td class="cable">&nbsp;</td>
</tr>
</table>
]]></content:encoded>
			<wfw:commentRss>http://ormset.no/wordpress/2005/06/29/cat-5-cable/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>SSH Magic made easy</title>
		<link>http://ormset.no/wordpress/2005/06/29/ssh-magic-made-easy/</link>
		<comments>http://ormset.no/wordpress/2005/06/29/ssh-magic-made-easy/#comments</comments>
		<pubDate>Wed, 29 Jun 2005 13:45:54 +0000</pubDate>
		<dc:creator>ola</dc:creator>
				<category><![CDATA[TricksAndTips]]></category>

		<guid isPermaLink="false">http://ormset.no/wordpress/?p=5</guid>
		<description><![CDATA[SSH is not only a tool to log into remote machines in a secure fashion - it's much more than that. This HOWTO describes some features that makes advanced topics easier.]]></description>
			<content:encoded><![CDATA[<br />
<h2><strong>Semi-VPN through a ssh SOCKS4 proxy</strong></h2>
<p>  VPN setup in Linux is, depending on your distro, a time-consuming<br />
  and technically challenging task often involving kernel patching and<br />
  a whole lot of setup-file-editing. With ssh and<br />
  <a href="http://tsocks.sourceforge.net/">tsocks</a> much of the same<br />
  functionality may be achieved.</p>
<p><span id="more-5"></span></p>
<h3>  Overview</h3>
<p>    What basically happens is that you open an encrypted tunnel to a<br />
    Linux/UNIX machine connected to the remote network where the<br />
    services you wish to use are available. All network traffic<br />
    requested by your programs are routed through that encrypted<br />
    channel so that programs on your local desktop network-wise<br />
    appears to be running at the remote Linux/UNIX machine.</p>
<h3>  Requirements</h3>
<p>    You will need:</p>
<ul>
<li>A *nix server which allows remote logins with ssh on some port<br />
      (usually port 22)</li>
<li>The firewall must allow traffic to the ssh port on the *nix<br />
      machine</li>
<li>ssh client-side software. In Debian all you have to write is, as<br />
      root:
<p>      <code>apt-get install ssh</code></p>
</li>
<li>the tsocks library and user software. Again, in Debian, as root:
<p>      <code>apt-get install tsocks</code></p>
</li>
</ul>
<h3>  Topology</h3>
<p>    Our network setup looks like this.</p>
<p>    <img src="/img/network.png" alt="Network setup"/>
</p>
<h3>  Setup tsocks</h3>
<p>    Edit the file <em>/etc/tsocks.conf</em>. The minimum content may look<br />
    like this:</p>
<pre>
      # Our local network
      local = 192.168.0.0/255.255.255.0
      local = 127.0.0.0/255.255.255.0
      # The SOCKS4 proxy servers IP address - the desktop box.
      server = 127.0.0.1
      # The SOCKS4 server will be running on port 7667
      server_port = 7667
      # We use SOCKS4, not 5
      server_type = 4
</pre>
</p>
<h3>  Usage</h3>
<p>    Ok, we have installed everything and set up tsocks. Next we need<br />
    to make ssh behave like a SOCKS4 proxy. Your username on <code>server</code><br />
    is <code>user</code>, by the way <img src='http://ormset.no/wordpress/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>    Now, in a terminal window write the following:</p>
<p>    <code>ssh -D 7667 user@server</code></p>
<p>    Typicaly, this is what will happen:</p>
<pre>
     user@desktop% ssh -D 7667 user@server
     user@server's password:
     Last login: Sat Jan 17 16:59:51 2004
     [ user@server ~ ]%
</pre>
</p>
<p>    You are now logged in as normal to <code>server</code>. However, in addition<br />
    to just logging in your ssh session acts as an SOCKS4 proxy. Neat?</p>
<p>    To test the setup open a new terminal window. In this example I<br />
    use Mozilla as web browser, but any other one will do. Make sure<br />
    no instances of mozilla is running. We will try accessing the web<br />
    page on the web server <code>webserver</code>, which is not reachable from<br />
    the Internet, only from the Remote network where <code>server</code> also<br />
    resides:</p>
<pre>
      user@desktop% mozilla
</pre>
</p>
<p>    Try accessing the url <code>http://webserver</code>. This should fail. Now<br />
    try this:</p>
<pre>

      user@desktop% tsocks mozilla
</pre>
</p>
<p>    And what do you know! You may now view an internal webpage,<br />
    <code>http://webserver</code>, from the Remote network! Congratulations, it<br />
    worked <img src='http://ormset.no/wordpress/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<h3>  Automatic startup and semi-vpn</h3>
<p>    In order to make <u>all</u> your applications use the proxy for network<br />
    traffic going to non-local sites we need to edit your X-server<br />
    login file, most commonly <code>~/.xsession</code>, a bit so that all<br />
    settings are loaded at startup. Here we need a helper application<br />
    called ssh-askpass:</p>
<pre>
      % su -
      $ apt-get install ssh-askpass
</pre>
</p>
<p>    ssh-askpass enables ssh to pop up an graphical window to ask for<br />
    our password.</p>
<p>    Now make your <code>.xsession</code> file look like this:</p>
<pre>
      #!/bin/sh

      # Where SSH may find ssh-askpass
      export SSH_ASKPASS=/usr/lib/ssh/x11-ssh-askpass

      # Start the ssh SOCKS4 proxy - but do not open an login shell.
      ssh -N -D 7667 user@server &amp;

      # Make all applications use the tsocks library
      # It is important to do this _after_ we open the ssh connection..
      export LD_PRELOAD=/usr/lib/libtsocks.so

      # Start your window manager - I use gnome sometimes
      gnome-session
</pre></p>
]]></content:encoded>
			<wfw:commentRss>http://ormset.no/wordpress/2005/06/29/ssh-magic-made-easy/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
