#Access Server

ssh [email protected]

#Update Server TimeZone

dpkg-reconfigure tzdata

#Secure SSH acccess with a different port

vim /etc/ssh/sshd_config

#Restart SSH 

service ssh restart

#Keep SSH Connection Alive 

ClientAliveInterval 30
ClientAliveCountMax 999999

#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 ppa:jonathonf/vim
apt update
apt install vim

#Install Git

apt install git

#Beautyfy Terminal

  • follow this steps:
apt install zsh
  • Change permanently to zsh
chsh -s /bin/zsh 
  • Get .Antigen
git clone https://github.com/zsh-users/antigen.git .antigen
  • Edit .zshrc
vim ~/.zshrc
  • Copy the next Script:
# .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"

# SET COMMON ALIASES

#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"

# SET COMMON VIM CONFIGS

set mouse-=a
set paste

#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