美文网首页
Ubuntu20.04桌面版tigervnc远程访问

Ubuntu20.04桌面版tigervnc远程访问

作者: 羋学僧 | 来源:发表于2023-05-20 18:20 被阅读0次

一、安装 VNC server

安装tigervnc-standalone-server

sudo apt-get -y install tigervnc-standalone-server

二、为 VNC server 设置密码

vncpasswd

三、启动 VNC server 服务

vncserver :1

四、停止 VNC server 服务

vncserver -kill :1

五、配置 VNC server 服务

vim ~/.vnc/xstartup
显示如下内容:
#!/bin/sh

unset SESSION_MANAGER
unset DBUS_SESSION_BUS_ADDRESS
[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
xsetroot -solid grey
vncconfig -iconic &
x-terminal-emulator -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
gnome-session &

六、重新启动 VNC server 服务

vncserver :1 -geometry 1920x1080 -localhost no

七、使用MobaXterm连接

八、效果

相当于复制了一个桌面,与服务器的直连桌面互不干扰

相关文章

网友评论

      本文标题:Ubuntu20.04桌面版tigervnc远程访问

      本文链接:https://www.haomeiwen.com/subject/ckdosdtx.html