<?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>Racker Hacker &#187; mac</title>
	<atom:link href="http://rackerhacker.com/tag/mac/feed/" rel="self" type="application/rss+xml" />
	<link>http://rackerhacker.com</link>
	<description>Words of wisdom from a server administrator</description>
	<lastBuildDate>Wed, 16 May 2012 12:55:04 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>Handy hints for using dtrace on the Mac</title>
		<link>http://rackerhacker.com/2012/03/10/handy-hints-for-using-dtrace-on-the-mac/</link>
		<comments>http://rackerhacker.com/2012/03/10/handy-hints-for-using-dtrace-on-the-mac/#comments</comments>
		<pubDate>Sat, 10 Mar 2012 18:49:59 +0000</pubDate>
		<dc:creator>Major Hayden</dc:creator>
				<category><![CDATA[Blog Posts]]></category>
		<category><![CDATA[dtrace]]></category>
		<category><![CDATA[mac]]></category>
		<category><![CDATA[systemtap]]></category>

		<guid isPermaLink="false">http://rackerhacker.com/?p=3140</guid>
		<description><![CDATA[I'm a big fan of Linux tools which allow you to monitor things in great detail. Some of my favorites are strace, the systemtap tools, and sysstat. Finding tools similar to these on a Mac is a little more difficult. There's a great blog post from Brendan Gregg's blog that covers a lot of detail [...]<p><a href="http://rackerhacker.com/2012/03/10/handy-hints-for-using-dtrace-on-the-mac/">Handy hints for using dtrace on the Mac</a> is a post from: Major Hayden's <a href="http://rackerhacker.com">Racker Hacker</a> blog. 
<p>Thanks for following the blog via the RSS feed. Please don't copy my posts or quote portions of them without attribution.</p></p>
]]></description>
			<content:encoded><![CDATA[<p>I'm a big fan of Linux tools which allow you to monitor things in great detail.  Some of my favorites are strace, the <a href="http://sourceware.org/systemtap/">systemtap</a> tools, and sysstat.  Finding tools similar to these on a Mac is a little more difficult.</p>
<p>There's a great blog post from Brendan Gregg's blog that covers a lot of detail around dtrace and its related tools:</p>
<ul>
<li><a href="http://dtrace.org/blogs/brendan/2011/10/10/top-10-dtrace-scripts-for-mac-os-x/">http://dtrace.org/blogs/brendan/2011/10/10/top-10-dtrace-scripts-for-mac-os-x/</a></li>
</ul>
<p>One of the handier tools is <code>iosnoop</code>.  It gives you a much easier to read (and easier to generate) view of the disk I/O on your Mac.  If you remember, I talked about how to do this in Linux in the <a href="/2010/12/07/tap-into-your-linux-system-with-systemtap/">systemtap</a> post as well as the post about <a href="/2008/03/11/hunting-down-elusive-sources-of-iowait/">finding elusive sources of iowait</a>.  This could give you a lot of handy information if you're staring at beachballs regularly while your disk drive churns.</p>
<p><a href="http://rackerhacker.com/2012/03/10/handy-hints-for-using-dtrace-on-the-mac/">Handy hints for using dtrace on the Mac</a> is a post from: Major Hayden's <a href="http://rackerhacker.com">Racker Hacker</a> blog. 
<p>Thanks for following the blog via the RSS feed. Please don't copy my posts or quote portions of them without attribution.</p></p>
]]></content:encoded>
			<wfw:commentRss>http://rackerhacker.com/2012/03/10/handy-hints-for-using-dtrace-on-the-mac/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Getting online with a CradlePoint PHS-300 and an AT&amp;T USBConnect Mercury</title>
		<link>http://rackerhacker.com/2011/12/16/getting-online-with-a-cradlepoint-phs-300-and-an-att-usbconnect-mercury/</link>
		<comments>http://rackerhacker.com/2011/12/16/getting-online-with-a-cradlepoint-phs-300-and-an-att-usbconnect-mercury/#comments</comments>
		<pubDate>Fri, 16 Dec 2011 07:07:08 +0000</pubDate>
		<dc:creator>Major Hayden</dc:creator>
				<category><![CDATA[Blog Posts]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[mac]]></category>
		<category><![CDATA[network]]></category>
		<category><![CDATA[wireless]]></category>

		<guid isPermaLink="false">http://rackerhacker.com/?p=2682</guid>
		<description><![CDATA[Anyone who has used a 3G ExpressCard or USB stick knows how handy they can be when you need internet access away from home (and away from Wi-Fi). I've run into some situations recently where I needed to share my 3G connection with more than one device without using internet sharing on my MacBook Pro. [...]<p><a href="http://rackerhacker.com/2011/12/16/getting-online-with-a-cradlepoint-phs-300-and-an-att-usbconnect-mercury/">Getting online with a CradlePoint PHS-300 and an AT&#038;T USBConnect Mercury</a> is a post from: Major Hayden's <a href="http://rackerhacker.com">Racker Hacker</a> blog. 
<p>Thanks for following the blog via the RSS feed. Please don't copy my posts or quote portions of them without attribution.</p></p>
]]></description>
			<content:encoded><![CDATA[<p>Anyone who has used a 3G ExpressCard or USB stick knows how handy they can be when you need internet access away from home (and away from Wi-Fi).  I've run into some situations recently where I needed to share my 3G connection with more than one device without using internet sharing on my MacBook Pro.</p>
<p><a href="http://rackerhacker.com/wp-content/uploads/2011/12/phs300.jpg"><img src="http://rackerhacker.com/wp-content/uploads/2011/12/phs300-300x300.jpg" alt="" title="phs300" width="300" height="300" class="alignright size-medium wp-image-2691" /></a>That led me to pick up a CradlePoint PHS-300 (discontinued by the manufacturer, but available from <a href="http://www.amazon.com/CradlePoint-PHS300-Personal-Hotspot-Wireless/dp/B001212ELY">Amazon</a> for about $35).  It's compatible with my AT&#038;T USBConnect Mercury (a.k.a. Sierra Wireless Compass 885/885U) USB stick.</p>
<p>Configuring the PHS-300 was extremely easy since I could just associate with the wireless network and enter the password printed on the bottom of the unit.  However, getting the 3G stick to work was an immense pain.  If you're trying to pair up these products, these steps should help:</p>
<ul>
<li>Access the PHS-300's web interface</li>
<li>Click the <b>Modem</b> tab</li>
<li>Click <b>Settings</b> on the left</li>
<li>Click <b>Always on</b> under <b>Reconnect Mode</b></li>
<li>Uncheck <b>Aggressive Modem Reset</b></li>
<li>Put the following into the <b>AT Dial Script</b> text box:

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">ATE0V1&amp;F&amp;D2&amp;C1S0=0
ATDT*99***1#</pre></div></div>

</li>
<li>Add <code>ISP.CINGULAR</code> to the <b>Access Point Name (APN)</b> box</li>
<li>Flip the <b>Connect Mode</b> under <b>Dual WiMAX/3G Settings</b> to <b>3G Only</b></li>
<li>Scroll up and push <b>Save Settings</b> and then <b>Reboot Now</b></li>
</ul>
<p>Once the PHS-300 reboots, the USB stick may light up, then turn off, and the display on the PHS-300 might show a red light for the 3G card.  Wait about 10-15 seconds for the light to turn green.  The lights on the 3G stick should be glowing and blinking as well.</p>
<p><strong>So how did I figure this out?</strong></p>
<p>After scouring Google search results, Sierra Wireless FAQ's, CradlePoint's support pages, and trolling through minicom (yes, minicom), I thought I'd try connecting with my MacBook Pro using the 3G Watcher application provided by Sierra Wireless.  Before connecting, I opened up Console.app and watched the <code>ppp.log</code> file.  Sure enough, two lines popped up that were quite relevant to my interests:</p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">Fri Dec 16 00:37:51 2011 : Initializing phone: ATE0V1&amp;F&amp;D2&amp;C1S0=0
Fri Dec 16 00:37:51 2011 : Dialing: ATDT*99***1#</pre></div></div>

<p>I didn't have the exact initialization string in the PHS-300 and that was the cause of the failure the entire time.</p>
<p>If you'd like to talk to your USBConnect Mercury stick with minicom, just install minicom from macports (<code>sudo port -v install minicom</code>) and start it up like so:</p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">sudo minicom -D /dev/cu.sierra04</pre></div></div>

<p>For other Sierra Wireless cards and adapters, there's a <a href="http://mycusthelp.net/SIERRAWIRELESS/_cs/AnswerDetail.aspx?aid=7">helpful page</a> on Sierra Wireless' site for Eee PC users.</p>
<p><a href="http://rackerhacker.com/2011/12/16/getting-online-with-a-cradlepoint-phs-300-and-an-att-usbconnect-mercury/">Getting online with a CradlePoint PHS-300 and an AT&#038;T USBConnect Mercury</a> is a post from: Major Hayden's <a href="http://rackerhacker.com">Racker Hacker</a> blog. 
<p>Thanks for following the blog via the RSS feed. Please don't copy my posts or quote portions of them without attribution.</p></p>
]]></content:encoded>
			<wfw:commentRss>http://rackerhacker.com/2011/12/16/getting-online-with-a-cradlepoint-phs-300-and-an-att-usbconnect-mercury/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>DisplayLink USB to DVI issues in OS X Lion</title>
		<link>http://rackerhacker.com/2011/11/17/displaylink-usb-to-dvi-issues-in-os-x-lion/</link>
		<comments>http://rackerhacker.com/2011/11/17/displaylink-usb-to-dvi-issues-in-os-x-lion/#comments</comments>
		<pubDate>Thu, 17 Nov 2011 13:38:48 +0000</pubDate>
		<dc:creator>Major Hayden</dc:creator>
				<category><![CDATA[Blog Posts]]></category>
		<category><![CDATA[mac]]></category>

		<guid isPermaLink="false">http://rackerhacker.com/?p=2664</guid>
		<description><![CDATA[I added a DisplayLink USB to DVI adapter to my MacBook Pro a while back and it occasionally has some issues where it won't start the display after connecting the USB cable. My logs in Console.app usually contain something like this: The IOUSBFamily is having trouble enumerating a USB device that has been plugged in. [...]<p><a href="http://rackerhacker.com/2011/11/17/displaylink-usb-to-dvi-issues-in-os-x-lion/">DisplayLink USB to DVI issues in OS X Lion</a> is a post from: Major Hayden's <a href="http://rackerhacker.com">Racker Hacker</a> blog. 
<p>Thanks for following the blog via the RSS feed. Please don't copy my posts or quote portions of them without attribution.</p></p>
]]></description>
			<content:encoded><![CDATA[<p>I added a <a href="http://www.displaylink.com/">DisplayLink USB to DVI adapter</a> to my MacBook Pro a while back and it occasionally has some issues where it won't start the display after connecting the USB cable.  My logs in Console.app usually contain something like this:</p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">The IOUSBFamily is having trouble enumerating a USB device that has been plugged in.  It will keep retrying.  (Port 4 of Hub at 0xfa100000)
The IOUSBFamily was not able to enumerate a device.
The IOUSBFamily is having trouble enumerating a USB device that has been plugged in.  It will keep retrying.  (Port 4 of Hub at 0xfa100000)
The IOUSBFamily was not able to enumerate a device.
The IOUSBFamily is having trouble enumerating a USB device that has been plugged in.  It will keep retrying.  (Port 4 of Hub at 0xfa100000)
The IOUSBFamily gave up enumerating a USB device after 10 retries.  (Port 4 of Hub at 0xfa100000)
The IOUSBFamily was not able to enumerate a device.</pre></div></div>

<p>The solution is a bit goofy, but here's what you can do:</p>
<ol>
<li>Unplug the adapter from the USB port.</li>
<li>Disconnect the DVI cable from the DisplayLink adapter.</li>
<li>Power off the display you normally use with the adapter.</li>
<li>Connect the USB cable between your computer and the DisplayLink adapter.</li>
<li>Wait for your displays to flash (as if a new display was connected).</li>
<li>The light on your DisplayLink adapter should be on now.</li>
<li>Connect the DVI cable to the DisplayLink adapter.</li>
<li>Wait a few seconds and then power on the display connected to the adapter.</li>
</ol>
<p>If this process doesn't work, try a reboot and repeat the process once Finder finishes starting up.</p>
<p><a href="http://rackerhacker.com/2011/11/17/displaylink-usb-to-dvi-issues-in-os-x-lion/">DisplayLink USB to DVI issues in OS X Lion</a> is a post from: Major Hayden's <a href="http://rackerhacker.com">Racker Hacker</a> blog. 
<p>Thanks for following the blog via the RSS feed. Please don't copy my posts or quote portions of them without attribution.</p></p>
]]></content:encoded>
			<wfw:commentRss>http://rackerhacker.com/2011/11/17/displaylink-usb-to-dvi-issues-in-os-x-lion/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Installing irssi via MacPorts on OS X Lion 10.7.1</title>
		<link>http://rackerhacker.com/2011/09/30/installing-irssi-via-macports-on-os-x-lion-10-7-1/</link>
		<comments>http://rackerhacker.com/2011/09/30/installing-irssi-via-macports-on-os-x-lion-10-7-1/#comments</comments>
		<pubDate>Fri, 30 Sep 2011 13:24:44 +0000</pubDate>
		<dc:creator>Major Hayden</dc:creator>
				<category><![CDATA[Blog Posts]]></category>
		<category><![CDATA[command line]]></category>
		<category><![CDATA[gcc]]></category>
		<category><![CDATA[irc]]></category>
		<category><![CDATA[irssi]]></category>
		<category><![CDATA[mac]]></category>
		<category><![CDATA[macports]]></category>

		<guid isPermaLink="false">http://rackerhacker.com/?p=2576</guid>
		<description><![CDATA[I've floated back and forth between graphical IRC clients and terminal-based clients for a long time. However, I was sad to see that irssi wouldn't build via MacPorts on OS X Lion. During the build, I saw quite a few errors from the compiler: -E, -S, -save-temps and -M options are not allowed with multiple [...]<p><a href="http://rackerhacker.com/2011/09/30/installing-irssi-via-macports-on-os-x-lion-10-7-1/">Installing irssi via MacPorts on OS X Lion 10.7.1</a> is a post from: Major Hayden's <a href="http://rackerhacker.com">Racker Hacker</a> blog. 
<p>Thanks for following the blog via the RSS feed. Please don't copy my posts or quote portions of them without attribution.</p></p>
]]></description>
			<content:encoded><![CDATA[<p>I've floated back and forth between graphical IRC clients and terminal-based clients for a long time.  However, I was sad to see that irssi wouldn't build via MacPorts on OS X Lion.  During the build, I saw quite a few errors from the compiler:</p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">-E, -S, -save-temps and -M options are not allowed with multiple -arch flags</pre></div></div>

<p>Sure enough, when I looked at the lines in the output, both x86_64 and i386 were passed to the compiler:</p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">... -pipe -O2 -arch x86_64 -arch i386 -fno-common ...</pre></div></div>

<p>I <a href="http://trac.macports.org/ticket/31467">opened a ticket in trac</a> and began looking for a workaround.  <a href="http://trac.macports.org/ticket/13004#comment:4">Another trac ticket</a> (from four years ago) on the MacPorts site gave some pointers on how to work around the bug for a previous version.</p>
<p>I changed up the instructions a bit since we're not dealing with the ppc architecture any longer:</p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">sudo port -v clean irssi +perl
sudo port -v configure irssi +perl
cd /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_irc_irssi/irssi/work/
sudo find . -type f -exec sed -i &quot;&quot; -e &quot;s/-arch i386//g&quot; {} \;
cd
sudo port -v install irssi +perl</pre></div></div>

<p>The build worked!</p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">$ irssi -v
irssi 0.8.15 (20100403 1617)</pre></div></div>

<p><a href="http://rackerhacker.com/2011/09/30/installing-irssi-via-macports-on-os-x-lion-10-7-1/">Installing irssi via MacPorts on OS X Lion 10.7.1</a> is a post from: Major Hayden's <a href="http://rackerhacker.com">Racker Hacker</a> blog. 
<p>Thanks for following the blog via the RSS feed. Please don't copy my posts or quote portions of them without attribution.</p></p>
]]></content:encoded>
			<wfw:commentRss>http://rackerhacker.com/2011/09/30/installing-irssi-via-macports-on-os-x-lion-10-7-1/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Highlight IP addresses with a double click in Firefox</title>
		<link>http://rackerhacker.com/2011/08/16/highlight-ip-addresses-with-a-double-click-in-firefox/</link>
		<comments>http://rackerhacker.com/2011/08/16/highlight-ip-addresses-with-a-double-click-in-firefox/#comments</comments>
		<pubDate>Tue, 16 Aug 2011 12:46:07 +0000</pubDate>
		<dc:creator>Major Hayden</dc:creator>
				<category><![CDATA[Blog Posts]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[mac]]></category>
		<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://rackerhacker.com/?p=2409</guid>
		<description><![CDATA[My daily work involves working with a large number of servers and one of my frustrations with Firefox is that it's not possible to select an entire IP address with a double click with the default settings. Although it works right out of the box with Safari, you have to make a configuration adjustment in [...]<p><a href="http://rackerhacker.com/2011/08/16/highlight-ip-addresses-with-a-double-click-in-firefox/">Highlight IP addresses with a double click in Firefox</a> is a post from: Major Hayden's <a href="http://rackerhacker.com">Racker Hacker</a> blog. 
<p>Thanks for following the blog via the RSS feed. Please don't copy my posts or quote portions of them without attribution.</p></p>
]]></description>
			<content:encoded><![CDATA[<p>My daily work involves working with a large number of servers and one of my frustrations with Firefox is that it's not possible to select an entire IP address with a double click with the default settings.  Although it works right out of the box with Safari, you have to make a configuration adjustment in Firefox to get the same behavior.</p>
<p>To change the setting in Firefox, open up a new Firefox tab and go to <code>about:config</code> in the browser.  Paste <code>word_select.stop</code> in the search bar that appears below your tab bar and double click the <code>layout.word_select.stop_at_punctuation</code> line.  It should become bold and the value on the end will flip from true to false.</p>
<p>Go back to another tab and <a href="http://icanhazip.com/">open a web page which displays an IP address</a>.  Double click on any portion of the IP address and Firefox should highlight the entire address.</p>
<p><a href="http://rackerhacker.com/2011/08/16/highlight-ip-addresses-with-a-double-click-in-firefox/">Highlight IP addresses with a double click in Firefox</a> is a post from: Major Hayden's <a href="http://rackerhacker.com">Racker Hacker</a> blog. 
<p>Thanks for following the blog via the RSS feed. Please don't copy my posts or quote portions of them without attribution.</p></p>
]]></content:encoded>
			<wfw:commentRss>http://rackerhacker.com/2011/08/16/highlight-ip-addresses-with-a-double-click-in-firefox/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Sticky shift key with synergy in Fedora 12</title>
		<link>http://rackerhacker.com/2010/03/03/sticky-shift-key-with-synergy-in-fedora-12/</link>
		<comments>http://rackerhacker.com/2010/03/03/sticky-shift-key-with-synergy-in-fedora-12/#comments</comments>
		<pubDate>Thu, 04 Mar 2010 02:44:12 +0000</pubDate>
		<dc:creator>Major Hayden</dc:creator>
				<category><![CDATA[Blog Posts]]></category>
		<category><![CDATA[fedora]]></category>
		<category><![CDATA[gdm]]></category>
		<category><![CDATA[keyboard]]></category>
		<category><![CDATA[mac]]></category>
		<category><![CDATA[synergy]]></category>

		<guid isPermaLink="false">http://rackerhacker.com/?p=1274</guid>
		<description><![CDATA[My synergy setup at work is relatively simple. I have a MacBook Pro running Snow Leopard that acts as a synergy server and a desktop running Fedora 12 as a synergy client. On the Mac, I use SynergyKM to manage the synergy server. The Fedora box uses my gdm strategy for starting synergy at the [...]<p><a href="http://rackerhacker.com/2010/03/03/sticky-shift-key-with-synergy-in-fedora-12/">Sticky shift key with synergy in Fedora 12</a> is a post from: Major Hayden's <a href="http://rackerhacker.com">Racker Hacker</a> blog. 
<p>Thanks for following the blog via the RSS feed. Please don't copy my posts or quote portions of them without attribution.</p></p>
]]></description>
			<content:encoded><![CDATA[<p>My synergy setup at work is relatively simple.  I have a MacBook Pro running Snow Leopard that acts as a synergy server and a desktop running Fedora 12 as a synergy client.  On the Mac, I use SynergyKM to manage the synergy server.  The Fedora box uses <a href="http://rackerhacker.com/2008/07/30/automatically-starting-synergy-in-gdm-in-ubuntufedora/">my gdm strategy</a> for starting synergy at the login screen and in GNOME.</p>
<p>I kept having an issue where the shift key would become stuck regardless of the settings I set for the client or server.  The <code> halfDuplexCapsLock</code> <a href="http://synergy2.sourceforge.net/configuration.html">configuration option</a> had no effect.  After installing <code>xkeycaps</code>, I found that both shift keys were getting stuck if I brought the mouse back and forth between Mac and Fedora twice.</p>
<p>I decided to run a test.  I started the client with the debug argument and moved the mouse to my Fedora box.  At that point, I pressed the letter 'a' and saw:</p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">DEBUG1: CXWindowsKeyState.cpp,195:   032 (00000000) up
DEBUG1: CXWindowsKeyState.cpp,195:   03e (00000000) up
DEBUG1: CXWindowsKeyState.cpp,195:   026 (00000000) down
DEBUG1: CXWindowsKeyState.cpp,195:   032 (00000000) down
DEBUG1: CXWindowsKeyState.cpp,195:   03e (00000000) down
DEBUG1: CXWindowsKeyState.cpp,195:   026 (00000000) up</pre></div></div>

<p>I brought the mouse back to the Mac and then back to Fedora.  I pressed 'a' again and saw:</p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">DEBUG1: CXWindowsKeyState.cpp,195:   026 (00000000) down
DEBUG1: CXWindowsKeyState.cpp,195:   026 (00000000) up
DEBUG1: CXWindowsKeyState.cpp,195:   026 (00000000) down
DEBUG1: CXWindowsKeyState.cpp,195:   026 (00000000) up</pre></div></div>

<p>After dumping the keyboard layout with <code>xmodmap</code> I found the keys that corresponded with the key numbers:</p>
<ul>
<li>032 - Left shift</li>
<li>03e - Right shift</li>
<li>026 - a</li>
</ul>
<p>If I tapped the left shift, I could clear the key press, but I couldn't clear the right shift key (it was stuck down according to Fedora's X server).  When I hooked up a physical keyboard and mouse, I was able to use them normally without any keybinding problems.</p>
<p><span style="font-weight: bold; color: #008000;">The root cause:</span> When synergy started in <code>/etc/gdm/PreSession/Default</code> after the gdm login, the keyboard layout wasn't set up properly.  The X server was setting up the keyboard layout later in the startup process and this confusion caused the shift keys to get stuck.  Fedora 12 uses evdev to probe for keyboards during X's startup and eventually settles on a default layout if none are explicitly defined.</p>
<p><span style="font-weight: bold; color: #008000;">The fix:</span> I added the synergy startup to the GNOME startup items and it works flawlessly.</p>
<p><a href="http://rackerhacker.com/2010/03/03/sticky-shift-key-with-synergy-in-fedora-12/">Sticky shift key with synergy in Fedora 12</a> is a post from: Major Hayden's <a href="http://rackerhacker.com">Racker Hacker</a> blog. 
<p>Thanks for following the blog via the RSS feed. Please don't copy my posts or quote portions of them without attribution.</p></p>
]]></content:encoded>
			<wfw:commentRss>http://rackerhacker.com/2010/03/03/sticky-shift-key-with-synergy-in-fedora-12/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Change the escape keystrokes in screen</title>
		<link>http://rackerhacker.com/2010/01/07/change-the-escape-keystrokes-in-screen/</link>
		<comments>http://rackerhacker.com/2010/01/07/change-the-escape-keystrokes-in-screen/#comments</comments>
		<pubDate>Thu, 07 Jan 2010 14:11:23 +0000</pubDate>
		<dc:creator>Major Hayden</dc:creator>
				<category><![CDATA[Blog Posts]]></category>
		<category><![CDATA[command line]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[mac]]></category>
		<category><![CDATA[screen]]></category>

		<guid isPermaLink="false">http://rackerhacker.com/?p=1122</guid>
		<description><![CDATA[One of my favorite (and most used) applications on any Linux machine is screen. Once you fire up a screen session, you can start something and keep it running indefinitely. Even if your internet connection drops or you accidentally close your terminal window, the screen session will remain open on the remote server. Detaching from [...]<p><a href="http://rackerhacker.com/2010/01/07/change-the-escape-keystrokes-in-screen/">Change the escape keystrokes in screen</a> is a post from: Major Hayden's <a href="http://rackerhacker.com">Racker Hacker</a> blog. 
<p>Thanks for following the blog via the RSS feed. Please don't copy my posts or quote portions of them without attribution.</p></p>
]]></description>
			<content:encoded><![CDATA[<p>One of my favorite (and most used) applications on any Linux machine is <a href="http://www.gnu.org/software/screen/">screen</a>. Once you fire up a screen session, you can start something and keep it running indefinitely.  Even if your internet connection drops or you accidentally close your terminal window, the screen session will remain open on the remote server.</p>
<p>Detaching from a screen session is done by pressing CTRL-A and then d (for detach).  However, when I'm on my Mac, CTRL-A and CTRL-E send my cursor to the beginning and end of lines, respectively.  Once I launch screen, I lose the CTRL-A functionality because screen thinks I'm trying to send it a command.</p>
<p>Luckily, this can be changed in your <code>~/.screenrc</code>:</p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">escape ^Ww</pre></div></div>

<p>With this change, you can press CTRL-W, then press d, and you'll detach from the screen session.  For all of the screen options, run <code>man screen</code> on your local machine or review the <a href="http://linuxmanpages.com/man1/screen.1.php">man page online</a>.</p>
<p><a href="http://rackerhacker.com/2010/01/07/change-the-escape-keystrokes-in-screen/">Change the escape keystrokes in screen</a> is a post from: Major Hayden's <a href="http://rackerhacker.com">Racker Hacker</a> blog. 
<p>Thanks for following the blog via the RSS feed. Please don't copy my posts or quote portions of them without attribution.</p></p>
]]></content:encoded>
			<wfw:commentRss>http://rackerhacker.com/2010/01/07/change-the-escape-keystrokes-in-screen/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Disable acceleration for Apple&#039;s Magic Mouse</title>
		<link>http://rackerhacker.com/2009/12/03/disable-acceleration-for-apples-magic-mouse/</link>
		<comments>http://rackerhacker.com/2009/12/03/disable-acceleration-for-apples-magic-mouse/#comments</comments>
		<pubDate>Thu, 03 Dec 2009 13:55:41 +0000</pubDate>
		<dc:creator>Major Hayden</dc:creator>
				<category><![CDATA[Blog Posts]]></category>
		<category><![CDATA[apple]]></category>
		<category><![CDATA[mac]]></category>
		<category><![CDATA[magic mouse]]></category>

		<guid isPermaLink="false">http://rackerhacker.com/?p=1047</guid>
		<description><![CDATA[Edit: After further research, I found that this fix only adjusts the speed at which your mouse moves. It doesn't do anything for the acceleration curve. I recently picked up a Magic Mouse and discovered that I like almost all of its features. The biggest headache is the funky mouse acceleration curve that it applies [...]<p><a href="http://rackerhacker.com/2009/12/03/disable-acceleration-for-apples-magic-mouse/">Disable acceleration for Apple's Magic Mouse</a> is a post from: Major Hayden's <a href="http://rackerhacker.com">Racker Hacker</a> blog. 
<p>Thanks for following the blog via the RSS feed. Please don't copy my posts or quote portions of them without attribution.</p></p>
]]></description>
			<content:encoded><![CDATA[<p><b>Edit:</b> After further research, I found that this fix only adjusts the speed at which your mouse moves.  It doesn't do anything for the acceleration curve.</p>
<p>I recently picked up a <a href="http://www.apple.com/magicmouse/">Magic Mouse</a> and discovered that I like almost all of its features.  The biggest headache is the funky mouse acceleration curve that it applies by default.  When you make small movements, they barely even register on the screen.  When you make big movements and slow down a little mid-move, the pointer slows down much too rapidly.</p>
<p>A quick Google search revealed a <a href="http://discussions.apple.com/thread.jspa?messageID=10640835">support discussion post</a> where users were discussing possible solutions.  Someone suggested running this in the terminal:</p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">defaults write -g com.apple.mouse.scaling -1</pre></div></div>

<p>That improved things a little for me, but it's not perfect.  If you adjust the tracking speed in System Preferences after running this command, the acceleration curve will be reset to the default.</p>
<p><b>Update:</b> After some tinkering (and <a href="http://reviews.cnet.com/8301-13727_7-10392736-263.html">further Googling</a>), I found that <code>0</code> or <code>.1</code> seemed to work better for me than <code>-1</code>.</p>
<p><a href="http://rackerhacker.com/2009/12/03/disable-acceleration-for-apples-magic-mouse/">Disable acceleration for Apple's Magic Mouse</a> is a post from: Major Hayden's <a href="http://rackerhacker.com">Racker Hacker</a> blog. 
<p>Thanks for following the blog via the RSS feed. Please don't copy my posts or quote portions of them without attribution.</p></p>
]]></content:encoded>
			<wfw:commentRss>http://rackerhacker.com/2009/12/03/disable-acceleration-for-apples-magic-mouse/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Fix MacFusion on Snow Leopard</title>
		<link>http://rackerhacker.com/2009/08/28/fix-macfusion-on-snow-leopard/</link>
		<comments>http://rackerhacker.com/2009/08/28/fix-macfusion-on-snow-leopard/#comments</comments>
		<pubDate>Fri, 28 Aug 2009 16:21:23 +0000</pubDate>
		<dc:creator>Major Hayden</dc:creator>
				<category><![CDATA[Blog Posts]]></category>
		<category><![CDATA[ftp]]></category>
		<category><![CDATA[mac]]></category>
		<category><![CDATA[macfusion]]></category>
		<category><![CDATA[snow leopard]]></category>
		<category><![CDATA[ssh]]></category>

		<guid isPermaLink="false">http://rackerhacker.com/?p=994</guid>
		<description><![CDATA[Running OS X 10.6.3? William Fennie found a fix on Google Groups. First off, credit for this fix on OS X 10.6.2 goes to Geoff Watts from his two tweets. If you're using Snow Leopard, you'll find that the current version of MacFusion refuses to complete a connection to a remote server. You can fix [...]<p><a href="http://rackerhacker.com/2009/08/28/fix-macfusion-on-snow-leopard/">Fix MacFusion on Snow Leopard</a> is a post from: Major Hayden's <a href="http://rackerhacker.com">Racker Hacker</a> blog. 
<p>Thanks for following the blog via the RSS feed. Please don't copy my posts or quote portions of them without attribution.</p></p>
]]></description>
			<content:encoded><![CDATA[<p><strong>Running OS X 10.6.3?</strong> William Fennie <a href="http://groups.google.com/group/macfuse/browse_thread/thread/3c611784177843f0/3f02a6efd38f4b30?show_docid=3f02a6efd38f4b30">found a fix on Google Groups</a>.</p>
<p>First off, credit for this fix on <strong>OS X 10.6.2</strong> goes to <a href="https://twitter.com/geoffwatts">Geoff Watts</a> from his <a href="http://twitter.com/geoffwatts/status/3605414263">two</a> <a href="http://twitter.com/geoffwatts/status/3605464669">tweets</a>.</p>
<p>If you're using Snow Leopard, you'll find that the current version of MacFusion refuses to complete a connection to a remote server.  You can fix this in two steps:</p>
<p>First, quit MacFusion.</p>
<p>Second, open System Preferences and then open the MacFUSE pane.  Check the "Show Beta Versions" box and click "Check For Updates".  Go ahead and update MacFUSE.</p>
<p>Third, open up a terminal and do the following:</p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">rm /Applications/Macfusion.app/Contents/PlugIns/sshfs.mfplugin/Contents/Resources/sshnodelay.so</pre></div></div>

<p>Your MacFusion installation should now be working on Snow Leopard.  I've tested SSH and FTP connectivity so far, and they both appear to be working.  Thanks again to Geoff for the fix!</p>
<p><a href="http://rackerhacker.com/2009/08/28/fix-macfusion-on-snow-leopard/">Fix MacFusion on Snow Leopard</a> is a post from: Major Hayden's <a href="http://rackerhacker.com">Racker Hacker</a> blog. 
<p>Thanks for following the blog via the RSS feed. Please don't copy my posts or quote portions of them without attribution.</p></p>
]]></content:encoded>
			<wfw:commentRss>http://rackerhacker.com/2009/08/28/fix-macfusion-on-snow-leopard/feed/</wfw:commentRss>
		<slash:comments>143</slash:comments>
		</item>
		<item>
		<title>Enabling VNC as a pseudo-KVM with VMWare Server</title>
		<link>http://rackerhacker.com/2009/03/24/enabling-vnc-as-a-pseudo-kvm-with-vmware-server/</link>
		<comments>http://rackerhacker.com/2009/03/24/enabling-vnc-as-a-pseudo-kvm-with-vmware-server/#comments</comments>
		<pubDate>Wed, 25 Mar 2009 01:28:59 +0000</pubDate>
		<dc:creator>Major Hayden</dc:creator>
				<category><![CDATA[Blog Posts]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[mac]]></category>
		<category><![CDATA[vmware]]></category>
		<category><![CDATA[vnc]]></category>

		<guid isPermaLink="false">http://rackerhacker.com/?p=820</guid>
		<description><![CDATA[Mac users feel a little left out when it comes to VMWare Server clients. There's one for Windows and Linux, but Mac users are out of luck. Sure, you can VNC into a Linux box, use X forwarding, or use RDC to access a Windows box, but a real Mac client would really be helpful. [...]<p><a href="http://rackerhacker.com/2009/03/24/enabling-vnc-as-a-pseudo-kvm-with-vmware-server/">Enabling VNC as a pseudo-KVM with VMWare Server</a> is a post from: Major Hayden's <a href="http://rackerhacker.com">Racker Hacker</a> blog. 
<p>Thanks for following the blog via the RSS feed. Please don't copy my posts or quote portions of them without attribution.</p></p>
]]></description>
			<content:encoded><![CDATA[<p>Mac users <a href="http://communities.vmware.com/thread/155201">feel a little left</a> out when it comes to <a href="http://www.vmware.com/products/server/">VMWare Server</a> clients.  There's one for Windows and Linux, but Mac users are out of luck.  Sure, you can VNC into a Linux box, use X forwarding, or use RDC to access a Windows box, but a real Mac client would really be helpful.</p>
<p>However, I stumbled upon some documentation that will allow you to VNC to a VMWare Server VM's main screen.  It's equivalent to having a network KVM connected to the VM so you can have out-of-band management.  With VMWare server 2.x, you can enable it by following these steps:</p>
<p><strong>Step 1.</strong> Create a new VM in VMWare Server, but <em>don't start the VM</em>.  </p>
<p><strong>Step 2.</strong> SSH to the server and find your VM's .vmx file.  Normally, you can find the file in a location like <code>/var/lib/vmware/[vmname]/[vmname].vmx</code>.</p>
<p><strong>Step 3.</strong> Add the following lines to the end of the .vmx file:</p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">RemoteDisplay.vnc.enabled = &quot;TRUE&quot;
RemoteDisplay.vnc.password = &quot;vncpassword&quot;
RemoteDisplay.vnc.port = &quot;5900&quot;</pre></div></div>

<p><strong>Step 4.</strong> Change the VNC port and password to values that suit your environment and then start the VM.  </p>
<p><strong>DUH!</strong> Don't set two VM's to use the same vnc port, but that should go without saying.</p>
<p><a href="http://rackerhacker.com/2009/03/24/enabling-vnc-as-a-pseudo-kvm-with-vmware-server/">Enabling VNC as a pseudo-KVM with VMWare Server</a> is a post from: Major Hayden's <a href="http://rackerhacker.com">Racker Hacker</a> blog. 
<p>Thanks for following the blog via the RSS feed. Please don't copy my posts or quote portions of them without attribution.</p></p>
]]></content:encoded>
			<wfw:commentRss>http://rackerhacker.com/2009/03/24/enabling-vnc-as-a-pseudo-kvm-with-vmware-server/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Syncing an iPhone with a new Mac without hassles</title>
		<link>http://rackerhacker.com/2008/11/02/syncing-an-iphone-with-a-new-mac-without-hassles/</link>
		<comments>http://rackerhacker.com/2008/11/02/syncing-an-iphone-with-a-new-mac-without-hassles/#comments</comments>
		<pubDate>Sun, 02 Nov 2008 16:56:23 +0000</pubDate>
		<dc:creator>Major Hayden</dc:creator>
				<category><![CDATA[Blog Posts]]></category>
		<category><![CDATA[apple]]></category>
		<category><![CDATA[iphone]]></category>
		<category><![CDATA[itunes]]></category>
		<category><![CDATA[mac]]></category>

		<guid isPermaLink="false">http://rackerhacker.com/?p=551</guid>
		<description><![CDATA[I know I usually talk about Linux server related topics on this blog, but I'm pretty proud of what I've figured out this morning on my Mac. As you know, the iPhone can really only fully sync with one machine, and if you want to connect it to a new Mac that you've purchased, you [...]<p><a href="http://rackerhacker.com/2008/11/02/syncing-an-iphone-with-a-new-mac-without-hassles/">Syncing an iPhone with a new Mac without hassles</a> is a post from: Major Hayden's <a href="http://rackerhacker.com">Racker Hacker</a> blog. 
<p>Thanks for following the blog via the RSS feed. Please don't copy my posts or quote portions of them without attribution.</p></p>
]]></description>
			<content:encoded><![CDATA[<p>I know I usually talk about Linux server related topics on this blog, but I'm pretty proud of what I've figured out this morning on my Mac.  As you know, the iPhone can really only fully sync with one machine, and if you want to connect it to a new Mac that you've purchased, you have to fully erase the iPhone and start over.  (Of course, if you used the Migration Assistant to set up your new Mac, this won't be necessary.)</p>
<p>Here are the steps to migrate your iTunes data from one Mac to another without having to erase and re-sync your iPhone:</p>
<ul>
<li><strong>Make sure that iTunes is not running on <em>both</em> Macs.</strong></li>
<li><strong>Disconnect your iPhone/iPod from <em>both</em> Macs.</strong></li>
<li>Copy your iTunes folder.<br /><code>/Users/username/Music/iTunes</code></li>
<li>Copy your iPhone/iPod backups.<br /><code>/Users/username/Library/Application Support/MobileSync</code></li>
<li>Copy your iTunes configuration files. <br /><code>/Users/username/Library/Preferences/com.apple.iTunes*</code></li>
<li>Open iTunes on your new Mac and verify that <em>Applications</em> and <em>Ringtones</em> appear.</li>
<li>Connect your iPhone/iPod to the new Mac and accept any new authorizations.</li>
<li>Use iTunes on your old Mac to de-authorize the computer.</li>
</ul>
<p>If you choose to keep your MP3's separate from iTunes (and not in the library), this will only copy over the references to the MP3 files themselves.</p>
<p><a href="http://rackerhacker.com/2008/11/02/syncing-an-iphone-with-a-new-mac-without-hassles/">Syncing an iPhone with a new Mac without hassles</a> is a post from: Major Hayden's <a href="http://rackerhacker.com">Racker Hacker</a> blog. 
<p>Thanks for following the blog via the RSS feed. Please don't copy my posts or quote portions of them without attribution.</p></p>
]]></content:encoded>
			<wfw:commentRss>http://rackerhacker.com/2008/11/02/syncing-an-iphone-with-a-new-mac-without-hassles/feed/</wfw:commentRss>
		<slash:comments>69</slash:comments>
		</item>
	</channel>
</rss>

