atualiza scripts
This commit is contained in:
parent
af50ab3bd2
commit
6d52e82455
4
deleta_neofetch.sh
Normal file
4
deleta_neofetch.sh
Normal file
@ -0,0 +1,4 @@
|
||||
#!/bin/sh
|
||||
rm -f /usr/local/bin/neofetch
|
||||
rm -f /etc/profile.d/motd.sh
|
||||
rm -f /etc/motd
|
@ -1,4 +1,4 @@
|
||||
#!/bin/bash
|
||||
#!/bin/sh
|
||||
set -e
|
||||
apk update
|
||||
apk del curl wget vim htop screen
|
||||
@ -9,12 +9,9 @@ echo "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQC8tBRBfbN/GZZt88zn/5rUu7DD78winJ2anr
|
||||
echo "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDLMpGDC0cEgkV5rZwuZ8oTdjnsXChfU1PBCSMJZWvdcElFJoekGuHaOKZMT6JgHFOnq4tWg9Ph4SLSOfs1+dWD0YANA+uhi7+EA+ISPf+hDgdeOSFeYJqpCHiGdJeKKPdMC2BTrMcuZkPLlK+7XDF553mpX2JzOK7PqCY3aZOdmw+YmBUr7vQhDl48Nc/vtpYCDw+Msgc+vySofBXlAtJu9EO+fAoM6+Mxv6VFPW9myMaSQK9K0bBGAB30O8kSp/ybrBqWqsqX8ozX5yfeiE/6elY6W5zR0EHJKf0cBRIBHVwjHpT27AoUQhAYFToUjgZq0jU7Sh0BLs3AMwwN6YZB prppedro@arrandale" >> /root/.ssh/authorized_keys
|
||||
chmod 600 /root/.ssh/authorized_keys
|
||||
chmod 700 /root/.ssh
|
||||
passwd -u root
|
||||
passwd -u root || true
|
||||
/etc/init.d/sshd restart
|
||||
/etc/init.d/sshd start
|
||||
rc-update add sshd
|
||||
wget -O /usr/local/bin/neofetch "https://raw.githubusercontent.com/dylanaraps/neofetch/master/neofetch"
|
||||
chmod +x /usr/local/bin/neofetch
|
||||
echo "neofetch --config /etc/neofetch.conf" > /etc/profile.d/motd.sh
|
||||
echo "" > /etc/motd
|
||||
rm -f /etc/motd
|
||||
setup-timezone -z America/Araguaina
|
||||
|
@ -1,7 +1,7 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
yum remove curl wget vim htop
|
||||
yum install -y python3 nano openssh-server screen socat busybox
|
||||
yum remove -y curl wget vim htop screen
|
||||
yum install -y python3 nano openssh-server socat busybox
|
||||
sed -i "s/.*PasswordAuthentication.*/PasswordAuthentication no/g" /etc/ssh/sshd_config
|
||||
mkdir -p /root/.ssh
|
||||
echo "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQC8tBRBfbN/GZZt88zn/5rUu7DD78winJ2anrq2Ai3lrH8zq27bqsXw7/dXszsmtcrQ3JIxZIVDJ1hH1dHTZePdWxPB6QsmqTCvi+k058c+HMyym7m4biMfOefJy+peSFuRnyty2+/ZrzG8z1iX/JaNYsmkk8ZutrVCB6MRUwOto0S5W+TzgDGKCAIa8Ci96zq3SC3+6BSBWXgboMQOOQmfxxVZ9y9IMJVx4InChLgnMyIUh9DzGnFM4Lt81lPxPsX1xygKSKZAGxHxZwhb62faEJkDNbYT+ShIMZ+rkBvf36eU++3WswgU3/m+qn0VNX1OGI0ohw/eDyA+6lOrXLWq7g3ucbfJTjukohTMRbNyfOhuuFaaRe6lmFeDpaXM8kojDtdGmcHhmiGd89ptFoY3S7xShyrv8QmUJAw8w8PnGtX/PiD0KuKN85WC/cob4FrmPqzwK4dx//0diax3bSWISEotiAFUubNzrDbWjLysG4rz4pKRQLw+aLrycB6A72LRvV1Nwg731KhXjhaG/+eXkkZpKMIMtLvHr1lNtOQKiV6pRtqmOearjpOfxUHL5TAsrCrOTDa6urbVhNSpXIEYLrb9mA+kZRvvci3oqwzYSzGdj+J8kl79VKarOurJKaM8SMczuyIVoscio46L6Y//cWeaoyESkUM/k1pYsao0sQ== alphard@alphard-Z97X-Gaming-3" > /root/.ssh/authorized_keys
|
||||
@ -14,8 +14,5 @@ ln -s /usr/bin/busybox /usr/local/bin/wget
|
||||
ln -s /usr/bin/busybox /usr/local/bin/less
|
||||
ln -s /usr/bin/busybox /usr/local/bin/unzip
|
||||
ln -s /usr/bin/busybox /usr/local/bin/curl
|
||||
wget -O /usr/local/bin/neofetch "https://raw.githubusercontent.com/dylanaraps/neofetch/master/neofetch"
|
||||
chmod +x /usr/local/bin/neofetch
|
||||
echo "neofetch --config /etc/neofetch.conf" > /etc/profile.d/motd.sh
|
||||
echo "" > /etc/motd
|
||||
rm -f /etc/motd
|
||||
ln -sf /usr/share/zoneinfo/America/Araguaina /etc/localtime
|
||||
|
@ -9,15 +9,13 @@ echo "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQC8tBRBfbN/GZZt88zn/5rUu7DD78winJ2anr
|
||||
echo "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDLMpGDC0cEgkV5rZwuZ8oTdjnsXChfU1PBCSMJZWvdcElFJoekGuHaOKZMT6JgHFOnq4tWg9Ph4SLSOfs1+dWD0YANA+uhi7+EA+ISPf+hDgdeOSFeYJqpCHiGdJeKKPdMC2BTrMcuZkPLlK+7XDF553mpX2JzOK7PqCY3aZOdmw+YmBUr7vQhDl48Nc/vtpYCDw+Msgc+vySofBXlAtJu9EO+fAoM6+Mxv6VFPW9myMaSQK9K0bBGAB30O8kSp/ybrBqWqsqX8ozX5yfeiE/6elY6W5zR0EHJKf0cBRIBHVwjHpT27AoUQhAYFToUjgZq0jU7Sh0BLs3AMwwN6YZB prppedro@arrandale" >> /root/.ssh/authorized_keys
|
||||
chmod 600 /root/.ssh/authorized_keys
|
||||
chmod 700 /root/.ssh
|
||||
passwd -u root
|
||||
passwd -u root || true
|
||||
systemctl restart ssh
|
||||
systemctl enable ssh
|
||||
ln -s /usr/bin/busybox /usr/local/bin/wget
|
||||
ln -s /usr/bin/busybox /usr/local/bin/less
|
||||
ln -s /usr/bin/busybox /usr/local/bin/unzip
|
||||
ln -s /usr/bin/busybox /usr/local/bin/curl
|
||||
wget -O /usr/local/bin/neofetch "https://raw.githubusercontent.com/dylanaraps/neofetch/master/neofetch"
|
||||
chmod +x /usr/local/bin/neofetch
|
||||
echo "neofetch --config /etc/neofetch.conf" > /etc/profile.d/motd.sh
|
||||
echo "" > /etc/motd
|
||||
ln -s /usr/bin/busybox /usr/local/bin/telnet
|
||||
ln -s /usr/bin/busybox /usr/local/bin/traceroute
|
||||
rm -f /etc/motd
|
||||
ln -sf /usr/share/zoneinfo/America/Araguaina /etc/localtime
|
||||
|
21
packages_debian_sem_ansible.sh
Normal file
21
packages_debian_sem_ansible.sh
Normal file
@ -0,0 +1,21 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
apt update
|
||||
apt purge -y --autoremove curl wget vim screen htop
|
||||
apt install -y nano openssh-server busybox ca-certificates
|
||||
sed -i "s/.*PasswordAuthentication.*/PasswordAuthentication no/g" /etc/ssh/sshd_config
|
||||
mkdir -p /root/.ssh
|
||||
echo "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQC8tBRBfbN/GZZt88zn/5rUu7DD78winJ2anrq2Ai3lrH8zq27bqsXw7/dXszsmtcrQ3JIxZIVDJ1hH1dHTZePdWxPB6QsmqTCvi+k058c+HMyym7m4biMfOefJy+peSFuRnyty2+/ZrzG8z1iX/JaNYsmkk8ZutrVCB6MRUwOto0S5W+TzgDGKCAIa8Ci96zq3SC3+6BSBWXgboMQOOQmfxxVZ9y9IMJVx4InChLgnMyIUh9DzGnFM4Lt81lPxPsX1xygKSKZAGxHxZwhb62faEJkDNbYT+ShIMZ+rkBvf36eU++3WswgU3/m+qn0VNX1OGI0ohw/eDyA+6lOrXLWq7g3ucbfJTjukohTMRbNyfOhuuFaaRe6lmFeDpaXM8kojDtdGmcHhmiGd89ptFoY3S7xShyrv8QmUJAw8w8PnGtX/PiD0KuKN85WC/cob4FrmPqzwK4dx//0diax3bSWISEotiAFUubNzrDbWjLysG4rz4pKRQLw+aLrycB6A72LRvV1Nwg731KhXjhaG/+eXkkZpKMIMtLvHr1lNtOQKiV6pRtqmOearjpOfxUHL5TAsrCrOTDa6urbVhNSpXIEYLrb9mA+kZRvvci3oqwzYSzGdj+J8kl79VKarOurJKaM8SMczuyIVoscio46L6Y//cWeaoyESkUM/k1pYsao0sQ== alphard@alphard-Z97X-Gaming-3" > /root/.ssh/authorized_keys
|
||||
echo "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDLMpGDC0cEgkV5rZwuZ8oTdjnsXChfU1PBCSMJZWvdcElFJoekGuHaOKZMT6JgHFOnq4tWg9Ph4SLSOfs1+dWD0YANA+uhi7+EA+ISPf+hDgdeOSFeYJqpCHiGdJeKKPdMC2BTrMcuZkPLlK+7XDF553mpX2JzOK7PqCY3aZOdmw+YmBUr7vQhDl48Nc/vtpYCDw+Msgc+vySofBXlAtJu9EO+fAoM6+Mxv6VFPW9myMaSQK9K0bBGAB30O8kSp/ybrBqWqsqX8ozX5yfeiE/6elY6W5zR0EHJKf0cBRIBHVwjHpT27AoUQhAYFToUjgZq0jU7Sh0BLs3AMwwN6YZB prppedro@arrandale" >> /root/.ssh/authorized_keys
|
||||
chmod 600 /root/.ssh/authorized_keys
|
||||
chmod 700 /root/.ssh
|
||||
passwd -u root || true
|
||||
systemctl restart ssh
|
||||
systemctl enable ssh
|
||||
ln -s /usr/bin/busybox /usr/local/bin/wget
|
||||
ln -s /usr/bin/busybox /usr/local/bin/less
|
||||
ln -s /usr/bin/busybox /usr/local/bin/unzip
|
||||
ln -s /usr/bin/busybox /usr/local/bin/telnet
|
||||
ln -s /usr/bin/busybox /usr/local/bin/traceroute
|
||||
rm -f /etc/motd
|
||||
ln -sf /usr/share/zoneinfo/America/Araguaina /etc/localtime
|
Loading…
Reference in New Issue
Block a user