#Access Server

ssh root@IP

#Update Server TimeZone

dpkg-reconfigure tzdata

#Secure SSH acccess with a different port

vim /etc/ssh/sshd_config

#Keep SSH Connection Alive 

ClientAliveInterval 30
ClientAliveCountMax 999999

#Restart SSH 

service ssh restart

#Add a Initial message 

vim /etc/motd
================= Project =========================================
https://project.io/
https://api.project.io/
https://cdn.project.io/
===================================================================

#Update/Upgrade Server

apt update; apt upgrade -y;

#Instalar Vim 8 Ubuntu/Mint

add-apt-repository -y ppa:jonathonf/vim
apt update
apt install vim -y

#Install Git

apt install git -y

#Beautyfy Terminal

  • follow this steps:
apt install zsh -y
  • Change permanently to zsh
chsh -s /bin/zsh 
  • Get .Antigen
git clone https://github.com/zsh-users/antigen.git .antigen
  • Add the next Script:
echo "# .zshrc Source Basic

source '${HOME}/.antigen/antigen.zsh'

# Load the oh-my-zsh's library.
antigen use oh-my-zsh

# Bundles from the default repo (robbyrussell's oh-my-zsh).
antigen bundle git
antigen bundle rsync
antigen bundle pip
antigen bundle python
antigen bundle history
antigen bundle command-not-found

# Third Party
antigen bundle kennethreitz/autoenv
antigen bundle zsh-users/zsh-completions

# Syntax highlighting bundle.
antigen bundle zsh-users/zsh-completions src
antigen bundle zsh-users/zsh-syntax-highlighting

# Load the theme.
antigen theme https://github.com/denysdovhan/spaceship-zsh-theme spaceship

# Tell antigen that you're done.
antigen apply

source '${HOME}/.aliases' " >> ~/.zshrc
  • Edit .zshrc
vim ~/.zshrc

# SET COMMON ALIASES

echo "#Set Aliases
alias gonginx='/etc/nginx/'
alias gomysql='/etc/mysql/'
alias www='/var/www/'
alias zshrc='vim ~/.zshrc'
alias aliax='vim ~/.aliases'
alias vimx='vim ~/.vimrc'" >> ~/.aliases

# SET COMMON VIM CONFIGS

echo"set mouse-=a
set paste" >> ~/.vimrc

#Verificar el nombre

hostname

#Reiniciar server

reboot

#Intalas EasyEngine

wget -qO ee rt.cx/ee && sudo bash ee

#Creas el sitio y actualizas php a la version 7

ee site create misitio.com --wpfc --php7

#Para verificar que la configuración de nginx sea correcta

nginx -t

#Reiniciar el servicio nginx

service nginx restart

#Limpiar todo el EasyEngine

ee clean --all