Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| en:handbook:chroot [2010/02/20 20:28] – created jozee | en:handbook:chroot [2011/05/03 20:47] (current) – old revision restored domcox | ||
|---|---|---|---|
| Line 31: | Line 31: | ||
| </ | </ | ||
| - | Using the environment | + | ===== Using the environment |
| To begin using the chrooted environment, | To begin using the chrooted environment, | ||
| - | < | + | < |
| + | < | ||
| #!/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, | To finish and test the environment, | ||
| Line 76: | Line 76: | ||
| </ | </ | ||
| - | To activate the network | + | === To activate the network |
| In order to have the network up to download and install some development packages, just start the DHCP client on the correct interface. Example using eth1: | In order to have the network up to download and install some development packages, just start the DHCP client on the correct interface. Example using eth1: | ||
| Line 82: | Line 82: | ||
| < | < | ||
| - | ===== Installing packages | + | === Installing packages === |
| If the network is functional, just reload the list of packages and use tazpkg get-install to install them. If a connection is not possible, you can download the packages from another system, copy them to the chrooted environment and install them with the tazpkg install command. To install the basic compilation tools: | If the network is functional, just reload the list of packages and use tazpkg get-install to install them. If a connection is not possible, you can download the packages from another system, copy them to the chrooted environment and install them with the tazpkg install command. To install the basic compilation tools: | ||
| - | < | + | < |
| # tazpkg get-install slitaz-toolchain </ | # tazpkg get-install slitaz-toolchain </ | ||
| Once the environment is configured, you can compile applications from source to create packages, test scripts, etc. The Cookbook should help you out here: | Once the environment is configured, you can compile applications from source to create packages, test scripts, etc. The Cookbook should help you out here: | ||
| - | ===== Exit the environment | + | === Exit the environment === |
| To exit the chrooted environment, | To exit the chrooted environment, | ||