前言:
繼上午Ubuntu卡死在不能加載2個磁盤,進不了桌面系統后,想看看問題點出在哪,不然時不時一上午的也很費盡,破案了,VMware workstation 崩了導致進步了桌面系統,應該是著急關機沒有預先關虛擬機直接關了ubuntu,


方案一、VMware workstation
1.卸載
卸載VMware workstation15.1
sudo vmware-installer -u vmware-workstation
2.安裝
下載地址:https://www.vmware.com/products/workstation-pro/workstation-pro-evaluation.html選擇linux版本
chmod +x VMware-Workstation-Full-14.1.3-9474260.x86_64.bundle
sudo ./VMware-Workstation-Full-14.1.3-9474260.x86_64.bundle
安裝既可以了,
許可證好像不允許發布在博客了,自己百度一個都可以用,
3、win7-iso
系統之家下載,
4、VMware 安裝win7
創建虛擬機

創建很簡單一路默認
給下個人的win7配置引數
4GB記憶體
50GB 硬碟存盤
方案二:deepin-wine-for-ubuntu
wine32安裝微信、QQ
1、安裝wine
#!/bin/bash
mkdir ./deepintemp
cd ./deepintemp
wget http://mirrors.aliyun.com/deepin/pool/non-free/d/deepin-wine/deepin-wine_2.18-22~rc0_all.deb
wget http://mirrors.aliyun.com/deepin/pool/non-free/d/deepin-wine/deepin-wine32_2.18-22~rc0_i386.deb
wget http://mirrors.aliyun.com/deepin/pool/non-free/d/deepin-wine/deepin-wine32-preloader_2.18-22~rc0_i386.deb
wget http://mirrors.aliyun.com/deepin/pool/non-free/d/deepin-wine-helper/deepin-wine-helper_1.2deepin8_i386.deb
wget http://mirrors.aliyun.com/deepin/pool/non-free/d/deepin-wine-plugin/deepin-wine-plugin_1.0deepin2_amd64.deb
wget http://mirrors.aliyun.com/deepin/pool/non-free/d/deepin-wine-plugin-virtual/deepin-wine-plugin-virtual_1.0deepin3_all.deb
wget http://mirrors.aliyun.com/deepin/pool/non-free/d/deepin-wine-uninstaller/deepin-wine-uninstaller_0.1deepin2_i386.deb
wget http://mirrors.aliyun.com/deepin/pool/non-free/u/udis86/udis86_1.72-2_i386.deb
wget http://mirrors.aliyun.com/deepin/pool/non-free/d/deepin-wine/deepin-fonts-wine_2.18-22~rc0_all.deb
wget http://mirrors.aliyun.com/deepin/pool/non-free/d/deepin-wine/deepin-libwine_2.18-22~rc0_i386.deb
wget https://mirrors.aliyun.com/deepin/pool/main/libj/libjpeg-turbo/libjpeg62-turbo_1.5.1-2_amd64.deb --no-check-certificate
wget https://mirrors.aliyun.com/deepin/pool/main/libj/libjpeg-turbo/libjpeg62-turbo_1.5.1-2_i386.deb --no-check-certificate
echo '準備添加32位支持'
sudo dpkg --add-architecture i386
echo '添加成功,準備重繪apt快取資訊...'
sudo apt update
echo '即將開始安裝...'
sudo dpkg -i *.deb
echo '安裝完成,正在自動安裝依賴...'
sudo apt install -fy
rm -vfr ./deepintemp
運行完不出現任何報錯就是成功了
2、安裝微信
微信安裝包:https://mirrors.aliyun.com/deepin/pool/non-free/d/deepin.com.wechat/選擇最新的版本
sudo dpkg -i deepin.com.wechat_2.6.8.65deepin0_i386.deb
3、微信中文亂碼問題
登陸的時候會有中文亂碼
-
修改 run.sh 和 run_v2.sh 檔案(操作都是一樣的)
cd /opt/deepinwine/tools路徑下
vim run.shrun.sh 和 run_v2.sh
修改 WINE_CMD,并添加三個 export 陳述句,內容如下
#WINE_CMD="deepin-wine" WINE_CMD="LC_ALL=zh_CN.UTF-8 deepin-wine" #added by user export GTK_IM_MODULE="ibus" export QT_IM_MODULE="ibus" export XMODIFIERS="@im=ibus" -
添加字體檔案支持
1.下載字體msyh.ttc
https://www.lanzous.com/i5wivmd
解壓之后復制到字體庫
cp msyh.ttc ~/.deepinwine/Deepin-WeChat/drive_c/windows/Fonts2.修改注冊表
gedit ~/.deepinwine/Deepin-WeChat/system.reg找到以下兩行修改
"MS Shell Dlg"="msyh" "MS Shell Dlg 2"="msyh"
手動保存及關閉編輯框
3.字體注冊
sudo vim msyh_config.reg
寫入以下內容
REGEDIT4
[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\FontLink\SystemLink]
"Lucida Sans Unicode"="msyh.ttc"
"Microsoft Sans Serif"="msyh.ttc"
"MS Sans Serif"="msyh.ttc"
"Tahoma"="msyh.ttc"
"Tahoma Bold"="msyhbd.ttc"
"msyh"="msyh.ttc"
"Arial"="msyh.ttc"
"Arial Black"="msyh.ttc"
輸入以下命令使其生效
deepin-wine regedit msyh_config.reg
成功

轉載請註明出處,本文鏈接:https://www.uj5u.com/qita/276301.html
標籤:其他
