Maritim og Marin IIoT - dokumentasjon

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 8 Next »

Docker

This server is a handmedown from a previous student, intel i7-4770k with 16bg ram, 2 180GB SSD tho this may change!

The intention for this server is a catch all docker image host for small applications that may be added over time.

Docker-Desktop

in order to install docker desktop the following dependencies are required

Terminal comands
sudo apt-get update
sudo apt-get install ca-certificates curl gnupg lsb-release

------

sudo mkdir -p /etc/apt/keyrings
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg
echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null

------

sudo apt update
sudo apt-get install docker-ce docker-ce-cli containerd.io docker-compose-plugin

Afterwards you install docker desktop with the appimage from HERE

Obico print detective

Obico is a print farm manager that uses AI to detect errors and stops printers, while also giving a powerful suite of management tools

After docker is installed obico can be set up.

Terminal commands
git clone -b release https://github.com/TheSpaghettiDetective/obico-server.git

------

cd obico-server && sudo docker compose up -d

Open http://localhost:3334 on the same computer. If you see this page, then congratulations - your self-hosted Obico Server is now up and running!


Manulab infocentre

Simple wordpress server where we can add inn slides to be displayed on the tv's. tv clients are just raspberry pi's with no extra software. just open the locally hosted wordpress site in firefox and enable full-screen.

For digital signage a wordpress plugin called Foyer is used.

Terminal commands
apt update && apt upgrade -y
apt install apache2 php mariadb-server software-properties-common
mysql_secure_installation
apt install phpmyadmin

------

cd /var/www/html
wget wordpress.org/latest.zip
unzip latest.zip
mv /wordpress/* .
rm -rf wordpress
rm -f latest.zip

------
sudo su
mysql
create database wordpress;
create user 'wp'@'localhost' identified by 'fubar';
grant all privileges on wordpress.* TO 'wp'@'localhost';
flush privileges;
quit

------ Assuming your're still in /var/www/html

chown -R 33:33 *
find . -type d -exec chmod 0775 {} \; && find . -type f -exec chmod 0664 {} \;

Raspberrys

for the reciving clients install a desktop enviroment rasbian install then type the following commands.

Terminal commands
sudo nanu /etc/xdg/lxsession/LDXE-pi/autostart

when inside add the following line

@chromium-browser --kiosk http://10.0.12.251/index.php/foyer/<screentype>

replace <screentype> with "mainboard" or "tables"



  • No labels