DebianThis forum is for the discussion of Debian Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
edit /etc/sysconfig/network And change the HOSTNAME to whatever you want
read the comments(#).
Just add the new name in the 127.0.0.1 line ## dont delete the other names!!!!!
One trick you can use to search for info on such basic operations as setting the hostname is to use the man command with a keyword option. "man -k hostname" will give you a list of manpages relevant to the keyword "hostname".
Originally posted by Electronkz edit /etc/sysconfig/network
that file doesnt exist on debian
however i did find the hosts and hostname file in /etc and edited those and rebooted. hostname changed
thanks Dead Parrot for the pointer on the man pages. i really need to read a tutorial on using man pages sometime. i know they are there, but dont know how to use them effeciently.
"however i did find the hosts and hostname file in /etc and edited those and rebooted. hostname changed"
Please give the file name so the rest of us know how you did it. I looked superficially at the /etc, and did not see any host or hostname entry. This way everybody will benefit. Thanks
Originally posted by macondo Please give the file name so the rest of us know how you did it. I looked superficially at the /etc, and did not see any host or hostname entry. This way everybody will benefit. Thanks
Edit: for example,
/etc/hostname
i did, i said "however i did find the hosts and hostname file in /etc and edited those and rebooted. hostname changed"
the two files i found are called hosts and hostname in the /etc directory
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.