Code Monkey home page Code Monkey logo

git-deploy-linux's Introduction

git-deploy-linux

Deploy your new Linux or update it.

mep-git.sh

mep-git.sh is the main script to deploy or update your linux server (Debian or Ubuntu) basics. You'll need to edit some variables before first start.

Syntax : ./mep-git.sh

What this script deploys actually :

  • .bashrc for all users, including welcome message, colors, historic
  • .vimrc for all users, including syntax, no auto-indent paste, tab indent replaced by spaces. Available too in python dev edition
  • atop with logrotate setup to register system stats every 5 minutes
  • issue.net for your login prompt
  • bug fix about the last important bash issue

This script will ask what to install/update.

.bashrc

.bashrc is your prompt command configuration. I've enhanced the historic time and space. It adds a welcome screen showing some useful informations about your server, some colors (folders, files) and a timestamp. It will deploys to all users.

.vimrc

.vimrc will configure your vim. Syntax color, no more tab but 4 space instead, you can paste some code without the auto-indent inconvenient, etc. Choose if your need a basic vim or an awesome vim useful to code in Python or other dev language. It will deploys to all users.

atop

atop is awesome to monitore your server. Every 5 minutes, it will take a shot of your system stats. You'll be able to navigate in it very easily, like if it was in realtime.

Syntax : atop -r ATOP_LOG_FILE -b hh:mm

issue.net

issue.net is just your login banner to warn user about their access.

ddosCheck.bash

ddosCheck.bash is a script to check if your server is under DDoS. The file just try to ping some ip or urls and if it meets the script configuration it considers there's a DDoS and start a tcpdump. This file will be really usefull for OVH VAC/DDoS team ! You'll have to add it in your crontab, each minutes will do the job perfectly.

blacksync.bash

blacksync.bash is an easy way to share your iptables script from a host to all your other hosts (named like this cause i use it for my iptables blacklists).

firewall.bash

firewall.bash is a basic iptables script that will close all ports and open ports you define.

whitelist.bash

whitelist.bash will help you to close your server to public and open it only to defined IPs.

mysql-backup.bash

mysql-backup.bash will do an export of your MySQL database and will compress it. To finish, it will delete old backups on the defined time in variables.

License

Please read and uderstand MIT Licence before use this script :

https://github.com/o-be-one/git-deploy-linux/blob/master/LICENSE

git-deploy-linux's People

Contributors

o-be-one avatar paris-ci avatar

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.