Categories: TutorialsUbuntu

How to Install Webfs Server on Ubuntu 22.04 LTS

Introduction

Webfs is a fantastic web server that helps users to host static content immediately. The web server when installed is capable of hosting static websites and media. It is a better alternative to heavy-duty web servers that are more CPU hungry. You will see how to install Webfs on Ubuntu 22.04 LTS edition in the next steps. It is readily available in Ubuntu repositories.

To present the demo, I am using Ubuntu 22.04 LTS version. All instructions apply to Ubuntu and derived distributions.

Webfs Prerequisites

This installation on Ubuntu 22.04 LTS version does not require any kind of dependencies.

Step 1. Install Webfs Server on Ubuntu LTS

Sponsored

First, you must update the repositories using the standard update command as shown below. After that, we will issue an install command to install the packages. There are not any complexities as all the packages are available in Ubuntu repositories. Here is how I am going to do it for you.

$ sudo apt update
$ sudo apt install webfs

Once installed you will be ready to confirm the installation.

Step 2. Confirm the Webfs Server Installation

To see if Webfs has been installed, we will invoke the following command to make sure that it is working.

$ webfsd 

This will return the below message and will show that the server is fully installed.

There is no GUI of course. Web servers do not have GUIs to control them. Particularly this is a tiny web server that only helps to host static content in no time.

Step 3. How Webfs Works on Ubuntu 22.04 LTS?

Now we will see how Webfs works on a Linux system. We will look into its related functions and properties. To see properties, you will need to run the following command.

Sponsored
$ webfsd -h

The command will list further options and commands that will help you to run Webfs server.

The standard way to make use of them is the following command:

$ webfsd [option]

For example, if you want to change the port where Webfs is listening to incoming data then you will have to use the following command. The default port is 8000.

$ webfsd -p 9000

This will change the port from 8000 to 9000.

Step 4. Uninstall Wbfs From Ubuntu 22.04

We installed Webfs from Ubuntu repositories. Therefore it is simple to remove as well. All related settings will be removed once Webfs is removed from the system.

$ sudo apt remove webfs

Once confirmed, all the packages will be removed.

Conclusion

In this article, we learned about a new webserver that is simple to install and easy to navigate. This can host static contents without bloating the system resources.

Karim Buzdar holds a degree in telecommunication engineering and holds several sysadmin certifications including CCNA RS, SCP, and ACE. As an IT engineer and technical author, he writes for various websites.

Ubuntu Server Admin

Recent Posts

How to Install and Use Zig Programming Language on Ubuntu or Debian Linux

In this article, we will see how to install and use zig programming language on…

26 minutes ago

Linux Sed Tutorial: Learn Text Editing with Syntax and Examples

This article was adapted from its original version on NixCraft. Sed is an acronym for…

6 hours ago

How to Fix VMware’s “Could not open /dev/vmmon” Error on Ubuntu

You’ve recently installed VMware Workstation on your Ubuntu system and encountered the frustrating “Could not…

14 hours ago

How to Fix Ubuntu 404 Errors While Fetching Dependencies

Have you ever found yourself staring at a terminal full of 404 errors while trying…

14 hours ago

How to Fix ‘Please Install All Available Updates’ Error When Upgrading Ubuntu 18.04 to 20.04 LTS

One particularly frustrating error that many users face when trying to upgrade from Ubuntu 18.04 …

14 hours ago

How to fix “Release is not valid yet” Error in Docker Containers

In the world of containerization, time synchronization issues can create unexpected roadblocks when working with…

14 hours ago