Lenny-x64-nfs-2.1

From Grid5000
Jump to: navigation, search


Warning.png Warning

This environment has been marked as deprecated since 3 June 2013. Please consult the Environment_Management#Deletion_and_Deprecation to know what it means for this environment.

This page describes the 2.1 version of the minimal environment based on Lenny version of Debian distribution for AMD64/EM64T machines. It intends to explain how this environment was built and how to use it with Kadeploy. This page is inspired from Lenny-x64-nfs-2.0

Contents

Identification sheet

Lenny-x64-nfs-2.1

  • Based on: Debian version lenny for amd64
  • Reference file: /grid5000/images/lenny-x64-nfs-2.1.tgz at Bordeaux (md5sum is b0756d201e0719c40785b746b8d5f395)
  • Valid on: griffon , grelon , sagittaire , capricorne , netgdx , gdx , bordeplage , bordereau , parapide , paramount , paraquad , paradent , azur , helios , sol , suno , edel , genepi , adonis , chuque , chinqchint , chicon , chti

Kernel version 2.6.26-2-amd64 from Debian for amd64/em64t

Authentication

  • Remote console: enabled on ttyS0 at 34800 bps
  • Services: ldap:yes, nfs:yes
  • Accounts: root:grid5000

Applications

Misc

Build

Here are explanations on how the system was installed and tuned from a lenny-x64-base-2.1.

Users

g5k user is removed

userdel g5k

Packages

Ldap and nfs packages are installed.

apt-get update
apt-get upgrade
apt-get install libnss-ldap libpam-ldap nfs-common nscd libldap2 ldap-utils libsasl2-modules libsasl2-modules-ldap

Configuration

cat > /etc/nsswitch.conf <<EOF
passwd:         files ldap
group:          files ldap
shadow:         files ldap
hosts:          files dns mdns
networks:       files
protocols:      db files
services:       db files
ethers:         db files
rpc:            db files
netgroup:       nis
EOF
cat > /etc/pam.d/common-account <<EOF 
account sufficient      pam_unix.so
account sufficient      pam_ldap.so
account required        pam_deny.so
EOF
cat > /etc/pam.d/common-auth <<EOF
auth    sufficient      pam_unix.so nullok
auth    sufficient      pam_ldap.so use_first_pass
auth    required        pam_deny.so
EOF
cat > /etc/pam.d/common-password <<EOF
password sufficient     pam_ldap.so
password sufficient     pam_unix.so nullok md5 obscure min=6 max=8
password required       pam_deny.so
EOF
cat > /etc/pam.d/common-session <<EOF
session required        pam_unix.so
EOF
ln -sf /etc/ldap/ldap.conf /etc/ldap.conf
ln -sf /etc/ldap/ldap.conf /etc/libnss-ldap.conf
ln -sf /etc/ldap/ldap.conf /etc/pam_ldap.conf

as of /etc/ldap.conf ; its in the postinstall archive.

Mark

Finally, the date of the release is updated.

date > /root/release

Recording environment With kadeploy3

Recording environment can be done from a description file. So we create /grid5000/descriptions/lenny-x64-nfs-2.0.dsc3:

name : lenny-x64-nfs
version : 3
description : https://www.grid5000.fr/index.php/lenny-x64-nfs-2.1
author : guillaume.ranquet@inria.fr
tarball : /grid5000/images/lenny-x64-nfs-2.1.tgz|tgz
postinstall : /grid5000/postinstalls/etch-x64-nfs-2.0-post.tgz|tgz|traitement.ash /rambin
kernel : /boot/vmlinuz-2.6.26-2-amd64
initrd : /boot/initrd.img-2.6.26-2-amd64
fdisktype : 83
filesystem : ext3
visibility : public
environment_kind : linux

With kaenv3, the new environment can be known by Kadeploy:

kaenv3 -o add -f lenny-x64-nfs-2.1.dsc3
Personal tools
Namespaces

Variants
Actions
Public Portal
Users Portal
Admin portal
Wiki special pages
Toolbox