ubuntu 远程桌面 xfce4

作者: 刘一二 发布时间: 2023年11月19日 浏览: 17

安装 xfce4  和  xrdp

apt update
apt upgrade
apt install -y xfce4
apt install -y xrdp
reboot

 

修改 xrdp 配置文件启用 xfce 桌面

vim /etc/xrdp/startwm.sh


test -x /etc/X11/Xsession && exec /etc/x11/xsession 
前增加一行

echo "xfce4-session" > ~/.xsession

test -x /etc/X11/Xsession && exec /etc/x11/xsession 

 

设置 rdp 开机启动

systemctl start xrdp
systemctl enable xrdp

 

使用 windows 远程桌面即可连接上该服务器

 

安装  chrome

apt-get update && apt-get install wget
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
apt-get install -y -f ./google-chrome-stable_current_amd64.deb

sed -e '/chrome/ s/^#*/#/' -i /opt/google/chrome/google-chrome
echo 'exec -a "$0" "$HERE/chrome" "$@" --user-data-dir="$HOME/.config/chrome" --no-sandbox --disable-dev-shm-usage' >> /opt/google/chrome/google-chrome

开始菜单 -> Internet 中 出现 chrome浏览器

 

使用 Docker 安装 xfce4

 

 

 

 

最新文章
热门文章
导航