在ubuntu14.04LTS上安装vnc,之前用的是vnc4server,但是显示不好,因此用tigervnc。
tigervnc网址:http://tigervnc.org/
github: https://github.com/TigerVNC/tigervnc
tigervnc适用于ubuntu的二进制安装包64位:tigervncserver_1.4.3-3ubuntu1_amd64.deb
下载网址:https://bintray.com/tigervnc/stable/tigervnc/1.4.3#files
安装步骤:
1、下载并安装
wget https://bintray.com/artifact/download/tigervnc/stable/ubuntu-14.04LTS/amd64/tigervncserver_1.4.3-3ubuntu1_amd64.deb
sudo dpkg -i tigervncserver_1.4.3-3ubuntu1_amd64.deb
localadmin@ubuntu:~$ wget https://bintray.com/artifact/download/tigervnc/stable/ubuntu-14.04LTS/amd64/tigervncserver_1.4.3-3ubuntu1_amd64.deb</a>
...
localadmin@ubuntu:~$ sudo dpkg -i tigervncserver_1.4.3-3ubuntu1_amd64.deb
Selecting previously unselected package tigervncserver.
(Reading database ... 240948 files and directories currently installed.)
Preparing to unpack .../tigervncserver_1.4.3-3ubuntu1_amd64.deb ...
Unpacking tigervncserver (1.4.3-3ubuntu1) ...
Setting up tigervncserver (1.4.3-3ubuntu1) ...
update-alternatives: using /usr/bin/tigervncserver to provide /usr/bin/vncserver (vncserver) in auto mode
update-alternatives: using /usr/bin/Xtigervnc to provide /usr/bin/Xvnc (Xvnc) in auto mode
update-alternatives: using /usr/bin/x0tigervncserver to provide /usr/bin/x0vncserver (x0vncserver) in auto mode
update-alternatives: using /usr/bin/tigervncpasswd to provide /usr/bin/vncpasswd (vncpasswd) in auto mode
Processing triggers for ureadahead (0.100.0-16) ...
Processing triggers for man-db (2.6.7.1-1ubuntu1) ...
localadmin@ubuntu:~$ ll /usr/bin/*vnc*
-rwxr-xr-x 1 root root 117824 Mar 2 04:29 /usr/bin/tigervncconfig*
-rwxr-xr-x 1 root root 27048 Mar 2 04:29 /usr/bin/tigervncpasswd*
-rwxr-xr-x 1 root root 20215 Mar 2 04:22 /usr/bin/tigervncserver*
lrwxrwxrwx 1 root root 27 Mar 24 10:41 /usr/bin/vncconfig -> /etc/alternatives/vncconfig*
lrwxrwxrwx 1 root root 27 Mar 25 14:27 /usr/bin/vncpasswd -> /etc/alternatives/vncpasswd*
lrwxrwxrwx 1 root root 27 Mar 25 14:27 /usr/bin/vncserver -> /etc/alternatives/vncserver*
-rwxr-xr-x 1 root root 454544 Mar 2 04:29 /usr/bin/x0tigervncserver*
lrwxrwxrwx 1 root root 29 Mar 25 14:27 /usr/bin/x0vncserver -> /etc/alternatives/x0vncserver*
-rwxr-xr-x 1 root root 2271896 Mar 2 04:29 /usr/bin/Xtigervnc*
lrwxrwxrwx 1 root root 22 Mar 25 14:27 /usr/bin/Xvnc -> /etc/alternatives/Xvnc*
localadmin@ubuntu:~$ ll /etc/alternatives/vnc*
lrwxrwxrwx 1 root root 23 Mar 25 14:20 /etc/alternatives/vncconfig -> /usr/bin/tigervncconfig*
lrwxrwxrwx 1 root root 39 Mar 25 14:20 /etc/alternatives/vncconfig.1.gz -> /usr/share/man/man1/tigervncconfig.1.gz
lrwxrwxrwx 1 root root 23 Mar 25 14:27 /etc/alternatives/vncpasswd -> /usr/bin/tigervncpasswd*
lrwxrwxrwx 1 root root 39 Mar 25 14:27 /etc/alternatives/vncpasswd.1.gz -> /usr/share/man/man1/tigervncpasswd.1.gz
lrwxrwxrwx 1 root root 23 Mar 25 14:27 /etc/alternatives/vncserver -> /usr/bin/tigervncserver*
lrwxrwxrwx 1 root root 39 Mar 25 14:27 /etc/alternatives/vncserver.1.gz -> /usr/share/man/man1/tigervncserver.1.gz
2、启动:vncserver
localadmin@ubuntu:~$ vncserver
You will require a password to access your desktops.
Password:
Verify:
New 'ubuntu:1 (localadmin)' desktop is ubuntu:1
Creating default startup script /home/localadmin/.vnc/xstartup
Starting applications specified in /home/localadmin/.vnc/xstartup
Log file is /home/localadmin/.vnc/ubuntu:1.log
3、在windows上启动vncviewer连接即可。
注意:此安装包只适用于amd64硬件架构。
在power服务器上安装时,会出现错误:
opuser@zhai:~$ sudo dpkg -i tigervncserver_1.4.3-3ubuntu1_amd64.deb
sudo: unable to resolve host zhai
[sudo] password for opuser:
dpkg: error processing archive tigervncserver_1.4.3-3ubuntu1_amd64.deb (--install):
package architecture (amd64) does not match system (ppc64el)
Errors were encountered while processing:
tigervncserver_1.4.3-3ubuntu1_amd64.deb