Differences between revisions 2 and 10 (spanning 8 versions)
Revision 2 as of 2005-05-29 13:36:20
Size: 312
Editor: anonymous
Comment:
Revision 10 as of 2007-12-16 13:28:39
Size: 1091
Comment: minor
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
## Auto-converted by kwiki2moinmoin v2005-10-07
All chroot does is, for all child processes, replace the root directory on a unix system with one of the operators' choosing.
All chroot does is, for all ["ChildProcess"]es, replace the ["root directory"] on a ["Unix-like"] system with one of the operators' choosing.
Line 4: Line 3:
See :
Line 6: Line 4:
 * http://en.wikipedia.org/wiki/Chroot
 * http://www.gnu.org/software/coreutils/manual/html_chapter/coreutils_22.html#["SEC145"]
== Setting up a network inside a chroot /tmp/custom/debian-live/chroot/ ==

{{{
sudo mount -o bind /sys /tmp/custom/debian-live/chroot/sys
sudo mount -o bind /proc /tmp/custom/debian-live/chroot/proc
sudo chroot /tmp/custom/debian-live/chroot/
}}}
Now in the chroot you might need to reset the ["network"] in order for the route/dns stuff to be setup.
{{{
dhclient eth0
}}}

This is useful for testing and configuring a system that is to be deployed, e.g.["DebianLive"].

[[Anchor(BuildAChroot)]]
== Build a chroot ==
 * ["Debootstrap"] : Setting up another complete Debian install inside a chroot.

== Programs, commands and packages used in this page ==
 * ["dhclient"]
 * ["mount"]
 * ["sudo"]
== See also ==
 * Debian reference has some [http://www.debian.org/doc/manuals/reference/ch-tips.en.html#s-chroot "chroot" tips].
 * ["DebianInstaller"]
 * Wikipedia WikiPedia:Chroot
----
CategorySystemAdministration

All chroot does is, for all ["ChildProcess"]es, replace the ["root directory"] on a ["Unix-like"] system with one of the operators' choosing.

Setting up a network inside a chroot /tmp/custom/debian-live/chroot/

sudo mount -o bind /sys /tmp/custom/debian-live/chroot/sys
sudo mount -o bind /proc /tmp/custom/debian-live/chroot/proc
sudo chroot /tmp/custom/debian-live/chroot/

Now in the chroot you might need to reset the ["network"] in order for the route/dns stuff to be setup.

dhclient eth0

This is useful for testing and configuring a system that is to be deployed, e.g.["DebianLive"].

?Anchor(BuildAChroot)

Build a chroot

  • ["Debootstrap"] : Setting up another complete Debian install inside a chroot.

Programs, commands and packages used in this page

  • ["dhclient"]
  • ["mount"]
  • ["sudo"]

See also


CategorySystemAdministration