项目作者: mrguseinov-python

项目描述 :
Examples of system administration and automation scripts in Python.
高级语言: Python
项目地址: git://github.com/mrguseinov-python/sysadmin-automation.git
创建时间: 2021-04-13T08:05:45Z
项目社区:https://github.com/mrguseinov-python/sysadmin-automation

开源协议:GNU Affero General Public License v3.0

下载


Installation

Update the software.

  1. sudo apt update && sudo apt upgrade -y

Install python and pip (python package manager).

  1. sudo apt install python3.8 python3-pip

Install virtualenv (python environments manager).

  1. pip3 install virtualenv && source ~/.profile

Clone the repository and cd into it.

  1. git clone https://github.com/mrguseinov-python/sysadmin-automation.git && cd sysadmin-automation

Create a new virtual environment and activate it.

  1. virtualenv venv && source venv/bin/activate

Install the required packages.

  1. pip install -r requirements.txt

Usage

Activate the virtual environment if it’s not active.

  1. source venv/bin/activate

Run the *.py files. For example:

  1. python example-1.py