Linux 开启VNC服务
Verify:
xauth: creating new authority file /root/.Xauthority
Starting applications specified in /root/.vnc/xstartup
Log file is /root/.vnc/erp-dev.gtbf-ltd.com:1.log
[root@erp-dev /]# cd /root/.vnc ### 此目录只有在启动过一次vnc服务后才会被自动创建
[root@erp-dev .vnc]# ls
erp-dev.gtbf-ltd.com:1.log erp-dev.gtbf-ltd.com:1.pid erp-dev.gtbf-ltd.com:2.log passwd xstartup
[root@erp-dev .vnc]# vi 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/.Xresources
xsetroot -solid grey
vncconfig -iconic &
xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
#twm & ### 将此行注释或删掉
gnome-session & ### 添加此行记录
~wq! 保存退出
Password:
Verify: