This is an old revision of the document!
−Table of Contents
Installazione Debian da altro O.S. (es. CD-Live)
GRML
The following command will fail. There is a problem witht the --release lenny option because in /etc/apt/sources.list
the script wrote etch
instead of lenny
.
grml-debootstrap --target /dev/md0 \ --grub hd0 --groot hd0,0 \ --mntpoint /mnt/md0 \ --password pippo123 --release lenny
As a workaround set the option RELEASE='lenny' into /etc/debootstrap/config
.
WARNING: Also the --password option does not work! The password on the resulting installation is blank, this will prevent remote login! So beware and set the root password before reboot, when in chroot mode.
Comandi utili
Dopo aver avviato l'host da CD-Live questi sono i comandi utili a preparare i dischi.
Creazione di un volume RAID1 (in modalità degradata, con una sola partizione):
mdadm --zero-superblock /dev/sda1 mdadm --create /dev/md0 --run --level=1 --raid-devices=2 /dev/sda1 missing
Avvia un volume RAID creato in precedenza:
mdadm --assemble --run /dev/m4 /dev/sda2 /dev/sdb2
Altri comandi
Dopo aver effettuato una installazione base, si può fare un chroot per sistemare alcune cose prima del reboot:
mount /dev/md0 /mnt/md0 mount -t proc proc /mnt/md0/proc chroot /mnt/md0 /bin/bash export LC_ALL=C cd /dev && ./MAKEDEV generic vi /etc/apt/sources.list apt-get update apt-get install locales dpkg-reconfigure locales dpkg-reconfigure tzdata dpkg-reconfigure console-data dpkg-reconfigure debconf dpkg-reconfigure passwd apt-get install grub linux-image-2.6.18-4-686 libc6-i686 less grub-install --recheck /dev/hda update-grub vi /etc/fstab apt-get install openssh-server vi /etc/network/interfaces
L'hostname va modificao nei seguenti file:
- /etc/hostname
- /etc/hosts
- /etc/motd
- /etc/ssh/ssh_host_{dr}sa_key.pub