RADIUSdesk

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
getting_started:18_install_ubuntu_node_js [2019/12/19 15:47] admingetting_started:18_install_ubuntu_node_js [2019/12/23 12:25] (current) – [Next steps] admin
Line 1: Line 1:
 ====== Install Node.js on Ubuntu 18.04 ====== ====== Install Node.js on Ubuntu 18.04 ======
 ===== Introduction ===== ===== Introduction =====
- *  Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine. +  *  Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine. 
-*  Node.js uses an event-driven, non-blocking I/O model that makes it lightweight and efficient, perfect for data-intensive real-time applications that run across distributed devices. +  *  Node.js uses an event-driven, non-blocking I/O model that makes it lightweight and efficient, perfect for data-intensive real-time applications that run across distributed devices. 
-*  RADIUSdesk uses Node.js because of its support for Websocket. Websocket is a technology that is supported by the latest versions of all the major browsers which allow you to display data in real-time. +  *  RADIUSdesk uses Node.js because of its support for Websocket. Websocket is a technology that is supported by the latest versions of all the major browsers which allow you to display data in real-time. 
-*  We will make use of Socket.IO as a wrapper to Websocket which runs on Node.js to read FreeRADIUS log file and debug output of FreeRADIUS in real-time. +  *  We will make use of Socket.IO as a wrapper to Websocket which runs on Node.js to read FreeRADIUS log file and debug output of FreeRADIUS in real-time. 
-*  To Summarize: Node.js → Websocket → Soket.IO → Client.+  *  To Summarize: Node.js → Websocket → Soket.IO → Client.
  
 ===== Install Node.js and dependencies ===== ===== Install Node.js and dependencies =====
-  * Node.js and NPM (a package manager for Node).+  * Install the latest Node.js. This package will also include the npm package manager for Node.js.
  
 <code bash> <code bash>
 sudo apt-get update sudo apt-get update
-sudo apt-get install nodejs npm+sudo apt-get install nodejs 
 +sudo apt-get install npm
 </code> </code>
   * We need to install the following Node.js packages globally.   * We need to install the following Node.js packages globally.
 +<WRAP center round important 90%>
 +  * Note that we are using an older version of socket.io (0.9.x) instead of the latest 1.x.
 +  * Also note that there might be some warings during the install of these packages. Thats normal.
 +
 +</WRAP>
  
 <code bash> <code bash>
-sudo npm -g install tail connect mysql forever socket.io@0.9.x+sudo npm -g install tail 
 +sudo npm -g install socket.io@0.9.x 
 +sudo npm -g install connect 
 +sudo npm -g install mysql 
 +sudo npm -g install forever
 </code> </code>
  
Line 60: Line 70:
   * If you are deploying CoovaChilli Captive Portals or Mikrotik Hotspots you must try the [[ Getting Started:18_install_ubuntu_dynamic_login|Dynamic Login Pages ]](optional but recommended).   * If you are deploying CoovaChilli Captive Portals or Mikrotik Hotspots you must try the [[ Getting Started:18_install_ubuntu_dynamic_login|Dynamic Login Pages ]](optional but recommended).
   * If your server has two network cards and you want to install CoovaChilli on it as a captive portal; follow these instructions:   * If your server has two network cards and you want to install CoovaChilli on it as a captive portal; follow these instructions:
-     * [[getting_started:18_install_ubuntu_coova | Install CoovaChilli ]] (optional).+     * [[getting_started:18_install_ubuntu_coovachilli | Install CoovaChilli ]] (optional).