Wednesday, December 27, 2006
Mac - Sprint RAZR with iSync and DUN
The Sprint RAZR v3m is a great phone, but it's not officially supported by Apple's bluetooth software yet. This means that it won't work with iSync (to sync contacts, calendar entries, etc), nor will it work for Dial-up Networking (DUN) with Sprint.
After much failed experimentation I was able to get my RAZR to work with both iSync and DUN. Note that to use DUN you must pay Sprint the appropriate monthly fee. DUN won't work if you don't have this feature enabled for your Sprint account, but you can still use iSync regardless.
Before you begin
Add the following block of XML to the file after the first <dict> tag (on line 5 in my file, your mileage may vary)
<!-- from http://emmby.blogspot.com/ -->
<key>com.motorola.razorV3m</key>
<dict>
<key>Identification</key>
<dict>
<key>com.apple.gmi+gmm</key>
<array>
<string>Motorola CE, Copyright 2000+Motorola V3m-Sprint Phone</string>
</array>
</dict>
<key>InheritsFrom</key>
<array>
<string>com.motorola.usb-bt.0x22B8/0x4902</string>
</array>
<key>Services</key>
<array>
<dict>
<key>ServiceName</key>
<string>com.apple.model</string>
<key>ServiceProperties</key>
<dict>
<key>ModelIcon</key>
<string>MOTV3-black.tiff</string>
<key>ModelName</key>
<string>NC-V3m</string>
</dict>
</dict>
<dict>
<key>ServiceName</key>
<string>com.apple.synchro</string>
<key>ServiceProperties</key>
<dict>
<key>OnlySupportASCIIChar</key>
<true/>
<key>deleteContactBeforeModifying</key>
<true/>
<key>stringEncoding</key>
<string>UCS2</string>
</dict>
</dict>
</array>
</dict>
<key>com.motorola.usb-bt.0x22B8/0x2A64</key>
<dict>
<key>Identification</key>
<dict>
<key>com.apple.usb.vendorid-modelid</key>
<string>0x22B8/0x2A64</string>
</dict>
<key>InheritsFrom</key>
<array>
<string>family.com.motorola.p2k.usb-bt</string>
</array>
<key>Services</key>
<array/>
</dict>
At this point I highly recommend rebooting your computer.
After the restart you should be able to pair your RAZR to your Mac and both iSync and DUN should show up in the list of available services. Pairing your bluetooth phone to your Mac is outside of the scope of this doc, but check Google or the references below for instructions.
Many thanks to vibesaw at whopack for finding the correct entry to use.
References
After much failed experimentation I was able to get my RAZR to work with both iSync and DUN. Note that to use DUN you must pay Sprint the appropriate monthly fee. DUN won't work if you don't have this feature enabled for your Sprint account, but you can still use iSync regardless.
Before you begin
- Update to the latest version of iSync. As of this writing it's version iSync 2.3 500.8.
- Update your RAZR's firmware. Go to Settings -> Phone Info -> Update Phone SW. As of this writing the latest is 24.2_00.37.00R
Add the following block of XML to the file after the first <dict> tag (on line 5 in my file, your mileage may vary)
<!-- from http://emmby.blogspot.com/ -->
<key>com.motorola.razorV3m</key>
<dict>
<key>Identification</key>
<dict>
<key>com.apple.gmi+gmm</key>
<array>
<string>Motorola CE, Copyright 2000+Motorola V3m-Sprint Phone</string>
</array>
</dict>
<key>InheritsFrom</key>
<array>
<string>com.motorola.usb-bt.0x22B8/0x4902</string>
</array>
<key>Services</key>
<array>
<dict>
<key>ServiceName</key>
<string>com.apple.model</string>
<key>ServiceProperties</key>
<dict>
<key>ModelIcon</key>
<string>MOTV3-black.tiff</string>
<key>ModelName</key>
<string>NC-V3m</string>
</dict>
</dict>
<dict>
<key>ServiceName</key>
<string>com.apple.synchro</string>
<key>ServiceProperties</key>
<dict>
<key>OnlySupportASCIIChar</key>
<true/>
<key>deleteContactBeforeModifying</key>
<true/>
<key>stringEncoding</key>
<string>UCS2</string>
</dict>
</dict>
</array>
</dict>
<key>com.motorola.usb-bt.0x22B8/0x2A64</key>
<dict>
<key>Identification</key>
<dict>
<key>com.apple.usb.vendorid-modelid</key>
<string>0x22B8/0x2A64</string>
</dict>
<key>InheritsFrom</key>
<array>
<string>family.com.motorola.p2k.usb-bt</string>
</array>
<key>Services</key>
<array/>
</dict>
At this point I highly recommend rebooting your computer.
After the restart you should be able to pair your RAZR to your Mac and both iSync and DUN should show up in the list of available services. Pairing your bluetooth phone to your Mac is outside of the scope of this doc, but check Google or the references below for instructions.
Many thanks to vibesaw at whopack for finding the correct entry to use.
References
SSH - Warning: No xauth data; using fake authentication data for X11 forwarding
When you ssh to another server do you run into the following warning message?
All you need to do to fix it is create a magic cookie using mcookie if you have it.
References
Warning: No xauth data; using fake authentication data for X11 forwarding
It's nothing serious but it can be annoying if you're OCD like I am. It's simply telling you that you don't have your ~/.Xauthority file set up properly.All you need to do to fix it is create a magic cookie using mcookie if you have it.
mcookie | sed -e 's/^/add :0 . /' | xauth -q
If you're a mac user like me you won't have mcookie. Instead, just do the following:dd if=/dev/random count=1 | openssl md5 | sed -e 's/^/add :0 . /' | xauth -q
Then make sure the cookie creation was successful> xauth list
mc02136d0.tmodns.net/unix:0 MIT-MAGIC-COOKIE-1 ...
References
- http://tldp.org/HOWTO/Remote-X-Apps-6.html
- http://www.cygwin.com/ml/cygwin-xfree/2004-10/msg00236.html
Mac - SSH Agent Redux
[ Since publishing this post, Mac OS X Leopard 10.5 was released with built-in ssh-agent support. Don't bother with the solution outlined below! Instead, visit this post for how to set up automatic ssh logins using Leopard: http://ormset.no/wordpress/2007/10/28/leopard-finally-supporting-ssh-agent-at-login/]
Since then I've discovered an even better solution in the form of a Cocoa application that integrates with the Apple Keychain. And since it's capable of running either in the Dock or in the Status Bar you can configure it to stay completely out of your way.
I have mine configured to launch at startup (via the Accounts -> Login Items Preferences Pane in System Preferences) and to run only in the Status Bar.
Check it out and consider donating. It's called SSHKeychain by Ambrero Software