Linux有自己的用户群,即使数量不多,但它就在那里,如果你正在使用它,并且一直想在其上运行Windows应用程序,那么Github上最近的应用程序——WinApps——带来了很多承诺。该软件以Microsoft Office应用程序和Adobe 应用程序(Adobe Apps)感觉原生的方式实现,但请记住它仍然是虚拟化的。除此之外,该软件还支持 IE、Explorer、Powershell、Visual Studio和Windows Full RDP。
WinApps 是如何工作的?
这是一个巧妙的技巧,并且实施得很好。您需要在Linux的虚拟机上安装Windows,然后安装支持的应用程序,如Office、Adobe等。完成后,您必须配置Windows用户的用户名和密码并通过RDP连接。还有几个步骤,完成后,您将能够访问应用程序,而不是原生地通过 VM。这是一个快速演示
您可以搜索文件和程序,然后单击将其打开。
如何在 Linux 上安装 Office
首先,从Github.com下载(Github.com)WinApps。完成后,请按照下列步骤操作:
1]创建WinApps(Creating WinApps)配置文件
此配置文件将保存RDP用户名和密码,以连接在虚拟机上运行的Windows 。这是配置文件中的详细信息的位置:
地点:
~/.config/winapps/winapps.config
配置文件:
RDP_USER="MyWinUserName"
RDP_PASS="MyWinPassword"
#RDP_DOMAIN="MYDOMAIN"
#RDP_IP="192.168.123.111"
#RDP_SCALE=100
#MULTIMON="true"
#DEBUG="true"
您可以根据您在Linux上的配置设置的需要更改这些。
2]克隆 WinApps(Clone WinApps) git repo 并安装KVM和RDP
sudo apt-get install -y freerdp2-x11
git clone https://github.com/Fmstrat/winapps.git
cd winapps
3]设置你的Windows VM
如果您已经有RDP服务器或虚拟机,您可以跳到第 4 节,但如果您没有,我建议您查看所有可以在其中使用的命令。
4]配置Windows VM
下一步涉及合并Windows VM中的注册表,以便可以打开应用程序。如果您使用KVM允许WinApps检测本地 IP,您还必须将 PC 名称重命名为 RDPWindows。
按(Press)Windows键,然后在搜索框中键入关于(ABOUT)。当该部分显示时,单击它以打开“关于(About)”部分。您还可以转到Windows 10 设置(Settings)( Win + I),然后导航到System > About。单击(Click)重命名(Rename)此 PC 按钮以更改名称。
在“系统(System)”部分中,单击“远程桌面(Remote Desktop)”,然后打开“启用远程桌面(Enable Remote Desktop)”选项。
最后,合并kvm/RDPApps.reg
到注册表以启用RDP 应用程序(RDP Applications)
5]使用快捷方式和文件关联Connect GNOME/KDE
最后,使用以下命令检查FreeRDP 是否可以连接:(FreeRDP)
bin/winapps check
FreeRDP将输出,然后提示您需要接受证书以添加到受信任的源。接下来(Next),您应该会看到一个Windows 资源管理器(Windows Explorer)窗口。这确认已建立连接。关闭(Close)并取消FreeRDP输出
6]运行安装程序
然后最后一步是运行安装程序:
$ ./installer.sh --user
Removing any old configurations...
Installing...
Checking for installed apps in RDP machine (this may take a while)... Finished.
Configuring Excel... Finished.
Configuring PowerPoint... Finished.
Configuring Word... Finished.
Configuring Windows... Finished.
Installation complete.
目前,支持以下应用程序:(Currently, the following apps are supported:)
- Adobe Acrobat Pro
- Adobe After Effects
- Adobe 试镜
- 土坯桥
- Adobe 创意云
- Adobe 插画家
- Adobe InDesign
- Adobe Lightroom
- Adobe Photoshop
- Adobe Premiere Pro
- 命令提示符
- Windows资源管理器
- IE浏览器
- 微软访问
- 微软Excel
- 微软Word
- 微软 OneNote
- 微软展望
- 微软PowerPoint
- 微软项目
- 微软出版商
- 微软
- 电源外壳
- 视觉工作室
- 视窗操作系统。
这是新的吗?感觉不像,但实现更好。此外,它与WSL(WSL)非常不同。由于它是通过 VM 完成的,因此会有开销并且会消耗额外的资源。这是你必须牢记的。因此,除非您想要这样的东西,否则最好使用 VirtualBox 的无缝模式或 VMware 的Unity 模式。
How to Install Office on Linux using WinApps
Linux has its own user base even if not by much, it’s there, and if you are using it, and always wanted to run Windows applications on it, then the recent application on Github — WinApps — brings a lot of promises. The software implements in such a way that Microsoft Office apps and Adobe Apps feel native, but do remember it is still virtualized. Along with it, the software also supports IE, Explorer, Powershell, Visual Studio, and Windows Full RDP.
How does WinApps work?
It’s a neat trick, and it’s well implemented. You will need to install Windows on a Virtual Machine in Linux and then install the supported applications like Office, Adobe, etc. That done, you will have to configure the username and password of the Windows user and connect through RDP. There are a few more steps, and when done that, you will be able to access the applications instead of going through the VM natively. Here is a quick demo
You can search for files and programs and then click to open it.
How to Install Office on Linux
First, download WinApps from Github.com. Having done that, follow these steps:
1] Creating WinApps configuration file
This configuration file will hold the RDP username and password to connect with Windows running on a virtual machine. Here is the location followed by details in the configuration file:
Location:
~/.config/winapps/winapps.config
Configuration File:
RDP_USER="MyWinUserName"
RDP_PASS="MyWinPassword"
#RDP_DOMAIN="MYDOMAIN"
#RDP_IP="192.168.123.111"
#RDP_SCALE=100
#MULTIMON="true"
#DEBUG="true"
You can change these as required by the configuration setup you have on the Linux.
2] Clone WinApps git repo and install KVM and RDP
sudo apt-get install -y freerdp2-x11
git clone https://github.com/Fmstrat/winapps.git
cd winapps
3] Setting up your Windows VM
If you already have an RDP server or a VM, you can skip to section 4, but if you don’t, I suggest you look at all the commands you can use there.
4] Configuring Windows VM
The next step involves merging a registry in the Windows VM so the applications can be opened. You will also have to rename the PC name to RDPWindows if you are using KVM to allow WinApps to detect the local IP.
Press the Windows key, and type ABOUT in the search box. When the section shows up, click on it to open the About section. You can also go to Windows 10 Settings (Win + I) and then navigate to System > About. Click on the Rename this PC button to change the name.
In the System section, click on Remote Desktop, and then toggle on the Enable Remote Desktop option.
Lastly, merge kvm/RDPApps.reg
into the registry to enable RDP Applications
5] Connect GNOME/KDE to your Windows VM with shortcuts and file associations
Lastly, check that FreeRDP can connect with using the command:
bin/winapps check
There will be output from FreeRDP, followed by a prompt that you need to accept a certificate to add to a trusted source. Next, you should see a Windows Explorer window. This confirms that the connection is made. Close and cancel the FreeRDP output
6] Run the installer
Then the final step is to run the installer:
$ ./installer.sh --user
Removing any old configurations...
Installing...
Checking for installed apps in RDP machine (this may take a while)... Finished.
Configuring Excel... Finished.
Configuring PowerPoint... Finished.
Configuring Word... Finished.
Configuring Windows... Finished.
Installation complete.
Currently, the following apps are supported:
- Adobe Acrobat Pro
- Adobe After Effects
- Adobe Audition
- Adobe Bridge
- Adobe Creative Cloud
- Adobe Illustrator
- Adobe InDesign
- Adobe Lightroom
- Adobe Photoshop
- Adobe Premiere Pro
- Command Prompt
- Windows Explorer
- Internet Explorer
- Microsoft Access
- Microsoft Excel
- Microsoft Word
- Microsoft OneNote
- Microsoft Outlook
- Microsoft PowerPoint
- Microsoft Project
- Microsoft Publisher
- Microsoft
- Powershell
- Visual Studio
- Windows OS.
Is this new? It doesn’t feel like, but the implementation is better. Also, it is very different from WSL. Since it is done through VM, there are going to be overheads and will consume extra resources. That is something you will have to keep in mind. So unless you want something like this, you are better off with a VirtualBox’s Seamless Mode or VMware’s Unity Mode.