Setting up the Darkhttpd web server on Edubudgie 22
Darkhttpd Web Server on Edubudgie

Setting up the Darkhttpd web server on Edubudgie 22

Welcome back to another tutorial from our Linux tutorial series.

We are taking a break from Alpine Linux and exploring a new topic.

This time we will deploy the Darkhttpd web server on an Edubudgie 22 virtual machine.

Darkhttpd is a lightweight, single-threaded web server written in C. It was created by Emil Mikulic and released in 2003. The project aimed to provide a simple, efficient, and secure web server solution for serving static content.

The server is designed to be minimalist, with a focus on performance and resource efficiency. It has a small memory footprint and low CPU usage, making it suitable for embedded systems, personal servers, or any situation where resources are limited.

Darkhttpd gained popularity among users who needed a lightweight web server for serving static files without the complexity and overhead of more feature-rich servers like Apache or Nginx. Its simplicity and ease of use made it a popular choice for various projects and applications.

Over the years, darkhttpd has been maintained and updated by Emil Mikulic, with occasional contributions from the open-source community. Its stable performance and reliability have made it a trusted option for those seeking a lightweight web server solution.

We need to complete several steps to get it working correctly.

1. Boot the system -- System Ready.

Boot the system -- System Ready.

2. Boot the system -- Logged In.

Boot the system -- Logged In.

3. Start a new SSH session.

Start a new SSH session.
ssh -v -p 2222 [email protected]        

4. Start a new SSH session.

Start a new SSH session.

5. Start a new SSH session.

Start a new SSH session.

6. Check for updates.

Check for updates.
apt-get update        

7. Check for updates.

Check for updates.

8. Running the command "htop".

Running the command "htop".
htop        

9. Install the packages necessary for the Darkhttpd Web Server.

Install the packages necessary for the Darkhttpd Web Server.
apt install darkhttpd        

This did not work as that particular package is missing from the repositories.

We then proceed to download the latest version from the official GitHub.

wget https://github.com/emikulic/darkhttpd/archive/refs/tags/v1.16.tar.gz        

10. Install the packages necessary for the Darkhttpd Web Server.

Install the packages necessary for the Darkhttpd Web Server.

We need to extract the archive.

tar -xzvf v1.16.tar.gz        

11. Install the packages necessary for the Darkhttpd Web Server.

Install the packages necessary for the Darkhttpd Web Server.

We need to change the directory to the new darkhttpd directory.

cd darkhttpd-1.16        

12. Install the packages necessary for the Darkhttpd Web Server.

Install the packages necessary for the Darkhttpd Web Server.

We need to compile the Darkhttpd Web Server binary.

make        

13. Install the packages necessary for the Darkhttpd Web Server.

Install the packages necessary for the Darkhttpd Web Server.

We need to copy the newly compiled Darkhttpd Web Server binary to the correct bin directory.

cp darkhttpd /usr/local/bin        

14. Install the packages necessary for the Darkhttpd Web Server.

Install the packages necessary for the Darkhttpd Web Server.

We need to execute/launch the newly compiled binary.

darkhttpd --version        

15. Running the Darkhttpd Web Server on Edubudgie 22

Running the Darkhttpd Web Server on Edubudgie 22.

We need to properly execute with the correct arguments to show where our index.html file is located on our system.

./darkhttpd /var/www/htdocs        

16. Running the Darkhttpd Web Server on Edubudgie 22

Running the Darkhttpd Web Server on Edubudgie 22.

We can use localhost.

https://localhost        

17. Running the Darkhttpd Web Server on Edubudgie 22

Running the Darkhttpd Web Server on Edubudgie 22.

18. Now we can safely and gracefully shut down our system by running the command "poweroff".

Now we can safely and gracefully shut down our system by running the command "poweroff".
poweroff        

That was fun! See you next time. #linux

Florin Pantaza

"Wenn du etwas tun willst, findest du L?sungen, wenn nicht, findest du Gründen." ( von mir ) "If you want to do something, you'll find solutions; if not, you'll find excuses." ( my own )

8 个月

salutare, poti sa imi spui exact la ce ne-ar folosi acest Darkhttpd?

要查看或添加评论,请登录

Razvan Alexandru Ionica的更多文章

  • Updating Rocky Linux 9.4 packages

    Updating Rocky Linux 9.4 packages

    Rocky Linux was founded by Gregory Kurtzer, one of the original founders of CentOS, in December 2020. The project was…

  • Installing GUI on Oracle Solaris 11 (sol-11_4-text-x86.iso)

    Installing GUI on Oracle Solaris 11 (sol-11_4-text-x86.iso)

    Sun Solaris, now known as Oracle Solaris, is a Unix operating system originally developed by Sun Microsystems. Oracle…

    4 条评论
  • Updating Rocky Linux 9.4 Kernel

    Updating Rocky Linux 9.4 Kernel

    Rocky Linux is a free and open-source enterprise operating system designed to be fully compatible with Red Hat…

    8 条评论
  • Updating Rocky Linux 9.4 Multimedia Codecs

    Updating Rocky Linux 9.4 Multimedia Codecs

    Rocky Linux is an open-source enterprise operating system designed to be a downstream, community-supported…

  • Setting up OpenSolaris 2009.06 (osol-0906-x86.iso) for a virtual machine

    Setting up OpenSolaris 2009.06 (osol-0906-x86.iso) for a virtual machine

    UNIX is a powerful, multiuser, multitasking operating system originally developed in the 1960s and 1970s at AT&T's Bell…

    13 条评论
  • OpenSolaris 2009.06

    OpenSolaris 2009.06

    OpenSolaris was an open-source operating system based on the Solaris kernel and associated tools. It was initiated by…

    32 条评论
  • Force RHEL 7 to set the date 2 years in the past

    Force RHEL 7 to set the date 2 years in the past

    Here is a question from one of our fellow UNIX Europe group members: How can he force RHEL 7 to set the date 2 years in…

    12 条评论
  • Setting up RHEL 7 (rhel-server-7.9-x86_64-dvd) for a virtual machine

    Setting up RHEL 7 (rhel-server-7.9-x86_64-dvd) for a virtual machine

    RHEL 7, or Red Hat Enterprise Linux 7, was a major release of the RHEL operating system that was introduced in June…

    8 条评论
  • Update Rocky Linux from 9.3 to 9.4

    Update Rocky Linux from 9.3 to 9.4

    Rocky Linux is an exciting development in the world of Linux distributions. It was created as a direct response to the…

    2 条评论
  • Install LibreOffice on Rocky Linux 9.3

    Install LibreOffice on Rocky Linux 9.3

    Rocky Linux was created as a community-driven, enterprise-focused Linux distribution. It aims to be a downstream…

社区洞察

其他会员也浏览了