Loading...
 
Skip to main content

VNC

VNC
http://www.realvnc.com/
rpm -iv

Basic Usage
Start vnc server on Linux, then attach to the display from the client
Server
ssh purcell-linux
/usr/local/bin/vnc
<<note the display number>>

Client
start VNCViewer with display number
purcell-linux:1

Easier Login
http://www.linux-mag.com/2003-03/guru_01.html

Changed /etc/X11/gdm/gdm.conf
[xdmcp] section
Enable=true

[daemon] section
RemoteGreeter=/usr/bin/gdmgreeter

[server] section
1=Standard

Change /etc/X11/xdm/xdm-config
! DisplayManager.requestPort: 0
DisplayManager.requestPort: 177

Change /etc/X11/xdm/Xaccess
* #any host can get a login window

Changed /etc/X11/xdm/kdmrc
[Xdmcp] section
Enable=true

Changed /etc/services
vnc-1024x768 5900/tcp
vnc-800x600 5901/tcp
vnc-1280x1024 5902/tcp


Create /etc/xinetd.d/vnc
Add 1 service per resolution (i.e. "vnc-800x600" ... see above)

# default: off
# description: The VNC server serves remote X connections.
service vnc-1280x1024
{
disable = no
socket_type = stream
protocol = tcp
wait = no
user = nobody
server = /usr/bin/Xvnc
server_args = :2 -inetd -query localhost -geometry 1280x1024 -depth 16 -once -fp unix/:7100 securitytypes=none
}

service vnc-1024x768
{
disable = no
socket_type = stream
protocol = tcp
wait = no
user = nobody
server = /usr/bin/Xvnc
server_args = :3 -inetd -query localhost -geometry 1024x768 -depth 16 -once -fp unix/:7100 securitytypes=none
}

service vnc-800x600
{
disable = no
socket_type = stream
protocol = tcp
wait = no
user = nobody
server = /usr/bin/Xvnc
server_args = :4 -inetd -query localhost -geometry 800x600 -depth 16 -once -fp unix/:7100 securitytypes=none
}

Changed /etc/sysconfig/iptables (Firewall)
iptables -A INPUT -s 127.0.0.1 -p udp --dport 177 -j ACCEPT
iptables -A INPUT -s 192.168.1.0/24 -j ACCEPT
iptables -A INPUT -s 192.168.1.0/24 -p udp --dport 177 -j ACCEPT
iptables -A INPUT -p udp --dport 177 -j DROP
/etc/init.d/iptables save

killall -HUP xinetd


cron.daily runs /usr/local/bin/killvnc.sh to remove old VNC Sessions
run "xcutsel" on Linux to Cut & Paste between Win/Linux



Created by john. Last Modification: Sunday 03 of April, 2005 20:45:37 MDT by john.