Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- https://www.balena.io/etcher/
- https://downloads.raspberrypi.org/raspbian_lite/images/raspbian_lite-2019-04-09/2019-04-08-raspbian-stretch-lite.zip
- https://putty.org/
- sudo apt update -y && sudo apt full-upgrade -y && sudo apt autoremove -y && sudo apt clean -y && sudo apt autoclean -y
- sudo raspi-config
- sudo apt-get install mc -y
- cd
- curl -fsSL get.docker.com -o get-docker.sh
- sudo sh get-docker.sh
- sudo usermod -aG docker pi
- docker --version
- sudo reboot
- sudo apt-get install python-pip -y
- sudo pip install docker-compose~=1.23.2
- docker-compose --version
- sudo mkdir /opt
- sudo chown pi:pi /opt
- cd /opt
- mkdir dockermon homeassistant organizr portainer duckdns
- nano docker-compose.yaml
- docker-compose pull
- docker-compose up -d homeassistant
- docker-compose up -d portainer
- echo 'echo url="https://www.duckdns.org/update?domains=DIT_SUB_DOMAIN&token=DIT_TOKEN&ip=" | curl -k -o /opt/duckdns/duck.log -K -' > ./duckdns/duck.sh
- echo 'echo url="https://www.duckdns.org/update?domains=lindvig-delux&token=31c62cca-3ead-4039-a460-11284dbe0f8f&ip=" | curl -k -o /opt/duckdns/duck.log -K -' > ./duckdns/duck.sh
- chmod 700 ./duckdns/duck.sh
- crontab -e
- ./duckdns/duck.sh
- cat ./duckdns/duck.log
- cd /
- sudo wget https://dl.eff.org/certbot-auto
- sudo chmod 755 certbot-auto
- cat /etc/pip.conf
- sudo rm /etc/pip.conf -f
- ./certbot-auto certonly --standalone --preferred-challenges http-01 --email mail@apptoo.dk -d lindvig-delux.duckdns.org
- ./certbot-auto certonly --standalone --preferred-challenges http-01 --email mail@apptoo.dk -d ha.lindvig-delux.duckdns.org
- ./certbot-auto certonly --standalone --preferred-challenges http-01 --email mail@apptoo.dk -d portainer.lindvig-delux.duckdns.org
- cd /opt
- nano organizr/nginx/nginx.conf
- server_names_hash_bucket_size 64; UNCOMMENT
- rm organizr/nginx/site-confs/default
- nano organizr/nginx/site-confs/default
- nano organizr/nginx/site-confs/homeassistant
- nano organizr/nginx/site-confs/portainer
- docker-compose restart organizr
- cd /etc/systemd/system
- sudo nano docker-compose-opt.service
- sudo systemctl enable docker-compose-opt
- cd /opt
- docker-compose down
- sudo reboot
- docker ps
Add Comment
Please, Sign In to add comment