ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: Michael Shigorin <mike@osdn.org.ua>
To: sysadmins@lists.altlinux.org
Cc: community@lists.altlinux.org
Subject: [Comm] I: ltsp5 setup script
Date: Tue, 11 Sep 2007 19:42:32 +0300
Message-ID: <20070911164232.GT5511@osdn.org.ua> (raw)

[-- 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

             reply	other threads:[~2007-09-11 16:42 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-09-11 16:42 Michael Shigorin [this message]
2007-09-12  6:19 ` [Comm] [Sysadmins] " Alexander Volkov
2007-09-13  5:39 ` [Comm] " Aleksander N.Gorohovski
2007-09-13  6:48   ` Michael Shigorin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20070911164232.GT5511@osdn.org.ua \
    --to=mike@osdn.org.ua \
    --cc=community@lists.altlinux.org \
    --cc=shigorin@gmail.com \
    --cc=sysadmins@lists.altlinux.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

ALT Linux Community general discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/community/0 community/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 community community/ http://lore.altlinux.org/community \
		mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
	public-inbox-index community

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


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