0773.html 4.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. <!DOCTYPE html>
  2. <html lang="en" xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <title>Let's Install Pi.Alert - A Network Intrusion Monitor</title>
  5. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  6. <meta charset="UTF-8">
  7. <meta name="keywords" content="Browser Based,Home Lab,Home Lab Ideas,Install Guide,Self-Hosted,Web Based,Web Based Tools,Debian,FOSS,Free Open-Source Software,Free Software,Linux,Network,Open-Source,Open Source,PiAlert,Network Intrusion Monitor,Pi.Alert,Pi-Alert,Monitor Network For New Devices,How To,Tutorial,i12bretro">
  8. <meta name="author" content="i12bretro">
  9. <meta name="description" content="Let's Install Pi.Alert - A Network Intrusion Monitor">
  10. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  11. <meta name="revised" content="12/28/2022 09:20:10 AM" />
  12. <link rel="icon" type="image/x-icon" href="includes/favicon.ico">
  13. <script type="text/javascript" src="https://code.jquery.com/jquery-3.5.1.min.js"></script>
  14. <script type="text/javascript" src="includes/js/steps.js"></script>
  15. <link href="css/steps.css" rel="stylesheet" type="text/css" />
  16. </head>
  17. <body>
  18. <div id="gridContainer">
  19. <div class="topMargin"></div>
  20. <div id="listName" class="topMargin">
  21. <h1>Let's Install Pi.Alert - A Network Intrusion Monitor</h1>
  22. </div>
  23. <div></div>
  24. <div id="content">
  25. <h2>What is Pi.Alert?</h2>
  26. <blockquote><em>[Pi.Alert is a] WIFI / LAN intruder detector. Check the devices connected and alert you with unknown devices. It also warns of the disconnection of &quot;always connected&quot; devices. -<a href="https://github.com/pucherot/Pi.Alert/" target="_blank">https://github.com/pucherot/Pi.Alert/</a></em></blockquote>
  27. <h2>Installing Pi.Alert</h2>
  28. <ol>
  29. <li>Log into the Debian/Ubuntu device</li>
  30. <li>Launch a terminal and run the following commands
  31. <div class="codeBlock"># update software repositories<br />
  32. sudo apt update<br />
  33. # install available software updates<br />
  34. sudo apt upgrade -y<br />
  35. # install prerequisites<br />
  36. sudo apt install apt-utils arp-scan dnsutils net-tools python3 -y<br />
  37. # install web/db components<br />
  38. sudo apt install lighttpd php php-cgi php-fpm php-sqlite3 sqlite3 -y<br />
  39. # clean apt package cache<br />
  40. sudo apt clean<br />
  41. # download the latest release<br />
  42. wget -O ./pialert.tar https://github.com/pucherot/Pi.Alert/raw/main/tar/pialert_latest.tar<br />
  43. # create target directory<br />
  44. sudo mkdir /var/www/pialert<br />
  45. # create logs directory<br />
  46. sudo mkdir /var/log/pialert<br />
  47. # extract the downloaded tar to /var/www/pialert<br />
  48. sudo tar xf ./pialert.tar -C /var/www/pialert --strip-components=1<br />
  49. # set the owner of the pialert directory<br />
  50. sudo chown -R www-data:www-data /var/www/pialert<br />
  51. # update pialert path in conf file<br />
  52. sed -i &#39;s/\/home\/pi\/pialert/\/var\/www\/pialert/&#39; /var/www/pialert/config/pialert.conf<br />
  53. # update pialert path in cron jobs<br />
  54. sed -i &#39;s/python ~\/pialert\/back\/pialert.py/python3 \/var\/www\/pialert\/back\/pialert.py/g&#39; /var/www/pialert/install/pialert.cron<br />
  55. # update log paths for cron jobs<br />
  56. sed -i &#39;s/~\/pialert\/log\//\/var\/log\/pialert\//g&#39; /var/www/pialert/install/pialert.cron<br />
  57. # create cronjob schedule<br />
  58. (crontab -l 2&gt;/dev/null; cat /var/www/pialert/install/pialert.cron) | sudo crontab -<br />
  59. # create symbolic link to pialert<br />
  60. sudo ln -s /var/www/pialert/front/ /var/www/html/pialert<br />
  61. # copy pialert lighttpd conf<br />
  62. sudo cp /var/www/pialert/install/pialert_front.conf /etc/lighttpd/conf-available<br />
  63. # enable the pialert conf<br />
  64. sudo ln -s /etc/lighttpd/conf-available/pialert_front.conf /etc/lighttpd/conf-enabled/pialert_front.conf<br />
  65. # enable lighttpd fastcgi<br />
  66. sudo lighttpd-enable-mod fastcgi-php<br />
  67. # restart lighttpd service<br />
  68. sudo systemctl restart lighttpd</div>
  69. </li>
  70. <li>Open a web browser and navigate to http://DNSorIP/pialert</li>
  71. <li>Welcome to Pi.Alert<br />
  72. <span style="font-size:12px;"><em>NOTE: By default, Pi.Alert cron job runs every 5 minutes to check for new devices on the network</em></span></li>
  73. </ol> </div>
  74. </div>
  75. </body>
  76. </html>