Please note that nodejs installation is automated with the setup.sh script (see below).
git clone https://github.com/e-dot/bcdlibre.git
CD /D bcdlibre
CMD /C setup\setup.bat
apt-get install sudo
apt-get install git
apt-get install mysql-server
sudo adduser bibliopuce
sudo adduser bibliopuce sudo
su - bibliopuce
git clone https://github.com/e-dot/bcdlibre.git
cd bcdlibre
bash setup/setup.sh
sudo apt-get install git
sudo apt-get install mysql-server
sudo adduser bibliopuce
sudo adduser bibliopuce sudo
su - bibliopuce
git clone https://github.com/e-dot/bcdlibre.git
cd bcdlibre
bash setup/setup.sh
sudo apt-get install git
sudo apt-get install mysql-server
git clone https://github.com/e-dot/bcdlibre.git
cd bcdlibre
sudo bash setup/setup.sh
To start the software automatically when login in as bibliopuce, add the following to the .profile file:
...
# Autostart at login
cd $HOME/bcdlibre
npm start 1>$HOME/bcdlibre.log 2>$HOME/bcdlibre.err &
Type this command in a terminal, launched as "pi" user:
crontab -e
Pick an editor (nano is the easiest) and add these lines
# Start BCDLibre at boot, as user "pi"
@reboot /usr/bin/sudo -u pi -H /bin/bash /home/pi/bcdlibre/bin/start.sh