yarp icon indicating copy to clipboard operation
yarp copied to clipboard

[WIP] Add cluster manager also on windows

Open Nicogene opened this issue 5 years ago • 10 comments
trafficstars

It fixes #2152

Please review code.

TO BE TESTED.

Nicogene avatar Dec 17 '19 10:12 Nicogene

Please note that if yarpmanager requires Qt 5.9 (which is totally fine from the Supported Distributions point of view), you should update also cmake/YarpFindDependencies.cmake.

drdanz avatar Dec 18 '19 16:12 drdanz

@Nicogene is this still a wip? Please add a line to the release notes to mention that Qt 5.9 or newer is required

drdanz avatar Mar 11 '20 22:03 drdanz

@Nicogene is this still a wip?

Yes because I have to test somehow on windows, I am not sure how ssh works on windows.

Please add a line to the release notes to mention that Qt 5.9 or newer is required

Sure :+1:

Nicogene avatar Mar 12 '20 09:03 Nicogene

CLA assistant check
All committers have signed the CLA.

CLAassistant avatar Apr 20 '20 15:04 CLAassistant

In these days I gave a try to ssh on windows and it is required, besides build 1909 or greater, to enable the OpenSSH Client/Server optional features:

immagine

Once enable them I experienced some issues with authorized_keys, then I was able to ssh in localhost and wsl but always typing the password. Checking on internet, I am not the only one having similar issues. I have to check it later and understand which are the steps in order to make it work properly without password.

The cluster manager with the password is not usable, then I'd move this feature to the next release 😕

Nicogene avatar Jul 22 '20 09:07 Nicogene

/rebase

Nicogene avatar Jul 22 '20 09:07 Nicogene

Comment by @lornat75 : we should probably make sure that this also works for launching GUIs.

traversaro avatar Nov 09 '20 10:11 traversaro

we should probably make sure that this also works for launching GUIs.

Just to clarify, this could mean:

  1. windows guis should work when started from linux (windows server, linux client)
  2. linux guis should work on windows (linux server, windows client)
  3. windows guis should work on windows (windows server, windows client)

Moreover the gui can be displayed

  1. on the local display (on the client)
  2. on the remote display (on the server)

If I understood it correctly, @lornat75 request means that the yarprun server started on a windows server should be able to start GUI applications without forwarding the graphics to the client, which means that

  • We want to be sure that 1+5 and 3+5 are working
  • 2 is already supported in both combinations, (2+4 requires the installation of a X server on windows)
  • 1+4 are probably impossible to support due to the different technologies that are used to display the graphics on windows and linux.
  • I have no idea whether 3+4 can work, but I don't think we need it

drdanz avatar Nov 09 '20 20:11 drdanz

@drdanz I don't think we support the case GUI runs on windows and forward display on linux/windows, or at least, this is not a concern of yarp but a feature of the OS, isn't it?

About the problem I mentioned, there may be the case in which a GUI is spawned as a service and does not get access to the display (it runs, but you can't see anything), to stretch a comparison it is as if the display was > /dev/null :)

lornat75 avatar Nov 10 '20 14:11 lornat75

I just managed to enable ssh and enable the passwordless login following these 2 pages:

https://docs.microsoft.com/en-us/windows-server/administration/openssh/openssh_install_firstuse https://jmmv.dev/2020/10/windows-ssh-access.html

The issue with the authorized_keys seems to be that if your user is an administrator, instead of using ~/.ssh/authorized_keys, the file to use is C:\ProgramData\ssh\administrators_authorized_keys and that file should not be readable by authenticated users (see the second link above).

drdanz avatar Mar 06 '21 16:03 drdanz

Closing since probably this feature is not needed anymore and this PR is very outdated

Nicogene avatar Nov 23 '23 09:11 Nicogene