We are assuming that you are running Ubuntu 18.04 or later, as you are connecting to the GNOME Desktop. The problem you are describing is expected when you perform a manual installation (with no further actions).
To solve your issue, you have multiple options:
1. Manually change the look and feel within your remote session
This post from my personal blog provides a step by step explanation on what you need to do. In a nutshell:
Install Tweak tool:
sudo apt-get install gnome-tweak-tool
sudo apt install gnome-tweaks # for Ubuntu 22.04 ref. https://askubuntu.com/questions/1233088/xrdp-desktop-looks-different-when-connecting-remotely#comment2580018_1407324
Open the tool, go to the Extensions node, and enable the Dock bar.
Go to the Appearance node and select the Theme to be used (often it's Yaru).
2. Create a login script file
Copy the code below into your Terminal console and let it execute. This will create a file called .xsessionrc
. This file is kind of a login script that will load your desktop configuration into the remote session. After the file is created, login back to the xRDP session and see if the desktop looks like the one you have when logged on locally.
cat <<EOF > ~/.xsessionrc
export GNOME_SHELL_SESSION_MODE=ubuntu
export XDG_CURRENT_DESKTOP=ubuntu:GNOME
export XDG_CONFIG_DIRS=/etc/xdg/xdg-ubuntu:/etc/xdg
EOF
3. Use scripted installation
Next time, you perform a xRDP installation, you could use the script that can be found in my personal blog to automate the installation and let it perform for you the post-configuration actions that make the desktop interface look similar when connected locally or remotely through xRDP. There is also a how-to guide provided as well with the script (see the above link).
Please note that the script is updated on a regular base, so please be sure to check if a new version of the script is available.
echo
at the beginning of the second line. Try it like this: cat <gnome-extensions enable ubuntu-dock@ubuntu.com
from this answer https://askubuntu.com/questions/1403431/update-to-22-04-problem-with-dock – brianlmerritt Nov 30 '23 at 10:11