Hi Linuxers,
I am new to Red Hat Linux 9, i have an fresh installation, my problem is that i want to change the hostname of my choice, i have tried going to /etc/sysconfig/network and try changing, but it doesn't work.
Somebody said me to give the command "declare" and to check the environment variable "$HOSTNAME", i got my mistake, but now i want to change the variable value permanently, how do i do it.
Any help would be really greatfull.
Regards,
Rajendra Rait.
Philip..Rajendra,
This is what my network file looks like.
NETWORKING=yes HOSTNAME=siddhivinayak GATEWAY=172.16.29.29
"hostname" is a very temp solution that will last till a reboot.
Trevor
On 2004.01.21 19:15 Philip S Tellis wrote:
On Wed, 21 Jan 2004, Rajendra Rait wrote:
is that i want to change the hostname of my choice, i have tried
going
use the hostname command.
Philip S Tellis writes:
Sometime Today, q u a s i assembled some asciibets to say:
use the hostname command.
or edit /etc/hostname
no, use the hostname command. /etc/hostname is not the only place where the hostname is stored.
I was unaware of this - pray can I know where else the hostname is stored on various GNU/Linux distributions ?
Slackware stores in hostname file in /etc.
It really depends on rc files which load up the system. Debian picks the hostname from /etc/hosts
RedHat most Windows Registry compliant of them all has it is Windows .ini file style in /etc/sysconfig/network
Supreet
On Thu, 2004-01-22 at 12:08, quasiabhi@softhome.net wrote:
Philip S Tellis writes:
Sometime Today, q u a s i assembled some asciibets to say:
use the hostname command.
or edit /etc/hostname
no, use the hostname command. /etc/hostname is not the only place where the hostname is stored.
I was unaware of this - pray can I know where else the hostname is stored on various GNU/Linux distributions ?
For Red-Hat systems, you just need to edit /etc/sysconfig/network. At the time of start-up, rc.sysinit reads HOSTNAME varaible from this file and runs hostname command to set it.
# Set the hostname. action $"Setting hostname ${HOSTNAME}: " hostname ${HOSTNAME}
$HOSTNAME is read from /etc/sysconfig/network.
Manu
Supreet Sethi supreet@linux-delhi.org Sent by: linuxers-bounces@mm.ilug-bom.org.in 01/22/2004 03:37 PM Please respond to "GNU/Linux Users Group, Mumbai, India"
To: "GNU/Linux Users Group, Mumbai, India" linuxers@mm.ilug-bom.org.in cc: Subject: Re: [ILUG-BOM] Re: Problem with setting hostname.
Slackware stores in hostname file in /etc.
It really depends on rc files which load up the system. Debian picks the hostname from /etc/hosts
RedHat most Windows Registry compliant of them all has it is Windows .ini file style in /etc/sysconfig/network
Supreet
On Thu, 2004-01-22 at 12:08, quasiabhi@softhome.net wrote:
Philip S Tellis writes:
Sometime Today, q u a s i assembled some asciibets to say:
use the hostname command.
or edit /etc/hostname
no, use the hostname command. /etc/hostname is not the only place
where
the hostname is stored.
I was unaware of this - pray can I know where else the hostname is
stored on
various GNU/Linux distributions ?