Gentoo Forums
Gentoo Forums
Quick Search: in
Emerging packages on a chroot environment (solved)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
foxmike
n00b
n00b


Joined: 07 May 2007
Posts: 5
Location: Québec, Canada

PostPosted: Mon May 07, 2007 8:59 pm    Post subject: Emerging packages on a chroot environment (solved) Reply with quote

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
View user's profile Send private message
shaumux
l33t
l33t


Joined: 13 May 2005
Posts: 981
Location: Bangalore, India

PostPosted: Mon May 07, 2007 9:05 pm    Post subject: Reply with quote

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
View user's profile Send private message
tcunha
Retired Dev
Retired Dev


Joined: 02 Apr 2007
Posts: 128

PostPosted: Mon May 07, 2007 9:05 pm    Post subject: Reply with quote

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
View user's profile Send private message
mpapis
n00b
n00b


Joined: 28 Apr 2007
Posts: 45

PostPosted: Mon May 07, 2007 9:17 pm    Post subject: Reply with quote

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
View user's profile Send private message
drwook
Veteran
Veteran


Joined: 30 Mar 2005
Posts: 1313
Location: London

PostPosted: Mon May 07, 2007 9:33 pm    Post subject: Reply with 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)

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! :P )
Back to top
View user's profile Send private message
foxmike
n00b
n00b


Joined: 07 May 2007
Posts: 5
Location: Québec, Canada

PostPosted: Tue May 08, 2007 12:01 am    Post subject: Reply with quote

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
View user's profile Send private message
drwook
Veteran
Veteran


Joined: 30 Mar 2005
Posts: 1313
Location: London

PostPosted: Tue May 08, 2007 1:32 pm    Post subject: Reply with quote

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
View user's profile Send private message
tcunha
Retired Dev
Retired Dev


Joined: 02 Apr 2007
Posts: 128

PostPosted: Tue May 08, 2007 5:17 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo 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