Quantcast
Channel: OS X computer name not matching what shows on terminal - Ask Different
Browsing latest articles
Browse All 11 View Live
↧

Answer by noun for OS X computer name not matching what shows on terminal

In addition to the previous answer, remember that you can use a static address in your router. You have to enter the static IP and the MAC address of your network card, then you set a name for it. The...

View Article


Answer by Quanlong for OS X computer name not matching what shows on terminal

Use this sudo systemsetup -setcomputername $name

View Article


Answer by Magnus Gustavsson for OS X computer name not matching what shows on...

I had the problem that only the shell itself (zsh in my case) failed to show the correct computer name. Simply restarting the shell solved it: exec /bin/zsh

View Article

Answer by Terry Bu for OS X computer name not matching what shows on terminal

System Preferences -> Sharing -> Computer Name --> set it to whatever And then restart your computer. No console commands were necessary. Works for OS X 10.10.2

View Article

Answer by rogerdpack for OS X computer name not matching what shows on terminal

As mentioned in a separate answer, another option is to override the default PS1 prompt, like executing the following line (or adding it to your ~/.bash_profile file): $ PS1="$(scutil --get...

View Article


Answer by mklement0 for OS X computer name not matching what shows on terminal

There are two potential reasons for the shell ($HOSTNAME variable, '\h' in $PS1) and the hostname utility to report a hostname that differs from the one shown in System Preferences > Sharing: sudo...

View Article

Answer by user67806 for OS X computer name not matching what shows on terminal

I agree that Jeffrey Hoover's tip was the correct answer. Flushing the DNS cache and restarting the Mac is a nice step too. This is variant of Jeff Hoover's reply: sudo -i Password: for n in HostName...

View Article

Answer by Danger14 for OS X computer name not matching what shows on terminal

In addition to Jeffrey J. Hoover's tip (above), I would add these last two steps: Flush the DNS cache by typing: dscacheutil -flushcache Restart your Mac.

View Article


Answer by Jeffrey J. Hoover for OS X computer name not matching what shows on...

You may also want to change some other things using the scutil command: sudo scutil --set ComputerName "newname" sudo scutil --set LocalHostName "newname" sudo scutil --set HostName "newname"

View Article


Answer by l'L'l for OS X computer name not matching what shows on terminal

It's perfectly normal for this to occur; when you login Terminal remotely bash does a reverse DNS lookup. It will only be the same if the hostname is not specified on the network you're connecting from...

View Article

OS X computer name not matching what shows on terminal

My computer name in System Preferences > sharing is set to "archos" but is showing as "iphone" on the terminal. It just started doing this after I loaded Xcode for doing iPhone development. Last...

View Article
Browsing latest articles
Browse All 11 View Live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>