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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
03-09-2003, 01:30 PM
|
#1
|
|
Member
Registered: Jan 2003
Location: Long Island
Posts: 72
Rep:
|
This is so annoying please help...
If i start up linux without cable moderm connected. Everything starts up fine with localhost@localdomain or whatever it is.
But once i start it with the internet connected it changes to
"dhcp-32-5614" what is this?
It does not allow my webserver to start or to use the internet.
I looked in error for httpd and it said something about can't find ip address..
im stumped any help..
|
|
|
|
03-09-2003, 02:23 PM
|
#2
|
|
Member
Registered: Feb 2003
Location: Baton Rouge, LA
Distribution: ubuntu
Posts: 137
Rep:
|
Ok, I'm a complete newbie, but I'll try and help...
dhcp stands for dynamic host configuration protocol, or something like that. Look in your network settings and make sure you have dhcp turned on (since you have a cable modem, I'm assuming your isp uses dhcp - most cable isp co. do).
Next, write back and tell us what distro you are using, and what exactly changes from "localhost" to "dhcp-32-5614,"
|
|
|
|
03-09-2003, 02:59 PM
|
#3
|
|
Member
Registered: Jan 2003
Location: Long Island
Posts: 72
Original Poster
Rep:
|
when i log in as a user. after i am in i get prompted with:
"could not look up internet address for dhcp-32-5614. This will prevent gnome from operating correctly. it may be possible to correct the problem by adding dhcp-31-5614 to hosts.
Then i get 2 options to 1. log in anyway and try again.
try again never works so i just always log in anyway.
Im sure dhcp is turned on. I run redhat 8.0 and i honstley have no clue what changes. from local host to dhcp-32-5614
|
|
|
|
03-09-2003, 04:04 PM
|
#4
|
|
Senior Member
Registered: Jan 2003
Posts: 2,786
|
Continue to boot when Gnome comes up with that message. Then, from the Red Hat menu, select System tools -> Network device control
It will ask for root's password, and then show a new window (Network Device Control). Highlight the line of the network card you want to mess with. If you only have one, it should already be highlighted. Click the Configure button on the right. Another window pops up (Network Configuration). Click the DNS tab. In the Hostname box, type in what you want your computer to be named (something like Neo, Frodo, Z28kid, or whatever you want). Now, go back to the devices tab. Click the Edit button on the right. Again, a new window pops up (Ethernet Device). Make sure "Activate device when computer starts" is checked. Also, verify that you have "Automatically obtain IP address settings with" selected, and that "dhcp" is listed in the box on the right.
Now go through each window and hit Apply (if there is an apply button, of course), and then the Close button. Now, you need to edit a file. Open up your /etc/hosts file. Look for a line like this:
127.0.0.1 localhost.localdomain localhost
It may have other stuff on it. Add the name you chose earlier for the Hostname to this file. In other words, the line should change to look like so:
127.0.1 Z28kid localhost.localdomain localhost
Then try rebooting your computer.
|
|
|
|
03-09-2003, 10:28 PM
|
#5
|
|
Member
Registered: Jan 2003
Location: Long Island
Posts: 72
Original Poster
Rep:
|
i did all the stuff.
But when i try to look at /etc/hosts
it says permission denied even when i am root.
what do i do?
|
|
|
|
03-09-2003, 11:25 PM
|
#6
|
|
Senior Member
Registered: Jan 2003
Posts: 2,786
|
Here's a walk-through using emacs from a terminal to edit the file:
1) su -
2) <enter root's password>
3) emacs /etc/hosts
4) Use the arrow keys, backspace, and the other keys should all work basically like they would in windows notepad, word, etc.
5) when the file is how you like it, hold down the control button
6) with control held down type the letter "s" (saves the file)
7) then, again with control held down, type these two letters "xc" (closes emacs)
8) type "exit" to give up root access
As a side note, typing su at the prompt only makes you root in that terminal; it doesn't change the gnome environment. Similarly, when you are asked for authorization and get the keys on the panel, you still are not root; you have temporary access as root. It's a little difficult to explain, and I don't think I'm doing a very good job of it. Give that walk-through a try and let us know how it goes.
|
|
|
|
03-10-2003, 02:05 PM
|
#7
|
|
Member
Registered: Jan 2003
Location: Long Island
Posts: 72
Original Poster
Rep:
|
well it didn't work. I even reinstalled redhat and it does the same thing. Only when it is connected to the internet it doesn't let me on the net and on start up the httpd fails.
any ideas why?
|
|
|
|
03-10-2003, 03:23 PM
|
#8
|
|
Member
Registered: Jan 2003
Location: Long Island
Posts: 72
Original Poster
Rep:
|
i just found this out. With the ethernet cable in the computer but no connected to the cable modem it still makes httpd fail and it says cannot look up interent address. But if I unplug the cable it starts up find on local host. 
|
|
|
|
03-10-2003, 03:54 PM
|
#9
|
|
Member
Registered: Jan 2003
Location: Long Island
Posts: 72
Original Poster
Rep:
|
did a search and found the answers.
Thanks to all those that helped!!!!!!
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 04:13 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|