Setting up VNC for users
vncserver script creates a $HOME/.vnc/xstartup file that runs the
window manager, which is useless for most purposes. Ideally, the
administrator should modify the vncserver script to use the system
default desktop. Many sysadmins fail to do this. Others forget to
the fix when updating to a new version of VNC.
To work around this problem, BIRCH provides a script called
To use this, the BIRCH administrator should create a global
file in $BIRCH/local/admin/xstartup. If this file exists, vncsetup
check for the existence of $HOME/.vnc/xstartup. If that file is
found, the BIRCH xstartup file will be copied to the user's .vnc
directory. If the user already has an xstartup script, then
will do nothing.
The BIRCH 'newuser' script automatically runs vncsetup, so that as
as a user sets up their account for BIRCH, they will also have
to vnc, using the specified desktop.
If you want BIRCH to automatically create a working .vnc/xstartup
for each new user, simply create a $BIRCH/local/admin/xstartup
and make sure it is world-readable. For example, on most
and Solaris systems, the following file will run a GNOME desktop
global xstartup file must be world-readable, and should probably
user-executable ie. chmod 700 xstartup. It is not necessary, since
vncsetup script will automatically run chmod 700 after copying the
to the user's .vnc directory. However, it couldn't hurt to
the file the correct permissions to begin with.
Please send suggestions of comments
regarding this page to