How to modify name of computer or host

Bret Busby bret.busby at gmail.com
Thu Aug 6 20:48:53 UTC 2015


On 07/08/2015, phil <phil at philfixit.info> wrote:
>
> You need to edit the computer name in two files:
>
> /etc/hostname
>
> and
>
> /etc/hosts
>
> However you may also have other programs that have the hostname
> mentioned in a config file somewhere, for example postfix, amavisd etc
> etc . . .
>
> --
> "We have enough youth, how about a fountain of smart?"
>
> Regards,
> Phil Steel-Wilson               |   [+61](0)447 64 55 34	
> Phil'll Fix It Computer Services|   http://philllfixit.com.au
> Linux user no.                  |   #564977
>
> If you are happy with my service and rates, please recommend
> me to your family and friends. Boring stuff follows . . .
> Treat all email communication as confidential.
> It is for the intended recipient only. If you have received
> this and you are not the intended recipient please contact,
>      admin at philllfixit.com.au
>      ------------------------
>
> On 07-Aug-15 5:37 AM, Bret Busby wrote:
>> Hello.
>>
>> When the operating system is installed, the person installing the
>> operating system, can set or modify the default name for the
>> system/host.
>>
>> I am wondering, when the operating system installation is completed,
>> and the system is in use, whether a superuser can modify the name of
>> the system/host, and, if so, how it is to be done, for example, at the
>> command line prompt, istead of having
>> BlackBox:~$
>> modifying it to be
>> BlackBox-Ubuntu14-04:~$
>>
>> Years ago (about 20-30years ago), when I was being taught UNIX, I
>> remember being taught how to change the command prompt, so it could
>> include things such as a timestamp, etc, but, I believe that changing
>> the system/host name, would also change the syystem/host name for the
>> log in window when the screen is locked, and, in email headers, etc.
>>

Thank you

That changed the prompt after I closed the terminal emulator and
opened a new one, and changed the name displayed on the login screen
after locking the screen, so apparently no restart was needed.


-- 
Bret Busby
Armadale
West Australia
..............

"So once you do know what the question actually is,
 you'll know what the answer means."
- Deep Thought,
 Chapter 28 of Book 1 of
 "The Hitchhiker's Guide to the Galaxy:
 A Trilogy In Four Parts",
 written by Douglas Adams,
 published by Pan Books, 1992

....................................................




More information about the ubuntu-users mailing list