Ubuntu下开启vnc的tip方法

2023-12-04 0 145

安装方法

复制代码代码如下:sudo apt-get install vnc4server vnc-java默认端口从5901开始修改 ~/.vnc/xstartup文件源(原)文件如下复制代码代码如下:#!/bin/sh # Uncomment the following two lines for normal desktop:# unset SESSION_MANAGER# exec /etc/X11/xinit/xinitrc [ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresourcesxsetroot -solid greyvncconfig -iconic &x-terminal-emulator -geometry 80×24+10+10 -ls -title \”$VNCDESKTOP Desktop\” &x-server-manager &这个配置是不能进入桌面的

把最后一行x-server-manager 修改为gnome-session

配置文件修改后

复制代码代码如下:# Uncomment the following two lines for normal desktop:# unset SESSION_MANAGER# exec /etc/X11/xinit/xinitrc [ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresourcesxsetroot -solid greyvncconfig -iconic &x-terminal-emulator -geometry 80×24+10+10 -ls -title \”$VNCDESKTOP Desktop\” &gnome-session &

这时候重启服务即可

复制代码代码如下:[root@fancyos ~]# vncserver -kill :1[root@fancyos ~]# vncserver :1

收藏 (0) 打赏

感谢您的支持,我会继续努力的!

打开微信/支付宝扫一扫,即可进行扫码打赏哦,分享从这里开始,精彩与您同在
点赞 (0)

悠久资源 Ubuntu/Debian Ubuntu下开启vnc的tip方法 https://www.u-9.cn/system/ubuntudebian/82750.html

常见问题

相关文章

发表评论
暂无评论
官方客服团队

为您解决烦忧 - 24小时在线 专业服务