secana / EnhancedSessionMode

Contains scripts to enable "Hyper-V Enhanced Session Mode" for Linux
Apache License 2.0
81 stars 14 forks source link

Fedora 31 support #8

Closed vladp closed 4 years ago

vladp commented 5 years ago

I have tried just changing install script from the line dnf download --source xrdp-0.9.9-2.fc30 to dnf download --source xrdp-0.9.9-2.fc31

But it says package not found. I also tried to use the old rpm (for Fedora 30) that was built when I had Fedora 30, and install it on Fedora 31, but it errors out with a conflict that xrdp-selinux is not of the expected version (that's because when the source RPM package from which xrdp was built, had an older xrdp-selinux in the package spec).

So at the moment, my recommendation is not to upgrade for Fedora 31, as the Hyper-V enabled xrdp would not work (it also had to be explicitly de-installed prior to Fedora 30 to 31 upgrade due to broken dependency on xrdp-selinux)

I do not know how to fix at the moment, so may be @secana could suggest what to look for. If I find how to get it to work, will post here.

gitsparky commented 4 years ago

Should be resolved by PR #9 that was merged a little while ago. Can you confirm it works for you?

vladp commented 4 years ago

hello, thank you for this. I tried the 31 script on Fedora 32. And it worked.

Here is the log of the install

[v@localhost-live EnhancedSessionMode]$ sudo ./install_esm_fedora31.sh 
[sudo] password for v: 
Last metadata expiration check: 0:55:37 ago on Mon 25 May 2020 01:17:19 PM EDT.
Dependencies resolved.
================================================================================
 Package             Architecture  Version                 Repository      Size
================================================================================
Installing:
 xrdp                x86_64        1:0.9.13-2.fc32         updates        438 k
Installing weak dependencies:
 xrdp-selinux        x86_64        1:0.9.13-2.fc32         updates         12 k

Transaction Summary
================================================================================
Install  2 Packages

Total download size: 450 k
Installed size: 2.2 M
Downloading Packages:
(1/2): xrdp-selinux-0.9.13-2.fc32.x86_64.rpm     96 kB/s |  12 kB     00:00    
(2/2): xrdp-0.9.13-2.fc32.x86_64.rpm            1.2 MB/s | 438 kB     00:00    
--------------------------------------------------------------------------------
Total                                           489 kB/s | 450 kB     00:00     
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                                        1/1 
  Installing       : xrdp-selinux-1:0.9.13-2.fc32.x86_64                    1/2 
  Running scriptlet: xrdp-selinux-1:0.9.13-2.fc32.x86_64                    1/2 
  Installing       : xrdp-1:0.9.13-2.fc32.x86_64                            2/2 
  Running scriptlet: xrdp-1:0.9.13-2.fc32.x86_64                            2/2 
  Verifying        : xrdp-1:0.9.13-2.fc32.x86_64                            1/2 
  Verifying        : xrdp-selinux-1:0.9.13-2.fc32.x86_64                    2/2 

Installed:
  xrdp-1:0.9.13-2.fc32.x86_64        xrdp-selinux-1:0.9.13-2.fc32.x86_64       

Complete!
Created symlink /etc/systemd/system/multi-user.target.wants/xrdp.service → /usr/lib/systemd/system/xrdp.service.
cat: /etc/X11/Xwrapper.config: No such file or directory
[v@localhost-live EnhancedSessionMode]$ 

It could not find Xwrapper.config, but I am guessing this was not critical.