Typo on hostname

Have you had the experience of finishing a Debian install only to figure out latter that it would have been better to use another name?

To do that you need to run the following as root:watch full film I Don’t Feel at Home in This World Anymore

echo "NEWHOSTNAME" > /etc/hostname
/etc/init.d/hostname.sh start

The first line replaces the contents of the /etc/hostname file with the NEWHOSTNAME, the second line runs the script that reloads it.

Simple as that.

Leave a Reply

Your email address will not be published. Required fields are marked *