Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

askthedev.com Logo askthedev.com Logo
Sign InSign Up

askthedev.com

Search
Ask A Question

Mobile menu

Close
Ask A Question
  • Ubuntu
  • Python
  • JavaScript
  • Linux
  • Git
  • Windows
  • HTML
  • SQL
  • AWS
  • Docker
  • Kubernetes
Home/ Questions/Q 5171
Next
In Process

askthedev.com Latest Questions

Asked: September 25, 20242024-09-25T02:09:43+05:30 2024-09-25T02:09:43+05:30In: Ubuntu, Windows

I am trying to connect to my Ubuntu 22.04 system from a Windows machine using Remote Desktop, but after I log in through xrdp, I am faced with a blank screen instead of my desktop. How can I resolve this issue to access my Ubuntu GUI properly?

anonymous user

I hope someone can help me out here! I’ve been trying to connect to my Ubuntu 22.04 system from my Windows machine using Remote Desktop, and I’m running into a pretty frustrating issue. Here’s what’s going on: I set up xrdp on my Ubuntu system, and I can connect just fine. I enter my username and password, and then I get logged in, but once I’m in, all I see is a blank screen. It’s really maddening because I need access to my desktop to get some work done.

I’ve done a little digging online and tried to figure out what’s going wrong. I followed a tutorial that explained how to install xrdp, and I made sure all the configurations seemed good. I even restarted the xrdp service just to make sure everything was running smoothly. But nope, every time I connect, it’s just that awful blank screen. I can see the cursor, but there’s nothing else—no desktop, no icons, no applications, nothing.

I’ve read some suggestions recommending that I check the session settings in the xrdp.ini file, and even a few people mentioned that I should edit my .xsession file, but I’m not super comfortable messing around with those files. Every time I try to tweak something, I worry that I’ll mess up my entire setup.

So, I’m reaching out to see if anyone here has experienced the same problem or has any idea how to solve it. Have you been able to get your Remote Desktop connection working with a proper GUI when using Ubuntu 22.04 with xrdp? If so, could you share the steps you took to resolve this? I’d really appreciate any help or advice you could offer. Thanks a bunch!

  • 0
  • 0
  • 2 2 Answers
  • 0 Followers
  • 0
Share
  • Facebook

    Leave an answer
    Cancel reply

    You must login to add an answer.

    Continue with Google
    or use

    Forgot Password?

    Need An Account, Sign Up Here
    Continue with Google

    2 Answers

    • Voted
    • Oldest
    • Recent
    1. anonymous user
      2024-09-25T02:09:44+05:30Added an answer on September 25, 2024 at 2:09 am

      Ubuntu 22.04 Blank Screen Issue with xrdp

      So, I’ve been having the same issue with my Ubuntu 22.04 setup and xrdp. It’s super frustrating, I totally get it! When you connect and just see a blank screen, it’s like, what’s the point, right? 😩

      Here are a few things you can try that worked for me:

      • Edit the .xsession file:
        Open a terminal on your Ubuntu machine and type:

        echo "mate-session" > ~/.xsession

        This is saying you want to start the MATE desktop environment when you connect. If you don’t have MATE installed, you might need to install it first with:

        sudo apt install ubuntu-mate-desktop
      • Check xrdp.ini settings:
        You might want to open the /etc/xrdp/xrdp.ini file and ensure you have the right configurations. Look for the session section and make sure it points to your desktop environment (like MATE).
      • Restart xrdp service:
        After making changes, don’t forget to restart the xrdp service. You can do that by running:

        sudo systemctl restart xrdp
      • Check if desktop environment is installed:
        Make sure you have a desktop environment installed. If not, install one (like XFCE, MATE, or GNOME).
      • Try using a different desktop environment:
        Sometimes certain desktop environments can have issues with xrdp. If you’re using, say, GNOME, try switching to XFCE or MATE.

      After doing these things, try reconnecting! Hopefully, it won’t be a blank screen anymore. Let me know if you run into any other trouble or if it works for you!

        • 0
      • Reply
      • Share
        Share
        • Share on Facebook
        • Share on Twitter
        • Share on LinkedIn
        • Share on WhatsApp
    2. anonymous user
      2024-09-25T02:09:44+05:30Added an answer on September 25, 2024 at 2:09 am

      To resolve the blank screen issue when connecting to your Ubuntu 22.04 system via xrdp, you first need to ensure that the desktop environment is properly set up for XRDP. One common issue arises when the session type is not specified in the xrdp.ini file. Edit the xrdp.ini file, typically located at `/etc/xrdp/xrdp.ini`, and ensure the following line is present under the `[X11rdp]` section:
      session=xfce (or `session=startwm` depending on your desktop environment). You’d also want to install XFCE if it’s not already installed, as it tends to work well with XRDP. You can do this by running sudo apt install xfce4. After making these changes, restart the xrdp service with sudo systemctl restart xrdp.

      Additionally, setting up the `.xsession` file in your home directory may also help. Create or edit the `.xsession` file (run touch ~/.xsession if it doesn’t exist) to include your preferred desktop environment. For instance, add the line exec startxfce4. This ensures that your desktop environment starts properly upon connecting through xrdp. Make sure that the permissions for the `.xsession` file are correct as well by running chmod +x ~/.xsession. Once you’ve made these changes, try reconnecting to your Ubuntu machine via Remote Desktop, and you should see the GUI instead of a blank screen.

        • 0
      • Reply
      • Share
        Share
        • Share on Facebook
        • Share on Twitter
        • Share on LinkedIn
        • Share on WhatsApp

    Related Questions

    • I'm having trouble installing the NVIDIA Quadro M2000M driver on Ubuntu 24.04.1 LTS with the current kernel. Can anyone provide guidance or solutions to this issue?
    • What steps can I take to troubleshoot high usage of GNOME Shell in Ubuntu 24.04?
    • I recently performed a fresh installation of Ubuntu 24.04, and I've noticed that my RAM usage steadily increases over time until my system becomes unresponsive. Has anyone experienced this issue ...
    • I'm encountering an issue with my MegaRAID device on a Windows system, and I'm getting an "Error Code 10: I/O adapter hardware error". I've tried several troubleshooting steps, but the ...
    • How can I resolve the "unknown filesystem" error that leads me to the GRUB rescue prompt on my Ubuntu system?

    Sidebar

    Related Questions

    • I'm having trouble installing the NVIDIA Quadro M2000M driver on Ubuntu 24.04.1 LTS with the current kernel. Can anyone provide guidance or solutions to this ...

    • What steps can I take to troubleshoot high usage of GNOME Shell in Ubuntu 24.04?

    • I recently performed a fresh installation of Ubuntu 24.04, and I've noticed that my RAM usage steadily increases over time until my system becomes unresponsive. ...

    • I'm encountering an issue with my MegaRAID device on a Windows system, and I'm getting an "Error Code 10: I/O adapter hardware error". I've tried ...

    • How can I resolve the "unknown filesystem" error that leads me to the GRUB rescue prompt on my Ubuntu system?

    • I'm experiencing an issue with Ubuntu 24.04 where Nautilus fails to display the progress indicator when I'm copying large files or folders. Has anyone else ...

    • How can I configure a server running Ubuntu to bind specific IP addresses to two different network interfaces? I'm looking for guidance on how to ...

    • I'm experiencing an issue with Windows 10 where I'm unable to launch the Minecraft Launcher in offline mode. Can anyone provide guidance on how to ...

    • What is the location of the data files for Minecraft on Windows 10?

    • Is it possible to configure automatic login on Ubuntu MATE 24.04?

    Recent Answers

    1. anonymous user on How do games using Havok manage rollback netcode without corrupting internal state during save/load operations?
    2. anonymous user on How do games using Havok manage rollback netcode without corrupting internal state during save/load operations?
    3. anonymous user on How can I efficiently determine line of sight between points in various 3D grid geometries without surface intersection?
    4. anonymous user on How can I efficiently determine line of sight between points in various 3D grid geometries without surface intersection?
    5. anonymous user on How can I update the server about my hotbar changes in a FabricMC mod?
    • Home
    • Learn Something
    • Ask a Question
    • Answer Unanswered Questions
    • Privacy Policy
    • Terms & Conditions

    © askthedev ❤️ All Rights Reserved

    Explore

    • Ubuntu
    • Python
    • JavaScript
    • Linux
    • Git
    • Windows
    • HTML
    • SQL
    • AWS
    • Docker
    • Kubernetes

    Insert/edit link

    Enter the destination URL

    Or link to existing content

      No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.