Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
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.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
Howdy all. When I installed CentOS 4, I don't think I assigned a host name. That beign said, would my host name then be the ip address? But it gets worse....
My ip address has since changed due to dhcp. When I go into the terminal, I am connected as user@ip22-22-22-22(not really all 2's). The address is my new address, not the address I had when I originally installed the OS. So as near as I can tell, the host name was assigned the IP address, and changed when the IP changed. Is that the case?
A hostanme is typically ComputerName.Domain, if you assigned a computername that would be the hostname. When you are connected at a terminal is it showing your internal ip address, or are you talking about ssh from the outside?, just asking because this is what I commonly see. Not too sure about CentOS though. On my Slackware box I have /etc/HOSTNAME, do you have the same?
You assign the hostname, and dhcp assigns the IP **to that name**. DHCP is not going to change your hostname.
When you do assign a hostname, don't make it like an IP--that would have the potential of really confusing the SW--not to mention the operator of the computer. Just name the computer after your favorite pet, girlfriend, etc.
A hostanme is typically ComputerName.Domain, if you assigned a computername that would be the hostname. When you are connected at a terminal is it showing your internal ip address?, just asking because this is what I commonly see. Not too sure about CentOS though.
Sorry, I should have specified this as well. When I log in/ out I see ip.domainName in the lower right corner, which is another reason I suspected it as being the host name. Regardless, I just found out that ipconfig is not universal, and was wondering if there is a way for me to determine my host name?