VNC im xinetd unter SuSE starten

Aus Linupedia.org
Version vom 17. August 2006, 23:24 Uhr von TomcatMJ (Diskussion | Beiträge)
(Unterschied) ← Nächstältere Version | Aktuelle Version (Unterschied) | Nächstjüngere Version → (Unterschied)
Wechseln zu: Navigation, Suche

Mit folgender Konfiguration erhält man per VNC Zugang zum grafischen Loginmanager udn kann sich per VNC-Client oder Webbrowser (dieser benötigt dann jedoch Java) als User am System anmelden im Gegensatz zur sonst üblichen Arbeitsflächenfreigabe durch VNC:

/etc/xinet.d/vnc :

# default: off
# description: This serves out a VNC connection which starts at a KDM login \
#       prompt. This VNC connection has a resolution of 1024x768, 16bit depth.
service vnc1
{
       disable         = no
       socket_type     = stream
       protocol        = tcp
       wait            = no
       user            = nobody
       server          = /usr/X11R6/bin/Xvnc
       server_args     = :42 -inetd -once -query localhost -geometry 1024x768 -depth 16
       type            = UNLISTED
       port            = 5901
}
# default: off
# description: This serves out a VNC connection which starts at a KDM login \
#       prompt. This VNC connection has a resolution of 1280x1024, 16bit depth.
service vnc2
{
       type            = UNLISTED
       port            = 5902
       socket_type     = stream
       protocol        = tcp
       wait            = no
       user            = nobody
       server          = /usr/X11R6/bin/Xvnc
       server_args     = :42 -inetd -once -query localhost -geometry 1280x1024 -depth 16
       disable         = no
}
# default: off
# description: This serves out a VNC connection which starts at a KDM login \
#       prompt. This VNC connection has a resolution of 1600x1200, 16bit depth.
service vnc3
{
       type            = UNLISTED
       port            = 5903
       socket_type     = stream
       protocol        = tcp
       wait            = no
       user            = nobody
       server          = /usr/X11R6/bin/Xvnc
       server_args     = :42 -inetd -once -query localhost -geometry 1600x1200 -depth 16
       disable         = no
}
# default: off
# description: This serves out the vncviewer Java applet for the VNC \
#       server running on port 5901, (vnc port 1).
service vnchttpd1
{
       disable         = no
       socket_type     = stream
       protocol        = tcp
       wait            = no
       user            = nobody
       server          = /usr/X11R6/bin/vnc_inetd_httpd
       server_args     = 1024 768 5901
       type            = UNLISTED
       port            = 5801
}
# default: off
# description: This serves out the vncviewer Java applet for the VNC \
#       server running on port 5902, (vnc port 2).
service vnchttpd2
{
       type            = UNLISTED
       port            = 5802
       socket_type     = stream
       protocol        = tcp
       wait            = no
       user            = nobody
       server          = /usr/X11R6/bin/vnc_inetd_httpd
       server_args     = 1280 1024 5902
       disable         = no
}
# default: off
# description: This serves out the vncviewer Java applet for the VNC \
#       server running on port 5902, (vnc port 3).
service vnchttpd3
{
       type            = UNLISTED
       port            = 5803
       socket_type     = stream
       protocol        = tcp
       wait            = no
       user            = nobody
       server          = /usr/X11R6/bin/vnc_inetd_httpd
       server_args     = 1600 1200 5903
       disable         = no
}

VORSICHT! VNC sendet die Daten (und damit auch Passwörter) normalerweise unverschlüsselt über das Netzwerk, daher sollten die Ports für VNC per Portsperre vom Internet oder sonstigen unsicheren Netzwerken (offenes WLAN z.B.) abgekoppelt werden.

--TomcatMJ