|
Home > Archive > Red Hat Topics > November 2004 > Name my PC
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
|
|
| robert 2004-11-10, 5:45 pm |
| Just installed RH9 in my office (Windoz network)
PC name is currently "localhost".
How can I give it a name ?
I also need to tell the Network Admin to add it to DNS server, right ?
thanks
| |
| Jean-David Beyer 2004-11-10, 5:45 pm |
| robert wrote:
> Just installed RH9 in my office (Windoz network)
> PC name is currently "localhost".
> How can I give it a name ?
>
> I also need to tell the Network Admin to add it to DNS server, right ?
>
> thanks
Since it is Red Hat, just go to /etc/sysconfig and change file network.
In it is HOSTNAME.
Do this in virtual console with X turned off; i.e., logout of X.
Mine is like this:
$ cat /etc/sysconfig/network
NETWORKING=yes
HOSTNAME=mymachine.localdomain
localdomain is my local domain as known by my LAN. The Internet has
another name for my machine, and another IP address too. Actually, since I
have two NIC, I have two LAN IP addresses for the LAN, and one for the
Internet.
The easiest thing to do after setting this is to reboot, but if you know
what you are doing, you can just restart networking.
--
.~. Jean-David Beyer Registered Linux User 85642.
/V\ Registered Machine 241939.
/( )\ Shrewsbury, New Jersey http://counter.li.org
^^-^^ 15:50:00 up 18 days, 18:44, 4 users, load average: 4.43, 4.27, 4.34
| |
| robert 2004-11-10, 5:45 pm |
| Jean-David Beyer wrote:
> robert wrote:
>
>
>
> Since it is Red Hat, just go to /etc/sysconfig and change file network.
> In it is HOSTNAME.
>
> Do this in virtual console with X turned off; i.e., logout of X.
>
> Mine is like this:
>
> $ cat /etc/sysconfig/network
> NETWORKING=yes
> HOSTNAME=mymachine.localdomain
>
> localdomain is my local domain as known by my LAN. The Internet has
> another name for my machine, and another IP address too. Actually, since
> I have two NIC, I have two LAN IP addresses for the LAN, and one for the
> Internet.
>
> The easiest thing to do after setting this is to reboot, but if you know
> what you are doing, you can just restart networking.
>
thanks how do I log out of X ?
I am at run-level 5
| |
|
|
| Jean-David Beyer 2004-11-10, 5:45 pm |
| robert wrote:
> Jean-David Beyer wrote:
>
[snip][vbcol=seagreen]
> thanks how do I log out of X ?
> I am at run-level 5
>
Click on the Red Hat, and select Log Out. You will get a dialog box.
Select Log Out and select OK.
It will give you a login screen. Do not use it to log in.
Instead, hit Ctl-Alt-PF1 and you will get a different CLI login screen.
Login there (as root) and do what needs to be done.
--
.~. Jean-David Beyer Registered Linux User 85642.
/V\ Registered Machine 241939.
/( )\ Shrewsbury, New Jersey http://counter.li.org
^^-^^ 16:55:00 up 18 days, 19:49, 4 users, load average: 5.96, 5.94, 5.36
|
|
|
|
|