Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
en:handbook:chroot [2010/07/08 15:14] – external edit 127.0.0.1en:handbook:chroot [2011/05/03 20:47] (current) – old revision restored domcox
Line 35: Line 35:
 To begin using the chrooted environment, you just need to mount some virtual filesystems and use the chroot command. To simplify things, we can write a small script automating the process. Example using the chroot directory ///home/slitaz/chroot-env// and creating a script chroot_in_env.sh in ///home/slitaz//. On any systems other than SliTaz you can uncomment the lines about ///dev// and ///tmp// - Note to save typing you can copy and paste: To begin using the chrooted environment, you just need to mount some virtual filesystems and use the chroot command. To simplify things, we can write a small script automating the process. Example using the chroot directory ///home/slitaz/chroot-env// and creating a script chroot_in_env.sh in ///home/slitaz//. On any systems other than SliTaz you can uncomment the lines about ///dev// and ///tmp// - Note to save typing you can copy and paste:
  
-<code> # cat > /home/slitaz/chroot_in_env.sh << "EOF" +<code> # cat > /home/slitaz/chroot_in_env.sh << "EOF" </code>
  
 +<file>
 #!/bin/sh #!/bin/sh
 # Chroot in SliTaz to hack. # Chroot in SliTaz to hack.
Line 66: Line 67:
  
 EOF EOF
- +</file>
-</code>+
  
 To finish and test the environment, you just make the script executable and run: To finish and test the environment, you just make the script executable and run:
 
en/handbook/chroot.1278602063.txt.gz · Last modified: (external edit)