{"id":902,"date":"2012-01-07T23:33:35","date_gmt":"2012-01-07T21:33:35","guid":{"rendered":"http:\/\/lika.be\/wp\/?p=902"},"modified":"2022-01-10T22:14:23","modified_gmt":"2022-01-10T20:14:23","slug":"hostname-zetten-in-mac-os-x","status":"publish","type":"post","link":"https:\/\/lika.be\/wp\/2012\/01\/hostname-zetten-in-mac-os-x\/","title":{"rendered":"Hostname instellen in Mac OS X"},"content":{"rendered":"\n<p>Sinds een tijdje was de hostnaam in de terminal van mijn iMac veranderd in de originele hostname met een prefix -2.<\/p>\n\n\n\n<p>Nogal storend, maar wel eenvoudig te fixen&#8230;<\/p>\n\n\n\n<!--more-->\n\n\n\n<p>The scutil command will set the following 3 items:<br>1) ComputerName (AppleTalk Name, SharingPrefPane, \u201cComputer Name\u201d)<br>2) LocalHostName (\u2018DNS\u2019 name, how to get to a computer on a network by hostname, the \u2018Edit\u2019 button in Sharing PrefPane)<br>3) HostName (UNIX hostname, what shows up in terminal.)<\/p>\n\n\n\n<p>For 1 and 2, scutil will make changes to this file: \/Library\/Preferences\/SystemConfiguration\/preferences.plist (Root -&gt; System -&gt; System)<\/p>\n\n\n\n<p>SharingPrefPane ALSO makes changes to this .plist<\/p>\n\n\n\n<p>So, if you\u2019re a SysAdmin, like me, you can set ComputerName and LocalHostName by command line using:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nsudo scutil --set ComputerName compname\nsudo scutil --set LocalHostName compname\n<\/pre><\/pre>\n\n\n\n<p>Deze info is <a href=\"http:\/\/excitedcuriosity.wordpress.com\/2007\/08\/24\/mac-os-x-hostname-determination\/\">hier<\/a> te vinden.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Sinds een tijdje was de hostnaam in de terminal van mijn iMac veranderd in de originele hostname met een prefix -2. Nogal storend, maar wel eenvoudig te fixen&#8230;<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8],"tags":[],"class_list":["post-902","post","type-post","status-publish","format-standard","hentry","category-notes"],"_links":{"self":[{"href":"https:\/\/lika.be\/wp\/wp-json\/wp\/v2\/posts\/902","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lika.be\/wp\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lika.be\/wp\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lika.be\/wp\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/lika.be\/wp\/wp-json\/wp\/v2\/comments?post=902"}],"version-history":[{"count":8,"href":"https:\/\/lika.be\/wp\/wp-json\/wp\/v2\/posts\/902\/revisions"}],"predecessor-version":[{"id":1078,"href":"https:\/\/lika.be\/wp\/wp-json\/wp\/v2\/posts\/902\/revisions\/1078"}],"wp:attachment":[{"href":"https:\/\/lika.be\/wp\/wp-json\/wp\/v2\/media?parent=902"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lika.be\/wp\/wp-json\/wp\/v2\/categories?post=902"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lika.be\/wp\/wp-json\/wp\/v2\/tags?post=902"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}