pastebin - collaborative debugging tool
rovema.kpaste.net RSS

Difference between
modified post a03a by Anonymous on Thu 9th Feb 2023 09:46
original post 6d27 by Anonymous on Tue 31st Jan 2023 13:43
Download diff
Show old version | new version | both versions

    
11
# cat /etc/schroot/chroot.d/jessie-test-home-rmainz-debian_xorg_pkg_test2
22
[jessie-test-home-rmainz-debian_xorg_pkg_test2]
33
description=32bit test chroot for Xserver package work, try2
44
#aliases=test-32bit
55
type=directory
66
directory=/home/rmainz/tmp/debian_xorg_pkg_test1/jessie_schroot2/root_dir/
77
users=test001,rmainz,swulsch,mwenzel,root
88
root-groups=root
99
profile=desktop
1010
personality=linux
1111
preserve-environment=false
1212
1313
1414
# mkdir -p /home/rmainz/tmp/debian_xorg_pkg_test1/jessie_schroot2/root_dir/
1515
# cd /home/rmainz/tmp/debian_xorg_pkg_test1/jessie_schroot2/root_dir/
16-
# debootstrap --arch i386 '--include=autofs,emacs,nedit,x11-apps,strace,ltrace,locales,task-german,task-japanese,nfs-common,nfs4-acl-tools,vim,ksh,xterm,konsole,w3m,lynx,apt-file,file,gcc,clang,gdb,valgrind,build-essential' --no-check-gpg jessie $PWD http://deb.debian.org/debian
16+
# debootstrap --arch i386 '--include=autofs,emacs,nedit,x11-apps,strace,ltrace,locales,task-german,task-japanese,nfs-common,nfs4-acl-tools,vim,ksh,xterm,konsole,w3m,lynx,apt-file,file,gcc,clang,gdb,valgrind,build-essential,git,subversion,git-svn,ddd,bc,flex,debconf-utils,dwarves,sharutils' --no-check-gpg jessie $PWD http://deb.debian.org/debian
1717
# cp -r /etc/autofs.conf /etc/auto.* etc/.
1818
# printf 'root:tiger12maus\n' | chpasswd -m --root $PWD
1919
2020
2121
#### Add autofs to chroot start:
2222
---- snip ----
2323
# cat /etc/schroot/setup.d/71autofs
2424
#!/bin/sh
2525
2626
set -o errexit
2727
2828
. "$SETUP_DATA_DIR/common-data"
2929
. "$SETUP_DATA_DIR/common-functions"
3030
. "$SETUP_DATA_DIR/common-config"
3131
3232
if [ $STAGE = "setup-start" ] || [ $STAGE = "setup-recover" ]; then
3333
        [ -r "$CHROOT_PATH/etc/auto.home" ] && chroot "$CHROOT_PATH" /usr/sbin/service autofs restart
3434
elif [ $STAGE = "setup-stop" ]; then
3535
        true
3636
fi
3737
---- snip ----
3838
3939
4040
#### run interactive shell within chroot environment
4141
# schroot -c jessie-test-home-rmainz-debian_xorg_pkg_test2 -u root --directory / -- /bin/bash
4242
4343
4444
#### within chroot environment as user "root":
4545
# service autofs start # required so others have their home dir
4646
# printf "locales locales/default_environment_locale select en_US.UTF-8\n" | debconf-set-selections
4747
# printf "locales locales/locales_to_be_generated multiselect All locales\n" | debconf-set-selections
4848
# rm /etc/locale.gen
4949
# dpkg-reconfigure --frontend noninteractive locales
5050
5151
5252
5353
#### edit /etc/apt/sources.list
5454
# diff -u /etc/apt/sources.list.old /etc/apt/sources.list
5555
--- /etc/apt/sources.list.old   2023-01-12 10:31:30.886590771 +0000
5656
+++ /etc/apt/sources.list       2023-01-12 10:52:04.397174191 +0000
5757
@@ -1 +1,9 @@
5858
-deb http://deb.debian.org/debian jessie main
5959
+deb [trusted=yes] http://archive.debian.org/debian jessie-backports main
6060
+deb-src [trusted=yes] http://archive.debian.org/debian jessie-backports main
6161
+
6262
+deb [trusted=yes] http://security.debian.org/ jessie/updates main
6363
+deb-src [trusted=yes] http://security.debian.org/ jessie/updates main
6464
+
6565
+deb [trusted=yes] http://cdn-fastly.deb.debian.org/debian/ jessie main
6666
+deb-src [trusted=yes] http://cdn-fastly.deb.debian.org/debian/ jessie main
6767
+
6868
6969
7070
#### Force Debian jessie apt-get update
7171
# printf '%s\n' 'Acquire::Check-Valid-Until "false";' >/etc/apt/apt.conf.d/80use_expired_apt_repository
7272
# apt-get update
7373
# apt-get upgrade
7474
# apt-file update
7575
# apt-get -t jessie-backports update
7676
# apt-get -t jessie-backports upgrade
7777
7878
7979
#### Begin session:
8080
# schroot -c jessie-test-home-rmainz-debian_xorg_pkg_test2 -u root --begin-session --session-name sss6 --directory / -- /bin/true
8181
8282
#### Use session:
8383
$ schroot --run-session --chroot sss6 -u rmainz
8484
8585
#### End session:
8686
$ schroot --end-session --chroot sss6
8787

Submit a correction or amendment below (click here to make a fresh posting)
After submitting an amendment, you'll be able to view the differences between the old and new posts easily.

Syntax highlighting:

To highlight particular lines, prefix each line with {%HIGHLIGHT}




All content is user-submitted.
The administrators of this site (kpaste.net) are not responsible for their content.
Abuse reports should be emailed to us at