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.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Only start VM when needed (KDE Plasma)

crieo opened this issue · comments

Hi,
so I'm new Github so excuse me for opening this as an issue but i didn't know where to put it.

So, i do not want to start the VM every time i boot my Kubuntu. Therefore, i wrote a little script and pinned that to the taskbar for starting the machine (prior to using word and Excel).

Why do that to begin with?
Running the VM all the time blocks some CPU and RAM. In case you primarily use your machine for calculations or gaming, continousily reserving resources might might not be the perfect solution. With this script, you can just start the machine as you need it. This script will work for GNOME as well, but as I don't know about pinning the apps there, I'm naming the topic specifically "KDE Plasma".

Below you can find the simple code. I know any advanced user will know this already but just in case...

  1. Open a file (for example on the desktop)
  2. paste the following:

#!/bin/bash

virsh start "RDPWindows"

  1. save as XYZ.sh
  2. right-click on the file, properties -> permissions -> tick "is executable"
  3. right-click again on the file, pin to task-manager (in KDE)
  4. Open "Virtual machine manager"
  5. open the machine, press on Info
    image
  6. Untick "boot when host starts"
    image
  7. Done!

Now, everytime you want to use Word or Excel, you have to start XYZ.sh first (which boots the machine).

Regards
Crieo