Skip to content

FILE SHARING

Baisalbek Daniiarov edited this page Oct 12, 2019 · 2 revisions

logo

FILE SHARING

Privatium https://t.me/xbaysal11 Privatium Github Privatium


1. Complete droplet section.

Droplet Creating Documentation

2. Install Nginx.

sudo apt install nginx

3. Create a folder in /var/www/...

cd /var/www
mkdir yourDomain.name   //xbaysal11.com
cd yourDomain.name
mkdir html
cd html

4. Configure NGINX.

cd /etc/nginx/sites-enabled
vim yourDomain.name
// Paste it and change yourDomain.name
server {
        listen 80;
        listen [::]:80;

    root /var/www/yourDomain.name/html;
    index index.html index.htm index.nginx-debian.html;

    server_name yourDomain.name www.yourDomain.name;

    location / {
            try_files $uri $uri/ =404;
    }
}
sudo reboot

5. Configure local machine.

Steps:

  • 1.Install necessary software.
sudo apt install xclip
  • 2.Take a script.
  • 3.Change two variable in script.
vim fileshare.sh
pubIP="35.245.175.101"
domain="xbaysal11.ml"
  • 4.Give to script execute rights and run.
chmod +x fileshare.sh
./fileshare.sh

6. Usage.

  • 1.Start script
./fileshare.sh ~/<path to your file>/<file name>
  • 2.We will see that we had text in the buffer.
  • 3.We can paste this link into the browser or share and see download is starting.


SPONSORS [Become a sponsor]

https://t.me/xbaysal11

LICENSE

Privatium is GPL licensed.