Skip to main content
  • Place orders quickly and easily
  • View orders and track your shipping status
  • Enjoy members-only rewards and discounts
  • Create and access a list of your products

Come installare e configurare un server VNC su RedHat Enterprise Linux (RHEL) 6

Summary: Questo articolo fornisce informazioni su come installare e configurare un server VNC su RedHat Enterprise Linux (RHEL) 6

This article applies to   This article does not apply to 

Symptoms

Cause

1. Installazione del software

  • Assicurarsi di aver eseguito l'accesso come utente 'root'.
  • Se si dispone di connettività a un server RHN o Satellite:
    • # yum install tigervnc-server
  • Se non si dispone di connettività a un server RHN o Satellite:
  • Creare un repository 'yum' locale.

 


 

2. Configurazione delle password VNC per gli utenti

  • Passare all'utente che si desidera utilizzare per VNC:
    • # su - vncuser1
Nota: Sostituisci 'vncuser1' con il nome utente corretto
  • Impostare la password VNC per l'utente:
    • $ vncpasswd
    • $ exit
  • Ripetere questi passaggi per ogni utente VNC.

 


 

3. Configurazione della risoluzione per gli utenti

  • Modificare '/etc/sysconfig/vncservers' con l'editor preferito.
  • Aggiungere le seguenti righe:
    • VNCSERVERS="1:vncuser1 2:vncuser2"
    • VNCSERVERARGS[1]="-geometry 1024x768"
    • VNCSERVERARGS[2]="-geometry 1024x768"
Nota: Sostituire 'vncuser1' e 'vncuser2' con i nomi utente corretti. Se occorre, è possibile aggiungere più utenti. È inoltre possibile modificare il valore della risoluzione come necessario.

 


 

4. Avvio del server VNC

  • Avviare il servizio:
    • # service vncserver start
  • Verificare che il servizio venga avviato quando si esegue un riavvio:
    • # chkconfig vncserver on

 


 

5. Configurazione del firewall

  • # iptables -I INPUT -m state --state NEW -p tcp --destination-port 5901 -j ACCEPT
  • # iptables -I INPUT -m state --state NEW -p tcp --destination-port 5902 -j ACCEPT
Nota: Ogni utente richiede una porta firewall aggiuntiva aperta a partire dalla versione 5901. Perché abbiamo aggiunto in precedenza due utenti, abbiamo bisogno di aprire due porte.
  • # service iptables save

 

Torna all'inizio


Resolution

-

Affected Products

Red Hat Enterprise Linux Version 6