Connecting the dots…

Thoughts on Web and Personal Development

synergy - multiple screens multiple OS

with one comment

Multiple Desktops & Multiple OS

At work I have a linux based dev server and a macbook pro running leopard. I decided to have it working together has one extended screen as some of my colleagues are already using. Talking to James about it, i managed to get it together. For anyone interested in setting up the same can following the following instructions.

So synergy has a client server like approach, I run synergy server on my laptop but you make either of your machines run a server, I dont see how it will be any different.

Installing on mac/linux:

Following the link:

http://sourceforge.net/project/showfiles.php?group_id=59275&release_id=406637

and install the softwares on the respective OS’s

Now come the interesting bit, setting up the linux client so that it starts the synergy client everytime i t boots up. Here’s a bit of bash commands:

/usr/bin/killall synergyc
sleep 1
/usr/bin/synergyc --restart my-fancy.host.name

and save this in the file /etc/gdm/Init/Default (I am running Redhat Enterprise Linux) so you will need to find the equivalent file in your distro, basically this should be anywheere it gets executed before your GDM process starts.

Back on the mac, create a shell file which contains the following code:

exec /Applications/synergy-1.3.1/synergys --restart -f -c /Applications/synergy-1.3.1/synergy.conf &

and save the file anywhere in your system path, obviously you will need to update that the actual paths on your installation.

Now creating the conf file which defines which screen is where, here’s a copy of my conf file and its easy to understand.

section: screens
        linux-hostname:
	mac-hostname:
end
 
section: links
	linux-hostname:
		right = mac-hostname
	mac-hostname:
		left = linux-hostname
end

its quite a simple config file, the first part (screens) defines the names of the of hosts involved and the second section defines the screens and their relative informations, i suppose you can add more than two hosts as fitting your need.

Some interesting links are for further reading/tweaking are as follows:

Share:
  • Digg
  • del.icio.us
  • Google
  • Sphinn
  • Facebook
  • Mixx
  • LinkedIn
  • Ma.gnolia
  • StumbleUpon
  • TwitThis
  • Yahoo! Buzz

Written by rp

July 30th, 2008 at 2:04 pm

One Response to 'synergy - multiple screens multiple OS'

Subscribe to comments with RSS or TrackBack to 'synergy - multiple screens multiple OS'.

  1. synergy - multiple screens multiple OS - Running Linux On Macbook Pro ♦ Apple MacBook and MacBook Pro News…

    [...] an interesting post was made today on this site [...]……

Leave a Reply