ALT Linux sysadmins discussion
 help / color / mirror / Atom feed
* [Sysadmins] I: ltsp5 setup script
@ 2007-09-11 16:42 Michael Shigorin
  2007-09-12  6:19 ` Alexander Volkov
  0 siblings, 1 reply; 2+ messages in thread
From: Michael Shigorin @ 2007-09-11 16:42 UTC (permalink / raw)
  To: sysadmins; +Cc: community

[-- Attachment #1: Type: text/plain, Size: 912 bytes --]

	Здравствуйте.
В приложении -- скриптик, который настроит LTSP5-сервер, исходя
из 4.0/branch на местном NFS и дефолтной сети _для терминалов_
192.168.0.0/24 (туда раздаётся DHCP).  Благодаря трудам led@
в бранче сейчас всё вполне пригодное; точный список версий,
на которых сделано и проверено, включен в документацию:

http://www.freesource.info/wiki/Dokumentacija/LTSP5?v=11h9

Кусочек sources.list, который используется -- также прилагаю.

Это всё может потребовать ещё пару аккуратных взмахов надфилем,
но более-менее пригодно в качестве нулевого приближения для
лёгкого поднятия терминального сервера.

В дальнейших планах -- spt-profiles-ltsp-standalone и
spt-profiles-ltsp-ovz.

Комментарии, замечания, пожелания и патчи всячески приветствуются.

PS: пишу в две рассылки, просьба отвечать в одну или лично.

-- 
 ---- WBR, Michael Shigorin <mike@altlinux.ru>
  ------ Linux.Kiev http://www.linux.kiev.ua/

[-- Attachment #2: install-ltsp5 --]
[-- Type: text/plain, Size: 1953 bytes --]

#!/bin/sh
# Michael Shigorin, 2007
# a script to install standalone LTSP5 server 
# based on ALT Linux 4.0/branch dated 20070911
# (ltsp5-server-5.0-alt0.44)

# NB: don't forget to umount extra NFS mounts
# and rm -rf /var/lib/ltsp5/i586 in case of
# script failure before re-running it

# our office specific parts
mkdir -p /pub
mount nfs:/var/ftp/pub /pub
cp -a /pub/Linux/ALT/sources.list.d/4.0-i586.list /etc/apt/sources.list.d/
rm -f /etc/apt/sources.list.d/sources.list

# install packages needed; choose KDE variant
apt-get update && apt-get install -y ltsp5-server-kde || exit 1

# local specifics again
subst 's,MIRROR=.*,MIRROR=file:/pub/Linux/ALT/4.0/branch,' /etc/ltsp/ltsp-build-client.conf
echo EXTRA_MIRROR='"file:/pub/Linux/ALT/local/4.0 i586 hasher"' >> /etc/ltsp/ltsp-build-client.conf
ltsp-build-client || exit 2

# configure base services for 192.168.0.1/24 on some interface
mv /etc/dhcp/dhcpd.conf /etc/dhcp/dhcpd.conf.BAK
cp -a /etc/ltsp/dhcpd.conf /etc/dhcp
subst 's/only_from = 127.0.0.1/only_from = 192.168.0.0\/24/' /etc/xinetd.conf
subst 's/^PORTMAP_ARGS/#&/' /etc/sysconfig/portmap
subst 's/-port -1 //' /etc/sysconfig/xfs
#grep ^Enable /etc/X11/kdm/kdmrc

# chkconfig&restart services needed
# tftp is xinetd-based, service has nothing to do there
chkconfig dm on
chkconfig tftp on
chkconfig xinetd on
chkconfig portmap on
service dhcpd restart
service xinetd restart
service portmap restart
service nfs restart
service ltspswapd restart
service xfs restart
service dm restart

# add localdev support -- we're on hardware not in VE okay?
grep -q ^fuse /etc/modules || echo fuse >> /etc/modules
modprobe fuse
control fusermount public

# care for resolving in the most crude manner possible
grep -q ^192.168.0.1 /etc/hosts || echo "192.168.0.1 server server.ltsp" >> /etc/hosts
grep -q ^192.168.0.250 /etc/hosts || {
	for i in `seq 20 250`; do
		echo "192.168.0.$i ws$i ws$i.ltsp" >> /etc/hosts
	done
}
update_chrooted conf

[-- Attachment #3: 4.0-i586.list --]
[-- Type: text/plain, Size: 98 bytes --]

rpm file:/pub/Linux/ALT/4.0/branch i586 classic
rpm file:/pub/Linux/ALT/4.0/branch noarch classic

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2007-09-12  6:19 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-09-11 16:42 [Sysadmins] I: ltsp5 setup script Michael Shigorin
2007-09-12  6:19 ` Alexander Volkov

ALT Linux sysadmins discussion

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/sysadmins/0 sysadmins/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 sysadmins sysadmins/ http://lore.altlinux.org/sysadmins \
		sysadmins@lists.altlinux.org sysadmins@lists.altlinux.ru sysadmins@lists.altlinux.com
	public-inbox-index sysadmins

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.sysadmins


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git