-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathINSTALL
66 lines (40 loc) · 1.53 KB
/
INSTALL
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
# How to install tpchatd
1a. Install instance
- base: Ubuntu 14.04 LTS amd64
# apt-get update && apt-get upgrade
# apt-get install git ircd-irc2 python-twisted
1b. Set DNS 'A' record for '*.chat' to instance IP
1c. Download source
$ git clone git://github.com/saulpw/tpchat.git
2a. Configure `/etc/ircd/ircd.conf`
A:saul.pw:Saul Pwanson <chat@saul.pw>:::chatsaulpw:
C:127.0.0.1:passwd:irc.chat.saul.pw:6669:127.0.0.1:
N:127.0.0.1:passwd:irc.chat.saul.pw::1:
P:127.0.0.1:::6669::
I:*@127.0.0.1::::1::
2b. Restart ircd
# service ircd-irc2 restart
2c. Make sure 'telnet blah.chat.saul.pw 6669' does not connect from outside the instance.
3a. Configure `tpchat/tpconfig.py`
ircd_passwd = "passwd"
ircd_servername = "irc.chat.saul.pw"
real_ircd_server = "localhost"
real_ircd_port = 6669
ircd_sid = "100C"
tpchat_port = 80
htdocs_path = "/home/saul/tpchat"
log_path = "/home/saul/tplogs"
3b. Add `/etc/init/tpchat.conf'
description "minimalist irc-web gateway"
author "Saul Pwanson"
start on runlevel [2345]
script
cd /home/saul/tpchat
echo "[`date`] Starting server" >> /var/log/tpchat.log
exec >> /var/log/tpchat.log 2>&1
exec ./tpchat.py
end script
3c. [optional] create ssl.key and ssl.crt in tpchat working directory
3d. Start tpchat service
# mkdir /home/saul/tplogs
# service tpchat start