Servers

How to Be an Ace Online Student With a Few Steps

The thing about being on lockdown and avoiding too much of the outdoors is that everyone it seems has lost track of time. In case you are one of those people who has forgotten what date and time of the year it is, this is a reminder to tell you that it is already fall! Yes, that picturesque season with beds of falling orange leaves covering the ground, cool weather perfect for sweaters but not too cold that you feel lethargic, and of course, school opening! Many, if not all schools are welcoming back students to their fold, albeit everything being a virtual event as nobody dares to endanger the young by getting them to physical buildings where the risk of getting sick is higher.

With schools virtually opening come memories that flood back the minds of office workers who had to adapt to work from home strategies only months ago. And just like that event in March, school children and hapless parents are beset with challenges once again as they must adapt to this “new normal” of virtual classrooms and online modules. And just like office employees, students will also surely get used to learning in this environment, if only the learning and adaptation curve will be to their advantage very soon.

Studying is hard, studying online is harder

Just imagine, as an adult, having to sit still and appear very interested in your Zoom meetings with your office team, resisting the temptation to click on that N icon on your device and finishing the next episode of Money Heist you have promised yourself to watch as soon as the day ends. If that scenario is that challenging to supposedly mature and level-minded adults, imagine how much of a challenge that would be to kids and teenagers who generally have attention spans that can only be rivaled by Dory in Disney’s Finding Nemo movies. Confusion ensues when facial expressions and tones of teachers may be misinterpreted by children who may not be that equipped with enough maturity. Alas, there’s the challenge of intermittent internet connections. What’s a kid supposed to do?

But going to school on a laptop came with a litany of difficulties on day one: Parents were dealing with hangry kids who weren’t allowed to eat while on screen, demystifying confusing class schedules, and managing the various passwords needed to unlock an online education.

(Via: https://www.bostonglobe.com/2020/09/16/metro/its-bizarre-its-how-were-doing-it-parents-students-adjust-virtual-classrooms/)

Where to study?

As with how adults had to face that challenge of having to work in the kitchen or in their beds during the early weeks of the lockdown, the same challenge is faced by students who may be more susceptible to getting distracted by even the slightest of triggers. Thus, just like the birth of a work-from-home space for employees, the must for a study space for schoolkids needs to be addressed.

Empower your child by giving him a say, says Karen Aronian, Ed.D., of Aronian Educational Design LLC, a firm that designs learning spaces. While some more-distractible kids may prefer a desk in their room, most preschoolers and elementary-age children want to be where the action is, Aronian says.

(Via: https://www.parents.com/kids/education/back-to-school/how-to-set-up-an-virtual-learning-space-at-home-for-kids/)

Equip ’em students with the best listening tool

There’s the laptop or tablet for students …

0
Read More

Learn About Possible Cyber Threats and How to Avoid Them

Did You Know That Your Website Isn’t Immune to Cyber Threats? Learn How to Avoid Them. Websites often find themselves targeted by cybercriminals. Whether their motivation is fueled by their wish to spread malware, tarnish your good reputation, steal valuable data, or other reasons, you need to take the steps necessary to keep yours safe. […]

Source

from ThisHosting.Rocks https://thishosting.rocks/learn-about-possible-cyber-threats-and-how-to-avoid-them/…

0
Read More

API Integration in WordPress

There are generally two ways to conceive of WordPress relationships with external APIs: theme integration and plugin integration. With a little WordPress experience, both of these processes are relatively straightforward and can be executed in a short amount of time. Below are some things you can do every time you integrate a plugin API to […]

Source

from ThisHosting.Rocks https://thishosting.rocks/api-integration-in-wordpress/…

0
Read More

What Are DDoS Attacks?

DDoS attacks, short for “Distributed Denial-of-Service” attacks, are an attempt to disrupt and often stop the flow of web traffic on a server. They are increasingly common tactics used by hackers and other malicious actors on the internet to try and hurt businesses and individuals financially, or to extort them for a variety of reasons. […]

Source

from ThisHosting.Rocks https://thishosting.rocks/what-are-ddos-attacks/…

0
Read More

Data is the New Gold

Since we are now firmly in the era of big data and data-dependent business models, it makes sense to think of Data as the new gold. The collection and monetization of data is part of the business model of virtually every business online. Think of the last time you browsed a news site that didn’t […]

Source

from ThisHosting.Rocks https://thishosting.rocks/data-is-the-new-gold/…

0
Read More

Do You Have the Tech Basics of Podcasting?

With the pandemic still in full swing, most of us have taken so many hobbies and activities that occupy us, allow us to pass the time, and in a way reminds us that there is still that big, outside world we can connect to and just can’t explore for the meantime. Some of us have held monumental marathons on Netflix, some of us have explored skills in the kitchen, while others have honed their (or verified that they don’t have a) green thumb. Yet others, to remind them of those days of commuting to work and having a drink with colleagues after office hours, continue to listen to podcasts that we have been loyal to even before COVID-19 disrupted our lives.

But then, has it ever occurred to you that you can also do a podcast? There has been a surge in the amount of content people publish. Whether it is to bring some semblance of normality in their lives or to remind others in their network what they’ve been up to in these boring times, sharing podcasts can be quite therapeutic and effective as a social activity these days. If you are currently thinking, “Why not? That sounds like a lot of fun,” then maybe you should read on and check whether you and the people you want to do podcasts with have these already. Of course, it goes without saying that you would need an internet connection and a laptop or desktop computer in order to stream a podcast. Here are other items you would need:

Get a microphone
A microphone is a must so that you can put your voice into the computer for recording. The variety of microphones run from affordable to high-end, and the good news is you really don’t have to go for the more expensive mics to ensure great function. The more basic microphone models can also do a good job with reasonable quality. The thing to remember is to check the quality of the sound with the mic you are going to get. The better the quality, the more professional you will sound, the higher the likelihood of people listening to you. Suffice to say the basic mic or headset you use for Zoom and Skype calls may not really cut it.

Whether you’re picking podcasting up as a hobby or a new venture, one thing’s for sure: Low-quality equipment could make or break even the most compelling content, as otherwise interested listeners might be too distracted by background noise. The best podcast microphones will ensure rich, clear vocals, so even if you’re a one-person show, you won’t sound like one.
(Via: https://www.rollingstone.com/product-recommendations/electronics/best-podcast-microphones-1061917/)

Get a headset
A headset is a must if you are going to have a podcast with multiple participants. If you are doing a solo act podcast or if you’re not doing a reaction vlog or content that would require you to watch or listen to another person or piece of content, then a headset may not be necessary. But if you have a partner or you’re doing a reaction podcast, then make sure you have a great headset. Here is a look at the headphones one of the most successful podcasters is using:

When podcasting for up

0
Read More

How to Install and Use Terraform on CentOS 8

In this guide, we will show you how to install and use Terraform on CentOS 8. Before we proceed further, what is Terraform? Created by Hashicorp, Terraform is a free and opensource declarative coding tool that allows you to automate and manage your IT infrastructure and various services that run on servers. In fact, Terraform is popularly referred to as ‘Infrastructure as a Code’ tool.

Terraform makes use of a simple syntax to efficiently and safely provision resources across on-premise and cloud platforms such as Microsoft Azure, Google Cloud Platform and AWS. Where required, it can also re-provision these changes in response to changes in configuration.

Without much further ado, let us walk you through the installation steps.

Installation of Terraform on CentOS 8

First up, head over to the official Terraform download site and download the latest zip file. By the time of writing down this guide, the latest version is Terraform 0.13.3. To download use the wget command as shown

[[email protected] ~]$ wget https://releases.hashicorp.com/terraform/0.13.3/terraform_0.13.3_linux_amd64.zip

Once downloaded, unzip the file to the /usr/local/bin path using the -d switch as shown.

[[email protected] ~]$ sudo unzip terraform_0.13.3_linux_amd64.zip -d /usr/local/bin
Archive:  terraform_0.13.3_linux_amd64.zip
  inflating: /usr/local/bin/terraform
[[email protected] ~]$

Alternatively, you can locally unzip the file in your current working directory and later move the unzipped directory to the /usr/local/bin destination.

[[email protected] ~]$  unzip terraform_0.13.3_linux_amd64.zip
[[email protected] ~]$  mv terraform /usr/local/bin

To confirm that everything went as expected, invoke the following command:

[[email protected] ~]$ terraform -v
Terraform v0.13.3
[[email protected] ~]$

And that’s it! We are done installing Terraform.  The output confirms that Terraform is successfully installed on our system. As you can see, installing Terraform is quite a simple and straightforward procedure.

Terraform in action – Deploying a VM in GCP

To get a better understanding of how Terraform can be used to provision resources, we are going to demonstrate how to deploy a vm on Google cloud.

But first, you need to have a Google Cloud account with billing enabled. Usually, you get $300 worth of free credit during your free trial. In this demo, we are using a free trial.

Once you have logged in, click on the cloud shell icon as shown

Activate-Cloud-Shell-Terraform

This will initialize the Google cloud shell at the bottom of your screen. This usually takes a few seconds.

GCP-Cloud-shell-Screen

Next, we are going to install Terraform locally using docker to make it more convenient. To make it more persistent on restarts, we will install it into $HOME/bin as shown.

$ docker run -v $HOME/bin:/software sethvargo/hashicorp-installer terraform 0.13.3
$ sudo chown -R $(whoami):$(whoami) $HOME/bin/

Next, add bin to the path as shown

$ export PATH=$HOME/bin:$PATH

At this point, terraform is installed. Next, you need to enable the Cloud Engine API to make the API available for use.

$ gcloud services enable compute.googleapis.com

We are going to download a terraform configuration file from Github. The configuration file initializes a compute instance (virtual machine) that installs Apache webserver with a custom configuration. The compute engine is assigned a unique name and an external IP address that you will use to access the webserver.  To download the config file, run:

$ curl -sSfO https://raw.githubusercontent.com/sethvargo/terraform-gcp-examples/master/public-instance-webserver/main.tf

Use cat command to view the contents of main.tf file

$ cat main.tf

Here’s just a snippet of the …

0
Read More

What is Web Hosting?

Web hosting is when a provider makes a site accessible for viewing online by allocating server space to store the site’s files. A server hosts every website you’ve ever accessed, including this one. The hosting type determines the amount of space made available. Dedicated hosting, shared hosting, VPS hosting, and reseller hosting are the main […]

Source

from ThisHosting.Rocks https://thishosting.rocks/what-is-web-hosting/…

0
Read More

How to Setup Private Docker Registry in Kubernetes (k8s)

It is always recommended to have private docker registry or repository in your Kubernetes cluster. Docker private registry allows the developers to push and pull their private container images. Once the application’s containers are pushed to private registry then developers can use the path of their private registry while creating and deploying their yaml files.

In this article, we will learn how we can deploy private docker registry as a deployment on top of Kubernetes cluster. I am assuming Kubernetes cluster is already up and running.

Kubernetes lab details for setting up private docker registry

  • k8s-master – 192.168.1.40 – CentOS 7
  • k8s-worker-1 – 192.168.1.41 – CentOS 7
  • k8s-worker-2 – 192.168.1.42  – CentOS 7
  • kadmin user with sudo rights
  • NFS share ‘/opt/certs’ & ‘/opt/registry’

Note:  In my case, I have setup nfs server on master node and exported /opt/certs and /opt/registry as nfs share.

Before starting the deployment of private registry, please make sure these nfs shares are mounted on each worker nodes. Run the following commands on each worker node.

$ sudo mkdir /opt/certs /opt/registry
$ sudo mount 192.168.1.40:/opt/certs /opt/certs
$ sudo mount 192.168.1.40:/opt/registry /opt/registry

For permanent mount, add nfs entries in /etc/fstab file.

In place of mounting these nfs shares, we can also create nfs based persistent volumes and later we can use these persistent volumes in yaml file.

Let’s dive into installation and configuration steps of private docker registry in Kubernetes.

Step 1) Generate self-signed certificates for private registry

Login to your control plane or master node and use openssl command to generate self-signed certificates for private docker repository.

[[email protected] ~]$ cd /opt
[[email protected] opt]$ sudo openssl req -newkey rsa:4096 -nodes -sha256 -keyout ./certs/registry.key -x509 -days 365 -out ./certs/registry.crt

Private-Docker-Repo-Key-Cerificate-k8s

Once the key and certificate file are generated, use ls command to verify them,

[[email protected] opt]$ ls -l certs/
total 8
-rw-r--r--. 1 root root 2114 Sep 26 03:26 registry.crt
-rw-r--r--. 1 root root 3272 Sep 26 03:26 registry.key
[[email protected] opt]$

Step 2) Deploy private registry as deployment via yaml file

On your master node, create a private-registry.yaml file with the following contents

[[email protected] ~]$ mkdir docker-repo
[[email protected] ~]$ cd docker-repo/
[[email protected] docker-repo]$ vi private-registry.yaml
apiVersion: apps/v1
kind: Deployment
metadata:
  name: private-repository-k8s
  labels:
    app: private-repository-k8s
spec:
  replicas: 1
  selector:
    matchLabels:
      app: private-repository-k8s
  template:
    metadata:
      labels:
        app: private-repository-k8s
    spec:
      volumes:
      - name: certs-vol
        hostPath:
          path: /opt/certs
          type: Directory
      - name: registry-vol
        hostPath:
          path: /opt/registry
          type: Directory

      containers:
        - image: registry:2
          name: private-repository-k8s
          imagePullPolicy: IfNotPresent
          env:
          - name: REGISTRY_HTTP_TLS_CERTIFICATE
            value: "/certs/registry.crt"
          - name: REGISTRY_HTTP_TLS_KEY
            value: "/certs/registry.key"
          ports:
            - containerPort: 5000
          volumeMounts:
          - name: certs-vol
            mountPath: /certs
          - name: registry-vol
            mountPath: /var/lib/registry

save and close the yaml file

private-registry-deployment-yaml-k8s

Run the following kubectl command deploy the private registry using above created yaml file,

[[email protected] docker-repo]$ kubectl create -f private-registry.yaml
deployment.apps/private-repository-k8s created
[[email protected] docker-repo]$

Execute below kubectl commands to verify status of registry deployment and its pod.

[[email protected] ~]$ kubectl get deployments private-repository-k8s
NAME                     READY   UP-TO-DATE   AVAILABLE   AGE
private-repository-k8s   1/1     1            1           3m32s
[[email protected] ~]$
[[email protected] ~]$ kubectl get pods | grep -i private-repo
private-repository-k8s-85cf76b9d7-qsjxq   1/1     Running   0          5m14s
[[email protected] ~]$

Perfect, above output confirms that registry has been deployed successfully, Now copy the registry certificate file to worker nodes and master node under the folder “/etc/pki/ca-trust/source/anchors“. Execute the following commands on …

0
Read More

How to Setup Jenkins on CentOS 8 / RHEL 8

In this article, we will acquire a knowledge of how-to setup the Jenkins on CentOS 8 or RHEL 8. We will also go through why there is a need of an additional tool for delivering a project. But before we start with all gun blazing and put this tool to work, we should know what it is exactly and why it is needed.

Jenkins is an open-source software for continuous software development. It is based on Java and it is the only tool which can be used in every part of software development cycle.

What is Jenkins ?

Jenkins is a CI/CD tool. Here CI means continuous integration and CD means continuous delivery. Jenkins is also considered as automation tool or server, It helps to automate software development which are related to building, testing and deploying. It is a server-based tool which runs on servlet containers like Apache Tomcat.

Why do we need Jenkins tool?

As maximum organization is now having agile process. Agile methodology is a practice that promotes both continuous integration and continuous delivery, it has scrum process that can be of 2/3 weeks, which is also known as scripts. In every sprint developers and tester has to do continuous development and testing with continuous integration and continuous delivery. In every sprint client get the privilege to check that the software/application is building according to the given requirement. They also have the leverage to change/update the requirement according to their business needs. This is one of the main reasons why Jenkins is one of the most popular tools in the market nowadays.

Prerequisites:

  • Minimal CentOS 8 / RHEL 8
  • User with sudo rights
  • Stable Internet Connection
  • For RHEL 8 system, active subscription is required.

Jenkins Lab details:

  • Host Name: Jenkins.linuxtechi.com
  • IP Address: 192.168.1.190
  • SELinux : Enabled
  • Firewall: Running

Installation Steps of Jenkins on CentOS 8 / RHEL 8

Step 1) Update hosts file and apply updates

Add the following hostname entry in /etc/hosts file, run below echo command:

[[email protected] ~]$ echo "192.168.1.190   jenkins.linuxtechi.com" | sudo tee -a /etc/hosts

Install all the available updates using the beneath dnf command,

[[email protected] ~]$ sudo dnf update -y

Once all the updates are installed successfully then reboot your system once.

[[email protected] ~]$ sudo reboot

Step 2) Enable Jenkins Package Repository

Run the following command to enable Jenkins package repository for CentOS 8 / RHEL 8,

[[email protected] ~]$ sudo dnf install wget -y
[[email protected] ~]$ sudo wget http://pkg.jenkins-ci.org/redhat-stable/jenkins.repo -O /etc/yum.repos.d/jenkins.repo

Run below rpm command to import GPG key for Jenkins packages

[[email protected] ~]$ sudo rpm --import https://pkg.jenkins.io/redhat/jenkins.io.key

Step 3) Install Java and Jenkins with dnf command

Java is one of the perquisites for Jenkins, so run below dnf command to install java

[[email protected] ~]$ sudo  dnf install -y java-11-openjdk-devel

Verify the java version using below command:

[email protected] ~]$ java --version

Java-version-check-centos8

Now install Jenkins using beneath dnf command,

[[email protected] ~]$ sudo dnf install -y jenkins

dnf-install-jenkins-centos8

Step 4) Start and Enable Jenkins Service via systemctl

Run following systemctl command to start and enable Jenkins service

[[email protected] ~]$ sudo systemctl start jenkins
[[email protected] ~]$ sudo systemctl enable jenkins

Verify Jenkins service status by running following command,

[[email protected] ~]$ sudo systemctl status jenkins

Jenkins-Service-Status-CentOS8

Above output confirms that Jenkins service is active and running.

Step 5) Configure

0
Read More