Closed Honghe closed 2 years ago
Commenting for visibility -- having the same issue. Looks like the distributed version on the Ubuntu package manager has the same problem as well.
EDIT: Should mention this is after a fresh install of Ubuntu 18.04.2
Same problem on Project Trident 19.05 xrdp, attempting to connect from Windows 10 Pro v1809.
I experience the same issue:
sudo apt update; sudo apt -y upgrade
sudo install -y xrdp
Trying to remote desktop from my Mac computer:
Getting blank - black - screen. Tried while the local user is locked-in and locked-out the UI.
Commenting for visibility -- having the same issue. Looks like the distributed version on the Ubuntu package manager has the same problem as well.
EDIT: Should mention this is after a fresh install of Ubuntu 18.04.2
Same issue here.
I had a similar issue when building a hyper-v gen 2 VM of Ubuntu 18.04.2. I'm still relatively new to the linux world and not sure what the "hwe" kernel is, but it somehow installed it by default.
I believe the problem is that the packages which are installed for xRDP are not compiled against the "hwe" kernel. As a temporary workaround, I've found a quick guide at http://c-nergy.be/blog/?p=13455 which details adding an unofficial repository from Thiago Martins containing the xRDP packages compiled for the "hwe" kernel.
In case of dead links, the basic instructions are:
# Add the repository and update apt
sudo add-apt-repository ppa:martinx/xrdp-hwe-18.04
sudo apt-get update
# Install new packages
sudo apt-get install xrdp xorg
# Add xrdp user to ssl-cert group and reboot
sudo adduser xrdp ssl-cert
sudo reboot
Sorry I can't be any more help, but this at least got me up and running so I thought I'd share.
Brian
Thiago's update xrdp (v0.9.5.2) is now in the Ubuntu 18.04.2 repositories so @andreas Schwabse should be able to just do an apt install xrdpt.
But you can check if you have that version installed already:
$ xrdp --version
Also xorg was recently renamed xorgxrdp so the command would be the following including the package for pulseaudio support in xrdp now;
$ sudo apt install xrdp xorgxrdp xrdp-pulseaudio-installer
On Tue, Jul 9, 2019 at 8:19 AM Brian Buehrle notifications@github.com wrote:
I had a similar issue when building a hyper-v gen 2 VM of Ubuntu 18.04.2. I'm still relatively new to the linux world and not sure what the "hwe" kernel is, but it somehow installed it by default.
I believe the problem is that the packages which are installed for xRDP are not compiled against the "hwe" kernel. As a temporary workaround, I've found a quick guide at http://c-nergy.be/blog/?p=13455 which details adding an unofficial https://launchpad.net/~martinx/+archive/ubuntu/xrdp-hwe-18.04 repository from Thiago Martins containing the xRDP packages compiled for the "hwe" kernel.
In case of dead links, the basic instructions are:
# Add the repository and update apt sudo add-apt-repository ppa:martinx/xrdp-hwe-18.04 sudo apt-get update # Install new packages sudo apt-get install xrdp xorg # Add xrdp user to ssl-cert group and reboot sudo adduser xrdp ssl-cert sudo reboot
Sorry I can't be any more help, but this at least got me up and running so I thought I'd share.
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/neutrinolabs/xrdp/issues/1358?email_source=notifications&email_token=AAM23J4W4NKSPJAT53AN67TP6R64HA5CNFSM4HTO264KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODZQCXSA#issuecomment-509619144, or mute the thread https://github.com/notifications/unsubscribe-auth/AAM23JZUXR744XRSFSOIHLTP6R64HANCNFSM4HTO264A .
I have the same issue. The version of 0.9.5.2 did not solve this problem.
I have installed & used ubuntu 18.04's xrdp v0.9.5.2 several times (5-6) on new installs over the past 2 weeks and it works OK for me.
I should add tho
Each time, I am logging into an Ubuntu 18.04.2 desktop running either Ubuntu Mate, XFCE or Budgie desktops (I use all 3).
And I am logging in remotely "from" two different Ubuntu 18.04 machines (laptop & desktop) both using xfreerdp.
BUT... you might want to try Thiago Martin's PPA as it installs the latest xrdp (v 0.9.9.1).
Thiago Martin (a member of both Debian and Ubuntu Professional Services) has published a PPA which will update/upgrade to XRDP v0.9.9.1 and upgrade XORGXRDP:
$ sudo add-apt-repository ppa:martinx/xrdp-next $ sudo apt update $ sudo apt upgrade -y
then perhaps reboot and try again to see if things work from Windows 10.
I tried the suggestion by bmullan.
$ sudo add-apt-repository ppa:martinx/xrdp-next $ sudo apt update $ sudo apt upgrade -y $ echo mate-session> ~/.xsession $ sudo apt-get install mate-core $ sudo ufw allow 3389/tcp $ sudo reboot
I accessed ubuntu 18.04.02 by the remote desktop app with windows10. It looked fine but some error messages popped up and terminal did not open on local desktop but it was opening on remote desktop, so, the terminal could not be working on the local desktop after remote desktop connection. The file manager had the same problem.
I msg'd Thiago about the recent xrdp v0.9.10.0 release & he indicated he will try to update his ppa soon for it as it will have numerous big fixes over v0.9.9.1
I am experiencing the same issue with a Raspberry PI 3B+. Worked fine untill I ran the following commands: sudo apt-get update sudo apt-get dist-upgrade sudo rpi-update sudo reboot
Here is my version information:
pi@raspberrypi:~ $ uname -a Linux raspberrypi 4.19.64-v7+ #1250 SMP Tue Aug 6 12:57:01 BST 2019 armv7l GNU/Linux
I have what appears to be the same issue on Ubuntu 18.04.2 with a non-hwe kernel after updating to the latest distro-provided packages (xrdp 0.9.5-2, xorgxrdp 0.9.5-2) on multiple qemu-kvm VMs.
Other than the connection problem, giving up
and some problem
messages in xrdp.log
, the only thing I see to indicate an error is a couple of messages appearing in .xorgxrdp.
n
.log
.
$ grep -C4 EE .xorgxrdp.11.log
[2632181.719] Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
[2632181.719] Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[2632181.719] (++) Log file: ".xorgxrdp.11.log", Time: Fri Aug 16 14:33:46 2019
[2632181.721] (++) Using config file: "/etc/X11/xrdp/xorg.conf"
[2632181.721] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[2632181.721] (==) ServerLayout "X11 Server"
--
[2632181.724] X.Org XInput driver : 24.1
[2632181.724] X.Org Server Extension : 10.0
[2632181.730] (II) systemd-logind: took control of session /org/freedesktop/login1/session/c55
[2632181.732] (II) xfree86: Adding drm device (/dev/dri/card0)
[2632181.733] (EE) systemd-logind: failed to take device /dev/dri/card0: Operation not permitted
[2632181.744] (--) PCI:*(0:0:2:0) 1b36:0100:1af4:1100 rev 4, Mem @ 0xf4000000/67108864, 0xf8000000/67108864, 0xfc094000/8192, I/O @ 0x0000c040/32, BIOS @ 0x????????/131072
[2632181.744] (II) "glx" will be loaded. This was enabled by default and also specified in the config file.
[2632181.744] (II) LoadModule: "dbe"
[2632181.744] (II) Module "dbe" already built-in
--
[2632181.757] rdpScreenInit: out
[2632181.757] (==) RandR enabled
[2632181.759] (II) SELinux: Disabled on system
[2632181.759] (II) AIGLX: Screen 0 is not DRI2 capable
[2632181.759] (EE) AIGLX: reverting to software rendering
[2632181.831] (II) IGLX: enabled GLX_MESA_copy_sub_buffer
[2632181.831] (II) IGLX: Loaded and initialized swrast
[2632181.832] (II) GLX: Initialized DRISWRAST GL provider for screen 0
[2632181.917] (II) Using input driver 'XRDPMOUSE' for 'xrdpMouse'
After further investigation, I have determined that the issue I've been seeing on non-hwe kernels is a separate issue.
My issue was caused by custom scripts in /etc/profile.d
with syntax that /bin/sh
doesn't like (e.g. function function_name { some; commands; }
).
Quick fix for me was to use #!/bin/bash
instead of #!/bin/sh
in /etc/xrdp/startwm.sh
.
The "blank screen after login" issue looks same for everyone however each might have a different root cause. As @evanlinde wrote, sometimes shebang in startwm.sh is the cause, sometimes other people might have different cause. There's no one-shot solution. Please keep it in mind.
I too have been unable to use XRDP with latest (Buster) raspbian (on raspberry pi) unless I remove vncserver however... Even then I can log in but many GUI menu items (perhaps that require elevated credentials) don't run in RDP but do run in console session. (Things like GParted, Raspberry Configure, rpiclone, etc.)
Vanilla Ubuntu 18.04.3 for me. Clients tried on my Mac: Microsoft Remote Desktop 10.3.3 and JumpDesktop 8.3.11. Both log int to the Ubuntu box (Intel NUC) but then have a black / turquoise screen (respectively).
The xrdp-next trick (v0.9.9.1) didn't work for me.
The /etc/xrdp/startwm.sh s/sh/bash/ trick didn't work for me either.
Hi all,
this post seemed to fix it for me: http://catch22cats.blogspot.com/2018/05/xrdp-blank-screen-with-ubuntu-1804.html
_unset DBUS_SESSION_BUS_ADDRESS unset XDG_RUNTIMEDIR . $HOME/.profile
By adding the above lines just before the test and exec in /etc/xrdp/startwm.sh, I also added the #!/bin/bash to the top of the file - also doing a chmod after you've changed the file is what some users might be forgetting.
Best Regards, J
I was having the same problem on Ubuntu 19.10 and was able to fix using the solutions from @evanlinde and @Jarez95.
In my case i didn't need any chmod, just edited /etc/xrdp/startwm.sh
as root.
Initially this wasn't working because from my previous googling others were suggesting running:
echo "gnome-session --session=ubuntu-2d" > ~/.xsession
I found this to be incompatible with this solution. I had to remove ~/.xsession
and restart xrdp
for this fix to work.
i had similar problem under hyper-v and solution by @bbuehrle with addition by @bmullan worked for me.
@Jarez95 hey could you help me at what exact line you add that script ? thank you
@Jarez95 hey could you help me at what exact line you add that script ? thank you
you add ALL the lines to the /etc/xrdp/startwm.sh file, just above where it says test and exec.
I moved away from XRDP anyway as it made new instances when there was a network error and had lots of runaway processes which were causing problems. I'd recommend just using VNCViewer if you can, it can detect that you are running over a local connection and is consequently just as fast, you also dont have to worry about permissions and instances. However then I also had to fix an issue, as it wouldnt work if a display wasnt connected. Hope this may be helpful to you all.
Best Regards, J
i found this https://www.snel.com/support/xrdp-with-lets-encrypt-on-ubuntu-18-04/
sudo apt-get install xorgxrdp-hwe-18.04
sudo apt-get install gnome-tweak-tool -y
sudo sed -i 's/allowed_users=console/allowed_users=anybody/' /etc/X11/Xwrapper.config
sudo bash -c "cat >/etc/polkit-1/localauthority/50-local.d/45-allow.colord.pkla" <<EOF
[Allow Colord all Users]
Identity=unix-user:*
Action=org.freedesktop.color-manager.create-device;org.freedesktop.color-manager.create-profile;org.freedesktop.color-manager.delete-device;org.freedesktop.color-manager.delete-profile;org.freedesktop.color-manager.modify-device;org.freedesktop.color-manager.modify-profile
ResultAny=no
ResultInactive=no
ResultActive=yes
EOF
#Check if script has already run....
if grep -xq "#fixGDM-by-Griffon" /etc/xrdp/startwm.sh; then
echo "Skip theme fixing as script has run at least once..."
else
#Set xRDP session Theme to Ambiance and Icon to Humanity
sudo sed -i.bak "4 a #fixGDM-by-Griffon\ngnome-shell-extension-tool -e ubuntu-appindicators@ubuntu.com\ngnome-shell-extension-tool -e ubuntu-dock@ubuntu.com\n\nif [ -f ~/.xrdp-fix-theme.txt ]; then\necho 'no action required'\nelse\ngsettings set org.gnome.desktop.interface gtk-theme 'Ambiance'\ngsettings set org.gnome.desktop.interface icon-theme 'Humanity'\necho 'check file for xrdp theme fix' >~/.xrdp-fix-theme.txt\nfi\n" /etc/xrdp/startwm.sh
fi
i found this https://www.snel.com/support/xrdp-with-lets-encrypt-on-ubuntu-18-04/
sudo apt-get install xorgxrdp-hwe-18.04 sudo apt-get install gnome-tweak-tool -y sudo sed -i 's/allowed_users=console/allowed_users=anybody/' /etc/X11/Xwrapper.config sudo bash -c "cat >/etc/polkit-1/localauthority/50-local.d/45-allow.colord.pkla" <<EOF [Allow Colord all Users] Identity=unix-user:* Action=org.freedesktop.color-manager.create-device;org.freedesktop.color-manager.create-profile;org.freedesktop.color-manager.delete-device;org.freedesktop.color-manager.delete-profile;org.freedesktop.color-manager.modify-device;org.freedesktop.color-manager.modify-profile ResultAny=no ResultInactive=no ResultActive=yes EOF #Check if script has already run.... if grep -xq "#fixGDM-by-Griffon" /etc/xrdp/startwm.sh; then echo "Skip theme fixing as script has run at least once..." else #Set xRDP session Theme to Ambiance and Icon to Humanity sudo sed -i.bak "4 a #fixGDM-by-Griffon\ngnome-shell-extension-tool -e ubuntu-appindicators@ubuntu.com\ngnome-shell-extension-tool -e ubuntu-dock@ubuntu.com\n\nif [ -f ~/.xrdp-fix-theme.txt ]; then\necho 'no action required'\nelse\ngsettings set org.gnome.desktop.interface gtk-theme 'Ambiance'\ngsettings set org.gnome.desktop.interface icon-theme 'Humanity'\necho 'check file for xrdp theme fix' >~/.xrdp-fix-theme.txt\nfi\n" /etc/xrdp/startwm.sh fi
This steps works fine for me Thanks :+1:
So many crazy work-arounds and guesses on this sad issue. For me, the trick was that I can't be logged in at console/desktop while using XRDP, otherwise, it's black. The "two session" fix above didn't help my case.
If this can help anyone, I just managed to fix this issue. I originally had updated some xorg / xrdp package and got a blue screen after logging in. I used Hyper-V create to get a fresh install of Ubuntu 18.04, backed up all the xorg and xrdp packages, archived them, and copied it to the VM I needed to fix.
Following this: https://ubuntuforums.org/showthread.php?t=819396&page=7, I made the following command:
sudo apt-get install dpkg-repack fakeroot
mkdir ~/dpkg-repack; cd ~/dpkg-repack
fakeroot -u dpkg-repack `dpkg --get-selections | grep xorg | cut -f1`
fakeroot -u dpkg-repack `dpkg --get-selections | grep xrdp | cut -f1`
Basically, I create debian packages from the existing packages on my fresh install. Then, I zipped them with tar, copied the to my computer with scp, and used scp again to copy the tarball to the "broken" VM.
Finally, in the directory with the debian packages, I ran:
sudo dpkg -i --force-all --force-confnew *.deb
This effectively forced installed all the xorg and xrdp packages, and now my original VM works again. Hope this helps!
The solution from @Jarez95 was what fixed it for me, thank you very much!
(I'm running Debian and had the same issue)
I had issues too, I tried the post that @Jarez95 shared but that still didn't work. I've additionally just tried the following steps that @affansaied shared in that post and I'm up and running:
sudo apt-get install xorgxrdp-hwe-18.04
sudo /etc/init.d/xrdp restart
For my case, the workaround was to close all sessions for the current user:
ps u -u "$USER" | awk '/xrdp/ && ! /awk / {system("kill "$2)}'
Had same problem - worked for me when i closed a terminal I had open with same user as I used for loging in the rpd.
nothing of those really worked for me unfortunately.
i have the latest armbian buster...
https://www.nakivo.com/blog/how-to-use-remote-desktop-connection-ubuntu-linux-walkthrough/
saved my day Running through this and changing to xfce4 worked for me as well. I tried @Jarez95's solution but it did not fix my problem.
Same problem
I had issues too, I tried the post that @Jarez95 shared but that still didn't work. I've additionally just tried the following steps that @affansaied shared in that post and I'm up and running:
sudo apt-get install xorgxrdp-hwe-18.04 sudo /etc/init.d/xrdp restart
And you have to restart the system before you connect with rdp. You should have no other connection open.
user's home directory may not be created. In most Linux distros, when creating a new user account with the useradd command the user home directory is not created.Use the -m (--create-home) option to create the user home directory $sudo useradd -m username After creating the user with home directory please try to connect with RDP.
https://www.nakivo.com/blog/how-to-use-remote-desktop-connection-ubuntu-linux-walkthrough/
save my day
This worked for me on fresh install of Ubuntu 18.04
Nothing is helped me.
I have Ubuntu 18.04 LTS. Sometimes, only one user is allowed to connect. which is the main user.
Except for this user, none of the users is allowed to Login. Shown blue colored blank screen.
Nothing is helped me.
I have Ubuntu 18.04 LTS. Sometimes, only one user is allowed to connect. which is the main user.
Except for this user, none of the users is allowed to Login. Shown blue colored blank screen.
Hi,
Please check is home directory available for the user(example : john) which you are using to login.
Example : /home/john
if not please create the user with following command and try to connect via RDP again.
$sudo useradd -m username
Not working for me. I have already setup the home directory with proper permission. Still not working after last Ubuntu update. There may be some bug or security enhancement.
Kindly help me resolve the issue.
Hi @vmevada102
If you're having problems logging in more that one user at once, you might want to read #1546 where we recently debugged a similar problem with Mint (based on Ubuntu 18.04). We've discovered that the Ubuntu/Debian package dbus-user-session
is incompatible with the way XRDP works.
In particular, you might want to try the commands in this comment.
Please report back what happens.
Not solved the problem, i am sharing the log files for some resolution.
xrdp.log
> [20200419-10:27:06] [DEBUG] Testing if xrdp can listen on 0.0.0.0 port 3389.
[20200419-10:27:06] [DEBUG] Closed socket 7 (AF_INET6 :: port 3389)
[20200419-10:27:08] [INFO ] starting xrdp with pid 28027
[20200419-10:27:08] [INFO ] listening to port 3389 on 0.0.0.0
[20200419-10:27:18] [INFO ] Socket 12: AF_INET6 connection received from ::ffff:49.34.72.87 port 54818
[20200419-10:27:18] [DEBUG] Closed socket 12 (AF_INET6 ::ffff:192.168.0.171 port 3389)
[20200419-10:27:18] [DEBUG] Closed socket 11 (AF_INET6 :: port 3389)
[20200419-10:27:18] [INFO ] Using default X.509 certificate: /etc/xrdp/cert.pem
[20200419-10:27:18] [INFO ] Using default X.509 key file: /etc/xrdp/key.pem
[20200419-10:27:18] [WARN ] TLSv1.3 enabled by config, but not supported by system OpenSSL
[20200419-10:27:18] [DEBUG] TLSv1.2 enabled
[20200419-10:27:18] [DEBUG] Security layer: requested 11, selected 1
[20200419-10:27:19] [DEBUG] Closed socket 12 (AF_INET6 ::ffff:192.168.0.171 port 3389)
[20200419-10:27:21] [INFO ] Socket 12: AF_INET6 connection received from ::ffff:49.34.72.87 port 54819
[20200419-10:27:21] [DEBUG] Closed socket 12 (AF_INET6 ::ffff:192.168.0.171 port 3389)
[20200419-10:27:21] [DEBUG] Closed socket 11 (AF_INET6 :: port 3389)
[20200419-10:27:21] [INFO ] Using default X.509 certificate: /etc/xrdp/cert.pem
[20200419-10:27:21] [INFO ] Using default X.509 key file: /etc/xrdp/key.pem
[20200419-10:27:21] [WARN ] TLSv1.3 enabled by config, but not supported by system OpenSSL
[20200419-10:27:21] [DEBUG] TLSv1.2 enabled
[20200419-10:27:21] [DEBUG] Security layer: requested 11, selected 1
[20200419-10:27:22] [INFO ] connected client computer name: PALAK-PC
[20200419-10:27:22] [INFO ] adding channel item name rdpdr chan_id 1004 flags 0x80800000
[20200419-10:27:22] [INFO ] adding channel item name rdpsnd chan_id 1005 flags 0xc0000000
[20200419-10:27:22] [INFO ] adding channel item name cliprdr chan_id 1006 flags 0xc0a00000
[20200419-10:27:22] [INFO ] adding channel item name drdynvc chan_id 1007 flags 0xc0800000
[20200419-10:27:23] [INFO ] TLS connection established from ::ffff:49.34.72.87 port 54819: TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384
[20200419-10:27:26] [DEBUG] xrdp_00006d81_wm_login_mode_event_00000001
[20200419-10:27:26] [INFO ] Loading keymap file /etc/xrdp/km-00000409.ini
[20200419-10:27:26] [WARN ] local keymap file for 0x00000409 found and doesn't match built in keymap, using local keymap file
[20200419-10:27:39] [DEBUG] xrdp_wm_log_msg: connecting to sesman ip 127.0.0.1 port 3350
[20200419-10:27:40] [INFO ] xrdp_wm_log_msg: sesman connect ok
[20200419-10:27:40] [DEBUG] xrdp_wm_log_msg: sending login info to session manager, please wait...
[20200419-10:27:40] [DEBUG] return value from xrdp_mm_connect 0
[20200419-10:27:40] [INFO ] xrdp_wm_log_msg: login successful for display 10
[20200419-10:27:40] [DEBUG] xrdp_wm_log_msg: started connecting
[20200419-10:27:42] [INFO ] Socket 12: AF_INET6 connection received from ::ffff:123.201.255.114 port 58373
[20200419-10:27:42] [DEBUG] Closed socket 12 (AF_INET6 ::ffff:192.168.0.171 port 3389)
[20200419-10:27:42] [DEBUG] Closed socket 11 (AF_INET6 :: port 3389)
[20200419-10:27:42] [INFO ] Using default X.509 certificate: /etc/xrdp/cert.pem
[20200419-10:27:42] [INFO ] Using default X.509 key file: /etc/xrdp/key.pem
[20200419-10:27:42] [WARN ] TLSv1.3 enabled by config, but not supported by system OpenSSL
[20200419-10:27:42] [DEBUG] TLSv1.2 enabled
[20200419-10:27:42] [DEBUG] Security layer: requested 3, selected 1
[20200419-10:27:42] [DEBUG] Closed socket 12 (AF_INET6 ::ffff:192.168.0.171 port 3389)
[20200419-10:27:43] [DEBUG] Closed socket 21 (AF_UNIX)
[20200419-10:27:47] [DEBUG] Closed socket 21 (AF_UNIX)
[20200419-10:27:50] [DEBUG] Closed socket 21 (AF_UNIX)
/var/log/xrdp-sesman.log
[20200419-10:27:06] [DEBUG] libscp initialized
[20200419-10:27:06] [DEBUG] Testing if xrdp-sesman can listen on 127.0.0.1 port 3350.
[20200419-10:27:06] [DEBUG] Closed socket 1 (AF_INET6 ::1 port 3350)
[20200419-10:27:06] [INFO ] starting xrdp-sesman with pid 28005
[20200419-10:27:06] [INFO ] listening to port 3350 on 127.0.0.1
[20200419-10:27:39] [INFO ] A connection received from ::1 port 51272
[20200419-10:27:40] [INFO ] ++ created session (access granted): username rajesh, ip ::ffff:49.34.72.87:54819 - socket: 12
[20200419-10:27:40] [INFO ] starting Xorg session...
[20200419-10:27:40] [DEBUG] Closed socket 9 (AF_INET6 :: port 5910)
[20200419-10:27:40] [DEBUG] Closed socket 9 (AF_INET6 :: port 6010)
[20200419-10:27:40] [DEBUG] Closed socket 9 (AF_INET6 :: port 6210)
[20200419-10:27:40] [DEBUG] Closed socket 8 (AF_INET6 ::1 port 3350)
[20200419-10:27:40] [INFO ] calling auth_start_session from pid 28037
[20200419-10:27:40] [DEBUG] Closed socket 7 (AF_INET6 ::1 port 3350)
[20200419-10:27:40] [DEBUG] Closed socket 8 (AF_INET6 ::1 port 3350)
[20200419-10:27:40] [INFO ] /usr/lib/xorg/Xorg :10 -auth .Xauthority -config xrdp/xorg.conf -noreset -nolisten tcp -logfile .xorgxrdp.%s.log
[20200419-10:27:50] [ERROR] X server for display 10 startup timeout
[20200419-10:27:50] [CORE ] waiting for window manager (pid 28039) to exit
[20200419-10:27:50] [ERROR] X server for display 10 startup timeout
[20200419-10:27:50] [ERROR] another Xserver might already be active on display 10 - see log
[20200419-10:27:50] [DEBUG] aborting connection...
[20200419-10:27:50] [CORE ] window manager (pid 28039) did exit, cleaning up session
[20200419-10:27:50] [INFO ] calling auth_stop_session and auth_end from pid 28037
[20200419-10:27:50] [DEBUG] cleanup_sockets:
[20200419-10:27:50] [DEBUG] cleanup_sockets: deleting /var/run/xrdp/sockdir/xrdp_chansrv_socket_10
[20200419-10:27:50] [DEBUG] cleanup_sockets: deleting /var/run/xrdp/sockdir/xrdpapi_10
[20200419-10:27:50] [DEBUG] cleanup_sockets: failed to delete /var/run/xrdp/sockdir/xrdpapi_10
[20200419-10:27:50] [INFO ] ++ terminated session: username rajesh, display :10.0, session_pid 28037, ip ::ffff:49.34.72.87:54819 - socket: 12
That's useful - thanks.
It looks like the X server isn't starting.
Could you do the following?
rajesh
cd ~
mv .xsession-errors .xsession-errors.old
rm .xorgxrdp.10.log
Leave the console logged in, and try to log in over XRDP as rajesh
. Then post the contents of ~/.xsession-errors
and ~/.xorgxrdp.10.log
Please let me know if that isn't clear.
The following are results for your suggested commands.
.xsessions-errors file could not be found
rajesh@hp:~$ mv .xsession-errors .xsession-errors.old mv: cannot stat '.xsession-errors': No such file or directory
.xorgxrdp.10.log
> [648197.510]
X.Org X Server 1.19.6 Release Date: 2017-12-20 [648197.510] X Protocol Version 11, Revision 0 [648197.510] Build Operating System: Linux 4.4.0-168-generic x86_64 Ubuntu [648197.510] Current Operating System: Linux bioscience-hp 4.15.0-96-generic #97-Ubuntu SMP Wed Apr 1 03:25:46 UTC 2020 x86_64 [648197.510] Kernel command line: BOOT_IMAGE=/boot/vmlinuz-4.15.0-96-generic root=/dev/mapper/ubuntu--vg-root ro quiet splash vt.handoff=1 [648197.510] Build Date: 14 November 2019 06:20:00PM [648197.510] xorg-server 2:1.19.6-1ubuntu4.4 (For technical support please see http://www.ubuntu.com/support) [648197.510] Current version of pixman: 0.34.0 [648197.510] Before reporting problems, check http://wiki.x.org to make sure that you have the latest version. [648197.510] Markers: (--) probed, () from config file, (==) default setting, (++) from command line, (!!) notice, (II) informational, (WW) warning, (EE) error, (NI) not implemented, (??) unknown. [648197.510] (++) Log file: ".xorgxrdp.10.log", Time: Mon Apr 20 09:37:08 2020 [648197.510] (++) Using config file: "/etc/X11/xrdp/xorg.conf" [648197.510] (==) Using system config directory "/usr/share/X11/xorg.conf.d" [648197.511] (==) ServerLayout "X11 Server" [648197.511] () |-->Screen "Screen (xrdpdev)" (0) [648197.511] () | |-->Monitor "Monitor" [648197.511] () | |-->Device "Video Card (xrdpdev)" [648197.511] () |-->Input Device "xrdpMouse" [648197.511] () |-->Input Device "xrdpKeyboard" [648197.511] () Option "DontVTSwitch" "on" [648197.511] () Option "AutoAddDevices" "off" [648197.511] (*) Not automatically adding devices [648197.511] (==) Automatically enabling devices [648197.511] (==) Automatically adding GPU devices [648197.511] (==) Automatically binding GPU devices [648197.511] (==) Max clients allowed: 256, resource mask: 0x1fffff [648197.511] (WW) The directory "/usr/share/fonts/X11/cyrillic" does not exist. [648197.511] Entry deleted from font path. [648197.511] (WW) The directory "/usr/share/fonts/X11/75dpi/" does not exist. [648197.511] Entry deleted from font path. [648197.511] (WW) The directory "/usr/share/fonts/X11/75dpi" does not exist. [648197.511] Entry deleted from font path. [648197.511] (==) FontPath set to: /usr/share/fonts/X11/misc, /usr/share/fonts/X11/100dpi/:unscaled, /usr/share/fonts/X11/Type1, /usr/share/fonts/X11/100dpi, built-ins [648197.511] (==) ModulePath set to "/usr/lib/xorg/modules" [648197.511] (II) Loader magic: 0x56384d6d5020 [648197.511] (II) Module ABI versions: [648197.511] X.Org ANSI C Emulation: 0.4 [648197.511] X.Org Video Driver: 23.0 [648197.511] X.Org XInput driver : 24.1 [648197.511] X.Org Server Extension : 10.0 [648197.515] (II) systemd-logind: took control of session /org/freedesktop/login1/session/c13 [648197.516] (II) xfree86: Adding drm device (/dev/dri/card0) [648197.517] (EE) systemd-logind: failed to take device /dev/dri/card0: Operation not permitted [648197.546] (--) PCI:(0:4:0:0) 1002:6649:103c:230c rev 0, Mem @ 0xe0000000/268435456, 0xf0000000/8388608, 0xf0900000/262144, I/O @ 0x00002000/256, BIOS @ 0x????????/131072 [648197.546] (II) "glx" will be loaded. This was enabled by default and also specified in the config file. [648197.546] (II) LoadModule: "dbe" [648197.546] (II) Module "dbe" already built-in [648197.546] (II) LoadModule: "ddc" [648197.546] (II) Module "ddc" already built-in [648197.546] (II) LoadModule: "extmod" [648197.546] (II) Module "extmod" already built-in [648197.546] (II) LoadModule: "glx" [648197.546] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so [648197.547] (II) Module glx: vendor="X.Org Foundation" [648197.547] compiled for 1.19.6, module version = 1.0.0 [648197.547] ABI class: X.Org Server Extension, version 10.0 [648197.547] (II) LoadModule: "int10" [648197.547] (II) Loading /usr/lib/xorg/modules/libint10.so [648197.548] (II) Module int10: vendor="X.Org Foundation" [648197.548] compiled for 1.19.6, module version = 1.0.0 [648197.548] ABI class: X.Org Video Driver, version 23.0 [648197.548] (II) LoadModule: "record" [648197.548] (II) Module "record" already built-in [648197.548] (II) LoadModule: "vbe" [648197.548] (II) Loading /usr/lib/xorg/modules/libvbe.so [648197.548] (II) Module vbe: vendor="X.Org Foundation" [648197.548] compiled for 1.19.6, module version = 1.1.0 [648197.548] ABI class: X.Org Video Driver, version 23.0 [648197.548] (II) LoadModule: "xorgxrdp" [648197.548] (WW) Warning, couldn't open module xorgxrdp [648197.548] (II) UnloadModule: "xorgxrdp" [648197.548] (II) Unloading xorgxrdp [648197.548] (EE) Failed to load module "xorgxrdp" (module does not exist, 0) [648197.548] (II) LoadModule: "fb" [648197.548] (II) Loading /usr/lib/xorg/modules/libfb.so [648197.548] (II) Module fb: vendor="X.Org Foundation" [648197.548] compiled for 1.19.6, module version = 1.0.0 [648197.548] ABI class: X.Org ANSI C Emulation, version 0.4 [648197.548] (II) LoadModule: "xrdpdev" [648197.549] (WW) Warning, couldn't open module xrdpdev [648197.549] (II) UnloadModule: "xrdpdev" [648197.549] (II) Unloading xrdpdev [648197.549] (EE) Failed to load module "xrdpdev" (module does not exist, 0) [648197.549] (==) Matched ati as autoconfigured driver 0 [648197.549] (==) Matched modesetting as autoconfigured driver 1 [648197.549] (==) Matched fbdev as autoconfigured driver 2 [648197.549] (==) Matched vesa as autoconfigured driver 3 [648197.549] (==) Assigned the driver to the xf86ConfigLayout [648197.549] (II) LoadModule: "ati" [648197.549] (II) Loading /usr/lib/xorg/modules/drivers/ati_drv.so [648197.549] (II) Module ati: vendor="X.Org Foundation" [648197.549] compiled for 1.19.6, module version = 18.0.1 [648197.549] Module class: X.Org Video Driver [648197.549] ABI class: X.Org Video Driver, version 23.0 [648197.641] (II) LoadModule: "radeon" [648197.641] (II) Loading /usr/lib/xorg/modules/drivers/radeon_drv.so [648197.641] (II) Module radeon: vendor="X.Org Foundation" [648197.641] compiled for 1.19.6, module version = 18.0.1 [648197.641] Module class: X.Org Video Driver [648197.641] ABI class: X.Org Video Driver, version 23.0 [648197.641] (II) LoadModule: "modesetting" [648197.642] (II) Loading /usr/lib/xorg/modules/drivers/modesetting_drv.so [648197.642] (II) Module modesetting: vendor="X.Org Foundation" [648197.642] compiled for 1.19.6, module version = 1.19.6 [648197.642] Module class: X.Org Video Driver [648197.642] ABI class: X.Org Video Driver, version 23.0 [648197.642] (II) LoadModule: "fbdev" [648197.642] (II) Loading /usr/lib/xorg/modules/drivers/fbdev_drv.so [648197.642] (II) Module fbdev: vendor="X.Org Foundation" [648197.642] compiled for 1.19.3, module version = 0.4.4 [648197.642] Module class: X.Org Video Driver [648197.642] ABI class: X.Org Video Driver, version 23.0 [648197.642] (II) LoadModule: "vesa" [648197.642] (II) Loading /usr/lib/xorg/modules/drivers/vesa_drv.so [648197.642] (II) Module vesa: vendor="X.Org Foundation" [648197.642] compiled for 1.19.3, module version = 2.3.4 [648197.642] Module class: X.Org Video Driver [648197.642] ABI class: X.Org Video Driver, version 23.0 [648197.642] (II) LoadModule: "xrdpmouse" [648197.643] (WW) Warning, couldn't open module xrdpmouse [648197.643] (II) UnloadModule: "xrdpmouse" [648197.643] (II) Unloading xrdpmouse [648197.643] (EE) Failed to load module "xrdpmouse" (module does not exist, 0) [648197.643] (II) LoadModule: "xrdpkeyb" [648197.643] (WW) Warning, couldn't open module xrdpkeyb [648197.643] (II) UnloadModule: "xrdpkeyb" [648197.643] (II) Unloading xrdpkeyb [648197.643] (EE) Failed to load module "xrdpkeyb" (module does not exist, 0) [648197.643] (II) RADEON: Driver for ATI/AMD Radeon chipsets: ATI Radeon Mobility X600 (M24), ATI FireMV 2400, ATI Radeon Mobility X300 (M24), ATI FireGL M24 GL, ATI Radeon X600 (RV380), ATI FireGL V3200 (RV380), ATI Radeon IGP320 (A3), ATI Radeon IGP330/340/350 (A4), ATI Radeon 9500, ATI Radeon 9600TX, ATI FireGL Z1, ATI Radeon 9800SE, ATI Radeon 9800, ATI FireGL X2, ATI Radeon 9600, ATI Radeon 9600SE, ATI Radeon 9600XT, ATI FireGL T2, ATI Radeon 9650, ATI FireGL RV360, ATI Radeon 7000 IGP (A4+), ATI Radeon 8500 AIW, ATI Radeon IGP320M (U1), ATI Radeon IGP330M/340M/350M (U2), ATI Radeon Mobility 7000 IGP, ATI Radeon 9000/PRO, ATI Radeon 9000, ATI Radeon X800 (R420), ATI Radeon X800PRO (R420), ATI Radeon X800SE (R420), ATI FireGL X3 (R420), ATI Radeon Mobility 9800 (M18), ATI Radeon X800 SE (R420), ATI Radeon X800XT (R420), ATI Radeon X800 VE (R420), ATI Radeon X850 (R480), ATI Radeon X850 XT (R480), ATI Radeon X850 SE (R480), ATI Radeon X850 PRO (R480), ATI Radeon X850 XT PE (R480), ATI Radeon Mobility M7, ATI Mobility FireGL 7800 M7, ATI Radeon Mobility M6, ATI FireGL Mobility 9000 (M9), ATI Radeon Mobility 9000 (M9), ATI Radeon 9700 Pro, ATI Radeon 9700/9500Pro, ATI FireGL X1, ATI Radeon 9800PRO, ATI Radeon 9800XT, ATI Radeon Mobility 9600/9700 (M10/M11), ATI Radeon Mobility 9600 (M10), ATI Radeon Mobility 9600 (M11), ATI FireGL Mobility T2 (M10), ATI FireGL Mobility T2e (M11), ATI Radeon, ATI FireGL 8700/8800, ATI Radeon 8500, ATI Radeon 9100, ATI Radeon 7500, ATI Radeon VE/7000, ATI ES1000, ATI Radeon Mobility X300 (M22), ATI Radeon Mobility X600 SE (M24C), ATI FireGL M22 GL, ATI Radeon X800 (R423), ATI Radeon X800PRO (R423), ATI Radeon X800LE (R423), ATI Radeon X800SE (R423), ATI Radeon X800 XTP (R430), ATI Radeon X800 XL (R430), ATI Radeon X800 SE (R430), ATI Radeon X800 (R430), ATI FireGL V7100 (R423), ATI FireGL V5100 (R423), ATI FireGL unknown (R423), ATI Mobility FireGL V5000 (M26), ATI Mobility Radeon X700 XL (M26), ATI Mobility Radeon X700 (M26), ATI Radeon X550XTX, ATI Radeon 9100 IGP (A5), ATI Radeon Mobility 9100 IGP (U3), ATI Radeon XPRESS 200, ATI Radeon XPRESS 200M, ATI Radeon 9250, ATI Radeon 9200, ATI Radeon 9200SE, ATI FireMV 2200, ATI Radeon X300 (RV370), ATI Radeon X600 (RV370), ATI Radeon X550 (RV370), ATI FireGL V3100 (RV370), ATI FireMV 2200 PCIE (RV370), ATI Radeon Mobility 9200 (M9+), ATI Mobility Radeon X800 XT (M28), ATI Mobility FireGL V5100 (M28), ATI Mobility Radeon X800 (M28), ATI Radeon X850, ATI unknown Radeon / FireGL (R480), ATI Radeon X800XT (R423), ATI FireGL V5000 (RV410), ATI Radeon X700 XT (RV410), ATI Radeon X700 PRO (RV410), ATI Radeon X700 SE (RV410), ATI Radeon X700 (RV410), ATI Radeon X1800, ATI Mobility Radeon X1800 XT, ATI Mobility Radeon X1800, ATI Mobility FireGL V7200, ATI FireGL V7200, ATI FireGL V5300, ATI Mobility FireGL V7100, ATI FireGL V7300, ATI FireGL V7350, ATI Radeon X1600, ATI RV505, ATI Radeon X1300/X1550, ATI Radeon X1550, ATI M54-GL, ATI Mobility Radeon X1400, ATI Radeon X1550 64-bit, ATI Mobility Radeon X1300, ATI Radeon X1300, ATI FireGL V3300, ATI FireGL V3350, ATI Mobility Radeon X1450, ATI Mobility Radeon X2300, ATI Mobility Radeon X1350, ATI FireMV 2250, ATI Radeon X1650, ATI Mobility FireGL V5200, ATI Mobility Radeon X1600, ATI Radeon X1300 XT/X1600 Pro, ATI FireGL V3400, ATI Mobility FireGL V5250, ATI Mobility Radeon X1700, ATI Mobility Radeon X1700 XT, ATI FireGL V5200, ATI Radeon X2300HD, ATI Mobility Radeon HD 2300, ATI Radeon X1950, ATI Radeon X1900, ATI AMD Stream Processor, ATI RV560, ATI Mobility Radeon X1900, ATI Radeon X1950 GT, ATI RV570, ATI FireGL V7400, ATI Radeon 9100 PRO IGP, ATI Radeon Mobility 9200 IGP, ATI Radeon X1200, ATI RS740, ATI RS740M, ATI Radeon HD 2900 XT, ATI Radeon HD 2900 Pro, ATI Radeon HD 2900 GT, ATI FireGL V8650, ATI FireGL V8600, ATI FireGL V7600, ATI Radeon 4800 Series, ATI Radeon HD 4870 x2, ATI Radeon HD 4850 x2, ATI FirePro V8750 (FireGL), ATI FirePro V7760 (FireGL), ATI Mobility RADEON HD 4850, ATI Mobility RADEON HD 4850 X2, ATI FirePro RV770, AMD FireStream 9270, AMD FireStream 9250, ATI FirePro V8700 (FireGL), ATI Mobility RADEON HD 4870, ATI Mobility RADEON M98, ATI FirePro M7750, ATI M98, ATI Mobility Radeon HD 4650, ATI Radeon RV730 (AGP), ATI Mobility Radeon HD 4670, ATI FirePro M5750, ATI RV730XT [Radeon HD 4670], ATI RADEON E4600, ATI Radeon HD 4600 Series, ATI RV730 PRO [Radeon HD 4650], ATI FirePro V7750 (FireGL), ATI FirePro V5700 (FireGL), ATI FirePro V3750 (FireGL), ATI Mobility Radeon HD 4830, ATI Mobility Radeon HD 4850, ATI FirePro M7740, ATI RV740, ATI Radeon HD 4770, ATI Radeon HD 4700 Series, ATI RV610, ATI Radeon HD 2400 XT, ATI Radeon HD 2400 Pro, ATI Radeon HD 2400 PRO AGP, ATI FireGL V4000, ATI Radeon HD 2350, ATI Mobility Radeon HD 2400 XT, ATI Mobility Radeon HD 2400, ATI RADEON E2400, ATI FireMV 2260, ATI RV670, ATI Radeon HD3870, ATI Mobility Radeon HD 3850, ATI Radeon HD3850, ATI Mobility Radeon HD 3850 X2, ATI Mobility Radeon HD 3870, ATI Mobility Radeon HD 3870 X2, ATI Radeon HD3870 X2, ATI FireGL V7700, ATI Radeon HD3690, AMD Firestream 9170, ATI Radeon HD 4550, ATI Radeon RV710, ATI Radeon HD 4350, ATI Mobility Radeon 4300 Series, ATI Mobility Radeon 4500 Series, ATI FirePro RG220, ATI Mobility Radeon 4330, ATI RV630, ATI Mobility Radeon HD 2600, ATI Mobility Radeon HD 2600 XT, ATI Radeon HD 2600 XT AGP, ATI Radeon HD 2600 Pro AGP, ATI Radeon HD 2600 XT, ATI Radeon HD 2600 Pro, ATI Gemini RV630, ATI Gemini Mobility Radeon HD 2600 XT, ATI FireGL V5600, ATI FireGL V3600, ATI Radeon HD 2600 LE, ATI Mobility FireGL Graphics Processor, ATI Radeon HD 3470, ATI Mobility Radeon HD 3430, ATI Mobility Radeon HD 3400 Series, ATI Radeon HD 3450, ATI Radeon HD 3430, ATI FirePro V3700, ATI FireMV 2450, ATI Radeon HD 3600 Series, ATI Radeon HD 3650 AGP, ATI Radeon HD 3600 PRO, ATI Radeon HD 3600 XT, ATI Mobility Radeon HD 3650, ATI Mobility Radeon HD 3670, ATI Mobility FireGL V5700, ATI Mobility FireGL V5725, ATI Radeon HD 3200 Graphics, ATI Radeon 3100 Graphics, ATI Radeon HD 3300 Graphics, ATI Radeon 3000 Graphics, SUMO, SUMO2, ATI Radeon HD 4200, ATI Radeon 4100, ATI Mobility Radeon HD 4200, ATI Mobility Radeon 4100, ATI Radeon HD 4290, ATI Radeon HD 4250, AMD Radeon HD 6310 Graphics, AMD Radeon HD 6250 Graphics, AMD Radeon HD 6300 Series Graphics, AMD Radeon HD 6200 Series Graphics, PALM, CYPRESS, ATI FirePro (FireGL) Graphics Adapter, AMD Firestream 9370, AMD Firestream 9350, ATI Radeon HD 5800 Series, ATI Radeon HD 5900 Series, ATI Mobility Radeon HD 5800 Series, ATI Radeon HD 5700 Series, ATI Radeon HD 6700 Series, ATI Mobility Radeon HD 5000 Series, ATI Mobility Radeon HD 5570, ATI Radeon HD 5670, ATI Radeon HD 5570, ATI Radeon HD 5500 Series, REDWOOD, ATI Mobility Radeon Graphics, CEDAR, ATI FirePro 2270, ATI Radeon HD 5450, CAYMAN, AMD Radeon HD 6900 Series, AMD Radeon HD 6900M Series, Mobility Radeon HD 6000 Series, BARTS, AMD Radeon HD 6800 Series, AMD Radeon HD 6700 Series, TURKS, CAICOS, ARUBA, TAHITI, PITCAIRN, VERDE, OLAND, HAINAN, BONAIRE, KABINI, MULLINS, KAVERI, HAWAII [648197.647] (II) modesetting: Driver for Modesetting Kernel Drivers: kms [648197.647] (II) FBDEV: driver for framebuffer: fbdev [648197.647] (II) VESA: driver for VESA chipsets: vesa [648197.647] (EE) Fatal server error: [648197.647] (EE) parse_vt_settings: Cannot open /dev/tty0 (Permission denied) [648197.647] (EE) [648197.647] (EE) Please consult the The X.Org Foundation support at http://wiki.x.org for help. [648197.647] (EE) Please also check the log file at ".xorgxrdp.10.log" for additional information. [648197.647] (EE) [648197.647] (WW) xf86CloseConsole: KDSETMODE failed: Bad file descriptor [648197.647] (WW) xf86CloseConsole: VT_GETMODE failed: Bad file descriptor [648197.648] (EE) Server terminated with error (1). Closing log file.
It looks to me like the xorgxrdp module isn't installed, or is installed incorrectly. This is causing the startup of Xorg to fail.
Have you installed xrdp from a PPA, or are you using the distro version?
For the distro version (0.9.5-2), I think the following applies:-
xordgxrdp-hwe-18.04
installed.xorgxrdp
installed.If you're running from a PPA you may need to go back to the PPA developer for help.
Please post the output of the following commands so we can see what the situation is.
lsb_release -d
dpkg -l | grep xrdp
apt show xrdp
Thanks.
Output: lsb_release -d Description: Ubuntu 18.04.4 LTS
Output: dpkg -l | grep xrdp
~$ dpkg -l | grep xrdp rc xorgxrdp 1:0.2.9-1ppa1 amd64 Remote Desktop Protocol (RDP) modules for X.org rc xorgxrdp-hwe-18.04 0.9.5-2~18.04.1 amd64 Remote Desktop Protocol (RDP) modules for X.org ii xrdp 0.9.9-1ppa1 amd64 Remote Desktop Protocol (RDP) server
Output: apt show xrdp
apt show xrdp Package: xrdp Version: 0.9.9-1ppa1 Priority: optional Section: net Maintainer: Debian Remote Maintainers <debian-remote@lists.debian.org> Installed-Size: 2,889 kB Depends: adduser, lsb-base (>= 3.0-6), ssl-cert, libc6 (>= 2.15), libfuse2 (>= 2.6), libjpeg8 (>= 8c), libopus0 (>= 1.1), libpam0g (>= 0.99.7.1), libssl1.1 (>= 1.1.0), libx11-6, libxfixes3, libxrandr2 Recommends: fuse, xorgxrdp Suggests: guacamole, xrdp-pulseaudio-installer Download-Size: 435 kB APT-Manual-Installed: yes APT-Sources: http://ppa.launchpad.net/martinx/xrdp-next/ubuntu bionic/main amd64 Packages Description: Remote Desktop Protocol (RDP) server xrdp offers a graphical login to a remote client using RDP (the Remote Desktop Protocol). xrdp can connect to a locally created X.org session with the xorgxrdp drivers, to a VNC X11 server, and forward to another RDP server.
xrdp accepts connections from freerdp, rdesktop, and the built-in terminal server / remote desktop clients of Microsoft Windows operating systems. In the xorgxrdp (which replaces X11RDP) and VNC modes, it provides a fully functional Linux terminal server, offering an X-Window desktop to the user. In the RDP or VNC forwarding mode, any sort of desktop can be used. N: There are 2 additional records. Please use the '-a' switch to see them.
Thanks for your cooperative reply
Well it looks like you've got a collision between the xorgxrdp-hwe-18.04
version from the base install and the xorgxrdp
version from a PPA. I'll assume you want to continue with the PPA, but I don't know anything about it.
Try the following to remove all xorgxrdp
instances and just install the PPA one:-
sudo dpkg --purge xorgxrdp xorgxrdp-hwe-18.04
sudo apt install xorgxrdp
Then the dpkg -l | grep xorg
command should show you:-
dpkg -l | grep xrdp
ii xorgxrdp 1:0.2.9-1ppa1 amd64 Remote Desktop Protocol (RDP) modules for X.org
ii xrdp 0.9.9-1ppa1 amd64 Remote Desktop Protocol (RDP) server
If we can get there we might be in with a chance of working.
Thanks for your reply.
Actually, i don`t have any preference to use xorgxrdp or xorgxrdp-hwe-18.04.
So, I need your suggestion to use any of these having full functionality similar to the previous one.
Kindly suggest, how can i do that?
As I am trying to install xorgxrdp, it is asking for dependency. Check the following command line output attached here.
sudo apt install xorgxrdp Reading package lists... Done Building dependency tree
Reading state information... Done Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming.The following information may help to resolve the situation:
The following packages have unmet dependencies: xorgxrdp : Depends: xorg-video-abi-24 Depends: xserver-xorg-core-hwe-18.04 (>= 2:1.18.99.901) but it is not going to be installed E: Unable to correct problems, you have held broken packages.
We can try one more thing before we give up on the PPA.
When you install the xrdp-next PPA it tells you to create the file /etc/apt/preferences.d/xorgxrdp
. I suspect you haven't done that.
If you want to continue with the PPA, create a file /etc/apt/preferences.d/xorgxrdp
with the following contents:-
Package: xorgxrdp
Pin: release o=LP-PPA-martinx-xrdp-next
Pin-Priority: 700
Then these commands might give you a working configuration:-
sudo dpkg --purge xorgxrdp-hwe-18.04
sudo apt update
sudo apt install xorgxrdp
If that doesn't work, I suggest you roll back the PPA and install the XRDP from the main Ubuntu repositories.
The following commands should remove all traces of martinx PPAs from the system and re-install xrdp and xorgxrdp from the main repository. This will get us to a known state. The lines starting with '#' are just comments so you can see what is happening.
# Remove PPA definitions and update cache
sudo rm -f /etc/apt/sources.list.d/martinx-ubuntu-*.list
sudo rm -f /etc/apt/trusted.gpg.d/martinx_ubuntu*.gpg
sudo rm -f /etc/apt/preferences.d/*xrdp*
sudo apt update
# Remove any XRDP-related packages
sudo dpkg --purge xrdp xorgxrdp xorgxrdp-hwe-18.04
# Install xrdp from the Ubuntu repo
sudo apt install -y xrdp xorgxrdp-hwe-18.04
# Enable TLS security
sudo adduser xrdp ssl-cert
sudo systemctl restart xrdp
When you've done that, the output of dpkg -l | grep xrdp
should look like this:-
ii xorgxrdp-hwe-18.04 0.9.5-2~18.04.1 amd64 Remote Desktop Protocol (RDP) modules for X.org
ii xrdp 0.9.5-2 amd64 Remote Desktop Protocol (RDP) server
And hopefully you'll be able to log in.
Let us know how it goes.
Thanks for your reply,
The first Method could not work for me.
The second method partially works. but have some errors.
It shows more xorgxrdp as per your instruction.
Second problem:
It is asking for authentication for password for two times.
After entering the credentials, RDP closes each time.
I am having 6 users in the system, but only 1 or 2 users are allowed to get to the Authentication page. Rest were stuck to blank blue screen.
That's progress - good news.
The errors are fine on the output of dpkg -l | grep xrdp
. They are showing that there are still config files around from the xorgxrdp package installation, but they shouldn't be causing any problems.
I'm a bit pressed for time at the moment, but I can point you in the direction of Griffon's excellent blog where he talks about this:-
http://c-nergy.be/blog/?p=12043.
For Ubuntu 18.04 you'll need to create a pkla file. I'll requote the blog for you. The file you need to create is called /etc/polkit-1/localauthority/50-local.d/45-allow-colord.pkla
and has the following contents :-
[Allow Colord all Users]
Identity=unix-user:*
Action=org.freedesktop.color-manager.create-device;org.freedesktop.color-manager.create-profile;org.freedesktop.color-manager.delete-device;org.freedesktop.color-manager.delete-profile;org.freedesktop.color-manager.modify-device;org.freedesktop.color-manager.modify-profile
ResultAny=no
ResultInactive=no
ResultActive=yes
I haven't tested this myself, but I have no reason to think it won't work. Please let me know if it does.
Incidentally, this solution will not work for later Ubuntu versions.
The blog is worth reading I think as it talks about polkit, and how remote sessions (i.e. XRDP) can differ from local ones (i.e. on the console).
When you log in to a session, the system creates a file ~/.xsession-errors
for the user. If you have some users working and some not it's worth looking in these files for errors or differences. Also:-
~/.xsession
files to select sessions which don't exist this will cause problems.The blue screens in this case probably indicate the session is finishing very quickly, or not starting. As a result the X server is killed and the XRDP process hangs on a blue screen trying to connect to it.
I hope that's useful. If you're still stuck, please post a ~/.xsession-errors
file for a user that can't log in.
Environment:
074cfde
fde94a3
Blank screen after login from Windows 10 (after select
Xorg
and input name/password)xrdp-sesman.log
xrdp.log
.xorgxrdp.10.log