#1 Le 29/06/2016, à 07:47
- dalron
Invalid-entry-length-16-Fixed-up-to-11
Hello,
Je suis sous 16.04 et depuis quelques temps, le terminal m'affiche ce bout de code suite au nom d'utiisateur "romain@romain-S2-P8H61E-Invalid-entry-length-16-Fixed-up-to-11:"
J'ai un peu cherché sur le forum et sur le web mais ne trouve pas la solution...
Merci par avance de votre aide,
(Je vous laisse deviner mon prénom
Dernière modification par dalron (Le 03/07/2016, à 12:57)
Hors ligne
#2 Le 29/06/2016, à 08:02
- credenhill
Re : Invalid-entry-length-16-Fixed-up-to-11
hello
que répond
grep PS1 ~/.bashrc
Hors ligne
#3 Le 30/06/2016, à 07:56
- dalron
Re : Invalid-entry-length-16-Fixed-up-to-11
Hello,
Merci pour ton aide par avance :
PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ '
PS1="\[\e]0;${debian_chroot:+($debian_chroot)}\u@\h: \w\a\]$PS1"
Hors ligne
#4 Le 30/06/2016, à 08:30
- MicP
Re : Invalid-entry-length-16-Fixed-up-to-11
Bonjour
Il faudrait aussi :
cat /etc/hostname
cat /etc/hosts
Merci
Hors ligne
#5 Le 30/06/2016, à 10:50
- dalron
Re : Invalid-entry-length-16-Fixed-up-to-11
cat /etc/hostname
romain-S2-P8H61E-Invalid-entry-length-16-Fixed-up-to-11
cat /etc/hosts
127.0.0.1 localhost
127.0.1.1 romain-S2-P8H61E-Invalid-entry-length-16-Fixed-up-to-11
# The following lines are desirable for IPv6 capable hosts
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
Hors ligne
#6 Le 30/06/2016, à 15:27
- MicP
Re : Invalid-entry-length-16-Fixed-up-to-11
On pourrait changer le nom de machine pour S2-P8H61E
sudo hostname -b S2-P8H61E
sudo sed -i 's/romain-S2-P8H61E-Invalid-entry-length-16-Fixed-up-to-11/S2-P8H61E/' /etc/hosts
Ce qui donnerait un prompt comme ci-dessous :
romain@S2-P8H61E:~$
Dernière modification par MicP (Le 30/06/2016, à 15:30)
Hors ligne
#7 Le 30/06/2016, à 21:38
- dalron
Re : Invalid-entry-length-16-Fixed-up-to-11
Ah bein ok. Bon bein j'ai juste modifié cela dans "paramètres système" et c'est bon. Je pensais que ca allait être un truc qui chie un peu plus des bulles mais bon là c'est tout bon super merci !
Hors ligne
#8 Le 03/07/2016, à 12:56
- dalron
Re : Invalid-entry-length-16-Fixed-up-to-11
Bon bein ca me semblait bien bizarre comme solution :
Maintenant quand je tape un sudo dans terminal, cela affiche : "sudo: impossible de déterminer le nom de l'hôte romain-s2-p8h61e" ... Crap
Hors ligne
#9 Le 04/07/2016, à 09:29
- credenhill
Re : Invalid-entry-length-16-Fixed-up-to-11
vérifier les noms dans
cat /etc/hostname
cat /etc/hosts
Hors ligne
#10 Le 13/07/2016, à 09:42
- dalron
Re : Invalid-entry-length-16-Fixed-up-to-11
Hello, voici l réponse :
romain@romain-s2-p8h61e:~$ cat /etc/hostname
romain-s2-p8h61e
romain@romain-s2-p8h61e:~$ cat /etc/hosts
127.0.0.1 localhost
127.0.1.1 romain-S2-P8H61E-Invalid-entry-length-16-Fixed-up-to-11
# The following lines are desirable for IPv6 capable hosts
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
Hors ligne
#11 Le 13/07/2016, à 10:39
- MicP
Re : Invalid-entry-length-16-Fixed-up-to-11
sudo sed -i 's/romain-S2-P8H61E-Invalid-entry-length-16-Fixed-up-to-11/romain-s2-p8h61e/' /etc/hosts
et le contenu du fichier /etc/host deviendra :
127.0.0.1 localhost
127.0.1.1 romain-s2-p8h61e
# The following lines are desirable for IPv6 capable hosts
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
Dernière modification par MicP (Le 13/07/2016, à 10:41)
Hors ligne
#12 Le 13/07/2016, à 16:21
- dalron
Re : Invalid-entry-length-16-Fixed-up-to-11
Merci. Donc à présent les deux commandes donnent :
romain@romain-s2-p8h61e:~$ cat /etc/hostname
romain-s2-p8h61e
romain@romain-s2-p8h61e:~$ cat /etc/hosts
127.0.0.1 localhost
127.0.1.1 romain-s2-p8h61e
# The following lines are desirable for IPv6 capable hosts
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
Hors ligne