{"id":71,"date":"2019-11-03T19:31:36","date_gmt":"2019-11-03T12:31:36","guid":{"rendered":"http:\/\/naitinoi.com\/?p=71"},"modified":"2019-11-03T19:31:54","modified_gmt":"2019-11-03T12:31:54","slug":"vnc-server-centos","status":"publish","type":"post","link":"https:\/\/omtel.ltd\/index.php\/2019\/11\/03\/vnc-server-centos\/","title":{"rendered":"VNC SERVER-CentOS"},"content":{"rendered":"<p>[root@naitinoi ~]# yum -y install vnc-server tigervnc-server<br \/>\n[root@naitinoi ~]# mkdir .vnc<br \/>\n[root@naitinoi ~]# vncpasswd<br \/>\nPassword:<br \/>\nVerify:<br \/>\n[root@naitinoi ~]# ee \/etc\/sysconfig\/vncservers<br \/>\n# VNCSERVERS=\u201d2:myusername\u201d<br \/>\n# VNCSERVERARGS[2]=\u201d-geometry 800\u00d7600 -nolisten tcp -localhost\u201d<br \/>\nVNCSERVERS=\u201d2:root\u201d<br \/>\nVNCSERVERARGS[2]=\u201d-geometry 800\u00d7600\u2033<br \/>\n[root@naitinoi ~]# chkconfig vncserver on<br \/>\n[root@naitinoi ~]# \/etc\/init.d\/vncserver start<br \/>\nStarting VNC server: 2:root xauth: creating new authority file \/root\/.Xauthority<br \/>\nCreating default startup script \/root\/.vnc\/xstartup<br \/>\nStarting applications specified in \/root\/.vnc\/xstartup<br \/>\nLog file is \/root\/.vnc\/xxxxxx.com:2.log<\/p>\n<p>[ OK ]<br \/>\nallow firewall TCP 5902,6002<br \/>\n[root@naitinoi ~]# iptables -nvL<br \/>\n0 0 ACCEPT tcp \u2014 * * 0.0.0.0\/0 0.0.0.0\/0 state NEW tcp dpt:5902<br \/>\n0 0 ACCEPT tcp \u2014 * * 0.0.0.0\/0 0.0.0.0\/0 state NEW tcp dpt:6002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>[root@naitinoi ~]# yum -y install vnc-server tigervnc-s [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[],"class_list":["post-71","post","type-post","status-publish","format-standard","hentry","category-linux"],"_links":{"self":[{"href":"https:\/\/omtel.ltd\/index.php\/wp-json\/wp\/v2\/posts\/71","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/omtel.ltd\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/omtel.ltd\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/omtel.ltd\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/omtel.ltd\/index.php\/wp-json\/wp\/v2\/comments?post=71"}],"version-history":[{"count":1,"href":"https:\/\/omtel.ltd\/index.php\/wp-json\/wp\/v2\/posts\/71\/revisions"}],"predecessor-version":[{"id":72,"href":"https:\/\/omtel.ltd\/index.php\/wp-json\/wp\/v2\/posts\/71\/revisions\/72"}],"wp:attachment":[{"href":"https:\/\/omtel.ltd\/index.php\/wp-json\/wp\/v2\/media?parent=71"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/omtel.ltd\/index.php\/wp-json\/wp\/v2\/categories?post=71"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/omtel.ltd\/index.php\/wp-json\/wp\/v2\/tags?post=71"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}