Chroot/Running_Applications
From time to time we need to setup a gentoo system and we have another linux system on the drive. When we've got a basic linux system and an X server sorted, it'd be nice to play some music and browse the web while we're compiling gnome.
Here's how
First of all, let's assume you have my hard disk layout:
| Partition | Distro |
| hdb2 | Gentoo |
| hdb3 | other linux (e.g. Ubuntu) |
So you're in your new gentoo, and you want to put on some music.
| Code: Mount ewwBuntu like so |
mount -t ext3 /dev/hdb3 /mnt/eww |
| Code: Copy over your /dev directory |
mount -o bind /dev /mnt/eww/dev |
| Code: And Enter the chroot |
chroot /mnt/eww /bin/bash |
At this point you're still root, so you may want to become yourself : su james
| Code: And then let's open firefox and gaim |
firefox &; gaim & |
Note: It's important to use the '&' which runs the command in the background, or you won't be able to use the command line
I have yet to get audio working, but i'll update when i manage it
Last modified: Mon, 15 Jan 2007 04:49:00 +1100 Hits: 4,693
Created by NickStallman.net, Luxury Homes Australia
Real estate agents should list their apartments, townhouses and units in Australia.
