Woof – Simply Alternate Information Over a Native Community in Linux


Get real time updates directly on you device, subscribe now.

Woof (quick for Internet Provide One File) is a straightforward software for sharing information between hosts on a small native community. It consists of a tiny HTTP server that may serve a specified file for a given variety of instances (default is as soon as) after which terminates.

To make use of woof, merely invoke it on a single file, and the recipient can entry your shared file by way of an online browser or utilizing a command-line web-client resembling cURL, HTTPie, wget or kurly (a curl different) from the terminal.

One benefit of woof over different file sharing instruments is that it shares information between a distinct working system, or completely different gadgets (computer systems, smartphones, tablets and so forth.), supplied the recipient has an online browser put in.

On this article, we are going to present find out how to set up woof in Linux and use it to share information on an area community.

Tips on how to Set up and Use Woof in Linux

On Debian and Ubuntu, you possibly can simply set up ‘woof‘ package deal from the distribution’s default repositories utilizing apt or apt-get package deal supervisor as proven.

$ sudo apt set up woof
$ sudo apt-get set up woof

On different Linux distributions, you possibly can obtain the woof script utilizing wget command and transfer it to a /usr/bin listing as proven.

$ wget http://www.house.unix-ag.org/simon/woof
$ sudo cp woof /usr/bin/

To share a file, present it as an argument as proven.

$ woof ./bin/bashscripts/getpubip.sh

Then woof will generate a URL ( on this case) which your associate can use to entry the file.

Share File with WoofShare File with Woof

Share File with Woof

Ship the URL to the recipient. As soon as the recipient accesses the file, woof will shutdown (see the next screenshot).

Access File Shared via Woof Access File Shared via Woof

Entry File Shared by way of Woof

Notice: Within the above instance, we’ve got used wget command line downloader to acquire the shared file, and it routinely assigns the downloaded file a distinct title (for example index.html).

To specify a customized title, use the -O possibility as proven.

$ wget -O custom_name

Alternatively, you can even entry the shared file from the online browser as proven (click on Save File to obtain it).

Download Shared File from Web BrowserDownload Shared File from Web Browser

Obtain Shared File from Internet Browser

By default, woof shares the file as soon as, and after the recipient downloads it, woof terminates. You may set the variety of time woof shares a file earlier than it shuts down, utilizing the -c possibility.

The next command will terminate woof after three downloads.

$ woof -c three ./bin/bashscripts/getpubip.sh

To share a listing, you possibly can create a tarball and compress it by utilizing (-z for gzip compression, or -j for bzip2 compression, or -Z for ZIP compression). For instance:

$ woof -c 2 -z ./bin/

Take a look at the obtain file title, it ought to be a Gzip archive as proven within the following screenshot.

Download Compressed Tar Archive FileDownload Compressed Tar Archive File

Obtain Compressed Tar Archive File

As well as, you need to use the -U flag to inform woof to offer an add type, permitting file uploads. The file will probably be uploaded to the present listing the place woof was launched from:

$ woof -U

Then your associate can use the generated URL to entry the add type from a browser as proven.

Woof File Upload FormWoof File Upload Form

Woof File Add Type

After looking and deciding on the file, click on the Add button to add information.

Woof File Upload CompleteWoof File Upload Complete

Woof File Add Full

You may confirm, that the file ought to be uploaded to the identical listing the place woof was invoked.

Verify File UploadsVerify File Uploads

Confirm File Uploads

You may see extra utilization choices by working:

$ man woof
$ woof -h

Woof is a small, easy and easy-to-use HTTP server for sharing information on an area areas community. On this article, we confirmed find out how to set up and use woof in Linux. Use the suggestions type under to share your ideas about this device or ask questions.

Source link

Leave A Reply

This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish. Accept Read More