Update: Since doing this work, i have come across this page on reddit, i have not tested it, linking for anyone who might need it Reddit
I recently purchased a HP Chromebase 21. When going through the large amounts of writing (fiction, scripts, journals, etc) I found that there was a script file from an application called Trelby, this is a free and open source application used to format screenplays.
There is not an android version of this application and as part of my writing (I write a lot of fiction) and I use several applications, including Trelby. I was not able to install Trebly with the .deb package provided, as there were unresolved dependency issues, so i built it from scratch.
I have a lot of experience building software from source, so I was not slowed much by the issues I ran into and this guide may be missing some details as I am writing it post installation. If you run into issues please don't hesitate to contact me
My Chromebase came with Debian (11) bullseye, so your steps may vary if your Linux VM is of a different variety.
Issues
You cannot install from the .deb provided as of version 2.2. You run into dependency issues having to do with python that cannot be resolved with the given version of debian.
Dependencies
- Install git sudo apt install git
- Install build essentials for compiling applications sudo apt install build-essential
- Install ruby sudo apt install ruby-full
- Install cython pip install cython
Source Repositories
- Trelby Source git clone https://github.com/trelby/trelby
- lxml Source git clone https://github.com/lxml/lxml
- setuptools-36.4.0 Sourcewget https://files.pythonhosted.org/packages/28/4f/889339f38da415e49cff15b21ab27becbf4c017c79fbfdeca663f5b33b36/setuptools-36.4.0.zip Note: You must use this version, it is the latest version compatibale with python2.7, which is what Debian bullseye ships with.
Instructions
- sudo apt update
- sudo apt upgrade
- I created a new directory called external_development in my home directory to be the working directory for working with the source i needed to download and install.
- mkdir external_development
- cd external_development
- Set up development environment
- Clone trelby source
- Clone lxml source
- Download setuptools-36.4.0 source using above command, extract
- cd setuptools-36.4.0
- sudo python setup.py install
- cd ..; cd lxml
- sudo python setup.py install
- You may run into issues with python3 and python2.7 here. Please contact me if you have problems and i will walk you through what i did, i don't remember the exact steps and would need to go through the process again, once someone has an issue, i will update this page to include revised information.
- cd ..; cd trelby;
- sudo python setup.py install
At this point, you should have a working trelby installation and will be able to execute from /opt/trelby/bin/trebly