Change host-name for Trixbox shell

By default, Trixbox installation uses [trixbox1.localdomain] as HOSTNAME, which is also diplayed as shell prompt.

To change this:

[trixbox1.localdomain ~]# sysctl kernel.hostname

kernel.hostname = trixbox1.localdomain

[trixbox1.localdomain ~]# sysctl kernel.hostname=veejansh.ivr

kernel.hostname = veejansh.ivr

You also need to edit your network file to make this change permanent i.e. persistent across reboots.

[veejansh.ivr ~]# vi /etc/sysconfig/netowrk

Here, edit “HOSTNAME” to “veejansh.ivr”, and save the file.

Now, restart your shell and you will have new name for your shell prompt or HOSTNAME. This is applicable to trixbox installations or RedHat/Centos Linux installations.

Leave a Reply