@node Install @unnumbered Install @itemize @item Install paster itself: @example $ go get go.stargrave.org/paster/v2 @end example If you have got problems with your trust anchors, unwilling to authenticate @code{go.stargrave.org}'s TLS connection, then clone the repository from @url{git://git.stargrave.org/paster.git} and build it as ordinary Go package with @code{go build}. @item Add @code{paster} user and @code{pastes} directory, also accessible by HTTP service (@url{http://www.godlighty.stargrave.org/, @code{godlighty}} user in current example): @example # pw useradd paster -s /usr/sbin/nologin -w no -d /path/to/pastes # mkdir /path/to/pastes # cat > /path/to/pastes/index.html < paster Paste service. EOF # chown -R paster:godlighty pastes # chmod 2750 pastes # chmod 640 /path/to/pastes/index.html @end example @item Create @url{http://cr.yp.to/daemontools.html, daemontools} + @url{https://cr.yp.to/ucspi-tcp.html, UCSPI-TCP} service: @example # mkdir -p /var/service/.paster/log/main # cat > /var/service/.paster/run <&1 EOF # cat > /var/service/.paster/log/run < $tmpl <&1 @end example @item Be sure that your HTTP/whatever server uses proper @code{Content-Type} based on filename's extension (@code{text/plain} for @file{.txt}, @code{image/jxl} for @file{.jxl} and so on). @end itemize