This is the ChatGPT prompt I used to be guided
Guide me through installing NodeBB using Termux
(This took some time and patience to troubleshoot errors and implement workaround)
pkg update && pkg upgrade -y
pkg install proot-distro git curl wget nano -y
proot-distro install debian
proot-distro login debian
apt update && apt upgrade -y
apt install -y curl git build-essential ca-certificates gnupg
apt update
apt install -y imagemagick
apt install -y redis-server
redis-server --daemonize yes
redis-cli ping
mkdir -p /opt
git clone https://github.com/NodeBB/NodeBB.git /opt/nodebb
cd /opt/nodebb
./nodebb setup
warn: NodeBB Setup Aborted.
Error: Could not load the "sharp" module using the android-arm64 runtime
Possible solutions:
- Manually install libvips >= 8.18.3
Force node to report platform as linux to get sharp to install
curl -LO https://nodejs.org/dist/v22.23.1/node-v22.23.1-linux-arm64.tar.xz
tar -xJf node-v22.23.1-linux-arm64.tar.xz
mv node-v22.23.1-linux-arm64 /usr/local/node
export PATH="/usr/local/node/bin:$PATH"
rm -rf node_modules
rm -f package-lock.json
npm install
Restart nodebb setup
./nodebb setup
defaults but database as redis
./nodebb start
./nodebb status
This forum is temporarily unavailable due to excessive load.
The uptime command is apparently reporting the Android/Termux host load, while /proc/loadavg inside the Debian proot environment reports a much lower load.
Fix for testing on termux purposes
nano config.json
"max_load": 999

Comments