Skip to content
This repository was archived by the owner on Jan 27, 2025. It is now read-only.

Latest commit

 

History

History
108 lines (62 loc) · 2.14 KB

File metadata and controls

108 lines (62 loc) · 2.14 KB

INSTALL

Install prerequisites

Please note that nodejs installation is automated with the setup.sh script (see below).

Launch setup

On Windows

Get the source code

git clone https://github.com/e-dot/bcdlibre.git

Start setup script

CD /D bcdlibre
CMD /C setup\setup.bat

On Linux (Debian 8):

Install prerequisites (as root)

apt-get install sudo
apt-get install git
apt-get install mysql-server

Create dedicated user (via sudo)

sudo adduser bibliopuce
sudo adduser bibliopuce sudo
su - bibliopuce

Get the source code

git clone https://github.com/e-dot/bcdlibre.git

Start setup script

cd bcdlibre
bash setup/setup.sh

On Linux (Ubuntu Desktop 16.04.2):

Install prerequisites (as any user member of the sudo group)

sudo apt-get install git
sudo apt-get install mysql-server

Login as root - create dedicated user

sudo adduser bibliopuce
sudo adduser bibliopuce sudo
su - bibliopuce

Get the source code

git clone https://github.com/e-dot/bcdlibre.git

Start setup script

cd bcdlibre
bash setup/setup.sh

On Raspberry Pi (Debian 8 Jessie):

Install prerequisites (as login 'pi')

sudo apt-get install git
sudo apt-get install mysql-server

Get the source code (as login 'pi')

git clone https://github.com/e-dot/bcdlibre.git

Start setup script (as login 'pi')

cd bcdlibre
sudo bash setup/setup.sh

Start automatically (Debian/Ubuntu)

On Linux

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 &

Start at boot on Raspberry Pi

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