Haiku synergy client


#1

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!


#2

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


#3

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).


#4

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


#5

Thanks @kallisti5! i will try and confirm.


#6

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).


#7

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


#8

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) {


#9

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


#10

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


#11

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…


#12

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


#13

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


#14

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?


#15

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…


#16

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


#17

Please do not post or link binaries here.


#18

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.


#19

ok @extrowerk; edited. Thanks.