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
  • Manage your Dell EMC sites, products, and product-level contacts using Company Administration.

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 may have been automatically translated. If you have any feedback regarding its quality, please let us know using the form at the bottom of this page.

Article Content


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: Sostituire '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 dal 5901. Perché abbiamo aggiunto in precedenza due utenti, abbiamo bisogno di aprire due porte.
  • # service iptables save

 

Torna all'inizio


Resolution

-

Article Properties


Affected Product

Servers, PowerEdge

Last Published Date

30 Sep 2021

Version

5

Article Type

Solution