~ubuntu-branches/debian/squeeze/ltsp/squeeze

« back to all changes in this revision

Viewing changes to server/plugins/ltsp-build-client/Ubuntu/010-fat-client

  • Committer: Bazaar Package Importer
  • Author(s): Vagrant Cascadian
  • Date: 2010-01-27 14:22:23 UTC
  • mfrom: (34.2.36 upstream)
  • Revision ID: james.westby@ubuntu.com-20100127142223-yomxfg5ne6fhkauj
Tags: 5.1.99-1
* New upstream version:
  - Improved speed of group processing code for local apps.
  - Optimized code to handle lts.conf values by reducing the number of binary
    calls and caching some values.
  - ltsp-build-client plugins:
    + Rewrote functions that create sources.list to be more flexible and
      simpler handling of security mirrors.
    + Added option to mount an arbitrary server dir for apt package caching.
  - New NBD proxy binary, which reconnects an NBD client when necessary.
    replaces the old monitor_nbd script.
  - Disabled LTSP specific handling of sound on fat clients.

  - Updated translations:
    + Italian (it), by Vincenzo Campanella.
    + Polish (pl), by Wiktor Wandachowicz.
    + Spanish (es), by José Luis Redrejo Rodríguez.
    + Russian (ru), by Yuri Kozlov (Closes: #565293).
    + German (de), by Wolfgang Schweer (Closes: #565261).
    + Greek (el), by Alkis Georgopoulos.
    + Swedish (sv), by Martin Bagge (Closes: #565198).
    + Portuguese (pt), by Américo Monteiro (Closes: #565190).
    + French (fr), by Stéphane Graber.

  - New translations:
    + Japanese (ja) translation by Hideki Yamane (Closes: #565956).

* ltsp-server: Included example shutdown and restart .desktop files that use
  the new LTSP halt and reboot mechanisms.

* Updated patches:
  - use-test-binary
  - revert-pulseaudio-module-udev-detect

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
case "$MODE" in
2
 
    commandline)
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"
7
 
    ;;
8
 
    after-install)
9
 
        # If fat client isn't enabled, just continue
10
 
        [ -z "$option_fat_client_value" ] && return
11
 
 
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.
15
 
 
16
 
        if [ -n "$option_fat_client_desktop_value" ]; then
17
 
            export fat_client_desktop="$option_fat_client_desktop_value"
18
 
        else
19
 
            export fat_client_desktop=ubuntu-desktop
20
 
            for cdd in ed x k; do
21
 
                if [ $(dpkg-query -W --showformat='${Package}' ${cdd}ubuntu-desktop 2>/dev/null) ]; then
22
 
                        export fat_client_desktop=${ccd}ubuntu-desktop
23
 
                     return
24
 
                fi
25
 
            done
26
 
        fi
27
 
 
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
31
 
        fi
32
 
 
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
37
 
 
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]"
40
 
 
41
 
        # Clean up package cache
42
 
        chroot $ROOT apt-get clean
43
 
    ;;
44
 
esac