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 | |
INCREMENTDIR=`date +%Y-%m-%d` | |
LOGFILE=/root/usb/$INCREMENTDIR | |
attach_storage() | |
{ | |
set `lsusb -d ${ID_VENDOR_ID}:${ID_MODEL_ID}| sed 's/:.*//g'` | |
while [ ! -z "$1" ]; do | |
case $1 in | |
Bus) shift |
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
DRIVERS=="usb-storage", RUN+="/etc/udev/vboxusb.sh %p" |
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
# Package installation | |
apt install zabbix-agent -y | |
apt install zabbix-server-mysql -y | |
# MySql Database creation | |
mysql -uroot -ptest -e 'create database zabbix character set utf8 collate utf8_bin' | |
mysql -uroot -ptest -e "grant all privileges on zabbix.* to zabbix@localhost identified by 'zabbix'" | |
# MySql population of tables & data | |
zcat /usr/share/zabbix-server-mysql/{schema,images,data}.sql.gz | mysql -uzabbix -pzabbix zabbix |
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
#------------------------------------------------------------------------------# | |
# OFFICIAL UBUNTU REPOS # | |
#------------------------------------------------------------------------------# | |
# curl https://gist.githubusercontent.com/raultm/be1a4467e836f0a64ab6f9b2afe41760/raw/513da0c984b92fde56a49c73e6e7bd198a9be611/sources.list | sudo tee /etc/apt/sources.list && sudo apt update | |
###### Ubuntu Main Repos | |
deb http://es.archive.ubuntu.com/ubuntu/ bionic main restricted universe multiverse | |
deb-src http://es.archive.ubuntu.com/ubuntu/ bionic main restricted universe multiverse |
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 | |
# | |
# Copyright (c) 2011 The Chromium Authors. All rights reserved. | |
# Use of this source code is governed by a BSD-style license that can be | |
# found in the LICENSE file. | |
# Let the wrapped binary know that it has been run through the wrapper. | |
export CHROME_WRAPPER="`readlink -f "$0"`" | |
HERE="`dirname "$CHROME_WRAPPER"`" |
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
Set-ExecutionPolicy Unrestricted -Force; iex ((New-Object System.Net.WebClient).DownloadString('http://server/path/to/script.ps1')) |
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
# Instalación y configuración | |
wget https://raw.githubusercontent.com/raultm/setup-mrbs/master/mrbs-install-configure.sh && sh ./mrbs-install-configure.sh && rm ./mrbs-install-configure.sh | |
# Instalación LAMP (Apache/MySQL/PHP) y MRBS | |
wget https://raw.githubusercontent.com/raultm/setup-mrbs/master/01_Ubuntu18_LAMP_mrbs.sh && sh ./01_Ubuntu18_LAMP_mrbs.sh && rm ./01_Ubuntu18_LAMP_mrbs.sh | |
# Archivo Configuración MRBS (/var/www/html/config.inc.php) | |
wget https://raw.githubusercontent.com/raultm/setup-mrbs/master/02_configure-mrbs-ies.sh && sh ./02_configure-mrbs-ies.sh && rm ./02_configure-mrbs-ies.sh | |
# Solventar problemas con Locale si meses/dias no aparecen en español |
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 | |
# Instalación de paquete x11vnc | |
apt-get install x11vnc -y | |
# Creación de archivo de configuración de servicio para systemd | |
echo "# Description: Custom Service Unit file | |
# File: /etc/systemd/system/x11vnc.service | |
[Unit] | |
Description="x11vnc" |
OlderNewer