Skip to content

Instantly share code, notes, and snippets.

View MichalLeonBorsuk's full-sized avatar

Michał Borsuk MichalLeonBorsuk

View GitHub Profile
#!/usr/bin/env bash
# How to run rar on RaspberryPi -- if you don't feel like adding an entry to binfmt:
# ALL STEPS TO BE RUN ON RaspberryPi UNLESS NOTED
# 1. install qemu and gcc: '$ sudo apt install qemu-system-x86_64 gcc-x86-64-linux-gnu'
# 2. copy /usr/bin/rar *from your PC* to your ARM machine: on your PC, run a command similar to '$ scp /usr/bin/rar 192.168.x.x:~/bin'
# 3. rename the rar executable to 'rar-x86_64': '$ mv ~/bin/rar ~/bin/rar'
# 4. save this script to ~/bin, name it 'rar', '$ chmod +x ~/bin/rar'
# 5. enjoy! speed is about a *tenth* of x86_64, so this is mostly useful for situatoions where you can't switch to tar.xz