How to Install FHEM on Kali Linux

FHEM is an open-source platform for home automation. In this tutorial, we will walk you through the steps to install FHEM on Kali Linux.

Prerequisites

Steps to Install FHEM on Kali Linux

Step One: Install Required Dependencies

  1. Open the Terminal on Kali Linux
  2. Run the command sudo apt-get update to update the repository
  3. Run the command sudo apt-get install libdevice-serialport-perl libio-socket-ssl-perl libwww-perl libjson-perl libhtml-parser-perl libcgi-pm-perl librrds-perl libdbd-mysql-perl libtext-csv-perl
  4. After installation is complete, run the command sudo apt-get install libnet-telnet-perl
  5. Exit the Terminal

Step Two: Download and Install FHEM

  1. Open a web browser and go to https://fhem.de/fhem.html
  2. Scroll down and click on the “Download FHEM” button
  3. Navigate to the "Downloads" folder on your Kali Linux installation
  4. Right-click the downloaded FHEM file and select “Extract here”
  5. Open the Terminal
  6. Navigate to the “FHEM” directory with the command cd Downloads/fhem-x.xx/
  7. Run the command sudo ./fhem.pl fhem.cfg
  8. This will start the FHEM installation process and may prompt you for additional dependencies.
  9. Follow the on-screen instructions to complete the FHEM installation process.

Step Three: Launch FHEM

  1. After the installation is completed, open a web browser.
  2. Type http://localhost:8083/fhem in the web browser's address bar and press enter.
  3. This will launch the FHEM dashboard.
  4. Login with the default username “pi” and the password “raspberry".

Congratulations! You have successfully installed and launched FHEM on Kali Linux. You can now use FHEM to control your home automation devices.

If you want to self-host in an easy, hands free way, need an external IP address, or simply want your data in your own hands, give IPv6.rs a try!

Alternatively, for the best virtual desktop, try Shells!