Packaging/Server

From LTSPedia
Jump to: navigation, search

First, download the sources and enter the ltsp-trunk dir.

root@server #bzr branch lp:~ltsp-upstream/ltsp/ltsp-trunk
root@server #cd ltsp-trunk
root@server #bzr revert -r<revision number>

Contents

Dependencies

Install

Several types of files are installed.

Scripts

The commands listed here are generic and should be used by all distro's using LTSP. All these should be copied executable.

cp server/localapps/ltsp-localapps /usr/bin
cp server/ltsp-info /usr/sbin
cp server/ltsp-build-client /usr/sbin
cp server/ltsp-update-kernels /usr/sbin
cp server/ltsp-chroot /usr/sbin
cp server/ltsp-update-image /usr/sbin
cp server/ltsp-swapfile-delete /usr/sbin
cp server/nbdswapd /usr/sbin

Plugins & Functions

First copy the common stuff in /server/share, then overlay it with everything in /server/$DISTRO . The copying of the ltsp-build-client plugins might seem a bit inconsistent in comparison with the general design. But this one hasn't been rewritten yet.

mkdir /usr/share/ltsp
mkdir -p /usr/share/ltsp/plugins/ltsp-build-client/common
mkdir -p /usr/share/ltsp/plugins/ltsp-build-client/$DISTRO
cp server/share/ltsp-server-functions /usr/share/ltsp/ltsp-server-functions
cp common/ltsp-common-functions /usr/share/ltsp/ltsp-server-common-functions
cp server/share/ltsp/plugins/ltsp-build-client/common/* /usr/share/ltsp/plugins/ltsp-build-client/common/.
cp server/share/ltsp/plugins/ltsp-build-client/$DISTRO/* /usr/share/ltsp/plugins/ltsp-build-client/$DISTRO/.
cp server/$DISTRO/share/* /usr/share/ltsp/.

Docs & Configs

mkdir /etc/ltsp
cp server/configs/ltsp-update-image.excludes /etc/ltsp/ltsp-update-image.excludes
cp server/configs/ltsp-server.conf /etc/ltsp/ltsp-server.conf
cp server/configs/lts.conf /usr/share/doc/ltsp-server/examples/lts.conf
cp server/configs/dhcpd.conf /usr/share/doc/ltsp-server/examples/dhcpd.conf
cp server/docs/examples/ltsp-server-dnsmasq.conf usr/share/doc/ltsp-server/examples/ltsp-server-dnsmasq.conf
cp server/$DISTRO/configs/* /etc/ltsp/.
cp server/$DISTRO/configs/$TOOL_CONFIG_DIRS <appropriate dirs>

Related Packages

Debian ltsp-server* an standalone version with more dependencies and configuration, ltsp-server only installs ltsp-build-client
Gentoo ltsp-server optional USE flags for X, nbd and nfs dependencies
Ubuntu ltsp-server* an standalone version with more dependencies and configuration, ltsp-server only installs ltsp-build-client
Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox