-
Notifications
You must be signed in to change notification settings - Fork 8
/
INSTALL.txt
144 lines (85 loc) · 4.01 KB
/
INSTALL.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
Installing Objavi
=================
This document describes how to install the Objavi service on a host running
some version of the Linux operating system.
Installation of Objavi is split into three steps: installing prerequisites,
getting the Objavi source code and creating an Objavi site.
Prerequisites
-------------
Objavi depends on a number of external tools and libraries for it's operation.
Package names might vary depending on the operating system you are using.
- lxml
$ sudo apt-get install python-lxml
- psutils
$ sudo apt-get install psutils
- poppler-utils
$ sudo apt-get install poppler-utils
- pdftk
$ sudo apt-get install pdftk
- pdfedit
$ sudo apt-get install pdfedit
- pdflatex
$ sudo apt-get install texlive-latex-base
- Fontconfig
$ sudo apt-get install fontconfig
- Xvfb
$ sudo apt-get install xvfb
- Calibre, version 0.8.38 or newer
$ sudo apt-get install calibre
- Python-UNO bridge
$ sudo apt-get install python-uno
- wkhtmltopdf, version 0.11.0_rc1, from http://code.google.com/p/wkhtmltopdf/
$ wget http://wkhtmltopdf.googlecode.com/files/wkhtmltopdf-0.11.0_rc1-static-i386.tar.bz2
$ bunzip2 -c wkhtmltopdf-0.11.0_rc1-static-i386.tar.bz2 | tar xf -
$ mv wkhtmltopdf-i386 /usr/local/bin/wkhtmltopdf
- Apache2 with mod_wsgi
$ sudo apt-get install apache2
$ sudo apt-get install libapache2-mod-wsgi
- Redis server with Python bindings
$ sudo apt-get install redis-server
$ sudo apt-get install python-redis
- Django, version 1.3.x
$ sudo apt-get install python-django
- Celery with Django integration, version 3.0.x
$ sudo apt-get install python-dev
$ sudo pip install django-celery
- Supervisor
$ sudo apt-get install supervisor
To use the beta PDF renderer you need to have its binary somewhere in the PATH,
e.g. in /usr/local/bin. The source code for the Objavi Renderer is on github,
and can be obtained by cloning the github.com/bjandras/Renderer repository.
Binaries for x86 and AMD-64 architectures are available from sourceforge:
http://sourceforge.net/projects/booktype/files/Renderer
If you're getting a binary version make sure you download the package for your
architecture. An INSTALL.txt file is included, just follow the instructions.
To create ODF output, you also need a whole lot of OpenOffice or LibreOffice 3.
Getting Objavi
--------------
If you are reading this file chances are that you already have a copy of the
Objavi source code. If that is not the case the easiest way to obtain one is
to clone the official Objavi git repository:
git clone git://github.com/sourcefabric/Objavi.git
After unpacking the sources go to the Objavi's top-level directory and make
sure that all files in the "bin" directory are executable.
Objavi also requires some sources from its sister project Booktype. If you
don't already have Booktype sources on the system get them from the same place
you got Objavi from:
git clone git://github.com/sourcefabric/Booktype.git
Creating a Site
---------------
Once you have everything in place you are ready to create an Objavi site.
The 'create_site' script located in the 'scripts' directory of the Objavi
source tree does exactly that. The script requires a destination directory
where the site will be created.
The following command creates an Objavi installation inside
the /var/www/objavi_site directory:
./scripts/create_site /var/www/objavi_site
Make sure you have the write permissions for the destination directory.
If you don't have Booktype installed globally on the system (i.e. somewhere
in the PYTHONPATH) you will have to specify the path to Booktype's source
directory when running the script, e.g.:
./scripts/create_site --with-booktype=/usr/local/src/Booktype /var/www/objavi_site
If the site was successfully created the script will notify you that a file
named 'POST_INSTALL.txt' has been created there and that you should read it.
To complete the installation simply follow the instructions found in the
'POST_INSTALL.txt' file.