Prev | Current Page 297 | Next

Chris Tyler

"X Power Tools"

conf. If
your system does not use /etc/vnc.conf, you can modify the default configuration values
by editing the actual vncserver script using a text editor. Most of the defaults are
contained in global variables defined near the start of the script; for example, to
change the default screen size from 1024 ?— 768 to 800 ?— 600 and the default color
depth from 16 to 24 bits, change the geometry and depth variables:
#
# Global variables. You may want to configure some of these for your site.
#
$geometry = "800x600";
$depth = 16;
$vncJavaFiles = (((-d "/usr/share/vnc/classes") && "/usr/share/vnc/classes") ||
((-d "/usr/local/vnc/classes") && "/usr/local/vnc/classes"));
$vncUserDir = "$ENV{HOME}/.vnc";
$xauthorityFile = "$ENV{XAUTHORITY}" || "$ENV{HOME}/.Xauthority";
14.5 Using the VNC Viewers
To connect to a server from another system, execute vncviewer and specify the host
and display:
green$ vncviewer blue:4
Password: secret
14.6
198 Chapter 14: Using VNC
If you leave the connection information (host and display number) out, you will be
prompted for it; if the vncviewer command is not run from a terminal, the host/display
prompt and the password prompt will be presented graphically.


Pages:
285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309