Java is a popular programming language for the system software development and web application. You need to install Java Development Kit (JDK) and Java Runtime Environment (JRE) for preparation of a Java development system. This tutorial will guide you to install Oracle Java 11 LTS version on Ubuntu 18.04 LTS Bionic system. Install Oracle Java 8 on Ubuntu 18.04 Bionic Prerequisites Before beginning the installation run login shell as the sudo user and update the current packages installed. sudo apt update sudo apt upgrade Step 2 – Install Java 11 on Ubuntu 18.04 You need to add the following PPA…
Author: Rahul
Bash is a popular command-line interface that is commonly used on Linux and Unix-based systems. One of the powerful features of Bash is the ability to work with arrays. Bash arrays provide a way to store multiple values in a single variable, making it easy to access and manipulate those values. In this tutorial, we’ll explore how to work with arrays in Bash, including how to declare, initialize, and manipulate arrays. Declaring Arrays in Bash To declare an array in Bash, we use the following syntax:
1 | array_name=(value1 value2 ... valueN) |
Here, array_name is the name of the array, and value1, value2, …, valueN…
MySQL is a popular open-source relational database management system used by millions of developers worldwide. It provides a variety of features and tools that make it easy to work with databases. One of the most important tasks in managing a MySQL database is monitoring and managing currently running processes. In this article, we will provide a comprehensive guide on how to find currently running processes in MySQL. We will cover three methods that you can use to retrieve information about running processes: the SHOW PROCESSLIST command, the INFORMATION_SCHEMA.PROCESSLIST table, and the MySQL Workbench tool. Method 1: Using the SHOW PROCESSLIST…
This tutorial helps you to install Java on Debian 9 (Stretch) via Apt-Get. Java is a popular object-oriented, platform-independent programming language. You can install Java based on your requirements. As an example, to run a java application you only need to install JRE (Java Runtime Environment) but for the development system, you need the JDK (Java Development Kit). You can either install OpenJDK or Oracle Java on your system. This tutorial covers both options for you. Installing OpenJDK OpenJDK is an open source implementation of the Java Platform standard edition. You can install it directly from the default repository on…
SELinux (Security-Enhanced Linux) is a Linux kernel security module that provides enhanced security for Linux systems. SELinux provides a mechanism for supporting access control security policies. This specifies how the processes communicate with each other and interact with the files. SELinux Modes: SELinux has three modes to run. By default, SELinux runs in Enforcing mode on CentOS 7 Enforcing – SELinux security policy is enforced. Permissive – SELinux allows access but prints warnings on rules voilation. Disabled – No SELinux policy is loaded. Check SELinux Status You can use getenforce command to view the status of SELinux. Another command sestatus…
In Python programming function you can use sleep() function available under time module. This will sleep or delay script execution for the defined number of seconds. You can use time.sleep(seconds) as per following. The value passed to sleep() function is in second.
1 2 3 4 5 | import time time.sleep(1) # delays for 1 second time.sleep(5) # delays for 5 seconds time.sleep(60) # delays for 1 minute |
Python Delay Example Let’s create a small script to print current date time every after 5 seconds.
1 2 3 4 5 | import time while True: print("DateTime " + time.strftime("%c")) time.sleep(5) # delays execution by 5 seconds |
Execute above script on command line. To exit running script press CTRL + C. You will see results something like below DateTime Fri Sep 28 17:39:50 2018 DateTime Fri Sep 28 17:39:55 2018 DateTime Fri Sep 28 17:40:00 2018…
What is Netplan? Ubuntu systems are now using netplan for the network configuration. Netplan enables easily configuring networking on a system via YAML files. Netplan processes the YAML and generates the required configurations for either NetworkManager or systemd-network the system’s renderer. This new tool replaces the static interfaces (/etc/network/interfaces) file that had previously been used to configure Ubuntu network interfaces. Now you must use /etc/netplan/*.yaml to configure Ubuntu interfaces. The new interfaces configuration file now lives in the /etc/netplan directory. There are two renderers. NetworkManager and networkd. Use NetworkManager renderer for desktop computers manage through GUI and networkd is used…
Laravel is one of the best open source, MVC PHP framework, designed for the faster development of web applications. You can simply install and use on your development system. This article will help you to install Laravel 7 PHP Framework on Debian 9 (Stretch) system. Laravel required following software and extensions to be installed on your system: Apache MySQL/MariaDB PHP >= 7.0.0 OpenSSL PHP Extension PDO PHP Extension Mbstring PHP Extension Tokenizer PHP Extension XML PHP Extension Step 1 – Prerequsiteis To start with Laravel, we first need to set up a running LAMP server. If you have already running…
Phalcon is a full-stack PHP framework. It provides ready to use classes and functions. Phalcon provides the lowest overhead for MVC-based applications. This tutorial will help you to install Phalcon PHP framework module on your Debian 9 systems. Prerequsities First of all, you need to install some prerequisites packages in your system using the following commands. sudo apt install ca-certificates apt-transport-https Then install PHP 5.6 or later version with required modules. wget -q https://packages.sury.org/php/apt.gpg -O- | sudo apt-key add – echo “deb https://packages.sury.org/php/ stretch main” | sudo tee /etc/apt/sources.list.d/php.list sudo apt update sudo apt install php php-curl php-gd php-json php-mbstring…
Keeping your computer secure is a balancing act. On one hand, you need to keep your computer safe from viruses and hackers so that confidential information doesn’t get leaked. On the other hand, it’s also important that programs and apps are able to access information from users as needed so they can complete tasks efficiently. Keeping these two factors in mind is essential when installing software on your Windows OS. Luckily for you, this article will explore how you can install OpenSSL on Windows. You see, OpenSSL helps developers and programmers create applications or software that have encrypted communication over…