Saturday, November 13, 2010

sygnery - ubunutu mouse/keyboard sharing with a Mac-- bootup

Find, download and install the sygnery client(mAC) and server for the respective machine

Note that the machine names will need to be replace with whatever yours are mine are:
mac-mini.local
ubuntu-desktop

################### CLIENT (MAC OSX) #####################
For the mac client. (IE not using the mac mouse or keyboard)
mkdir ~/LoginItems
cat > ~/LoginItems/start_synergy.command 
/Applications/synergy/synergyc -f 

Then in Settings -> Accounts -> select the user -> login items
Add the .command file as a terminal shell script.


################### SERVER (UBUNTU) #####################

For the ubutu server. (IE not using the ubuntus mouse or keyboard, on a remote)

vi .synergy.conf

Add the lines
section: screens
ubuntu-desktop:
mac-mini.local:
super = alt
alt = super
end
section: links
ubuntu-desktop:
right = mac-mini.local
mac-mini.local:
left = ubuntu-desktop
end

Assuming your a bash user
vi .bashrc

Add the lines
sysergys_exec=`ps -A | grep synergys`
if [ "$sysergys_exec" = "" ]
then
synergys 
fi

Then restart(only really need to logout/login) and see what happens.

You could run the server globally from your xwindows config or even from start up but i prefer to have it in my bash where i can get at it and modify it easier.

No comments:

Post a Comment