3
# Add a command line switch to ltsp-build-client that installs desktop
4
# meta-packages so that diskless workstations can everything locally
5
add_option "fat-client" "`eval_gettext "run most or all applications locally"`" "advanced" "false"
6
add_option "fat-client-desktop" "`eval_gettext "run most or all applications locally"`" "advanced" "true"
9
# If fat client isn't enabled, just continue
10
[ -z "$option_fat_client_value" ] && return
12
# Check what the sysadmin chose to install, if (s)he is lazy and didn't
13
# specify one, then we install the desktop meta-package that's already
14
# installed on the server.
16
if [ -n "$option_fat_client_desktop_value" ]; then
17
export fat_client_desktop="$option_fat_client_desktop_value"
19
export fat_client_desktop=ubuntu-desktop
21
if [ $(dpkg-query -W --showformat='${Package}' ${cdd}ubuntu-desktop 2>/dev/null) ]; then
22
export fat_client_desktop=${ccd}ubuntu-desktop
28
# Check if the proc filesystem is mounted, if not do so
29
if [ ! -f $ROOT/proc/mounts ]; then
30
mount -t proc proc $ROOT/proc
33
# Install desktop packages, then remove excess and incompatible packages
34
chroot $ROOT apt-get --force-yes -yy install $fat_client_desktop
35
chroot $ROOT apt-get --force-yes -yy --purge remove gdm network-manager.* modemmanager ubufox apport-gtk apport apport-symptoms jockey-common jockey-gtk
36
chroot $ROOT apt-get --force-yes -yy --purge autoremove
38
# Disable the fast user switching applet, it doesn't work without GDM
39
chroot $ROOT gconftool-2 --direct --config-source xml:readwrite:/etc/gconf/gconf.xml.mandatory --set --type list --list-type string /apps/panel/global/disabled_applets "[OAFIID:GNOME_FastUserSwitchApplet,OAFIID:GNOME_IndicatorApplet]"
41
# Clean up package cache
42
chroot $ROOT apt-get clean