How To Install Powershell On Fedora Tecadmin

PowerShell is also available for the Linux systems with an official package repository. This tutorial will help you for installing PowerShell on Fedora Linux system. Prerequisites You must be login as root account or sudo privileged account to your Fedora Linux system. Enable Microsoft Repository in Fedora First of all add the Microsoft signature key to your Fedora system by running the following command. Next, execute the following command to add the Microsoft repository to the Fedora system...

November 23, 2022 · 2 min · 223 words · Anne Henry

How To Install Virtualbox On Macos Tecadmin

VirtualBox is a popular, cross-platform virtual machine manager that allows you to create virtual machines (VMs) on your Mac. VMs can be used to run different operating systems at the same time. They’re also useful for testing software in isolation, without risking your real computer. In order to install VirtualBox on macOS, you need to have a Mac with a 64-bit processor running macOS 10.11 or higher. VirtualBox runs on Windows, macOS, and Linux, and supports a wide range of guest operating systems....

November 23, 2022 · 2 min · 237 words · Thomas Hayes

How To Install Visual Studio Code Editor In Sel Opensuse Tecadmin

How to Install Visual Studio Code Editor in Ubuntu & Debian How to Install Visual Studio Code Editor in Fedora & CentOS Step #1. Enable Package Repository Create a new file /etc/yum.repos.d/vscode.repo and edit in text editor. Now add the following content to the file. Step #2. Install Visual Studio Code Now, Import the package signing gpg key on your system using the following command. After importing gpg key, Let’s use the below commands to install the Visual Studio Code on your openSUSE or SEL system....

November 23, 2022 · 1 min · 158 words · Ronnie Schorr

How To Secure Ssh Server Tecadmin

With advancements in the technology world, hackers are becoming more sophisticated every day. Even your SSH connection is not secure if you are using the traditional or default installation settings. Therefore, it has become necessary to secure your SSH server from unwanted data breaches and malicious attacks by taking some crucial precautions. In this article, we will introduce you to some important security practices which will help you in considerably increasing the level of SSH server security....

November 23, 2022 · 3 min · 629 words · Anita Wilkins

How To Set Java Home Environment Variable On Macos Tecadmin

In an Operating System (OS) JAVA_HOME environment variable must be set to point to the directory containing the JVM. In this tutorial, we will help you to correctly set the JAVA_HOME environment variable on macOS. Check Pre-Installed Java Versions You can find details of all installed Java versions on macOS with the following command. Set JAVA_HOME on macOS 10.15 and newer The macOS Catalina (version 10.15) and the newer macOS versions usee the Zsh as the default shell....

November 23, 2022 · 2 min · 297 words · Jeff Davisson

How To Use Sleep In Python Script Tecadmin

You can use time.sleep(seconds) as per following. The value passed to sleep() function is in second. Python Delay Example Let’s create a small script to print current date time every after 5 seconds. Execute above script on command line. To exit running script press CTRL + C. You will see results something like below

November 23, 2022 · 1 min · 54 words · Juliet Horn

Python Append To File Tecadmin

How to Appened Data to File in Python In this article we will discuss the following methods to append content to files in Python: write() method writelines() method bytes() method Editing File in Read/Write Mode in Python There are a few things to keep in mind when appending to a file in Python. In this example, the file myfile.txt is opened in append mode using the ‘a’ mode parameter. The file is then opened using a with statement, which ensures that the file is properly closed after the operations inside the with block are completed....

November 23, 2022 · 3 min · 616 words · Marsha Bellows

Running A Cronjob Inside Docker A Beginner S Guide Tecadmin

How to Dockerize a Cron Job To run a cron job inside a Docker container, you will need to use the cron service and run it in the foreground in your Docker container. Here’s an example of how you can set this up: Wrapping Up Cron jobs are a handy way to automate daily tasks on your computer, like backing up files. With Docker, though, things get a little trickier because you can’t just launch a new cron instance from your terminal and expect it to run....

November 23, 2022 · 4 min · 725 words · Kenneth Robinson

Schedule A Cron Job At Last Day Of The Month Tecadmin

Identify Last Day of Month So, first of all, we will schedule cron on the 28,28,29 and 31’st of each month. Now find out if today is the last day of the month. To find it check if the next day is 01’st of the next day and then only execute any command. Below command will return the date of the next day. Now check if tomorrow is 01. If the next day is 01 then above command will print “True” on screen....

November 23, 2022 · 1 min · 135 words · John Troublefield

Tasksel A Group Package Installation Tool For Debian Tecadmin

Install Tasksel First of all, You need to install tasksel package on your system, which is available under default package repositories for Debian systems. You can install it using apt-get simply. Installing Packages with Tasksel Let’s start using tasksel command. Go to command prompt type tasksel with sudo and press enter. This will list software package collections. Choose appropriate package collection and press Ok to install. Also, you can directly specify the package name....

November 23, 2022 · 1 min · 129 words · Mary Baker

Using Command Line Arguments In Python Tecadmin

Below is the sample Python script, which reads the command line arguments and print details. Create a sample script like script.py and copy the below content. Then execute the above script with command line parameters. You will see the results below. The first argument is always the script itself.

November 23, 2022 · 1 min · 49 words · Terry Richardson

What Is The Etc Aliases File Tecadmin

/etc/aliases are typically used to store aliases for the system’s mail server. However, it can also be used to store aliases for any other purpose. For example, you could use /etc/aliases to create an alias for your own email address. This file is stored in the /etc directory, which is the standard location for system-wide configuration files. /etc/aliases are usually managed by the system administrator. However, you can also edit /etc/aliases yourself if you need to add or change an alias....

November 23, 2022 · 1 min · 179 words · Ronnie Daigle

Resolved Zookeeper Is Not A Recognized Option Kafka

Solution After searching a bit time, I visited to Apache Kafa QUICKSTART guide. Here I found the solution that Kafka has removed –zookeeper option and replaced it with a new option –bootstrap-server . So the new command would be like: Hope this will help you to resolve the Kafka issue.

November 22, 2022 · 1 min · 50 words · Courtney Perkins

Bash Display Date And Time In A Specific Format Tecadmin

For example, to display the current date and time in the format “YYYY-MM-DD HH:MM:SS”, you can use the following command: Here are some common format specifiers you can use in the format string: %Y: Year with century as a decimal number (2022). %m: Month as a decimal number (01-12). %d: Day of the month as a decimal number (01-31). %H: Hour in 24-hour format (00-23). %M: Minute as a decimal number (00-59)....

November 22, 2022 · 2 min · 230 words · Richard Coffee

Configure Sendmail To Relay Emails Through Gmail Smtp Tecadmin

1. Create Auth File First create directory for storing authentication files. Now, create an auth file with any name like smtp-auth and add the following content. Replace the above email with your gmail or google apps email. Now create a hash map file of above created auth file. 2. Configure Sendmail with SMART_HOST Now add following configuration lines into your sendmail.mc configuration file below “MAILER” definition. In the next step we will need to re-build sendmail’s configuration....

November 22, 2022 · 1 min · 108 words · Lee Lembke

Delete All Root User Emails From A Shell In Linux Tecadmin

This tutorial will help you delete all root user emails from the shell in the Linux system. Here you will find two methods to remove user emails in a Linux system with a single command. Method 1: You can simply remove all emails of root or any other user on the Linux system using the following command. Method 2: You can also empty the mailbox file for any user. Generally the Linux system keeps the email under /var/mail/root or /var/spool/mail/root (for root account)....

November 22, 2022 · 1 min · 99 words · Casey Burnstein

Head Command In Linux With Examples Tecadmin

In this comprehensive guide, we will learn to use the head command in Linux. Moreover, we will also get familiar with the options for the head command that is available on Linux. The head command is available in all major Linux distributions; but for demonstration purposes, in this guide, we will only use Ubuntu 20.04 LTS. Let’s begin with understanding the syntax of the head command first: Syntax: The syntax of the head command is like any other command that is used to work with files....

November 22, 2022 · 4 min · 652 words · Jon Matherne

How To Backup Sql Server Database Tecadmin

How to Backup SQL Server Database We can backup the SQL Serer database either with the T-SQL statements or we can use the SSMS wizard process to take full, differential, or transactional backup of the database. Use one of the below options to backup the SQL Server database: 1. Backup Database using T-SQL Launch SQL Server Management Studio and connect to the database server. Now open a query window and execute the following statement to back up the database in your local drive....

November 22, 2022 · 1 min · 193 words · Mary Harvilla

How To Check If A Value Exists In An Array In Php Tecadmin

Using PHP in_array() function Use PHP in_array() function to check whether a specific value exists in an array or not. Here is an sample PHP program, initialized an array with few element. Then check if an element is available in the defined array. Example Output:

November 22, 2022 · 1 min · 45 words · Juan Grilli

How To Disable Pingbacks And Trackbacks In Wordpress Tecadmin

Read: How to Disable Comments on Attachments in WordPress Disable Pingbacks and Trackbacks Use this option to disable pingbacks and trackbacks from new articles. Go to WordPress admin panel and then go Settings » Discussion option. Now uncheck the box showing in below screenshot under Default article settings section. Disable for Existing Articles The above option will disable the pingbacks and trackbacks for new articles, but you still needs to disable it for existing articles....

November 22, 2022 · 1 min · 133 words · Robert Mckinney