This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
getting_started:18_install_ubuntu_node_js [2019/12/19 15:47] – admin | getting_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' | + | |
- | * Node.js uses an event-driven, | + | * Node.js uses an event-driven, |
- | * 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 | + | * Install the latest |
<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 | ||
</ | </ | ||
* 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. | ||
+ | |||
+ | </ | ||
<code bash> | <code bash> | ||
- | sudo npm -g install tail connect mysql forever | + | sudo npm -g install tail |
+ | sudo npm -g install | ||
+ | sudo npm -g install connect | ||
+ | sudo npm -g install mysql | ||
+ | sudo npm -g install forever | ||
</ | </ | ||
Line 60: | Line 70: | ||
* If you are deploying CoovaChilli Captive Portals or Mikrotik Hotspots you must try the [[ Getting Started: | * If you are deploying CoovaChilli Captive Portals or Mikrotik Hotspots you must try the [[ Getting Started: | ||
* 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: | + | * [[getting_started: |