miércoles, 19 de febrero de 2014

Instalar VNC Server en Oracle Linux Server

Instalamos tigervnc-server:

# yum install tigervnc-server
Loaded plugins: refresh-packagekit, security
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package tigervnc-server.x86_64 0:1.1.0-8.el6_5 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
================================================================================
 Package             Arch       Version             Repository             Size
================================================================================
Installing:
 tigervnc-server     x86_64     1.1.0-8.el6_5       public_ol6_latest     1.1 M
Transaction Summary
================================================================================
Install       1 Package(s)
Total download size: 1.1 M
Installed size: 2.9 M
Is this ok [y/N]: y ENTER
Downloading Packages:
tigervnc-server-1.1.0-8.el6_5.x86_64.rpm                 | 1.1 MB     00:03
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing : tigervnc-server-1.1.0-8.el6_5.x86_64                         1/1
  Verifying  : tigervnc-server-1.1.0-8.el6_5.x86_64                         1/1
Installed:
  tigervnc-server.x86_64 0:1.1.0-8.el6_5
Complete!


Editamos la config y especificamos el usuario, en este caso root:

# vi /etc/sysconfig/vncservers
VNCSERVERS="2:root"
VNCSERVERARGS[2]="-geometry 1280x1024 -nolisten tcp -localhost"


Especificamos el usuario de root para la conexión de VNC:

# vncpasswd
Password: ponemos_el_passVerify: ponemos_el_pass


Agregamos para que inicie cuando se reinicie el equipo:

# chkconfig vncserver on


Iniciamos el servicio:

# service vncserver start
Starting VNC server: 2:root xauth:  creating new authority file /root/.Xauthority
xauth: (stdin):1:  bad display name "MISERVER:2" in "add" command
New 'MISERVER:2 (root)' desktop is MISERVER:2
Creating default startup script /root/.vnc/xstartup
Starting applications specified in /root/.vnc/xstartup
Log file is /root/.vnc/MISERVER:2.log
                                                           [  OK  ]


Deshabilitamos el firewall:

# iptables -F


Lo habilitamos en la interface gráfica:




No hay comentarios: