miniserve is a small self-contained application for serving files and directories over HTTP. It provides a simple and accessible way to share files with anyone on the internet. In this tutorial, we'll explain how to install miniserve on Manjaro.
Before we start, make sure your Manjaro system is up to date by running the following command:
sudo pacman -Syu
We can install miniserve on Manjaro using the following steps:
Open the terminal by pressing CTRL
+ ALT
+ T
on your keyboard.
Install Rust by using the following command:
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
This command will install Rust on your system. Follow the onscreen instructions to complete the installation process.
Once Rust is installed, run the following command to install miniserve
:
cargo install miniserve
This command will install miniserve
on your system.
After installation, confirm that the executable is available by running the following command:
miniserve --version
This command should display the version of miniserve
installed on your system.
Now that miniserve is installed on your Manjaro system, you can use it to serve files and directories over HTTP.
To serve a specific directory, navigate to the directory in the terminal and run the following command:
miniserve
This command will start a local server and display the URL you can use to access the contents of the directory.
If you want to specify the port number explicitly, you can use the --port
option followed by the port number, like this:
miniserve --port 8000
This command will start the server on port number 8000
.
This tutorial explained how to install miniserve
on Manjaro and how to use it to serve files over HTTP. miniserve
is a versatile tool that can be used to share files with anyone on the internet.
If you want to self-host in an easy, hands free way, need an external IP address, or simply want your data in your own hands, give IPv6.rs a try!
Alternatively, for the best virtual desktop, try Shells!