Circlean/README_filecheck.md

1.6 KiB

Install Qemu and Expect

Install the necessary packages:

    sudo apt-get install qemu qemu-user-static expect

Create a new image from scratch

    unzip 2016-03-18-raspbian-jessie-lite.zip

Prepare the image

It will be used for the build environment and the final image.

    sudo ./proper_chroot.sh
  • Change your user to root (your global variables may be broken)
    su root
  • The locales may be broken, fix it (remove en_GB.UTF-8 UTF-8, set en_US.UTF-8 UTF-8):
    dpkg-reconfigure locales
  • In the image, make sure everything is up-to-date, and remove the old packages
    apt-get update
    apt-get dist-upgrade
    apt-get autoremove
    apt-get install timidity git p7zip-full python-dev python-pip python-lxml pmount libjpeg-dev libtiff-dev libwebp-dev liblcms2-dev tcl-dev tk-dev python-tk libxml2-dev libxslt1-dev
  • Install python requirements
    pip install oletools olefile exifread Pillow
    pip install git+https://github.com/Rafiot/officedissector.git
    pip install git+https://github.com/CIRCL/PyCIRCLean.git
  • Create the user and mtab for a RO filesystem
    useradd -m kitten
    chown -R kitten:kitten /home/kitten
    ln -s /proc/mounts /etc/mtab
  • Copy the files
    sudo ./copy_to_final.sh /mnt/arm_rPi/
  • Enable rc.local
    systemctl enable rc-local.service