Size: 4438
Comment:
|
Size: 4685
Comment:
|
Deletions are marked like this. | Additions are marked like this. |
Line 71: | Line 71: |
We will do root access in the "schroot" configured to install some important packages for Debian packaging. | We will do root access in the "'''schroot'''" configured to install some important packages for Debian packaging. |
Line 75: | Line 75: |
Let's add the source repository as follows: (sources.list) |
|
Line 77: | Line 79: |
{*} '''editor''' = ''your favorite text editor: nano, vim, mcedit, etc ...'' Let's add the source repository as follows: |
{*} '''editor''' = ''your favorite text editor: nano, vim, mcedit, etc...'' |
Line 82: | Line 82: |
Save, close and update: ||<#ADADAC -4 : tablewidth="70%" style="border: medium none ;-moz-border-radius-topleft: 30px ;-moz-border-radius-topright: 30px;"> '''(unstable-amd64)root@debian:~#''' apt update && apt upgrade|| |
|
PACKAGES STUCK WITH SCHROOT
Chroot Manager
Allows you to configure chroots without requiring root credentials.
For a better knowledge on the subject:
Starting prison for packages
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 ...
In this model, we will do this in the amd64 architecture, but you can change or create it in the i386 architecture.
Copy and paste into the file.
[unstable-amd64] |
1. Installing the Debian base in the cage
# 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 press "Ctrl+D" to close everything.
Confirming that the configured prison is correct
user@debian: ~$ schroot -l |
Entering prison as a user:
user@debian:~$ schroot -c unstable-amd64 |
Entering private prison: (root)
user@debian:~$ schroot -c unstable-amd64 -u root |
Basic Debian packaging configurations
We will do root access in the "schroot" configured to install some important packages for Debian packaging.
user@debian:~$ schroot -c unstable-amd64 -u root |
Let's add the source repository as follows: (sources.list)
(unstable-amd64)root@debian:~# editor /etc/apt/sources.list |
editor = your favorite text editor: nano, vim, mcedit, etc...
deb https://deb.debian.org/debian unstable main |
Save, close and update:
(unstable-amd64)root@debian:~# apt update && apt upgrade |