To configure VNC to run under the sunpciadmin account, in the group sunpcigroup, with the home directory /home/sunpciadmin, you would modify the following VNC section into the /etc/Master.ini file as follows:

[VNC]

CmdLineArgs=-geometry 1152x900 -depth 24 DisplayNum=10 StartupScript=/opt/SUNWspci3/bin/VNCStartup

UID=sunpciadmin

;User

ID

GID=sunpcigroup

;Group ID

HomeDir=/home/sunpciadmin

;Home

directory

AutoStart=Disabled

 

 

This configuration information would set the SunPCi daemon to start up the Xvnc server running at 1152 x 900 pixel resolution, with a pixel depth of 24 bits per pixel. The server would accept connections for display number 10 (DISPLAY= hostname:10). The process would run under the sunpciadmin account, in the group sunpcigroup, with the home directory /home/sunpciadmin, and the daemon would also run the /opt/SUNWspci3/bin/VNCStartup script to start up the CDE window manager and an xterm terminal emulator.

You can add other entries for the Xvnc server, for example, one that tells Xvnc to use a foreign language keyboard key table. For example, if the person who will be administering the SunPCi cards has a Sun German Type 5 keyboard, you would modify the CmdLineArgs entry as follows:

CmdLineArgs=-geometry 1152x900 -depth 24 -keytable Germany5

The X11 key table files are located in the /usr/openwin/share/etc/keytables directory. See the Xvnc man page for other Xvnc command options.

After you have configured VNC, you must enable it, which will cause the SunPCi daemon to start running the Xvnc server. To enable VNC for Boot@Boot use the following command:

#/opt/SUNWspci3/bin/sunpcidadm -e VNC

This changes the AutoStart line in the /etc/Master.ini file to Enabled, and instructs the SunPCi daemon to reprocess the file and spawn the Xvnc server process with the configuration specified in the file. Once this is done, you can run the vncviewer to interact with any X applications that are displaying to the Xvnc server.

122 SunPCi III 3.2.1 User’s Guide • March 2004

Page 164
Image 164
Sun Microsystems 817-3630-11 manual CmdLineArgs=-geometry 1152x900 -depth 24 -keytable Germany5