| View previous topic :: View next topic |
| Author |
Message |
foxmike n00b

Joined: 07 May 2007 Posts: 5 Location: Québec, Canada
|
Posted: Mon May 07, 2007 8:59 pm Post subject: Emerging packages on a chroot environment (solved) |
|
|
Hi! Here is the situation. I have a family PC with Ubuntu Linux installed on it. Now that I got addict to linux, I want to install Gentoo to learn more about it's internal working and because it looks very interesting. I managed to do the base install with a stage3 tarball in a chroot environment from my Ubuntu installation (as per the Alternate Install Guide). I would now like to install xorg and GNOME, and I expect it to be very long to compile. As I want the computer to be still usable for my wife to go on internet and fetch e-mails, is that possible to emerge xorg and GNOME from that chroot environment, or do I absolutely have to boot into Gentoo to do that job?
Thanks in advance!
-FM _________________ Now that you have learned flying, it is time to learn landing.
Last edited by foxmike on Tue May 08, 2007 12:05 am; edited 1 time in total |
|
| Back to top |
|
 |
shaumux l33t

Joined: 13 May 2005 Posts: 981 Location: Bangalore, India
|
Posted: Mon May 07, 2007 9:05 pm Post subject: |
|
|
Well i have done that with absolutely no problems but be sure to update the environment before you do that.
| Code: | | env-update && source /etc/profile |
|
|
| Back to top |
|
 |
tcunha Retired Dev

Joined: 02 Apr 2007 Posts: 128
|
Posted: Mon May 07, 2007 9:05 pm Post subject: |
|
|
You can also run your X11 apps inside the chroot - e.g. by exporting the DISPLAY environment variable or by using Xnest. Don't forget to mount /dev, /dev/pts, /proc, and /sys.
HTH. _________________ Developer, Gentoo Linux (SPARC) |
|
| Back to top |
|
 |
mpapis n00b


Joined: 28 Apr 2007 Posts: 45
|
Posted: Mon May 07, 2007 9:17 pm Post subject: |
|
|
| shaumux wrote: | Well i have done that with absolutely no problems but be sure to update the environment before you do that.
| Code: | | env-update && source /etc/profile |
|
dont forget to: | Code: | | cp /etc/resolv.conf /gentoo/etc/resolv.conf | before U chroot
btw, i had problems with using X applications (from suse) maybe because of not mounting /dev/pts _________________ only think what could U do |
|
| Back to top |
|
 |
drwook Veteran

Joined: 30 Mar 2005 Posts: 1313 Location: London
|
Posted: Mon May 07, 2007 9:33 pm Post subject: |
|
|
Echo the above, advise using '-o bind' when mounting /dev etc... (not sure what the guide says these days, it's been a while)
No reason to have any trouble compiling in a chroot unless you're up to something odd (e.g. you've a 64 bit chroot on a 32 bit ubuntu? If so, the easy answer is don't! ) |
|
| Back to top |
|
 |
foxmike n00b

Joined: 07 May 2007 Posts: 5 Location: Québec, Canada
|
Posted: Tue May 08, 2007 12:01 am Post subject: |
|
|
Those are wonderfull news!
| Quote: | | Echo the above, advise using '-o bind' when mounting /dev etc... (not sure what the guide says these days, it's been a while) |
Yes, the guide talks about it, but nice to remember!
| Quote: | | dont forget to: cp /etc/resolv.conf /gentoo/etc/resolv.conf before U chroot |
OK, nice to know, I don't think I would have done it...
| Quote: | | You can also run your X11 apps inside the chroot |
I don't think that will be necessary for the moment, but thanks, nice to know as well for the future!
As I just made a base install I am tempt (good word? I'm french canadian...) to install Gentoo 2007 that came out. I'll try all this tonight after work. Thank you for the help! _________________ Now that you have learned flying, it is time to learn landing. |
|
| Back to top |
|
 |
drwook Veteran

Joined: 30 Mar 2005 Posts: 1313 Location: London
|
Posted: Tue May 08, 2007 1:32 pm Post subject: |
|
|
| foxmike wrote: |
As I just made a base install I am tempt (good word? I'm french canadian...) to install Gentoo 2007 that came out. I'll try all this tonight after work. Thank you for the help! |
No point re-installing, once it's up and running the version of the install disk is pretty much meaningless. Want the 'latest version' of gentoo? 'emerge --sync && emerge -uDN world' is generally all that needs to be done. |
|
| Back to top |
|
 |
tcunha Retired Dev

Joined: 02 Apr 2007 Posts: 128
|
Posted: Tue May 08, 2007 5:17 pm Post subject: |
|
|
| foxmike wrote: | | As I just made a base install I am tempt (good word? I'm french canadian...) to install Gentoo 2007 that came out. I'll try all this tonight after work. Thank you for the help! |
Check the upgrading doc.
| drwook wrote: | | No point re-installing, once it's up and running the version of the install disk is pretty much meaningless. Want the 'latest version' of gentoo? 'emerge --sync && emerge -uDN world' is generally all that needs to be done. |
And between those two: eselect profile set x. _________________ Developer, Gentoo Linux (SPARC) |
|
| Back to top |
|
 |
|