Skip to content

🚀 A highly customized, intelligent Centos initialization script.

License

Notifications You must be signed in to change notification settings

chypay/Centos-init

Repository files navigation

CentosInit.sh

支付宝捐助按钮

微信捐助按钮

中文版说明

A highly customized, intelligent Centos initialization script.

Sounds boring.

Let's try again.

The script will not make you a 10x developer...but you might feel like one.

Prerequisites

  • Centos7 System

  • 64bit Operating System.

  • curl or wget should be installed

Install

The CentosInit Script is installed by running one of the following commands in your terminal. You can install this via the command-line with either curl or wget.

via curl

sh -c "$(curl -fsSL https://tomotoes.com/Centos-init/install.sh)"

via wget

sh -c "$(wget https://tomotoes.com/Centos-init/install.sh -O -)"

Screenshots

screenshot

Usage

Basic introduction

Script functions are divided into four categories:

  1. Update
    updateLanguage

updateTime updateLanguage updateTime updateDNS updateYumSource updateHostname updateUlimit updateCoreConfig ```

  1. install

    installCommonSoft
    installGit
    installVim
    installZsh
    installNode
    installNpmPackages
    installPython
    installPipPackages
    installDocker
    installNginx
    installCcat
    installShadowSocks
  2. config

  configVim
  configZsh
  configGit
  configNode
  configDocker
  configNginx
  configShadowSocks
  1. secure
    • base

      deleteOrLockUnnecessaryUsersAndGroups
      setPrivileges
      closeCtrlAltDel
      closeIpv6
      closeSELinux
  • expert

       updateSSHPort
       useKeyLogin
       useIptable
       preventCrackingPassword
  • user

       getUserInfo
       addUser
       joinWheelGroup
       banRootLogin

Install separate function

If you want to install a single service( Update | Install | Config | Secure )

Please refer to the following example:

# Update only
ONLY_UPDATE=Y sh -c "$(curl -fsSL https://tomotoes.com/Centos-init/install.sh)"

# Install and Config
ONLY_INSTALL=Y ONLY_CONFIG=Y sh -c "$(curl -fsSL https://tomotoes.com/Centos-init/install.sh)"

Interactive mode

You can also set the installation to interactive mode, in which you will be asked if you want to proceed with the next installation and configuration steps.

Please refer to the following example:

INTERACTIVE=Y sh -c "$(curl -fsSL https://tomotoes.com/Centos-init/install.sh)"

License

The Script is released under the MIT license.

About

🚀 A highly customized, intelligent Centos initialization script.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages