メイン コンテンツに進む
  • すばやく簡単にご注文が可能
  • 注文内容の表示、配送状況をトラック
  • 会員限定の特典や割引のご利用
  • 製品リストの作成とアクセスが可能
  • 「Company Administration(会社情報の管理)」では、お使いのDell EMCのサイトや製品、製品レベルでのコンタクト先に関する情報を管理できます。

How to Install and Configure a VNC Server on RedHat Enterprise Linux (RHEL) 6

概要: This article provides information on how to install and configure a VNC server on RedHat Enterprise Linux (RHEL) 6

この記事は自動翻訳されたものである可能性があります。品質に関するフィードバックがある場合は、このページの下部にあるフォームを使用してお知らせください。

文書の内容


現象

原因

1. Installation of the software

  • Ensure you are logged in as 'root'
  • If you have connectivity to RHN or a Satellite Server :
    • # yum install tigervnc-server
  • If you do not have connectivity to RHN or a Satellite Server :
  • Create a local 'yum' repository

 


 

2. Configure VNC password for the user(s)

  • Switch user to the user you want to use for VNC :
    • # su - vncuser1
Note: Replace 'vncuser1' with the correct username
  • Set the VNC password for the user :
    • $ vncpasswd
    • $ exit
  • Repeat for each VNC user as necessary

 


 

3. Configure resolution for the user(s)

  • Edit '/etc/sysconfig/vncservers' with your favorite editor
  • Append the following lines :
    • VNCSERVERS="1:vncuser1 2:vncuser2"
    • VNCSERVERARGS[1]="-geometry 1024x768"
    • VNCSERVERARGS[2]="-geometry 1024x768"
Note: Replace 'vncuser1' and 'vncuser2' with the correct usernames. You can add more users as needed. In addition, you can change the resolution value as needed.

 


 

4. Start the VNC server

  • Start the service :
    • # service vncserver start
  • Ensure service is started on reboots :
    • # chkconfig vncserver on

 


 

5. Configure the 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
Note: Each user requires an additional firewall port opened starting at 5901. Because we added two users above, we need to open two ports.
  • # service iptables save

 

Back to Top


解決方法

-

文書のプロパティ


影響を受ける製品

Servers, PowerEdge

最後に公開された日付

30 9月 2021

バージョン

5

文書の種類

Solution