VNCを使うことによりWindowsからLinuxのコンソールに接続することが出来ます。
RHEL6を例にして説明してみます。
今回はrootユーザがVNC出来るように設定します。
[root@node01 ~]# yum install vnc-server
パッケージをインストールします。
[root@node01 ~]# vncserver
You will require a password to access your desktops.
Password:
Verify:
xauth: creating new authority file /root/.Xauthority
New 'node01.test.com:1 (root)' desktop is node01.test.com:1
Creating default startup script /root/.vnc/xstartup
Starting applications specified in /root/.vnc/xstartup
Log file is /root/.vnc/node01.test.com:1.log
VNCサーバに接続する時のパスワードを設定します。
VNC接続したいユーザーでログインしてから設定します。
[root@node01 ~]# cat /etc/sysconfig/vncservers
VNCSERVERS="1:root"
VNCSERVERARGS[1]="-geometry 800x600"
VNCで接続する時の解像度を設定します。
[root@node01 ~]# cat .vnc/xstartup
#twm &
exec gnome-session
VNC接続時にgnomeが起動するようにします。
[root@node01 ~]# chkconfig vncserver on
[root@node01 ~]# service vncserver restart
VNC サーバー を停止中: 1:root [ OK ]
VNC サーバー を起動中: 1:root
New 'node01.test.com:1 (root)' desktop is node01.test.com:1
Starting applications specified in /root/.vnc/xstartup
Log file is /root/.vnc/node01.test.com:1.log
[ OK ]
VNCの自動起動設定、サービスの起動を行ないます。
これで、VNCで接続できるようになりました。
RealVNCを利用して接続してみました。
RHEL6を例にして説明してみます。
今回はrootユーザがVNC出来るように設定します。
[root@node01 ~]# yum install vnc-server
パッケージをインストールします。
[root@node01 ~]# vncserver
You will require a password to access your desktops.
Password:
Verify:
xauth: creating new authority file /root/.Xauthority
New 'node01.test.com:1 (root)' desktop is node01.test.com:1
Creating default startup script /root/.vnc/xstartup
Starting applications specified in /root/.vnc/xstartup
Log file is /root/.vnc/node01.test.com:1.log
VNCサーバに接続する時のパスワードを設定します。
VNC接続したいユーザーでログインしてから設定します。
[root@node01 ~]# cat /etc/sysconfig/vncservers
VNCSERVERS="1:root"
VNCSERVERARGS[1]="-geometry 800x600"
VNCで接続する時の解像度を設定します。
[root@node01 ~]# cat .vnc/xstartup
#twm &
exec gnome-session
VNC接続時にgnomeが起動するようにします。
[root@node01 ~]# chkconfig vncserver on
[root@node01 ~]# service vncserver restart
VNC サーバー を停止中: 1:root [ OK ]
VNC サーバー を起動中: 1:root
New 'node01.test.com:1 (root)' desktop is node01.test.com:1
Starting applications specified in /root/.vnc/xstartup
Log file is /root/.vnc/node01.test.com:1.log
[ OK ]
VNCの自動起動設定、サービスの起動を行ないます。
これで、VNCで接続できるようになりました。
RealVNCを利用して接続してみました。