How to Manipulate HTTP With cURL

Objective

Learn how to use cURL to make HTTP requests to interact with online content.

Distributions

All GNU/Linux distributions

Requirements

Just cURL. It’s available in every distribution’s repository.

Difficulty

Easy

Conventions

# – requires root access either via su or sudo.

$ – run as your regular user

Introduction

cURL is a command line multi-tool for interacting with the web. cURL is capable of acting like a web browser, downloading files, accessing APIs, and even signing you into online accounts. cURL can be scripted, and it handles everything from a simple command line interface.

Read more

How to remove KVM-based Virtual Machines on Redhat Linux

Objective

The following instruction will explain how to completely remove KVM-based Virtual Machines on Redhat Linux from command line using virsh command.

Operating System and Software Versions

  • Operating System: – Redhat 7.3
  • Software: – libvirtd (libvirt) 2.0.0

Requirements

Privileged access to your Redhat Linux installation will be required.

Difficulty

EASY

Conventions

Read more

Configuring Virtual machine automatic start on Redhat Linux host

Objective

The objective is of this article is explain how to automatically start virtual machine using default Redhat’s KVM based hyper-visor configuration.

Operating System and Software Versions

  • Operating System: – Redhat 7.3
  • Software: – libvirtd (libvirt) 2.0.0

Requirements

Privileged access to your Redhat Linux installation will be required.

Difficulty

EASY

Conventions

Read more

Configure default KVM virtual storage on Redhat Linux

Objective

The default KVM virtual storage location is /var/lib/libvirt/images meaning, that any new virtual machines created via Virtual Machine Manager will be stored within this location. The objective of this guide is to configure another default KVM virtual storage directory location.

Operating System and Software Versions

  • Operating System: – Redhat 7.3
  • Software: – libvirtd (libvirt) 2.0.0

Requirements

Privileged access to your Redhat Linux installation is required.

Difficulty

EASY

Conventions

Read more

Configure local network Redhat package repository with vsftpd

Objective

The objective is to configure network Redhat package repository accessible via FTP protocol. This guide uses vsftpd as a means to provide FTP access to the package repository.

Operating System and Software Versions

  • Operating System: – Red Hat Enterprise Linux Server 7.3 (Maipo)
  • Software: – vsftpd: version 3.0.2

Requirements

Privileged access to your RHEL server system will be required.

Difficulty

EASY

Conventions

Read more

Configure local network Redhat package repository over HTTP with Apache

Objective

The objective is to configure network Redhat package repository accessible via HTTP protocol. This guide uses Apache webserver as a means to provide HTTP access to the local package repository.

Operating System and Software Versions

  • Operating System: – Red Hat Enterprise Linux Server 7.3 (Maipo)
  • Software: – Apache/2.4.6 (Red Hat Enterprise Linux)

Requirements

Privileged access to your RHEL server system will be required.

Difficulty

EASY

Conventions

Read more

Detecting which system manager is running on Linux System

Objective

There are multiple system managers which can by possibly running on your Linux system. The current most common system managers are SysV (init), Systemd and Upstart. You may find this short guide to be of use to you, if you are unsure which, system manager is running on your Linux system.

Requirements

Privileged access to your Linux system is required.

Difficulty

EASY

Conventions

Read more

Python Packages and Modules

Introduction

Whenever you need some additional functionality in Python, you turn to the import keyword to pull in extras from Python modules. You’ve used common ones like the math module plenty of times.

Now, you will learn how to create your own Python modules and packages to compartmentalize your code. Modules are sort of like classes in that they make your code modular. While classes make code modular within a program and serve as the blueprints for objects, modules make all of your code modular across all programs and are utilities to be used just as they are.

Through the use of modules, you can create your own toolbox with all sorts of parts and pieces that you commonly use. Modules can include anything from variables and constants to functions and even classes. Because of this versatility, you can set yourself up to have everything that you need at the beginning of any project.

Read more