Learn the powerful enterprise adaptable database:

Getting Started With ADABAS & Natural

Wednesday, April 20, 2022

How To: Install AMPPS Into Ubuntu / Xubuntu And Fix Post-Installation Problem

 

.

The Linux installation of AMPPS runs on a package manager. Below are the steps for successfully loading all elements onto your server.


1) Run "sudo apt-get update" to automatically update all existing software packages installed on Ubuntu.

2) Run "sudo apt-get install libfontconfig1 libxrender1" to add the necessary dependencies that are required for the AMPPS to proceed.

3) Run "wget http://s4.softaculous.com/a/ampps/files/Ampps-3.8-x86_64.run" to download and launch the AMPPS installer package directly from the Softaculous host. This may take a few minutes depending on your network speed.

4) Run "sudo chmod 0755 Ampps-3.8-x86_64.run" to allow your Ubuntu account to execute the installation steps.

5) Run "sudo ./Ampps-3.8-x86_64.run" to proceed through the setup wizard.

6) Run "/usr/local/ampps" to navigate to the root of the new AMPPS directory.

Run "sudo ./Ampps" to enable all AMPPS elements.

Once installation is complete, the individual AMPPS elements will be located in separate directories. Apache will be under "www", MySQL will be under "var", and PHP will be under "php-5".


If the following error is encountered when Ampps command above is executed

/usr/local/ampps/apache/bin/httpd: symbol lookup error: /usr/local/ampps/apache/lib/libapr-1.so.0: undefined symbol: dlopen


Try running update commands

1) cd /usr/local/ampps/apache/lib

2)sudo mkdir bck

3)sudo mv ./libapr* ./bck/

4)sudo apt-get -y install libaprutil1 libaprutil1-dev libapr1 libapr1-dev


REFERENCE:

https://www.ampps.com/blog/how-to-install-ampps-on-ubuntu-18-04-full-guide/

https://www.softaculous.com/board/index.php?tid=13513&tpg=1

How To: Fix Problem Apache httpd error while loading shared libraries in Ubuntu / Xubuntu

 .

Error:

During the call to start http for e.g.

$ sudo ./httpd start

the following error message is displayed:

./httpd: error while loading shared libraries: libaprutil-1.so.0: cannot open shared object file: No such file or directory


Solution:

Type Terminal Command:

1) cd /usr/local/ampps/apache/lib

2)sudo mkdir bck

3)sudo mv ./libapr* ./bck/

4)sudo apt-get -y install libaprutil1 libaprutil1-dev libapr1 libapr1-dev



.

Tuesday, April 19, 2022

How To: Download And Install Chrome For Windows, Linux and Mac

  

.

Chrome can be installed by Terminal command as follows

1) sudo dpkg --install google-chrome-stable_current_amd64.deb

2) during installation if the following error occurs:

error processing package google-chrome-stable (--install):

 dependency problems - leaving unconfigured

Processing triggers for desktop-file-utils (0.24-1ubuntu3) ...

Processing triggers for mime-support (3.64ubuntu1) ...

Processing triggers for man-db (2.9.1-1) ...

Errors were encountered while processing:

 google-chrome-stable


3) Try running the following command:

sudo apt -f install

or

sudo apt-get install -f


4) Run chrome
/opt/google/chrome/chrome

.

The Chrome Offline Installer for Windows

Chrome offline installer is available from the Chrome website, but it’s not easy to find. Note that when you do find it, it looks a lot like the regular Chrome download page. Click “Download Chrome anyway” and you’ll see different dialogs and a different file size to download. These downloads will work for Windows 7, 8, 8.1, and 10.

This is the Chrome web page for standalone downloads.

If you want to download the offline installer for a single user on a Windows machine, this is the link for you.

This will match your operating system architecture the way the standard Chrome download page does, so it’s good for both 32-bit and 64-bit Windows machines.

However, it doesn’t work for everyone. If you specifically want to download Chrome 32-bit, here’s the page you need.

If you prefer:

  • This is the 32-bit Chrome offline installer direct download link.
  • For 64-bit Windows machines, this is the specific web page link.
  • This is the 64-bit direct download link.

What about if you want to download Chrome’s offline installer for use on multiple machines? That’s one of the main reasons people want the offline installer, after all.

  • Here’s the 32-bit offline installer for all users on a PC.
  • Here’s the 64-bit version.

If you’re downloading the Chrome offline installer from one of the web pages, rather than directly, here’s how to do it.

Click to download, then click “Accept and Install” to agree to the terms and download the installer. The file is 57MB, significantly larger than the stub installer.

Once you’ve downloaded the file, you’ll be prompted by system dialogs. You might have to save the file and then run it manually, depending on your specific Windows version and how you have it set up. You will not need an internet connection to install Chrome once this file has been downloaded.

Once the installer has downloaded, you can copy it onto a USB and use it to install Chrome on multiple computers without needing an internet connection.

It’s worth noting that Chrome offline installations don’t automatically update. If you don’t want to update automatically, and you’re installing on multiple devices, consider the Windows MSI Chrome installer.

The Chrome Offline Installer for Mac

Apple dropped support for the 32-bit version of Chrome, so there’s only a 64-bit option.

Here’s the web page link to download it. The file is about 80MB.

Once it’s downloaded, open the file googlechrome.dmg and drag Chrome to the Applications folder. You don’t need an internet connection to do this.

The Chrome Offline Installer for Linux

There’s a Chrome offline installer for the most popular Linux builds: Ubuntu, Debian, Fedora, and openSUSE.

Here’s the link. The file is about 59MB.

For all other Linux distros, you’ll need to download the Chromium package.

Once the file is downloaded, click “OK” to open the package and then click “Install Package.” You can do this any time without an internet connection.

.

Monday, April 18, 2022

How To: Run Installer From CD Drive In Virtual Ubuntu of VirtualBox

.

Installers such as VirtualBox Guest Additions and Xampp are provided in the format .run ***

Type Terminal command:

e.g. sudo ./VBLinuxAdditions.run

or

e.g. sudo ./xampp-linux-x64-1.8.2-6-installer.run


*** A RUN file is an executable file typically used to install Linux programs. It contains program data and installation instructions. RUN files are often used to distribute device drivers and software among Linux users. You can execute RUN files in the Ubuntu terminal.

.

How To: Share Folders Between Windows Host and Linux Guest In VirtualBox

 


1) Add Linux Guest OS.


2) In the Shared Folder setting, add a folder e.g. Z.

(this folder will automatically be assigned to a group called vboxsf )


3) Run Linux OS


4) Add User to vboxsf group via Terminal command

sudo usermod -G vboxsf -a $USER


REFERENCE:

https://websiteforstudents.com/share-host-folders-with-virtualbox-ubuntu-guests/

How To: Configure Pro FTP Users In Ubuntu

 


Assuming you already have a user e.g. user1 in the Ubuntu.


1. Create group via Terminal command.

groupadd ftp

2. Add user to the group.

usermod -a -G ftp user1

3. Set the ownership of the target directory

cd /opt/lampp

chown root.ftp htdocs

chmod 775 htdocs



READ ALSO:

http://www.facweb.iitkgp.ac.in/dashboard/docs/transfer-files-ftp.html

https://bobcares.com/blog/proftpd-create-user/

How To: Fix Missing Users & Groups Settings In Ubuntu


Install via Terminal command

sudo apt install gnome-system-tools


READ ALSO:

https://docs.xubuntu.org/current/user/C/administrative-tasks.html

Sunday, April 17, 2022

How To: Fix Xampp Launcher In Ubuntu/Xubuntu Start Menu

 .

0) You may need to install nano text file editor first.

sudo apt-get install nano

1) Create and edit config files.

sudo touch /usr/share/applications/xampp-control-panel.desktop

sudo vim /usr/share/applications/xampp-control-panel.desktop


2) Type the config texts.

Save ([CTRL]+x)


[Desktop Entry]

Encoding=UTF-8

Type=Application

Name=XAMPP Control Panel

Comment=Start and Stop XAMPP

Exec=sudo /opt/lampp/manager-linux-x64.run

Icon=/opt/lampp/htdocs/favicon.ico

Categories=Application

Type=Application

Terminal=false


3) Update

sudo apt-get update



How To: Fix Ubuntu/Xubuntu Error "Failed to execute default web browser. input/output error"

 


1) Search settings manager in the search bar.

or type Terminal Command: xfce4-settings-manager

2) Open settings manager.

3) Click on Preferred Applications(the one with a star as a symbol)

4) Choose preferred web browser as other

5) Write usr\bin\google-chrome --no-sandbox that has opened up


How To: Fix Xampp Installation Error in Ubuntu / Xubuntu

 



Xampp installation process may get killed half way through, try the following terminal command to solve the problem: 

sudo dd if=/dev/zero of=swapfile bs=1024 count=2000000

sudo mkswap -f swapfile

sudo swapon swapfile


 REFERENCE:

https://stackoverflow.com/questions/28268267/xampp-auto-killed-on-installation

How To: Install Xampp In Ubuntu / Xubuntu

 

1) Download Xampp from the website.

Once download process completed, in Chrome window, click download option at the bottom bar and select Show in folder.


2) Go to download path.

In the Download tab of File Manager Application, right-click and select Open Terminal Here.


3) Type Terminal commands.

chmod 755 xampp-linux-*-installer.run

sudo ./xampp-linux-*-installer.run


4) Follow Xampp Installer Wizard.











CRITICAL: Xampp installation process may get killed half way through, read the following to solve the problem: https://setup-steps.blogspot.com/2022/04/how-to-fix-xampp-installation-error-in.html


ADDITIONALLY: If you want to check that the services are running, type the following comand:

ps aux | grep ftp

To stop the service, type the command:

sudo kill -9 21882


READ ALSO:

https://www.debianhelp.co.uk/xampp.htm

https://phoenixnap.com/kb/how-to-install-xampp-on-ubuntu

How To: Fix Broken Installation Of Chrome On Ubuntu

 

Example error:

Errors were encountered while processing:

 google-chrome-stable


Solution:

Run terminal command

sudo apt-get install -f

This command will install any dependencies needed.


How To: Install Chrome In Ubuntu Linux

 

Using Terminal Command:

1) Get the Chrome Installer.

wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb

2) Run the installer.

sudo dpkg -i google-chrome-stable_current_amd64.deb

or

sudo apt install ./google-chrome-stable_current_amd64.deb


3) Fix broken installation

The installation may fail half way through with an error message:

E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).

Type command:
apt --fix-broken install



Once the system is fixed, re-run installation.

4) Find the chrome launcher in the menu.




How To: Install VirtualBox Guest Addition In Ubuntu

 


1) Run VirtualBox and then Run the Ubuntu.

(This tutorial is based on ova version downloaded from https://virtual-machines.github.io/Xubuntu-VirtualBox/ )


2) In VirtualBox menu select Devices/Insert Guest Additions CD Image...


3) Wait for Ubuntu to mount the CD Image.


4) Go to the mounted location and run terminal command

sudo sh ./VBoxLinuxAdditions.run


How To: Create Alpine Linux 3 VirtualBox Appliance


 

.

INSTALL ALPINE

1) Download Alpine Linux ISO file.

https://alpinelinux.org/downloads/ 

This tutorial uses Alpine Standard Version 3.15.4 (Released Apr 04, 2022)

https://dl-cdn.alpinelinux.org/alpine/v3.15/releases/x86/alpine-standard-3.15.4-x86.iso


2) Create a New Virtual Machine.


Set Option: Memory size=256MB.

Set Option: Create A Virtual Hard Disk Now

Set Option: VDI Hard Disk Type

Set Option: Dynamically Allocated

Set Option: 20GB

Create.


2) Add the ISO file as Virtual Optical Disk.



3) Run the Virtual Machine.

4) Login as root.

Type: root

5) Run setup

Type: setup-alpine

6) Select keyboard layout

Choose your keyboard layout. 

If your using a US (QWERTY) keyboard choose: us

7) Select keyboard variant

Choose your keyboard variant. If you don't know your keyboard variant you will need to figure that out, for US (QWERTY) keyboards choose: us,

8) Enter system hostname

Host name, which will be the name of your computer. using the default localhost is fine, but you can input a custom hostname if you want,

9) Initialize network cards

Choose your network card. Typically, you can just go with the default (press enter),

The second question will ask you whether or not to use dhcp for your IP Address, unless you have a reason to choose none choose: dhcp

The third question will ask you whether or not you would like to do maunal network configuration, if you dont need to or it can wait until after installation choose: n

10) Initialize network DNS

The DNS should be automatically detected (you shouldnt see this), if not, you will be asked ask for the server addresses. Type "" (empty string) for domain, then press enter. 

Press enter to go to the next question.

11) Changing the root password

Next a root password must be defined. You'll need to type it twice for confirmation as the picture shows. 

If it's too short you will get a warning, but your password will still work. 

Just retype it and go.

12) Timezone

Select a timezone, the default is UTC

13) Proxy

Then setup script will ask for a proxy, if you want to use a proxy input the needed information now, if not leave it as the default (none)

14) Mirrors

Then setup script will ask for repository mirror chooser.. it will default to [1],

15) SSH Server

Installing an SSH server enables you to manage your machine remotely. 

OpenSSH is what the big distros use. 

Dropbear is a tiny SSH replacement. 

Its recommended to type none if you dont intend to use SSH,

16) NTP client

This is for time sync. Press enter to use the image offline. It can be changed after installation.

17) Partitioning and installation

First choose your disk, e.g: sda

Second, choose your installation mode.

E.g. type sys

18) Confirm Installation.

setup-alpine will now ask you for the last time to confirm that you want to erase the disk and continue, if you are sure type y, if not type n.


OPTIONAL: Perform other post installation tasks: https://wiki.alpinelinux.org/wiki/Post_installation


INSTALLING A DISPLAY SERVER (FOR GRAPHICAL SESSIONS)

1) Xorg

Most desktop environments (DE) or Windows Managers (WM) require Xorg (also called: X11, X). 

Type: setup-xorg-base

2) Basic Xfce desktop installation

Type: apk add xfce4 xfce4-terminal xfce4-screensaver lightdm-gtk-greeter dbus


3) Starting dbus (desktop bus) service:

Type: rc-service dbus start


4) Enabling dbus to start on boot:

Type: rc-update add dbus

(If dbus is not running it leads to issues like missing icons and keyboard shortcuts.)


5) Enabling udev service:

Type: rc-update add udev


6) Starting Xfce

With a display manager (graphical login)

Type: rc-service lightdm start 

After correct operation is verified, lightdm can be enabled to start up during boot:

Type: rc-update add lightdm

From the command line, 

Xfce may be started with: startx


7) Allowing shut down and reboot

Type: apk add elogind polkit-elogind

Type: reboot


DOWNLOAD

OVA File: https://archive.org/download/alpine-standard-3.15.4-x-86


REFRENCES:

https://wiki.alpinelinux.org/wiki/Alpine_newbie_installation

https://wiki.alpinelinux.org/wiki/Post_installation

https://wiki.alpinelinux.org/wiki/Xfce

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/

.

Sunday, April 3, 2022

How To: Install ZKOSS Plug-In For Java EE Projects



.

Quick Start

.

How To: Install NetBeans 8 On Windows and Linux

.

The NetBeans is an open source and award-winning IDE (integrated development environment) application for Windows, Linux, Solaris and Mac. 

The Java SE Development Kit (JDK) 8 is required to install NetBeans IDE (NetBeans 8.2 does not run on JDK9).

Install JDK 8 for windows: https://archive.org/details/jdk-8u111-nb-8_2-windows-i586

Install NetBeans 8.2 for windows : https://archive.org/details/netbeans-8.2-windows_202204

.

Alternatively:

Install On Linux: https://www.appservgrid.com/paw92/index.php/2019/03/28/how-to-install-netbeans-ide-8-2-in-debian-ubuntu-and-linux-mint/

Download Portable Java EE Eclipse 2022 Tomcat Bundle

 

.

Download Portable Java EE Eclipse 2022 Tomcat Bundle 

https://drive.google.com/file/d/1oz2lvmQoNNqoJNR1p2ud-UvomKdc3sD4/view?usp=sharing

.

https://archive.org/download/portablejava-eclipse-ee-tomcat

Saturday, April 2, 2022

How To: Fix Eclipse Error "Tomcat Server Failed to Start"

 


This could be caused by a number of reasons.

The easiest attempt is to delete the Tomcat server (and remove its runtime from Eclipse settings).



Add back the server. Make sure that the Eclipse has got the right Tomcat server version in its list.

Choose the Tomcat server version in the list and let Eclipse download the version by itself.


If the problem persists, refer the following pages for a list of suggestions:

1) https://codebun.com/server-tomcat-v8-5-server-at-localhost-failed-to-start/

2) https://dzone.com/articles/tomcat-server-failed-to-start-from-eclipse


 


 


How To: Fix Eclipse Error "Java was started but returned exit code=14"?

 

.

When Eclipse runs for the first time, it may throw the following error message: 

"Java was started but returned exit code=14"

In one of the succeeding lines, it says:

"-Dosgi.requiredJavaVersion=11"


One of the possible causes is the different JRE or JDK (on the host platform) which does not meet the requirement of the Eclipse application. In this case, it requires version 11.


Solution: 

1) Exit Eclipse. Download Java JDK version 11, install and re-run Eclipse. 

2) Change Eclipse settings (Window -> Preferences -> Java -> Installed JRE's tab).


Note:

1) You may need to remove other JRE versions if they exist in Eclipse settings.

2) You may also encounter a warning message as follows:



3) Click on Compiler page link to reconfigure the compiler compliance level.
 









Friday, April 1, 2022

How to fix -Djava.endorsed.dirs not supported, that emerged after installing WTP in Eclipse?

 .

To fix this bug, you need to install/update the Eclipse Web Tools Platform (WTP) to version 3.9.4 or later.


Select "Help > Install new Software..."

Select or add following URL: http://download.eclipse.org/webtools/repository/oxygen

Check Web Tools Platform (WTP) 3.9.4

Select "Next" and follow instructions

(Bug was reported to Eclipse here: https://bugs.eclipse.org/bugs/show_bug.cgi?id=533162)


.

How to Fix “Could Not Create the Java Virtual Machine” Error

 .

Right-click the executable file.

Go to compatibility tab.

Tick "run as administrator".



How To: Install Eclipse 2022

 


0) Pre-installation

It is recommended that you install Java SDK first. 

https://www.oracle.com/java/technologies/downloads/ 

Even though Eclipse may run with built-in JRE, some tools such as Java EE requires Java SDK. So, better get the Java SDK ready.


1) Search for Eclipse 2022 download link.


2) Download Eclipse IDE 2022-03.


3) Run installer.


4) Select IDE type.


5) Click Install.



6) Portable Version

Alternatively, you may want to try the portable version,

https://portableapps.com/node/55342


7) Optional: Install Web Tool Platform (WTP)

Go to menu Help/Install New Software

In the link input field, enter http://download.eclipse.org/webtools/updates .


source: https://devstory.net/10281/installer-web-tools-platform-pour-eclipse