• Stars
    star
    8,434
  • Rank 4,348 (Top 0.09 %)
  • Language
    Shell
  • Created about 4 years ago
  • Updated 3 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

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.

WinApps for Linux

Looking for maintainers, see: #269

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 for right clicking on files of specific mime types to open them.

Proud to have made the top spot on r/linux on launch day.

How it works

WinApps was created as an easy, one command way to include apps running inside a VM (or on any RDP server) directly into GNOME as if they were native applications. WinApps works by:

  • Running a Windows RDP server in a background VM container
  • Checking the RDP server for installed applications such as Microsoft Office
  • If those programs are installed, it creates shortcuts leveraging FreeRDP for both the CLI and the GNOME tray
  • Files in your home directory are accessible via the \\tsclient\home mount inside the VM
  • You can right click on any files in your home directory to open with an application, too

Currently supported applications

WinApps supports ANY installed application on your system.

It does this by:

  1. Scanning your system for offically configured applications (below)
  2. Scanning your system for any other EXE files with install records in the Windows Registry

Any officially configured applications will have support for high-resolution icons and mime types for automatically detecting what files can be opened by each application. Any other detected executable files will leverage the icons pulled from the EXE.

Note: The officially configured application list below is fueled by the community, and therefore some apps may be untested by the WinApps team.

Adobe Acrobat Pro
(X)
Adobe Acrobat Reader
(DC)
Adobe After Effects
(CC)
Adobe Audition
(CC)
Adobe Bridge
(CS6, CC)
Adobe Creative Cloud
(CC)
Adobe Illustrator
(CC)
Adobe InDesign
(CC)
Adobe Lightroom
(CC)
Adobe Photoshop
(CS6, CC)
Adobe Premiere Pro
(CC)
Command Prompt
(cmd.exe)
Explorer
(File Manager)
Internet Explorer
(11)
Microsoft Access
(2016, 2019, o365)
Microsoft Excel
(2016, 2019, o365)
Microsoft Word
(2016, 2019, o365)
Microsoft OneNote
(2016, 2019, o365)
Microsoft Outlook
(2016, 2019, o365)
Microsoft PowerPoint
(2016, 2019, o365)
Microsoft Project
(2016, 2019, o365)
Microsoft Publisher
(2016, 2019, o365)
Powershell
(Standard, Core)
Visual Studio
(2019 - Ent|Pro|Com)
Windows
(Full RDP session)
  

Installation

Step 1: Set up a Windows Virtual Machine

The best solution for running a VM as a subsystem for WinApps would be KVM. KVM is a CPU and memory-efficient virtualization engine bundled with most major Linux distributions. To set up the VM for WinApps, follow this guide:

If you already have a Virtual Machine or server you wish to use with WinApps, you will need to merge kvm/RDPApps.reg into the VM's Windows Registry. If this VM is in KVM and you want to use auto-IP detection, you will need to name the machine RDPWindows. Directions for both of these can be found in the guide linked above.

Step 2: Download the repo and prerequisites

To get things going, use:

sudo apt-get install -y freerdp2-x11
git clone https://github.com/Fmstrat/winapps.git
cd winapps

Step 3: Creating your WinApps configuration file

You will need to create a ~/.config/winapps/winapps.conf configuration file with the following information in it:

RDP_USER="MyWindowsUser"
RDP_PASS="MyWindowsPassword"
#RDP_DOMAIN="MYDOMAIN"
#RDP_IP="192.168.123.111"
#RDP_SCALE=100
#RDP_FLAGS=""
#MULTIMON="true"
#DEBUG="true"

The username and password should be a full user account and password, such as the one created when setting up Windows or a domain user. It cannot be a user/PIN combination as those are not valid for RDP access.

Options:

  • When using a pre-existing non-KVM RDP server, you can use the RDP_IP to specify it's location
  • If you are running a VM in KVM with NAT enabled, leave RDP_IP commented out and WinApps will auto-detect the right local IP
  • For domain users, you can uncomment and change RDP_DOMAIN
  • On high-resolution (UHD) displays, you can set RDP_SCALE to the scale you would like [100|140|160|180]
  • To add flags to the FreeRDP call, such as /audio-mode:1 to pass in a mic, use the RDP_FLAGS configuration option
  • For multi-monitor setups, you can try enabling MULTIMON, however if you get a black screen (FreeRDP bug) you will need to revert back
  • If you enable DEBUG, a log will be created on each application start in ~/.local/share/winapps/winapps.log

Step 4: Run the WinApps installer

Lastly, check that FreeRDP can connect with:

bin/winapps check

You will see output from FreeRDP, as well as potentially have to accept the initial certificate. After that, a Windows Explorer window should pop up. You can close this window and press Ctrl-C to cancel out of FreeRDP.

If this step fails, try restarting the VM, or your problem could be related to:

  • You need to accept the security cert the first time you connect (with 'check')
  • Not enabling RDP in the Windows VM
  • Not being able to connect to the IP of the VM
  • Incorrect user credentials in ~/.config/winapps/winapps.conf
  • Not merging install/RDPApps.reg into the VM

Then the final step is to run the installer which will prompt you for a system or user install:

./installer.sh

This will take you through the following process:

Adding pre-defined applications

Adding applications with custom icons and mime types to the installer is easy. Simply copy one of the application configurations in the apps folder, and:

  • Edit the variables for the application
  • Replace the icon.svg with an SVG for the application (appropriately licensed)
  • Re-run the installer
  • Submit a Pull Request to add it to WinApps officially

When running the installer, it will check for if any configured apps are installed, and if they are it will create the appropriate shortcuts on the host OS.

Running applications manually

WinApps offers a manual mode for running applications that are not configured. This is completed with the manual flag. Executables that are in the path do not require full path definition.

./bin/winapps manual "C:\my\directory\executableNotInPath.exe"
./bin/winapps manual executableInPath.exe

Checking for new application support

The installer can be run multiple times, so simply run the below again and it will remove any current installations and update for the latest applications.

./installer.sh

Optional installer command line arguments

The following optional commands can be used to manage your application configurations without prompts:

./installer.sh --user                # Configure applications for the current user
./installer.sh --system              # Configure applications for the entire system
./installer.sh --user --uninstall    # Remove all configured applications for the current user
./installer.sh --system --uninstall  # Remove all configured applications for the entire system

Common issues

  • Black window: This is a FreeRDP bug that sometimes comes up. Try restarting the application or rerunning the command. If that doesn't work, ensure you have MULTIMON disabled.

Shout outs

More Repositories

1

diy-ipmi

A DIY IPMI / IP KVM system utilizing the Raspberry Pi
CSS
898
star
2

wintile

Windows 10 window tiling for GNOME
JavaScript
424
star
3

samba-domain

Samba Active Directory Domain Controller for Docker
Shell
262
star
4

ownnote

Notes app for ownCloud
PHP
168
star
5

plex-db-sync

Synchronizes the database watched status between two Plex servers. This includes watched times, and works for all users on the system without the need for tokens.
Shell
151
star
6

odm

ODM: Open Device Manager for Android
Java
111
star
7

loffice-365

An electron wrapped Office 365 application integrated into your file manager as if it was a native application.
Shell
91
star
8

lcs

Lemmy Community Seeder (LCS)
JavaScript
70
star
9

gam

GitHub Application Manager
Shell
69
star
10

easywildcard

A single-command docker container that makes it easy for anyone to utilize a wildcard SSL certificate from Let's Encrypt.
Shell
55
star
11

plex-cluster

Synchronizes the watched and timeline status between any number of Plex servers all using standard Plex APIs.
JavaScript
53
star
12

odm-web

ODM: Open Device Manager for Android - Web Interface
PHP
49
star
13

glassit-linux

Adds transparency to VSCode in Linux.
JavaScript
39
star
14

plex-ssl

A guide to using NGINX to secure Plex via SSL
Shell
39
star
15

shorten

A URL Shortening and Privacy Tool for ownCloud
PHP
30
star
16

youtube-dl-api

A server application with bookmarklet that allows you to tell a server to download videos.
Python
29
star
17

ffmkv

A bash wrapper for FFMPEG with an Inquirer menu interface and progress monitoring.
Shell
25
star
18

ultimatebackup

A backup script for Linux that can back up an entire system, including KVMs, and then break it up into pieces to be backed up onto multiple external hard drives.
Shell
23
star
19

server-monitor

Checks if ips:ports are up and running.
Python
20
star
20

pushover-desktop

An electron wrapped Pushover.net desktop application.
Shell
20
star
21

lpp

Lemmy Post Purger (LPP)
JavaScript
20
star
22

sshtunnel

Docker SSH Tunnel
Shell
11
star
23

webbian

A web accessible Virtual Machine powered by Docker, Debian, and noVNC.
Shell
11
star
24

traccar-notifier

A node app/docker container to enable push notifications from Traccar to multple platforms.
Pug
11
star
25

google-voice

An electron wrapped Google Voice application with light and dark themes.
JavaScript
9
star
26

spcs

SPCS, or Simple PHP Content Server, is a PHP based content server that reads directly from the Calibre metadata.db file.
PHP
8
star
27

agriget

A Feedly styled RSS reader with TT-RSS functionality.
PHP
8
star
28

lds

Lemmy Defederation Sync (LDS)
JavaScript
6
star
29

plex-sync

Docker container for plex-sync that allows you to synchronize remote servers across the internet via SSL with dynamic DNS hostnames.
Shell
5
star
30

User-Profiles-for-iPad

From http://nowsci.com
5
star
31

dnsexit

DNSExit dynamic IP client for Docker
Shell
5
star
32

upload

An auto-uploader via SSH to a web URL for Linux, OSX, and WSL.
Shell
4
star
33

zcashd

A docker image for zcashd with Payment Disclosure and Tor.
Shell
4
star
34

cloudstomp

Automated deployment of instances on EC2 via plugin for high CPU/GPU applications at the lowest price.
Python
3
star
35

article-attachment

Tiny Tiny RSS Plugin to put the largest media attachment at the top of feed content.
PHP
3
star
36

agriget-docker

Docker container for Agriget, a Feedly styled RSS reader with TT-RSS functionality.
Dockerfile
3
star
37

nowgallery

A simple web-app gallery for desktops, iOS, and Android
PHP
3
star
38

page-check

Watches a web page and sends an email when a string is detected (or not).
JavaScript
3
star
39

message-archive

A web-based message archive viewer for Signal and Google Voice.
Python
3
star
40

selenium

Docker container for python selenium scripts with Firefox
Dockerfile
2
star
41

linux-gaming

Linux game guides
2
star
42

platform_vendor

Vendor files and extra for android
Shell
1
star
43

ownnote-mobile

Mobile app for ownNote
HTML
1
star
44

homegenie

Docker implementation of HomeGenie
Shell
1
star
45

kali-profiles

A profile and network manager for Kali VMs to keep client information encrypted and seperate on a single VM
Shell
1
star
46

docker-ttrss

Tiny Tiny RSS in Docker with LDAP and International Support.
Dockerfile
1
star
47

amico

Timesheet Management
1
star
48

cloudstomp-plugins

Plugins for Cloudstomp
Shell
1
star
49

owncloud-zips

Zip archives for apps.owncloud.org
1
star
50

temperate

A Material Design Weather Application
Java
1
star