RealVNC - VNC Server on Redhat Linux 9

目次

VNC Server on Redhat Linux 9

Download

Install

Getting started

General Information

User Settings

Run VNC server

Using VNC viewers

Stop the server

Tips

Accessing by Web Browsers

General Information

Run VNC server

Browsing

Stop the server

Using GUI Login (GDM)

General Information

Settings

vncpasswd /etc/vnc_passwd
chmod 644 /etc/vnc_passwd
vnc-800x600     5950/tcp                        # VNC by xinetd
service vnc-800x600
{
        disable     = no
        socket_type = stream
        user        = root
        wait        = no
        server      = /usr/bin/Xvnc
        server_args = -inetd -query localhost -once -geometry 800x600 -depth 16 --PasswordFile=/etc/vnc_passwd
}
  [daemon]
  KillInitClients=false
  [xdmcp]
  Enable=true

Restart the related services

Login with VNC viewers

Tips

GUI Login with Web Browsers

General Information

Settings

index.html

  <HTML>
  <HEAD>
  <TITLE>
  VNC viewer for Java
  </TITLE>
  </HEAD>
  <BODY>
  <APPLET CODE=vncviewer/VNCViewer.class ARCHIVE=vncviewer.jar
          WIDTH=800 HEIGHT=600>
  <PARAM name="port" value=5950>
  </APPLET>
  </BODY>
  </HTML>

Accessing by browsers

Tips

Trouble Shooting

Maybe, you have to open the firewall for vnc packets.

 -A INPUT -p 5900:5903 -j ACCEPT ( This line is for normal vnc connection )
 -A INPUT -p 5800:5803 -j ACCEPT ( This line is for browser connection )
 -A INPUT -p 5950 -j ACCEPT (This line is for the vnc server with xinetd)

Why do I get only gray screen with GUI login.

GDM is started, but I can not login.

Can not start GNOME application that needs the root password.