Differences between revisions 30 and 32 (spanning 2 versions)
Revision 30 as of 2020-05-31 02:43:01
Size: 2696
Editor: coringao
Comment:
Revision 32 as of 2020-05-31 02:51:39
Size: 2932
Editor: coringao
Comment:
Deletions are marked like this. Additions are marked like this.
Line 33: Line 33:
||<#EAE5DA -4 style="border: medium none ;-moz-border-radius-bottomleft: 30px ;"> [unstable]<<BR>> description=debian unstable<<BR>> type=directory<<BR>> directory=/srv/chroot/unstable<<BR>> users=your-username<<BR>> root-groups=root<<BR>> preserve-environment=true<<BR>>|| ||<#EAE5DA -4 style="border: medium none ;-moz-border-radius-bottomleft: 30px ;"> [unstable-amd64]<<BR>> description=debian unstable amd64<<BR>> type=directory<<BR>> directory=/srv/chroot/unstable-amd64<<BR>> users=your-username<<BR>> root-groups=root<<BR>> preserve-environment=true<<BR>>||
Line 39: Line 39:
||<#ADADAC -4 : tablewidth="70%" style="border: medium none ;-moz-border-radius-topleft: 30px ;-moz-border-radius-topright: 30px;"> # mkdir -p /srv/chroot/unstable|| ||<#ADADAC -4 : tablewidth="70%" style="border: medium none ;-moz-border-radius-topleft: 30px ;-moz-border-radius-topright: 30px;"> # mkdir -p /srv/chroot/unstable-amd64||
Line 41: Line 41:
||<#ADADAC -4 : tablewidth="70%" style="border: medium none ;-moz-border-radius-topleft: 30px ;-moz-border-radius-topright: 30px;"> # debootstrap --arch amd64 unstable /srv/chroot/unstable https://deb.debian.org/debian|| ||<#ADADAC -4 : tablewidth="70%" style="border: medium none ;-moz-border-radius-topleft: 30px ;-moz-border-radius-topright: 30px;"> # debootstrap --arch amd64 unstable /srv/chroot/unstable-amd64 https://deb.debian.org/debian||
Line 52: Line 52:

== Confirming that the configured prison is correct ==

||<#ADADAC -4 style="border: medium none ;-moz-border-radius-bottomleft: 30px ;"> user@debian: ~$ schroot -l<<BR>> chroot:unstable-amd64<<BR>>||

debian-cage.png

PACKAGES STUCK WITH SCHROOT

Chroot Manager

Allows you to configure chroots without requiring root credentials.

For a better knowledge on the subject:

wiki.debian.org/Schroot

wiki.debian.org/Debootstrap

Starting prison for packages

jail.png

To start the installations, we will download the following packages:

# apt install debootstrap schroot

Once installed, we will edit the "/etc/schroot/schroot.conf" file.

# cp /etc/schroot/schroot.conf /etc/schroot/schroot.conf.old

# editor /etc/schroot/schroot.conf

{*} editor = your favorite text editor: nano, vim, mcedit, etc ...

Copy and paste into the file.

[unstable-amd64]
description=debian unstable amd64
type=directory
directory=/srv/chroot/unstable-amd64
users=your-username
root-groups=root
preserve-environment=true

1. Installing the Debian base in the cage

schroot.png

# mkdir -p /srv/chroot/unstable-amd64

# debootstrap --arch amd64 unstable /srv/chroot/unstable-amd64 https://deb.debian.org/debian

2. Entering the cage

# chroot /srv/chroot/unstable

# echo proc /proc proc defaults 0 0 >> /etc/fstab

# echo mount /proc >> /etc/bash.bashrc

After these settings, type "exit" or "Ctrl+D" to close everything.

Confirming that the configured prison is correct

user@debian: ~$ schroot -l
chroot:unstable-amd64