Linux Ubuntu Desktops
1. Install RDP
-
Execute one of the following sets of instructions:
Expand for Rock Linux v10 Using Gnome Remote Desktop Service
Works with Rocky Linux v10 today -
Install Gnome
sudo dnf -y groupinstall "Server with GUI"sudo systemctl set-default graphical.targetRebootsudo reboot -
Enable the Gnome Remote Desktop Service
This is set per user systemctl --user enable --now gnome-remote-desktop.service -
If the above command results in a lingering error do these steps
sudo loginctl enable-linger $USERsystemctl --user start gnome-remote-desktop.service -
Enable RDP in GNOME settings (via gsettings)
gsettings set org.gnome.desktop.remote-desktop.rdp enable truegsettings set org.gnome.desktop.remote-desktop.rdp view-only false -
Set the RDP password
Formatgrdctl rdp set-credentials --user <your-username> --password "<your-password>" (1)1 Use your own username and password here! examplegrdctl rdp set-credentials --user martinezc --password "a-complex-password" -
Allow RDP through the firewall
Add rulesudo firewall-cmd --add-port=3389/tcp --permanentRestart the deamonsudo firewall-cmd --reload
Expand for Rocky Linux v10 compatible using
VNCinstead ofRDPThis version works with v10 via VNCwith theLXQtDesktop and is the preferred installation until XRDP is made available.-
Install the
LXQtDesktop Environmentsudo dnf -y groupinstall "LXQt Desktop" -
Install TigerVNC Server
sudo dnf -y install tigervnc -
Set VNC password
Do this as the user who will log in remotelyvncpasswd -
Create the VNC startup script
Create the foldermkdir -p ~/.vncOpen thextartupfile for editingnano ~/.vnc/xstartupPaste these contents#!/bin/sh unset SESSION_MANAGER unset DBUS_SESSION_BUS_ADDRESS exec startxfce4Make it executablechmod +x ~/.vnc/xstartup -
Create a Systemd User Service for VNC
Make foldermkdir -p ~/.config/systemd/userEdit service filenano ~/.config/systemd/user/vncserver@.servicePaste these contents[Unit] Description=VNC Server for %u on display %i After=network.target [Service] Type=simple ExecStart=/usr/bin/vncserver :%i -geometry 1920x1080 -localhost no ExecStop=/usr/bin/vncserver -kill :%i Restart=on-failure [Install] WantedBy=default.targetReload systemdsystemctl --user daemon-reloadEnableVNCon display:1systemctl --user enable --now vncserver@1.service -
Open FW port for
VNCOpenVNCport 5901sudo firewall-cmd --add-port=5901/tcp --permanentRestart FW daemonsudo firewall-cmd --reload
Expand for Rocky Linux v10
Doesn’t work yet since v10 is still new -
Update system
sudo dnf update -y -
XRDP is packaged in EPEL, so it must be enabled first
sudo dnf install -y epel-release -
Install XRDP and TigerVNC backend
sudo dnf install -y xrdp tigervnc-server -
Enable and start the XRDP service
Startsudo systemctl enable --now xrdpConfirmsystemctl status xrdp -
Allow RDP through the firewall
Add rulesudo firewall-cmd --add-port=3389/tcp --permanentRestart the deamonsudo firewall-cmd --reload
Expand for Ubuntu Install instructions
-
Via:
xrdp-
Install
sudo apt update && sudo apt install xrdp -y -
Confirm
sudo systemctl status xrdp -
Configure
sudo usermod -a -G ssl-cert xrdp -
Restart
sudo systemctl restart xrdpA reboot might be required.
-
Expand for Rhel Install instructions:
-
Via:
xrdp.x86_64-
Install
sudo dnf install -y xrdp.x86_64 -
Enable xrdp
sudo systemctl enable xrdp -
Open FW for port 3389
-
Open port 3389
sudo firewall-cmd --add-port=3389/tcp --permanent -
Restart FW service
sudo firewall-cmd --reload
-
-
Expand for Azure instructions
Please reference the Azure doc
-
-
Open firewall port
3389via instructions contained elsewhere in this document.
2. Fedora Server
-
Reference document.
-
Install the KDE desktop
KDE Desktopsudo dnf group -y install kde-desktop-environmentKDE Desktop appssudo dnf group -y install kde-apps -
Install desktop switcher
sudo dnf install -y switchdesk switchdesk-gui -
Enable boot into Desktop
sudo systemctl set-default graphical.target -
If the nvdia driver was installed prior, then run this
sudo nvidia-ctk cdi generate --output=/etc/cdi/nvidia.yaml -
Enable windows minimize/maximize/close buttons
gsettings set org.gnome.desktop.wm.preferences button-layout ":minimize,maximize,close" -
Disable Suspend mode
sudo systemctl mask sleep.target suspend.target hibernate.target hybrid-sleep.target -
Reboot
sudo reboot
-
3. Install one or more of the following desktops…
RDP support will need to be installed in order to access the Desktop remotely via remote desktop.
|
3.1. LXDE
| This is a low resource desktop environment suitable for X Windows or RDP. |
-
Install
Ubuntusudo apt update -y && sudo apt upgrade -y && sudo apt-get -y install lxdeFedorasudo dnf update -y && sudo dnf upgrade -y && sudo dnf -y group install lxde-desktop
3.2. XFce
| This is a low resource desktop environment suitable for X Windows or RDP. |
-
Install
Ubuntusudo apt update -y && sudo apt upgrade -y && sudo apt install xfce4 xfce4-goodies -yFedorasudo dnf update -y && sudo dnf install @xfce-desktop-environment -y
3.3. Cinnamon
| This will take a while… |
-
Install
sudo apt update -y && sudo apt upgrade -y && sudo apt install cinnamon-desktop-environment -y -
Verify
cinnamon --versionExampleCinnamon 5.2.7
3.4. GNOME
GNOME is probably installed by default.
|
-
Update the system first
sudo apt update -y && sudo apt upgrade -y -
Then one of the folowing:
-
Do this for a minimal install:
800MBsudo apt -y install ubuntu-desktop-minimal -
Or this one for a full install:
2GBsudo apt -y install ubuntu-gnome-desktop
-
-
GNOME Tweaks
sudo apt -y install gnome-tweaks
4. Select default desktop
-
View available Desktops and Select a different one
Ubuntu
-
Run
sudo update-alternatives --config x-session-manager -
Choose Desktop
Example desktopsThere are 2 choices for the alternative x-session-manager (providing /usr/bin/x-session-manager). Selection Path Priority Status ------------------------------------------------------------ * 0 /usr/bin/gnome-session 50 auto mode 1 /usr/bin/cinnamon-session 50 manual mode 2 /usr/bin/gnome-session 50 manual mode Press <enter> to keep the current choice[*], or type selection number:
Fedora
-
Install
sudo dnf install -y switchdesk switchdesk-gui -
Switch
switchdesk xfce
-