ComputeMode on top of Debian Lenny

From ComputeMode
Jump to: navigation, search

This page decribs the steps to install a ComputeMode server from scratch on a fresh newly installed Lenny Debian 32 bits (i386 arch) system.

Warning.png Warning

This page is deprecated. Please read instead: ComputeMode on top of Debian Squeeze


Install the base Debian Lenny system

  • boot Debian Lenny install media (netboot cdrom for instance), i386 flavor, and proceed to the install
  • 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

  • Add apt sources for Computemode repositories
cat <<EOF > /etc/apt/sources.list.d/computemode.list
deb ./
  • Add apt sources for OAR repositories
cat <<EOF > /etc/apt/sources.list.d/oar.list
deb ./
  • Some options can be tweaked:
cat <<EOF > /etc/apt/apt.conf.d/000custom
APT::Default-Release "stable";
APT::Cache-Limit 40000000;
Acquire::PDiffs "false";
  • 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-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

As php-pear in Debian Lenny doesn't provide the DB module anymore, we have to install it using pear

pear install db

(DB being deprecated, we might replace it in the next version of ComputeMode)

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
  • 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
  1. fix eth0:0 in /etc/network/interface
  2. 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
  • Create the directory to export for NFSROOT
mkdir /cm
  • 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)
  • then
apt-get install nis
  • set the domain name to "computemode"
  • wait for yp services startup to timeout or hit Ctrl-C, and ignore the package installation error.
  • run the NIS domain initialization
/usr/lib/yp/ypinit -m
  • finish the package installation
apt-get install -f

  • 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

Other services

Other services can be configured:

  • syslog-ng
  • ntp
  • ...

Installation of ComputeMode nodes image

  • Retrieve the Debian Sarge node image
cd /tmp/; wget
  • And untar it
tar xvfz /tmp/cm-debian-sarge.tgz -C /

Installation of OAR


Personal tools

user portal
developer portal
wiki stuff