This repository was archived by the owner on Jun 27, 2025. It is now read-only.
Getting it up and running on ARM-based devices (Debian) #3
heathercat123
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Currently, you can only get it up and running using my installation guide on IBM PC compatibles capable of running Windows XP or newer. However, if you are on an ARM-based device and you try following my guide, you'll have to use the x86 emulator included in the ARM64 compiles of Windows 10 and 11. But emulation isn't ideal, Windows isn't either and you need a Raspberry Pi 4 or newer (8GB version) to run Windows. As such, it would be beneficial to run it natively on Linux.
Currently, HeatherscratchR has been confirmed to work on the following ARM64-compatible software:
HeatherscratchR has been confirmed to NOT work on the following software:
Guide:
You might need to replace bullseye by bookworm depending on your Debian version. The Trixie version is missing php5.6-memcache, which is required by ScratchR.
Then, run this commands:
Edit: It seems like you can't use apt-key anymore so if the commands above don't work, use these ones instead:
Install MariaDB 10.1:
sudo apt install mariadb-server-10.1 mariadb-client-10.1
Notice: If you have another version of MariaDB (installed by default on Kali), you have to remove mariadb-server, mariadb-client and mysql-common then delete /usr/share/mysql, /usr/share/mysql-common and /var/lib/mysql.
You may also need to run these commands:
Install Apache:
sudo apt install apache2 apache2-doc
Add this to /etc/apache2/mods-available/php5.conf:
sudo apt install php5.6 php5.6-mysql php5.6-gd php5.6-memcache php5.6-mbstring
Notice: If you have another version of PHP (installed by default on Kali), you have to apt purge php* before installing
Execute
php -v
to verify if you did anything wrongTo install memcached, run this command:
sudo apt-get install memcached
Prepare to clone ScratchR, where <LUSER> is your Linux username:
You need to enable mod_rewrite using this command:
sudo a2enmod rewrite
Replace the contents of /etc/apache2/sites-enabled/000-default.conf by this:
In /etc/apache2/apache2.conf, in <Directory /var/www/>, replace
AllowOverride None
byAllowOverride All
After setting up the VirtualHost, restart apache:
sudo systemctl restart apache2
Set up the database, where <DBUSER> and <DBPASS> are your MariaDB username and password respectively:
For HeatherscratchR, you need to install another update:
mysql -u $dbuser -p$dbpass scratchr < ./updates/01-12-2024_add_styles.sql
Copy /var/www/html/scratchr/app/config/database.php.default to database.php
Replace var $default = array(...) by this:
Copy scratchr/app/webroot/static/rename2icons/ to icons/
If you're using the normal ScratchR, you'll need this file from HeatherscratchR
Edit: Users now work! HeatherscratchR can now officially be set up on Debian!
Edit 2: This guide should now work on Debian Trixie. Tested with Kali Linux.
This guide was tested on Debian 11 Bullseye x86 with Raspberry Pi Desktop and Kali Linux (Debian Trixie) x64 on real hardware and on a Debian 12 Bookworm x86 VM with i3 as the desktop.
Now, we need someone to test it on ARM hardware.
Beta Was this translation helpful? Give feedback.
All reactions