LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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!

Notices


Reply
  Search this Thread
Old 07-18-2002, 04:06 AM   #1
FreakboY
Member
 
Registered: Jun 2002
Location: TX, USA
Distribution: Slackware
Posts: 379

Rep: Reputation: 31
where's my localhost!??


Hi!

I was wondering why i'm getting weird
latters and numbers on my terminal!??
it used to be:
FreakboY@localhost:$

but now i'm getting:
FreakboY@asdf123456465:$
and can't log into Xwindows
*this only happens when my
mdoem is on!!!* how can i fix it!??

thanx!
 
Old 07-18-2002, 04:44 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
when your modem is on your local settings get changed. Typically your nameserv3ers (resolv.conf) will get over written as well as otehr things like search domains.

you're getting localhost because you've not set a domain in the first place. if you set one using "hostname" it's likely that that name will not be changed to the cryptic ISP supplied one. i'm pretty sure all that that actaully does is set the HOSTNAME= parameter in /etc/sysconfig/network so make sure that's set to something
 
Old 07-19-2002, 04:03 AM   #3
FreakboY
Member
 
Registered: Jun 2002
Location: TX, USA
Distribution: Slackware
Posts: 379

Original Poster
Rep: Reputation: 31
i did modify the file but no success!!!
can you give me more details about this!??

thanx!
 
Old 07-19-2002, 04:07 AM   #4
rverlander
Member
 
Registered: May 2002
Distribution: A few
Posts: 488

Rep: Reputation: 30
type this:

hostname localhost
 
Old 07-19-2002, 02:11 PM   #5
FreakboY
Member
 
Registered: Jun 2002
Location: TX, USA
Distribution: Slackware
Posts: 379

Original Poster
Rep: Reputation: 31
dosn't work!!!
any other ideas!??
 
Old 07-19-2002, 07:14 PM   #6
rverlander
Member
 
Registered: May 2002
Distribution: A few
Posts: 488

Rep: Reputation: 30
Are you using kppp or something else?
 
Old 07-19-2002, 07:26 PM   #7
neo77777
LQ Addict
 
Registered: Dec 2001
Location: Brooklyn, NY
Distribution: *NIX
Posts: 3,704

Rep: Reputation: 56
I think if you put HOSTNAME=localhost.localdomain in /etc/sysconfig/network file it should work
 
Old 07-20-2002, 02:32 AM   #8
FreakboY
Member
 
Registered: Jun 2002
Location: TX, USA
Distribution: Slackware
Posts: 379

Original Poster
Rep: Reputation: 31
what the heck is kppp!??

*I think if you put HOSTNAME=localhost.localdomain in /etc/sysconfig/network file it should work*
yes, i already did that!!!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Change localhost name in username@localhost n175uj Linux - Newbie 4 07-01-2005 09:25 PM
apache http://localhost/mysite ---> http://localhost/mysite/index.php how? ilnli Linux - General 8 06-04-2005 04:23 PM
Message from syslogd@localhost localhost kernel: Disabling IRQ #21 ylts Linux - Hardware 0 02-26-2005 09:01 AM
dns requests from localhost to localhost keex Linux - Networking 2 11-13-2003 02:47 PM
Telnet localhost and telnet not from localhost for IMAP services seb77 Linux - Networking 1 10-15-2003 02:20 PM


All times are GMT -5. The time now is 02:40 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration