mirror of https://github.com/CIRCL/Circlean
Update setup_with_proot.md
parent
826f0b2de8
commit
c7c11fed44
|
@ -5,7 +5,7 @@ There is always a prebuilt image available for download and installation as
|
||||||
described in the [README](../README.md). If you'd like to build the project yourself,
|
described in the [README](../README.md). If you'd like to build the project yourself,
|
||||||
there are several steps involved:
|
there are several steps involved:
|
||||||
|
|
||||||
* Downloading a generic RaspiOS Lite image
|
* Downloading a generic Raspbian Lite image
|
||||||
* Resizing the image and partition
|
* Resizing the image and partition
|
||||||
* Downloading and building the dependencies
|
* Downloading and building the dependencies
|
||||||
* Modifying the image configuration
|
* Modifying the image configuration
|
||||||
|
@ -28,13 +28,13 @@ Preparation
|
||||||
```
|
```
|
||||||
* Install qemu, qemu-user-static, and proot if not already installed:
|
* Install qemu, qemu-user-static, and proot if not already installed:
|
||||||
```
|
```
|
||||||
apt-get install qemu qemu-user-static qemu-user proot xz-utils
|
apt-get install qemu qemu-user-static qemu-user proot
|
||||||
```
|
```
|
||||||
|
|
||||||
Download the Raspbian image
|
Download the Raspbian image
|
||||||
==============================
|
==============================
|
||||||
|
|
||||||
* Get the most recent version of RaspiOS Lite from [here](https://downloads.raspberrypi.org/raspios_lite_armhf/images/):
|
* Get the most recent version of Raspbian Jessie Lite from https://downloads.raspberrypi.org/raspbian_lite/images/:
|
||||||
|
|
||||||
```
|
```
|
||||||
wget https://downloads.raspberrypi.org/raspbian_lite_latest
|
wget https://downloads.raspberrypi.org/raspbian_lite_latest
|
||||||
|
@ -45,7 +45,7 @@ Download the Raspbian image
|
||||||
```
|
```
|
||||||
* Unpack it:
|
* Unpack it:
|
||||||
```
|
```
|
||||||
unxz XXXX-XX-XX-raspios-bullseye-armhf-lite.img.xz
|
unzip XXXX-XX-XX-raspbian-buster-lite.zip
|
||||||
```
|
```
|
||||||
|
|
||||||
Add space to the image
|
Add space to the image
|
||||||
|
@ -54,40 +54,38 @@ Add space to the image
|
||||||
* Use dd to add 2GB (2048 blocks of 1024k each). Using /dev/zero as the input
|
* Use dd to add 2GB (2048 blocks of 1024k each). Using /dev/zero as the input
|
||||||
file yields an unlimited number of "0x00" bytes.
|
file yields an unlimited number of "0x00" bytes.
|
||||||
```
|
```
|
||||||
dd if=/dev/zero bs=1024k count=2048 >> XXXX-XX-XX-raspios-bullseye-armhf-lite.img
|
> dd if=/dev/zero bs=1024k count=2048 >> XXXX-XX-XX-raspbian-jessie-lite.img
|
||||||
```
|
```
|
||||||
|
|
||||||
* Expand the root (second) partition using sfdisk:
|
* Expand the root (second) partition using sfdisk:
|
||||||
```
|
```
|
||||||
echo ", +" | sfdisk -N 2 XXXX-XX-XX-raspios-bullseye-armhf-lite.img
|
> echo ", +" | sfdisk -N 2 XXXX-XX-XX-raspbian-jessie-lite.img
|
||||||
|
|
||||||
Checking that no-one is using this disk right now ... OK
|
Checking that no-one is using this disk right now ... OK
|
||||||
|
|
||||||
Disk 2023-05-03-raspios-bullseye-armhf-lite.img: 3.83 GiB, 4114612224 bytes, 8036352 sectors
|
Disk 2017-11-29-raspbian-stretch-lite.img: 3.7 GiB, 4005560320 bytes, 7823360 sectors
|
||||||
Units: sectors of 1 * 512 = 512 bytes
|
Units: sectors of 1 * 512 = 512 bytes
|
||||||
Sector size (logical/physical): 512 bytes / 512 bytes
|
Sector size (logical/physical): 512 bytes / 512 bytes
|
||||||
I/O size (minimum/optimal): 512 bytes / 512 bytes
|
I/O size (minimum/optimal): 512 bytes / 512 bytes
|
||||||
Disklabel type: dos
|
Disklabel type: dos
|
||||||
Disk identifier: 0x4c4e106f
|
Disk identifier: 0x37665771
|
||||||
|
|
||||||
Old situation:
|
Old situation:
|
||||||
|
|
||||||
Device Boot Start End Sectors Size Id Type
|
Device Boot Start End Sectors Size Id Type
|
||||||
2023-05-03-raspios-bullseye-armhf-lite.img1 8192 532479 524288 256M c W95 FAT32 (LBA)
|
2017-11-29-raspbian-stretch-lite.img1 8192 93236 85045 41.5M c W95 FAT32 (LBA)
|
||||||
2023-05-03-raspios-bullseye-armhf-lite.img2 532480 8036351 7503872 1.6G 83 Linux
|
2017-11-29-raspbian-stretch-lite.img2 94208 3629055 3534848 1.7G 83 Linux
|
||||||
|
|
||||||
2023-05-03-raspios-bullseye-armhf-lite.img2:
|
2017-11-29-raspbian-stretch-lite.img2:
|
||||||
New situation:
|
New situation:
|
||||||
Disklabel type: dos
|
Disklabel type: dos
|
||||||
Disk identifier: 0x4c4e106f
|
Disk identifier: 0x37665771
|
||||||
|
|
||||||
Device Boot Start End Sectors Size Id Type
|
Device Boot Start End Sectors Size Id Type
|
||||||
2023-05-03-raspios-bullseye-armhf-lite.img1 8192 532479 524288 256M c W95 FAT32 (LBA)
|
2017-11-29-raspbian-stretch-lite.img1 8192 93236 85045 41.5M c W95 FAT32 (LBA)
|
||||||
2023-05-03-raspios-bullseye-armhf-lite.img2 532480 8036351 7503872 3.6G 83 Linux
|
2017-11-29-raspbian-stretch-lite.img2 94208 7823359 7729152 3.7G 83 Linux
|
||||||
|
|
||||||
The partition table has been altered.
|
The partition table has been altered.
|
||||||
Syncing disks.
|
Syncing disks.
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
* Edit `shell_utils/basic_mount_image.sh` to use the correct image path ($IMAGE)
|
* Edit `shell_utils/basic_mount_image.sh` to use the correct image path ($IMAGE)
|
||||||
|
@ -163,7 +161,7 @@ verify that these dependencies are current by checking in the PyCIRCLean git rep
|
||||||
cd /home/pi
|
cd /home/pi
|
||||||
git clone https://github.com/CIRCL/PyCIRCLean.git
|
git clone https://github.com/CIRCL/PyCIRCLean.git
|
||||||
cd PyCIRCLean
|
cd PyCIRCLean
|
||||||
#pip3 install -r requirements.txt
|
pip3 install -r requirements.txt
|
||||||
```
|
```
|
||||||
* Create a new user named "kitten":
|
* Create a new user named "kitten":
|
||||||
```
|
```
|
||||||
|
|
Loading…
Reference in New Issue