From 46a20073a8c2070642e73b6f1c5b541a1f465682 Mon Sep 17 00:00:00 2001 From: Yaroslav Halchenko Date: Sat, 10 Dec 2011 15:02:14 -0500 Subject: [PATCH] ENH: extended blog entry with information on how to enable atlases in chroot --- sandbox/schroot-fslview.rst | 39 ++++++++++++++++++++++++++++++++++--- 1 file changed, 36 insertions(+), 3 deletions(-) diff --git a/sandbox/schroot-fslview.rst b/sandbox/schroot-fslview.rst index f33e884..ade8464 100644 --- a/sandbox/schroot-fslview.rst +++ b/sandbox/schroot-fslview.rst @@ -151,22 +151,55 @@ Optional steps Although at this point you are all set to run fslview from the chroot-ed environment, we would suggest a few additional steps you -would need to perform within the chroot-ed environment: +would need to perform within the chroot-ed environment. For some of +them (marked with **chroot-root**) you would need to become root in a +chroot using: - enter chroot using ``schroot -c squeeze -p`` - become root (via ``su`` command, root password should be the same as on the main system) -- `Enable NeuroDebian repository `_ +So here they are -- Enable security and functionality updates:: +- **chroot-root**: `Enable NeuroDebian repository + `_. Choose + ``squeeze`` release and mirror of preference (remove ``sudo`` from + provided cmdline). + +- **chroot-root**: Enable security and functionality updates:: sed -e 's,squeeze,squeeze-updates,g' /etc/apt/sources.list > /etc/apt/sources.list.d/updates.list echo 'deb http://security.debian.org/ stable/updates main' > /etc/apt/sources.list.d/security.list apt-get update apt-get upgrade +- Make fsl atlases accessible within the chroot environment. There + are two ways and you need to choose only **one** of them, otherwise + you might damage your "main" system installation. + + - **chroot-root**: Install them in a chroot-ed environment:: + + apt-get install fsl-atlases + + Although the best/correct way it would require additional 200MB of + space, possibly duplicating what you already have installed in the + main system. Also it requires `enabling of NeuroDebian repository + in chroot environment + `_. + + - Bind-mount those directories with atlases installed on the "main" + system within chroot. For that edit (as root on the "main" + system) ``/etc/schroot/default/fstab`` and add following entries:: + + /usr/share/fsl/data/atlases /usr/share/fsl/data/atlases none rw,bind 0 0 + /usr/share/data /usr/share/data none rw,bind 0 0 + + .. note:: + Similarly you can bind-mount any other directory you would like + to make visible in chroot. Just be careful to not "overlap" + with system directories in chroot which already carry something. + Also you might like to read ``man schroot`` on how to enable persistent sessions so that chroot initiation could be done ones during boot instead of per each fslview invocation -- 2.39.2