Changes between Version 5 and Version 6 of ChrootSetup
- Timestamp:
- 02/03/09 20:51:04 (13 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
ChrootSetup
v5 v6 29 29 * Edit /etc/schroot/schroot.conf and add the following lines: 30 30 31 {{{ 31 32 [sid] 32 33 description=Debian sid … … 36 37 groups=sbuild 37 38 root-groups=root 38 39 }}} 39 40 * Set up a chroot environment using debootstrap: 40 41 … … 57 58 * Get the latest versions of the package list and some core packages: 58 59 60 {{{ 59 61 # aptitude update 60 62 # aptitude install build-essential dh-make pbuilder lintian \ … … 63 65 # aptitude install locales dialog # (optional) for locales 64 66 # dpkg-reconfigure locales # select your preferred locale 67 }}} 65 68 66 69 * (optional) Setup text for the command-line prompt, to display when running in chroot: … … 73 76 74 77 * Set up users, groups, gpg, and sudo access in chroot: 75 78 {{{ 76 79 $ sudo cp /etc/passwd /var/chroot/sid/etc/ 77 80 $ sudo sed 's/\([^:]*\):[^:]*:/\1:*:/' /etc/shadow \ … … 92 95 $ cp ~/.bashrc /var/chroot/sid/home/<your user>/.[[BR]] 93 96 $ cp -r ~/.gnupg /var/chroot/sid/home/<your user>/. 97 }}} 94 98 95 * Set up the environment for debuild, add the following lines to 99 * Set up the environment for debuild, add the following lines to /var/chroot/sid/home/<your user>/.devscripts: 96 100 97 /var/chroot/sid/home/<your user>/.devscripts: 98 101 {{{ 99 102 DEBUILD_DPKG_BUILDPACKAGE_OPTS="-i -I" 100 103 DEBUILD_PRESERVE_ENVVARS=DH_ALWAYS_EXCLUDE 104 }}} 101 105 102 106 And in wherever you set environment variables for shell sessions: … … 120 124 * Edit /etc/schroot/schroot.conf and add the following lines: 121 125 126 {{{ 122 127 [intrepid] 123 128 description=Ubuntu intrepid … … 127 132 groups=sbuild 128 133 root-groups=root 134 }}} 129 135 130 136 * Set up a chroot environment using debootstrap: … … 136 142 * (Probably skip this step for intrepid) Copy over some configuration files from the base install to the chroot environment (substituting if your install is a different release): 137 143 144 {{{ 138 145 $ sudo cp /etc/resolv.conf /var/chroot/intrepid/etc/resolv.conf 139 146 $ sudo cp /etc/apt/sources.list /var/chroot/intrepid/etc/apt/ 140 147 $ sudo sed -i s/<your install>/intrepid/g /var/chroot/intrepid/etc/apt/sources.list 148 }}} 141 149 142 150 * Start up the chroot environment: … … 146 154 * Get the latest versions of the package list and some core packages: 147 155 156 {{{ 148 157 # apt-get update 149 158 # apt-get install language-pack-en # for locales … … 152 161 # apt-get update 153 162 # apt-get install vim 163 }}} 154 164 155 165 * (optional) Setup text for the command-line prompt, to display when running in chroot: … … 163 173 * (optional) Set up users, groups, and sudo access in chroot: 164 174 175 {{{ 165 176 $ sudo cp /etc/passwd /var/chroot/intrepid/etc/ 166 177 $ sudo sed 's/\([^:]*\):[^:]*:/\1:*:/' /etc/shadow \ … … 177 188 # chgrp <your user> /home/<your user> 178 189 # exit 190 }}} 179 191 180 192 * Done