machine-info(5) — Linux manual page


MACHINE-INFO(5)                 machine-info                 MACHINE-INFO(5)

NAME         top

       machine-info - Local machine information file

SYNOPSIS         top


DESCRIPTION         top

       The /etc/machine-info file contains machine metadata.

       The basic file format of machine-info is a newline-separated list of
       environment-like shell-compatible variable assignments. It is
       possible to source the configuration from shell scripts, however,
       beyond mere variable assignments no shell features are supported,
       allowing applications to read the file without implementing a shell
       compatible execution engine.

       /etc/machine-info contains metadata about the machine that is set by
       the user or administrator.

       Depending on the operating system other configuration files might be
       checked for machine information as well, however only as fallback.

       You may use hostnamectl(1) to change the settings of this file from
       the command line.

OPTIONS         top

       The following machine metadata parameters may be set using

           A pretty human-readable UTF-8 machine identifier string. This
           should contain a name like "Lennart's Laptop" which is useful to
           present to the user and does not suffer by the syntax limitations
           of internet domain names. If possible, the internet hostname as
           configured in /etc/hostname should be kept similar to this one.
           Example: if this value is "Lennart's Computer" an Internet
           hostname of "lennarts-computer" might be a good choice. If this
           parameter is not set, an application should fall back to the
           Internet hostname for presentation purposes.

           An icon identifying this machine according to the XDG Icon Naming
           Specification[1]. If this parameter is not set, an application
           should fall back to "computer" or a similar icon name.

           The chassis type. Currently, the following chassis types are
           defined: "desktop", "laptop", "convertible", "server", "tablet",
           "handset", "watch", and "embedded", as well as the special
           chassis types "vm" and "container" for virtualized systems that
           lack an immediate physical chassis. Note that many systems allow
           detection of the chassis type automatically (based on firmware
           information or suchlike). This setting (if set) shall take
           precedence over automatically detected information and is useful
           to override misdetected configuration or to manually configure
           the chassis type where automatic detection is not available.

           Describes the system deployment environment. One of the following
           is suggested: "development", "integration", "staging",

           Describes the system location if applicable and known. Takes a
           human-friendly, free-form string. This may be as generic as
           "Berlin, Germany" or as specific as "Left Rack, 2nd Shelf".

EXAMPLE         top

           PRETTY_HOSTNAME="Lennart's Tablet"

SEE ALSO         top

       systemd(1), os-release(5), hostname(5), machine-id(5),
       hostnamectl(1), systemd-hostnamed.service(8)

NOTES         top

        1. XDG Icon Naming Specification

COLOPHON         top

       This page is part of the systemd (systemd system and service manager)
       project.  Information about the project can be found at 
       ⟨⟩.  If you have a bug
       report for this manual page, see
       ⟨⟩.  This
       page was obtained from the project's upstream Git repository
       ⟨⟩ on 2020-09-18.  (At that
       time, the date of the most recent commit that was found in the repos‐
       itory was 2020-09-18.)  If you discover any rendering problems in
       this HTML version of the page, or you believe there is a better or
       more up-to-date source for the page, or you have corrections or
       improvements to the information in this COLOPHON (which is not part
       of the original manual page), send a mail to

systemd 246                                                  MACHINE-INFO(5)

Pages that refer to this page: hostnamectl(1)hostname(5)machine-id(5)org.freedesktop.hostname1(5)os-release(5)