ltsp-info

From LTSPedia
Jump to: navigation, search

This server command shows information about your LTSP installation, server packages, and related client packages from each chroot in $BASE.

Usage

root@server #ltsp-info

Developer-24x24.png Extensions

Retrieving package information is distro specific. For this command to fully work on a distro, some distro-specific functions have to written to retrieve this package information. These functions are server_packages(), chroot_packages() and chroot_release().

Example

/usr/share/ltsp/ltsp-info-functions
 # Debian-specific function overrides for ltsp-info
 server_packages() {
    echo server packages:
    COLUMNS=200 dpkg -l 'ltsp*' 'ldm*' | awk '/ltsp|ldm/{print $1,$2,$3}'
    echo
 }
 
 chroot_packages() {
    chroot=$1
    if [ -f $chroot/var/lib/dpkg/status ]; then
        echo "packages in chroot: $chroot"
        COLUMNS=200 dpkg --root=$chroot -l 'ltsp*' 'ldm*' | awk '/ltsp-client|ldm|ltspfs/{print $1,$2,$3}'
        echo
    fi
 }
 
 chroot_release() {
    if [ -x $chroot/usr/bin/lsb_release ]; then
        echo "chroot information: $chroot"
        ROOT=$chroot ltsp-chroot lsb_release --all
        echo
    fi
 }
Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox