Remote Desktop Server: Difference between revisions

From Alpine Linux
(Updated to what works with Xfce for Alpine 3.17.2)
m (added to Remote Desktop category, minor formatting changes)
Line 1: Line 1:
== 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 the desktop is working without remote access (if feasible)


Install XRDP and xorgxrdp
Install XRDP and xorgxrdp
{{Cmd| apk add xrdp xorgxrdp}}
 
{{Cmd|# apk add xrdp xorgxrdp}}


Start the necessary services:
Start the necessary services:
{{Cmd|rc-service xrdp start
 
rc-service xrdp-sesman start}}
{{Cmd|# rc-service xrdp start
# rc-service xrdp-sesman start}}


After testing this works you may set the services to start automatically:
After testing this works you may set the services to start automatically:
{{Cmd|rc-update add xrdp
 
rc-update add xrdp-sesman}}
{{Cmd|# 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 from [Xvnc] to the end.  
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 from [Xvnc] to the end.  
Line 25: Line 28:


Next, install Vino and XRDP with the following command:
Next, install Vino and XRDP with the following command:
{{Cmd| apk add vino@community xrdp}}


Replace the file /etc/xrdp/xrdp.ini content with:
{{Cmd|# apk add vino@community xrdp}}
 
Replace the file <code>/etc/xrdp/xrdp.ini</code> content with:
 


<pre style="white-space: pre-wrap;
{{Cat|/etc/xrdp/xrdp.ini|<nowiki>[globals]
white-space: -moz-pre-wrap;
white-space: -pre-wrap;
white-space: -o-pre-wrap;
word-wrap: break-word;">
[globals]
bitmap_cache=yes
bitmap_cache=yes
bitmap_compression=yes
bitmap_compression=yes
Line 48: Line 48:
port=5900
port=5900
username=ask
username=ask
password=ask
password=ask</nowiki>}}
</pre>


If you want the XRDP service starts automatically, add the services to the default runlevel:
If you want the XRDP service starts automatically, add the services to the default runlevel:
{{Cmd|rc-update add xrdp
 
rc-update add xrdp-sesman
{{Cmd|# rc-update add xrdp
rc-update add vino}}
&#35; rc-update add xrdp-sesman
&#35; rc-update add vino}}


To start:
To start:
{{Cmd|rc-service xrdp start
 
rc-service xrdp-sesman start
{{Cmd|# rc-service xrdp start
rc-service vino start}}
&#35; rc-service xrdp-sesman start
&#35; rc-service vino start}}


=== Remmina as client ===
=== Remmina as client ===
- work in progress -{{Draft}}
(not even clear whether its vnc or rdp)


{{Draft}}


=== Misc ===
=== Misc ===
==== Disabling XRDP Notification and Confirmation ====
==== Disabling XRDP Notification and Confirmation ====
If you do not want the client confirmation before the session being accepted:
If you do not want the client confirmation before the session being accepted:


<code>export DISPLAY=:0.0</code>
<code>export DISPLAY=:0.0</code>
{{Cmd|gsettings set org.gnome.Vino notify-on-connect false
{{Cmd|gsettings set org.gnome.Vino notify-on-connect false
gsettings set org.gnome.Vino prompt-enabled false
gsettings set org.gnome.Vino prompt-enabled false
Line 77: Line 80:
[[Category:Server]]
[[Category:Server]]
[[Category:Desktop]]
[[Category:Desktop]]
[[Category:Remote Desktop]]

Revision as of 07:53, 19 April 2023

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 the desktop is working without remote access (if feasible)

Install XRDP and xorgxrdp

# apk add xrdp xorgxrdp

Start the necessary services:

# rc-service xrdp start # rc-service xrdp-sesman start

After testing 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 from [Xvnc] to the end.

Remote Desktop Server based on Vino and XRDP

THIS DOES NOT WORK on 3.17.2 with Xfce Not Yet Deleted Yet in Case it helps others

First of all make sure 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@community xrdp

Replace the file /etc/xrdp/xrdp.ini content with:


Contents of /etc/xrdp/xrdp.ini

[globals] bitmap_cache=yes bitmap_compression=yes port=3389 crypt_level=low channel_code=1 max_bpp=24 [xrdp1] name=Vino lib=libvnc.so ip=127.0.0.1 port=5900 username=ask password=ask

If you want the XRDP service starts 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

Remmina as client

This material is work-in-progress ...

Do not follow instructions here until this notice is removed.
(Last edited by Bbbhltz on 19 Apr 2023.)

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