forked from twonds/punjab
-
Notifications
You must be signed in to change notification settings - Fork 0
/
INSTALL.txt
97 lines (59 loc) · 1.71 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
=================
INSTALLING PUNJAB
=================
This document contains instructions on installing punjab
on your system.
-------------
Obtaining Punjab
-------------
Punjab can be located at the punjab web site,
http://code.stanziq.com/punjab
-------------
Dependencies
-------------
Please make sure all dependencies are met before submitting a troubleshooting question.
- Python 2.5>
- Twisted >= 2.5
- Twisted-names
- Twisted-words >= 0.6.0
- Twisted-web >= 0.5.0
Recommended
- Twisted-conch >= 0.5.0
NOTE :
You can download all of these packages with the Twisted Sumo package.
http://twistedmatrix.com/
- pyopenssl - if you want tls to work.
- A jabber server like jabberd2
-------------
Installing Punjab
-------------
1. Untar the current punjab-X.X.tar.gz file in a directory you would
like punjab to reside.
shell>tar vxzf punjab-X.X.tar.gz
2. Run setup to install
shell>python setup.py install
3. Configure punjab - using a tac file.
shell>edit punjab.tac
# punjab tac file
from twisted.web import server, resource, static
from twisted.application import service, internet
from punjab.httpb import Httpb, HttpbService
root = static.File("./html") # a static html directory
b = resource.IResource(HttpbService(1))
root.putChild('bosh', b) # url for BOSH
site = server.Site(root)
application = service.Application("punjab")
internet.TCPServer(5280, site).setServiceParent(application)
4. Run punjab
shell>twistd -y punjab.tac
5. HAVE FUN!!
--------------
Using a tac file.
---------------------------
Extending Punjab
---------------------------
You are able to extend punjab in many ways.
-------------
Support
-------------
http://code.stanziq.com/punjab