How to install serversLittle tutorial on how to deploy a server machine. These steps have been performed on Pygmee and reported here for future needs. Before to startTry to plan everything before to start:
Back up data
Change Old Hard-DrivesIf possible change old disks. New disks are a little expense to do and guarantee longer life to data. Strongly recommended RAID1 (mirroring) configuration: don't use hardware RAID but Software RAID since Debian doesn't support it (during Debian installation). Partitioning the disksWe'll assume to have 2 HDD of the same size; make the same partitions on both disks. Ex: 50Gb / 400Gb /data 200Mb /boot 4Gb Swap The same partitions in both disks will be used to create RAID Arrays. Install Debian
Install SoftwareMake a diff of the currently installed packages and the previously ones and reinstall the missing ones.
$ dpkg -l >> installed_packages_new.txt
$ cat installed_packages.txt | cut -d " " -f 3-3 > tmp1.txt $ cat installed_packages_new.txt | cut -d " " -f 3-3 > tmp2.txt
$ grep -v -f tmp2.txt tmp1.txt
Configure the systemNetworkThere are two main connections: an external to internet and an internal for intra-servers communication. The NFS4 filesystem mounts are allowed only within the internal network. Automount$ aptitude install autofs KerberosFollow the instructions in here under the section Linux authentication (PAM) UsersThere are several ways to recreate all the kerberos users on the system. The main point is to rematch the users with the previous uid. Supposing that you saved the old passwd and shadow files then recreate the previous users in the following way: $ grep \\*K\\* /OldSystemBackup/etc/shadow | cut -d : -f 1 > /tmp/kerberos_users $ grep -f /tmp/kerberos_users /OldSystemBackup/etc/passwd | cut -d : -f 1,3 --output-delimiter ' ' \ | awk '{ print "useradd --uid", $2, " --password '*K*'", $1 }' > /tmp/users_to_create $ sh /tmp/users_to_create Firewall (iptables)Follow instructions in here under the section /etc/init.d/iptables (firewall) and adapt the script for the specific host |