Weblog of Mark Vaughn, and IT professional and vExpert specializing in Enterprise Architecture, virtualization, web architecture and general technology evangelism

Tag: Mac

Issues with Synergy2 and OSX Lion

Almost two years ago, I published a blog post on using Synergy2 to share a single keyboard/mouse with multiple computers. At the time, I was using Windows XP, OSX 10.5 and SuSE Linux. (http://blog.mvaughn.us/2010/02/26/synergy-mac-windows-linux-get-along/). Scott Lowe also did a recent post on Synergy.

Over the holidays, Santa was nice enough to bring me a new iMac for video editing. However, since I am not totally getting rid of my old XP workstation that was my former video editing platform, this was really pushing my limits on desktop real estate. On days like today, when I am also using my work laptop, the three computers and keyboards were simply too much. Time to setup Synergy2.

However, this time I ran into some real issues with using my iMac as the Synergy server. The mouse was working fine on other desktops, but the keyboard was sending all commands to the iMac, regardless of what screen the mouse was on. I finally ran the Synergy2 server as root and all worked fine. That was not acceptable, I did not want this to run as root. However, that did narrow down the issues and I finally found the answer in this thread on a similar issue (Post #102 – http://code.google.com/p/synergy-plus/issues/detail?id=47).

To save you the time, you need to go into OSX “System Preferences” and select “Universal Access” in the upper right corner:

<IMAGE MISSING>

Once there, check the box for “Enable access for assistive devices”

<IMAGE MISSING>

After that, I could run the Synergy2 server as a non-root user and all of the keyboard issues went away. If you are experiencing a similar issue, I hope that this helps.

Read-Write NTFS on Mac

I recently added two new Macs to my collection, with OSX Lion. As with all of my Macs, one of the first things that I did was to add NTFS read/write support. It was a little different with Lion, so I put together a quick post for anyone else looking to do this.

First, go to http://macntfs-3g.blogspot.com/2010/09/ntfs-3g-for-mac-os-x-201088.html and follow the “NTFS-3G for Mac OS X 2010.8.8” link under the “Download” section to get the NTFS-3G files.

Next, open the “ntfs-3g-2010.8.8-macosx.dmg” file that you just downloaded

<IMAGE MISSING>

Double-click “Install NTFS-3G”. Acknowledge the warning that comes up:

<IMAGE MISSING>

Select “Continue”:

Select “Continue” to acknowledge the license:

<IMAGE MISSING>

And then “Agree” to the license statement:

<IMAGE MISSING>

Then click on “Install” to begin the installation:

<IMAGE MISSING>

I always select “No Caching” here, as I use mostly USB devices for NTFS and occassionally forget to cleanly unmount them (oops):

<IMAGE MISSING>

At the end of the installation, click on “Restart” to complete the install:

<IMAGE MISSING>

Though it always worked well for me in Snow Leopard, NTFS-3G did not work in Lion…so there are a few more steps to complete this. For the time being, ignore these errors:

After the reboot, you will now need to download OSXFuse to replace MacFuse that came with NTFS-3G. To do that, go to http://osxfuse.github.com and click on the download link in the upper right hand corner to get the OSXFUSE-2.3.8.dmg file. Once complete, mount the dmg file:

<IMAGE MISSING>

From here, click on “Install OSXFUSE 2.3”. The next several steps will look familiar from the NTFS-3G install. Click “Continue”:

<IMAGE MISSING>

Click “Continue” again to acknowledge the license:

<IMAGE MISSING>

Click “Agree” to accept the license:

<IMAGE MISSING>

The first two install options should already be checked. Also check the “MacFUSE Compatibility Layer” box and click on “Continue”:

<IMAGE MISSING>

Click “Install” one more time to begin the installation:

<IMAGE MISSING>

OSXFUSE does not ask for a restart like NTFS-3G did, so you should be able to simply click “Close” at the end of the installation.

<IMAGE MISSING>

You should now see “FUSE for OS X” and “NTFS-3G” in your System Preferences for OSX (on my MacBook Pro, OSXFUSE removed MacFUSE, but it did not on my iMac…odd)

<IMAGE MISSING>

From here, I was able to mount NTFS volumes as read/write. To be safe, you may want to perform one more restart.

Now, this method worked and I have moved a LOT of data to and from USB mounted NTFS volumes, I do still get this error on occassion:

<IMAGE MISSING>

However, in each case, the volume actually was mounted. If I have time, I will look into this further and post an update with anything that I find. Until then, I will just continue to ignore the message as it is not accurate.

This was definitely easier to setup in Snow Leopard than in Lion, though both reportedly have full NTFS support present but disabled. Hopefully Apple will enable this support in the native OS soon.

Synergy – can’t Mac, Windows and Linux just get along?

If you have read my twitter bio, then you know that I love Linux and Macs and that I don’t mind using Windows when I must. In fact, many techies fall into some variation of that niche. Both at work and home, this means that we frequently have more than one computer. I found myself regularly running Linux and Windows side-by-side, and eventually added an iMac to that setup to test the limits power drain for one cubical.

From left to right, my setup was an iMac -> XP laptop (+LCD with extended display from XP laptop) -> LCD for Linux. To avoid clutter, I did what most people did and connected everything to a KVM (keyboard – video – mouse) switch. Because I actually used all of these displays to multitask, I only used the KVM to share the keyboard and mouse. At least that is what I did before I found Synergy on SourceForge.

Synergy is a client/server application that allows one computer to share a keyboard and mouse between several computers, supporting UNIX, Linux, Windows and Mac OSX. The application contains both the client and server applications, so you pick the computer to run in “server” mode, storing the configurations and sharing the keyboard/mouse. Every other computer will run the client and connect to the server.

Based on the defined relationships, as the cursor leaves one monitor, it will appear on another computer’s monitor, as if they were one computer with multiple displays. To make it even better, copy/paste functions follow the mouse. Simply by moving the cursor off the side of my iMac, I move it onto my XP laptop. I can then copy text, move the cursor back from my laptop to my iMac and paste that text into an application. This can be extended to multiple computers on multiple OS’s.

Here is a video demonstrating Synergy (not mine)

<MISSING VIDEO>

Now the configuration can be interesting. In the server configuration (a file on UNIX, Linux and Mac but done within a GUI on Windows), you first define each of the computers to be used. The next step is to define the location of each computer’s screen, or at least how you want the screen layout to work. For instance, using my work layout listed above, my server config file would look like this:

section: aliases
mac:
imac.mvaughn.us
laptop:
laptop.mvaughn.us
linux:
opensuse.mvaughn.us
end

section: links
mac:
right = laptop
laptop:
left = mac
right = linux
linux:
left = laptop
end

I assigned aliases to each of my computers, and linked those back to the fully qualified domain names (remember, this works over the network).  The tricky part here is to define ALL of your relationships. If only stated that the laptop was to the right of the mac, moving my cursor off the right side of the mac would make it appear on the left edge of the laptop screen…but I would not be able to move the cursor left to get back on the mac screen. That is why I also had to define that the mac is to the left of the laptop.

As you saw in the video demonstration, this can not only be used for side-by-side displays, but it can also go up or down to work with stacked displays. Many datacenters have a Network Operations Center (NOC), with a wall of large displays with some type of monitoring software showing the health of the infrastructure (this is the room that resembled the NORAD from War Games or NASA Mission Control). Imagine one computer in the back of the room, and any time the mouse leaves the top of that monitor it begins controlling input for the computers feeding the overhead displays. When an issue pops up, one person can quickly navigate all of the monitoring tools (being displayed from multiple computers) to drill in and correlate the data to better determine what is going on. In that type of scenario, Synergy makes the transition from desktop convenience to enterprise tool.

I strongly encourage you to spend a few minutes looking at this tool. The website is at http://synergy2.sourceforge.net, and it has some very good tutorials and other documents to help get you up and running. You’ll find a ton of additional features that I did not even touch on here.

Of all the tools I have stumbled across over the years, I would rate this as one of the most useful. Free tool, minimal investment in getting it setup, and it provides real value on a daily basis.

**For added convenience, put a wireless keyboard and mouse on the computer running in server mode and you can easily begin to think of all your computers as one seamless resource.