Re: Debian Linux in Chroot



On 7/31/07, Matthew K Poer <matthewpoer@xxxxxxxxx> wrote:
My understanding of chroot is extremely limited, right now. I have searched
around, but can anyone point me to anything specific that they know to be a
good tutorial/explanation or how chroot works and what its capabilities are?

chroot is a system call that causes all descended processes to treat a
directory in the filesystem as the root directory (/). When you do
this to an interactive Bash shell, you then have the ability to launch
programs and do development work, etc. from this chroot.

Debian has good tools for doing this sort of thing--debootstrap and
friends can install a new system (etch, lenny, sid, and more) in a
folder for you, and you can even install an entire 32-bit userland on
a 64-bit system, which is useful for running 32-bit Firefox with stuff
like the non-free Adobe Flash plugin (FYI-if you're going to point out
nspluginwrapper, please also tell me how to make sound with PulseAudio
work in that setup). Then there are tools like schroot (apt-get
install schroot) which can be configured to launch programs from
inside the chroot in one command line, complete with 32-bit uname()
emulation if so desired.

--
Andrew Barr

We matter more than pounds and pence,
your economic theory makes no sense...


--
To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx
with a subject of "unsubscribe". Trouble? Contact listmaster@xxxxxxxxxxxxxxxx



Relevant Pages

  • Re: WordPerfect 8.0 (installation)
    ... now that you've figured out you might not need that package after ... I'm wondering whether you have tried to install what's available ... This usually means the package got damaged somehow (while downloading, ... could try to install the whole stuff into some chroot environment. ...
    (Debian-User)
  • Re: 32bit multimedia software on 64bit Linux?
    ... I use a 32-bit chroot. ... In order to play certain proprietary media formats, ... 64 bit Flash is still not available. ... used to work around this problem: install 32 bit Firefox along with all ...
    (Ubuntu)
  • Re: debootstrap chroot problem
    ... Subject: debootstrap chroot problem ... you should add exec option while mounting. ... On a related note, I noticed during the install effort, that the ...
    (Debian-User)
  • Re: OS File Permission issue (chown -R root.root ../)
    ... Personally I would install a chroot on my system, ... that information I would fix the parent system. ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
    (Debian-User)
  • Re: prevent dpkg from (re-)starting services
    ... filesystems for diskless clients. ... To install new packages/updates I ... For a local chroot which is not shared, ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
    (Debian-User)