debootstrap
Différences
Ci-dessous, les différences entre deux révisions de la page.
Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédente | ||
debootstrap [2015/08/16 12:43] – [grub] pascal | debootstrap [2023/07/04 10:55] (Version actuelle) – modification externe 127.0.0.1 | ||
---|---|---|---|
Ligne 2: | Ligne 2: | ||
===== Montage des partitions ===== | ===== Montage des partitions ===== | ||
< | < | ||
- | root@router:~# mount / | + | root@secours:~# mount /dev/vg/xen-root /mnt |
- | root@router:~# mkdir /mnt/tmp | + | root@secours:~# mkdir /mnt/tmp |
- | root@router:~# chmod 777 /mnt/tmp | + | root@secours:~# chmod 777 /mnt/tmp |
- | root@router:~# chmod +t /mnt/tmp | + | root@secours:~# chmod +t /mnt/tmp |
- | root@router:~# mount /dev/vg/tmp /mnt/tmp | + | root@secours:~# mount /dev/vg/xen-tmp /mnt/tmp |
- | root@router:~# mkdir /mnt/var | + | root@secours:~# mkdir /mnt/var |
- | root@router:~# mount /dev/vg/var /mnt/var | + | root@secours:~# mount /dev/vg/xen-var /mnt/var |
- | root@router:~# chmod 777 /mnt/tmp | + | root@secours:~# mkdir /mnt/backup |
- | root@router:~# chmod +t /mnt/tmp | + | root@secours:~# mount / |
- | root@router:~# | + | root@secours:~# |
</ | </ | ||
A noter la modification de /mnt/tmp. | A noter la modification de /mnt/tmp. | ||
=== Contrôle === | === Contrôle === | ||
< | < | ||
- | root@router:~# # df | grep mnt | + | root@secours:~# df | grep mnt |
- | / | + | / |
- | / | + | / |
- | / | + | / |
- | root@router:~# | + | / |
+ | root@secours:~# | ||
</ | </ | ||
===== Lancement de debootstrap ===== | ===== Lancement de debootstrap ===== | ||
< | < | ||
- | root@router: | + | root@router: |
... | ... | ||
I: Base system installed successfully. | I: Base system installed successfully. | ||
Ligne 33: | Ligne 34: | ||
root@router: | root@router: | ||
root@router: | root@router: | ||
+ | root@router: | ||
root@router: | root@router: | ||
root@router: | root@router: | ||
Ligne 40: | Ligne 42: | ||
==== locales ==== | ==== locales ==== | ||
< | < | ||
- | apt-get install | + | apt-get install |
dpkg-reconfigure locales | dpkg-reconfigure locales | ||
</ | </ | ||
Ligne 52: | Ligne 54: | ||
apt-get install lvm2 | apt-get install lvm2 | ||
</ | </ | ||
+ | Nécessaire pour la prise en compte des partition lvm | ||
==== Noyau linux==== | ==== Noyau linux==== | ||
Ligne 61: | Ligne 64: | ||
apt-get install grub-pc | apt-get install grub-pc | ||
</ | </ | ||
- | ==== Serveur ssh ==== | + | |
- | < | + | ===== Création des utilisateurs ===== |
- | apt-get install openssh-server | + | * modifier le mot de passe de root sinon pas d' |
- | </ | + | * créer un utilisateur sinon impossible de se connecter via ssh |
===== Fichiers de configuration ===== | ===== Fichiers de configuration ===== | ||
- | ==== / | + | ==== / |
< | < | ||
auto lo | auto lo | ||
iface lo inet loopback | iface lo inet loopback | ||
</ | </ | ||
- | ==== / | + | ==== / |
< | < | ||
auto eth0 | auto eth0 | ||
Ligne 81: | Ligne 84: | ||
==== /etc/fstat ==== | ==== /etc/fstat ==== | ||
< | < | ||
- | proc /proc | + | proc /proc |
- | / | + | /dev/vg/xen-root / |
- | / | + | /dev/vg/xen-swap none swap defaults, |
- | / | + | /dev/vg/xen-tmp / |
- | / | + | /dev/vg/xen-var / |
- | / | + | /dev/vg/xen-bak / |
</ | </ | ||
==== / | ==== / | ||
< | < | ||
- | deb http:// | + | deb http:// |
- | deb http:// | + | deb http:// |
- | deb http:// | + | #deb http:// |
- | deb http:// | + | #deb http:// |
- | deb http:// | + | deb http:// |
</ | </ | ||
+ | ===== Etape suivante ===== | ||
+ | [[sshd|Configuration d'un serveur ssh]] | ||
+ |
debootstrap.1439729018.txt.gz · Dernière modification : 2023/07/04 10:55 (modification externe)