mirror of https://github.com/CIRCL/lookyloo
All the pyqt4 deps are optional.
parent
85b8fd2c0a
commit
48071c332a
37
README.md
37
README.md
|
@ -26,38 +26,7 @@ This code is very heavily inspired by https://github.com/etetoolkit/webplugin an
|
||||||
The core dependency is ETE Toolkit, which you can install following the guide
|
The core dependency is ETE Toolkit, which you can install following the guide
|
||||||
on the official website: http://etetoolkit.org/download/
|
on the official website: http://etetoolkit.org/download/
|
||||||
|
|
||||||
We install python-qt4 and python3-pyqt4 systemwide because they are painful to install manually:
|
Note: all the PyQt4 dependencies are optional.
|
||||||
|
|
||||||
```bash
|
|
||||||
sudo apt-get install python-qt4 python3-pyqt4
|
|
||||||
```
|
|
||||||
|
|
||||||
## Server install (Ubuntu 16.04):
|
|
||||||
|
|
||||||
You need to install a basic X server:
|
|
||||||
|
|
||||||
```bash
|
|
||||||
apt-get install xserver-xorg xdm xfonts-base xfonts-100dpi xfonts-75dpi
|
|
||||||
```
|
|
||||||
|
|
||||||
And configure xdm in `/etc/X11/xdm/xdm-config`:
|
|
||||||
|
|
||||||
Replace:
|
|
||||||
|
|
||||||
```
|
|
||||||
DisplayManager*authorize: true
|
|
||||||
```
|
|
||||||
with
|
|
||||||
|
|
||||||
```
|
|
||||||
DisplayManager*authorize: false
|
|
||||||
```
|
|
||||||
|
|
||||||
And restart xdm:
|
|
||||||
|
|
||||||
```bash
|
|
||||||
service xdm restart
|
|
||||||
```
|
|
||||||
|
|
||||||
# Installation of scrapysplashwrapper
|
# Installation of scrapysplashwrapper
|
||||||
|
|
||||||
|
@ -73,17 +42,13 @@ sudo docker run -p 8050:8050 -p 5023:5023 scrapinghub/splash --disable-ui --disa
|
||||||
|
|
||||||
# Installation of the whole thing
|
# Installation of the whole thing
|
||||||
|
|
||||||
If you have `pew` installed you can enable the use of pyqt4 installed globally this way (instead of installing PyQT4 manually):
|
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
pew toggleglobalsitepackages # PyQt4 is not easily installable in a virtualenv
|
|
||||||
pip install -r requirements.txt
|
pip install -r requirements.txt
|
||||||
pip install -e .
|
pip install -e .
|
||||||
```
|
```
|
||||||
# Run the app locally
|
# Run the app locally
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
export DISPLAY=:0
|
|
||||||
export FLASK_APP=lookyloo
|
export FLASK_APP=lookyloo
|
||||||
flask run
|
flask run
|
||||||
```
|
```
|
||||||
|
|
|
@ -8,7 +8,6 @@ Group=www-data
|
||||||
WorkingDirectory=/home/<CHANGE_ME>/lookyloo
|
WorkingDirectory=/home/<CHANGE_ME>/lookyloo
|
||||||
Environment="PATH=/home/<CHANGE_ME>/<MY_VIRTUALENV_PATH>/bin"
|
Environment="PATH=/home/<CHANGE_ME>/<MY_VIRTUALENV_PATH>/bin"
|
||||||
ExecStart=/home/<CHANGE_ME>/<MY_VIRTUALENV_PATH>/bin/uwsgi --ini lookyloo.ini
|
ExecStart=/home/<CHANGE_ME>/<MY_VIRTUALENV_PATH>/bin/uwsgi --ini lookyloo.ini
|
||||||
Environment=DISPLAY=:0
|
|
||||||
Environment=FLASK_APP=lookyloo
|
Environment=FLASK_APP=lookyloo
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
|
|
Loading…
Reference in New Issue