Remote Desktop Server: Difference between revisions
m (added to Remote Desktop category, minor formatting changes) |
(1. Added 'X11vnc' stub. 2. Promoted 'Remmina as client' section to top-level, instead of being a server under 'Remote Desktop Server based on Vino and XRDP'; 3. Added intro for Remmina; 4. Amended soft link to startplasma-x11: should typically be done as user; 5. Assumption stated that 'community' is enabled instead of using @community tag; 6. Style/grammar amendments.) |
||
| (8 intermediate revisions by 3 users not shown) | |||
| Line 1: | Line 1: | ||
These guides assume that the community repo [[Enable_Community_Repository|has been enabled]]. | |||
== Remote Desktop Server Based on XRDP and xorgxrdp == | == Remote Desktop Server Based on XRDP and xorgxrdp == | ||
This was tested and works for v 3.17.2 with [[Xfce]] as the desktop. | This was tested and works for v 3.17.2 with [[Xfce]] as the desktop. | ||
First ensure the desktop is working without remote access (if feasible) | First ensure that the desktop is working without remote access (if feasible). | ||
Install | Install {{Pkg|xrdp}} and {{Pkg|xorgxrdp}}: | ||
{{Cmd|# apk add xrdp xorgxrdp}} | {{Cmd|# apk add xrdp xorgxrdp}} | ||
| Line 14: | Line 16: | ||
# rc-service xrdp-sesman start}} | # rc-service xrdp-sesman start}} | ||
After testing this works you may set the services to start automatically: | After testing that this works, you may set the services to start automatically: | ||
{{Cmd|# rc-update add xrdp | {{Cmd|# rc-update add xrdp | ||
# rc-update add xrdp-sesman}} | # rc-update add xrdp-sesman}} | ||
That should be all that is needed to connect from a Windows client with its default "Remote Desktop" client | That should be all that is needed to connect from a Windows client with its default "Remote Desktop" client. The xrdp configuration file though will contain several services that will not work, so to remove them, edit {{Pkg|/etc/xrdp/xrdp.ini}} and remove all lines from, and including: {{ic|[Xvnc]}} to the end. | ||
Note: If you are using KDE, please a link as follows so that there is no screen after logging in: | |||
{{Cmd|$ ln -s /usr/bin/startplasma-x11 ~/.xinitrc}} | |||
{{ic|doas}} should only be used for that command if {{Path|~/.xinitrc}} is owned by root or by another user, but that would be atypical for a user-specific configuration. | |||
{{Note|From v3.22 upwards, xrdp is broken in combination with KDE, because only Wayland is supported with KDE: [[https://wiki.alpinelinux.org/wiki/Release_Notes_for_Alpine_3.22.0|since v3.22]] | |||
}} | |||
== Remote Desktop Server based on Vino and XRDP == | == Remote Desktop Server based on Vino and XRDP == | ||
'''THIS DOES NOT WORK on 3.17.2 with Xfce Not Yet Deleted | '''THIS DOES NOT WORK on 3.17.2 with Xfce - Not Yet Deleted in Case it helps others''' | ||
First of all, make sure that you have a desktop environment properly installed (See: [[Desktop environments and Window managers]]). | |||
{{ | Next, install {{Pkg|vino}} and {{Pkg|xrdp}} with the following command: | ||
{{Cmd|# apk add vino xrdp}} | |||
Replace the {{Path|/etc/xrdp/xrdp.ini}} file's content with: | |||
{{Cat|/etc/xrdp/xrdp.ini|<nowiki>[globals] | {{Cat|/etc/xrdp/xrdp.ini|<nowiki>[globals] | ||
| Line 50: | Line 60: | ||
password=ask</nowiki>}} | password=ask</nowiki>}} | ||
If you want the XRDP service | If you want the XRDP service to start automatically, add the services to the default runlevel: | ||
{{Cmd|# rc-update add xrdp | {{Cmd|# rc-update add xrdp | ||
| Line 61: | Line 71: | ||
# rc-service xrdp-sesman start | # rc-service xrdp-sesman start | ||
# rc-service vino start}} | # rc-service vino start}} | ||
=== Misc === | === Misc === | ||
| Line 78: | Line 84: | ||
}} | }} | ||
[[ | == X11vnc == | ||
[[Category: | {{Main|X11vnc}} | ||
[[Category: | [[X11vnc]] enables connection to the active X11 session, so one sees what is on the physical display, to include login screens and onscreen applications. Unlike certain VNC servers that launch a virtual desktop, it does not create an additional X session and is therefore leaner. | ||
== Remmina as client == | |||
{{Draft}} | |||
Remmina is a remote desktop client that can connect to servers such as x11vnc, XRDP, and Windows RDP. | |||
[[Category:System Administration]] | |||
[[Category:Security]] | |||
Latest revision as of 03:13, 3 January 2026
These guides assume that the community repo has been enabled.
Remote Desktop Server Based on XRDP and xorgxrdp
This was tested and works for v 3.17.2 with Xfce as the desktop.
First ensure that the desktop is working without remote access (if feasible).
# apk add xrdp xorgxrdp
Start the necessary services:
# rc-service xrdp start # rc-service xrdp-sesman start
After testing that this works, you may set the services to start automatically:
# rc-update add xrdp # rc-update add xrdp-sesman
That should be all that is needed to connect from a Windows client with its default "Remote Desktop" client. The xrdp configuration file though will contain several services that will not work, so to remove them, edit /etc/xrdp/xrdp.ini and remove all lines from, and including: [Xvnc] to the end.
Note: If you are using KDE, please a link as follows so that there is no screen after logging in:
$ ln -s /usr/bin/startplasma-x11 ~/.xinitrc
doas should only be used for that command if ~/.xinitrc is owned by root or by another user, but that would be atypical for a user-specific configuration.
Remote Desktop Server based on Vino and XRDP
THIS DOES NOT WORK on 3.17.2 with Xfce - Not Yet Deleted in Case it helps others
First of all, make sure that you have a desktop environment properly installed (See: Desktop environments and Window managers).
Next, install vino and xrdp with the following command:
# apk add vino xrdp
Replace the /etc/xrdp/xrdp.ini file's content with:
Contents of /etc/xrdp/xrdp.ini
If you want the XRDP service to start automatically, add the services to the default runlevel:
# rc-update add xrdp # rc-update add xrdp-sesman # rc-update add vino
To start:
# rc-service xrdp start # rc-service xrdp-sesman start # rc-service vino start
Misc
Disabling XRDP Notification and Confirmation
If you do not want the client confirmation before the session being accepted:
export DISPLAY=:0.0
gsettings set org.gnome.Vino notify-on-connect false gsettings set org.gnome.Vino prompt-enabled false
X11vnc
X11vnc enables connection to the active X11 session, so one sees what is on the physical display, to include login screens and onscreen applications. Unlike certain VNC servers that launch a virtual desktop, it does not create an additional X session and is therefore leaner.
Remmina as client
Do not follow instructions here until this notice is removed. |
Remmina is a remote desktop client that can connect to servers such as x11vnc, XRDP, and Windows RDP.
