How To Instantly Share Files And Folders In Arch Linux
Quickserve – A simple HTTP server for quickly sharing files
There are many ways to share files or folders in Arch Linux. You could setup a samba share, nfs share, or use USB drive to share or transfer files. But wait, there is an alternative way to instantly share files and folders in Arch Linux. Quickserve allows you to share files quickly between Arch Linux systems. It is a simple http server, so you don’t need to install any additional applications on any systems. Just install it and share files in no time. All you need to is a web browser in the client systems to access the files/folders. Quickserve can serve either a single file or an entire directory by simply passing it paths on the command line. It can also accept a list of files to share with the “–filelist” option. It is even possible to enable uploads using the “–upload” option, which accepts a directory path as its argument.
Concerning about the features, we can list the following:
- Very simple to install and use
- Support for file and filter lists
- Upload support
- HTTP Digest Authentication
- HTTPS with client certificates for secure connections
- Multicast support for automatic detection of other Quickserve servers
Edit pacman.conf file:
sudo nano /etc/pacman.conf
Add the following lines at the end if you’re using 64-bit Arch Linux.
[xyne-x86_64] Include = /etc/pacman.d/pacserve Server = http://xyne.archlinux.ca/repos/xyne
If you use 32-bit systems, add the following lines instead.
[xyne-i686] Server = http://xyne.archlinux.ca/repos/xyne
Or, Use this repository only if there is no matching [xyne-*] repository for your architecture.
[xyne-any] Server = http://xyne.archlinux.ca/repos/xyne
Save and close the pacman.conf file.
Now, install quickserve using pacman as shown below.
sudo pacman -S quickserve
Instantly Share Files And Folders using Quickserve
Let us say your friend come over to your desk and asks a file or folder. You don’t need to setup any file sharing applications, just install Quickserve and share the files and folders instantly like below.
It’s simple as that. Now, your friend can access the shares via web browser by visiting to URL – http://IP_Address:8000.
You might need to allow the port via firewall/router. It’s no big deal either. The following commands will do the trick if you use firewalld.
sudo firewall-cmd --permanent --add-port=8000/tcp
sudo firewall-cmd --reload
On Debian, Ubuntu, you can allow port 800 as shown below.
sudo ufw allow 8000
Now, let us see how to use Quickserve to quickly serve files and folders over network. Say for example, let us share a directory named test. To do so, run:
MulticastQuickserveServer PID 535 Addresses lo: 127.0.0.1 enp0s3: 192.168.1.105 Port 8000 Multicast False Filelist None Filterlist None MOTD None Upload Directory None Tar Disabled Paths test /home/sk/test Static Peers None Press ctrl+C to exit.
The command will start up a http server on all interfaces listening on port 8000. Now, your friend access this share by navigating to http://IP_address_of_your_system:8000/ from his web browser.
Here is the sample screenshot of the above share.
Alternatively, he/she can use wget or anything to access or download the shares. Quite easy, isn’t? Yes, it is! You can share any folder or file as I described above in your Arch Linux systems. To exit Quickserve, simply press CTRL+C.
For more details, refer the quickserve help section.
That’s it. Now, you know how to share files and folders quickly between Arch Linux systems. I will be soon here with another interesting guide. If you find this article useful, share it on your social networks and support OSTechNix.