1.Oracle Cloud 的服务器一台
2.系统得是Ubuntu20.04,实在不行就DD吧
萌咖大佬的Ubuntu20.04原版DD一键:
bash <(wget --no-check-certificate -qO- 'https://raw.githubusercontent.com/MoeClub/Note/master/InstallNET.sh') -u 20.04 -v arm64 --mirror http://archive.ubuntu.com/ubuntu -p "自定义root密码" -port "自定义ssh端口"
3.开启端口
apt install ubuntu-desktop
5.安装xrdp
apt install xrdp -y
6.声音转发
apt-get update -y apt-get install git libpulse-dev autoconf m4 intltool dpkg-dev libtool libsndfile-dev libcap-dev libjson-c-dev -y apt-get build-dep pulseaudio -y apt source pulseaudio pulsever=$(pulseaudio --version | awk '{print $2}') cd pulseaudio-$pulsever ./configure git clone https://github.com/neutrinolabs/pulseaudio-module-xrdp.git cd pulseaudio-module-xrdp ./bootstrap ./configure PULSE_DIR="$CurrentDir/pulseaudio-$pulsever" make cd $CurrentDir/pulseaudio-$pulsever/pulseaudio-module-xrdp/src/.libs install -t "/var/lib/xrdp-pulseaudio-installer" -D -m 644 *.so install -t "/usr/lib/pulse-$pulsever/modules" -D -m 644 *.so
7.创建用户
useradd -s /bin/bash -m ubuntu passwd ubuntu 输入密码
8.重启
reboot
9.使用rdp连接服务器登陆非root账户,启用声音通道
pulseaudio -k && pulseaudio pulseaudio &