TigerVNC Server – RHEL6 Configuration

su -
 yum install tigervnc-server
 chkconfig vncserver on
 service vncserver start
Login with the user able to use the VNC session and execute:
 vncpasswd
Setup your:
 /etc/sysconfig/vncservers

with something like below: “display:username”

 VNCSERVERS="1:theuser"

When you use: vncpasswd
You need to do it with “the user” account

Here the correct sequence:
 [root@server ~]#yum install tigervnc-server* -y
[root@server ~]#chkconfig vncserver restart
[root@server ~]#useradd abc
 [root@server ~]#useradd bca
[root@server ~]#su -abc
[abc@server ~]$vncpasswd
 password:redhat1
 retype password:redhat1
[abc@server ~]#exit
[root@server ~]#su - bca
[bca@server ~]$vncpasswd
 password: redhat12
 retype password:redhat12
[bca@server ~]#exit
[root@server ~]#vim /etc/sysconfig/vncservers
VNCSERVERS="2:abc 1:bca"
 VNCSERVERARGS[1]="-geometry 800x600"
 VNCSERVERARGS[2]="-geometry 800x600"
:wq!
[root@server ~]#service vncserver restart

On the client side(Linux):

[root@client ~]#yum install tigervnc
[root@client ~]# vncviewer :
password:

On windows machine use UltraVNC with the same addresses.

Before connect to the server machine add to iptables the following lines:

iptables -A INPUT -p udp -m state --state NEW -m udp --dport 5901 -j ACCEPT

iptables -A INPUT -p tcp -m state --state NEW -m tcp --dport 5901 -j ACCEPT

~ di diegotech su ottobre 8, 2012.

Lascia un commento

Inserisci i tuoi dati qui sotto o clicca su un'icona per effettuare l'accesso:

Logo WordPress.com

Stai commentando usando il tuo account WordPress.com. Chiudi sessione / Modifica )

Foto Twitter

Stai commentando usando il tuo account Twitter. Chiudi sessione / Modifica )

Foto di Facebook

Stai commentando usando il tuo account Facebook. Chiudi sessione / Modifica )

Google+ photo

Stai commentando usando il tuo account Google+. Chiudi sessione / Modifica )

Connessione a %s...

 
%d blogger cliccano Mi Piace per questo: