-
Notifications
You must be signed in to change notification settings - Fork 0
/
README
58 lines (34 loc) · 899 Bytes
/
README
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
===
CANDICE
===
Packages needed (ubuntu/deb):
- udev?, udisks, dbus?
- python, python-django, python-twisted, python-twisted-web, python-dbus?
===
To flush all data:
./flush.sh
===
To run everything from a clean boot:
./start.sh
To stop:
./stop.sh
=====
Manual:
Set firewall rules:
sudo ./newset.sh
Run the post 80 transparent proxy / redirection service:
python redirect_server.py
Run the content server for serving cached HTTP:
python content_server.py
Run the main system to handle user requests:
sudo twistd --logfile=http_server.log --pidfile=http_server.pid -ny http_server.py
(sudo required for port 80 hosting)
===
To manually edit saved objects:
python manage.py shell
>>> from handle.models import Request
>>> r = Request.objects.all()
>>> r[0].whatever # first result in set
>>> r[0].save(using='host') # or 'courier'
>>> r[0].delete(using='host') # same deal
===