asdf
This commit is contained in:
@@ -1,18 +0,0 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
###################-p - \
|
||||
rdesktop \
|
||||
-x lan \
|
||||
-P \
|
||||
-z \
|
||||
-g 1920x1080 \
|
||||
-a 24 \
|
||||
-u gamestation \
|
||||
-d home.weaver \
|
||||
gamestation &
|
||||
#-g 3840x2160 \
|
||||
#-g 1024x768 \
|
||||
# -g 1024x768 \
|
||||
disown
|
||||
|
||||
exit 0
|
||||
@@ -1,37 +0,0 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# new Alpine container/VM setup script
|
||||
#
|
||||
# -*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
|
||||
|
||||
cat >/etc/apk/repositories <<EOF
|
||||
https://dl-cdn.alpinelinux.org/alpine/edge/main
|
||||
https://dl-cdn.alpinelinux.org/alpine/edge/community
|
||||
https://dl-cdn.alpinelinux.org/alpine/edge/testing
|
||||
EOF
|
||||
|
||||
apk update
|
||||
apk upgrade
|
||||
|
||||
# for compability with various projects
|
||||
apk add util-linux bash
|
||||
|
||||
apk add curl wget mandoc rsync git tree pv ncdu make neofetch pfetch htop neovim
|
||||
|
||||
apk add openssh openssh-server
|
||||
sed -i 's/.*PermitRootLogin.*/PermitRootLogin yes/' /etc/ssh/sshd_config
|
||||
rc-update add sshd default
|
||||
rc-service sshd start
|
||||
|
||||
apk add fail2ban
|
||||
rc-update add fail2ban default
|
||||
rc-service fail2ban start
|
||||
|
||||
if ! dmesg >&2 | grep 'Operation not permitted' >/dev/null ; then
|
||||
apk add qemu-guest-agent
|
||||
rc-update add qemu-guest-agent default
|
||||
rc-service qemu-guest-agent start
|
||||
fi
|
||||
|
||||
apk add samba samba-client cifs-utils samba-client
|
||||
|
||||
@@ -1,22 +0,0 @@
|
||||
#!/bin/sh
|
||||
|
||||
ALPINE='seedbox caddy pihole'
|
||||
UBUNTU='pbs proxmox portainer'
|
||||
|
||||
msg() {
|
||||
>&2 printf '[*] %s\n' "$*"
|
||||
}
|
||||
|
||||
for i in $ALPINE ; do
|
||||
if ping -q -W 2 -c 1 "$i" >/dev/null ; then
|
||||
msg "Updating: $i"
|
||||
ssh "$i" 'apk update;apk upgrade'
|
||||
fi
|
||||
done
|
||||
|
||||
for i in $UBUNTU ; do
|
||||
if ping -q -W 2 -c 1 "$i" >/dev/null ; then
|
||||
msg "Updating: $i"
|
||||
ssh "$i" 'apt update;apt upgrade -y;apt dist-upgrade -y;apt autoremove -y'
|
||||
fi
|
||||
done
|
||||
Reference in New Issue
Block a user