{"id":8,"date":"2012-04-09T10:00:31","date_gmt":"2012-04-09T10:00:31","guid":{"rendered":"http:\/\/eltonoverip.com\/blog\/?p=8"},"modified":"2013-11-01T21:53:16","modified_gmt":"2013-11-01T21:53:16","slug":"change-debian-server-hostname","status":"publish","type":"post","link":"https:\/\/eltonoverip.com\/blog\/2012\/04\/change-debian-server-hostname\/","title":{"rendered":"Change Debian server hostname"},"content":{"rendered":"<p>Executing the command <code>hostname newHostName<\/code> alone, apparently, is not enough.<\/p>\n<p>To change the hostname:<\/p>\n<p>1. \u00a0Edit <code>\/etc\/hostname<\/code> using your favorite text editor.  Mine is vi improved <code>vim<\/code>.<\/p>\n<p>2. \u00a0Change the old host name into the new host name in <code>\/etc\/hosts<\/code>. \u00a0Usually the second line that states <code>127.0.0.1 oldHostName<\/code><\/p>\n<p>3.  Issue the command <code>hostname newHostname<\/code><\/p>\n<p>4.  Log out and then log back in. \u00a0No need to restart.<\/p>\n<p>This also works on Debian-based distributions like Ubuntu and Linux Mint.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Executing the command hostname newHostName alone, apparently, is not enough. To change the hostname: 1. \u00a0Edit \/etc\/hostname using your favorite text editor. Mine is vi improved vim. 2. \u00a0Change the old host name into the new host name in \/etc\/hosts. \u00a0Usually the second line that states 127.0.0.1 oldHostName 3. Issue the command hostname newHostname 4. [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3,2],"tags":[],"class_list":["post-8","post","type-post","status-publish","format-standard","hentry","category-debian","category-linux"],"_links":{"self":[{"href":"https:\/\/eltonoverip.com\/blog\/wp-json\/wp\/v2\/posts\/8","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/eltonoverip.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/eltonoverip.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/eltonoverip.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/eltonoverip.com\/blog\/wp-json\/wp\/v2\/comments?post=8"}],"version-history":[{"count":11,"href":"https:\/\/eltonoverip.com\/blog\/wp-json\/wp\/v2\/posts\/8\/revisions"}],"predecessor-version":[{"id":107,"href":"https:\/\/eltonoverip.com\/blog\/wp-json\/wp\/v2\/posts\/8\/revisions\/107"}],"wp:attachment":[{"href":"https:\/\/eltonoverip.com\/blog\/wp-json\/wp\/v2\/media?parent=8"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/eltonoverip.com\/blog\/wp-json\/wp\/v2\/categories?post=8"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/eltonoverip.com\/blog\/wp-json\/wp\/v2\/tags?post=8"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}