| | 9 | |
| | 10 | * [http://blog.sourcefrog.net/2009/09/setting-up-ubuntu-chroot-for.html setting up an Ubuntu chroot for development testing using schroot and debootstrap] |
| | 11 | * Q: schroot 跟 chroot 有什麼不同呢? A: schroot 是給一般使用者用的,不需要 root 權限!! |
| | 12 | {{{ |
| | 13 | #!sh |
| | 14 | /etc/schroot/schroot.conf |
| | 15 | |
| | 16 | [karmic] |
| | 17 | description=Ubuntu 9.10 Karmic Koala |
| | 18 | users=mbp |
| | 19 | root-users=mbp |
| | 20 | location=/home/chroot/karmic |
| | 21 | type=directory |
| | 22 | run-setup-scripts=true |
| | 23 | run-exec-scripts=true |
| | 24 | }}} |
| | 25 | {{{ |
| | 26 | ~$ schroot -c karmic |
| | 27 | }}} |
| | 28 | * 從這篇文章也學到 lsbrelease 的一些新用法 |
| | 29 | {{{ |
| | 30 | ~$ lsb_release -is |
| | 31 | Debian |
| | 32 | ~$ lsb_release -ds |
| | 33 | Debian GNU/Linux 5.0.3 (lenny) |
| | 34 | ~$ lsb_release -rs |
| | 35 | 5.0.3 |
| | 36 | ~$ lsb_release -cs |
| | 37 | lenny |
| | 38 | }}} |