RFLink is a great, flexible and opensource RF gateway for 433Mhz devices. I use it with Domoticz. Every few months, a new firmware is released and they add a lot of new devices. This post describe how to update an RFLink gateway in a Linux environment.
Continue reading Update RFLink gateway on Linux (Ubuntu)
Category: IT
Secure http traffic with Let’s Encrypt on Debian
Configuring HTTPS on debian with Nginx and Let’s Encrypt is now really easy.
Let’s install required software :
sudo apt-get install certbot python-certbot-nginx
Then start the configuration process :
sudo certbot --nginx
Continue reading Secure http traffic with Let’s Encrypt on Debian
Zabbix server on Debian
1. Installation
apt-get install nginx postgresql php php-cli php-fpm php-pgsql php-bcmath php-mbstring php-gd php-xml zabbix-server-pgsql zabbix-frontend-php
2. Configuration
Zabbix agent : monitor Debian updates
Enable periodic updates
Edit the file:
vim /etc/apt/apt.conf.d/10periodic
And check that it as follow:
APT::Periodic::Update-Package-Lists "1"; APT::Periodic::Download-Upgradeable-Packages "0";
Zabbix agent configuration
IPsec XAuth VPN server on Raspberry Pi behind a NAT
The goal is to setup a secured tunnel to allow road warriors to securely access our home LAN with Android native client.
1. Software installation
Install strongswan IPsec server :
sudo apt-get install strongswan libcharon-extra-plugins libstrongswan-extra-plugins
Continue reading IPsec XAuth VPN server on Raspberry Pi behind a NAT
OpenVPN client on Debian
Now that the server is ready, let’s switch on the client side !
1. Software installation
Install OpenVPN :
sudo apt-get install openvpn
2. Configuration
Copy the client configuration sample in the working directory :
sudo cp /usr/share/doc/openvpn/examples/sample-config-files/client.conf /etc/openvpn/
OpenVPN server on Debian
1. Software installation
Install OpenVPN and Easy-RSA :
apt-get install openvpn easy-rsa
2. Configuration
Copy the sample configuration file :
gunzip -c /usr/share/doc/openvpn/examples/sample-config-files/server.conf.gz > /etc/openvpn/server.conf
Wifi light sensor using a Wemos D1 and Domoticz
Update a domoticz sensor using a Wemos D1 and a seed light sensor. Continue reading Wifi light sensor using a Wemos D1 and Domoticz
Pre-configure Wifi on a headless Raspberry Pi Zero
After setting up the OS on the memory card, you should have 2 partitions mounted from your memory card :
– Boot partition
– Root partition
~$ mount | grep mmc /dev/mmcblk0p1 on /media/ron/boot type vfat (rw,nosuid,nodev,relatime,uid=1000,gid=1000,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,showexec,utf8,flush,errors=remount-ro,uhelper=udisks2) /dev/mmcblk0p2 on /media/ron/8a9074c8-46fe-4807-8dc9-8ab1cb959010 type ext4 (rw,nosuid,nodev,relatime,data=ordered,uhelper=udisks2)
On the root partition, edit the wpa supplicant configuration file :
~$sudo vi /media/ron/8a9074c8-46fe-4807-8dc9-8ab1cb959010/etc/wpa_supplicant/wpa_supplicant.conf
And add the following lines at the end of the file :
network={ ssid="your-network-ssid-name" psk="your-network-password" }
Adjust the SSID and password, and you’re done.
Wemos D1 and Arduino IDE : Getting started
1. Preparation
Open the preferences in the Arduino IDE :
Continue reading Wemos D1 and Arduino IDE : Getting started