{"id":4577,"date":"2022-12-20T18:09:08","date_gmt":"2022-12-20T21:09:08","guid":{"rendered":"http:\/\/lode.uno\/linux-man\/index.php\/2022\/12\/20\/machineinfo-man5\/"},"modified":"2022-12-20T18:09:08","modified_gmt":"2022-12-20T21:09:08","slug":"machineinfo-man5","status":"publish","type":"post","link":"https:\/\/lode.uno\/linux-man\/2022\/12\/20\/machineinfo-man5\/","title":{"rendered":"MACHINE&minus;INFO (man5)"},"content":{"rendered":"<h1 align=\"center\">MACHINE\u2212INFO<\/h1>\n<p> <a href=\"#NAME\">NAME<\/a><br \/> <a href=\"#SYNOPSIS\">SYNOPSIS<\/a><br \/> <a href=\"#DESCRIPTION\">DESCRIPTION<\/a><br \/> <a href=\"#OPTIONS\">OPTIONS<\/a><br \/> <a href=\"#EXAMPLE\">EXAMPLE<\/a><br \/> <a href=\"#SEE ALSO\">SEE ALSO<\/a><br \/> <a href=\"#NOTES\">NOTES<\/a> <\/p>\n<hr>\n<h2>NAME <a name=\"NAME\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">machine-info \u2212 Local machine information file<\/p>\n<h2>SYNOPSIS <a name=\"SYNOPSIS\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">\/etc\/machine\u2212info<\/p>\n<h2>DESCRIPTION <a name=\"DESCRIPTION\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">The \/etc\/machine\u2212info file contains machine metadata.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">The basic file format of machine\u2212info is a newline\u2212separated list of environment\u2212like shell\u2212compatible 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.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">\/etc\/machine\u2212info contains metadata about the machine that is set by the user or administrator.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">Depending on the operating system other configuration files might be checked for machine information as well, however only as fallback.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">You may use <b>hostnamectl<\/b>(1) to change the settings of this file from the command line.<\/p>\n<h2>OPTIONS <a name=\"OPTIONS\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">The following machine metadata parameters may be set using \/etc\/machine\u2212info:<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><i>PRETTY_HOSTNAME=<\/i><\/p>\n<p style=\"margin-left:17%;\">A pretty human\u2212readable UTF\u22128 machine identifier string. This should contain a name like &#8220;Lennart&#8217;s Laptop&#8221; 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 &#8220;Lennart&#8217;s Computer&#8221; an Internet hostname of &#8220;lennarts\u2212computer&#8221; might be a good choice. If this parameter is not set, an application should fall back to the Internet hostname for presentation purposes.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><i>ICON_NAME=<\/i><\/p>\n<p style=\"margin-left:17%;\">An icon identifying this machine according to the <b><font color=\"#0000FF\">XDG Icon Naming Specification<\/font><\/b> <small><font color=\"#000000\">[1]<\/font><\/small> <font color=\"#000000\">. If this parameter is not set, an application should fall back to &#8220;computer&#8221; or a similar icon name.<\/font><\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><font color=\"#000000\"><i>CHASSIS=<\/i><\/font><\/p>\n<p style=\"margin-left:17%;\"><font color=\"#000000\">The chassis type. Currently, the following chassis types are defined: &#8220;desktop&#8221;, &#8220;laptop&#8221;, &#8220;convertible&#8221;, &#8220;server&#8221;, &#8220;tablet&#8221;, &#8220;handset&#8221;, &#8220;watch&#8221;, and &#8220;embedded&#8221;, as well as the special chassis types &#8220;vm&#8221; and &#8220;container&#8221; 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.<\/font><\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><font color=\"#000000\"><i>DEPLOYMENT=<\/i><\/font><\/p>\n<p style=\"margin-left:17%;\"><font color=\"#000000\">Describes the system deployment environment. One of the following is suggested: &#8220;development&#8221;, &#8220;integration&#8221;, &#8220;staging&#8221;, &#8220;production&#8221;.<\/font><\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><font color=\"#000000\"><i>LOCATION=<\/i><\/font><\/p>\n<p style=\"margin-left:17%;\"><font color=\"#000000\">Describes the system location if applicable and known. Takes a human\u2212friendly, free\u2212form string. This may be as generic as &#8220;Berlin, Germany&#8221; or as specific as &#8220;Left Rack, 2nd Shelf&#8221;.<\/font><\/p>\n<h2>EXAMPLE <a name=\"EXAMPLE\"><\/a> <\/h2>\n<p style=\"margin-left:17%; margin-top: 1em\"><font color=\"#000000\">PRETTY_HOSTNAME=&#8221;Lennart&#8217;s Tablet&#8221; <br \/> ICON_NAME=computer\u2212tablet <br \/> CHASSIS=tablet <br \/> DEPLOYMENT=production<\/font><\/p>\n<h2>SEE ALSO <a name=\"SEE ALSO\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><font color=\"#000000\"><b>systemd<\/b>(1), <b>os-release<\/b>(5), <b>hostname<\/b>(5), <b>machine-id<\/b>(5), <b>hostnamectl<\/b>(1), <b>systemd-hostnamed.service<\/b>(8)<\/font><\/p>\n<h2>NOTES <a name=\"NOTES\"><\/a> <\/h2>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"12%\"><\/td>\n<td width=\"3%\">\n<p style=\"margin-top: 1em\"><font color=\"#000000\">1.<\/font><\/p>\n<\/td>\n<td width=\"2%\"><\/td>\n<td width=\"45%\">\n<p style=\"margin-top: 1em\"><font color=\"#000000\">XDG Icon Naming Specification<\/font><\/p>\n<\/td>\n<td width=\"38%\"> <\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:17%;\"><font color=\"#000000\">http:\/\/standards.freedesktop.org\/icon-naming-spec\/icon-naming-spec-latest.html<\/font><\/p>\n<hr>\n","protected":false},"excerpt":{"rendered":"<p>  machine-info \u2212 Local machine information file <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[959],"tags":[961,1528,1291],"class_list":["post-4577","post","type-post","status-publish","format-standard","hentry","category-5-formatos-de-ficheros","tag-961","tag-machine-info","tag-man5"],"gutentor_comment":0,"_links":{"self":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts\/4577","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/comments?post=4577"}],"version-history":[{"count":0,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts\/4577\/revisions"}],"wp:attachment":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/media?parent=4577"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/categories?post=4577"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/tags?post=4577"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}