#Entrar al servidor

ssh [email protected]

#Actualizar la zona horaria del lugar en que te encuentras

dpkg-reconfigure tzdata

#Cambio de puerto para mayor seguridad debe ser mayor a 1500

vim /etc/ssh/sshd_config

despues de cambiar el puerto reinicia el servicio de ssh

service ssh restart

#Agregar Mensaje

 

vim /etc/motd

 

#Actualizar el servidor

apt update; apt upgrade -y;

#Instalar Vim 8 Ubuntu/Mint

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

#Instalar Vim 8 Debian

$ sudo apt install ncurses-dev
$ wget https://github.com/vim/vim/archive/master.zip    
$ unzip master.zip
$ cd vim-master
$ cd src/
$ ./configure
$ make
$ sudo make install
$ vim

#Install Git

apt install git

#Vuelves a actualizar el servidor para que surtan efecto los cambio realizados

apt update; apt upgrade -y;

#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