Debian10 安裝遠程桌麵,添加exe支持 掛QQ
安裝桌麵
tasksel
選擇要安裝的桌麵
重啟
安裝 XRDP 遠程桌麵服務
1.安裝XRDP和TigerVNC服務器
sudo apt-get install xrdp tigervnc-standalone-server
2.啟動XRDP服務並加入自啟動
systemctl start xrdp
systemctl enable xrdp
3.設置允許啟用X服務器的用戶(請勿設置為root根目錄用戶,非常不安全)
dpkg-reconfigure xserver-xorg-legacy
安裝 wine
添加32位支持
sudo dpkg –add-architecture i386
更新係統 安裝依賴
sudo apt update
sudo apt -y install gnupg2 software-properties-common
wget -qO – https://dl.winehq.org/wine-builds/winehq.key | sudo apt-key add -
sudo apt-add-repository https://dl.winehq.org/wine-builds/debian/
Debian 10:
wget -O- -q https://download.opensuse.org/repositories/Emulators:/Wine:/Debian/Debian_10/Release.key | sudo apt-key add –
echo "deb http://download.opensuse.org/repositories/Emulators:/Wine:/Debian/Debian_10 ./" | sudo tee /etc/apt/sources.list.d/wine-obs.list
Debian 9:
wget -O- -q https://download.opensuse.org/repositories/Emulators:/Wine:/Debian/Debian_9.0/Release.key | sudo apt-key add –
echo "deb http://download.opensuse.org/repositories/Emulators:/Wine:/Debian/Debian_9.0 ./" | sudo tee /etc/apt/sources.list.d/wine-obs.list
#安裝wine 穩定版本
sudo apt update
sudo apt install –install-recommends winehq-stable
//安裝其他版本
sudo apt install –install-recommends winehq-devel
sudo apt install winehq-staging
查看版本
$ wine –version
wine-5.0
查看幫助
$ wine –help
運行例子:
$ cd ~/Downloads
$ wget https://notepad-plus-plus.org/repository/7.x/7.7/npp.7.7.Installer.exe
$ wine ./npp.7.7.Installer.exe
配置中文環境
首先我們添加對中文的支持:
sudo apt-get install locales
然後然後配置 locales 軟件包:
sudo dpkg-reconfigure locales
用方向鍵移動,空格鍵選擇,Tab 鍵切換位置。
zh_CN 開頭的都選上
安裝wine時,因為缺少了中文字體,所以中文字體有時會顯示為方框。在這裏,我給出一種解決方案。
第一步:下載想要的字體,比如宋體simsum.ttc。
下載鏈接:https://github.com/sonatype/maven-guide-zh/raw/master/content-zh/src/main/resources/fonts/simsun.ttc
第二步:將所有字體的值替換為該字體。創建一個腳本文件font.reg。
REGEDIT4
[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\FontLink\SystemLink]
"Lucida Sans Unicode"="simsun.ttc"
"Microsoft Sans Serif"="simsun.ttc"
"Tahoma"="simsun.ttc"
"Tahoma Bold"="simsun.ttc"
"SimSun"="simsun.ttc"
"Arial"="simsun.ttc"
"Arial Black"="simsun.ttc"
運行
wine regedit font.reg
重啟即可
相關說明:
1、VIP會員無限製任意下載,免積分。立即前往開通>>
2、下載積分可通過日常 簽到、綁定郵箱 以及 積分兌換 等途徑獲得!
3、本站資源大多存儲在雲盤,如出現鏈接失效請評論反饋,如有密碼,均為:www.ipipn.com。
4、所有站內資源僅供學習交流使用。未經原版權作者許可,禁止用於任何商業環境,否則後果自負。為尊重作者版權,請購買正版作品。
5、站內資源來源於網絡公開發表文件或網友分享,如侵犯您的權益,請聯係管理員處理。
6、本站提供的源碼、模板、軟件工具等其他資源,都不包含技術服務,請大家諒解!
7、源碼、模板等資源會隨著技術、壞境的升級而存在部分問題,還請慎重選擇。
PS.源碼均收集自網絡,如有侵犯閣下權益,請發信件至: admin@ipipn.com .
源站網 » Debian10 安裝遠程桌麵,添加exe支持 掛QQ