1
0
mirror of synced 2026-05-05 23:56:19 +00:00
Files
xen-tools.xen-tools/roles/xdm
steve 7107b31e69 2006-08-24 20:33:07 by steve
Updated such that role scripts all live in one directory, regardless of
 the distribution to which they are meant to be applied.

  This role directory can be specified with "--roledir", or via the configuration file setting "roledir=/path/to/dir".

  See the following bug for rationale:
    http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=383822
2006-08-24 20:33:10 +00:00

59 lines
978 B
Bash
Executable File

#!/bin/sh
#
# Configure the new image to be a XDM VNC server.
#
# Steve
# --
# http://www.steve.org.uk/
#
prefix=$1
#
# This function installs a single package into the chroot, forcing
# the installation to be non-interactive.
#
function install_package
{
package=$1
DEBIAN_FRONTEND=noninteractive chroot ${prefix} /usr/bin/apt-get --yes --force-yes install $package
}
#
# Update APT lists.
#
chroot ${prefix} /usr/bin/apt-get update
#
# Install the packages
#
install_package xserver-xfree86
install_package vncserver
install_package xfonts-100dpi
install_package xfonts-75dpi
install_package xfonts-base
install_package rxvt
install_package xdm
install_package icewm-experimental
#
# Remove the default settings.
#
rm ${prefix}/etc/X11/xdm/Xserver
rm ${prefix}/etc/X11/xdm/Xservers
#
# Setup XDM to use the VNC server we installed.
#
/bin/echo ':0 /usr/bin/Xvnc /usr/bin/Xvnc -geometry 1024x768 -depth 24' > \
${prefix}/etc/X11/xdm/Xservers