Learn the powerful enterprise adaptable database:

Getting Started With ADABAS & Natural

Sunday, April 17, 2022

How To: Run A BusyBox HTTP Daemon (httpd) Web Server On Tiny Core Linux

.

The Tiny Core Linux Project is a highly modular based system with community build extensions.

It is not a complete desktop nor is all hardware completely supported. It represents only the core needed to boot into a very minimal X desktop typically with wired internet access.

BusyBox is a toolbox with tiny replacements of essential Linux programs. One of them is a tiny HTTP server httpd (HTTP Daemon).

.

STEPS:

1) Downnload Tiny Core Linux OVA file (https://archive.org/download/tiny-linux-vm/Tiny%20Linux%20VM.ova)

2) Import into VirtualBox and run.

3) Install BusyBox

Terminal Command:

tce-load -wi busybox-httpd.tcz

4) Install OpenSSH (Optional)

Terminal Command:

tce-load -wi openssh

5) Configure BusyBox httpd Port (-p) and Home Directory (-h)

Terminal Command:

sudo /usr/local/httpd/bin/busybox httpd -p 80 -h /usr/local/httpd/bin/

6) Create sample html file

Go to the busybox directory.

Create an html file containing simple texts e.g. <h1>Hello</h1>.

Terminal Command:

cd /usr/local/httpd/bin/

vi html

(in the vi environment, type the following commands)

Type[esc]i

Type in the editor panel: <h1>Hello</h1>

Type[esc]:wq! and press [enter]

7) Create a backup for the html (optional).

Terminal Command:

sudo mkdir /mnt/sda1/wwwsite/

sudo cp /usr/local/httpd/bin/index.html /mnt/sda1/wwwsite/index.html

8) Run daemon




Additional readings:

https://justsomedevnotes.com/2020/11/30/linux-busybox-http-server/

https://www.cyberciti.biz/faq/howto-display-process-pid-under-linux-unix/

https://help.ubuntu.com/community/UsingTheTerminal

https://openwrt.org/docs/guide-user/services/webserver/http.httpd

https://searchcode.com/file/49758248/meta/recipes-core/busybox/files/busybox-httpd/

https://www.geekyhacker.com/2018/06/03/bash-shell-cgi-http-server-using-busybox/

https://www.hobrasoft.cz/en/blog/bravenec/2014-03-09

https://android.stackexchange.com/questions/168859/stopping-busyboxs-httpd

https://boxmatrix.info/wiki/Property:start-stop-daemon


No comments:

Post a Comment