– RPI 4, 4GB
– 250 GB SSD: Teamgroup PD400
– MicroSD 32 GB
OS: Raspbery Pi OS Lite 2021-10-30
First I made sure SSH is avalble to me so I could login through my PC notebook.
$ sudo apt update
$ sudo apt upgrade -y
after restart I SSH in and run the following:
$ sudo apt install -y curl
2) Run the following command:
$ curl -fsSL https://raw.githubusercontent.com/SensorsIot/IOTstack/master/install.sh | bash
This runs takes down a github repository IOStack and runs it. Some restarting might be in order after Docker is installed.
Will it work?
Well… containers are there…
But how about their fuctions? Are they properly installed?
These are the containers I have built and intend to test now:
I create an admin account. I try to login with it… and I can’t.
- Be in the correct directory:
$ cd ~/IOTstack
- If the stack is running, take it down:
$ docker-compose down
- Erase the persistent storage area for Nextcloud (double-check the command before you hit return):
$ sudo rm -rf ./volumes/nextcloudThis is done to force re-initialisation. In particular, it gives you assurance that the passwords in your
docker-compose.ymlare the ones that are actually in effect.
- Bring up the stack:
$ docker-compose up -d
- Check for errors:Repeat the following command two or three times at 10-second intervals:
$ docker psYou are looking for evidence that the
nextcloud_dbcontainers are up, stable, and not restarting.
- then make your domain name by running
raspi-config. Let’s say you chose ‘rpi4’ which would make the url to nextcloud the follwoing:
- then.. stop docker again and go edit the file ~/IOTstack/volumes/nextcloud/html/config/config.php
- search for trusted_domains and add the new domain so it looks something like this:
‘trusted_domains’ => array (
0 => ‘192.168.203.200:9321’,
1 => ‘
2 => ‘
- Save the damn file and go:
docker-compose restart nextcloud
- open browser at
rpi4:9321 and the registration and login should finally work
You’re efing welcome!