Giter Site home page Giter Site logo

jmike / cs-library Goto Github PK

View Code? Open in Web Editor NEW
3.0 3.0 2.0 160 KB

A collection of bash functions that composes an API for administrating CentOS Server linux boxes, i.e. provisioning websites, installing services, hardening daemons, etc.

License: GNU Lesser General Public License v3.0

Shell 100.00%

cs-library's Introduction

DESCRIPTION
***********
A collection of bash functions that composes an API for administrating CentOS Server linux boxes.
i.e. provisioning websites, installing services, hardening daemons, etc.

FILE USAGE
**********
ssh [email protected] -p 22
sudo -s
cd ~
wget --output-document=jmike-cs-library.tar.gz https://github.com/jmike/cs-library/tarball/master
tar -zxf jmike-cs-library.tar.gz
cd jmike-cs-library*
source <file> <parameters>
<function>
exit

GENERAL GUIDELINES
******************
Included functions are made to run on local machines.
Thus, installing a daemon to a remote server means that you first have to log-in to that server.

Say you like to create a MySQL replication cluster. The actions you would do are:
1. Login to 1st server via SSH
2. Donwload cs-library to server
3. Run functions to install MySQL daemon and set as master
4. Logout
5. Login to 2nd server via SSH
6. Donwload cs-library to remote server
7. Run functions to install MySQL daemon and set as slave
8. Logout

DAEMON INSTALLATION GUIDELINES
******************************
01. Install prerequisites
02. Create user & group
03. Create directories & set appropriate permissions
04. Donwload, compile & install files
05. Make binaries availiable to PATH
06. Configure
07. Set logs
08. Integrate into logrotate
09. Set daemon
10. Set firewall
11. Collect garbage
12. Secure the application (if needed)

THERE IS A PLACE FOR EVERYTHING
*******************************
A. Applications are installed in "/opt", i.e. /opt/mysql.
B. Configuration files are stored in "/etc", i.e. /etc/nginx/nginx.conf.
C. Log files are stored in "/var/log", i.e. /var/log/httpd/error.log.
D. State files, such as PID files, are stored in "/var/run", i.e. /var/run/mysql/mysql.pid.
E. Lock files are stored in "/var/lock", i.e. /var/run/mysql/mysql.lock.
F. Init.d scripts are stored in "/etc/init.d", i.e. /etc/init.d/sshd.
G. Profile.d scripts are stored in "/etc/profile.d", i.e. /etc/profile.d/mysql.sh.
H. Logrotate.d scripts are stored in "/etc/logrotate.d", i.e. /etc/logrotate.d/mysql.

cs-library's People

Contributors

ainet8infosec avatar jmike avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

oyonax peacedata0

cs-library's Issues

Status: RED-E-2GO

  1. network.sh CHECKED
  2. ssh.sh CHECKED
  3. firewall.sh CHECKED
  4. fail2ban.sh CHECKED
  5. java.sh CHECKED
  6. system.sh CHECKED
  7. httpd initscript CHECKED

Thus LIB is passing the checks from my point of view.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.