Ok, Im trying to find a way to fix this, or get around it, depending how you look at it.
When I connect to the internet, my host name of my iMac changes.
Prior to connection to internet it is 'Robs iMac'...
rob@Robs iMac:~ $ uname -a
Darwin Robs iMac 8.1.0 Darwin Kernel Version 8.1.0: Tue May 10 18:16:08 PDT 2005; root:xnu-792.1.5.obj~4/RELEASE_PPC Power Macintosh powerpc
Now after I connect it changes to my IP host address...
rob@user216-178-86-223:~ $ uname -a
Darwin user216-178-86-223.netcarrier.net 8.1.0 Darwin Kernel Version 8.1.0: Tue May 10 18:16:08 PDT 2005; root:xnu-792.1.5.obj~4/RELEASE_PPC Power Macintosh powerpc
Now this isn't a huge problem, but if I connect to this computer via ssh or the like, I would like to have the computers name in the command line prompt, so I can tell which system I am on, but I can't seem to find a way to do that since whenever I connect to the internet, its host name automatically changes to its IP address.
Currently I am using this prompt... PS1='\u@\h:\w \$ '
I suppose if it comes down to it I could just manually put in the hostname and keep it static, but I would like to see if I can make it so the hostname isnt changing everytime I log on.
When I connect to the internet, my host name of my iMac changes.
Prior to connection to internet it is 'Robs iMac'...
rob@Robs iMac:~ $ uname -a
Darwin Robs iMac 8.1.0 Darwin Kernel Version 8.1.0: Tue May 10 18:16:08 PDT 2005; root:xnu-792.1.5.obj~4/RELEASE_PPC Power Macintosh powerpc
Now after I connect it changes to my IP host address...
rob@user216-178-86-223:~ $ uname -a
Darwin user216-178-86-223.netcarrier.net 8.1.0 Darwin Kernel Version 8.1.0: Tue May 10 18:16:08 PDT 2005; root:xnu-792.1.5.obj~4/RELEASE_PPC Power Macintosh powerpc
Now this isn't a huge problem, but if I connect to this computer via ssh or the like, I would like to have the computers name in the command line prompt, so I can tell which system I am on, but I can't seem to find a way to do that since whenever I connect to the internet, its host name automatically changes to its IP address.
Currently I am using this prompt... PS1='\u@\h:\w \$ '
I suppose if it comes down to it I could just manually put in the hostname and keep it static, but I would like to see if I can make it so the hostname isnt changing everytime I log on.