Haiku synergy client

Hello all; its any plan to port synergy client to haiku?

Im searchin and i found a 4 years old code here: https://github.com/kallisti5/synergy-haiku .But i dont know if works; any else have this tool working on haiku?

Thnks!

I think it did, but its author @kallisti5 would know :slight_smile:

It worked based on uSynergy which is a minimal implementation of the Synergy Protocol. It was working, but the Synergy project has been inching closer and closer to a commercial product vs an open source one.

(holy crap I just looked at their website, no mentions of downloading source code anymore. For those in the know that Synergy is GPL, the source is here: https://github.com/symless/synergy-core)

Anyway, they’re making a ton of protocol-breaking changes like SSL support (and I don’t think their SSL code is open source). Not sure how much longer it will work (or if it still works today).

1 Like

also, some history… I tried to upstream Haiku support to Synergy in 2015. Their response was lackluster.

2 Likes

Thanks @kallisti5! i will try and confirm.

I think it would be best to just fork from an earlier version that works with haiku usynergy… it isn’t like it really needs any new features anyway. It is easy enough to ssh tunnel synergy if required, though I didn’t try it under haiku.

The only real improvement might be in the way synergy sends key presses using the host system key map, which is odd.

We could use a simple GUI to configure it. That would work nicely with the network services list in the network preflet these days. (Though I guess there is an argument that it could live in mouse/keyboard settings too).

It would be best to join an already existing fork that maintains the old synergy 1.x philosophy… https://github.com/debauchee/barrier

2 Likes

The old code by @kallisti5 is no longer function.

This is the error when do “make”:

In file included from /boot/system/develop/headers/os/support/SupportDefs.h:13,
from /boot/system/develop/headers/os/interface/GraphicsDefs.h:9,
from /boot/system/develop/headers/os/interface/InterfaceDefs.h:9,
from /boot/system/develop/headers/os/app/Application.h:10,
from haiku-usynergy.cpp:19:
haiku-usynergy.cpp: In member function ‘virtual void uSynergyInputServerDevice::MessageReceived(BMessage*)’:
haiku-usynergy.cpp:289:42: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
if ((clip = be_clipboard->Data()) == B_OK) {

Well it’s probably just because of gcc which is newer and more strict on the syntax, shouldn’t be that hard to fix.

But yeah, closing the thing because it’s stale, just because they never bothered answering questions, heck.

Yeah it always makes me grumpy when people do that… a course I get grumpy when @waddlesplash brings the hammer down on my tickets but he usually has good reason :slight_smile: and is to be commended for his ticket tracker cleanliness…

Hello all; i can do it compile, but now tells that its not an a excecutable:

~/config/non-packaged/add-ons/input_server/devices> synergy_client
bash: ./synergy_client: cannot execute binary file: Not an executable

Any help? Thanks
n

Edit: Add a screenshot
https://paste.pics/24ef4c4954bb698fc3bcaa343fc4daee

Thats probably just the input_server addon, and they shouldnt be used directly, they are not executable.

Put it in config/non_packaged/add-ons/input-server and reboot (or restart just the input_server). But it probably needs a configuration file as well?

Yes, see the readme:

Create a configuration file at ~/config/settings/synergy

enable = true
server = 192.168.1.101
server_keymap = “X11”

I intended to make some way to configure it from the GUI but then my first child was born and I moved somewhere where I didn’t have a haiku machine next to another machine on a desk any more! A network preflet services plugin is the way to go I think…

1 Like

Thanks to all; i just restart the input server and its working! I fill more confortable now :sunglasses:

haiku_synergy

For any other, the source is here: https://github.com/unarix/synergy-haiku

10 Likes

Please do not post or link binaries here.

Rather than posting a compiled binary (we do not trust running closed-source binaries from untrusted users), It would be better to create a recipe for this at HaikuPorts so that all users can safely use this software.

ok @extrowerk; edited. Thanks.

Just for update: i modified the keymap of synergy, now the arrow keys work perfect.

I was thinking of create a recipe in haikuports but i need the permission of @kallisti5 since it is a fork of his work.