Remote Desktop: Difference between revisions

From NixOS Wiki
imported>Kaleocheng
the services.xrdp.openFirewall is avaliable. update the doc for that
imported>Kavika13
Mention polkit policies that may fix the blackscreeen on reboot in XRDP
Line 43: Line 43:
(Source: [https://discourse.nixos.org/t/please-post-working-xrdp-setting-in-configuration-nix/7404/10 Discourse Link], [https://github.com/NixOS/nixpkgs/blob/86a80807d8d7051c63ab2b9d7f630abe066468b1/nixos/modules/services/networking/xrdp.nix nixpkgs code])
(Source: [https://discourse.nixos.org/t/please-post-working-xrdp-setting-in-configuration-nix/7404/10 Discourse Link], [https://github.com/NixOS/nixpkgs/blob/86a80807d8d7051c63ab2b9d7f630abe066468b1/nixos/modules/services/networking/xrdp.nix nixpkgs code])


''Notice:'' You need to log out the user first on the remote machine, otherwise you'll get a black screen. (Source: [https://www.reddit.com/r/Proxmox/comments/hxp28j/black_screen_in_microsoft_remote_desktop_noob/fzm7zbo/?utm_source=reddit&utm_medium=web2x&context=3 Reddit] )
''Notice:'' You need to log out the user first on the remote machine, otherwise you'll get a black screen. (Source: [https://www.reddit.com/r/Proxmox/comments/hxp28j/black_screen_in_microsoft_remote_desktop_noob/fzm7zbo/?utm_source=reddit&utm_medium=web2x&context=3 Reddit] ). It may be particularly true on a multi-user system. You may be able to work around this by enabling and configuring [[Polkit]]. The configuration for enabling these permissions is the example code on that page.


<code>freerdp</code> or <code>remmina</code> can be used on the client side.
<code>freerdp</code> or <code>remmina</code> can be used on the client side.

Revision as of 08:31, 26 July 2023

Clients

  • Tiger VNC
  • Guacamole
  • KRDC
  • x2go

Servers

  • XRDP




Tiger VNC

Nixpkgs has a package but no service. The server component can be started using the vncserver command. To connect use the vncviewer command.

x2go

X2go client is packaged in nixos as x2goclient.

The server is installed by putting the following line:
services.x2goserver.enable = true;
to /etc/nixos/configuration.nix.

RDP

NixOS has first class support for XRDP server.

services.xserver.enable = true;
services.xserver.displayManager.sddm.enable = true;
services.xserver.desktopManager.plasma5.enable = true;

services.xrdp.enable = true;
services.xrdp.defaultWindowManager = "startplasma-x11";
services.xrdp.openFirewall = true;

(Source: Discourse Link, nixpkgs code)

Notice: You need to log out the user first on the remote machine, otherwise you'll get a black screen. (Source: Reddit ). It may be particularly true on a multi-user system. You may be able to work around this by enabling and configuring Polkit. The configuration for enabling these permissions is the example code on that page.

freerdp or remmina can be used on the client side.

Guacamole

Not yet added to nixpkgs

https://github.com/NixOS/nixpkgs/issues/17879

Meshcentral

Meshcentral is a self-hosted open source administration tool similar to teamviewer. Meshcentral server has been added, and can be used with:

services.meshcentral.enable = true;

(Meshcentral Server)[1]

however the agent is not yet added so you can't deploy clients i nixos. yet. https://github.com/NixOS/nixpkgs/issues/167527