diff --git a/docs/setup-run-headless.md b/docs/setup-run-headless.md
index a46c337..69a144c 100644
--- a/docs/setup-run-headless.md
+++ b/docs/setup-run-headless.md
@@ -8,8 +8,10 @@
---
## 📡 Run the studio instance
-### with docker run
-> ⚠️ `docker ... --rm` option is not suitable for production use because it won't survive a reboot. However, it's okay for quick testing. You need to use --restart=always instead to ensure that it persists.
+
+Using docker run
+
+- ⚠️ `docker ... --rm` option is not suitable for production use because it won't survive a reboot. However, it's okay for quick testing. You need to use --restart=always instead to ensure that it persists.
```bash
# (Optional) Install docker if needed
curl -sSL get.docker.com | sh && sudo usermod -aG docker $(whoami) && logout # then login again
@@ -29,8 +31,11 @@ docker run --restart=always --name obscreen --pull=always \
-v /dev/null:/app/var/run/play \
jierka/obscreen:latest
```
----
-### or with docker compose
+
+
+
+Using docker compose
+
```bash
# Prepare application data file tree
cd ~ && mkdir -p obscreen/data/db obscreen/data/uploads && cd obscreen
@@ -41,8 +46,11 @@ curl https://raw.githubusercontent.com/jr-k/obscreen/master/docker-compose.headl
# Run
docker compose up --detach --pull=always
```
----
-### or system-wide
+
+
+
+System-wide
+
#### Install
```bash
# Install system dependencies
@@ -87,6 +95,12 @@ sudo systemctl start obscreen-studio.service
# Watch logs with following command
sudo journalctl -u obscreen-studio -f
```
+---
+## 🏁 Finally
+- Run `sudo systemctl restart obscreen-studio` or `sudo reboot`
+
+
+
---
## 👌 Usage
@@ -97,7 +111,9 @@ sudo journalctl -u obscreen-studio -f
---
## 📺 Run the player instance
-### Autorun for a linux based system
+
+Autorun for a RaspberryPi
+
#### How to install
- Install player autorun by executing following script (will install chromium, x11, pulseaudio and obscreen-player systemd service)
```bash
@@ -108,25 +124,34 @@ sudo reboot
#### How to restart
1. Just use systemctl `sudo systemctl restart obscreen-player.service`
-### Manually on any device capable of running chromium
+
+
+
+Manually on any device capable of running chromium
+
When you run the browser yourself, don't forget to use these flags for chromium browser:
```bash
# chromium or chromium-browser or even chrome
# replace http://localhost:5000 with your obscreen-studio instance url
chromium --disable-features=Translate --ignore-certificate-errors --disable-web-security --disable-restore-session-state --autoplay-policy=no-user-gesture-required --start-maximized --allow-running-insecure-content --remember-cert-error-decisions --noerrdialogs --kiosk --incognito --window-position=0,0 --window-size=1920,1080 --display=:0 http://localhost:5000
```
+
+
---
## 📎 Additional
-### How to upgrade `obscreen-studio`
->#### with docker run
-- Just add `--pull=always` to your `docker run ...` command, you'll get latest version automatically.
->#### or with docker compose
-- Just add `--pull=always` to your `docker compose up ...` command, , you'll get latest version automatically.
->#### or system-wide
-- Execute following script
+
+How to upgrade `obscreen-studio`
+
+#### with docker run
+- Just add `--pull=always` to your `docker run ...` command, you'll get the latest version automatically.
+#### or with docker compose
+- Just add `--pull=always` to your `docker compose up ...` command, you'll get the latest version automatically.
+#### or system-wide
+- Using Git Updater plugin
+- Or execute following script
```bash
cd ~/obscreen
git pull
@@ -134,3 +159,4 @@ source ./venv/bin/activate
pip install -r requirements.txt
sudo systemctl restart obscreen-studio.service
```
+
diff --git a/docs/setup-run-on-rpi.md b/docs/setup-run-on-rpi.md
index 10fe174..c507684 100644
--- a/docs/setup-run-on-rpi.md
+++ b/docs/setup-run-on-rpi.md
@@ -16,9 +16,9 @@
## 📡 Run the studio instance
-with docker run
+Using docker run
-⚠️ `docker ... --rm` option is not suitable for production use because it won't survive a reboot. However, it's okay for quick testing. You need to use --restart=always instead to ensure that it persists.
+- ⚠️ `docker ... --rm` option is not suitable for production use because it won't survive a reboot. However, it's okay for quick testing. You need to use --restart=always instead to ensure that it persists.
```bash
# (Optional) Install docker if needed
curl -sSL get.docker.com | sh && sudo usermod -aG docker $(whoami) && logout # then login again
@@ -44,7 +44,7 @@ docker run --rm --name obscreen --pull=always \
-with docker compose
+Using docker compose
```bash
# Prepare application data file tree
@@ -62,7 +62,7 @@ docker compose up --detach --pull=always
-system-wide (recommended)
+System-wide (recommended)
#### Install
```bash
@@ -107,7 +107,7 @@ sudo journalctl -u obscreen-studio -f
```
---
## 🏁 Finally
-- Run `sudo systemctl restart obscreen-player` or `sudo reboot`
+- Run `sudo systemctl restart obscreen-studio` or `sudo reboot`
@@ -120,7 +120,9 @@ sudo journalctl -u obscreen-studio -f
---
## 📺 Run the player instance
-### Autorun for a RaspberryPi
+
+Autorun for a RaspberryPi
+
#### How to install
- Install player autorun by executing following script (will install chromium, x11, pulseaudio and obscreen-player systemd service)
```bash
@@ -134,21 +136,26 @@ curl -fsSL https://raw.githubusercontent.com/jr-k/obscreen/master/system/install
1. First you have to reboot your device with `sudo reboot`
2. You have to set audio channel to HDMI `sudo raspi-config nonint do_audio 1` (0 is for jack 3.5 output)
-### Manually on any device capable of running chromium
+
+
+
+Manually on any device capable of running chromium
+
When you run the browser yourself, don't forget to use these flags for chromium browser:
```bash
# chromium or chromium-browser or even chrome
# replace http://localhost:5000 with your obscreen-studio instance url
chromium --disable-features=Translate --ignore-certificate-errors --disable-web-security --disable-restore-session-state --autoplay-policy=no-user-gesture-required --start-maximized --allow-running-insecure-content --remember-cert-error-decisions --noerrdialogs --kiosk --incognito --window-position=0,0 --window-size=1920,1080 --display=:0 http://localhost:5000
```
+
+
---
-## ✨ You are done now :)
-- If everything is set up correctly, the RaspberryPi shall start chromium in fullscreen directly after boot screen and after some seconds of showing the date & time (`views/player/default.jinja.html`) your slideshow shall start and loop endlessly.
-- Make sure that `PLAYER_AUTOSTART_FILE` exists and is writeable !
-
## 📎 Additional
+
+Hardware checks
+
### Hardware checks
- Basic Setup
For basic RaspberryPi setup you can use most of the available guides, for example this one:
@@ -160,13 +167,18 @@ https://www.raspberrypi.org/documentation/configuration/config-txt/video.md
However, I used this one: `(2,82) = 1920x1080 60Hz 1080p`
-### How to upgrade `obscreen-studio`
->#### with docker run
-- Just add `--pull=always` to your `docker run ...` command, you'll get latest version automatically.
->#### or with docker compose
-- Just add `--pull=always` to your `docker compose up ...` command, , you'll get latest version automatically.
->#### or system-wide
-- Execute following script
+
+
+
+How to upgrade `obscreen-studio`
+
+#### with docker run
+- Just add `--pull=always` to your `docker run ...` command, you'll get the latest version automatically.
+#### or with docker compose
+- Just add `--pull=always` to your `docker compose up ...` command, you'll get the latest version automatically.
+#### or system-wide
+- Using Git Updater plugin
+- Or execute following script
```bash
cd ~/obscreen
git pull
@@ -174,4 +186,4 @@ source ./venv/bin/activate
pip install -r requirements.txt
sudo systemctl restart obscreen-studio.service
```
-
+