Difference between revisions of "XDMCP & VNC"

From Briki
Jump to: navigation, search
(vRWDXfppqSnjRsDzEW)
 
(37 intermediate revisions by 24 users not shown)
Line 1: Line 1:
unated states, http://www.junkmail.ie/viewtopic.php?f=7&t=91553 altace low cost,  224690, http://muskytomsguideservice.com/BBoard/index.php?topic=242.0 price adalat,  =-)), http://www.swrpg.org/swbbs/viewtopic.php?f=4&t=51585 purchase allopurinol,  iiumgp, http://scaniav8.forumup.gr/viewtopic.php?p=1201&mforum=scaniav8#1201 advair diskus online,  oxzyeb, http://www.kyhuntingclub.com/forum/viewtopic.php?f=45&t=148937 cheap generic albuterol online,  :]]], http://www.nationalsocietyofchristianeducators.com/phpBB3/viewtopic.php?f=2&t=20220 price allopurinol, 80817, http://www.shutter-fingers.com/forum/viewtopic.php?f=2&t=184 albendazole online buy,  =-[, http://theavocadohouse.com/viewtopic.php?f=3&t=40793 order allegra online,  =-DDD, http://www.legitcode.com/distribution/viewtopic.php?f=12&t=181565 aldactone order, 001970, http://www.smokinghotmodels.com/forums/viewtopic.php?f=12&t=17215 allopurinol order,  234772, http://kyuudenforum.free.fr/viewtopic.php?p=8624#8624 accutane shop,  =), http://www.sierramusicschool.com/forum/viewtopic.php?f=11&t=21525 purchase allegra online,  %]]], http://dgs.net.ru/forum/web/viewtopic.php?p=13974#13974 cheap generic actos,  :[[, http://kingoffroading.com/forum/showthread.php?p=221527#post221527 altace online order,  gaydpi, http://www.hk-clan.myforum.ro/viewtopic.php?p=2999#2999 buy generic aggrenox online,  10687, http://mathtutors.ca/bbs/viewtopic.php?f=19&t=87438 cheapest generic aleve online,  =)), http://dogboard.com/showthread.php?p=236628#post236628 online albuterol sulfate buy,  :-(((, http://nuofficehours.com/viewtopic.php?f=19&t=121679 allopurinol cheap,  >:-PPP, http://micro-sprints.com/forum/viewtopic.php?f=13&t=60409 albendazole shop,  sbqxb, http://www.dirtbikecentral.net/forum/showthread.php?p=39335#post39335 generic altace,  90202, http://serialowy.info/topics168/buy-acyclovir-pharmacy-shop-vt977.htm#3419 cheap acyclovir,  101424, http://TheFirstGodOfWar.myforum.ro/viewtopic.php?p=6054#6054 generic aleve online,  7368, http://zonakz.net/phorum/viewtopic.php?p=1013863#1013863 low cost advair diskus, 8PP, http://traffichype.com/forum/showthread.php?p=2687#post2687 acetazolamide without prescription ,  54703, http://idealwebguam.com/uogfoundation/forum/viewtopic.php?pid=554182#p554182 alesse order,  8D,
+
== 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