-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathINSTALL
62 lines (37 loc) · 1.61 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
Source download:
To compile snowbox yourself you need a Go compiler. It has been tested
with the official release but it should also work with the gcc go
compiler.
The reference implementation is available at: http://golang.org/doc/install
It is also included in Debian Wheezy. If you can type "go" on the command
line and it produces something other than "command not found" you're good
to go.
To install:
$ make
$ sudo make install
This will install the binary in /usr/local/sbin, the config in /etc/snowbox
and a simple init script in /etc/init.d.
If you're on Debian you can use the provided init script init.d/debian for
a more "debianized" version. To add snowbox to the startup on Debian use
$ update-rc.d snowbox defaults.
After that you should edit /etc/snowbox/config to suit your needs and add
the users to /etc/snowbox/user.auth. The configuration is pretty much self
explanatory. See the manpage for more details about what can be done.
Binary distribution:
Use
$ sudo make install
These packages are the same as the source version with snowbox precompiled.
You can recompile them yourself with 'make'.
SSL:
You can create a self-signed certificate to use with snowbox with:
$ make ssl-cert
This will create a certificate valid for one year with the common name
'localhost'. You need OpenSSL installed. The command line for creating
certificates:
openssl req -new -x509 -nodes -out snowbox.cert -keyout snowbox.key \
-days 365 -subj '/CN=localhost'
Change 'CN=localhost' accordingly.
Uninstalling:
$ make uninstall
This will uninstall the binary, init script and manpage. To remove the config
$ make uninstall-conf