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.
1. Terminal (CTRL + ALT + T) –> how to go to backtrack main window from terminal view here.
1. By default your terminal is like this picture below.
2. To check your hostname, you can use hostname command.
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
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 your computer, the hostname will return to the old one (root@bt#).
service hostname start
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.
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 backtrack machine.
9. Now you have the new permanent hostname.
hope it’s useful ๐