ultravnc / UltraVNC

UltraVNC Server, UltraVNC Viewer and UltraVNC SC | Official repository: https://github.com/ultravnc/UltraVNC
https://uvnc.com
GNU General Public License v3.0
729 stars 181 forks source link

Connect to Debian v12=bookworm (WayVNC protocol) #133

Open PizzaProgram opened 6 months ago

PizzaProgram commented 6 months ago

Debian v12 (bookworm) has dropped RealVNC as default VNC server, and changed it to Wayland VNC (WayVNC).

Now all Raspberry Pi users are forced to install TigerVNC viewer on their desktops to be able to control their Linux machine from Windows + Mac.

Please add this feature, so millions of RPi (Debian) users can use UltraVNC in the near future to connect. Thank you very much in forward !

kép .

RudiDeVos commented 6 months ago

Looks like some special authentication is needed for it, need to setup test... gonna take some time

PizzaProgram commented 6 months ago

Many Thanks!

Maybe You could check, how it's done at TigerVNC Viewer?

I'm not sure which file is it exactly, but this one seems for me a good starting point: https://github.com/TigerVNC/tigervnc/blob/master/common/rfb/CConnection.cxx

It's also GPL license, so maybe copy-paste is OK too.

RudiDeVos commented 6 months ago

I need to pass on this one. It's not only authentication but also encryption based on keys. This is like the encryption plugin we have, different implemented. When it was only authentication it would be doable, sorry to complex to add a second encryption in vnc. Perhaps a nice student project to make a new plugin for UltraVNC.

Neustradamus commented 6 months ago

@RudiDeVos: Please do not close this ticket..

RudiDeVos commented 5 months ago

Thanks to Vladimir Vissoultchev extra AUthentication methods have beeb implemented in the viewer. bin test builds. Please provide feedback https://www.uvnc.eu/download/1440/vncviewer_1.4.4.0-dev.zip Extra Info WIP: RSA-AES authentication and encryption (#139)

eNCrypt authentication with TLS encrypted transport (#142)

PizzaProgram commented 5 months ago

This is extremely great news !! :+1:

I've just tested it, and it's almost perfect.

kép Even clipboard functions are working in some cases.

While probing, encountered only 5 tiny things that could be improved later:

  1. Saving the connection and trying to re-open it with uvnc does not work, it is freezing immediately.
  2. Username does not get saved
  3. Password saving does not work. password=0000000000000000
  4. Certificate warning always appears, not even if it gets imported to the hosts certs, can not be set to 'trust always'.
  5. Clicking the tiny rectangle left from the IP on the toolbar makes the app crash. kép

Just an idea:

If the saving of user+pass makes it difficult to distuiguish from normal .vnc files, maybe saving these kind of connection as *.uvnc could help.

Once again :

wqweto commented 5 months ago
  1. Certificate warning always appears, not even if it gets imported to the hosts certs, can not be set to 'trust always'.

This is because wayvnc always uses X509Plain sub-type for vencrypt authentication in which client is required to always check for valid server certificate so uvnc does not provide easy option to skip this warning dialog.

It is possible to silence the warning by manually editing the .vnc file so you can to add thumbprint section like this

[thumbprint]
172.17.17.159:5900=b3-7d-4d-a2-7c-68-15-8b-e6-df-8a-d0-66-02-2d-ff-58-f8-40-51

The entries format is server:port=hex-thumb-print where you can obtain the certificate's thumbprint for your server from View Certificate button, there is Details tab the last entry is the certificate's thumbprint in hex:

image

Copy/paste and add dashes between each two symbols.

PizzaProgram commented 5 months ago

Why is the link broken? https://www.uvnc.eu/download/1440/vncviewer_1.4.4.0-dev.zip

Is is possible to link a new release to the official page? https://uvnc.com/downloads/ultravnc.html

IMHO with this update you can easily set a new 1.5.x version like: 1.5.0.20240214

Neustradamus commented 5 months ago

@PizzaProgram: The link was not official, only a dev test...

RudiDeVos commented 5 months ago

Directory listing is on that folder.(...1440/) It's used internal to pass files.. You can use them only for testing , 1.5.x is on the way but we still need to make other changes.

PizzaProgram commented 3 months ago

Hi, Is there any release date of 1.4.4+ version? The 1.4.3.6 was released on 2023.october = half year ago.

Since an other +2 month has just passed, I do not think it is necessary to wait an other 4-5 month for the 1.5 to be ready any more. Even if 1.4.4 is just a beta, with this new WayVNC protocol it is much better than the 1.4.3 publicly available!

Please put it out for public download! (or the 1.5 beta.)

PS: Raspberry released an update for the WayVNC protocol available for upgrade. (And a new kernel too.) I'll test how much more it's stable. The old one froze sometimes so badly I could not refresh the page, saw only the last image of the screen, could not interact.

RudiDeVos commented 2 months ago

1.5.0.0 development released on request. https://uvnc.com/downloads/ultravnc/160-ultravnc-1-5-0-0-development.html

PizzaProgram commented 2 months ago

Thank you very much! :1st_place_medal:

Funny that You have forgot to mention this achievement in the change log.

You may add this last line under 1.4.4.0: Able to connect to Debian v12=bookworm (by WayVNC protocol) #133