LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 01-12-2003, 05:59 PM   #1
charlie123
Member
 
Registered: Jan 2003
Location: S.E. England
Distribution: Redhat 8.0
Posts: 64

Rep: Reputation: 15
hostname problems


hi, this problem is confusing me.

when i first set up my internet, and it asked for hostname (optional) i entered 'charlie'. that caused my computer to slow down a lot, whenever i tried to open something it took ages (like 10-20seconds). if at the console i typed 'localhost' it said 'charlie'. i then changed this by doing 'hostname localhost.localdomain' and everything speeded up again and all was well.
however when i reboot my PC, i get an error message when linux boots that goes something like:
Starting lpd: <loads of numbers> bad hostname 'charlie'
and when i get into linux and type 'hostname' at the terminal it says 'charlie' again. i have tried deactivating and deleting the the device in 'Network' and then reinstalling it via the Internet configuration wizard, but it again gets set the hostname of 'charlie'.
i am running redhat 8.0. dont know wot other info is relevant.

i dont understand why it keeps getting changed, and why my computer opens things so slowly when it does. can anyone explain?

what settings do i need to change to fix this?

many thanks,

CHarlie
 
Old 01-12-2003, 06:32 PM   #2
charlie123
Member
 
Registered: Jan 2003
Location: S.E. England
Distribution: Redhat 8.0
Posts: 64

Original Poster
Rep: Reputation: 15
hmm i think i *might* have fixed it.
i found the files in /root/.kde and /home/myname/'kde, which were:
socket-localhost.localdomain and tmp-localhost.localdomain also there were two more called charlie instead of localhost.localdomain.
i renamed the charlie ones to backups and restarted. on reboot i was told that 'localhostlocaldomain' (note the missing '.' ) was bad hostname, like before when it was charlie. now im not sure if i had typed hostname localhostlocaldomain accidently some time earlier, so i have yet to reboot and try again, this time renaming the ones without the dot. hopefully that will work.

hmm so much fun trying to fix my mistakes, seriously its so satisfying when i solve a problem, especially if i do it by myself.

*****************EDIT******************

ok it didnt work.

basically this is what is happening:

when linux boots i can see the line:
Setting hostname localhost.localdomain [OK}

then when it gets to
Starting lpd
it comes with the error get_local_host: localhostlocaldomain bad (note the missing dot)

when i load kde and type hostname i can see that it is indeed set to localhostlocaldomain. Now if my hostname is set to anything except localhost.localdomain (note the dot is there) everything is slow to open. but it keeps getting renamed.
also when i load up linux two new directory links appear in /home/myname/.kde and they are:
socket-localhostlocaldomain
tmp-localhostlocaldomain

i dont understand what is going on. im gonna continue trying to figure it out, and i have not yet found any useful information anywhere. does anyone know how i can fix this? thanks

CHarlie

Last edited by charlie123; 01-12-2003 at 06:43 PM.
 
Old 01-12-2003, 08:03 PM   #3
neo77777
LQ Addict
 
Registered: Dec 2001
Location: Brooklyn, NY
Distribution: *NIX
Posts: 3,704

Rep: Reputation: 56
what /etc/hosts tells you?
 
Old 01-13-2003, 01:19 AM   #4
charlie123
Member
 
Registered: Jan 2003
Location: S.E. England
Distribution: Redhat 8.0
Posts: 64

Original Poster
Rep: Reputation: 15
thanks for reply .

127.0.0.1 localhost.localdomain localhost

also my /etc/sysconfig/network says my hostname is localhost.localdomain.
 
Old 01-13-2003, 02:55 PM   #5
charlie123
Member
 
Registered: Jan 2003
Location: S.E. England
Distribution: Redhat 8.0
Posts: 64

Original Poster
Rep: Reputation: 15
ok i think it might be ok now, i edited /etc/hosts and /etc/sysconfig/network and changed the hostname to charlie.localdomain. then i ran hostname charlie.localdomain. i then restarted X and it was ok, i have yet to restart my computer tho.

**EDIT**

ok it is fine now, must have just been me being stupid .
cheers for help

CHarlie

Last edited by charlie123; 01-14-2003 at 04:35 AM.
 
  


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
hostname resolution problems. FLOODS Fedora 4 10-27-2005 07:58 PM
Hostname/Routing problems with home network robintw SUSE / openSUSE 15 01-08-2005 07:55 AM
msql and hostname problems krayz1e Linux - Newbie 4 09-04-2004 01:48 AM
changed hostname now problems degraffenried13 Linux - General 2 02-21-2004 06:15 PM
Problems with KDE after setting hostname. sanfran49 Linux - Software 5 02-17-2004 12:58 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:39 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
Open Source Consulting | Domain Registration