Linux configure vnc

yum install tigervnc-server

 

vim /etc/sysconfig/vncservers

View the configuration file and modify the last two lines of configuration file parameters as follows:

VNCSERVERS="1:root"

VNCSERVERARGS[2]="-geometry 1360x768  -nolisten tcp -localhost"

 

source /etc/sysconfig/vncservers

 

vncserver

vim /root/.vnc/xstartup

Just change the last sentence twm & to gnome-session &

 

service vncserver restart

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326349037&siteId=291194637