View previous topic :: View next topic |
Author |
Message |
willc0de4food n00b
Joined: 26 Jan 2006 Posts: 11 Location: MI, USA
|
Posted: Fri Feb 01, 2008 10:37 pm Post subject: New install, i get an IP but still no net access.. [SOLVED] |
|
|
hello.. i recently attempted, yet again, to install gentoo. this is try #3498262983 >.< all of which failed at different points, but i'm trying again. i went through the installation guide and installed dhcpcd as it said for my network interface (i have a DFI Lanparty UT nF4 ultra-d motherboard, so 1x 1Gb nvidia ethernet port, 1x 1Gb Marvell ethernet port). i'm not using a router, so i have the modem plugged directly into the nvidia ethernet port. during boot, i get an IP but afterwards when i try to emerge ati-drivers it fails saying temporary failure in name resolution. links can't find the host when i try to go to google, nor can ping find the host (it fails immediately). so...what do i need to do to fix it? :]
thanks _________________ There are 10 kinds of people in the world:
those who understand binary, and those who do not.
Last edited by willc0de4food on Sun Feb 03, 2008 1:54 am; edited 1 time in total |
|
Back to top |
|
|
mjf55 Guru
Joined: 25 Aug 2007 Posts: 372
|
Posted: Fri Feb 01, 2008 11:32 pm Post subject: |
|
|
It sounds like to me that your /etc/resolv.conf file is empty. Gentoo handbook http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=1&chap=3 section 3.13, 3.14 tells you to add your nameserver ip address (in the form of nameserver 123.456.789.012 )( you should have received from your isp ). Or you can use net-setup as described in section 2.1 ( net-setup <interface> )(i.e. net-setup eth0 ). _________________ Mark
No longer a n00b, but still a 'Kool Kid' wannabe |
|
Back to top |
|
|
willc0de4food n00b
Joined: 26 Jan 2006 Posts: 11 Location: MI, USA
|
Posted: Sat Feb 02, 2008 12:12 am Post subject: |
|
|
it is correct that there is no nameserver in my resolv.conf
all there is is the domain name i set during the installation
net-setup returns the command cannot be found, emerge --search doesn't find anything for net-setup either.
i have no idea what the nameserver would be.. my ISP is comcast (O_o)
thanks for the reply :]
what next? _________________ There are 10 kinds of people in the world:
those who understand binary, and those who do not. |
|
Back to top |
|
|
The Unknown Guru
Joined: 28 Feb 2007 Posts: 335 Location: Minnesota, U.S.A
|
Posted: Sat Feb 02, 2008 12:15 am Post subject: |
|
|
This should be pretty straight forward dhcp.
check /etc/conf.d/hostname for a valid host name, mine looks like this
Code: | # /etc/conf.d/hostname
# Set to the hostname of this machine
HOSTNAME="DaUnknown"
| check /etc/hosts for your localhosts aliases, mine looks like this
Code: | # /etc/hosts: Local Host Database
#
# This file describes a number of aliases-to-address mappings for the for
# local hosts that share this file.
#
# In the presence of the domain name service or NIS, this file may not be
# consulted at all; see /etc/host.conf for the resolution order.
#
# IPv4 and IPv6 localhost aliases
127.0.0.1 DaUnknown.home DaUnknown localhost
| check /etc/conf.d/net put these two lines in there Code: | config_eth0=( "dhcp" )
dhcp_eth0="nodns nontp nonis"
| make sure eth0 is add to the default runlevel, run this command Code: | rc-update add net.eth0 default |
I believe that should do it _________________ Doing what you like is freedom.
Liking what you do is happiness. |
|
Back to top |
|
|
The Unknown Guru
Joined: 28 Feb 2007 Posts: 335 Location: Minnesota, U.S.A
|
Posted: Sat Feb 02, 2008 12:20 am Post subject: |
|
|
Your resolv.conf will be generated by dhcpcd. _________________ Doing what you like is freedom.
Liking what you do is happiness. |
|
Back to top |
|
|
The Unknown Guru
Joined: 28 Feb 2007 Posts: 335 Location: Minnesota, U.S.A
|
Posted: Sat Feb 02, 2008 12:20 am Post subject: |
|
|
Your resolv.conf will be generated by dhcpcd _________________ Doing what you like is freedom.
Liking what you do is happiness. |
|
Back to top |
|
|
willc0de4food n00b
Joined: 26 Jan 2006 Posts: 11 Location: MI, USA
|
Posted: Sat Feb 02, 2008 12:56 am Post subject: |
|
|
hostname is set.
hosts is set.
net is set & added to runlevel.
still no go =[
i did compile my own kernel..might i have left something out? _________________ There are 10 kinds of people in the world:
those who understand binary, and those who do not. |
|
Back to top |
|
|
The Unknown Guru
Joined: 28 Feb 2007 Posts: 335 Location: Minnesota, U.S.A
|
Posted: Sat Feb 02, 2008 1:47 am Post subject: |
|
|
Does the internet work on the livecd?
Is your modem and ISP set to work with dhcp?
If you get internet on the live cd run this command Code: | basename `readlink /sys/class/net/eth0/device/driver/module` |
this should list the module loaded for your ethernet device, does this match what you've built for your kernel?
Also, do you get the same results from running the commandin the livecd and the new install?
the results should look something like this Code: | eth0 Link encap:Ethernet HWaddr 00:50:8D:EF:7F:1A
inet addr:192.168.1.100 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::250:8dff:feef:7f1a/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:110862 errors:0 dropped:0 overruns:0 frame:0
TX packets:70752 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:149867313 (142.9 Mb) TX bytes:7809106 (7.4 Mb)
Interrupt:16 Base address:0xd000
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
| What really matters is the first couple of lines in the eth0 section? You will get an IP even if your not connecting. But it will not be valid or
in the range of ISP. _________________ Doing what you like is freedom.
Liking what you do is happiness. |
|
Back to top |
|
|
willc0de4food n00b
Joined: 26 Jan 2006 Posts: 11 Location: MI, USA
|
Posted: Sat Feb 02, 2008 3:11 am Post subject: |
|
|
the ip i get is 24.11.123(?).xx.. subnet mask is 255.255.252.0 which i find odd. bcast is 255.255.255.255 =\
i do have net access on the livecd and i'll boot that up to check what the information is and edit this post with those results
the livecd and when i boot the system produce the same ip, subnet mask, and bcast addr..
the command you told me to run just reported 'module', so i did an ls -al and it showed the link pointing to ../../../../module/forcedeth both on the livecd and in my system.
the resolv.conf in my system reports: domain shibbynet
the resolv.conf on the livecd is: Quote: | search hsd1.mi.comcast.net
nameserver 68.87.77.130
nameserver 68.87.72.130 |
=[ _________________ There are 10 kinds of people in the world:
those who understand binary, and those who do not. |
|
Back to top |
|
|
The Unknown Guru
Joined: 28 Feb 2007 Posts: 335 Location: Minnesota, U.S.A
|
Posted: Sat Feb 02, 2008 4:33 am Post subject: |
|
|
Hmm..Ok
Could you please post those files listed above, you can get into your system from the livecd just go back to the chroot steps
handbook http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=1&chap=6
Then can you verify that dhcpcd is installed on the system using
Could you please post the ouput of Code: | lspci | grep Ethernet |
Then go into into your kernel check to make sure that you have these options at minimal compiled into your kernel
Networking-->[*]Networking support
Networking-->Networking options-->[*]TCP/IP networking-->[*]IP: multicasting, [*]IP: kernel level autoconfiguration, [*]IP: DHCP support
Networking-->Networking options-->[*]TCP/IP networking-->[*]Unix domain sockets
Networking-->Networking options-->[*]TCP/IP networking-->[*]Packet socket
Bus options-->[*]PCI support
Device Drivers-->[*]Network device support
Device Drivers-->Network device support-->[*]Ethernet(10 or 100Mbit) or (1000Mbit)-->[*]then your proper driver
Then could you post the ouput of
all of this from your chrooted session, thanks.
Oh and by the way welcome to gentoo _________________ Doing what you like is freedom.
Liking what you do is happiness. |
|
Back to top |
|
|
The Unknown Guru
Joined: 28 Feb 2007 Posts: 335 Location: Minnesota, U.S.A
|
Posted: Sat Feb 02, 2008 5:52 am Post subject: |
|
|
Also give this a whirl,
remove the "nodns" option in /etc/conf.d/net
then remove /etc/resolv.conf Code: | rm /etc/resolv.conf | restart the net.eth0 Code: | /etc/init.d/net.eth0 restart |
check to see that it generated a resolv.conf Code: | cat /etc/resolve.conf | if it did and it looks good, ping something like google, else try and copy or enter in the info from resolv.conf off the livecd.
If all is well put the option back in /etc/conf.d/net
After thinking about this, I realized that the option "nodns" in /etc/conf.d/net makes dhcpcd not overwrite /etc/resolv.conf.
So if your resolv.conf was messed up it would not have been overwritten or regenerated, and it would not contain the correct nameservers. _________________ Doing what you like is freedom.
Liking what you do is happiness. |
|
Back to top |
|
|
willc0de4food n00b
Joined: 26 Jan 2006 Posts: 11 Location: MI, USA
|
Posted: Sun Feb 03, 2008 12:11 am Post subject: |
|
|
that worked :]
now i get an error when trying to emerge kdebase-startkde, konsole, & konqueror..
error: x11-apps/xrandr-1.2.2 failed _________________ There are 10 kinds of people in the world:
those who understand binary, and those who do not. |
|
Back to top |
|
|
The Unknown Guru
Joined: 28 Feb 2007 Posts: 335 Location: Minnesota, U.S.A
|
Posted: Sun Feb 03, 2008 12:48 am Post subject: |
|
|
First thing I highly recommend before doing anything else is to Code: | emerge --sync
emerge -avuDN world | it will ask you if you want to install these, take a minute to study the USE flags, if you see anything that
you want to add or have questions about now is the time to take care of it and say no. There is a handy program called ufed that has a ncurses based
GUI you can use that to add flags and see a light description of what support they add. Then re-run Code: | emerge -avuDN world |
and you'll probably see alot more packages that it wants to pull in. Repeat as necesary till you get the desired results.
Then after that we'll work on getting your desktop environment. In the mean time you can have a look at the desktop resources
http://www.gentoo.org/doc/en/index.xml?catid=desktop
CONGRATS!! on your new install.
p.s can you please add [SOLVED] to your original post title so other can learn from this.
thanks _________________ Doing what you like is freedom.
Liking what you do is happiness. |
|
Back to top |
|
|
willc0de4food n00b
Joined: 26 Jan 2006 Posts: 11 Location: MI, USA
|
Posted: Wed Feb 06, 2008 7:07 am Post subject: |
|
|
thanks =D
except, its broke. :'( :'( :'( figures. )*&@%)^@$#(^@
i sync'd, and i emerged, and now its broken.
comes up saying the files /bin/mktemp and /var/lib/init.d/depcache don't exist. so i updatedb'd & tried to locate them and its right, they're not there. there's a link in /usr/bin to /bin/mktemp but no /bin/mktemp -_-
how can i fix it? =[
thanks _________________ There are 10 kinds of people in the world:
those who understand binary, and those who do not. |
|
Back to top |
|
|
Tii l33t
Joined: 02 Jan 2004 Posts: 733
|
Posted: Wed Feb 06, 2008 5:45 pm Post subject: |
|
|
Do emerge -pv mktemp and see if mktemp is installed. If it's not which seems to be the case install it. |
|
Back to top |
|
|
The Unknown Guru
Joined: 28 Feb 2007 Posts: 335 Location: Minnesota, U.S.A
|
Posted: Wed Feb 06, 2008 6:42 pm Post subject: |
|
|
In addition to the advice offered by Tii
1:)Did this happen during the update?or after?
If after, did you update all the config files that needed updating? Things will break fast if this is not done. Alot of times after doing updates or emergeing packages it will tell you that there is config files that need updating. Just runIt's an interactive command line tool, a good rule of thumb for updating config files is: If you don't know what it is or have never edited it before,accept the changes, otherwise go through it and accept only the changes that do not involve your custom settings.
2:)During getting your system up to par, you may want to runto check for reverse dependencies and linking issues.
3:)If not solved, you might want to start a new thread,probably in portage and programming to get the proper attention.
list the package your trying to compile, list the last 20 to 30 lines(that contains alot of useful output), and list the output of emerge --info. _________________ Doing what you like is freedom.
Liking what you do is happiness. |
|
Back to top |
|
|
willc0de4food n00b
Joined: 26 Jan 2006 Posts: 11 Location: MI, USA
|
Posted: Wed Feb 06, 2008 7:21 pm Post subject: |
|
|
ahh, yes.. thats the command >.< the problem occurred after the update, and it told me there was something like 147 config files that needed my attention..but i didn't feel like dealing with it & needed to reboot as i have ICS setup so my mom can access the internet through me in winblows because i can't find the power supply to the router >.<
i'll try what you guys suggested tho & report back. thanks for the help ^_^ _________________ There are 10 kinds of people in the world:
those who understand binary, and those who do not. |
|
Back to top |
|
|
|