Go to file
Eleanor Saitta 6fcbc0a174 Fix test runs so we get only this run's results. 2015-12-16 15:45:32 -05:00
deb
diode_controller
doc 3D model bug correction 2015-07-21 12:45:49 +02:00
fs Merge branch 'master' into dev 2015-12-08 17:04:51 +00:00
fs_filecheck Add scripts required by CIRCLean 2.0 2015-11-06 17:40:33 +01:00
fs_shell/etc
gpio_tests Add GPIO testing script 2015-07-04 23:53:20 +02:00
kernel_config
ledButton_controller Add initial code for LED button and state diagram. 2015-03-02 17:02:35 +01:00
midi
tests Fix test runs so we get only this run's results. 2015-12-16 15:45:32 -05:00
.gitignore Initial version of the standalone python module 2015-05-11 01:46:48 +02:00
CHANGELOG Update changelog 2015-03-10 15:28:44 +01:00
LICENSE LICENCE->LICENSE 2014-07-08 13:07:17 +02:00
MountNOOBS.md Add info how to mount a SD created with NOOBS 2015-05-25 21:58:35 +02:00
NOTES
NOTES-RPI2 add notes on Rpi2 / USB ports list 2015-05-25 20:21:40 +02:00
README.md Update README.md 2015-03-10 15:15:56 +01:00
README_filecheck.md Update documentation with additional dependencies. 2015-12-10 00:01:43 -05:00
README_initial_setup.md Remove version numbers from all setup scripts; fix docs. 2015-10-09 11:46:40 -04:00
TODO
copy_force_shell.sh
copy_to_final.sh Merge branch 'master' into dev 2015-12-08 17:04:51 +00:00
create_user.sh
get_shell.exp Use newest version of Raspian, updated to jessie. 2014-07-30 21:50:42 +02:00
get_shell.sh
mount_image.sh Saving files before refreshing line endings 2015-12-08 17:17:07 +00:00
prepare_rPI.sh Use pmount, remove sudoer rights to the user 2014-07-30 21:49:00 +02:00
prepare_rPI_builder.sh
proper_chroot.sh
resize_img.md Use wheezy (+backports) again (remove systemd support). 2015-03-09 18:35:48 +01:00
run_tests.sh Rework the way we select which partition types to test and introduce the concept of file test sets. Remove redundant old-style partition data sources. 2015-10-09 17:47:04 -04:00
update_PyCIRCLean.sh Make it easier to update the PyCIRCLean install inside an image. 2015-10-09 15:22:20 -04:00
update_builder.sh Use most recent image 2014-09-30 16:22:14 +02:00

README.md

CIRCLean

CIRCLean logo Cleaner in action

How To

Graphical how-to and pre-build image.

To prepare the SD card on Windows, you can use [Win32DiskImager] (http://sourceforge.net/projects/win32diskimager/).

And the linux way is in the command line, via dd (see in copy_to_final.sh)

Why/What

This project aims to be used in case you got an USB key you do not know what is contains but still want to have a look.

Work in progress, contributions welcome:

The content of the first key will be copyed or/and converted to the second key following theses rules (based on the mime type):

  • direct copy of plain text files (mime type: text/*)
  • direct copy of audio files (mime type: audio/*)
  • direct copy of image files (mime type: image/*)
  • direct copy of video files (mime type: video/*)
  • direct copy of example files (mime type: example/*)
  • direct copy of message files (mime type: message/*)
  • direct copy of model files (mime type: model/*)
  • direct copy of multipart files (mime type: multipart/*)
  • Copying or converting the application files this way (mime type: application/*):
    • pdf => HTML
    • msword|vnd.openxmlformats-officedocument.|vnd.ms-|vnd.oasis.opendocument* => pdf => html
    • xml => copy as a text file
    • x-dosexec (executable) => prepend and append DANGEROUS to the filename
    • x-gzip|x-tar|x-7z-compressed => compressed file
    • octet-stream => direct copy

Compressed files (zip|x-rar|x-bzip2|x-lzip|x-lzma|x-lzop|x-xz|x-compress|x-gzip|x-tar|*compressed):

  • Unpacking of archives
  • Recursively run the rules on the unpacked files

Usage

  1. Power off the device

  2. Plug the untrusted key in the top usb slot of the Raspberry Pi

  3. Plug your own key in the bottom usb slot

    Note: This key should be bigger than the original one because the archives will be copyed

  4. Optional: connect the HDMI cable to a screen to see what happen

  5. Connect the power to the micro USB

    Note: 5V, 700mA regulated power supply

  6. Wait until you do not see any blinking green light on the board, or if you connected the HDMI cable, check the screen it's slow and can take 30-60 minutes depending on how many document conversions take place

  7. Power off the device and disconnect the drives

Helper scripts

You should use them as example when you are creating a new image and probably not run them blindly as you will most probably have to change constraints accordingly to your configuration.

IN ALL CASES, PLEASE READ THE COMMENTS IN THE SCRIPTS AT LEAST ONCE.

  • proper_chroot.sh: uses qemu to chroot into a raspbian instance (.img or SD Card)
  • prepare_rPI_builder.sh: update the system, add the repositories and install all the dependencies needed to compile poppler and pdf2htmlEX on a rPi
  • update_builder.sh: compile the latest version of poppler from debian experimental, pull and compile the latest version of pdf2htmlEX from the git repository
  • prepare_rPI.sh: update the system, install the dependencies of poppler and pdf2htmlEX, install poppler and pdf2htmlEX (the deb packages compiled in the builder)
  • create_user.sh: create the user who will run the scripts, assign the proper sudo rights.
  • copy_to_final.sh: populate the content of the directory fs/ in the image, contains a sample of dd command to write the image on the SD card. TAKE CARE NOT USING THE WRONG DESTINATION