Prev | Current Page 313 | Next

Chris Tyler

"X Power Tools"

An X application embedded in a web page
14.13
208 Chapter 14: Using VNC
password to be entered), and disabled the controls at the top of the applet. The
applet width and height have been matched to the size of the application window.
The next step is to configure xinetd/inetd for this new service. Append a service entry
to /etc/services:
vnc-gnuchess 5930/tcp
Match the port number to the port number used in the applet parameters in
index.html.
It??™s also a good idea to create a new user for this service, so that you can limit access
through this service (and identify any files created by it):
blue# useradd vnc-gnuchess
Next, create a service in /etc/xinetd.d/??”use the service name as the filename (/etc/
xinetd.d/vnc-gnuchess):
# default: on
# description: gnuchess via Xvnc
service vnc-gnuchess
{
flags = REUSE
socket_type = stream
wait = no
user = vnc-gnuchess
server = /usr/local/bin/vnc-gnuchess
log_on_failure += USERID
disable = no
}
If you??™re using inetd instead of xinetd, add an entry to /etc/inetd.conf instead:
vnc-gnuchess stream tcp nowait vnc-gnuchess /usr/local/bin/vnc-gnuchess
Finally, create a script which will start Xvnc, determine the display provided by that
copy of Xvnc, and then connect the client (gnuchess in this example) to that display:
#!/bin/bash
#
# /usr/local/bin/vnc-gnuchess :: start Xvnc and gnuchess
#
# This script is called by xinetd.


Pages:
301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325
wiersze urodzinowe Dyskusja Nr6 Wiadomosci firmowe akademia pokera poker