发新话题
打印

在无显示输出的情况下配置桌面、VNC Server、XRDP

在无显示输出的情况下配置桌面、VNC Server、XRDP

apt --no-install-recommends install xfce4
apt install xfce4-goodies  (shell终端 xfce4-terminal, 记事本 mousepad)
apt install tightvncserver
apt install dbus-x11   (Failed to execute child process “dbus-launch” (No such file or directory))
apt-get install ttf-wqy-zenhei (中文字体)

# download chrome.deb
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
# install chrome  (failed to execute default web browser input/output error)
sudo apt install ./google-chrome-stable_current_amd64.deb


chmod +x ~/.vnc/xstartup

vi ~/.vnc/xstartup
内容是:
#!/bin/bash
xrdb $HOME/.Xresources
startxfce4 &

vncserver
输入正常账号密码,选择输入只读账号密码

通过vnc客户端连接 服务器IP:5901

# 在shell终端 terminal 里 运行chrome浏览器
google-chrome --no-sandbox
或者右键编辑Browser图符,修改命令为“google-chrome --no-sandbox”,默认的命令是“exo-open --launch WebBrowser %u”

------------------------
apt-get -y install xrdp
apt-get install -y libepoxy-dev
apt-get -y install xfce4
apt install xfce4-session
echo xfce4-session > ~/.xsession
adduser xrdp ssl-cert
systemctl start xrdp
adduser user1
passwd user1
windows下:mstsc,连接服务器,输入用户名密码

修改3389端口:
/etc/xrdp/xrdp.ini
参考:
https://www.linuxprobe.com/ubuntu-vnc-xfce4.html
https://lxnchan.cn/debian-desktop-vnc.html
https://www.wongwonggoods.com/all-posts/linux/linux-debug-error/failed-to-execute-default-web/
https://superuser.com/questions/1503529/failed-to-execute-default-web-browser-input-output-error
https://www.cxyzjd.com/article/weixin_39609071/111731544
https://learn.microsoft.com/zh-cn/azure/virtual-machines/linux/use-remote-desktop?tabs=azure-cli

[ 本帖最后由 linda 于 2023-5-6 16:33 编辑 ]

TOP

发新话题