Saturday 4 January 2014

How To Change Backtrack Hostname Root@Bt#

How To Change Backtrack Hostname Root@Bt#

( Just For education Purposes )



Type :Tips and Trick
Level : Easy
Actually this post popped in my mind when one of my readers ask about changing the name in one of my post :-) . This tips and trick was simple because it just change your backtrack hostname from "bt" to anything else.

Requirement :

1. Terminal (CTRL + ALT + T) –> how to go to backtrack main window from terminal view.

Step by Step :

1. By default your terminal is like this picture below.
How to Change Backtrack Hostname root@bt#
2. To check your hostname, you can use hostname command.
How to Change Backtrack Hostname root@bt#
as you can see on picture above, my hostname is "bt"
3. To change your hostname, you can run hostname command following by your desired hostname.
hostname your_desired_hostname
How to Change Backtrack Hostname root@bt#
to view the change, you need to open the new terminal window(CTRL + ALT + T)
4. The above command only applied on specific session, when you start the hostname service or restarting yourcomputer, the hostname will return to the old one (root@bt#).
service hostname start
How to Change Backtrack Hostname root@bt#


to view the change, you need to open the new terminal window(CTRL + ALT + T)
5. To make the hostname permanent, we need to edit the filelocated in /etc/hostname
pico /etc/hostname
Then change the "bt" with your desired hostname. I change it to v4L.
How to Change Backtrack Hostname root@bt#
Save the file (CTRL + O) and quit (CTRL + X)
8. To check your backtrack hostname already change or not, you can repeat step. 4 or just restart your backtrackmachine.
9. Now you have the new permanent hostname.
How to Change Backtrack Hostname root@bt#

hope it’s useful :-)