第一次启动要设置VNC远程登录所需的密码
[root@xcorder ]# vncserver You will require a password to access your desktops. Password: Verify: xauth: New ´xcorder.sky.cn:1 (root)´ desktop is xcorder.sky.cn:1 Creating default startup script. /root/.vnc/xstartup Starting applications specified in /root/.vnc/xstartup Log file is /root/.vnc/xcorder.sky.cn:1.log |
上面这段话表示起动了一个图形终端,编号为1,要记住这个编号,等下登录时需要提供这个编号。
如果你要停止这个进程,使用
代码::
$vncserver -kill :1
(经上述步骤后,便已启动了VNC Server。如果你想要更改VNC Server的密码,只要执行vncpasswd命令即可。)
如果存在防火墙,还需要开放防火墙.
如果需要从外网控制内网的某台Linux,则需要打开防火墙相应的端口,并在路由器上进行端口映射。
VNC给浏览器的端口是5800+N,给vncviewer的端口是5900+N,N是设置的display号。
|