×

This article covers the basic nvm commands that you can use to install and manage multiple versions of Node.JS. In fact, Node.js uses an event-driven, non-blocking I/O model that makes it lightweight and efficient, perfect for data-intensive real-time applications that run across distributed devices.


You can use the following command to list installed version's of Node for the current user:

$ nvm ls 

With this command you can find available Node.js version for the installation:

$ nvm ls-remote 

To find the default Node version set for the current user, run the command:

$ nvm run default --version 



This article covers how to use the vmstat command in Linux. In fact, vmstat command in Linux/Unix is a performance monitoring command of the system as it gives the information about processes, memory, paging, block IO, disk, and CPU scheduling. All these functionalities makes the command vmstat also known as virtual memory statistic reporter.



This article covers how you can install Kubectl on your Linux system and use it to operate your Kubernetes clusters if you are fond of using the command-line interfaces. Infact, Kubectl tool is very efficient in terms of cluster management and application deployment. 

Kubectl is a command-line tool for Kubernetes. It allows us to execute Kubernetes operations via the API. We can use Kubectl to deploy apps, check logs as well as manage all the other resources of the cluster.

Kubernetes uses an HTTP-based REST API which is the actual Kubernetes user interface employed to manage it. This means that every Kubernetes operation is represented as an API endpoint and can be carried out based on an HTTP-request sent to the endpoint. 



This article covers the Installation process of NodeJS on Rocky Linux. Nodejs is a JavaScript runtime built on Chrome's V8 JavaScript engine and is designed to build scalable network applications.



This article covers how to install Minikube on your Ubuntu 20.04 machine. Minikube is an open source tool that allows you to set up a single-node Kubernetes cluster on your local machine. The cluster is run inside a virtual machine and includes Docker, allowing you to run containers inside the node. 

Now, you can use the single-node Kubernetes with minikube to learn one of the most famous containers orchestration tools in the Cloud Native era. 


To enable and access kubernetes dashboard , run the command:

$ minikube dashboard

This will open the Kubernetes dashboard in the web browser.


To stop the minikube, run:

$ minikube stop

To delete the minikube, run:

$ minikube delete

To Start the minikube, run:

$ minikube start



This article covers how to install nodejs and npm on your Debian system with different methods. Also, you will learn how to uninstall npm from your Debian system. Node.js is a JavaScript platform for general-purpose programming that allows users to build asynchronous network applications quickly. By leveraging JavaScript on both the front and backend, Node.js can make web application development more consistent and integrated.


To Install the Official Debian Node.js Package:

1. To get Node.js from the default Debian software repository, you can use the apt package manager. First, refresh your local package index:

$ sudo apt update

2. Then install the Node.js package, and npm the Node Package Manager:

$ sudo apt install nodejs npm

3. To verify that the install was successful, run the node command with the -v flag to get the version:

$ node -v


To Remove Node.js:

1. To remove either of these versions, type the following:

$ sudo apt remove nodejs

2. To uninstall a version of Node.js that you have enabled using nvm, first determine whether or not the version you would like to remove is the current active version:

$ nvm current

3. If the version you are targeting is not the current active version, you can run:

$ nvm uninstall node_version

This command will uninstall the selected version of Node.js.

4. If the version you would like to remove is the current active version, you must first deactivate nvm to enable your changes:

$ nvm deactivate



This article covers how to install Virt-Viewer on a Linux Mint 20 system. virt-viewer is a minimal tool for displaying the graphical console of a virtual machine. The console is accessed using the VNC or SPICE protocol. The viewer can connect to remote hosts to lookup the console information and then also connect to the remote console using the same network transport.


Functions of Virt Viewer: 

  • Connect to KVM virtual machines remotely via the SPICE remote desktop protocol.
  • Automatically adjust display resolution of the KVM virtual machines.
  • Use multiple monitors for the KVM virtual machines.
  • Passthrough USB devices from your computer to the KVM virtual machines.
  • Share folders from your computer to the KVM virtual machines.


To install Virt Viewer on Linux:

1. First, update the APT package repository cache with the following command:

$ sudo apt update

2. To install Virt Viewer on Ubuntu 20.04 LTS, run the following command:

$ sudo apt install virt-viewer --no-install-recommends --no-install-suggests

Then, confirm the installation, press Y and then press <Enter>.



This article covers the top-performing virtualization software specifically for Linux. Virtualization is the act of creating a "virtual machine" (VM) for every layer and system excerpted from the original, whether it is storage, hardware, computer network resources, or the operating system as a whole.

Virtualization is the process of developing virtual versions of operating systems, hardware platforms, storage devices, or computer network resources.

Basically, Some of the discussed virtualization paradigms are cross-platform such as XenProject, VirtualBox, and Microsoft Hyper-V, but Linux KVM and oVirt are specifically designed and created for the Linux operating systems.


A key advantage of running a virtual machine is that it allows you to run apps that would otherwise not be available due to having very different system requirements, which is one particular reason why virtualization has become so important in business.


The Top 5 Open Source Virtualization Software includes:

  • Xen Project.
  • VirtualBox.
  • KVM.
  • oVirt.
  • ProxMox.



This article covers how to clear the cache and buffer memory of the physical memory along with clearing the swap space when needed.

Every Linux System has three options to clear cache without interrupting any processes or services.


If you want to clear Swap space, you may like to run the below command.

$ swapoff -a && swapon -a


To Clear PageCache, dentries and inodes:

$ sync; echo 3 > /proc/sys/vm/drop_caches


To Clear PageCache only:

$ sync; echo 1 > /proc/sys/vm/drop_caches


To Clear dentries and inodes:

$ sync; echo 2 > /proc/sys/vm/drop_caches



This article covers the different methods to perform the installation of NodeJS on the CentOS 8 system.

Now that NodeJS is installed on your CentOS 8 system, you can use it to deploy a NodeJS application on the system.
Node.js is a cross-platform, runtime environment that was built on Chrome's JavaScript. This environment is designed to execute JavaScript code on the server-side.

To check Node version number, run the command:

# node --version



This article covers how to install and use the Docker-compose on CentOS 8 system. By using the Docker-compose, you can deploy multiple Docker applications with container services through a single command. 

Basically, Docker Compose is a tool that can be used to define and run multiple containers as a single service. With Docker Compose, you can link multiple containers and deploy an application from a single command. 

It is mainly used in the development, testing and staging environment. 

Docker Compose uses a YAML file to define a complex stack in a file and running it with a single command.


To install Docker on CentOS:

1. Before starting, make sure you have Docker installed on your server. If not installed, you will need to add Docker-CE repository to your system. 

You can add it with the following command:

$ dnf config-manager --add-repo=https://download.docker.com/linux/centos/docker-ce.repo

2. Once the repository is added, install the latest version of docker using the following command:

# dnf install docker-ce --nobest -y
# systemctl start docker
# systemctl enable docker

3. You can verify the docker version with the following command:

$ docker --version



This article covers how to install VMware Workstation on your instance of Ubuntu 20.04. With a virtual machine application like VMware, you can run another operating system inside your current operating system.


To Install VMware in Ubuntu:

1. Install required build packages

Open a terminal (Ctrl+Alt+T) and use the command below to install required build packages and Linux Kernel headers:

$ sudo apt install build-essential

2. Download VMware Workstation Player

Next step is to download the VMware Workstation Player from their website.

https://www.vmware.com/products/workstation-player.html

3. Install VMware Player

4. Use the command below to make the file executable:

$ chmod +x ~/Downloads/VMware-Player*

5. And then run the installation file:

$ sudo ~/Downloads/VMware-Player*

This will open an installation window.


To Uninstall VMware Player from Ubuntu:

If, for some reasons, you want to uninstall VMware Player, use the following command:

$ sudo /usr/bin/vmware-installer -u vmware-player

Press "Enter" and VMware Player will be removed from your system.



This article covers how to install Yarn on Ubuntu 20.04 LTS system. Yarn is a JavaScript package manager compatible with npm that helps you automate the process of installing, updating, configuring, and removing npm packages. 

It caches every download package and speeds up the installation process by parallelizing operations.


To Yarn on Ubuntu Linux:

1. Import the repository’s GPG key and add the Yarn APT repository to your system by running the following commands:

$ curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
$ echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list

2. Once the repository is enabled, update the package list, and install Yarn:

$ sudo apt update
$ sudo apt install yarn

3. If you installed Node trough nvm, skip the Node.js installation with:

$ sudo apt install --no-install-recommends yarn

4. Once completed, verify the installation by printing the Yarn version:

$ yarn --version



This article will guide you through the processes of Installing VirtualBox, CentOS 8 as a Virtual Machine (VM) on VirtualBox.




More Linux Tutorials

We create Linux HowTos and Tutorials for Sys Admins. Visit us on IbmiMedia.com

Also for Tech related tips, Visit forum.outsourcepath.com or General Technical tips on www.outsourcepath.com