Skip to content

Commit

Permalink
add a draft of installation instructions for Ubuntu
Browse files Browse the repository at this point in the history
  • Loading branch information
lenguas authored and lagleki committed Aug 31, 2019
1 parent a88abdc commit f1b2059
Showing 1 changed file with 62 additions and 0 deletions.
62 changes: 62 additions & 0 deletions README-UBUNTU.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
# Install prequisites

```
sudo apt-get install wget xsltproc xmlto fonts-dejavu fonts-linuxlibertine unifont ruby-full zip unzip default-jdk`
gem install bundler
bundle install
#install epub lib:
sudo -v && wget -nv -O- https://download.calibre-ebook.com/linux-installer.sh | sudo sh /dev/stdin
#Xvfb and xvfb-run (fake X for calibre) or a running X server session -- MAYBE NOT ACTUALLY NEEDED
sudo apt-get install python-pip
sudo apt-get install xvfb xserver-xephyr vnc4server
sudo pip install pyvirtualdisplay
# optional
sudo apt-get install python-pil scrot
sudo pip install pyscreenshot
# install Prince for your platform from https://www.princexml.com/download/ e.g.:
wget https://www.princexml.com/download/prince_12.5-1_ubuntu18.04_amd64.deb
sudo apt install ./prince_12.5-1_ubuntu18.04_amd64.deb
```



There might be other libs needed. Please, open an issue once you find it.

# Compilation

To make all the versions do:

`./cll_build`

The final results will end up under the build/ directory, scattered
about in various places. If you would like the final outputs only
to be copied to another directory, you can use the -a option, so for example:

`./cll_build -a output/`

would put all the outputs in the output/ directory, whereas

`./cll_build -a ~/public_html/cll_build/`

would put them in your personal webspace.

Running a complete build takes quite a while (like probably at least
an hour). To do it for just one chapter for faster testing:

`./cll_build -t chapters/05.xml`

This does the whole book but is also much faster:

`./cll_build -t`

There are many possible sub-targets as well, which are specified
with -T, such as:

`./cll_build -t -T pdf`

You can get a complete list of targets via:

`./cll_build -h`

0 comments on commit f1b2059

Please sign in to comment.