Fmstrat / winapps

Run Windows apps such as Microsoft Office/Adobe in Linux (Ubuntu/Fedora) and GNOME/KDE as if they were a part of the native OS, including Nautilus integration.
8.58k stars 403 forks source link

Update RDPWindows.xml to support Arch out of the box #13

Open cradcore opened 3 years ago

cradcore commented 3 years ago
virsh define kvm/RDPWindows.xml

error: Failed to define domain from kvm/RDPWindows.xml
error: An error occurred, but the cause is unknown

I'm on Arch with libvirtd 6.5.0

jackforfaltu commented 3 years ago

I am having the same issue with Manjaro (using the same version of libvirtd 6.5.0). This also causes errors while running the install.sh script as the correct domain isn't even. Maybe it's a problem with Arch and its derivatives?

https://pastebin.com/qYzQt4ra A link of my current XML details for the VM if that helps.

tdaron commented 3 years ago

Same problem ! ( ArchLinux too )

tim-hm commented 3 years ago

Yep same here (again arch)

tdaron commented 3 years ago

We are cursed xD

tazihad commented 3 years ago

Facing the same problem.

waldaldo commented 3 years ago

Guys, I'm using Manjaro and runs perfect except for some overlap problems in Photoshop.

Try copying this file to your local config directory if you don't have it

cp /etc/libvirt/libvirt.conf ~/.config/libvirt/libvirt.conf

then uncomment this line

uri_default = "qemu:///system"

and all worked for me.

jackforfaltu commented 3 years ago

Guys, I'm using Manjaro and runs perfect except for some overlap problems in Photoshop.

Try copying this file to your local config directory if you don't have it

cp /etc/libvirt/libvirt.conf ~/.config/libvirt/libvirt.conf

then uncomment this line

uri_default = "qemu:///system"

and all worked for me.

Doesn't work for me (sadly).

EDIT: After some tinkering, I got it to work. I defined my own VM (not using the provided XML file), and after copying the config file as @waldaldo said, FreeRDP connected to the machine and loaded the apps from the VM (although it missed some like Word, gonna have to add them manually).

husten1997 commented 3 years ago

The RDPWindows.xml is very specific, so you are probably better of creating/defining your own VM. But here is how I got it to work on arch/manjaro (at least the definition of RDPWindows through the .xml file):

Disclaimer: I have never worked with kvm/virsh/etc, so if there is a better or smarter way, please feel free to correct me.

1) there was no file called /usr/bin/kvm-spice, seems to be a specific of the qemu-kvm package of Ubuntu. Therefore I removed the line <emulator>/usr/bin/kvm-spice</emulator>, virsh should use the default executable instead. 2) Regarding the line <type arch='x86_64' machine='pc-i440fx-bionic'>hvm</type>: there seems to be an other specific to Ubuntu, if you run the command virsh capabilities there is no entry called pc-i440fx-bionic => I ran virsh capabilities | grep i440fx- and used one of those, e.g. <type arch='x86_64' machine='pc-i440fx-5.1'>hvm</type>

Fmstrat commented 3 years ago

@jackforfaltu It missed Word? What happens if you run the installer again?

jackforfaltu commented 3 years ago

@jackforfaltu It missed Word? What happens if you run the installer again?

Wasn't working yesterday even after multiple runs of the installer, but today, after a reboot, it successfully added Word (unfortunately, it was added twice). The magic reboots can do is amazing...

$ ./install.sh
[sudo] password for mufaddal: 
Installing...
  Checking for installed apps in RDP machine... Finished.
  Configuring Cmd... Finished.
  Configuring Excel... Finished.
  Configuring Explorer... Finished.
  Configuring Internet Explorer... Finished.
  Configuring OneNote... Finished.
  Configuring PowerPoint... Finished.
  Configuring Powershell... Finished.
  Configuring Word... Finished.
  Configuring Word... Finished.
  Configuring Windows... Finished.
Installation complete.

Anyhow, I'm using the 32-bit version currently, and I'm thinking of uninstalling Office and installing the 64-bit, so I'm removing everything and gonna run winapps again to see what happens.

EDIT: Apparently, one of the Word applications that was added is the 365 version, that is a problem on my end I suspect, as I was tinkering with the info files from the apps folder yesterday.

Fmstrat commented 3 years ago

@jackforfaltu I'd recommend a pull, too. You're using the old installer that doesn't have as long of a wait to check for apps.

islonely commented 3 years ago

Following the information here and the information in the README.md, I get this error when running ./winapps. Anyone know what I did wrong?

./winapps: line 85: /home/<username>/winapps/bin/../apps//info: No such file or directory
fbartels commented 3 years ago

@is-lonely you are not supposed to call this specific script without an argument. To check if the connection works the readme suggests running it as bin/winapps check.

I have opened https://github.com/Fmstrat/winapps/pull/68 to add a check and prevent the bash error message in your case.

ghost commented 3 years ago

The RDPWindows.xml is very specific, so you are probably better of creating/defining your own VM. But here is how I got it to work on arch/manjaro (at least the definition of RDPWindows through the .xml file):

Disclaimer: I have never worked with kvm/virsh/etc, so if there is a better or smarter way, please feel free to correct me.

1. there was no file called `/usr/bin/kvm-spice`, seems to be a specific of the `qemu-kvm` package of Ubuntu. Therefore I removed the line `<emulator>/usr/bin/kvm-spice</emulator>`, virsh should use the default executable instead.

2. Regarding the line `<type arch='x86_64' machine='pc-i440fx-bionic'>hvm</type>`:
   there seems to be an other specific to Ubuntu, if you run the command `virsh capabilities` there is no entry called `pc-i440fx-bionic` => I ran `virsh capabilities | grep i440fx-` and used one of those, e.g. `<type arch='x86_64' machine='pc-i440fx-5.1'>hvm</type>`

I too use arch but by running this virsh capabilities | grep i440fx- I am not getting any result, what exactly am I supposed to enter as the machine?

ghost commented 3 years ago

Is it working on Arch + Wayland?

Xinayder commented 3 years ago

Just a FYI, if you don't have any machine output in virsh capabilities, you should install the qemu package, at least on Arch-based distros.