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.
-
Centos7 System
-
64bit Operating System.
-
curl
orwget
should be installed
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 -)"
Script functions are divided into four categories:
- Update
updateLanguage
updateTime updateLanguage updateTime updateDNS updateYumSource updateHostname updateUlimit updateCoreConfig ```
-
install
installCommonSoft installGit installVim installZsh installNode installNpmPackages installPython installPipPackages installDocker installNginx installCcat installShadowSocks
-
config
configVim
configZsh
configGit
configNode
configDocker
configNginx
configShadowSocks
- secure
-
base
deleteOrLockUnnecessaryUsersAndGroups setPrivileges closeCtrlAltDel closeIpv6 closeSELinux
-
-
expert
updateSSHPort useKeyLogin useIptable preventCrackingPassword
-
user
getUserInfo addUser joinWheelGroup banRootLogin
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)"
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)"
The Script is released under the MIT license.