在ssh命令终端下输入命令sudo apt-get install vnc-serverapt-get会给出一个提示,这个命令将会安装tightvnc在内的一系列包输入Y继续安装安装完成后设定密码vncserver会提示输入两遍。下面编辑下启动服务输入sudo nano /etc/init.d/vncserverBEGIN INIT INFOProvides: vncserverRequired-Start: $remote_fs $syslogRequired-Stop: $remote_fs $syslogDefault-Start: 2 3 4 5Default-Stop: 0 1 6Short-Description: Start VNC Server as a serviceDescription: Start VNC Server as a service.END INIT INFO!/bin/sh/etc/init.d/vncserverCustomised by Stewart WatkissVNCUSER='root'eval cd ~$VNCUSERcase "$1