sudo apt install firebird4.0-server
sudo nano /etc/firebird/4.0/firebird.conf
RemoteBindAddress auskommentieren, damit alle Rechner Zugriff auf die Datenbank haben:
# RemoteBindAddress = localhost
Tags:
nano ~/.bashrc
# some more ls aliases
alias ll='ls -l'
nano ~/bin/wls_update
#!/bin/bash
sudo apt update && sudo apt dist-upgrade
sudo apt-get autoremove --purge
sudo apt-get autoclean
Tags:
sudo apt install radicale
sudo systemctl stop radicale
sudo apt install apache2-utils
sudo htpasswd -c /etc/radicale/users wnf
sudo chmod 600 /etc/radicale/user
sudo chown radicale:radicale /etc/radicale/users
sudo nano /etc/radicale/config
[server]
hosts = 0.0.0.0:5232
[auth]
type = htpasswd
htpasswd_filename = /etc/radicale/users
htpasswd_encryption = md5
[rights]
type = from_file
file = /etc/radicale/rights
sudo systemctl start radicale
Tags:
sudo apt install mosquitto
sudo apt install mosquitto-clients
sudo apt install python3-mqtt
sudo nano /etc/mosquitto/conf.d/local.conf
listener 1883
allow_anonymous true
sudo systemctl enable mosquitto
sudo systemctl start mosquitto
Tags:
sudo nano /etc/systemd/system/wnf_wetter_speicher.service
[Unit]
Description=wnfWetterSpeichern
Wants=network-online.target
After=network-online.target syslog.target
[Service]
Type=simple
User=wnf
Group=wnf
WorkingDirectory=/home/wnf/wnfwetter/
ExecStart=/home/wnf/wnfwetter/wnf_wetter_speicher.py
StandardOutput=null
StandardError=syslog
[Install]
WantedBy=multi-user.target
sudo systemctl enable wnf_wetter_speicher.service
sudo systemctl daemon-reload
sudo service wnf_wetter_speicher start
sudo nano /etc/systemd/system/wnf_wetter_http.service
[Unit]
Description=wnfWetterHttp
After=syslog.target
[Service]
Type=simple
User=wnf
Group=wnf
WorkingDirectory=/home/wnf/wnfwetter/
ExecStart=/home/wnf/wnfwetter/wnf_wetter_http.py
StandardOutput=syslog
StandardError=syslog
[Install]
WantedBy=multi-user.target
sudo systemctl enable wnf_wetter_http.service
sudo systemctl daemon-reload
sudo service wnf_wetter_http start
Tags:
sudo apt install nginx
sudo apt install certbot python3-certbot-nginx
sudo certbot --nginx
sudo nano /etc/nginx/sites-available/default
einfügen unter location
location / {
# First attempt to serve request as file, then
# as directory, then fall back to displaying a 404.
try_files $uri $uri/ =404;
}
location /wetter/ {
proxy_pass http://127.0.0.1:8099/;
}
location /radicale/ { # The trailing / is important!
proxy_pass http://127.0.0.1:5232/; # The / is important!
proxy_set_header X-Script-Name /radicale;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $http_host;
proxy_pass_header Authorization;
}
sudo certbot --nginx -d wnf.nfix.de -d bone.nfix.de
sudo nginx -t
systemctl reload nginx.service
Tags: Raspbian nginx certbot letsencrypt