3.3. Install old Patcher on Linux
Main window of the Axoloti Patcher.
If you already have the original Axoloti Patcher installed, please skip to step 3. The runtime and Patcher you'd be installing in this guide is the exact same piece of software. Only the Firmware Dir needs to be changed and the ksoloti-objects need to be added to use the Patcher with the Ksoloti Core.
The install process for Ksoloti-legacy is identical to Axoloti with a few extra steps. To reduce size we split the application into two parts, the main Axoloti application, and a runtime which contains other required files. You must download and install both.
The official installer only supports Debian-based systems. If you want to run Axoloti on Fedora, Arch, or Gentoo (or possibly any other Linux) you have to build it from source. More information here.
If your Ksoloti Core is currently connected via USB, disconnect it now.
-
Install the runtime. Head to the Axoloti Releases page on Github and download the latest
axo_runtime_linux_(version).tgz
(at the time of writing: axo_runtime_linux_1.0.12.tgz).Extract the tgz file and move the folder
axoloti_runtime
to your home directory. The command should be something like:tar zxvf axo_runtime_linux_1.0.12.tgz -C ~
Check that you have the correct folder structure:
-
/home/(your username)/axoloti_runtime/platform_linux/
The Axoloti runtime is now installed. You will not have to move or edit it unless there is a big update, or you reinstall your OS, etc.
-
-
Install the Patcher. From the link in step 1, download the newest
axoloti-linux-(version).deb
(at the time of writing: axoloti-linux-1.0.12-2.deb).To install it run the following command:
sudo dpkg -i ./axoloti-linux-1.0.12-2.deb
Enter your password and wait for the install to finish. This should install the Patcher and create an entry for Axoloti in your start menu.
-
The Patcher is now installed. Now we need to link it to the custom ksoloti-legacy firmware. Head to the ksoloti-legacy repository on Github and download the source code as a zip file.
Extract the file
ksoloti-master.zip
(or ksoloti-legacy-master.zip, or similar) to a location of your choice. I usually place it in my~/Documents
folder. -
Open the start menu, type in Axoloti, and start it (this is the Patcher).
-
In the Patcher, open the File menu and click on Preferences... In the resulting window you will see an option called Firmware Dir.
Click on Select and navigate to the path where you extracted the Ksoloti zip from step 3. Then find the subfolder
/firmware
in theksoloti-master
folder (or similar) and click Open.When you're done the Firmware Dir field should read something like
[...]/ksoloti-master/firmware
. It is important that you point the directory to the[...]/firmware
subfolder. Click OK. -
Close the Patcher and restart it for the new firmware path to take effect.
-
Let's do a first test to make sure all the directories are correctly set. Open the Board menu and click Firmware > Compile. There should be a lot of text running across the console and it should end with the message Done compiling firmware. This is good news – everything is set up correctly so far!
-
We now need to tell the Patcher to fetch the custom ksoloti-objects repository for us. It contains the custom objects so that you can use all GPIO and functions of the Ksoloti Core.
Open the File menu and click on Preferences... again. In the resulting window you will see a table containing items like “factory”, “home” and “community”. Click on the “+” button to the right of it.
The “add library” window will appear. This is where we set up the remote address to the ksoloti-objects repository. Enter the following settings:
Type:
git
ID:
ksoloti-objects
Directory: Click Select and select a folder of your choice. Then, add the string
Remote Path:/ksoloti-objects/
to the path in the text field. This will let Git automatically create the folderksoloti-objects
in the folder you have selected. In this example I again chose my Documents folder then added/ksoloti-objects/
to the end of the path. Make sure there is a slash "/" at the end of the path.https://github.com/ksoloti/ksoloti-objects.git
Click Init and confirm. This should create the
ksoloti-objects
folder in your selected folder and fill it with the custom Ksoloti objects so the Patcher can find and use them. Click OK, and OK again to close the preferences. -
Connect the Ksoloti Core board. Linux should automatically detect it as a USB device. If you want to make sure, run
lsusb
in a terminal and confirm that there is a device called "Van Ooijen Technische Informatica Ksoloti Core" (or similar) in the list. If there isn't, head to theksoloti-master/platform_linux
subfolder, open a terminal there and runchmod 755 add_udev_rules.sh && ./add_udev_rules.sh
from inside it. Disconnect and reconnect your Ksoloti Core. -
In the Patcher, click on Connect. You might get a Firmware CRC mismatch warning. This is because the firmware has been updated since your Ksoloti board was shipped. Click Yes.
The Patcher should update the board automatically. Wait until it is done. When only the green LED lights up steady, you can click on Connect again.
Congratulations, you're done with the tedious setup process and finally ready to open some patches!
As of now, either Axoloti Core or Ksoloti Core can connect to the old Patcher at a time, not simultaneously. This is because the Patcher was not written with supporting multiple boards in mind. If you ever want to revert the Patcher to connect to Axoloti Core, all you have to do is set the Firmware Dir back to /opt/Axoloti/app/firmware
like in the first screenshot in step 5, then restart the Patcher.
We are working on a standalone Ksoloti version for the Patcher. This will simplify the installation and make it possible to run the original Patcher with your Axoloti Core, and the Ksoloti Patcher with the Ksoloti Core at the same time.