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.

RedHat Enterprise Linux (RHEL) 6에서 VNC 서버를 설치하고 구성하는 방법

Summary: 이 문서에서는 RedHat Enterprise Linux(RHEL) 6에서 VNC 서버를 설치하고 구성하는 방법에 대한 정보를 제공합니다.

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. 소프트웨어 설치

  • 'root'로 로그인했는지 확인합니다.
  • RHN 또는 Satellite Server에 연결되어 있는 경우 다음을 수행합니다.
    • # yum install tigervnc-server
  • RHN 또는 Satellite Server에 연결되어 있지 않은 경우 다음을 수행합니다.
  • 로컬 'yum' 리포지토리를 만듭니다.

 


 

2. 사용자의 VNC 비밀번호 구성

  • 다음과 같이 VNC에 사용할 사용자로 사용자를 전환합니다.
    • # su - vncuser1
참고: 'vncuser1'을 올바른 사용자 이름으로 교체하십시오.
  • 다음과 같이 사용자의 VNC 비밀번호를 설정합니다.
    • $ vncpasswd
    • $ exit
  • 필요에 따라 각 VNC 사용자에 대하여 반복합니다.

 


 

3. 사용자의 해상도 구성

  • 자신이 원하는 편집기로 '/etc/sysconfig/vncservers'를 편집합니다.
  • 다음 줄을 추가합니다.
    • VNCSERVERS="1:vncuser1 2:vncuser2"
    • VNCSERVERARGS[1]="-geometry 1024x768"
    • VNCSERVERARGS[2]="-geometry 1024x768"
참고: 'vncuser1' 및 'vncuser2'를 올바른 사용자 이름으로 교체하십시오. 필요에 따라 사용자를 더 추가할 수 있습니다. 또한 필요에 따라 해상도 값을 변경할 수 있습니다.

 


 

4. VNC 서버 시작

  • 다음과 같이 서비스를 시작합니다.
    • # service vncserver start
  • 다음과 같이 재부팅될 때 서비스가 시작되는지 확인합니다.
    • # chkconfig vncserver on

 


 

5. 방화벽 구성

  • # 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
참고: 각 사용자는 5901부터 시작하여 열려 있는 방화벽 포트가 추가로 필요합니다. 위에서 두 명의 사용자를 추가했기 때문에 두 개의 포트를 열어야 합니다.
  • # service iptables save

 

맨 위로 이동


Resolution

-

Article Properties


Affected Product

Servers, PowerEdge

Last Published Date

30 Sep 2021

Version

5

Article Type

Solution