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サーバーへの接続がある場合は、次の手順を実行します。
    • # yum install tigervnc-server
  • RHNまたはSatelliteサーバーへの接続がない場合は、次の手順を実行します。
  • ローカルの「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で始まる追加のファイアウォール ポートを開く必要があります。上記では2人のユーザーが追加されたため、2つのポートを開く必要があります。
  • # service iptables save

 

トップに戻る


Resolution

-

Article Properties


Affected Product

Servers, PowerEdge

Last Published Date

30 Sep 2021

Version

5

Article Type

Solution