10

I've looked around online about this issue and haven't really found anything that helps me. I'm relatively new to Ubuntu and recently set up a tower so that I could connect to it over the internet via xRDP. That aspect of it works fine, but, for some reason, the desktop looks different on the remote login.

The GNOME dock isn't present on the home screen and looks different when I open the activities thing. Plus I'm missing the dock's customization section in the Settings application. That's really all I've immediately noticed, but I also don't have the experience with Ubuntu to really know what else might be missing.

Is there some way to fix this? I only have one user set up on the computer and use it to log in when connecting remotely, I don't know if that's of any importance or not.

2 Answers 2

13

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:

  1. Install Tweak tool:

    sudo apt-get install gnome-tweak-tool
    
  2. Open the tool, go to the Extensions node, and enable the Dock bar.

  3. 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.

4
  • 1
    I tried Option 2 and it did not work for me.
    – SaTa
    Sep 20, 2020 at 15:32
  • Hello, Ok sorry to here that.... are you using Ubuntu 18.04 and gnome desktop ? The command above in option 2 would only work for Ubuntu running the gnome desktop interfaces....
    – Griffon
    Oct 4, 2020 at 10:27
  • Thanks. I am using Ubuntu 20.04 with gnome desktop.
    – SaTa
    Oct 4, 2020 at 12:20
  • The reason it didn't worked for you @SaTa is because of the echo at the beginning of the second line. Try it like this: 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 Jun 1, 2021 at 12:18
5

The answer above is great, but note that in Ubuntu 22.04 step 1 has changed to:
sudo apt install gnome-shell-extension-prefs
There you just enable the 3 built-in options (Especially the Ubuntu Dock), and you should be good to go.

2

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.