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

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 applies to This article does not apply to This article is not tied to any specific product. Not all product versions are identified in this article.

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

-

Affected Products

Red Hat Enterprise Linux Version 6
Article Properties
Article Number: 000134710
Article Type: Solution
Last Modified: 16 Aug 2024
Version:  6
Find answers to your questions from other Dell users
Support Services
Check if your device is covered by Support Services.