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.

Jak zainstalować i skonfigurować serwer VNC w systemie RedHat Enterprise Linux (RHEL) 6

Summary: Ten artykuł zawiera informacje na temat sposobu instalacji i konfiguracji serwera VNC w systemie 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. Instalacja oprogramowania

  • Upewnij się, że zalogowano się jako użytkownik root
  • Jeśli masz łączność z RHN lub serwerem satelitarnym:
    • # yum install tigervnc-server
  • Jeśli nie masz łączności z RHN lub serwerem satelitarnym:
  • Utwórz lokalne repozytorium „yum”

 


 

2. Konfigurowanie hasła VNC dla użytkownika(-ów)

  • Przełącz użytkownika na użytkownika, którego chcesz używać dla VNC:
    • # su - vncuser1
Uwaga: zamień „vncuser1” na poprawną nazwę użytkownika
  • Ustaw hasło VNC dla użytkownika:
    • $ vncpasswd
    • $ exit
  • Powtórz dla każdego użytkownika VNC w razie potrzeby

 


 

3. Konfigurowanie rozdzielczości dla użytkownika(-ów)

  • Edytuj „/etc/sysconfig/vncservers” w ulubionym edytorze
  • Dołącz następujące wiersze:
    • VNCSERVERS="1:vncuser1 2:vncuser2"
    • VNCSERVERARGS[1]="-geometry 1024x768"
    • VNCSERVERARGS[2]="-geometry 1024x768"
Uwaga: zamień „vncuser1” i „vncuser2” na poprawne nazwy użytkowników. W razie potrzeby można dodać więcej użytkowników. Ponadto w razie potrzeby można zmienić wartość rozdzielczości.

 


 

4. Uruchamianie serwera VNC

  • Uruchom usługę:
    • # service vncserver start
  • Upewnij się, że usługa jest uruchomiana przy ponownym uruchamianiu:
    • # chkconfig vncserver on

 


 

5. Konfigurowanie zapory

  • # 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
Uwaga: każdy użytkownik wymaga dodatkowego otwartego portu zapory od nr 5901. Ponieważ dodaliśmy dwóch użytkowników powyżej, musimy otworzyć dwa porty.
  • # service iptables save

 

Powrót do góry


Resolution

-

Article Properties


Affected Product

Servers, PowerEdge

Last Published Date

30 Sep 2021

Version

5

Article Type

Solution