If you are trying to use remote desktop on Ubuntu or Xubuntu 18.04 you may find that after logging in all you see is a blank screen.
One cause of this is that xfce4 has added code that prevents a second session from opening. You will find that if your computer's main screen is logged into xfce4 you may not be able to use it with xrdp.
To solve this "second session" problem and allow as many sessions as you need, edit /etc/xrdp/startwm.sh and add these lines before the lines that test and execute Xsession. The $HOME/.profile is not part of the solution, but is something that should be run before starting the session anyway.
unset DBUS_SESSION_BUS_ADDRESS
unset XDG_RUNTIME_DIR
. $HOME/.profile
thank you, this is work like a charm ;)
ReplyDeletethanks so much only thing that works!!
ReplyDeleteThank you so much. It works.
ReplyDeleteFor Ubuntu 18.04 Bionic
ReplyDeleteThis works
sudo apt-get install xorgxrdp-hwe-18.04
this installs a compatible xrdp package
The old version is not compatible and if you have it installed you
have to:
sudo apt-get install xserver-xorg-core
sudo apt-get -y install xserver-xorg-input-all
This removes the old stuff if you have it installed
I followed these steps and lost my entire KDE environment for 18.04 Bionic. I have to reinstall Kubuntu from scratch tomorrow. This suggestion should be removed from this list so that others don't run into the same issue
DeleteI just executed the first instruction (sudo apt-get install xserver-xorg-core) and worked on Ubuntu 18.04 LTS
Deletethe first one, sudo apt-get install xorgxrdp-hwe-18.04, worked for me
DeleteThe very sad work around for me is that you can't be logged in locally while trying to use RDP. The 'fix" is to log out locally and RDP works fine. Wow.
ReplyDeletehttps://github.com/neutrinolabs/xrdp/issues/1358
Spot on ! That worked for me.
DeleteThis is still broken all the way through Ubuntu 19 and 20 early builds.
ReplyDeleteThank you so much. I just fixed the same issue now on Ubuntu 19.10 Desktop. Regards.
ReplyDeletehttps://www.nakivo.com/blog/how-to-use-remote-desktop-connection-ubuntu-linux-walkthrough/
ReplyDeletesave my day
OMFG, thank you so much for this fix. Huge help for this green linux guy.
ReplyDeleteyou need to install a desktop to xrdp work
ReplyDeleteThis comment has been removed by the author.
ReplyDeleteThank you so much
ReplyDeleteThis worked for me:
ReplyDeleteOn the R Pi You can add to
/etc/X11/Xwrapper.config
the following line
allowed_users = anybody
Thanx!
DeleteThanks working
DeleteIf I may suggest, use X2GO instead of the pre-installed windows RDP. Its way faster atleast on the Jetson TX2.
ReplyDeleteThank you for the tip. x2go looks interesting.
DeleteAwesome! Worked like a charm.
ReplyDeleteThanks! worked with ubuntu 20!
ReplyDeleteThank you so much! I finally got the desktop to load but mouse cursor gets stuck on the loading icon. Any ideas on how to fix this?
ReplyDeleteThe loading of the desktop pretty much gets stuck.
DeleteHell yeah, bro. You rock! Also works for Ubuntu 20.04
ReplyDeleteLike a charm :D Thanks
ReplyDeleteIt works for me: https://vinnyfs89.gitbook.io/knowledge/technology/operational-systems/linux/how-to#remote-access-using-the-xrdp-package
ReplyDeleteLook at these lines below:
```sh
# Allow firewall access on port 3389
ufw allow 3389
# Change "allowed_users" to anybody
# like this: allowed_users=anybody
vim /etc/X11/Xwrapper.config
```
I am not sure what you are saying here.
DeleteAre you able to login to xrdp when you are already logged into the main screen? If not you need the solution here.
perfect it works on ubuntu 20.10 also, thank you
ReplyDeleteperfect it works on ubuntu 20.10 also, thank you
ReplyDeleteThanks
ReplyDeleteThis is awesome ! Saved my day on Ubutnu 20.04, thanks so much !!!
ReplyDeletethe file only has read permission it wont even allow me to replace the file
ReplyDeletethanks its work
ReplyDelete2-23-2120
ReplyDeleteWorks Dandy!! This has been bugging me for ages! I LOVE Ubuntu, but always gave up on it not able to remote desktop in...
It works on Unbuntu Server 20.4 with Cinnamon. Thank you so much. I wish I had found this 2 days ago.
ReplyDeleteWorked! Thanks much.
ReplyDeletework for Ubuntu 20.10 64 bit raspberry 4
ReplyDeleteWorked on Debian GNU/Linux 10 (buster)
ReplyDeleteGet asked to create a color managed profile though ...
These two links have been helpful to eliminate all popups:
ReplyDeletehttps://askubuntu.com/questions/1193810/authentication-required-to-refresh-system-repositories-in-ubuntu-19-10
http://c-nergy.be/blog/?p=12043