Lenny-x64-nfs-1.0

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 1.0 version of the nfs 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-base-1.0

Contents

Identification sheet

Lenny-x64-nfs-1.0

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.

Motd

Motd is updated :

cat > /etc/motd.tail <<EOF
Lenny-x64-nfs-1.0 (image based on Debian version Lenny/stable for AMD64/EM64T)
Maintained by Cyril Constantin <cyril.constantin@loria.fr>
Valid on Dell {PE1855, PE1950}, HP {DL140G3, DL145G2, DL385G2}, 
        IBM {e325, e326, e326m}, Sun {V20z, X2200 M2, X4100},
        Altix Xe 310, Carri CS-5393B
Applications
 * Text: Vim, XEmacs, JED, nano, JOE
 * Script: Perl, Python, Ruby
   (Type "dpkg -l" to see complete installed package list)
Misc
 * i386 shared libraries are available
 * SSH has X11 forwarding enabled
 * Max open files: 8192
 * TCP bandwidth: for 1Gbs
More details: https://www.grid5000.fr/index.php/Lenny-x64-nfs-1.0
EOF

Users

g5k user is removed

userdel --remove 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 

Mark

Finally, the date of the release is updated.

date > /root/release


Environment

Creating image's archive

Now, a valid minimal environment has been build. Its corresponding image file has to be generated. At this point, the environment contains configuration files that depends of the site which installs it. These files must be excluded from image archive to stay as neutral as possible.

System archive creation and retrieving is now an easy task:

tgz-g5k login@frontend:lenny-x64-nfs-1.0.tgz

Creating postinstall's archive

Postinstall archive is the lenny-x64-nfs-1.0 postinstall.

Recording environment

Recording environment can be done from a description file. So we create lenny-x64-base-1.0.dsc:

name = lenny-x64-nfs-1.0
description = https://www.grid5000.fr/index.php/Lenny-x64-nfs-1.0
author = cyril.constantin@loria.fr
filebase = file:///grid5000/images/lenny-x64-nfs-1.0.tgz
filesite = file:///grid5000/postinstalls/lenny-x64-nfs-1.0-post.tgz
size = 1000
initrdpath = /boot/initrd.img-2.6.26-2-amd64
kernelpath = /boot/vmlinuz-2.6.26-2-amd64
fdisktype = 83
filesystem = ext3

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

kaenvironments --add /grid5000/images/lenny-x64-nfs-1.0.dsc
Personal tools
Namespaces

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