View previous topic :: View next topic |
Author |
Message |
wydileie n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 18 Jun 2007 Posts: 3 Location: Columbus, OH
|
Posted: Mon Jun 18, 2007 5:06 pm Post subject: Cannot emerge [Solved] |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
trolley Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/gallery/Star Wars/movie_star_wars_storm_trooper.gif)
Joined: 12 Jun 2002 Posts: 292 Location: Canada
|
Posted: Mon Jun 18, 2007 6:00 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
wydileie n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 18 Jun 2007 Posts: 3 Location: Columbus, OH
|
Posted: Mon Jun 18, 2007 6:15 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
trolley Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/gallery/Star Wars/movie_star_wars_storm_trooper.gif)
Joined: 12 Jun 2002 Posts: 292 Location: Canada
|
Posted: Mon Jun 18, 2007 6:24 pm Post subject: |
|
|
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:
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 ![Smile :)](images/smiles/icon_smile.gif) |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
ichbinsisyphos Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/464926720509a6edbe6d20.gif)
Joined: 08 Dec 2006 Posts: 547
|
Posted: Mon Jun 18, 2007 6:30 pm Post subject: dist |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
wydileie n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 18 Jun 2007 Posts: 3 Location: Columbus, OH
|
Posted: Mon Jun 18, 2007 6:41 pm Post subject: |
|
|
Awesome, all is well and good now. Thank you both for your help. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
trolley Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/gallery/Star Wars/movie_star_wars_storm_trooper.gif)
Joined: 12 Jun 2002 Posts: 292 Location: Canada
|
Posted: Mon Jun 18, 2007 6:51 pm Post subject: |
|
|
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 ![Smile :)](images/smiles/icon_smile.gif) |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|