Łukasz,

Yes, just opening the Sharing panel with gnome-control-center 1:41.4-1ubuntu12 
is enough to attempt to start the RDP service.
systemctl --user status gnome-remote-desktop reports this error:

RDP TLS certificate and key not configured properly

I didn't check open ports but it makes sense that it would open the RDP
port even though the RDP service isn't completely working.

** Description changed:

- Summary
- =======
- 1. From the Ubuntu 22.04 live session (or a clean install), Open the Settings 
app.
- 2. Open the Sharing page. It looks like Remote Desktop sharing is turned on.
+ Impact
+ ======
+ 1. It looks like RDP Sharing is turned on but it is not.
+ 2. To actually turn on RDP Sharing, you would need to turn it off then turn 
it on.
  
- On further investigation, it is not actually on.
+ This bugfix fixes it so that it correctly shown as off by default and
+ turning it on works.
  
- More details
+ Test Case
+ =========
+ 0. Start with a clean Ubuntu 22.04 install.
+ Or you can create a new user and log in as the new user.
+ 1. Open the Settings app.
+ 2. In the left sidebar, click Sharing. The switch at the top of the page 
needs to be off.
+ 3. Turn the switch on. Then click Remote Desktop and turn it on.
+ 4. Close the Settings app.
+ 5. Open the Settings app and verify that Sharing is on and Remote Desktop is 
on.
+ 6. Close the Settings app.
+ 7. From a terminal, run
+ systemctl --user status gnome-remote-sharing.service
+ 
+ It should show the service as active (running) and
+ a line at the bottom should say RDP server started
+ 8. Then run
+ systemctl --user stop gnome-remote-sharing.service
+ 9. Open the Settings app. It should show that Remote Desktop sharing is off.
+ 10. Turn on Sharing and turn on Remote Desktop sharing.
+ 11. Run
+ systemctl --user status gnome-remote-sharing.service
+ 
+ It should show the service as active (running) and
+ a line at the bottom should say RDP server started
+ 
+ What Could Go Wrong
+ ===================
+ This is a minimal fix proposed upstream.
+ The original implementation was insufficient.
+ The bugfix will allow Remote Desktop to be turned on and work correctly from 
the beginning.
+ 
+ More Details
  ============
- This issue affects both the live session and the initial install. (Probably 
would show up for any new user.)
- 
- 1. Before opening the Settings app, the gnome-remote-desktop service is
- running. I think this is expected.
- 
- $ systemctl status --user gnome-remote-desktop.service
- \u25cf gnome-remote-desktop.service - GNOME Remote Desktop
-      Loaded: loaded (/usr/lib/systemd/user/gnome-remote-desktop.service; 
enable>
-      Active: active (running) since Wed 2022-04-20 08:07:44 EDT; 17s ago
-    Main PID: 1611 (gnome-remote-de)
-       Tasks: 4 (limit: 4603)
-      Memory: 13.8M
-         CPU: 66ms
-      CGroup: 
/user.slice/user-1000.slice/user@1000.service/app.slice/gnome-remo>
-              \u2514\u25001611 /usr/libexec/gnome-remote-desktop-daemon
- 
- Apr 20 08:07:44 ubuntu2204 systemd[1483]: Starting GNOME Remote Desktop...
- Apr 20 08:07:44 ubuntu2204 gnome-remote-desktop-daemon[1611]: libEGL warning: 
pci id for fd 9: 1b36:0100, driver (null)
- Apr 20 08:07:44 ubuntu2204 systemd[1483]: Started GNOME Remote Desktop.
- 
- Also, the RDP enable gsettings key is turned off.
- 
- $ gsettings get org.gnome.desktop.remote-desktop.rdp enable
- false
- 
- 2. When I open the Sharing page, the gsettings key turns to true
- 
- and systemctl shows me an error where it tried to enable RDP:
- Apr 20 08:12:50 ubuntu2204 gnome-remote-de[1611]: RDP TLS certificate and key 
not configured properly
- 
- 3. So then I open Remote Desktop Sharing and turn it off then on and
- then systemctl shows me that is working correctly.
- 
- Apr 20 08:14:32 ubuntu2204 systemd[1483]: Starting GNOME Remote Desktop...
- Apr 20 08:14:32 ubuntu2204 gnome-remote-desktop-daemon[2801]: libEGL warning: 
p>
- Apr 20 08:14:32 ubuntu2204 systemd[1483]: Started GNOME Remote Desktop.
- Apr 20 08:14:32 ubuntu2204 gnome-remote-de[2801]: RDP server started
- 
- Note in particular the final line: "RDP server started". That tells us
- whether RDP is running or not. There would be a similar line for VNC.
- This line didn't show in the initial state in step 1.
- 
- What should happen
- ==================
- Remote Desktop should show off by default and should not attempt to turn on 
just by opening the Sharing page.
- 
- There is no gsettings for the Sharing master on/off switch (in the
- headerbar). It shows as On if any of the services are On. None of the
- services should be On by default so this should show Off by default.
- 
- A Bug Trigger
- =============
- It looks like this bug was triggered by
- https://gitlab.gnome.org/GNOME/gnome-remote-desktop/-/commit/7f4ef31fd3
- 
- I have reported this issue to GNOME. That patch fixes an important issue
- so maybe we need to keep that patch but fix the logic in gnome-control-
- center.
+ To simplify this bug report, I removed a lot of troubleshooting details that 
can still be seen with the "See full activity log" link

** Description changed:

  Impact
  ======
  1. It looks like RDP Sharing is turned on but it is not.
  2. To actually turn on RDP Sharing, you would need to turn it off then turn 
it on.
  
  This bugfix fixes it so that it correctly shown as off by default and
  turning it on works.
  
  Test Case
  =========
  0. Start with a clean Ubuntu 22.04 install.
  Or you can create a new user and log in as the new user.
  1. Open the Settings app.
  2. In the left sidebar, click Sharing. The switch at the top of the page 
needs to be off.
  3. Turn the switch on. Then click Remote Desktop and turn it on.
  4. Close the Settings app.
  5. Open the Settings app and verify that Sharing is on and Remote Desktop is 
on.
  6. Close the Settings app.
  7. From a terminal, run
  systemctl --user status gnome-remote-sharing.service
  
  It should show the service as active (running) and
  a line at the bottom should say RDP server started
  8. Then run
  systemctl --user stop gnome-remote-sharing.service
  9. Open the Settings app. It should show that Remote Desktop sharing is off.
  10. Turn on Sharing and turn on Remote Desktop sharing.
  11. Run
  systemctl --user status gnome-remote-sharing.service
  
  It should show the service as active (running) and
  a line at the bottom should say RDP server started
  
  What Could Go Wrong
  ===================
  This is a minimal fix proposed upstream.
  The original implementation was insufficient.
  The bugfix will allow Remote Desktop to be turned on and work correctly from 
the beginning.
  
  More Details
  ============
  To simplify this bug report, I removed a lot of troubleshooting details that 
can still be seen with the "See full activity log" link
+ 
+ Just opening the Sharing panel flips the gsettings key 
org.gnome.desktop.remote-desktop.rdp enable to true
+ and apparently tries to start RDP sharing. RDP sharing doesn't work because 
the TLS keys weren't set yet.

-- 
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is subscribed to gnome-control-center in Ubuntu.
https://bugs.launchpad.net/bugs/1969619

Title:
  RDP Sharing appears on by default in jammy

To manage notifications about this bug go to:
https://bugs.launchpad.net/gnome-control-center/+bug/1969619/+subscriptions


-- 
desktop-bugs mailing list
desktop-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs

Reply via email to