Debian10安装远程桌面,添加Exe支持挂QQ

  linux干货

安装桌面
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