Difference between revisions of "XDMCP & VNC"
From Briki
m (3 revision(s)) |
|||
| Line 1: | Line 1: | ||
| − | + | == Common == | |
* Enable XDMCP: | * Enable XDMCP: | ||
| Line 10: | Line 10: | ||
Enable=true | Enable=true | ||
</pre> | </pre> | ||
| − | |||
* Add the following lines to /etc/services: | * Add the following lines to /etc/services: | ||
| Line 18: | Line 17: | ||
vnc_1920x1200 5903/tcp # VNC (1920x1200) | vnc_1920x1200 5903/tcp # VNC (1920x1200) | ||
</pre> | </pre> | ||
| + | |||
| + | == Feisty == | ||
| + | |||
| + | * Install vnc4server | ||
* Add the following to /etc/xinetd.d/vnc: | * Add the following to /etc/xinetd.d/vnc: | ||
| Line 55: | Line 58: | ||
</pre> | </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. | 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 | * Restart xinetd | ||
Revision as of 16:16, 3 December 2007
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)
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