ltsp-chroot

Langue: en

Version: 305117 (debian - 07/07/09)

Section: 8 (Commandes administrateur)

NAME

ltsp-chroot --- wrapper script to chroot(8) into LTSP client environment

SYNOPSIS

ltsp-chroot [<command> <command-options>]

DESCRIPTION

ltsp-chroot calls chroot(8) and executes commands inside the LTSP client environment on the server, which is useful for system maintenance. It also sets the LTSP_HANDLE_DAEMONS environment variable to false, which prevents system daemons from starting inside the chroot on the server.

If the ROOT environment variable is set, it will chroot to that directory. If not, a default for ROOT is set, with a base directory of /opt/ltsp, and the architecture component, determined by dpkg(1) --print-architecture.

Note that the target environment must be of a compatible architecture, such as logging into an i386 chroot from an amd64 server.

ENVIRONMENT

ROOT sets the default directory that is chrooted into.

FILES

/etc/ltsp/ltsp-chroot.conf can be used to override the default values.

EXAMPLE

start a shell in the chroot:

ltsp-chroot

use /opt/ltsp/i386 as the default root, and run the apt-get(8) update command:

ROOT=/opt/ltsp/i386 ltsp-chroot apt-get update

SEE ALSO

chroot(8), dpkg(1), apt-get(8), http://ltsp.org

AUTHOR

copyright 2009 Vagrant Cascadian <vagrant@freegeek.org>, distributed under the terms of the GNU General Public License version 2 or any later version.