first stable version
This commit is contained in:
80
README.md
80
README.md
@@ -2,3 +2,83 @@ fiche
|
||||
=====
|
||||
|
||||
Command line pastebin for sharing terminal output.
|
||||
|
||||
## Installation ##
|
||||
|
||||
1. Clone into repository:
|
||||
|
||||
```
|
||||
https://github.com/solusipse/fiche.git
|
||||
```
|
||||
|
||||
2. Build program:
|
||||
|
||||
```
|
||||
make
|
||||
```
|
||||
|
||||
3. Install:
|
||||
|
||||
```
|
||||
sudo make install
|
||||
```
|
||||
|
||||
## Client-side usage ##
|
||||
|
||||
Self explanatory live examples:
|
||||
|
||||
```
|
||||
ls -la | nc localhost 9999
|
||||
```
|
||||
|
||||
```
|
||||
cat file.txt | nc someserverrunningfiche.net 1234
|
||||
```
|
||||
|
||||
```
|
||||
echo just testing! | nc code.solusipse.net 9999
|
||||
```
|
||||
|
||||
If you already haven't set up your server on localhost, try third line! My server is providing terminal
|
||||
pastebin server powered by fiche - ```code.solusipse.net``` on port ```9999```.
|
||||
|
||||
- To upload text you need to have netcat installed (to check if netcat is installed, simply type ```nc``` in terminal).
|
||||
|
||||
## Server-side usage ##
|
||||
|
||||
```
|
||||
usage: fiche [-bdpqs].
|
||||
[-d host_domain.com] [-p port] [-s slug_size]
|
||||
[-o output_directory] [-b buffer_size] [-q queue_size]
|
||||
```
|
||||
|
||||
These are command line arguments. You don't have to provide any, but doing that is recommended. Without them, program
|
||||
will use these default settings:
|
||||
|
||||
```C
|
||||
domain = "http://localhost/";
|
||||
basedir= "~/code/";
|
||||
port = 9999;
|
||||
slug_size = 4;
|
||||
buffer_size = 8192;
|
||||
queue_size = 100;
|
||||
```
|
||||
|
||||
### Basic arguments ###
|
||||
|
||||
Most important is providing **basedir** and **domain**.
|
||||
|
||||
Basedir should be **absolute** path to directory where you would like to store text files.
|
||||
|
||||
Domain should be provided in such format ```domain.com```.
|
||||
|
||||
Slug size: ```yourserver.com/SLUG_OF_CHOSEN_LENGTH/```.
|
||||
|
||||
### Parameters for advanced users ###
|
||||
|
||||
- Buffer size
|
||||
- Queue size
|
||||
|
||||
### License ###
|
||||
|
||||
Fiche is MIT licensed.
|
||||
|
||||
Reference in New Issue
Block a user