2020-04-19 14:39:34 +00:00
|
|
|
|
# Lainsafe
|
|
|
|
|
### simple file upload.
|
|
|
|
|
|
|
|
|
|
### Installation:
|
|
|
|
|
|
|
|
|
|
1. Configure your webserver to run CGI
|
|
|
|
|
2. If running nginx, set ```client_max_body_size``` to the max size of
|
|
|
|
|
the file
|
|
|
|
|
2. There you go.
|
|
|
|
|
|
|
|
|
|
## lainsafecli
|
|
|
|
|
|
2020-06-29 20:47:44 +00:00
|
|
|
|
### Installation
|
|
|
|
|
|
|
|
|
|
#### Debian
|
|
|
|
|
Lainsafe has official packages for Debian, they shold work for any
|
|
|
|
|
dpkg-based distro, such as Ubuntu and so on
|
|
|
|
|
|
|
|
|
|
You can download a possible outdated deb package
|
|
|
|
|
[here](http://repo.qorg11.net/debian/pool/main/l/lainsafecli/lainsafecli_0.3_all.deb)
|
|
|
|
|
|
|
|
|
|
If you want updates for your package, you have to add
|
|
|
|
|
`repo.qorg11.net` to your sources.list:
|
|
|
|
|
|
|
|
|
|
~~~
|
2020-06-29 20:48:30 +00:00
|
|
|
|
echo "deb http://repo.qorg11.net/debian stable main" >> /etc/apt/sources.list
|
2020-06-29 20:47:44 +00:00
|
|
|
|
wget http://repo.qorg11.net/repo.key -q -O - | sudo apt-key add
|
|
|
|
|
sudo apt updates
|
|
|
|
|
sudo apt install lainsafecli
|
|
|
|
|
~~~
|
|
|
|
|
#### Arch
|
2020-07-11 03:33:41 +00:00
|
|
|
|
[AUR - `lainsafecli`](https://aur.archlinux.org/packages/lainsafecli/)
|
2020-04-19 14:39:34 +00:00
|
|
|
|
|
|
|
|
|
### lainsafecli configuration
|
|
|
|
|
|
|
|
|
|
edit the file with your favorite text editor and change these
|
|
|
|
|
variables:
|
|
|
|
|
|
|
|
|
|
```$DEFAULT_SERVER``` This is the server where lainsafecli will try to
|
|
|
|
|
upload the files.
|
|
|
|
|
|
|
|
|
|
```$DISPLAY_ASCII``` By default 1, change to 0 if you don't want the
|
|
|
|
|
Lain ascii art to appear when you upload a file.
|
|
|
|
|
|
|
|
|
|
### Command line arguments
|
|
|
|
|
|
|
|
|
|
```--server``` If given, it will be used instead of $DEFAULT_SERVER
|
|
|
|
|
|
|
|
|
|
```--help``` Displays a simple help message and exits.
|
|
|
|
|
|
2020-06-06 23:59:20 +00:00
|
|
|
|
```--file``` the file you want to upload (useless in newer versions)
|
2020-04-19 14:39:34 +00:00
|
|
|
|
|
|
|
|
|
### Example
|
|
|
|
|
|
|
|
|
|
~~~
|
2020-06-06 23:59:20 +00:00
|
|
|
|
$ lainsafecli --server https://lainsafe.delegao.moe sicp.png
|
2020-04-19 14:39:34 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
_..-- ----- --.._
|
|
|
|
|
,-'' `-.
|
|
|
|
|
, \
|
|
|
|
|
/ \
|
|
|
|
|
/ ` . \
|
|
|
|
|
' / || ;
|
|
|
|
|
; ^/| |/ | |
|
|
|
|
|
| /v /\`-'v√\'-|\ ,
|
|
|
|
|
| /v` ,--- ---- .^.| ;
|
|
|
|
|
: | /´@@`, ,@@`\ | ;
|
|
|
|
|
' | '. @@ / \@@ / |\ |;
|
|
|
|
|
| ^| ----- --- | \/||
|
|
|
|
|
` |` | /\ /
|
|
|
|
|
\ \ |/ |,
|
|
|
|
|
' ; \ /| |
|
|
|
|
|
` \ -- / | |
|
|
|
|
|
` `. .-' | /
|
|
|
|
|
v,- `;._ _.; | |
|
|
|
|
|
`'`\ |-_ -^'^'| |
|
|
|
|
|
------ |/
|
|
|
|
|
|
|
|
|
|
https://lainsafe.delegao.moe/files/EWwEnBHk.png
|
|
|
|
|
|
|
|
|
|
~~~
|
2020-07-05 00:16:34 +00:00
|
|
|
|
|
|
|
|
|
# Donate
|
|
|
|
|
|
|
|
|
|
Thanks!
|
|
|
|
|
|
|
|
|
|
[Liberapay](https://liberapay.com/qorg11)
|
|
|
|
|
|
2020-07-11 20:30:11 +00:00
|
|
|
|
Bitcoin: bc1qghl6f27dpgktynpvkrxte2s3gm9pcv8vlwuzum
|