From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Tue, 11 Sep 2007 19:42:32 +0300 From: Michael Shigorin To: sysadmins@lists.altlinux.org Message-ID: <20070911164232.GT5511@osdn.org.ua> Mail-Followup-To: sysadmins@lists.altlinux.org, community@lists.altlinux.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="MiFvc8Vo6wRSORdP" Content-Disposition: inline Content-Transfer-Encoding: 8bit User-Agent: Mutt/1.4.2.1i Cc: community@lists.altlinux.org Subject: [Sysadmins] I: ltsp5 setup script X-BeenThere: sysadmins@lists.altlinux.org X-Mailman-Version: 2.1.9 Precedence: list Reply-To: shigorin@gmail.com, ALT Linux sysadmin discuss List-Id: ALT Linux sysadmin discuss List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 11 Sep 2007 16:42:33 -0000 Archived-At: List-Archive: --MiFvc8Vo6wRSORdP Content-Type: text/plain; charset=koi8-r Content-Disposition: inline Content-Transfer-Encoding: 8bit Здравствуйте. В приложении -- скриптик, который настроит 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 ------ Linux.Kiev http://www.linux.kiev.ua/ --MiFvc8Vo6wRSORdP Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename=install-ltsp5 #!/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 --MiFvc8Vo6wRSORdP Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="4.0-i586.list" rpm file:/pub/Linux/ALT/4.0/branch i586 classic rpm file:/pub/Linux/ALT/4.0/branch noarch classic --MiFvc8Vo6wRSORdP--