Skip to content

Instantly share code, notes, and snippets.

View olmosleo's full-sized avatar

Leonardo Olmos Fernandez olmosleo

View GitHub Profile
@olmosleo
olmosleo / starting_network_configure_man.sh
Last active August 26, 2019 13:55
Manual Bash Script for Configure Network Interfaz (Support CentOS 6 o 7)
#!/bin/bash
# @octopusgen - 08-04-2017
# add dns servers
echo "nameserver 10.30.1.12" > /etc/resolv.conf
echo "nameserver 10.30.1.14" >> /etc/resolv.conf
# add network for ethX
ETH="eth1";
MAC="00:50:56:A1:31:C9";
IP="10.30.3.181";
@olmosleo
olmosleo / zabbix_install.sh
Last active May 4, 2017 13:52
Zabbix Server Deploy Script for CentOS 6 and 7
#!/bin/bash
# Zabbix Deploy on CentOS.
sudo yum update -y
# package essential tools for sysadmin
sudo yum install -y vim nano telnet screen nmap openssh-clients wget rsync git net-tools unzip traceroute
# Install EPEL Repositorio
sudo yum install epel-release
# Configure the ZabbixZone package repository and GPG key using command:
sudo rpm --import http://repo.zabbix.com/RPM-GPG-KEY-ZABBIX
#sudo rpm -Uv http://repo.zabbix.com/zabbix/2.4/rhel/7/x86_64/zabbix-release-2.4-1.el7.noarch.rpm
@olmosleo
olmosleo / zabbix_agent_install.sh
Last active April 22, 2021 05:50
Script for install Zabbix Agent on CentOS 7
#!/bin/bash
# Script for install Zabbix Agent on CentOS 7.
# github.com/@olmosleo
#SELINUX="/etc/selinux/config";
#echo "SELINUX=disabled" > $SELINUX;
#echo "SELINUXTYPE=targeted" >> $SELINUX;
# remember to reboot after install or just restart the machine when you finish to execute the script.
# Disabled SELINUX
@olmosleo
olmosleo / zabbix_agent_windows
Last active June 19, 2017 18:48
Zabbix Agent for Windows
# Zabbix Agent Windows 64-bits
https://drive.google.com/file/d/0B2A5WTOV-viseFgzNzhkbzgtbGc/view?usp=sharing
# Zabbix Agent Windows 32-bits
https://drive.google.com/file/d/0B2A5WTOV-visb3lpR1RMejBJR1E/view?usp=sharing
# Habilitar el servicio en el firewall de windows.
# Editar el archivo de configuracion del Zabbix Agent para que permita monitorear el servidor mismo.
# vi /etc/zabbix/zabbix_agentd.conf
#[...]
@olmosleo
olmosleo / vsFTPd.sh
Last active March 28, 2017 19:13
Install vsFTPd on CentOS 7 (FTP Server)
#!/bin/bash
sudo yum update -y
sudo yum install -y vim nano telnet screen nmap openssh-clients wget rsync git net-tools unzip traceroute
sudo yum -y install vsftpd
VSFTP_CONF="/etc/vsftpd/vsftpd.conf";
sudo cp $VSFTP_CONF $VSFTP_CONF.".RESPALDO";
echo "# vsFTPD Auto-Config Script" > $VSFTP_CONF;
@olmosleo
olmosleo / disabled_SELINUX.sh
Last active March 22, 2017 14:29
Script Disabled SELINUX on CentOS 6 or 7
#!/bin/bash
# Disabled SELINUX on CentOS 6 o 7 Linux.
SELINUX_CONF="/etc/selinux/config";
echo "# This file controls the state of SELinux on the system." > $SELINUX_CONF;
echo "# SELINUX= can take one of these three values:" >> $SELINUX_CONF;
echo "# enforcing - SELinux security policy is enforced." >> $SELINUX_CONF;
echo "# permissive - SELinux prints warnings instead of enforcing." >> $SELINUX_CONF;
echo "# disabled - No SELinux policy is loaded." >> $SELINUX_CONF;
echo "SELINUX=disabled" >> $SELINUX_CONF;
echo "# SELINUXTYPE= can take one of these two values:" >> $SELINUX_CONF;
@olmosleo
olmosleo / list_date.txt
Created March 24, 2017 18:18
Date From 1877-03-01 To 2013-06-13
1877-03-01
1877-03-02
1877-03-03
1877-03-04
1877-03-06
1877-03-07
1877-03-08
1877-03-09
1877-03-10
1877-03-12
@olmosleo
olmosleo / add_user_ftp.sh
Last active March 28, 2017 19:32
Create User FTP or SFTP (CentOS 6 or CentOS 7)
#!/bin/bash
# create a user to test the services (FTP and SFTP)
# $1 -> nombre_de_usuario
# $2 -> password
#!/bin/bash
# create a user to test the services (FTP and SFTP)
# $1 -> nombre_de_usuario
# $2 -> password
@olmosleo
olmosleo / INICIO
Created March 29, 2017 02:39
WP - Sayen.cl
[cdo_section id="" container="true" margin_bottom="true" bgcolor="#a593c2" class="colorwhite text-center nomargintop smallpadding"]
[cdo_icon icon="fa-custom-cake-white" color="#ffffff" size="medium" link="" blank="0" class="marginbottom20"]
[cdo_paragraph class="letter-space1 size18"]Toffee sugar plum halvah liquorice brownie gummies chocolate bar muffin candy canes.
Dessert jelly-o tootsie roll jelly sesame snaps icing. [/cdo_paragraph]
[/cdo_section]
[cdo_section id="" container="true" margin_bottom="false" bgcolor="" class="text-center"]
@olmosleo
olmosleo / HomePage2
Created March 29, 2017 02:40
WP - Sayen.cl
[cdo_section id="" container="true" margin_bottom="false" bgcolor="#a47bf8" class="colorwhite text-center nomargintop smallpadding"]
[cdo_icon icon="fa-custom-cake-white" color="#ffffff" size="medium" link="" blank="0" class="marginbottom20"]
[cdo_paragraph class="letter-space1 size18"]Toffee sugar plum halvah liquorice brownie gummies chocolate bar muffin candy canes.
Dessert jelly-o tootsie roll jelly sesame snaps icing. [/cdo_paragraph]
[/cdo_section]
[cdo_section id="" container="true" margin_bottom="false" bgcolor="" class="text-center smallpadding"]