原教程写得很简练,就直接转过来了,改天再提取一下
1、创建一个debian 11系统,模板在PVE管理页面下载就有(ubuntu也可以,试过安装debian更精减),4G内存,2 CPU起步,指定你想要的ip(例如:192.168.1.10/24)
2、登录并修改为清华软件源
nano /etc/apt/sources.list apt update
3、添加一个新用户
adduser username apt install sudo usermod -aG sudo username
4、配置中文环境:
dpkg-reconfigure locales
选择zh_CN.UTF-8 UTF-8
5、安装XFCE桌面环境和思源字体:在安装过程中,会看到一个屏幕询问想要哪个桌面管理器:选择 lightdm
sudo apt install xfce4 xfce4-goodies xorg dbus-x11 x11-xserver-utils fonts-noto-cjk
7、安装xrdp
sudo apt install xrdp
8、验证 xrdp 安装是否正确并且正在运行
sudo systemctl status xrdp
9、 RDP 安装后需要添加这个代码,以便让桌面管理器知道使用什么来显示
sudo update-alternatives --set x-session-manager /usr/bin/xfce4-session
这时可以使用远程桌面连接192.168.1.10了,中文输入法可以安装fcitx(fcitx-table-wbpy这个是五笔拼音混合输入)
0x2
更新一下xrdp远程桌面连接声音重定向
https://bbs.deepin.org/post/192129
https://github.com/neutrinolabs/xrdp
https://github.com/neutrinolabs/pulseaudio-module-xrdp
1、安装编译需要的环境
sudo apt install build-essential dpkg-dev libpulse-dev git autoconf libtool
2、安装pulseaudio和编译依赖 (需要启用deb-src源)
非root用户进入 /home/username
sudo apt install sudo apt build-dep pulseaudio apt source pulseaudio
3、编译
cd 下载的pulseaudio源码目录
./bootstrap ./configure make
4、下载 pulseaudio-module-xrdp源码并编译
git clone https://github.com/neutrinolabs/pulseaudio-module-xrdp.git cd pulseaudio-module-xrdp ./bootstrap && ./configure PULSE_DIR=/home/username/pulseaudio-14.2(上一步下载的源码目录) make
5、安装模块
cd src sudo make install
6、查看是否成功
ls $(pkg-config --variable=modlibexecdir libpulse) | grep xrdp
现出module-xrdp-sink.so 和 module-xrdp-source.so 就是成功了
One comment
您好~我是腾讯云开发者社区运营,关注了您分享的技术文章,觉得内容很棒,我们诚挚邀请您加入腾讯云自媒体分享计划。完整福利和申请地址请见:https://cloud.tencent.com/developer/support-plan
作者申请此计划后将作者的文章进行搬迁同步到社区的专栏下,你只需要简单填写一下表单申请即可,我们会给作者提供包括流量、云服务器等,另外还有些周边礼物。