Powered by s00r1gg

A big thank you to the developer of ra1nbox. Without his brilliant idea, this project would never have been born. The spirit of sharing and innovation continues to inspire and advance the community. Salute to the genius behind ra1nbox, you have lit the flame.

  • ra1box project checkra1n for NanoPi Neo
  • Introduction

    Yo, welcome to this tutorial to transform your NanoPi into a Palera1n Box.

    Recommended Software

    Download Armbian

    Burn the Armbian Image

    Use Balena Etcher to burn the "Armbian JAMMY CLI" image onto a micro SD card.

  • How to use Balena Etcher
  • SSH Connection

    (*) to find the IP address of the NanoPi, I use the app (Network Analyzer) on my iPhone

    in our example the IP address of the NanoPi is: 192.168.1.91

    (*) to connect via SSH to your NanoPi.

    (option 1) Use the terminal (cmd) under Windows, and enter the command:

    ssh root@192.168.1.91 (replace with the IP address of your NanoPi)
    the password (root) is: 1234

    (option 2) Use Putty to connect via SSH to your NanoPi.

  • How to use Putty
  • Update

    Now you are connected as root via SSH to your NanoPi

    start by running:

    sudo apt-get update
    sudo apt-get upgrade
    confirm the questions with (Y)

    Install Dependencies

    sudo apt-get install i2c-tools git vim armbian-config python3-dev python3-pil python3-smbus python3-pip python3-serial

    Enable I2C0 and analog-codec

    sudo armbian-config
    System->Hardware->Enable (analog-codec) and (i2c0) exit armbian-config (Esc)
    sudo reboot

    Activate NanoHatOLED

    Install Required Libraries

    Reconnect via SSH after NanoPi reboots

    sudo pip3 install --upgrade setuptools
    sudo pip3 install sh
    sudo pip3 install wheel
    sudo pip3 install psutil
    Ignore the following message: WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv

    Install palera1n Dependencies

    sudo apt install libc6 libncurses5 libpango-1.0-0 libpangocairo-1.0-0 libpangoft2-1.0-0 libatk1.0-0 libgdk-pixbuf2.0-0 libglib2.0-0 libfontconfig1 libfreetype6 libgtk-3-0 libusb-1.0-0 libplist3 usbmuxd ideviceinstaller python3-imobiledevice libimobiledevice-utils python3-plist ifuse libusbmuxd-tools
    Confirm with (Y)

    Install mplayer, irecovery, usbmuxd, etc.

    Execute the following command:

    sudo apt install mplayer usbmuxd libjpeg-dev usbmuxd
    Confirm with (Y)

    First install more required dependencies and build tools:

    sudo apt-get install pkg-config libplist-dev libreadline-dev libusb-1.0-0-dev build-essential checkinstall git autoconf automake libtool-bin

    Install libplist

    cd
    git clone https://github.com/libimobiledevice/libplist.git
    cd libplist
    ./autogen.sh
    ./configure
    make
    sudo make install

    Install libimobiledevice-glue

    cd
    git clone https://github.com/libimobiledevice/libimobiledevice-glue
    cd libimobiledevice-glue
    ./autogen.sh
    ./configure
    make
    sudo make install

    Install libirecovery

    cd
    git clone https://github.com/libimobiledevice/libirecovery
    cd libirecovery
    ./autogen.sh
    ./configure
    make
    sudo make install

    Now install irecovery

    sudo apt install irecovery

    Install luma.oled

    Enter the following command:

    pip3 install luma.oled
    Ignore the following message: WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv

    Uninstall Pillow 10

    Enter the following command:

    pip3 uninstall pillow

    Download Files

  • Files for NanoPi Neo 1
  • Don't download the wrong version!
  • Files for NanoPi Neo 2 Black Coming Soon
  • Unzip the files into a new folder

    Place it on the desktop of the PC

    Transfer Files with WinSCP

    Download WinSCP and use it to transfer the modified Python files.

    (*) Run WinSCP and use the following settings:

    File protocol: SFTP

    Host name: 192.168.1.91 (replace with the IP address of your NanoPi)

    Port number: 22

    Username: root

    Password: (the root password of your NanoPi)

    Click on (Connect) then validate the key

    Now you have connected WinSCP to the NanoPi

    palera1n Box V 2.0

    (*) transfer all files

    to the following NanoPi folder:

    /root/NanoHatOLED/Bakebit/Software/Python/ confirm and replace existing files

    Permissions and Reboot

    Enter the following command:

    chmod +x /root/NanoHatOLED/BakeBit/Software/Python/palera1n
    chmod +x /root/NanoHatOLED/BakeBit/Software/Python/checkra1n
    chmod +x /usr/bin/irecovery
    sudo reboot

    Merci s00r1

    i will try to answer your questions on youtube or reddit

  • more informations on Reddit