Instale o vnc4server e o xinetd. Você pode configurar várias portas com diferentes resoluções s em xinted. Minha configuração para 1024c768 em /etc/xinentd.d/xvnc-2 é:
service Xvnc-2
{
bind = 192.0.2.6
port = 5902
disable = no
socket_type = stream
log_type = syslog daemon
log_on_success = PID HOST EXIT DURATION
log_on_failure = HOST ATTEMPT
protocol = tcp
wait = no
user = nobody
server = /usr/bin/Xvnc
server_args = -inetd -geometry 1024x768 -depth 16 -query localhost -once -SecurityTypes none -extension XFIXES -desktop VNC-1024x768
}
E configure o gdm para permitir o login do xdmcp com / etc / gdm / custom
# # For full reference documentation see the gnome help browser under # GNOME|System category. You can also find the docs in HTML form on # http://www.gnome.org/projects/gdm/ # # NOTE: Lines that begin with "#" are considered comments. [daemon] RemoteGreeter=/usr/lib/gdm/gdmlogin TimedLoginEnable=false AutomaticLoginEnable=false TimedLogin= AutomaticLogin= TimedLoginDelay=30 KillInitClients=false HaltCommand= RebootCommand= SuspendCommand= [security] AllowRoot=false AllowRemoteRoot=false PasswordRequired=true RetryDelay=2 [xdmcp] DisplaysPerHost=10 Enable=true HonorIndirect=false [gui] [greeter] ShowXtermFailsafeSession=true SystemMenu=false [chooser] Broadcast=false Multicast=false [debug] Enable=true [servers]