Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Cannot emerge [Solved]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
wydileie
n00b
n00b


Joined: 18 Jun 2007
Posts: 3
Location: Columbus, OH

PostPosted: Mon Jun 18, 2007 5:06 pm    Post subject: Cannot emerge [Solved] Reply with quote

This is only my second install and I am still not very used to command line stuff still so bare with me please. Basically, stupid me forgot to emerge dhcpcd during the install so now I can't automatically receive my IP... no big deal I thought, I will just set up a static IP for myself until I can emerge dhcpcd. So i did, and I can ping anyone on my network as well as websites, but it will not connect to a server to emerge anything. This is really setting me back because I can't expand on my system to get a GUI or anything else that I want. By the way I copied the tar file for dhcpcd to my root Directory via cdrom but I do not know how to use it or if I can point it to emerge it from there or whatever.

Help or ideas would be appreciated.


Last edited by wydileie on Mon Jun 18, 2007 7:43 pm; edited 2 times in total
Back to top
View user's profile Send private message
trolley
Apprentice
Apprentice


Joined: 12 Jun 2002
Posts: 292
Location: Canada

PostPosted: Mon Jun 18, 2007 6:00 pm    Post subject: Reply with quote

You could reboot from the installation CD, mount your partitions and chroot to them then run emerge from the chrooted environment. That way the dhcpcd from the CD would get your IP info but you'd still be able to emerge into your new system.
Back to top
View user's profile Send private message
wydileie
n00b
n00b


Joined: 18 Jun 2007
Posts: 3
Location: Columbus, OH

PostPosted: Mon Jun 18, 2007 6:15 pm    Post subject: Reply with quote

To be honest I do not really know how to do that. I know you use the mount command, and I adjusted the temporary fstab file with the following (I don't know if this is correct):

/dev/hda1 /boot ext2
/dev/hda2 none swap
/dev/hda3 / ext3

then in the console I just typed the following:
mount /dev/hda1
mount /dev/hda3

I don't really know why that is what I am supposed to do or if it is even near correct but it just seemed right to me for some reason. Again, any help is appreciated.
Back to top
View user's profile Send private message
trolley
Apprentice
Apprentice


Joined: 12 Jun 2002
Posts: 292
Location: Canada

PostPosted: Mon Jun 18, 2007 6:24 pm    Post subject: Reply with quote

No problem, just do something like this:


    Boot from your installation CD.
    Code:
    mount /dev/hda3 /mnt/gentoo

    Code:
    chroot /mnt/gentoo /bin/bash

    At this point you will be in a chroot environment of your new Gentoo installation. Make sure your environment is set up right:
    Code:
    env-update; source /etc/profile

    Then go ahead and install dhcpcd:
    Code:
    emerge dhcpcd



Once you've done that exit from the chroot environment, umount /dev/hda3, reboot and take out the CD. Your Gentoo install will boot and since you now have the dhcpcd client it will get it's network configuration from DHCP. Good luck :)
Back to top
View user's profile Send private message
ichbinsisyphos
Guru
Guru


Joined: 08 Dec 2006
Posts: 547

PostPosted: Mon Jun 18, 2007 6:30 pm    Post subject: dist Reply with quote

wydileie wrote:
So i did, and I can ping anyone on my network as well as websites, but it will not connect to a server to emerge anything. This is really setting me back because I can't expand on my system to get a GUI or anything else that I want.

so network works, ping works, dns works? did you forget the "mirrorselect" step in the manual?
you need to tell portage, which mirror- and rsync-servers to use.


wydileie wrote:
By the way I copied the tar file for dhcpcd to my root Directory via cdrom but I do not know how to use it or if I can point it to emerge it from there or whatever.


copy it in your /usr/portage/distfiles folder. if for some reason your *.tar is not as actual as the last version in your portage database, emerge the specific version:

Code:
emerge -av =net-misc/dhcpcd-3.0.17

whatever version your tar-file is.


wydileie wrote:
To be honest I do not really know how to do that. I know you use the mount command, and I adjusted the temporary fstab file with the following (I don't know if this is correct):

/dev/hda1 /boot ext2
/dev/hda2 none swap
/dev/hda3 / ext3

then in the console I just typed the following:
mount /dev/hda1
mount /dev/hda3

I don't really know why that is what I am supposed to do or if it is even near correct but it just seemed right to me for some reason. Again, any help is appreciated.


you can chroot back into your root-directory on hdd, from the livecd environement. take a look at chapter 6 ff: http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=1&chap=6
Back to top
View user's profile Send private message
wydileie
n00b
n00b


Joined: 18 Jun 2007
Posts: 3
Location: Columbus, OH

PostPosted: Mon Jun 18, 2007 6:41 pm    Post subject: Reply with quote

Awesome, all is well and good now. Thank you both for your help.
Back to top
View user's profile Send private message
trolley
Apprentice
Apprentice


Joined: 12 Jun 2002
Posts: 292
Location: Canada

PostPosted: Mon Jun 18, 2007 6:51 pm    Post subject: Reply with quote

wydileie wrote:
Awesome, all is well and good now. Thank you both for your help.


Don't forget to add [solved] to this thread's subject :)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum