LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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 06-16-2009, 07:23 PM   #16
manuleka
Member
 
Registered: Feb 2009
Posts: 114

Original Poster
Rep: Reputation: 16

Quote:
Originally Posted by rohandhruva View Post
I was facing the same problem. This happens if you change the hostname during the install process. I have set the hostname of my system to "fedora". The installer assumes that people will not change the default of "localhost.localdomain".

To solve the problem, edit the file /etc/hosts

Code:
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4 <ADD_YOURS_HERE>
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6 <ADD_YOURS_HERE>
Just add your hostname to the end of both the lines as shown above, that should solve the problem.
here's my /etc/hosts
Code:
127.0.0.1		localhost.localdomain localhost
::1		localhost6.localdomain6 localhost6
do i need to put my username between the <>?

i wonder if i need to change my firstline as well to localhost 4? i'll try with adding my hostname only and see if it works

Last edited by manuleka; 06-16-2009 at 08:02 PM.
 
Old 06-16-2009, 09:03 PM   #17
manuleka
Member
 
Registered: Feb 2009
Posts: 114

Original Poster
Rep: Reputation: 16
update: fixed mine by adding hostname without the <>
Code:
127.0.0.1		localhost.localdomain localhost plain_host_name
::1		localhost6.localdomain6 localhost6 plain_host_name
 
Old 06-16-2009, 09:08 PM   #18
marozsas
Senior Member
 
Registered: Dec 2005
Location: Campinas/SP - Brazil
Distribution: SuSE, RHEL, Fedora, Ubuntu
Posts: 1,499
Blog Entries: 2

Rep: Reputation: 68
I think is better to leave all default names. I mean:
Code:
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4 plain_host_name
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6 plain_host_name
If your host has a fixed ip address like mine, than is better to leave 127.0.0.1 to localhost names and use a separate line for your local address. Mine is:
Code:
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
192.168.0.1 babylon5.my_own_domain babylon5
 
Old 06-16-2009, 09:28 PM   #19
manuleka
Member
 
Registered: Feb 2009
Posts: 114

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by marozsas View Post
I think is better to leave all default names. I mean:
Code:
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4 plain_host_name
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6 plain_host_name
If your host has a fixed ip address like mine, than is better to leave 127.0.0.1 to localhost names and use a separate line for your local address. Mine is:
Code:
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
192.168.0.1 babylon5.my_own_domain babylon5
i'm on dynamic, but i will keep that in mind when i apply for a fixed ip in (hopefully) the near future
 
Old 06-16-2009, 09:28 PM   #20
rohandhruva
Member
 
Registered: Dec 2004
Posts: 42

Rep: Reputation: 17
You need to put your hostname, not the username, at the end of the 2 lines. And it's not to be inserted in between <> - I used those angle brackets just as a placeholder.
 
Old 06-16-2009, 09:46 PM   #21
manuleka
Member
 
Registered: Feb 2009
Posts: 114

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by rohandhruva View Post
You need to put your hostname, not the username, at the end of the 2 lines. And it's not to be inserted in between <> - I used those angle brackets just as a placeholder.
thanks i meant hostname

and i did use hostname --> plain_host_name

Code:
127.0.0.1		localhost.localdomain localhost plain_host_name
::1		localhost6.localdomain6 localhost6 plain_host_name
 
Old 06-20-2009, 11:21 AM   #22
jjcf89
LQ Newbie
 
Registered: Feb 2009
Posts: 5

Rep: Reputation: 0
Thanks this fixed it for me. And for those who don't remember what you set your hostname to it shows up when you open a terminal. Example mine says jonathan@jonserver so after the @ is your host name. Can someone verify that this will always be the case?
 
Old 06-22-2009, 05:41 PM   #23
manuleka
Member
 
Registered: Feb 2009
Posts: 114

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by marozsas View Post
Yes, this is what I did different in my work place and in my home.
At workplace I left the default localhost.localdomain and added my machine name at end of lines after the first boot. In my home I changed it at installation time and never go back to /etc/hosts again.

How do you figure out this ?
Most interesting than the fix itself is how you came to this...

Anyway, thank you !
i'm also insterested in how you figure this out as well...
 
Old 06-22-2009, 06:23 PM   #24
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
I changed my hostname during the installation process, but do not appear to have any sudo delay.
 
Old 06-22-2009, 09:06 PM   #25
manuleka
Member
 
Registered: Feb 2009
Posts: 114

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by billymayday View Post
I changed my hostname during the installation process, but do not appear to have any sudo delay.
and you are using Fedora 11 as well?
 
Old 06-22-2009, 09:18 PM   #26
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Of course. I can read thread titles.
 
  


Reply



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
Long delay on database reload - where should I start looking for problems? EnderX Linux - General 1 09-16-2008 08:39 PM
A strange delay when start-up LinxNew Linux - Laptop and Netbook 1 04-29-2005 09:44 AM
Too much delay in ftp/ssh to start anmsg Linux - Networking 8 10-15-2004 06:20 PM
30 second application start delay with KPPP yfn *BSD 3 05-31-2004 02:43 PM
Process start delay when network running andrewb758 Linux - Software 1 02-16-2004 11:01 AM

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

All times are GMT -5. The time now is 12:09 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