How To Configure Static Ip On Centos 8 Cli Tecadmin

If you are not comfortable to edit configuration files, choose option 1 to set up networking in an interactive way. Method 1 – Using nmtui Tool Execute the following command to get access to an interactive way of network interface configuration. Now, edit the default existing connection. In case no connection is available, use Activate a connection. You will see the list of Ethernet interfaces, Select the interface you want to configure, Then select Edit option on the right side of the interface....

December 17, 2022 · 2 min · 271 words · Geraldine Flowers

How To Deploy Node Js Application Using Pm2 Tecadmin

Step 1 – Install Node.js First, you need to node.js PPA in our system provides by the nodejs official website. We also need to install the python-software-properties package if not installed already. After adding the required PPA file let’s install the Nodejs package. NPM will also be installed with node.js. This command will also install many other dependent packages on your system. Step 2 – Install PM2 Now, Use npm to install the process manager for Node....

December 17, 2022 · 2 min · 255 words · James Schmelzer

How To Get Current Date And Time In Golang Tecadmin

Get Date and Time in Golang You need to import the “time” package in your Go script to work with date and time. As an example use below script. I have also included fmt package to show formatted output on your screen. For testing copy above code in a go script and Run application on your system using Golang. The result will be like below Get Formatted Date and Time It uses a predefined layout to format the date and time....

December 17, 2022 · 1 min · 106 words · Carrie Martinez

How To Install And Configure Gitlab On Centos 8 Tecadmin

You can also visit our Git Tutorial section to learn about Git command line tutorials and examples. Step 1 – Prerequisites Newly installed CentOS 8 machine. Complete initial server setup Domain/subdomain name for Gitlab with DNS pointed to server. For this tutoiral, I have launched a new droplet on DigitalOcean. Also pointed pointed “gitlab.tecadmin.net” to the droplet. Step 2 – Install Gitlab on CentOS 8 First of all, enable the Gitlab repository on your CentOS system....

December 17, 2022 · 3 min · 501 words · Elizabeth Jenkins

How To Install And Secure Mongodb On Ubuntu 20 04 Tecadmin

MongoDB offers data aggregation as it allows us to store data according to our preferences. Otherwise, we have to manage data according to the data management of a conventional database. This article will help us to understand how to install MongoDB in Ubuntu 20.04. Prerequisites You must have shell access to the Ubuntu system with sudo privileged account. Installing MongoDB on Ubuntu Open the terminal and add the repository key of MongoDB to the apt keyring....

December 17, 2022 · 3 min · 452 words · Amanda Wilson

How To Install Latest Nvidia Drivers On Ubuntu Tecadmin

Remove Old Nvidia Driver The first step is to purge currently installed Nvidia drivers so that it does not conflict with the newer versions on your Ubuntu systems. Install Latest Nvidia Driver on Ubuntu Now enable the graphics-drivers PPA to your system. Currently, it supports Ubuntu 18.10, 18.04 LTS, 16.04 LTS, and 14.04 LTS operating systems. Keep in mind that its still under testing phase. Next, identify the installed graphics card model and recommended driver for that by running the following command: Then execute the below command to install recommended Nvidia graphics driver on your system....

December 17, 2022 · 1 min · 121 words · Linda Garza

How To Install Libreoffice On Macos Tecadmin

System Requirements First, make sure you have a macOS system that meets the minimum requirements for LibreOffice. You can find those here. This includes: macOS 10.12 or newer Intel or Apple silicon processor Minimum 512 MB RAM Up to 800 MB of free disk space 1024×768 graphic device with 256 colors (or higher) LibreOffice also has specific versions for each major macOS release. You can find the macOS versions here. You’ll want to pick the most recent one for your macOS version....

December 17, 2022 · 2 min · 277 words · Richard Wren

How To Install Older Version Of A Npm Package Tecadmin

The npmjs.com is the centralized repository containing all the node.js modules. Npm download the packages from npmjs and install them on a client machine. By default, NPM installs the latest version of an available module, but sometimes you may be required an older version of the module for your application. This tutorial helps you for installing the old version of modules with NPM command-line tool. Syntax The npm specific version installation uses the following syntax: Here pacakgename is the name of the packages and version is the version number to be install....

December 17, 2022 · 2 min · 225 words · Raymond Chicas

How To Install Openssl On Windows Tecadmin

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 the internet. In this article, you will learn what OpenSSL is and why it’s essential when creating a new app or program with security in mind. Additionally, we explore how to install OpenSSL on Windows using simple steps that even beginners can understand....

December 17, 2022 · 2 min · 385 words · Margaret Bickers

How To Run Multiple Commands In One Cron Job Tecadmin

How to Sepreate Two Commands in Linux You can separate two or more commands by using semicolons (;), logical AND (&&), or logical OR (||) operators. Which of these operators we use, is totally depends on the requirements. Here is the basic understanding of using these operators. How to Schedule a Cron Job First, switch to the user from which you want to run a cron job. Then open the crontab editor by running the following command....

December 17, 2022 · 1 min · 163 words · Arleen Thacker

How To Scan Open Ports With Nmap Tecadmin

In order to detect various available hosts on the network, the services they’re offering, the version of operating system they’re running, and the type of firewall they are using, nmap uses the raw IP address. Whenever we’re having connectivity issues of network or firewall configuration, the first thing we check is which ports are open. There are several commands available to check open ports and scan them on your system, but nmap is the most used command for this purpose....

December 17, 2022 · 4 min · 760 words · Luis Petty

Nginx Redirect Http To Https Tecadmin

Redirect ALL to HTTPS This will redirect all requests hits to port 80 except domains with separate server blocks. To do this edit virtual host configuration file for your domain and add “return 301 https://$host$request_uri” statement under server section. This will redirect all the incoming requests on HTTP to corresponding https URLs. Redirect Specific Domain You may want to redirect a specific domain to HTTPS. Use the following configuration on Nginx to redirect all HTTP requests on tecadmin....

December 17, 2022 · 1 min · 80 words · Richard Coleman

Switching Display Manager In Ubuntu Gdm Lightdm Sddm Tecadmin

This tutorial will help you to install multiple display managers on the Ubuntu desktop. Also provides you instructions to switch between display managers. What is Display Manager? A Display Manager is a graphical login program and session manager that is responsible for user authentication. It is a totally separate application from the desktop environment. Display Manager is also known as “login manager”. In this tutorial, we will discuss 3 popular display managers that are GDM, SDDM, and LightDM....

December 17, 2022 · 2 min · 285 words · Lynne Ledezma

Resolved Warning Apt Key Is Deprecated Manage Keyring Files In Trusted Gpg D Instead Tecadmin

Even if this is a warning message, you can continue to use apt-key, but it will be removed in the next releases. So it will be a good idea to start using the new way. Problem: As of today, we use the following command to add a GPG key to our system. It was working fine. While running the same command on Ubuntu 22.04, I got a warning message: You should see the following output:...

December 16, 2022 · 2 min · 222 words · Sheryl Frost

Automating Python Scripts With Systemd A Step By Step Guide Tecadmin

Systemd is a system and service manager for Linux that allows you to manage and control services and daemons on your system. You can use Systemd to automate the execution of Python scripts by creating a Systemd service that runs the script at startup or on a schedule. Using Systemd to automate Python scripts has several benefits, including the ability to start and stop the script as needed, to run the script in the background as a daemon, and to configure dependencies and runtime options....

December 16, 2022 · 3 min · 466 words · Levi Adams

How To Change Hostname On Ubuntu Debian Tecadmin

Change Hostname using Hostnamectl The latest operating systems (Eg: Ubuntu 18.04, 16.04, Debian 9/8) running with systemd uses hostnamectl command to manage computer hostname. You can change the hostname of Linux system using the following command. For example, you need to set computer hostname to webhost1. This will update /etc/hostname file on your system and load in the current environment. But you still need hostname binding with localhost IP. Edit /etc/hosts file to bind new hostname with localhost IP address....

December 16, 2022 · 1 min · 158 words · Matthew Robertson

How To Check Python Version In Linux Command Line Tecadmin

Output: The systems have multiple version of Python installed can find like this.

December 16, 2022 · 1 min · 13 words · Kenneth Smith

How To Checkout Remote Git Branch Tecadmin

Git Checkout Remote Branch Now use command git branch -a to list all available branches on local and remote git repository. After that run command git fetch command to update your remote-tracking branches under refs/remotes//. Now checkout new branch to your local system using git checkout branch_name. Have Multiple Remotes ? If you are using multiples remotes, you have to specify remote name with remote branch name like below command Syntax: Command: After completing the above commands again run ‘git branch’ command to view local branches and current active branch....

December 16, 2022 · 1 min · 90 words · Mark Hartman

How To Close Terminal Without Killing Running Processes On Linux Tecadmin

Instructions Follow the below instruction to detach running jobs from the terminal. Press CTRL + Z to suspend current running process.zip -q -r home.zip * ^Z [1]+ Stopped zip -q -r home.zip * 2. Then run the stopped process in the background by running bg command. It will put the last stopped process to background.bg [1]+ zip -q -r home.zip * & 3. Finally, remove the above job from the table of active job....

December 16, 2022 · 1 min · 120 words · Shawn Boling

How To Install And Configure Fail2Ban On Centos 8 Tecadmin

Step 1 – Install Fail2ban on CentOS 8 First of all, install epel-release package to configure EPEL yum repository on your CentOS 8 system. After that, install the Fail2ban rpm package using the following commands. Step 2 – Configure Fail2ban Fail2ban keeps configuration files under /etc/fail2ban directory. but we need to create a copy of this file as jail.local. Now we need to make necessary changes in jail.local file to create ban rules....

December 16, 2022 · 2 min · 224 words · Daniel Pena