system name

This is a discussion on system name within the Linux Administration forums, part of the Linux Forums category; I installed FC2 from the iso discs, and wound up with a system name of 'dhcppc'. I'd like to ...


Go Back   Usenet Forums > Linux Forums > Linux Administration

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 07-11-2004
atlantic
 
Posts: n/a
Default system name

I installed FC2 from the iso discs, and wound up with a system name of
'dhcppc'. I'd like to change it. However, if I set the name using uname, I
cannot start any new applications. Even a terminal won't open. If I reboot
and allow the old name to come back, everything is fine again. The
/etc/hosts file only contains the localhost reference. My guess is that
it's being set somewhere during startup, but I'm not sure at what runlevel.
Any help is appreciated.


Reply With Quote
  #2 (permalink)  
Old 07-11-2004
Bit Twister
 
Posts: n/a
Default Re: system name

On Sun, 11 Jul 2004 03:26:24 GMT, atlantic wrote:
> I installed FC2 from the iso discs, and wound up with a system name of
> 'dhcppc'. I'd like to change it.


cat /etc/sysconfig/network
NETWORKING=yes
HOSTNAME=wb1.home.invalid <==========
GATEWAY=162.168.1.1



Please bookmark the following, very large,
Frequently Asked Questions (faq) Search engine:

http://groups.google.com/advanced_group_search
set hostname in the first box
*linux* in Newsgroup, U need 2 use *, pick English

Results 1 - 10 of about 21,400 English messages for set hostname
group:*linux*. (1.54 seconds)
Reply With Quote
  #3 (permalink)  
Old 07-11-2004
atlantic
 
Posts: n/a
Default Re: system name

Bit~
the output from /etc/sysconfig/network is:
NETWORKING=yes
HOSTNAME=localhost.localdomain

Regards

"Bit Twister" <BitTwister@localhost.localdomain> wrote in message
news:slrncf1d79.54v.BitTwister@wb.home.invalid...
> On Sun, 11 Jul 2004 03:26:24 GMT, atlantic wrote:
> > I installed FC2 from the iso discs, and wound up with a system name of
> > 'dhcppc'. I'd like to change it.

>
> cat /etc/sysconfig/network
> NETWORKING=yes
> HOSTNAME=wb1.home.invalid <==========
> GATEWAY=162.168.1.1
>
>
>
> Please bookmark the following, very large,
> Frequently Asked Questions (faq) Search engine:
>
> http://groups.google.com/advanced_group_search
> set hostname in the first box
> *linux* in Newsgroup, U need 2 use *, pick English
>
> Results 1 - 10 of about 21,400 English messages for set hostname
> group:*linux*. (1.54 seconds)



Reply With Quote
  #4 (permalink)  
Old 07-11-2004
Bit Twister
 
Posts: n/a
Default Re: system name

On Sun, 11 Jul 2004 03:42:01 GMT, atlantic wrote:
> Bit~
> the output from /etc/sysconfig/network is:
> NETWORKING=yes
> HOSTNAME=localhost.localdomain


change HOSTNAME=host.whatever.where in /etc/sysconfig/network

and
cat /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
BOOTPROTO=dhcp
NETMASK=255.255.255.0
ONBOOT=yes
MII_NOT_SUPPORTED=yes
WIRELESS_ENC_KEY=""
NEEDHOSTNAME=no <======== add this line


Anytime you change hostname you need to exit the gui desktop manager.
Anytime you change network config files do a service network restart

Reply With Quote
  #5 (permalink)  
Old 07-11-2004
atlantic
 
Posts: n/a
Default Re: system name

Bit~
Do I need to change the /etc/hosts file to reflect the name change as well?
Also, since I'm doing everything locally (this is a test box), can I have a
system name which does not have a domain - hostname.domainname? - I'm not
sure if the syntax needs to be followed strictly or not.
In other words,
Current = localhost.localdomain
Changed = bojangles

Or, does it need to be in the form of bojangles.localdomain?
Thanks. I appreciate the feedback.


"Bit Twister" <BitTwister@localhost.localdomain> wrote in message
news:slrncf1e3f.58s.BitTwister@wb.home.invalid...
> On Sun, 11 Jul 2004 03:42:01 GMT, atlantic wrote:
> > Bit~
> > the output from /etc/sysconfig/network is:
> > NETWORKING=yes
> > HOSTNAME=localhost.localdomain

>
> change HOSTNAME=host.whatever.where in /etc/sysconfig/network
>
> and
> cat /etc/sysconfig/network-scripts/ifcfg-eth0
> DEVICE=eth0
> BOOTPROTO=dhcp
> NETMASK=255.255.255.0
> ONBOOT=yes
> MII_NOT_SUPPORTED=yes
> WIRELESS_ENC_KEY=""
> NEEDHOSTNAME=no <======== add this line
>
>
> Anytime you change hostname you need to exit the gui desktop manager.
> Anytime you change network config files do a service network restart
>



Reply With Quote
  #6 (permalink)  
Old 07-11-2004
Bit Twister
 
Posts: n/a
Default Re: system name

On Sun, 11 Jul 2004 03:58:50 GMT, atlantic wrote:
> Bit~
> Do I need to change the /etc/hosts file to reflect the name change as well?


I would. Something like
209.208.34.71 bojangles.home.invalid bojangles

Since that is dhcp assigned address you my want to read the following

http://groups.google.com/advanced_group_search
slrncdgp3c.41l.BitTwister@wb.home.invalid in the Message Id box.

> Also, since I'm doing everything locally (this is a test box), can I have a
> system name which does not have a domain - hostname.domainname? - I'm not
> sure if the syntax needs to be followed strictly or not.
> In other words,
> Current = localhost.localdomain
> Changed = bojangles
>
> Or, does it need to be in the form of bojangles.localdomain?
> Thanks. I appreciate the feedback.


I would have a FQDN (Fully Quailified Domain Name) if it was me.
May help your MTA (Mail Transport Agent) postfix/sendmail if you
decide to set one up.

Example
head -5 /etc/hosts
192.168.1.10 wb.home.invalid wb
127.0.0.1 localhost.localdomain localhost
192.168.1.12 wb1.home.invalid wb1
192.168.1.1 fw.home.invalid fw
192.168.1.22 wb4.home.invalid wb4
Reply With Quote
  #7 (permalink)  
Old 07-11-2004
atlantic
 
Posts: n/a
Default Re: system name

Okay. I'll set up the /etc/hosts file and give the article a read (you
turned me onto this Google site, and I use it as much as possible, although
I subscribe to a number of the newsgroups it pulls from. It's a great way
to search through them! Thanks for the link).

Just as an aside, how did you get the ip?

"Bit Twister" <BitTwister@localhost.localdomain> wrote in message
news:slrncf1fau.5d2.BitTwister@wb.home.invalid...
> On Sun, 11 Jul 2004 03:58:50 GMT, atlantic wrote:
> > Bit~
> > Do I need to change the /etc/hosts file to reflect the name change as

well?
>
> I would. Something like
> 209.208.34.71 bojangles.home.invalid bojangles
>
> Since that is dhcp assigned address you my want to read the following
>
> http://groups.google.com/advanced_group_search
> slrncdgp3c.41l.BitTwister@wb.home.invalid in the Message Id box.
>
> > Also, since I'm doing everything locally (this is a test box), can I

have a
> > system name which does not have a domain - hostname.domainname? - I'm

not
> > sure if the syntax needs to be followed strictly or not.
> > In other words,
> > Current = localhost.localdomain
> > Changed = bojangles
> >
> > Or, does it need to be in the form of bojangles.localdomain?
> > Thanks. I appreciate the feedback.

>
> I would have a FQDN (Fully Quailified Domain Name) if it was me.
> May help your MTA (Mail Transport Agent) postfix/sendmail if you
> decide to set one up.
>
> Example
> head -5 /etc/hosts
> 192.168.1.10 wb.home.invalid wb
> 127.0.0.1 localhost.localdomain localhost
> 192.168.1.12 wb1.home.invalid wb1
> 192.168.1.1 fw.home.invalid fw
> 192.168.1.22 wb4.home.invalid wb4



Reply With Quote
  #8 (permalink)  
Old 07-11-2004
Bit Twister
 
Posts: n/a
Default Re: system name

On Sun, 11 Jul 2004 04:25:22 GMT, atlantic wrote:
> Okay. I'll set up the /etc/hosts file and give the article a read (you
> turned me onto this Google site, and I use it as much as possible, although
> I subscribe to a number of the newsgroups it pulls from. It's a great way
> to search through them! Thanks for the link).
>
> Just as an aside, how did you get the ip?


when we get you on a real news reader ;)
you will be able to read the headers.

From: "atlantic" <j@no-spam.net>
Newsgroups: comp.os.linux.admin
Subject: Re: system name
X-Newsreader: Microsoft Outlook Express 6.00.2800.1409
NNTP-Posting-Host: 209.208.34.71
X-Complaints-To: Abuse Role <abuse@atlantic.net>, We Care <abuse@newsread.com>
X-Trace: monger.newsread.com 1089519922 209.208.34.71 (Sun, 11 Jul 00:25 EDT)
Reply With Quote
  #9 (permalink)  
Old 07-11-2004
atlantic
 
Posts: n/a
Default Re: system name

Bit~
Very cool script.
"You create the /sbin/ifup-local script to change /etc/hosts
or place a script in /etc/sysconfig/network-scripts/ifup.d/"

I don't have a directory called ifup.d in network-scripts. Do I just create
it and place the script in it?

The script says that it's usually called from ifup in network-scripts, but
that script is linked to /sbin/ifup. Looking in there, I do see where
OTHERSCRIPT is set to call ifup-${DEVICETYPE}, which I think will call this
script. Pardon the confusion, but I'm new at this, so I'm trying to
understand it as I go...

Thanks for the feedback. I appreciate your time.

Regards
"atlantic" <j@no-spam.net> wrote in message
news:Si3Ic.168$yo4.111247@monger.newsread.com...
> Okay. I'll set up the /etc/hosts file and give the article a read (you
> turned me onto this Google site, and I use it as much as possible,

although
> I subscribe to a number of the newsgroups it pulls from. It's a great way
> to search through them! Thanks for the link).
>
> Just as an aside, how did you get the ip?
>
> "Bit Twister" <BitTwister@localhost.localdomain> wrote in message
> news:slrncf1fau.5d2.BitTwister@wb.home.invalid...
> > On Sun, 11 Jul 2004 03:58:50 GMT, atlantic wrote:
> > > Bit~
> > > Do I need to change the /etc/hosts file to reflect the name change as

> well?
> >
> > I would. Something like
> > 209.208.34.71 bojangles.home.invalid bojangles
> >
> > Since that is dhcp assigned address you my want to read the following
> >
> > http://groups.google.com/advanced_group_search
> > slrncdgp3c.41l.BitTwister@wb.home.invalid in the Message Id box.
> >
> > > Also, since I'm doing everything locally (this is a test box), can I

> have a
> > > system name which does not have a domain - hostname.domainname? - I'm

> not
> > > sure if the syntax needs to be followed strictly or not.
> > > In other words,
> > > Current = localhost.localdomain
> > > Changed = bojangles
> > >
> > > Or, does it need to be in the form of bojangles.localdomain?
> > > Thanks. I appreciate the feedback.

> >
> > I would have a FQDN (Fully Quailified Domain Name) if it was me.
> > May help your MTA (Mail Transport Agent) postfix/sendmail if you
> > decide to set one up.
> >
> > Example
> > head -5 /etc/hosts
> > 192.168.1.10 wb.home.invalid wb
> > 127.0.0.1 localhost.localdomain localhost
> > 192.168.1.12 wb1.home.invalid wb1
> > 192.168.1.1 fw.home.invalid fw
> > 192.168.1.22 wb4.home.invalid wb4

>
>



Reply With Quote
  #10 (permalink)  
Old 07-11-2004
atlantic
 
Posts: n/a
Default Re: system name

I'm setting up the Linux box as fast as I can. The sooner I get gone from
the Viet Bill, Republic of, the better.
What newsreader/mail client/browser are you using?

"Bit Twister" <BitTwister@localhost.localdomain> wrote in message
news:slrncf1gjm.5pd.BitTwister@wb.home.invalid...
> On Sun, 11 Jul 2004 04:25:22 GMT, atlantic wrote:
> > Okay. I'll set up the /etc/hosts file and give the article a read (you
> > turned me onto this Google site, and I use it as much as possible,

although
> > I subscribe to a number of the newsgroups it pulls from. It's a great

way
> > to search through them! Thanks for the link).
> >
> > Just as an aside, how did you get the ip?

>
> when we get you on a real news reader ;)
> you will be able to read the headers.
>
> From: "atlantic" <j@no-spam.net>
> Newsgroups: comp.os.linux.admin
> Subject: Re: system name
> X-Newsreader: Microsoft Outlook Express 6.00.2800.1409
> NNTP-Posting-Host: 209.208.34.71
> X-Complaints-To: Abuse Role <abuse@atlantic.net>, We Care

<abuse@newsread.com>
> X-Trace: monger.newsread.com 1089519922 209.208.34.71 (Sun, 11 Jul 00:25

EDT)


Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 10:23 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0