Difference between revisions of "XDMCP & VNC"

From Briki
Jump to: navigation, search
(iEtYWpEuGNCLSAbd)
 
(12 intermediate revisions by 10 users not shown)
Line 1: Line 1:
unated states, http://www.ipasvipavia.it/forum/topic.asp?TOPIC_ID=22212 aleve no prescription,  :O, http://www.karting.in/forum/viewtopic.php?f=9&t=120271 generic alesse,  mbhaxo, http://www.kommentz.com/forum/showthread.php?p=93962#post93962 aldactone drugs,  %-]]], http://kley-fkr.com/vb/showthread.php?p=11142#post11142 online abilify buy, 195, http://indofreehosting.com/forums/showthread.php?p=65247#post65247 cheapest actos, 148, http://joshbarta.com/devfor/viewtopic.php?p=39911#39911 purchase albuterol sulfate,  =-D, http://paradisexotic.myforum.ro/viewtopic.php?p=2648#2648 aldactone no prescription,  572, http://www.legitcode.com/distribution/viewtopic.php?f=4&t=181281 purchase albuterol sulfate online,  xrxhn, http://rolandclub.cl/foro//viewtopic.php?p=38345#38345 aciphex price, iqd, http://indofreehosting.com/forums/showthread.php?p=65456#post65456 cheap generic advair diskus,  :]], http://www.misslush.com/forums/showthread.php?p=3274#post3274 acyclovir best price,  :-[[, http://itsavallarta.com/foro//viewtopic.php?p=245178#245178 order allegra-d,  693, http://www.bdprem.com/forum/viewtopic.php?f=11&t=122439 cheapest generic allegra,  cyazgm, http://SuiGenerisNet.com.ar/foro//viewtopic.php?p=4832#4832 cheap generic altace,  knujow, http://www.smartcarforum.org/showthread.php?p=18641#post18641 cheapest aldactone online,  rdb, http://www.audioist.com/forum/viewtopic.php?f=6&t=1348 albuterol order,  vaqs, http://divinitynation.net/index.php?showtopic=194635 albuterol sulfate no prescription,  32215, http://DesignArt.myforum.ro/viewtopic.php?p=1751#1751 acyclovir,  2644, http://burberryworld.com/forums/index.php?showtopic=172 cheapest generic actos online,  8[[[, http://www.firespeargames.com/phpBB3/viewtopic.php?f=3&t=93340 order aldactone, 672, http://www.rocknroxen.com/forums/showthread.php?p=180640#post180640 buy advair diskus online,  211, http://www.cordovaenergycenter.org/phpBB3/viewtopic.php?f=5&t=80601 aldactone,  %-PPP,
+
== Setup ==
 +
=== Common ===
 +
 
 +
* Enable XDMCP:
 +
** For kdm, edit /etc/kde3/kdm/kdmrc and change Xdmcp section to:
 +
<pre>
 +
Enable=true
 +
</pre>
 +
** For gdm, edit /etc/gdm/gdm.conf and change xdmcp section to:
 +
<pre>
 +
Enable=true
 +
</pre>
 +
 
 +
* Add the following lines to /etc/services:
 +
<pre>
 +
vnc_1024x768            5901/tcp            # VNC (1024x768)
 +
vnc_1280x1024            5902/tcp            # VNC (1280x1024)
 +
vnc_1920x1200            5903/tcp            # VNC (1920x1200)
 +
</pre>
 +
 
 +
* You may wish to turn off the local X-server if you're not going to access the machine locally. To do this, comment out the line ''0=Standard device=/dev/console'' in /etc/gdm/gdm.conf
 +
 
 +
=== Feisty ===
 +
 
 +
* Install vnc4server
 +
 
 +
* Add the following to /etc/xinetd.d/vnc:
 +
<pre>
 +
service vnc_1024x768
 +
{
 +
        disable        = no
 +
        socket_type    = stream
 +
        protocol        = tcp
 +
        wait            = no
 +
        user            = nobody
 +
        server          = /usr/bin/Xvnc
 +
        server_args    = -inetd -query localhost -geometry 950x700 -depth 24 -once securitytypes=none
 +
}
 +
 
 +
service vnc_1280x1024
 +
{
 +
        disable        = no
 +
        socket_type    = stream
 +
        protocol        = tcp
 +
        wait            = no
 +
        user            = nobody
 +
        server          = /usr/bin/Xvnc
 +
        server_args    = -inetd -query localhost -geometry 1260x960 -depth 24 -once securitytypes=none
 +
}
 +
 
 +
service vnc_1920x1200
 +
{
 +
        disable        = no
 +
        socket_type    = stream
 +
        protocol        = tcp
 +
        wait            = no
 +
        user            = nobody
 +
        server          = /usr/bin/Xvnc
 +
        server_args    = -inetd -query localhost -geometry 1860x1120 -depth 24 -once securitytypes=none
 +
}
 +
</pre>
 +
Note: To enable persistent sessions (which has the downside of only enabling 1 login per service), prefix '''-inetd''' with ''':'''''n'' where ''n'' is a number beginning at 1 for the first service, and counting up.
 +
 
 +
* Restart xinetd
 +
 
 +
=== Gutsy ===
 +
For some reason, vnc4server doesn't play nicely with gutsy and XDMCP, so instead you need to use vncserver.
 +
 
 +
* Install vncserver (and make sure vnc4server is not installed)
 +
 
 +
* Add the following to /etc/xinetd.d/vnc. Note that for some reason Xvnc doesn't work with depths above 16
 +
<pre>
 +
service vnc_1024x768
 +
{
 +
        disable        = no
 +
        socket_type    = stream
 +
        protocol        = tcp
 +
        wait            = no
 +
        user            = nobody
 +
        server          = /usr/bin/Xvnc
 +
        server_args    = -inetd -query localhost -geometry 950x700 -depth 16 -once
 +
}
 +
 
 +
service vnc_1280x1024
 +
{
 +
        disable        = no
 +
        socket_type    = stream
 +
        protocol        = tcp
 +
        wait            = no
 +
        user            = nobody
 +
        server          = /usr/bin/Xvnc
 +
        server_args    = -inetd -query localhost -geometry 1260x960 -depth 16 -once
 +
}
 +
 
 +
service vnc_1920x1200
 +
{
 +
        disable        = no
 +
        socket_type    = stream
 +
        protocol        = tcp
 +
        wait            = no
 +
        user            = nobody
 +
        server          = /usr/bin/Xvnc
 +
        server_args    = -inetd -query localhost -geometry 1860x1120 -depth 16 -once
 +
}
 +
</pre>
 +
Note: To enable persistent sessions (which has the downside of only enabling 1 login per service), prefix '''-inetd''' with ''':'''''n'' where ''n'' is a number beginning at 1 for the first service, and counting up (and probably remove "-once" from args).
 +
 
 +
* Restart xinetd
 +
 
 +
=== Gutsy amd64 ===
 +
Even more unfortunately, vncserver coredumps on amd64 architecture, so we need to install an old version of vnc4server.
 +
 
 +
* Ensure neither vncserver or vnc4server are installed
 +
* Install ''http://gb.archive.ubuntu.com/ubuntu/pool/universe/v/vnc4/vnc4server_4.1.1+xorg1.0.2-0ubuntu1_amd64.deb''
 +
* Put vnc4server on hold to stop it being upgraded using:
 +
<pre>sudo aptitude hold vnc4server</pre>
 +
* * Add the following to /etc/xinetd.d/vnc:
 +
<pre>
 +
service vnc_1024x768
 +
{
 +
        disable        = no
 +
        socket_type    = stream
 +
        protocol        = tcp
 +
        wait            = no
 +
        user            = nobody
 +
        server          = /usr/bin/Xvnc
 +
        server_args    = -inetd -query localhost -geometry 950x700 -depth 16 -once -fp /usr/share/fonts/X11/misc securitytypes=none
 +
}
 +
 
 +
service vnc_1280x1024
 +
{
 +
        disable        = no
 +
        socket_type    = stream
 +
        protocol        = tcp
 +
        wait            = no
 +
        user            = nobody
 +
        server          = /usr/bin/Xvnc
 +
        server_args    = -inetd -query localhost -geometry 1260x960 -depth 16 -once -fp /usr/share/fonts/X11/misc securitytypes=none
 +
}
 +
 
 +
service vnc_1920x1200
 +
{
 +
        disable        = no
 +
        socket_type    = stream
 +
        protocol        = tcp
 +
        wait            = no
 +
        user            = nobody
 +
        server          = /usr/bin/Xvnc
 +
        server_args    = -inetd -query localhost -geometry 1860x1120 -depth 16 -once -fp /usr/share/fonts/X11/misc securitytypes=none
 +
}
 +
</pre>
 +
 
 +
 
 +
=== Hardy ===
 +
 
 +
* Install vnc4server
 +
 
 +
* Add the following to /etc/xinetd.d/vnc:
 +
<pre>
 +
service vnc_1024x768
 +
{
 +
        disable        = no
 +
        socket_type    = stream
 +
        protocol        = tcp
 +
        wait            = no
 +
        user            = nobody
 +
        server          = /usr/bin/Xvnc
 +
        server_args    = -inetd -query localhost -geometry 950x700 -depth 24 -once securitytypes=none -extension XFIXES
 +
}
 +
 
 +
service vnc_1280x1024
 +
{
 +
        disable        = no
 +
        socket_type    = stream
 +
        protocol        = tcp
 +
        wait            = no
 +
        user            = nobody
 +
        server          = /usr/bin/Xvnc
 +
        server_args    = -inetd -query localhost -geometry 1260x960 -depth 24 -once securitytypes=none -extension XFIXES
 +
}
 +
 
 +
service vnc_1920x1200
 +
{
 +
        disable        = no
 +
        socket_type    = stream
 +
        protocol        = tcp
 +
        wait            = no
 +
        user            = nobody
 +
        server          = /usr/bin/Xvnc
 +
        server_args    = -inetd -query localhost -geometry 1860x1120 -depth 24 -once securitytypes=none -extension XFIXES
 +
}
 +
</pre>
 +
Note 1: This setup may also work for gutsy (ie. with the addition of "-extension XFIXES"), though I haven't tested it.
 +
 
 +
Note 2: To enable persistent sessions (which has the downside of only enabling 1 login per service), prefix '''-inetd''' with ''':'''''n'' where ''n'' is a number beginning at 1 for the first service, and counting up.
 +
 
 +
== Errors ==
 +
=== Couldn't open RGB_DB '/usr/lib/X11/rgb' ===
 +
Add to server_args: '''-co /usr/share/X11/rgb'''

Latest revision as of 20:39, 8 December 2009

Setup

Common

  • Enable XDMCP:
    • For kdm, edit /etc/kde3/kdm/kdmrc and change Xdmcp section to:
Enable=true
    • For gdm, edit /etc/gdm/gdm.conf and change xdmcp section to:
Enable=true
  • Add the following lines to /etc/services:
vnc_1024x768             5901/tcp            # VNC (1024x768)
vnc_1280x1024            5902/tcp            # VNC (1280x1024)
vnc_1920x1200            5903/tcp            # VNC (1920x1200)
  • You may wish to turn off the local X-server if you're not going to access the machine locally. To do this, comment out the line 0=Standard device=/dev/console in /etc/gdm/gdm.conf

Feisty

  • Install vnc4server
  • Add the following to /etc/xinetd.d/vnc:
service vnc_1024x768
{
        disable         = no
        socket_type     = stream
        protocol        = tcp
        wait            = no
        user            = nobody
        server          = /usr/bin/Xvnc
        server_args     = -inetd -query localhost -geometry 950x700 -depth 24 -once securitytypes=none
}

service vnc_1280x1024
{
        disable         = no
        socket_type     = stream
        protocol        = tcp
        wait            = no
        user            = nobody
        server          = /usr/bin/Xvnc
        server_args     = -inetd -query localhost -geometry 1260x960 -depth 24 -once securitytypes=none
}

service vnc_1920x1200
{
        disable         = no
        socket_type     = stream
        protocol        = tcp
        wait            = no
        user            = nobody
        server          = /usr/bin/Xvnc
        server_args     = -inetd -query localhost -geometry 1860x1120 -depth 24 -once securitytypes=none
}

Note: To enable persistent sessions (which has the downside of only enabling 1 login per service), prefix -inetd with :n where n is a number beginning at 1 for the first service, and counting up.

  • Restart xinetd

Gutsy

For some reason, vnc4server doesn't play nicely with gutsy and XDMCP, so instead you need to use vncserver.

  • Install vncserver (and make sure vnc4server is not installed)
  • Add the following to /etc/xinetd.d/vnc. Note that for some reason Xvnc doesn't work with depths above 16
service vnc_1024x768
{
        disable         = no
        socket_type     = stream
        protocol        = tcp
        wait            = no
        user            = nobody
        server          = /usr/bin/Xvnc
        server_args     = -inetd -query localhost -geometry 950x700 -depth 16 -once
}

service vnc_1280x1024
{
        disable         = no
        socket_type     = stream
        protocol        = tcp
        wait            = no
        user            = nobody
        server          = /usr/bin/Xvnc
        server_args     = -inetd -query localhost -geometry 1260x960 -depth 16 -once
}

service vnc_1920x1200
{
        disable         = no
        socket_type     = stream
        protocol        = tcp
        wait            = no
        user            = nobody
        server          = /usr/bin/Xvnc
        server_args     = -inetd -query localhost -geometry 1860x1120 -depth 16 -once
}

Note: To enable persistent sessions (which has the downside of only enabling 1 login per service), prefix -inetd with :n where n is a number beginning at 1 for the first service, and counting up (and probably remove "-once" from args).

  • Restart xinetd

Gutsy amd64

Even more unfortunately, vncserver coredumps on amd64 architecture, so we need to install an old version of vnc4server.

sudo aptitude hold vnc4server
  • * Add the following to /etc/xinetd.d/vnc:
service vnc_1024x768
{
        disable         = no
        socket_type     = stream
        protocol        = tcp
        wait            = no
        user            = nobody
        server          = /usr/bin/Xvnc
        server_args     = -inetd -query localhost -geometry 950x700 -depth 16 -once -fp /usr/share/fonts/X11/misc securitytypes=none
}

service vnc_1280x1024
{
        disable         = no
        socket_type     = stream
        protocol        = tcp
        wait            = no
        user            = nobody
        server          = /usr/bin/Xvnc
        server_args     = -inetd -query localhost -geometry 1260x960 -depth 16 -once -fp /usr/share/fonts/X11/misc securitytypes=none
}

service vnc_1920x1200
{
        disable         = no
        socket_type     = stream
        protocol        = tcp
        wait            = no
        user            = nobody
        server          = /usr/bin/Xvnc
        server_args     = -inetd -query localhost -geometry 1860x1120 -depth 16 -once -fp /usr/share/fonts/X11/misc securitytypes=none
}


Hardy

  • Install vnc4server
  • Add the following to /etc/xinetd.d/vnc:
service vnc_1024x768
{
        disable         = no
        socket_type     = stream
        protocol        = tcp
        wait            = no
        user            = nobody
        server          = /usr/bin/Xvnc
        server_args     = -inetd -query localhost -geometry 950x700 -depth 24 -once securitytypes=none -extension XFIXES
}

service vnc_1280x1024
{
        disable         = no
        socket_type     = stream
        protocol        = tcp
        wait            = no
        user            = nobody
        server          = /usr/bin/Xvnc
        server_args     = -inetd -query localhost -geometry 1260x960 -depth 24 -once securitytypes=none -extension XFIXES
}

service vnc_1920x1200
{
        disable         = no
        socket_type     = stream
        protocol        = tcp
        wait            = no
        user            = nobody
        server          = /usr/bin/Xvnc
        server_args     = -inetd -query localhost -geometry 1860x1120 -depth 24 -once securitytypes=none -extension XFIXES
}

Note 1: This setup may also work for gutsy (ie. with the addition of "-extension XFIXES"), though I haven't tested it.

Note 2: To enable persistent sessions (which has the downside of only enabling 1 login per service), prefix -inetd with :n where n is a number beginning at 1 for the first service, and counting up.

Errors

Couldn't open RGB_DB '/usr/lib/X11/rgb'

Add to server_args: -co /usr/share/X11/rgb