This file contains 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/sh | |
## Remember to update kernel* and selinux-policy* before proprietary driver installation!!! | |
echo "Updating kernel & selinux policy..." | |
yum update kernel* selinux-policy* | |
echo "Erasing nouveau Xorg driver..." | |
yum erase xorg-x11-drv-nouveau | |
echo "Installing NVidia drivers" | |
yum install kmod-nvidia |
This file contains 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/sh | |
apt-get update | |
apt-get install -y apt-utils dialog htop most mc | |
apt-get dist-upgrade -y | |
reboot | |
### |
This file contains 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 | |
if [[ -n "$(which apt)" ]]; then | |
apt install -y wget unzip automake autoconf gcc make asterisk-dev | |
DESTDIR=/usr/lib/asterisk/modules | |
LDFLAGS="-z muldefs" | |
elif [[ -n "$(which yum)" ]]; then | |
yum install -y wget unzip automake autoconf gcc make asterisk-devel | |
DESTDIR=/usr/lib64/asterisk/modules | |
LDFLAGS="" |
This file contains 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 | |
yum install -y wget tcl | |
######## | |
OLD_PWD="${PWD}" | |
######## |
This file contains 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 | |
if [[ -z "$(hostname -d)" ]]; then | |
echo "Set up FQDN first!" | |
exit 0 | |
fi | |
echo "postfix postfix/mailname string $(hostname -f)" | debconf-set-selections | |
echo "postfix postfix/destinations string \$myhostname, $(hostname -s), localhost" | debconf-set-selections |
This file contains 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 | |
if [[ -z "$1" ]]; then | |
echo "Unified cert?" | |
exit 1 | |
fi | |
if [[ -z "$2" ]]; then | |
echo "Which cert?" | |
exit 1 |
This file contains 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 | |
USB_VENDOR=12d1 | |
USB_PRODUCT=14fe | |
USB_OPTIONS=-J | |
while [[ -n "$(lsusb | grep ${USB_VENDOR} | grep ${USB_PRODUCT})" ]]; do | |
usb_modeswitch -v ${USB_VENDOR} -p ${USB_PRODUCT} -R ${USB_OPTIONS} | |
sleep 10 | |
done |
This file contains 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
## Modem symlinks | |
# Modem: 0 | |
KERNEL=="ttyUSB*", KERNELS=="1-2:1.2", SYMLINK+="Modem0-audio" | |
KERNEL=="ttyUSB*", KERNELS=="1-2:1.3", SYMLINK+="Modem0-data" | |
# Modem: 1 | |
KERNEL=="ttyUSB*", KERNELS=="1-1:1.2", SYMLINK+="Modem1-audio" | |
KERNEL=="ttyUSB*", KERNELS=="1-1:1.3", SYMLINK+="Modem1-data" |
This file contains 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 | |
CONF_PRESETS=/etc/domain-access.conf | |
######################################################################################################################################## | |
if [[ -s ${CONF_PRESETS} ]]; then | |
source ${CONF_PRESETS} | |
else | |
echo -e "#GROUP_LOGIN=\"A rAnDoM dOmAiN gRoUp\"\n#GROUP_SSHD=\"OtHeR rAnDoM dOmAiN gRoUp\"\n#GROUP_SUDO=\"AnOtHeR rAnDoM dOmAiN gRoUp\"" > ${CONF_PRESETS} |
This file contains 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 | |
if [[ -z "$(which wbinfo)" || -z "$(wbinfo -t > /dev/null 2>&1 && echo ok)" ]]; then | |
if [[ -z "$1" ]]; then | |
echo "FQDN/hostname required!" | |
exit 1 | |
fi | |
TMP_FQDN=$1 |
OlderNewer