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

RedHat Enterprise Linux(RHEL)6にVNCサーバをインストールして設定する方法(英語)

Summary: この記事では、RedHat Enterprise Linux(RHEL)6にVNCサーバーをインストールして設定する方法について説明します。

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.ソフトウェアのインストール

  • 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

-

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.