This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
echo "(1/4) ------------- Actual - Time Zone ------------"; | |
date | |
echo "(2/4) ------------- Lista Disponible - Time Zone ------------"; | |
sudo cd /usr/share/zoneinfo/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
echo "Instalando Cloud SQL on CentOS 7"; | |
# LEER antes de ejecutar | |
# 1. Crear cuenta de servicio en GCP y descargar clave .json"; | |
# 2. Asignar los roles de SQL Viewer a la cuenta de servicio"; | |
# 3. copiar el contenido del .json al archivo key-sql.json en /opt/gcp/key-sql.json "; | |
# mas info en https://cloud.google.com/sql/docs/postgres/connect-compute-engine | |
sudo cd /opt/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
echo "Install JAVA 1.8.0"; | |
sudo yum -y update | |
# Install OpenJDK 8 JRE | |
sudo yum install -y java-1.8.0-openjdk | |
# Install OpenJDK 8 JDK |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# lsblk | |
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT | |
sda 8:0 0 20G 0 disk | |
`-sda1 8:1 0 20G 0 part /docs | |
vda 252:0 0 40G 0 disk | |
|-vda1 252:1 0 1G 0 part /boot | |
`-vda2 252:2 0 39G 0 part | |
|-centos-root 253:0 0 35.1G 0 lvm / | |
`-centos-swap 253:1 0 3.9G 0 lvm [SWAP] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
cp /etc/localtime /root/old.timezone | |
rm -fr /etc/localtime | |
ln -s /usr/share/zoneinfo/America/Santiago /etc/localtime | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
sed -i --follow-symlinks 's/SELINUX=enforcing/SELINUX=disabled/g' /etc/sysconfig/selinux | |
sudo yum install -y nfs-utils | |
mkdir /$1 | |
chmod 777 /$1 | |
systemctl enable rpcbind |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Autor: Leonardo Olmos | |
echo "+-----------------------------------------------+"; | |
echo "SELENIUM - Ejecutor de scripts (.slide) from IDE"; | |
echo "+-----------------------------------------------+"; | |
echo "Pasa como argumento el script generado por el IDE"; | |
echo "Ej: ./start_selenium.sh script.slide"; | |
echo "+-----------------------------------------------+"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
sudo yum groupinfo "Server with GUI" | |
sudo yum groupinfo "GNOME Desktop" | |
sudo yum groupinstall 'GNOME Desktop' | |
# systemctl enable graphical.target --force | |
#rm '/etc/systemd/system/default.target' | |
#ln -s '/usr/lib/systemd/system/graphical.target' '/etc/systemd/system/default.target' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
sudo yum update google-chrome-stable | |
echo "[google-chrome]" > /etc/yum.repos.d/google-chrome.repo | |
echo "name=google-chrome" >> /etc/yum.repos.d/google-chrome.repo | |
echo "baseurl=http://dl.google.com/linux/chrome/rpm/stable/$basearch" >> /etc/yum.repos.d/google-chrome.repo | |
echo "enabled=1" >> /etc/yum.repos.d/google-chrome.repo | |
echo "gpgcheck=1" >> /etc/yum.repos.d/google-chrome.repo | |
echo "gpgkey=https://dl-ssl.google.com/linux/linux_signing_key.pub" >> /etc/yum.repos.d/google-chrome.repo |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
## 64 bit linux ## | |
sudo wget https://www.rarlab.com/rar/rarlinux-x64-5.5.0.tar.gz | |
sudo tar -zxvf rarlinux-x64-5.5.0.tar.gz | |
sudo cd rar | |
sudo cp -v rar unrar /usr/local/bin/ |