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


Saturday, April 16, 2022

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

 



1) Run Tiny Core Linux

2) Install BusyBox Httpd

tce-load -wi busybox-httpd.tcz

3) Create Home directory

Go to /mnt/sda1/ directory

cd /mnt/sda1/

Make a new directory wwwsite

sudo mkdir wwwsite

4) Create html page

sudo vi index.html

Type vi command: [ESC] i

<h1>HelloWorld</h1>

Type vi command: [ESC] :wq!

5) Run httpd command

sudo /usr/local/httpd/sbin/httpd -p 80 -h /mnt/sd1/wwwsite/

6) View the website in the web browser



You can automate the entire process by following the next article:


Thursday, April 14, 2022

How To: Set Up Tiny Core Linux On VirtualBox

 


1) Download Tiny Core Linux OVA file

https://archive.org/download/tiny-linux-vm/Tiny%20Linux%20VM.ova


2) Run VirtualBox, import the OVA as a new appliance.

Import new appliance


New VM imported


3) Run

4) Install Nano Text Editor

tce-load -wi nano

meaning:

"tce-load [-w -i {-r -f} ] extname"

"tce-load, use -w (wget) , -i (to install i.e mount the app), -r (force tcz to ram) and -f (force symlinker)"

ref:https://tinyurl.com/2wd39n8r

Check installation

cd /usr/local/etc

ls



5) Install OpenSSH

tce-load -wi openssh

Check installation

cd /usr/local/etc

ls



6) Configure OpenSSH for remote connection

sudo cp ssh_config.example ssh_config

sudo cp sshd_config.example sshd_config



7) Start OpenSSH

sudo /usr/local/etc/init.d/openssh start


8) Set user password for remote connection

(assuming that the user is tc)

passwd

make it a bit harder e.g. P@ssw0rd

enter for two times.

9) Check IP number for the VM

ifconfig



10) Run Putty application in host PC (which acts as a remote PC).

Host Name: tc@192.168.68.129

Port: 22


11) Accept connection to the OpenSSH service

Accept connection


Connected



READ ALSO:

https://iotbytes.wordpress.com/configure-ssh-server-on-microcore-tiny-linux/

https://skootsone.yolasite.com/netbox-tcore-ssh.php

https://www.lrz.de/services/compute/courses/x_lecturenotes/191007_PuTTY_Tutorial_2019.pdf















Saturday, April 9, 2022

How To Compile And Run Java In Different Directory In Windows?



Assuming ...

your java compiler is in the path: C:\java\jdk1.8.0_111\bin

your codes is in the path: C:\test\HelloWorld.java


To Compile:

"C:\java\jdk1.8.0_111\bin\javac" "C:\test\Hello.java"


To Run:

"C:\java\jdk1.8.0_111\bin\java" -cp "C:\test" Hello




Download Oracle Portable JDK

.


 

Oracle™ JDK portable


Java Development Kit (JDK) is an implementation of the Java Platform released by Oracle Corporation.

.

https://portapps.io/app/oracle-jdk-portable/ 

.


Tuesday, April 5, 2022

Download Portable NetBeans 7.1 J2EE

 


.

Other than Java FX 2.0 support (the main theme for this release), this version overall adds a lot of Java EE polish (mainly in the area of CDI), and remains a top-notch Maven IDE capable of scaling to very large projects.

.

https://sourceforge.net/projects/netbeansj2ee/

.