2017-02-08 02:33:22 +01:00
|
|
|
* Download qemu, qemu-user-static, and proot if not already installed
|
2017-01-26 23:54:37 +01:00
|
|
|
* Download the newest raspbian-lite image from raspberrypi.org
|
|
|
|
* Verify the sha1 hash of the downloaded .zip file
|
|
|
|
* Unzip the image
|
|
|
|
* Expand the image by 2GB using dd
|
|
|
|
* Expand the root partition using fdisk
|
2017-02-08 02:33:22 +01:00
|
|
|
* Mount both partitions in loop mode using /shell_utils/basic_mount_image.sh
|
2017-01-26 23:54:37 +01:00
|
|
|
* Use df to find the larger partition, and resize the filesystem to fill it
|
2017-02-08 02:33:22 +01:00
|
|
|
* Copy circlean_fs/root_partition/etc/systemd/system/rc-local.service into the equivalent location
|
2017-01-26 23:54:37 +01:00
|
|
|
* Use proot to enter a chroot in the image: sudo proot -q qemu-arm -S /mnt/rpi-root -b /mnt/rpi-boot:/boot /bin/bash
|
2017-02-08 02:33:22 +01:00
|
|
|
* Run dpkg-reconfigure locales
|
2017-01-26 23:54:37 +01:00
|
|
|
* apt-get update
|
|
|
|
* apt-get dist-upgrade (might have to run this and autoremove several times)
|
|
|
|
* apt-get autoremove
|
|
|
|
* apt-get install the linux dependencies:
|
2017-02-08 02:33:22 +01:00
|
|
|
- timidity
|
|
|
|
- git
|
2017-01-26 23:54:37 +01:00
|
|
|
- p7zip-full
|
2017-02-08 02:33:22 +01:00
|
|
|
- pmount ntfs-3g
|
2017-01-26 23:54:37 +01:00
|
|
|
- python3 python3-pip
|
|
|
|
- python3-lxml
|
2017-02-09 20:41:13 +01:00
|
|
|
- libjpeg-dev libtiff-dev libwebp-dev liblcms2-dev tcl-dev tk-dev python3-tk
|
2017-01-26 23:54:37 +01:00
|
|
|
* Compile p7zip-rar from source
|
|
|
|
- Change your source.list file
|
|
|
|
- Make a new directory and cd to it
|
|
|
|
- apt-get build-dep p7zip-rar
|
|
|
|
- dpkg -i <p7zip-rar .deb file path>
|
|
|
|
* Make sure the right pip executable is called by `pip3`, change your path if necessary
|
|
|
|
* Upgrade pip: pip3 install -U pip
|
|
|
|
* pip3 install python dependencies
|
|
|
|
- exifread
|
|
|
|
- pillow
|
|
|
|
- olefile
|
2017-10-02 03:43:57 +02:00
|
|
|
- oletools
|
2017-01-26 23:54:37 +01:00
|
|
|
- git+https://github.com/grierforensics/officedissector.git
|
|
|
|
- git+https://github.com/CIRCL/PyCIRCLean.git
|
|
|
|
* Add a user named "kitten"
|
|
|
|
* Symlink /proc/mounts to /etc/mtab
|
2017-02-08 02:33:22 +01:00
|
|
|
* Turn on rc-local.service `systemctl enable rc-local.service`
|
2017-01-26 23:54:37 +01:00
|
|
|
- If it doesn't work, read these instructions: https://www.linuxbabe.com/linux-server/how-to-enable-etcrc-local-with-systemd
|
2017-10-25 21:28:59 +02:00
|
|
|
* Disable networking.service, bluetooth.service, and dchpcd.service
|
2017-02-08 02:33:22 +01:00
|
|
|
* apt-get autoclean
|
|
|
|
* apt-get autoremove
|
|
|
|
* Exit from proot
|
2017-01-26 23:54:37 +01:00
|
|
|
* Copy all of the project files from circlean_fs/ into the two partitions:
|
|
|
|
- rsync -vnri <source> <destination> will do a dry run of what will be copied, remove the -n to copy. See the rsync manpage for details.
|
|
|
|
- diode_controller/ if you're using the led functionality and have an external led
|
|
|
|
- midi/ files into /opt/midi/
|
|
|
|
- you might want to double check all of the permissions of the new files/directories
|
|
|
|
* Copy the image over to the SD card: sudo dd bs=4M if=<image> of=/dev/sd<letter>
|
|
|
|
- In newer versions of dd, you can add status=progress
|
|
|
|
* Optional: fsck the root partition (sudo e2fsck -f /dev/sd<letter>2).
|
|
|
|
* Test with an rpi
|
2017-02-08 02:33:22 +01:00
|
|
|
- FAT32 filesystem
|
|
|
|
- NTFS filesystem
|