Bonjour,

Je suis en train de terminer l’upgrade vers Fedora 40, et je vois que le prompt du terminal a changé. Sous Fedora 39, il était de la forme mon-user@fedora, et il est désormais mon-user@device-89.
D’où vient ce changement ? À quoi correspond ce device-89, inconnu pour moi ?

Merci pour vos éclairages.

  • Nicosss a répondu à ça.
    • Meilleure réponsesélectionnée par tosca

    Nicosss Ceci :

         Static hostname: (unset)                         
      Transient hostname: device-89.home
               Icon name: computer-laptop
                 Chassis: laptop 💻
              Machine ID: 5b556d0d41f54879af80d0510b43f510
                 Boot ID: 3771e3a71f604523bf5cb9011f983ec9
        Operating System: Fedora Linux 40 (Cinnamon)      
             CPE OS Name: cpe:/o:fedoraproject:fedora:40
          OS Support End: Tue 2025-05-13
    OS Support Remaining: 4month 4w 1d
                  Kernel: Linux 6.11.11-200.fc40.x86_64
            Architecture: x86-64
         Hardware Vendor: Notebook
          Hardware Model: NL40_50CU
        Firmware Version: 1.07.13N
           Firmware Date: Tue 2020-10-27
            Firmware Age: 4y 1month 2w 1d    

    Du coup, je vois d’où semble venir ce device-89.

    D’après ce que je lis sur cette page :

    There are three classes of hostname: static, pretty, and transient. The “static” host name is the traditional hostname, which can be chosen by the user, and is stored in the /etc/hostname file. The “transient” hostname is a dynamic host name maintained by the kernel. It is initialized to the static host name by default, whose value defaults to “localhost”. It can be changed by DHCP or mDNS at runtime. The “pretty” hostname is a free-form UTF8 host name for presentation to the user.

    J’ai l’impression que le static hostname a dû “disparaître” au cours de l’upgrade. Et je ne trouve effectivement pas (plus ?) de fichier /etc/hostname.
    Je peux donc lui réattribuer un nom de mon choix ?

    As-tu un fichier /etc/profile.d/promptrc.sh ?

    Si oui c’est là que se concocte le prompt.

      Nicosss Ceci :

           Static hostname: (unset)                         
        Transient hostname: device-89.home
                 Icon name: computer-laptop
                   Chassis: laptop 💻
                Machine ID: 5b556d0d41f54879af80d0510b43f510
                   Boot ID: 3771e3a71f604523bf5cb9011f983ec9
          Operating System: Fedora Linux 40 (Cinnamon)      
               CPE OS Name: cpe:/o:fedoraproject:fedora:40
            OS Support End: Tue 2025-05-13
      OS Support Remaining: 4month 4w 1d
                    Kernel: Linux 6.11.11-200.fc40.x86_64
              Architecture: x86-64
           Hardware Vendor: Notebook
            Hardware Model: NL40_50CU
          Firmware Version: 1.07.13N
             Firmware Date: Tue 2020-10-27
              Firmware Age: 4y 1month 2w 1d    

      Du coup, je vois d’où semble venir ce device-89.

      D’après ce que je lis sur cette page :

      There are three classes of hostname: static, pretty, and transient. The “static” host name is the traditional hostname, which can be chosen by the user, and is stored in the /etc/hostname file. The “transient” hostname is a dynamic host name maintained by the kernel. It is initialized to the static host name by default, whose value defaults to “localhost”. It can be changed by DHCP or mDNS at runtime. The “pretty” hostname is a free-form UTF8 host name for presentation to the user.

      J’ai l’impression que le static hostname a dû “disparaître” au cours de l’upgrade. Et je ne trouve effectivement pas (plus ?) de fichier /etc/hostname.
      Je peux donc lui réattribuer un nom de mon choix ?

      Oui, d’ailleurs sous gnome tu peux aussi définir le hostname dans les paramètres.

        xylphute
        Pas trouvé ce paramètre dans Gnome, j’ai donc fait la manip sous Cinnamon en recréant le fichier /etc/hostname.

          tosca je ne sais plus si c’est dans réseau ou système, je mettrai un screen dès que j’aurais un moment, ça peut servir.

          tosca il y a la commande hostnamectl pour cela d’après le help, je n’ai pas essayé !
          # hostnamectl hostname 'nomdesiré'

            fgland
            Ça sera pour le prochain qui passera par là. 😀

            tosca Ça aurait en effet été mieux de passer par la commande hostnamectl .

            Sinon côté GNOME il faut aller dans Paramètres−>Système->A propos pour information.