Problème Terminal

[quote=“BelZéButh”]
[mono]root@Matrice:~#[/mono] prompt inchangé.

[quote=“BelZéButh”]Le retour qui suit, avant de lancer ton chroot.

mount ?

[/quote][/quote]

Désolé, je ne comprends pas.

EDIT : Ok.

EDIT 2 : Bon ça a l’air de faire la même chose qu’avant… :

root@Matrice:/# cd root@Matrice:~# umount /proc root@Matrice:~# umount /sys avertissement : échec de lecture de mtab root@Matrice:~# umount /dev/pts avertissement : échec de lecture de mtab root@Matrice:~# umount /dev avertissement : échec de lecture de mtab root@Matrice:~# umount /mnt avertissement : échec de lecture de mtab umount : /mnt : n'est pas monté root@Matrice:~# exit exit

root@Matrice:~# mount sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime) proc on /proc type proc (rw,nosuid,nodev,noexec,relatime) udev on /dev type devtmpfs (rw,relatime,size=10240k,nr_inodes=1008458,mode=755) devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000) tmpfs on /run type tmpfs (rw,nosuid,noexec,relatime,size=808800k,mode=755) /dev/disk/by-uuid/7bf07ffd-40a4-493b-a91d-4bcffcdd28a5 on / type ext4 (rw,relatime,errors=remount-ro,data=ordered) tmpfs on /run/lock type tmpfs (rw,nosuid,nodev,noexec,relatime,size=5120k) tmpfs on /run/shm type tmpfs (rw,nosuid,nodev,noexec,relatime,size=2248980k) binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,nosuid,nodev,noexec,relatime) /dev/sda6 on /mnt type ext4 (rw,relatime,data=ordered) tmpfs on /run/shm type tmpfs (rw,nosuid,nodev,noexec,relatime,size=2248980k) tmpfs on /mnt/run type tmpfs (rw,nosuid,noexec,relatime,size=808800k,mode=755)

Tu as booter depuis Kali, c’est bien cela ?

Démontes le chroot.

Lances [mono]# mount[/mono] ce retour ?

Et, celui-ci.

[code]root@Matrice:~# fdisk -l

Disk /dev/sda: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders, total 976773168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0xa94aab9f

Device Boot Start End Blocks Id System
/dev/sda1 2048 3074047 1536000 27 Hidden NTFS WinRE
/dev/sda2 * 3074048 51902463 24414208 83 Linux
/dev/sda3 956289024 976773119 10242048 17 Hidden HPFS/NTFS
/dev/sda4 51904510 956289023 452192257 5 Extended
Partition 4 does not start on physical sector boundary.
/dev/sda5 949975040 956289023 3156992 82 Linux swap / Solaris
/dev/sda6 51904512 802691071 375393280 83 Linux

Partition table entries are not in disk order
[/code]

Hum … à mes yeux, aucun chroot en cours.

Kali est sur quelle partition ?

[mono]# blkid[/mono] ?

Kali est sur la sda2.

root@Matrice:~# blkid /dev/sda1: LABEL="System" UUID="DA0CBACD0CBAA3C3" TYPE="ntfs" /dev/sda3: LABEL="HDDRECOVERY" UUID="5E58CCB458CC8BE9" TYPE="ntfs" /dev/sda5: UUID="c300c23b-0b00-49d5-bcc6-dc68a28505df" TYPE="swap" /dev/sda6: UUID="773ab9cf-d483-4975-a59f-aa2772c6c679" TYPE="ext4" /dev/sda2: UUID="7bf07ffd-40a4-493b-a91d-4bcffcdd28a5" TYPE="ext4"

Soyons clair.

Tu as booter depuis kali ?

Oui, je suis sur Kali en ce moment même.

C’est long, pour un … oui

Reprenons de zéro.

Stop ta machine.

Reboot depuis Kali à défaut d’un live-DVD.

Ne chrootes rien et donnes moi les retours suivants.

[code]# mount

apt-cache policy libc6

uname -a && lsb_release -a

[/code]

Aprés redémarrage :

root@Matrice:~# mount sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime) proc on /proc type proc (rw,nosuid,nodev,noexec,relatime) udev on /dev type devtmpfs (rw,relatime,size=10240k,nr_inodes=1008458,mode=755) devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000) tmpfs on /run type tmpfs (rw,nosuid,noexec,relatime,size=808800k,mode=755) /dev/disk/by-uuid/7bf07ffd-40a4-493b-a91d-4bcffcdd28a5 on / type ext4 (rw,relatime,errors=remount-ro,data=ordered) tmpfs on /run/lock type tmpfs (rw,nosuid,nodev,noexec,relatime,size=5120k) tmpfs on /run/shm type tmpfs (rw,nosuid,nodev,noexec,relatime,size=2248980k) binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,nosuid,nodev,noexec,relatime) root@Matrice:~# apt-cache policy libc6 libc6: Installé : 2.13-38+deb7u1 Candidat : 2.13-38+deb7u1 Table de version : *** 2.13-38+deb7u1 0 500 http://http.kali.org/kali/ kali/main amd64 Packages 100 /var/lib/dpkg/status root@Matrice:~# uname -a && lsb_release -a Linux Matrice 3.12-kali1-amd64 #1 SMP Debian 3.12.6-2kali1 (2014-01-06) x86_64 GNU/Linux No LSB modules are available. Distributor ID: Debian Description: Debian GNU/Linux Kali Linux 1.0.6 Release: Kali Linux 1.0.6 Codename: n/a

Scuse moi du temps que j’met, j’fais plusieurs choses en même temps.

Ok.

Avais tu modifiés les fichiers [mono]/root/.bashrc[/mono] sur Wheezy et Kali ?

Je ne suis pas sûr, mais [mono]/root/.bashrc[/mono] me dit quelque chose. Il y a des chances que j’y ai touché sur Wheezy. Désolé, je ne me souviens pas vraiment.

Ok, que importe.

Lances le chroot. Retour complet, stp.

[code]# cd

mount -t ext4 /dev/sda6 /mnt/

mount --bind /dev /mnt/dev

mount --bind /dev/pts /mnt/dev/pts

mount --bind /dev/shm /mnt/dev/shm

mount --bind /sys /mnt/sys

mount --bind /run /mnt/run

mount -t proc /proc /mnt/proc

chroot /mnt/[/code]

Ensuite, ces résultats ?

[code]# mount

apt-cache policy libc6

uname -a && lsb_release -a[/code]

root@Matrice:~# cd root@Matrice:~# mount -t ext4 /dev/sda6 /mnt/ root@Matrice:~# mount --bind /dev /mnt/dev root@Matrice:~# mount --bind /dev/pts /mnt/dev/pts root@Matrice:~# mount --bind /dev/shm /mnt/dev/shm root@Matrice:~# mount --bind /sys /mnt/sys root@Matrice:~# mount --bind /run /mnt/run root@Matrice:~# mount -t proc /proc /mnt/proc root@Matrice:~# chroot /mnt/ root@Matrice:/#

root@Matrice:/# mount
/dev/sda6 on / type ext4 (rw,relatime,data=ordered)
udev on /dev type devtmpfs (rw,relatime,size=10240k,nr_inodes=1008458,mode=755)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
tmpfs on /run type tmpfs (rw,nosuid,noexec,relatime,size=808800k,mode=755)
/proc on /proc type proc (rw,relatime)
root@Matrice:/# apt-cache policy libc6
libc6:
  Installé : 2.13-38+deb7u3
  Candidat : 2.13-38+deb7u3
 Table de version :
 *** 2.13-38+deb7u3 0
        500 http://security.debian.org/ wheezy/updates/main amd64 Packages
        100 /var/lib/dpkg/status
     2.13-38+deb7u2 0
        500 http://ftp.fr.debian.org/debian/ wheezy/main amd64 Packages
root@Matrice:/# uname -a && lsb_release -a
Linux Matrice 3.12-kali1-amd64 #1 SMP Debian 3.12.6-2kali1 (2014-01-06) x86_64 GNU/Linux
No LSB modules are available.
Distributor ID:	Debian
Description:	Debian GNU/Linux 7.6 (wheezy)
Release:	7.6
Codename:	wheezy

Un truc me chiffonne dans ces deux derniers retours. :033

Avant le chroot.

[quote=“PascalObistro”]root@Matrice:~# apt-cache policy libc6
libc6:
Installé : 2.13-38+deb7u1
Candidat : 2.13-38+deb7u1
Table de version :
*** 2.13-38+deb7u1 0
500 http.kali.org/kali/ kali/main amd64 Packages
100 /var/lib/dpkg/status
root@Matrice:~# uname -a && lsb_release -a
Linux Matrice 3.12-kali1-amd64 #1 SMP Debian 3.12.6-2kali1 (2014-01-06) x86_64 GNU/Linux
No LSB modules are available.
Distributor ID: Debian
Description: Debian GNU/Linux Kali Linux 1.0.6
Release: Kali Linux 1.0.6
Codename: n/a[/quote]

Après le chroot.

[quote=“PascalObistro”]root@Matrice:/# apt-cache policy libc6
libc6:
Installé : 2.13-38+deb7u3
Candidat : 2.13-38+deb7u3
Table de version :
*** 2.13-38+deb7u3 0
500 security.debian.org/ wheezy/updates/main amd64 Packages
100 /var/lib/dpkg/status
2.13-38+deb7u2 0
500 ftp.fr.debian.org/debian/ wheezy/main amd64 Packages
root@Matrice:/# uname -a && lsb_release -a
Linux Matrice 3.12-kali1-amd64 #1 SMP Debian 3.12.6-2kali1 (2014-01-06) x86_64 GNU/Linux
No LSB modules are available.
Distributor ID: Debian
Description: Debian GNU/Linux 7.6 (wheezy)
Release: 7.6
Codename: wheezy[/quote]

Comment est-ce possible ? ?

Après le chroot, il devrait y avoir écrit en rouge Linux Debian Wheezy au lieu de Kali Linux, si je comprends à peu prés ?

Autant pour moi.

Je viens de booter sur une Sid et j’ai chrooter une Wheezy.

Et c’est le noyau de la machine hôte (Sid) qui fait foi sur le retour [mono]uname -a && lsb_release -a[/mono].

[16:43:00] ~ # uname -a && lsb_release -a Linux Sid 3.16-rc6-amd64 #1 SMP Debian 3.16~rc6-1~exp1 (2014-07-21) x86_64 GNU/Linux No LSB modules are available. Distributor ID: Debian Description: Debian GNU/Linux unstable (sid) Release: unstable Codename: sid [16:43:04] ~ #

[16:43:36] / # uname -a && lsb_release -a Linux Sid 3.16-rc6-amd64 #1 SMP Debian 3.16~rc6-1~exp1 (2014-07-21) x86_64 GNU/Linux No LSB modules are available. Distributor ID: Debian Description: Debian GNU/Linux 7.6 (wheezy) Release: 7.6 Codename: wheezy [16:43:38] / #

Tu peux donc oublier.

Revenons en à tes moutons.

Depuis le chroot.

[code]# dpkg-reconfigure locales

dpkg-reconfigure console-data

dpkg-reconfigure keyboard-configuration

service keyboard-setup restart

[/code]

après le chroot tu fais tourner le noyau kali sur la racine debian.moi ça me parait correct.
edit: grilled :wink:

Je retombe sur les fenêtres au fond bleu que j’ai screené hier.

EDIT: Par contre j’ai mis en veille l’ordi entre temps (fermer l’écran de l’ordinateur portable), ça changes rien :confused: ?

Les screens :

[quote=“PascalObistro”]
Quelques screen histoire que tu comprennes de quoi il s’agit exactement :

bayimg.com/AaPIpAAfk

bayimg.com/BApIaaAfk

bayimg.com/BApicAaFK[/quote]

Concernant les [mono]locales[/mono].

Arrivée à cette étape : bayimg.com/BApicAaFK

Tu sélectionnes [mono]fr_FR.UTF-8[/mono]

Et pour [mono]console-data[/mono] :

[mono]pc / azerty / French / Same as X11 (latin 9) / Standard[/mono]

Enfin, [mono]keyboard-configuration[/mono] :

[mono]PC générique 105 touches (intl)[/mono] et [mono]Français - Français (variante obsolète)[/mono] puis [mono]Disposition par défaut pour le clavier[/mono] et [mono]Pas de touche « compose »[/mono]

On termine avec :

[quote]
Par défaut, la combinaison de touches Ctrl+Alt+Ret.Arr. (« Ctrl+Alt+Backspace ») n’a pas d’action. Vous pouvez choisir de l’utiliser pour arrêter le serveur X.

    │ Faut-il utiliser Control+Alt+Ret.Arr. pour arrêter le serveur X ?      [b]non[/b]   [/quote]

Ok, ça a marché jusque là :

root@Matrice:/# dpkg-reconfigure locales
locales-all installed, skipping locales generation[/code]

Quand je tapes [mono]# dpkg-reconfigure console-data[/mono] je tombe là dessus, je choisis quoi :

[bayimg.com/HaPLlaaFK](http://bayimg.com/HaPLlaaFK)

-----
Edit: Nan c'est bon :

[code]
root@Matrice:/# dpkg-reconfigure console-data
Looking for keymap to install:
fr-latin9
on suppose iso-8859-1 cedilla
on suppose iso-8859-1 acute
on suppose iso-8859-1 diaeresis
on suppose iso-8859-1 brokenbar
on suppose iso-8859-1 threequarters
on suppose iso-8859-1 onehalf
on suppose iso-8859-1 onequarter
on suppose iso-8859-1 brokenbar
[/code]

Tout a l'air de s'être passé nickel :

[code]root@Matrice:/# dpkg-reconfigure keyboard-configuration
root@Matrice:/# service keyboard-setup restart
[ ok ] Setting preliminary keymap...done.
root@Matrice:/#