Moving getting started and getting help into system to avoid cluttery navigation.

This commit is contained in:
Roland 2023-11-23 17:10:27 -07:00
parent 228a91ef20
commit 4a9d7246f0
No known key found for this signature in database
GPG key ID: 9D6DBD3ACF11AB93
3 changed files with 12 additions and 11 deletions

View file

@ -0,0 +1,98 @@
# Getting Help
## Online
Help can be found online at these places:
* WROLPi Discord: [https://discord.gg/HrwFk7nqA2](https://discord.gg/HrwFk7nqA2)
* WROLPi Github: [https://github.com/lrnselfreliance/wrolpi](https://github.com/lrnselfreliance/wrolpi)
* WROLPi Youtube Channel: [https://www.youtube.com/@wrolpi](https://www.youtube.com/@wrolpi)
### `install.sh`
WROLPi may be repaired using the installation script which requires internet, run it like so:
`/opt/wrolpi/install.sh`
## Offline
### `repair.sh`
WROLPi has a repair script which will attempt to repair the WROLPi while offline. It copies configs, restarts services,
etc. Run the repair script like so:
`/opt/wrolpi/repair.sh`
### `help.sh`
WROLPi has a help script which checks common failure points on a WROLPi system, run it like so:
`/opt/wrolpi/help.sh`
Example output:
```text
OK: Running on Raspberry Pi
OK: Found wrolpi user
OK: The WROLPi directory exists
OK: The WROLPi blobs directory exists
OK: The WROLPi main script exists
OK: The WROLPi config file exists
OK: Postgres found
OK: Port 5432 is occupied
OK: Postgres is using file socket
OK: Found wrolpi database
OK: WROLPi database is initialized
OK: WROLPi database has files
OK: WROLPi Python virtual environment exists
OK: WROLPi main can be run
OK: WROLPi API systemd exists
OK: WROLPi API service is up
OK: WROLPi API echoed correctly
OK: WROLPi app directory exists
OK: WROLPi app exists
OK: WROLPi app systemd exists
OK: WROLPi app service is up
OK: WROLPi app responded with interface
OK: Port 80 is occupied
OK: nginx systemd exists
OK: Found map database
OK: Map database is initialized
OK: renderd systemd exists
OK: Map app responded
OK: Map initialization blob exists
OK: Leaflet.js exists
OK: The kiwix library file exists
OK: Kiwix app responded
OK: The media directory exists
OK: Can modify media directory
OK: Media directory files are served by nginx
OK: Config can be fetched from nginx
OK: Media directory is owned by wrolpi user
OK: Singlefile can be run
OK: readability exists
OK: wget can be run
OK: yt-dlp can be run
OK: Chromium can be run
OK: ffmpeg can be run
OK: Help service is running
```
The output above will help an experienced developer narrow down the cause of an issue.
## Reset
### Reset API Database
The `wrolpi` database contains the tables and indexes which allow you to search or even browse your WROLPi. A script is
provided which will delete and re-create this database. **Warning you will need to refresh your files!** Run it if the
repair script above fails:
`/opt/wrolpi/scripts/reset_api_db.sh`

View file

@ -0,0 +1,60 @@
# Getting Started
## Finish WROLPi Installation
To finish your WROLPi installation follow these steps:
1. Modify fstab to mount your external drive. In the example below, `/dev/sda1` will be mounted to `/media/wrolpi`
1. `echo '/dev/sda1 /media/wrolpi auto defaults,nofail 0 0' | sudo tee -a /etc/fstab`
2. Finish the installation with the repair script: `sudo bash /opt/wrolpi/repair.sh`
3. Reboot: `sudo reboot`
4. After reboot, browse to `http://wrolpi.local` or `http://127.0.0.1` on the WROLPi itself.
5. [Refresh your files](../modules/files/index.md#refreshing)
# Creating a new WROLPi
## Raspberry Pi
The following instructions are the steps necessary to create a new WROLPi, either as a backup, or to restore your WROLPi
on a new Raspberry Pi.
### Image an SD Card on Linux
1. Plug in your SD card, find its device path with: `sudo blkid`
2. Extract and copy the WROLPi image to your drive (/dev/sdb in this example):
* `xzcat WROLPi-v0.10-aarch64-desktop.img.xz | sudo dd of=/dev/sdb status=progress`
### Image an SD Card on Windows
1. Copy the WROLPi image to your micro SD card using [Balena Etcher](https://www.balena.io/etcher)
### First Boot
1. Unplug your Raspberry Pi
2. Insert the micro SD card from step 2 into your Raspberry Pi
3. Connect any peripherals to your Raspberry Pi, then turn it on.
4. Login as the **pi** user with the password **wrolpi**
5. Launch the Terminal application
1. Change your password with: `passwd`
2. Modify fstab to mount your external drive to **/media/wrolpi**
* `echo '/dev/sda1 /media/wrolpi auto defaults,nofail 0 0' | sudo tee -a /etc/fstab`
3. Finish the installation with the repair script:
* `sudo bash /opt/wrolpi/repair.sh`
4. Reboot: `sudo reboot`
## Debian
The following instructions are the steps necessary to create a new WROLPi, either as a backup, or to restore your WROLPi
on a new Debian computer.
1. Copy the Debian WROLPi ISO to a thumb-drive.
2. Insert the thumb-drive into the laptop, boot to the thumb-drive.
1. Select **Start Installer**
2. Install Debian 12.
3. Unplug the thumb-drive after the installation has completed
4. Login as the user you created during installation.
5. Switch to the root user: `su -`
6. Finish the installation with the repair script: `sudo bash /opt/wrolpi/repair.sh`
7. Reboot: `sudo reboot`
8. Join the Hotspot or browse to `http://wrolpi.local` or the IP address of your WROLPi!
9. [Refresh your files](../modules/files/index.md#refreshing)