- Fixed IP: /etc/wpa_supplicant/wpa_supplicant.conf:
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
country=DE
network={
ssid="qiaowangluo"
psk="13020441787910888779"
key_mgmt=WPA-PSK
}
- file /etc/dhcpcd.conf:
interface wlan0
static ip_address=192.168.2.31/24
static routers=192.168.2.1
static domain_name_servers=192.168.2.1 8.8.8.8 fd51:42f8:caae:d92e::1
- Samba: install samba samba-common-bin, /etc/samba/smb.conf, service smbd restart
Client: apt-get install samba-common smbclient samba-common-bin smbclient cifs-utils
- configure via webmin
- Apache: install apache2 python-certbot-apache certbot php, install libapache2-mod-perl2, check /etc/apache2/apache2.conf and /etc/apache2/ports.conf, a2enmod cgid
- file /etc/apache2/sites-enabled/qiaowangluo.hopto.org.conf:
ServerAdmin webmaster@localhost
ServerName qiaowangluo.hopto.org
ServerAlias qiaowangluo.hopto.org
DocumentRoot /var/www
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
SSLCertificateFile /etc/letsencrypt/live/qiaowangluo.hopto.org/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/qiaowangluo.hopto.org/privkey.pem
Include /etc/letsencrypt/options-ssl-apache.conf
Options +ExecCGI
AddHandler cgi-script .cgi .pl
- change user and group of apache to pi, in file /etc/apache2/envvars, and restart apache by: sudo /etc/init.d/apache2 restart (in order to get your domain verified, you need to forward port 80 in speedport to smarthome, and afterwards deactivate it again)
- Renew certificate:
- enable port 80 in Speedport
sudo systemctl stop apache2
cd ~/certbot-env
. bin/activate
sudo -E /home/pi/.local/bin/certbot renew
sudo systemctl start apache2
- disable port 80 in Speedport
- replace cdate in ~/bubu/now.sh by the new expiry date
- FreeDNS provider: www.noip.com
- follow the instructions on site https://my.noip.com/dynamic-dns/duc in order to install and let DUC client run
- GIT
- SQLite3: install sqlite3, and create a file ~/.sqliterc containing the lines ".mode column", ".headers on", ".nullvalue NULL"
- sqlite3 ~/bubu/bubu.sqlite3 "CREATE TABLE 'cookies' ('timestamp' INT unsigned,'cookie' VARCHAR(100),PRIMARY KEY ('timestamp','cookie'));"
- Create link list in /var/www
- Create writable directory /var/upload (owner pi, 777)
- Extract 433Utils.tgz in /home/pi/
- download https://sourceforge.net/projects/slickslice/files/slickslice/0.9/slickslice-0.9/download, move it to /usr/bin/slickslice
- apt-get install imagemagick mplayer
- apt install jq libxml2-utils dos2unix mp3wrap
- sudo apt-get install pdftk
- sudo apt install libimage-exiftool-perl
- msmtp: install msmtp msmtp-mta mailutils, sendmail.sh needs to run
- now.sh and weather.sh need to run
- backup.sh and mountSpeedport.sh scripts need to run
- Keepass: install keepass2
- MMEX: apt install snapd, snap install mmex
- Crontab: crontab