ComputeMode on top of Debian Etch
This page describs the steps to install a ComputeMode server from scratch on top of a newly installed Debian Etch system.
Warning | |
---|---|
This page is deprecated. Please visit ComputeMode on top of Debian Squeeze. |
Warning | |
---|---|
ComputeMode Debian packages used here are only available for the i386 (32 bits) architecture. |
Install the base Debian Etch system
- in tasksel, select web server + dns server + standard system
- install OpenSSH server
apt-get install openssh-server
We now have a up and remotely accessible wonderful running Debian system !
Update the package sources
- We set sources for the stable but also testing Debian flavor, as well as the Computemode and OAR repository
cat <<EOF > /etc/apt/sources.list deb http://ftp.fr.debian.org/debian/ etch main non-free contrib deb-src http://ftp.fr.debian.org/debian/ etch main non-free contrib deb http://security.debian.org/ etch/updates main contrib deb-src http://security.debian.org/ etch/updates main contrib deb http://ftp.fr.debian.org/debian/ lenny main non-free contrib deb-src http://ftp.fr.debian.org/debian/ lenny main non-free contrib deb http://computemode.imag.fr/files/debian/etch ./ deb http://oar.imag.fr/debian/stable/2.2/ ./ EOF
- We now configure the pinning, so that the Debian testing packages are not installed by default
cat <<EOF > /etc/apt/preferences Package: * Pin: release o=Debian,a=testing Pin-Priority: 100 Package: * Pin: release o=Debian,a=stable Pin-Priority: 900 EOF
- Some options can be tweaked:
cat <<EOF > /etc/apt/apt.conf.d/000custom APT::Default-Release "stable"; APT::Cache-Limit 40000000; Apt::Get::Purge; Acquire::PDiffs "false"; EOF
- Finally:
apt-get update
Installation of ComputeMode web interface
We install ComputeMode packages, with the dependancies (Apache2, PHP, aso)
apt-get install cmwebadmin cmwebadmin-data cmwebadmin-manual cmwebadmin-nonfree cmwebadmin-portal
- accept deps, accept db reset, accept the sudoers modification
- get rid of the RedirectMatch ^/$ /apache2-default/ in apache default site
- you may remove /var/www/index.php to get the index.htm page
Installation of Computemode modified HPA's tftp server
Our patched version of HPA's tftpd provides a CGI like feature, for file with dynamic content retrieval
apt-get install xinetd apt-get install cmtftpd-hpa apt-get install -t lenny busybox-static apt-get install cmtftpd-hpa-buildchroot invoke.rc.d xinetd restart
Installation and configuration of the core services
- First install ISC DHCP and DNS server, as well as Linux NFS server
apt-get install bind9 dhcp3-server nfs-kernel-server
- Then retrieve Computemode ready to use configuration files
cd /tmp; wget http://computemode.imag.fr/files/cm-conf-files.tgz
- We can now put the configuration files in place
tar xvfz /tmp/cm-conf-files.tgz -C /
- Fix the configuration files with regard to the IP address which is actually assigned to your server
- fix eth0:0 in /etc/network/interface
- fix the DNS forwarders in /etc/bind/named.conf.options
- Then run at once (if accessing the machine remotely) the reconfiguration of the network interfaces
ifdown eth0 ;ifup eth0; ifup eth0:0
- And finally restart the services
invoke-rc.d bind9 restart invoke-rc.d dhcp3-server restart exportfs -rv
Installation of an account database
ComputeMode diskless node image ships with NIS configured, using the "computemode" domaine. If you do want to use NIS and run the NIS server on the ComputeMode server, run:
- check that the configuration is set to act as a NIS master in /etc/default/nis (file provided in the cm-conf-files.tgz we retrieved above)
NISSERVER=master
- then
apt-get install nis
- set the domain name to "computemode"
- run the NIS domain initialization
/usr/lib/yp/ypinit -m
- finally restart the NIS serivce
invoke-rc.d nis restart
your NIS server should now be up and running
- create your user accounts, etc...
- and generate the NIS maps
cd /var/yp make
Other services
Other services can be configured:
- syslog-ng
- ntp
- ...
Installation of ComputeMode nodes image
- Retrieve the Debian Sarge node image
cd /tmp/; wget http://computemode.imag.fr/files/cm-debian-sarge.tgz
- And untar it
tar xvfz /tmp/cm-debian-sarge.tgz -C /
Installation of OAR
TBC