Ubuntu tutorial update

Hello,

I wanted to install playground on Ubuntu server 18.04, following steps from your 16.04 tutorial and it failed right at first step.

Then I switched to Ubuntu 16.04 server and followed the tutorial again and install step 18 ends with error " Buffer.alloc is not a function " and i needed to do this steps:

sudo npm cache clean -f
sudo npm install -g n
sudo n stable

I dont know if its the right solution, just googled it and it works.

Could you update the tutorial for Ubuntu 16.04 install or better solution - could you make tutorial for 18.04 server ?

thank you
Tomas

In this tutorial https://www.bigclown.com/doc/tutorials/custom-setup-on-ubuntu/ ?

Yes, in that tutorial

OK I made it work on ubuntu 18.04 server

If someone is interested, here are the steps i did:

  • I installed VM on QNAP NAS from this iso: ubuntu-18.04.1-live-server-amd64.iso
  • since this installation have only basic repos i had to add this to source list:
Ubuntu Main Repos

deb http://cz.archive.ubuntu.com/ubuntu/ bionic main restricted universe multiverse
deb-src http://cz.archive.ubuntu.com/ubuntu/ bionic main restricted universe multiverse

Ubuntu Update Repos

deb http://cz.archive.ubuntu.com/ubuntu/ bionic-security main restricted universe multiverse
deb http://cz.archive.ubuntu.com/ubuntu/ bionic-updates main restricted universe multiverse

Installation


sudo apt install mosquitto mosquitto-clients

sudo apt install nodejs

sudo apt install npm

sudo npm install -g --unsafe-perm node-red

cd ~/.node-red/

npm i node-red-dashboard

sudo npm install -g pm2

pm2 start which node-red

pm2 save

pm2 startup systemd

copy/paste the output of the previous command to command line

output example: sudo env PATH=$PATH:/usr/bin /usr/local/lib/node_modules/pm2/bin/pm2 startup systemd -u spravce --hp /home/user

sudo apt install -y python3-pip

sudo pip3 install --upgrade --no-cache-dir bcf

sudo pip3 install --upgrade --no-cache-dir bcg

sudo usermod $USER -a -G dialout

bcf devices

bcf update

sudo bcf flash --device /dev/ttyUSB0 bigclownlabs/bcf-gateway-usb-dongle:latest

change the "/dev/ttyUSB0 " to be equal to output of “bcf devices” if it´s different

pm2 start which python3 --name "bcg-ud" – which bcg --device /dev/ttyUSB0

change the "/dev/ttyUSB0 " to be equal to output of “bcf devices” if it´s different

1 Like