-
Notifications
You must be signed in to change notification settings - Fork 1
/
INSTALL
86 lines (51 loc) · 2.27 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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
### Local usage ###
1) Make sure that eiskaltdcpp-daemon is built with JSON-RPC support
(see -DJSONRPC_DAEMON=ON configuration option).
Then check that you launch daemon on correct network interface. For example:
$ eiskaltdcpp-daemon -L 192.168.0.132 -d
Or, if you want to use all available interfaces:
$ eiskaltdcpp-daemon -L 0.0.0.0 -d
But this is less secure.
2) Clone eiskaltdcpp-web into any directory. For example:
$ cd /home/user/
$ git clone https://github.com/eiskaltdcpp/eiskaltdcpp-web
3) Edit config.js file. For example:
$ cd /home/user/eiskaltdcpp-web/
$ nano config.js
Here your should set the IP address of remote computer where eiskaltdcpp-daemon
is launched. Related string will look like this:
"host" : "192.168.0.132",
4) Open index.html file in any modern web browser which you like. For example,
in Mozilla Firefox or Google Chrome.
### Remote usage ###
1) Make sure that eiskaltdcpp-daemon is built with JSON-RPC support
(see -DJSONRPC_DAEMON=ON configuration option).
Then check that you launch daemon on correct network interface. For example:
$ eiskaltdcpp-daemon -L 192.168.0.132 -d
Or, if you want to use all available interfaces:
$ eiskaltdcpp-daemon -L 0.0.0.0 -d
But this is less secure.
2) Clone eiskaltdcpp-web into any directory. For example:
$ git clone https://github.com/eiskaltdcpp/eiskaltdcpp-web
$ sudo mv eiskaltdcpp-web /usr/share/
3) Edit config.js file. For example:
$ cd /usr/share/eiskaltdcpp-web/
$ sudo nano config.js
Here your should set the IP address of remote computer where eiskaltdcpp-daemon
is launched. Related string will look like this:
"host" : "192.168.0.132",
4) Install any web-server which you like and configure it. For example:
$ sudo nano /etc/nginx/sites-enabled/default
Content may look like this:
server {
listen 80 default;
listen [::]:80 default;
location / {
root /usr/share/eiskaltdcpp-web;
index index.html;
}
}
$ sudo systemctl restart nginx.service
5) Now EiskaltDC++ Web UI should be reachable at: http://<ip>/
If you use the same remote computer for eiskaltdcpp-web and for
eiskaltdcpp-daemon, in our example above it will be: http://192.168.0.132/