Changes between Version 2 and Version 3 of ChrootSetup

Show
Ignore:
Timestamp:
12/13/08 00:00:45 (13 years ago)
Author:
allison
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • ChrootSetup

    v2 v3  
    106106 * Done 
    107107 
    108 == Ubuntu Gutsy == 
     108== Ubuntu Intrepid == 
    109109 
    110  * Manually download the debootstrap package for Gutsy 
     110 * Manually download the debootstrap package for Intrepid 
    111111 
    112112(or the latest at <http://archive.ubuntu.com/ubuntu/pool/main/d/debootstrap/>) 
    113113 
    114  $ wget http://archive.ubuntu.com/ubuntu/pool/main/d/debootstrap/debootstrap_1.0.7~gutsy1_all.deb 
     114 $ wget http://archive.ubuntu.com/ubuntu/pool/main/d/debootstrap/debootstrap_1.0.10ubuntu1~intrepid1_all.deb 
    115115 
    116116 * Manually install it: 
    117117 
    118  $ sudo dpkg --install debootstrap_1.0.7~gutsy1_all.deb 
     118 $ sudo dpkg --install debootstrap_1.0.10ubuntu1~intrepid1_all.deb 
    119119 
    120120 * Edit /etc/schroot/schroot.conf and add the following lines: 
    121121 
    122  [gutsy] 
    123  description=Ubuntu gutsy 
    124  location=/var/chroot/gutsy 
     122 [intrepid] 
     123 description=Ubuntu intrepid 
     124 location=/var/chroot/intrepid 
    125125 priority=3 
    126126 users=<your user> 
     
    130130 * Set up a chroot environment using debootstrap: 
    131131 
    132  $ sudo debootstrap --variant=buildd gutsy /var/chroot/gutsy http://archive.ubuntu.com/ubuntu/ 
     132 $ sudo debootstrap --variant=buildd intrepid /var/chroot/intrepid http://archive.ubuntu.com/ubuntu/ 
    133133 
    134134(to run a 32bit chroot on a 64bit install, add the option "--arch i386") 
    135135 
    136  * Copy over some configuration files from the base install to the chroot environment (substituting if your install is a different release): 
     136 * (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): 
    137137 
    138  $ sudo cp /etc/resolv.conf /var/chroot/gutsy/etc/resolv.conf 
    139  $ sudo cp /etc/apt/sources.list /var/chroot/gutsy/etc/apt/ 
    140  $ sudo sed -i s/<your install>/gutsy/g /var/chroot/gutsy/etc/apt/sources.list 
     138 $ sudo cp /etc/resolv.conf /var/chroot/intrepid/etc/resolv.conf 
     139 $ sudo cp /etc/apt/sources.list /var/chroot/intrepid/etc/apt/ 
     140 $ sudo sed -i s/<your install>/intrepid/g /var/chroot/intrepid/etc/apt/sources.list 
    141141 
    142142 * Start up the chroot environment: 
    143143 
    144  $ sudo chroot /var/chroot/gutsy 
     144 $ sudo chroot /var/chroot/intrepid 
    145145 
    146146 * Get the latest versions of the package list and some core packages: 
    147147 
    148  # apt-get update # ignore gpg errors for now 
    149  # apt-get install gnupg 
    150  # apt-get update # get rid of gpg errors 
    151  # apt-get install build-essential dh-make automake pbuilder lintian \ 
    152  wget debconf devscripts sudo perl patch 
    153148 # apt-get update 
    154  # apt-get install dialog language-pack-en # for locales 
     149 # apt-get install dh-make automake pbuilder lintian \ 
     150 wget devscripts sudo 
     151 # apt-get update 
     152 # apt-get install language-pack-en # for locales 
    155153 # apt-get install vim 
    156154 
    157155 * (optional) Setup text for the command-line prompt, to display when running in chroot: 
    158156 
    159  # echo gutsy > /etc/debian_chroot 
     157 # echo intrepid > /etc/debian_chroot 
    160158 
    161159 * Leave the chroot environment: 
     
    165163 * (optional) Set up users, groups, and sudo access in chroot: 
    166164 
    167  $ sudo cp /etc/passwd /var/chroot/gutsy/etc/ 
     165 $ sudo cp /etc/passwd /var/chroot/intrepid/etc/ 
    168166 $ sudo sed 's/\([^:]*\):[^:]*:/\1:*:/' /etc/shadow \ 
    169  | sudo tee /var/chroot/gutsy/etc/shadow 
    170  $ sudo cp /etc/group /var/chroot/gutsy/etc/ 
    171  $ sudo cp /etc/hosts /var/chroot/gutsy/etc/ 
    172  $ sudo cp /etc/sudoers /var/chroot/gutsy/etc/ 
     167 | sudo tee /var/chroot/intrepid/etc/shadow 
     168 $ sudo cp /etc/group /var/chroot/intrepid/etc/ 
     169 $ sudo cp /etc/hosts /var/chroot/intrepid/etc/ 
     170 $ sudo cp /etc/sudoers /var/chroot/intrepid/etc/ 
    173171 
    174  $ sudo chroot /var/chroot/gutsy/ 
     172 $ sudo chroot /var/chroot/intrepid/ 
    175173 # dpkg-reconfigure passwd 
    176174 # passwd <your user>