背景
本文的实例是apifox
其实这个软件是有linux
版的,
但是她的linux
版,deb, tar.gz,
甚至appimage
都试过,都不行,都报这个错误,
spawn module: /tmp/.mount_ApifoxPCAGoa/resources/app/dist/main/server.local.js
[271326:1005/113046.207217:FATAL:gpu_data_manager_impl_private.cc(415)] GPU process isn't usable. Goodbye.
zsh: illegal hardware instruction ./Apifox.AppImage
但我是安装了nvidia
驱动和cuda
的,
接下来准备在linux
上安装window
软件
正文
wine
sudo dpkg --add-architecture i386
sudo apt update
#sudo apt install wine64 wine32:i386
sudo apt install wine
常用命令
wine的命令:
wine安装软件(三种):
wine xxx.exe
./ xxx.exe
直接双击软件包
winecfg (wine的设置~)
wine taskmgr (任务管理器)
wine uninstaller (卸载软件)
wine regedit (注册表)
wine notepad (记事本)
wineboot ( 重启wine)
wine cmd
wineconsole xxx.bat(运行bat文件)
安装msi两种指令:
wine start xxx.msi
wine msiexec /i xxx.msi
中文:
simsun.ttc simsun.ttf
将这两个文件复制到~/.wine/drive_c/windows/Fonts
在当前目录下执行sudo vim zh.reg
粘贴下面内容
REGEDIT4
[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\FontSubstitutes]
"Arial"="simsun"
"Arial CE,238"="simsun"
"Arial CYR,204"="simsun"
"Arial Greek,161"="simsun"
"Arial TUR,162"="simsun"
"Courier New"="simsun"
"Courier New CE,238"="simsun"
"Courier New CYR,204"="simsun"
"Courier New Greek,161"="simsun"
"Courier New TUR,162"="simsun"
"FixedSys"="simsun"
"Helv"="simsun"
"Helvetica"="simsun"
"MS Sans Serif"="simsun"
"MS Shell Dlg"="simsun"
"MS Shell Dlg 2"="simsun"
"System"="simsun"
"Tahoma"="simsun"
"Times"="simsun"
"Times New Roman CE,238"="simsun"
"Times New Roman CYR,204"="simsun"
"Times New Roman Greek,161"="simsun"
"Times New Roman TUR,162"="simsun"
"Tms Rmn"="simsun"
在 当前目录下执行
regedit zh.reg
我用wine安装apifox
安装后运行会报错
spawn module: Z:\home\xiaosheng\software\winesoftware\apifox\install\resources\app\dist\main\server.local.js
04dc:err:combase:RoGetActivationFactory Failed to find library for L"Windows.UI.ViewManagement.UISettings"
0590:err:ole:com_get_class_object class {7ab36653-1796-484b-bdfa-e74f1db7c1dc} not registered
0590:err:ole:create_server class {7ab36653-1796-484b-bdfa-e74f1db7c1dc} not registered
0590:err:ole:com_get_class_object no class object {7ab36653-1796-484b-bdfa-e74f1db7c1dc} could be created for context 0x5
我从windows
电脑拷贝了一份含有报错函数的头文件夹(她报错library
, 我查了windows api
,并没有查到相关dll
)
wine
安装apifox
失败
flatpak
flatpak安装很简单
这里是链接
这里是debian flatpak仓库链接
sudo apt install flatpak
sudo apt install gnome-software-plugin-flatpak
flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
reboot
bottles
- 安装bottles
- 安装bottles
>flatpak install ------
flatpak install com.usebottles.bottles.flatpakref
记得要开代理,否则慢的要死
我这里是用proxychains
配合clash
开启代理
安装过程相对较快
安装完成之后不要着急打开bottles
用代理运行命令,启动的时候配置过程还要下载很多的东西
proxychains /usr/bin/flatpak run --branch=stable --arch=x86_64 --command=bottles --file-forwarding com.usebottles.bottles
经过漫长的等待之后,终于可以进入了
bottles安装exe软件也很简单
点击run executable,选择应用程序,安装后就可以启动了
目前只有这个可以运行,但是这个有一个问题, 在安装软件的时候不要自定义安装路径,选择为所有用户安装,
如果自己选择的话,会出现bottles
无法识别的情况, (我踩坑了好久)
虚拟机
vmware
sudo chmod +x VMware-Workstation-Full-16.2.4-20089737.x86_64
sudo ./VMware-Workstation-Full-16.2.4-20089737.x86_64
卸载
sudo vmware-installer -u vmware-workstation
virtualbox
我试过vmware ,启动会报错,查过日志是一个.ko编译错误,索性不去纠结了,换virtualbox
这里是官网
我是kali系统,属于Debian分支,我下载debian的
安装过程报错就
sudo apt install -f
我下载了一个ubuntu server
作为测试,
waydroid 运行apk
用这个东西可以在Linux上运行android apk!!!