/[ddp]/manuals/trunk/quick-reference/asciidoc/09_systips.txt
ViewVC logotype

Diff of /manuals/trunk/quick-reference/asciidoc/09_systips.txt

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 6739 by osamu, Sat Jun 13 16:41:54 2009 UTC revision 6740 by osamu, Sun Jun 14 15:21:16 2009 UTC
# Line 1310  CAUTION: Examples below assumes both par Line 1310  CAUTION: Examples below assumes both par
1310  You can learn how to setup and use `chroot`(8) by running `pbuilder`(8) program under `script`(1) as follows.  You can learn how to setup and use `chroot`(8) by running `pbuilder`(8) program under `script`(1) as follows.
1311    
1312  ------  ------
1313  $ sudo pbuilder --create --no-targz --debug  $ sudo mkdir /sid-root
1314    $ sudo pbuilder --create --no-targz --debug --buildplace /sid-root
1315  ------  ------
1316    
1317  You will see how `debootstrap`(8) or `debootstrap`(1) populate system data for `sid` environment under "`/var/cache/pbuilder/builds/`".  You will see how `debootstrap`(8) or `debootstrap`(1) populate system data for `sid` environment under "`/sid-root`".
1318    
1319  TIP: These `debootstrap`(8) or `debootstrap`(1) are used to http://www.debian.org/releases/stable/installmanual[install Debian] by the Debian Installer.  These can also be used to install Debian to a system without using a Debian install disk, but instead from another GNU/Linux distribution.  TIP: These `debootstrap`(8) or `debootstrap`(1) are used to http://www.debian.org/releases/stable/installmanual[install Debian] by the Debian Installer.  These can also be used to install Debian to a system without using a Debian install disk, but instead from another GNU/Linux distribution.
1320    
1321  -----  -----
1322  $ sudo pbuilder --login --no-targz  --debug  $ sudo pbuilder --login --no-targz  --debug --buildplace /sid-root
1323  -----  -----
1324    
1325  You will see how a system shell running under `sid` environment is created:  You will see how a system shell running under `sid` environment is created:
1326    
1327  - copying local configuration (`"/etc/hosts`", `"/etc/hostname`", `"/etc/resolv.conf`")  - copying local configuration (`"/etc/hosts`", `"/etc/hostname`", `"/etc/resolv.conf`")
1328  - mounting "`/proc`" filesystem  - mounting "`/proc`" filesystem
1329  - mounting `"/dev/pts`" filesystem  - mounting "`/dev/pts`" filesystem
1330  - "`/usr/sbin/policy-rc.d`" created (this always exits with 101)  - "`/usr/sbin/policy-rc.d`" created (this always exits with 101)
1331  - run "`chroot /var/cache/pbuilder/build/ bin/bash -c 'exec -a -bash bin/bash'`"  - run "`chroot /var/cache/pbuilder/build/ bin/bash -c 'exec -a -bash bin/bash'`"
1332    
# Line 1339  TIP: By installing a system into a separ Line 1340  TIP: By installing a system into a separ
1340    
1341  ==== Setting up login for chroot  ==== Setting up login for chroot
1342    
1343  You can run another login process on a separate virtual terminal where you can log in to the chroot system directly.  Since on default Debian systems `tty1` to `tty6` run Linux consoles and `tty7` runs the X Window System, let\'s set up `tty8` for a chrooted console as an example.  After creating a chroot system under "`/sid-root/`" instead of "`/var/cache/pbuilder/build/`" by following steps you learned from `pbuilder`(8), type from the root shell of the main system:  You can run another login process on a separate virtual terminal where you can log in to the chroot system directly.  Since on default Debian systems `tty1` to `tty6` run Linux consoles and `tty7` runs the X Window System, let\'s set up `tty8` for a chrooted console as an example.  After creating a `sid` chroot system under "`/sid-root`" by following steps you learned from `pbuilder`(8), type from the root shell of the main system:
1344    
1345  --------------------  --------------------
1346  main # echo "8:23:respawn:/usr/sbin/chroot /sid-root /sbin/getty 38400 tty8"  >> /etc/inittab  main # echo "8:23:respawn:/usr/sbin/chroot /sid-root /sbin/getty 38400 tty8"  >> /etc/inittab

Legend:
Removed from v.6739  
changed lines
  Added in v.6740

  ViewVC Help
Powered by ViewVC 1.1.5