Changes between Version 5 and Version 6 of ChrootSetup

Show
Ignore:
Timestamp:
02/03/09 20:51:04 (5 years ago)
Author:
allison
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • ChrootSetup

    v5 v6  
    2929 * Edit /etc/schroot/schroot.conf and add the following lines: 
    3030 
     31{{{ 
    3132 [sid] 
    3233 description=Debian sid 
     
    3637 groups=sbuild 
    3738 root-groups=root 
    38  
     39}}} 
    3940 * Set up a chroot environment using debootstrap: 
    4041 
     
    5758 * Get the latest versions of the package list and some core packages: 
    5859 
     60{{{ 
    5961 # aptitude update 
    6062 # aptitude install build-essential dh-make pbuilder lintian \ 
     
    6365 # aptitude install locales dialog # (optional) for locales 
    6466 # dpkg-reconfigure locales # select your preferred locale 
     67}}} 
    6568 
    6669 * (optional) Setup text for the command-line prompt, to display when running in chroot: 
     
    7376 
    7477 * Set up users, groups, gpg, and sudo access in chroot: 
    75  
     78{{{ 
    7679 $ sudo cp /etc/passwd /var/chroot/sid/etc/ 
    7780 $ sudo sed 's/\([^:]*\):[^:]*:/\1:*:/' /etc/shadow \ 
     
    9295 $ cp ~/.bashrc /var/chroot/sid/home/<your user>/.[[BR]] 
    9396 $ cp -r ~/.gnupg /var/chroot/sid/home/<your user>/. 
     97}}} 
    9498 
    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: 
    96100 
    97  /var/chroot/sid/home/<your user>/.devscripts: 
    98  
     101{{{ 
    99102 DEBUILD_DPKG_BUILDPACKAGE_OPTS="-i -I" 
    100103 DEBUILD_PRESERVE_ENVVARS=DH_ALWAYS_EXCLUDE 
     104}}} 
    101105 
    102106And in wherever you set environment variables for shell sessions: 
     
    120124 * Edit /etc/schroot/schroot.conf and add the following lines: 
    121125 
     126{{{ 
    122127 [intrepid] 
    123128 description=Ubuntu intrepid 
     
    127132 groups=sbuild 
    128133 root-groups=root 
     134}}} 
    129135 
    130136 * Set up a chroot environment using debootstrap: 
     
    136142 * (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): 
    137143 
     144{{{ 
    138145 $ sudo cp /etc/resolv.conf /var/chroot/intrepid/etc/resolv.conf 
    139146 $ sudo cp /etc/apt/sources.list /var/chroot/intrepid/etc/apt/ 
    140147 $ sudo sed -i s/<your install>/intrepid/g /var/chroot/intrepid/etc/apt/sources.list 
     148}}} 
    141149 
    142150 * Start up the chroot environment: 
     
    146154 * Get the latest versions of the package list and some core packages: 
    147155 
     156{{{ 
    148157 # apt-get update 
    149158 # apt-get install language-pack-en # for locales 
     
    152161 # apt-get update 
    153162 # apt-get install vim 
     163}}} 
    154164 
    155165 * (optional) Setup text for the command-line prompt, to display when running in chroot: 
     
    163173 * (optional) Set up users, groups, and sudo access in chroot: 
    164174 
     175{{{ 
    165176 $ sudo cp /etc/passwd /var/chroot/intrepid/etc/ 
    166177 $ sudo sed 's/\([^:]*\):[^:]*:/\1:*:/' /etc/shadow \ 
     
    177188 # chgrp <your user> /home/<your user> 
    178189 # exit 
     190}}} 
    179191 
    180192 * Done