Question about remote support applications

How possible or impossible would it be to get a remote support application like teamviewer ported to Haiku?

Well, I doubt you would have much luck with proprietary tools like teamviewer.
Rustdesk may be possible, if the necessary Rust dependencies are ported.

1 Like

On IRC, about a month ago, there’s been some discussion about screen sharing:

<Nephele> if Haiku had some screen sharing capabilities it would be cool to
teach people over that
...
<Nephele> phschafft: what do you think about screen sharing via app_server
commands ;)
...
<waddlesplash> nephele: app_server commands over the network is
remote_app_server/RemoteDesktop
<waddlesplash> needs a bunch of work but it does work
<waddlesplash> and we have BScreenRecorder which works
<waddlesplash> so, presumably screensharing could be made to work
<Nephele> waddlesplash: I know we have that already. I was thinking if the
Multiplexing part would make sense. i.e just carbon copy what my current
app_server would render for a specific window

(source)

Hopefully that gives you some idea of what would be involved.

We do have a VNC server ported, and it does work.

Sounds similar to what Xorg does

1 Like

For those wondering about VNC, while it does work is slow and uses a lot of CPU, one core is pegged to 100% the whole time. I found it just laggy enough to not feel comfortable on a gigabit LAN. Where as I’m fine with VNC to my Linux server. That feels snappy and easily good enough for day to day use. Also the mouse cursor update is constantly tearing with artifacts in the display. They resolve quickly but it’s jarring.

1 Like

Yepp, besides WebKit2 that seemed to huge bite
app_server refactoring emerged multiple times as a key factor

→ for 2D , but especially 3D HW acceleration
→ multi-monitor support
→ even for some multimedia functions – I do not remember exactly
which ones – requires some codes implemented in it

(source Haiku devs in several different, previous forum threads )

As reference (based on the irc log above)

There is nothing that requires my idea for a remote desktop. You could also just copy the framebuffer, use some video compression and send it over the network.

What I discussed would be a kind of “native” remote desktop, working similar to our already working remote_app_server (with for example the web browser client).

2 Likes

I switched from Teamviewer to the free and open source DWService (https://www.dwservice.net) a while back. It supports macOS and Windows perfectly.
Been meaning to look into if it would be possible to port this to Haiku, but time and skills are on my side atm.

Sorry if this is a necro-boost, but: I am genuinely interested in someday supporting Be/Haiku applications directly. It is still years away, but I have already started on a project to implement a minimal cross-platform X11 server.

Is the wire protocol for remote_app_server pretty stable?

I am definitely not asking for any work or documentation now. If I get there I’ll be reading the code directly to figure things out. Just wondering if I will be following a moving target in a few years. :slight_smile:

The app_server protocol (between app_server and BApplication) is not stable and not considered an API boundary.

I think the remote app server derives from that; If you were to implement the app_server remote protocol you would also have to implement the entirety of app_servers drawing operations, in which case you’d basically re-implement app_server. This is certainly possible but I’m not sure this would give you an advantage? :slight_smile:

Yup, I would be implementing all of the drawing operations too. There is no advantage to any of this, except the fun. :wink:

That doesn’t answer the question.

It isn’t guaranteed stable, but it changes rarely, so it’s pretty stable. If you don’t plan to support multiple Haiku versions at the same time, this should be fine. Occasionally there is a refactor that changes how parameters are passed, or a new command is added (maybe a few times per year at most).

The HTML5 client just plugs into javascript’s canvas. You could use cairo, or skia, or whatever is the trendy drawing library this week, and it should provide similar operations and should work just fine.

It does actually. We do not consider it stable and will change it whenever we want, and not expect anything to depend on it. Just like our system call numbers.

I guess you here have another definition of stable as in not changing much, but I answered it for “stable” in software terms “i.e alpha, beta, stable”. Since we deliberately don’t consider this an api boundary the expectation is not that it it stable, and that is certainly something to keep in mind.

Not sure what your point here is. Our app_server also uses AGG

The question was:

Is the wire protocol for remote_app_server pretty stable?

Which is not the same question as if you remove “pretty” from there. And so it’s not the same answer.

stable = it never changes
pretty stable = it rarely changes

My point is reimplementing the drawing commands is not a problem and it is what we do in the html5 client. It can be done in other clients as well.

From the Perspective of api stability gurantees it seems like the same question to me; In any case, I think it is sufficiently answered from both angles :slight_smile: