| [xdmcp] # Distributions: Ship with this off. It is never a safe thing to leave # out on the net. Setting up /etc/hosts.allow and /etc/hosts.deny to only # allow local access is another alternative but not the safest. # Firewalling port 177 is the safest if you wish to have xdmcp on. # Read the manual for more notes on the security of XDMCP. Enable=true |
! SECURITY: do not listen for XDMCP or Chooser requests ! Comment out this line if you want to manage X terminals with xdm !DisplayManager.requestPort: 0 |
| # right hand sides can match. # * #any host can get a login window # # To hardwire a specific terminal to a specific host, you can |
| [oracle@niuge ~]$ rpm -qa|grep vnc vnc-server-4.0-11.el4 vnc-4.0-11.el4 |
| [test@niuge ~]$ vncserver You will require a password to access your desktops. Password: Verify: xauth: creating new authority file /home/test/.Xauthority New 'niuge:3 (test)' desktop is niuge:3 Creating default startup script /home/test/.vnc/xstartup Starting applications specified in /home/test/.vnc/xstartup Log file is /home/test/.vnc/niuge:3.log |


| Creating default startup script /home/test/.vnc/xstartup Starting applications specified in /home/test/.vnc/xstartup Log file is /home/test/.vnc/niuge:3.log |
| #!/bin/sh # Uncomment the following two lines for normal desktop: # unset SESSION_MANAGER # exec /etc/X11/xinit/xinitrc [ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup [ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources xsetroot -solid grey vncconfig -iconic & xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" & twm & |
| # Uncomment the following two lines for normal desktop: unset SESSION_MANAGER exec /etc/X11/xinit/xinitrc |
| [test@niuge ~]$ vncserver -kill :3 Killing Xvnc process ID 30475 [test@niuge ~]$ |
| [test@niuge ~]$ vncserver New 'niuge:3 (test)' desktop is niuge:3 Starting applications specified in /home/test/.vnc/xstartup Log file is /home/test/.vnc/niuge:3.log |

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/7301064/viewspace-433050/ ,如需转载,请注明出处,否则将追究法律责任。