Neu: Automatisiertes Setup

Die bisherigen Erleichterungen des Setups wurden durch eine automatisierte Variante ersetzt:

Anleitung für eine Flash- oder non-Raid-Installation


Historisch der Reihe nach: Debian auf TS400 aufsetzen

folgend auf diese Anleitung kommt 'dasselbe' nochmal in seiner Ursprünglichen Form, mit allen sichtbaren Korrekturen. Der Grund liegt darin, dass heute vieles automatisiert ist und sich das ursprüngliche manuelle 'Wie' in diesen Korrekturen befindet.

Anleitung für eine Flash- oder non-Raid-Installation


alternativ: Nach Grundsetup Installationsscript ausführen:

wget http://hapi/downloads/ts400setup.sh
sh ts400setup.sh

alternativ: Ab Image individualisieren

alte udevd rule löschen (und später neu starten):
rm /etc/udev/rules.d/z25_persistent-net.rules
alte ssh-Schlüssel löschen:
rm /etc/ssh/ssh_host*key*
alte openVPN-Schlüssel löschen:
rm /etc/openvpn/ts400-*
neue ssh-Schlüssel erstellen lassen:
aptitude reinstall openssh-server
hostname auf 'ts400' setzen:
echo ts400 > /etc/hostname
Software neu installieren:
wget -O bootstrap http://ts400-dev/cloneme?bootstrap
php bootstrap force pwd=[password]

...oder alles per Script:

wget http://hapi/downloads/ts400individualize.sh;sh ts400individualize.sh
Do a normal setup of debian Etch:

setup users

set up user apsag gwlgwl
set up root [password]

make system acessible

aptitude install ssh

Telnet should work now

get and include public key for debian.mcmillan.net.nz

wget http://hapi/downloads/eaccelerator.pgp; apt-key add eaccelerator.pgp; rm eaccelerator.pgp

sources.list:

--snip--
deb http://hapi:9999/ftp.ch.debian.org/debian/ stable main contrib non-free
deb http://hapi:9999/security.debian.org/ stable/updates main
deb http://hapi:9999/debian.mcmillan.net.nz/debian etch awm
--snip--

or do a wget http://hapi/downloads/sources.list;mv sources.list /etc/apt

Update all

aptitude update
apt-get install debian-archive-keyring debian-keyring
apt-key update
aptitude update
aptitude dist-upgrade


install components:

aptitude install partimage sqlite3 pnscan ntpdate ntp-simple iroute dnsmasq sox ppp locales timezoneconf minicom dnsutils ftp less xinetd runit \
  samba swat smbfs smbclient snmp snmpd ssmtp nail mailx lpr smsclient openvpn vtun efax mgetty smartmontools festival ifplugd iftop watchdog \
  man2html lynx x-window-system xdm fluxbox mozilla-firefox synaptic xserver-xorg-input-all xserver-xorg-video-all discover \
  php5-common php5-sqlite libapache2-mod-php5 php5-cgi php5-cli php5-gd php5-eaccelerator



fix samba access

in samba users root and apsag need to be reenabled with their passwords:

(echo talisker; echo talisker ) | smbpasswd -s -a root
(echo gwlgwl; echo gwlgwl ) | smbpasswd -s -a apsag

do a wget http://hapi/downloads/smb.conf;mv smb.conf /etc/samba
->all done later in doclone.php -> see below

!!ATTENTION!! kernel 2.6.18 issue on EES-3512:
Kernel 2.6.18 does not start without monitor attached!
You must install a newer kernel, e.g. 2.6.21

remove the old kernel, then.

you need to add
'deb http://hapi:9999/ftp.ch.debian.org/debian/ testing main contrib non-free'
to sources.list

There is a customized kernel 2.6.22 for Etch on TS400 on hapi. Do this on all types of PCs:

wget http://hapi/downloads/linux-image-2.6.22.15-ts400_2008-02-14_i386.deb
dpkg -i linux-image-2.6.22.15-ts400_2008-02-14_i386.deb
rm linux-image-2.6.22.15-ts400_2008-02-14_i386.deb



initial setup

execute syssetup.php

copy & implement files in these subdirs:

/usr
/etc setup files to copy
/etc setup files to implement carefully

or do mkdir mkdir /mnt/smb;mount -t cifs //zeus/TS400CPU$ /mnt/smb -o username=apsag
and do cp -av /mnt/smb/how\ to\ setup\ a\ fresh\ ts400/root\ to\ copy/* /

newer method:

mkdir /mnt/source; mount -t cifs //ts400-dev/root /mnt/source -o username=root
execute /mnt/source/var/alertroot/doclone.php host=ts400-dev pwd=[password]
umount /mnt/source;rmdir/mnt/source


method over http:

do a wget -O bootstrap http://ts400-dev/cloneme?bootstrap
execute php bootstrap pwd=[password]

Make Links to txt2pho and mbrola into /usr/local/bin
It's done within job_voice.php