giovedì 27 marzo 2014

CentOS - Redhat VNC server config

VNC configuration insert ip address in /etc/hosts
service vncserver strat stop status
Install the VNC Server.

    # yum install tigervnc-server

Edit the "/etc/sysconfig/vncservers" file to configure the required displays. The following entries enable VNC for display numbers ":2" and ":3". Notice multiple "display:user" pairs are defined on a single line, but the arguments for each display are defined separately.

    VNCSERVERS="2:root 3:oracle"
    VNCSERVERARGS[2]="-geometry 1280x1024 -nolisten tcp -localhost"
    VNCSERVERARGS[3]="-geometry 1280x1024"

Set the VNC password for any users defined in the "/etc/sysconfig/vncservers" file.

    # vncpasswd
    Password:
    Verify:
    #

    # su - oracle
    $ vncpasswd
    Password:
    Verify:
    $ exit
    logout
    #

Enable the "vncserver" service for autostart and start the service.

    # chkconfig vncserver on
    # service vncserver start

to connect ipaddress:displayport

Nessun commento: