This is a supplement to the page Bol Processor ‘BP3’ and its PHP interface.
This installation has been checked with Linux Lite 7.0 (64-bit) running on an HP Intel Core i5-6200U.
Install XAMPP
The installation of BP3 should take place after the installation of the local Apache server XAMPP. Follow instructions here: https://www.apachefriends.org/
XAMPP creates a /opt/lampp/htdocs/ directory that will contain "bolprocessor". The "bolprocessor" folder will contain (language C) source files for the "bp3" console, the "MakeFile" to compile them, and all the data files. It will also contain a "php" folder filled with PHP pages and some related files for running the interface.
If you wish to open XAMPP automatically at startup, read this page.
(This can be done later.)
Download Bol Processor files
You need these files:
• bolprocessor-graphics-for-BP3.zip contains source files for creating the BP3 console;
• php-frontend-master.zip contains the PHP interface;
• bp3-ctests-main.zip contains a set of examples called "ctests".
These zip files are updated regularly. Major updates are announced on the BP developers list and uploaded to their GIT repositories. Make sure that they can be found in your Downloads folder: /home/linuxlite/Downloads
Install the Bol Processor
Safely do the installation using the shell scripts "linux-scripts" downloaded here. Current version: 4 September 2024, size 13248 bytes.
Unpack and copy these scripts to the /home folder:
cd /home/linuxlite/Downloads/
unzip linux-scripts.zip -x "__MACOSX/*"
sudo chmod -R 777 linux-scripts
cd linux-scripts
sudo cp -a . /home/
cd /home/
sudo chmod +x *.sh
Scripts "modify_xampp.sh", "prepare.sh", "unpack_bp3.sh", "install_bp3.sh" and "get_ready_bp3.sh" have been copied to the /home folder.
Three more scripts: "update_console.sh", "update_interface.sh" and "update_data.sh" have been copied to the /home folder. They will be used later.
The installation procedure is similar to that for MacOS and Windows, but includes a few actions specific to Linux.
Run the scripts in the following order.
👉 You will be asked for your password the first time, as they need to be run in "admin" mode (the "sudo" command).
- sudo /home/modify_xampp.sh will adjust XAMPP settings.
- sudo /home/prepare.sh will install required resources on your machine, and create two virtual MIDI ports if they are not yet existing.
- sudo /home/unpack_bp3.sh will unpack the zip files.
- sudo /home/install_bp3.sh will create the /opt/lampp/htdocs/bolprocessor/ directory and fill it with the contents of BP3 packages. Files/folders already existing will simply be updated.
- sudo /home/get_ready_bp3.sh will set up permissions and owners for using the console. The owner is "daemon" (the same one used by XAMPP) and permissions are "777".
👉 The content of "bolprocessor" is strictly private. No risk setting up permissions!
Avoid running the same script more than once, although this should not create duplicates or unwanted effects.
Once the Bol Processor BP3 is installed and running, you should delete the "zip" files in the Downloads folder. This will allow downloading new versions.
Compile the 'bp3' console
Start XAMPP and point your browser at localhost/bolprocessor/php/. This will display the home page of the Bol Processor.
If you see this frame in the image at the top right of the page, your life will be easy! All you have to do is click on the link to compile the console, which will take less than a minute.
f you don't see the link to compile, and instead a mention that 'gcc' is not responsive, you are in great trouble! This suggests a bug in the interface (contact us) or in your installation.
Install Csound
Csound is not required to run the Bol Processor, as you can work with MIDI files and real-time MIDI. However, it will give you access to a different approach to sound synthesis, and it will handle microtonality.
If you wish to install Csound, simply type the following commands:
sudo apt update
sudo apt install csound
Then verify the installation and check the path to the console:
csound --version
which csound
By default, the Bol Processor sets the path to "usr/bin", which seems to be standard on Linux. It is given by the "which csound" command.
The BP3 interface will be able to figure out the location of "csound" and fix its path accordingly. If it does not respond, you will be asked to change the path and perhaps the name of the Csound console (see image).
Contact us if this happens!
👉 Currently, the Csound orchestra file "0-default.orc" does not work on Linux. We're trying to fix this… In the settings of your projects, enter "BP2test.orc" as replacement, or select other files such as "new-vina.orc".
😀 Enjoy Bol Processor BP3 on Linux!
Updating to new versions
If you update the "bp3" console, you should also update the "php" interface, as the two are linked.
- (1) Update the "bp3" console:
Download https://github.com/bolprocessor/bolprocessor/archive/graphics-for-BP3.zip
Run the script: sudo /home/update_console.sh
This script deletes the 'bp3' console to force a rebuild of the new version. - (2) Update the "php" interface:
Download https://github.com/bolprocessor/php-frontend/archive/master.zip
Run the script: sudo /home/update_interface.sh - (3) Update the test data: this will only update the contents of the "ctests" folder. If you have created folders and files for your personal data, these will not be affected. However, if you have modified a sample file without changing its name, it will be reverted to its distribution version.
Download https://github.com/bolprocessor/bp3-ctests/archive/main.zip
Run the script: sudo /home/update_data.sh
👉 Please send your suggestions or modified files to our contact.
Uninstall the Bol Processor
Uninstalling the Bol Processor and all the data downloaded or created for its use, is very simple: delete the "htdocs/bolprocessor" folder.
Bernard Bel
August 2024