I haven't tested on Linux, but theoretically it shouldn't be a problem. The batch files for installing the required packages and for running aiserver.py won't work on Linux, but you can still run the pip install commands and start the program manually from console. I'll set up a Ubuntu VM at some point and put together some shell scripts to do what the .bat files are doing.
The only other hurdle would be getting CUDA installed if you want GPU generation. The CUDA Toolkit has a Linux installer, and PyTorch has a Linux selection for their GPU-enabled package.
Are you sure you're using this?
https://play.google.com/store/apps/details?id=com.infinitestory&hl=ru&gl=US