jzohrab / lute

DEPRECATED: LUTE (Learning Using Texts) is a self-hosted web app for learning language through reading, based on Learning with Texts (LWT)
The Unlicense
118 stars 10 forks source link

Raspberry Pi installation fails #54

Closed jzohrab closed 1 year ago

jzohrab commented 1 year ago

I believe that @99MengXin already has Lute running with Docker on the Rasp Pi - in the Discord "install" channel ecurp_forp is having massive trouble getting started ... and I'm not sure what's wrong.

I have no idea what the issue is, and can't debug it or suggest changes, so maybe try setting up a Vagrant Box with a Rasp Pi OS, put Docker in there, install Lute in there, run it ... and watch the world explode. (Try using Vagrant box w/ Docker inside, and run Lute within Docker within Vagrant)

and the rest should be ... pretty straightforward. :-/ Not.

99MengXin commented 1 year ago

Raspberry Pi

I love this useful and cheap tool.

Platform

hostnamectl

Operating System: Debian GNU/Linux 11 (bullseye) Kernel: Linux 6.1.21-v8+ Architecture: arm64

Docker Installation

You need docker first, and it's super easy. Install Docker Engine on Debian | Docker Documentation

curl -fsSL https://get.docker.com -o get-docker.sh
sudo sh get-docker.sh

Lute Installation

Follow step by step, and you will not get lost. 🙂

Step 1

cd

Step 2

mkdir ./Containers/lute/lute_2.0.7 -p
mkdir ./Containers/lute/LuteBackup -p

Step 3

cd ./Containers/lute/lute_2.0.7

Step 4

wget https://github.com/jzohrab/lute/releases/download/v2.0.7/lute_release.zip

Step 5

unzip lute_release.zip

Step 6

rm lute_release.zip

Step 7

cd

Step 8

cd ./Containers/lute/LuteBackup

Step 9

pwd

Step 10

cd

Step 11

cd ./Containers/lute/lute_2.0.7

Step 12

cp .env.example.docker .env

Step 13

nano .env

Step 14

BACKUP_HOST_DIR=/home/pi/Containers/lute/LuteBackup

Step 15

BACKUP_ENABLED=true

Step 16

LOGIN_USERNAME=lute
LOGIN_PASSWORD=lute

Step 17

nano ./config/packages/security.yaml

Step 18

security: true

Step 19

cp ../lute_2.0.5/data/lute.db ./data/lute.db

Step 20

docker compose build

Step 21

docker compose up -d

Step 22

Step 23

jzohrab commented 1 year ago

This is going on the wiki when I get permission to add it! :-) Thank you for the detail!

jzohrab commented 1 year ago

I've added this to the wiki. Rather than keep this open, will wait for feedback from ecurb_forp in discord, he/she prompted this initial ticket.