Regular updates
sudo apt update
sudo apt upgradesDistribution updates
Check the version you are running:
lsb_release -aIf updater is not installed:
sudo apt install update-manager-coreTo upgrade the release:
sudo do-release-upgrade -d
sudo apt update
sudo apt upgradesCheck the version you are running:
lsb_release -aIf updater is not installed:
sudo apt install update-manager-coreTo upgrade the release:
sudo do-release-upgrade -dLive show openHAB logfile
tail -f /var/log/openhab/openhab.logBackup openHAB. The backup file will be created at /var/lib/openhab/backups.
openhab-cli backupRestore openHAB backup file
sudo systemctl stop openhab
openhab-cli restore /var/lib/openhab/backups/openhab-backup-23_03_26-19_38_25.zip
sudo systemctl start openhabInstall bindings manually to the following directory. They will be automatically enabled.
cd /usr/share/openhab/addonsTo redirect all traffic from non secure to secure sockets layer (SSL), add the following lines to the virtual host config file in /etc/nginx/sites-available/my_vhost_config_file.
server {
listen 80 default_server;
server_name _;
return 301 https://$host$request_uri;
}Listen 80: This instructs the system to catch all HTTP traffic on Port 80
Server_name _; : This will match any hostname
Return 301: This tells the browser (and search engines) that this is a permanent redirect
https://$host$request_uri: This is a short code to specify the HTTPS version of whatever the user has typed
scp username1@hostname1:/path/to/file username2@hostname2:/path/to/other/filescp /path/to/local/file username@hostname:/path/to/remote/filescp username@hostname:/path/to/remote/file /path/to/local/file