SWFS (Simple Web File Server) is a Bash script that allows you to quickly and easily start a file server to share files over a local network. With SWFS, you can serve files from a specified directory and choose whether to run the server in the background or foreground.
- Serve files from a chosen directory.
- Start the server in the background for convenience.
- Simple menu-driven interface.
- Informative messages about Python's availability and installation.
-
Prerequisites: Ensure you have Python 3 installed on your system. If not, the script will provide instructions on how to install it.
-
Clone or Download: Clone this repository to your local machine using
git clone
or download the ZIP archive. -
Navigate to the Directory: Open a terminal and navigate to the directory where you cloned or downloaded the repository.
-
Run the Script: Run the script using the following command:
bash swfs.sh
-
Follow the Menu: The script will display a menu. Choose the desired options to start the file server and provide the directory to serve files from.
-
Access the Server: Once the server is started, you can access it from a web browser using the provided port number.
-
Stopping the Server: If you started the server in the background, you'll be given instructions on how to stop it using the kill command.
This project is licensed under the MIT License.
Contributions to enhance the script's functionality, improve documentation, or fix issues are welcome. Please create a pull request to contribute.
- This script is inspired by the need for a quick and lightweight way to share files over a network.
- Special thanks to the open-source community for providing tools and resources that make projects like this possible.