Cyber Survivals

Sunday, 31 March 2013

How to change Backtrack Hostname root@bt#

Here, we see how to change Default Backtrack Hostname to your desired one.

By default your hostname will be bt and can be identified by root@bt# in terminal.

Step 1: To Check your hostname use hostname command.


As you can see my hostname is "bt"

Step 2: To change your hostname, you can run hostname command following your desired name.

hostname csurvivals


To view the change you should open the new terminal.

Step 3: The above command only applied to change for the present session, when you restart hostname service or restart your computer it will back to your earlier hostname (root@bt#)

command to restart service : service hostname restart

Step 4: To make teh hostname permanent, we need to edit the hostname file which resides in /etc/hostname using any editor.

root@bt# vi /etc/hostname
then change the "bt" with your desired name and save the file.

press "i" to insert mode
press "Esc" command mode
type ":w" to save


Step 5: Restart hostname service or Restart your computer.


 



No comments:

Post a Comment