W

websockets

skipped 8e9bcc87 Update README.md · by Arnaud Blanchard

Install

OSX

brew install libwebsockets

Install from source to have a more recent version.

Ubuntu/Raspbian

sudo apt install libwebsockets-dev

Other

Possibilities for graphs

Configure Wifi Access point

This is usefull to connect to the raspberry eventhough it does not have network.

Setting up a Raspberry Pi as an access point in a standalone network

The last part ( Add routing and masquerade ) is only to share internet connection

Install libwebsockets > 3

On raspbian you need to install version 3 from its sources, see below. On ubuntu use only 'sudo apt install libwebsockets-dev'.

sudo apt install git cmake
git clone https://github.com/warmcat/libwebsockets.git
cd libwebsockets
cmake .
sudo make -j4 install
ldconfig

Install light version of blaar

If blaar is only used on a server without graphic interface, it can be better to install a minimal version of blaar.

sudo apt-get install git g++ cmake ninja-build
git clone https://promethe.u-cergy.fr/blaar/blaar.git
cd blaar

#Clone the libs
git submodule add https://promethe.u-cergy.fr/blibs/blc_core.git blibs/blc_core
git submodule add https://promethe.u-cergy.fr/blibs/blc_channel.git blibs/blc_channel
git submodule add https://promethe.u-cergy.fr/blibs/blc_network.git blibs/blc_network
git submodule add https://promethe.u-cergy.fr/blibs/blc_process.git blibs/blc_process
git submodule add https://promethe.u-cergy.fr/blibs/blc_program.git blibs/blc_program

#Clone minimal programs
git submodule add https://promethe.u-cergy.fr/blaar/blc_channels.git
git submodule add https://promethe.u-cergy.fr/blaar/websockets.git
./install.sh all         #install all submodule
developer_tools/update_bash_profile.sh ~/.bashrc       #Update your bash profile
source ~/.bashrc         #Refresh your terminal