1
0
mirror of synced 2026-01-20 01:25:09 +00:00
steve 4ddc86bb69 2006-08-25 10:54:25 by steve
1.  Added new global function in our global functions file "removeDebianPackage".

  2.  Updated all role scripts to use the common function code instead of their own individual functions.
2006-08-25 10:54:25 +00:00

59 lines
1.0 KiB
Bash
Executable File

#!/bin/sh
#
# Configure the new image to be a GDM VNC server.
#
# Steve
# --
# http://www.steve.org.uk/
#
prefix=$1
#
# Source our common functions - this will let us install a Debian package.
#
if [ -e /usr/lib/xen-tools/common.sh ]; then
. /usr/lib/xen-tools/common.sh
else
echo "Installation problem"
fi
#
# Update APT lists.
#
chroot ${prefix} /usr/bin/apt-get update
#
# Install the packages
#
installDebianPackage ${prefix} xserver-xfree86
installDebianPackage ${prefix} vncserver
installDebianPackage ${prefix} xfonts-100dpi
installDebianPackage ${prefix} xfonts-75dpi
installDebianPackage ${prefix} xfonts-base
installDebianPackage ${prefix} rxvt
installDebianPackage ${prefix} gdm
installDebianPackage ${prefix} icewm-experimental
#
# Add a new section to the GDM configuration file.
#
cat <<EOF >> ${prefix}/etc/X11/gdm/gdm.conf
[server-VNC]
name=VNC server
command=/usr/bin/Xvnc -geometry 800x600 -depth 24
flexible=true
EOF
#
# Make the new section the default
#
perl -pi.bak -e 's/^0=Standard/0=VNC/g' ${prefix}/etc/X11/gdm/gdm.conf