# prompt. This VNC connection has a resolution of 1024x768, 16bit depth. service vnc1 { type = UNLISTED port = 5901 socket_type = stream protocol = tcp wait = no user = nobody server = /usr/bin/Xvnc server_args = -SecurityTypes None -inetd -once -query localhost -geometry 1024x768 -depth 16 disable = yes } # 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/bin/Xvnc server_args = -SecurityTypes None -inetd -once -query localhost -geometry 1280x1024 -depth 16 disable = yes } # 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/bin/Xvnc server_args = -SecurityTypes None -inetd -once -query localhost -geometry 1600x1200 -depth 16 disable = yes } # default: off # description: This serves out the vncviewer Java applet for the VNC \ # server running on port 5901, (vnc port 1). service vnchttpd1 { type = UNLISTED port = 5801 socket_type = stream protocol = tcp wait = no user = nobody server = /usr/bin/vnc_inetd_httpd server_args = 1024 768 5901 disable = yes } # 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/bin/vnc_inetd_httpd server_args = 1280 1024 5902 disable = yes } # 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/bin/vnc_inetd_httpd server_args = 1600 1200 5903 disable = yes } service VOEP-gui { port = 9240 socket_type = stream protocol = tcp user = root server = /bin/su server_args = -p -c /home/voep/EHR/VOE-gui voep passenv = REMOTE_HOST wait = no disable = no } service VOEP-hl7 { socket_type = stream user = voep wait = no disable = no server = /bin/bash server_args = -l /home/voep/EHR/VOE-hl7 passenv = REMOTE_HOST } service VOEP-vlink { port = 9245 socket_type = stream protocol = tcp user = voep server = /bin/bash server_args = -l /home/voep/EHR/VOE-vlink passenv = REMOTE_HOST type = UNLISTED wait = no disable = no } service VOET-gui { port = 9250 socket_type = stream protocol = tcp user = voet server = /bin/sh server_args = -l /home/voet/EHR/VOE-gui passenv = REMOTE_HOST type = UNLISTED wait = no disable = no } service VOET-hl7 { socket_type = stream user = voet wait = no disable = no server = /bin/bash server_args = -l /home/voet/EHR/VOE-hl7 passenv = REMOTE_HOST } service VOET-vlink { port = 9255 socket_type = stream protocol = tcp user = voet server = /bin/bash server_args = -l /home/voet/EHR/VOE-vlink passenv = REMOTE_HOST type = UNLISTED wait = no disable = no } vistaweb:/etc/xinetd.d # cd .. vistaweb:/etc # less xinetd.conf vistaweb:/etc # date Thu Jun 26 09:08:34 MST 2008 vistaweb:/etc # cp -a xinetd.conf xinetd.conf-2008-06-26 vistaweb:/etc # nano xinetd.conf bash: nano: command not found vistaweb:/etc # vi xinetd.conf vistaweb:/etc # grep -i instance xinetd.conf #instances = 30 vistaweb:/etc # grep -i instance xinetd. xinetd.conf xinetd.conf-2008-06-26 xinetd.d/ vistaweb:/etc # grep -i instance xinetd.d/* vistaweb:/etc # grep -ir instance xinetd.d/* vistaweb:/etc # vi xinetd.conf vistaweb:/etc # ls -al xinetd.* -rw-r--r-- 1 root root 624 2008-06-26 09:11 xinetd.conf -rw-r--r-- 1 root root 623 2006-11-25 14:22 xinetd.conf-2008-06-26 xinetd.d: total 112 drwxr-xr-x 2 root root 720 2008-04-14 13:49 . drwxr-xr-x 94 root root 7448 2008-06-26 09:11 .. -rw-r--r-- 1 root root 313 2006-11-25 14:21 chargen -rw-r--r-- 1 root root 333 2006-11-25 14:21 chargen-udp -rw-r--r-- 1 root root 258 2007-01-16 04:08 cups-lpd -rw-r--r-- 1 root root 313 2006-11-25 14:21 daytime -rw-r--r-- 1 root root 333 2006-11-25 14:21 daytime-udp -rw-r--r-- 1 root root 305 2006-11-25 14:21 echo -rw-r--r-- 1 root root 324 2006-11-25 14:21 echo-udp -rw-r--r-- 1 root root 371 2006-11-25 11:02 fam -rw-r--r-- 1 root root 492 2006-11-25 16:13 netstat -rw-r--r-- 1 root root 207 2007-08-02 10:00 rsync -rw-r--r-- 1 root root 337 2006-11-27 16:45 sane-port -rw-r--r-- 1 root root 332 2006-11-25 14:21 servers -rw-r--r-- 1 root root 334 2006-11-25 14:21 services -rw-r--r-- 1 root root 248 2007-11-19 16:16 swat -rw-r--r-- 1 root root 536 2006-11-25 16:34 systat -rw-r--r-- 1 root root 339 2006-11-25 14:21 time -rw-r--r-- 1 root root 333 2006-11-25 14:21 time-udp -rw-r--r-- 1 root root 2304 2007-07-30 09:45 vnc -rw-r--r-- 1 root root 2292 2007-07-30 07:01 vnc~ -rw-r--r-- 1 root root 2250 2006-11-27 11:35 vnc.rpmnew -rw-r--r-- 1 root root 281 2008-01-23 15:09 VOEP-gui -rw-r--r-- 1 root root 270 2008-01-23 15:10 VOEP-hl7 -rw-r--r-- 1 root root 305 2008-01-23 15:10 VOEP-vlink -rw-r--r-- 1 root root 296 2007-12-17 05:37 VOET-gui -rw-r--r-- 1 root root 270 2007-12-17 05:37 VOET-hl7 -rw-r--r-- 1 root root 305 2007-12-17 05:37 VOET-vlink vistaweb:/etc # ls -al xinetd.co* -rw-r--r-- 1 root root 624 2008-06-26 09:11 xinetd.conf -rw-r--r-- 1 root root 623 2006-11-25 14:22 xinetd.conf-2008-06-26 vistaweb:/etc # /etc/init.d/xinetd restart Shutting down xinetd: done Starting INET services. (xinetd) done vistaweb:/etc #