1. Check if there is a new version of raspberry pi OS available online. Use Balena Etcher to write raspberry pi OS image to SD card. Image is in setup and backup folders. Don't format the SD card after writing it, if you get asked. 2. When image has been written, copy the SSH and wpa_supplicant files here directly into the SD card /boot directory. Then the Pi will access wifi and be available via SSH on first boot, using Putty. Modem is set up with static IP address of 192.168.1.25 for the raspberry 3. Start Putty with 192.168.1.25 port 22 4. First login user:pi, password: raspberry, then change the password to something else using passwd in terminal 5. Do sudo apt-get update (update repository info) followed by sudo apt-get upgrade (actually install updated packages) to get everything up to date. 6. To allow remote desktop from windows, "sudo apt-get install xrdp". It will then be accessible via windows remote desktop connection 7. To install Samba file sharing "sudo apt-get install samba samba-common" 8. Note that your NAS is ntfs file type, not ext4 - don't make a mistake when adding it to /etc/fstab or nothing will work!!Add this line in /etc/fstab after creating a mount point /mnt/disc1 for the NAS disc /dev/sda2 /mnt/disc1 ntfs defaults,noatime 0 1 9. sudo reboot - the disc will then be mounted 10. Set up Samba shares. sudo nano /etc/samba/smb.conf Include ntlm auth=yes after workgroup=WORKGROUP Add shares at end of file (refer to the smb.conf in this folder) 11. Restart Samba service daemon sudo systemctl restart smbd 12. Create a samba password for the user pi: sudo smbpasswd -a pi 13. You should now be able to see the shared NAS disc and folders in Windows - check it. 14. Install java11 (4 packages) using the software installer 15. Install OpenHAB. Follow the guide for Debian (use stable repo): https://www.openhab.org/docs/installation/linux.html 16. Start and enable the openhab service (as per the page in 15) 17. Set up the Samba shares for openHAB (as per the page in 15, near the bottom, or just copy the smb.conf in this folder). Make sure the permissions for all shares are set to 0777 It should now work