Modifications entre les versions 2 et 14 (s'étendant sur 12 versions)
Version 2 à la date du 2007-08-03 17:05:33
Taille: 464
Éditeur: JérômeSantini
Commentaire:
Version 14 à la date du 2007-08-07 11:13:54
Taille: 1984
Éditeur: JérômeSantini
Commentaire:
Texte supprimé. Texte ajouté.
Ligne 1: Ligne 1:
= notes en vrac... =
Ligne 11: Ligne 11:
forcedeth dans /etc/initramfs/modules
Ligne 12: Ligne 14:
/etc/network/interfaces
iface eth0 inet dhcp
# address 10.196.1.61
# netmask 255.255.255.0
# gateway 10.196.1.254
 
rm /etc/readahead/*
Ligne 13: Ligne 22:
AVAHI_DAEMON_START=0 /etc/fstab :
 tmpfs tmp
 proc
aptitude install ubuntu-desktop console-data man-db language-pack-fr language-pack-gnome-fr language-pack-gnome-fr-base language-support-fr language-pack-fr-base


dpkg-reconfigure locales
dpkg-reconfigure tzdata

echo LANG="fr_FR.UTF-8" >>/etc/environment
cat $racine/etc/initramfs-tools/scripts/nfs-bottom/unionfs
mount -t tmpfs tmpfs ${rootmnt}/.sys
mkdir ${rootmnt}/.sys/etc
mkdir ${rootmnt}/.sys/nfs-etc
nfsmount -o nolock 10.196.1.1:/tftp/ubuntu/etc ${rootmnt}/.sys/nfs-etc
mount -t unionfs -o dirs=${rootmnt}/.sys/etc=rw:${rootmnt}/.sys/nfs-etc=nfsro unionfs ${rootmnt}/etc

mkdir ${rootmnt}/.sys/var
mkdir ${rootmnt}/.sys/nfs-var
nfsmount -o nolock 10.196.1.1:/tftp/ubuntu/var ${rootmnt}/.sys/nfs-var
mount -t unionfs -o dirs=${rootmnt}/.sys/var=rw:${rootmnt}/.sys/nfs-var=nfsro unionfs ${rootmnt}/var


sur le client, aprés reboot
Ligne 16: Ligne 49:
sed -i -e 's/set -e/exit 0/' /etc/dbus-1/event.d/25NetworkManager
sed -i -e 's/set -e/exit 0/' /etc/dbus-1/event.d/26NetworkManagerDispatcher
sed -i -e 's/AVAHI_DAEMON_START=1/AVAHI_DAEMON_START=0' /etc/default/avahi-daemon
sed -i -e 's/enabled=1/enabled=0/' /etc/default/apport
sed -i -e 's/BLUETOOTH_ENABLED=1/BLUETOOTH_ENABLED=0/' /etc/default/bluetooth
sed -i -e 's/LOAD_LP_MODULE=yes/LOAD_LP_MODULE=no/' /etc/default/cupsys

notes en vrac...

#debootstrap --arch i386 feisty /mnt/ http://miroirs.refer.sn/ubuntu/
#chroot /mnt/ /bin/bash
#aptitude install linux-image-2.6.20-16-generic
#cd /etc/initramfs-tools
dans initramfs.conf :
MODULES=netboot
BOOT=nfs
forcedeth dans /etc/initramfs/modules

#mkinitramfs -o /boot/inird.img
/etc/network/interfaces
iface eth0 inet dhcp
#       address 10.196.1.61
#       netmask 255.255.255.0
#       gateway 10.196.1.254
 
rm  /etc/readahead/*

/etc/fstab : 
 tmpfs tmp
 proc
aptitude install ubuntu-desktop console-data man-db language-pack-fr language-pack-gnome-fr language-pack-gnome-fr-base language-support-fr language-pack-fr-base


dpkg-reconfigure locales
dpkg-reconfigure tzdata

echo LANG="fr_FR.UTF-8" >>/etc/environment 
cat $racine/etc/initramfs-tools/scripts/nfs-bottom/unionfs
mount -t tmpfs tmpfs ${rootmnt}/.sys
mkdir ${rootmnt}/.sys/etc
mkdir ${rootmnt}/.sys/nfs-etc
nfsmount -o nolock 10.196.1.1:/tftp/ubuntu/etc  ${rootmnt}/.sys/nfs-etc
mount -t unionfs -o dirs=${rootmnt}/.sys/etc=rw:${rootmnt}/.sys/nfs-etc=nfsro unionfs ${rootmnt}/etc

mkdir ${rootmnt}/.sys/var
mkdir ${rootmnt}/.sys/nfs-var
nfsmount -o nolock 10.196.1.1:/tftp/ubuntu/var  ${rootmnt}/.sys/nfs-var
mount -t unionfs -o dirs=${rootmnt}/.sys/var=rw:${rootmnt}/.sys/nfs-var=nfsro unionfs ${rootmnt}/var


sur le client, aprés reboot

exit 0 dans /etc/dbus-1/events.d/*networkmanager*

sed -i -e 's/set -e/exit 0/' /etc/dbus-1/event.d/25NetworkManager
sed -i -e 's/set -e/exit 0/' /etc/dbus-1/event.d/26NetworkManagerDispatcher
sed -i -e 's/AVAHI_DAEMON_START=1/AVAHI_DAEMON_START=0' /etc/default/avahi-daemon
sed -i -e 's/enabled=1/enabled=0/' /etc/default/apport 
sed -i -e 's/BLUETOOTH_ENABLED=1/BLUETOOTH_ENABLED=0/' /etc/default/bluetooth
sed -i -e 's/LOAD_LP_MODULE=yes/LOAD_LP_MODULE=no/' /etc/default/cupsys
sur le serveur :
cp /srv/ubuntu/boot/initrd.img /tftp/boot
cp /srv/ubuntu/boot/vmlinuz-2.6.20-15-generic /tftp/boot

Tini/Notes/ClientsNfsroot (dernière édition le 2008-02-21 22:09:21 par localhost)