-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathINSTALL
60 lines (47 loc) · 2.17 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
DEPENDENCY BUILD CONFIGURATION HOMEPAGE
---------------------------------------------------------------------------------------
LuaJIT https://luajit.org/
SQLite https://sqlite.org/
Argon2 https://github.com/P-H-C/phc-winner-argon2
OpenSSL https://www.openssl.org/
FFmpeg mp3 opus vorbis theora https://ffmpeg.org/
vpx x264 x265
ImageMagick jpeg png webp svg zlib https://imagemagick.org/
One of the following dependencies must be installed to provide the Courier font
which is required for captcha generation.
DEPENDENCY HOMEPAGE
---------------------------------------------------
corefonts http://corefonts.sourceforge.net/
ghostscript https://ghostscript.com/
Note that Picochan uses the functions os.execute() and io.popen(), which make
use of /bin/sh to execute commands. It is recommended to use dash or ksh as the
default system shell.
Create the database:
$ sqlite3 picochan.db <picochan.sql
Create the media directory:
$ mkdir Media Media/icon Media/thumb
Configure your web server. A barebones/sample nginx configuration is included
below. Note that nginx does not natively support CGI and thus requires a
wrapper program in order to call CGI scripts. fcgiwrap is recommended for this
purpose.
http {
server {
listen 80 default_server;
server_name picochanwvqfa2xsrfzlul4x4aqtog2eljll5qnj5iagpbhx2vmfqnid.onion;
root /srv/picochan;
location /Media {
}
location /Static {
}
location / {
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root/pico.cgi;
fastcgi_param PATH_INFO $uri;
fastcgi_pass unix:/run/fcgiwrap/fcgiwrap.sock;
}
}
}
Point your web browser at the picochan installation. Log in as an admin using
the username 'setup' and the password 'password'. Use this account to create a
new administrator account using your username and a different password. Then,
delete the setup account. Picochan is now ready to use.