WINE 搭建常用工具

6970阅读 0评论2019-09-17 iibull
分类:其他平台

参考 https://blog.csdn.net/buildcourage/article/details/80871141
1. 通过WINE, 确认为32位系统, 安装 source insight 3.5 / MSOffice2007/网易云音乐.
2. 有些应用无法通过WINE安装, 通过scrcpy控制手机上的应用即可.  sudo snap install scrcpy

/snap/bin/scrcpy   ### USB 连接.

Wi-Fi 连接方式

注意,要使用 Wi-Fi,仍然需要每次先用 USB 连接手机一次,实用性还不是特别高(本来就想在忘记带手机线的情况下的)。
 其实就是启用 android 手机端的 adbd的 TCP功能.
1. USB 连接手机.  确认手机的IP: 192.168.43.106
2. ubuntu 端执行 adb tcpip 5555; adb connect  192.168.43.106:5555
3. 拔下手机, 然后正常运行 scrcpy
4. 
要切换回USB模式:ubuntu执行 adb usb



安装wine

点击(此处)折叠或打开

  1. sudo dpkg --add-architecture i386
  2. wget -nc https://dl.winehq.org/wine-builds/winehq.key
  3. sudo apt-key add winehq.key
  4. sudo apt-add-repository https://dl.winehq.org/wine-builds/ubuntu/
  5. sudo apt-get install --install-recommends winehq-stable

  6. sudo rm /usr/share/applications/wine.desktop

点击(此处)折叠或打开

  1. sudo apt install winetricks
  2. winetricks 安装字体 wqy

  3. 编辑 font.reg 文件.

  4. REGEDIT4
  5.  
  6. [HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\FontLink\SystemLink]
  7. "Lucida Sans Unicode"="wqy-microhei.ttc"
  8. "Microsoft Sans Serif"="wqy-microhei.ttc"
  9. "Tahoma"="wqy-microhei.ttc"
  10. "Tahoma Bold"="wqy-microhei.ttc"
  11. "SimSun"="wqy-microhei.ttc"
  12. "Arial"="wqy-microhei.ttc"
  13. "Arial Black"="wqy-microhei.ttc"

  14. 然后执行 wine regedit font.reg

wine 区分 32 / 64位

点击(此处)折叠或打开

  1. WINEARCH=win32 WINEPREFIX=~/.win32 winetricks corefonts vcrun6 mfc40u #建立32位的运行环境
安装的一些东西需要运行是, 最好使用desktop

点击(此处)折叠或打开

  1. [Desktop Entry]
  2. Name=腾讯QQ
  3. Type=Application
  4. StartupNotify=true
  5. Icon=QQ
  6. Exec=env WINEPREFIX=/home/wayne/.win32 LANG=zh_CN LC_ALL=zh_CN.UTF-8 wine C:\\Program\ Files/Tencent/QQ/Bin/QQ.exe  ### 设置运行环境很重要
也可以把 WINEARCH  WINEPREFIX 放到环境变量里边.


上一篇:BLE操作在Linux下的操作
下一篇:Ubuntu 整理软件开发平台 - tmux 使用