This Document describes the Requierements on the WarpServer given by the AlbianWarp Client
The Server should provide a JSON based API with Endpoints for Every Ressource the Server has to handle.
These Resources are:
#!/bin/bash | |
# Zero out all the remaining Space of a Virtual Machines Filesystem for Image Creation | |
dd if=/dev/zero of=/EMPTY bs=1M | |
sync | |
rm -f /EMPTY |
# Clean up Package Management | |
apt-get -y remove linux-headers-$(uname -r) build-essential | |
apt-get -y autoremove | |
apt-get -y clean | |
# Removing DHCP leases | |
echo "cleaning up dhcp leases" | |
rm /var/lib/dhcp/* | |
# Make sure Udev doesn't block our network |
# Dont just copy and paste it! | |
# i am not responsible for any dataloss or other damage! | |
### grow the Disk in vSphere ### | |
# Just do it, there is no way to Script that | |
### rescan all SCSI Devices to detect the Change ### | |
for scsi in /sys/class/scsi_device/*/device/rescan; do | |
echo 1 > $scsi | |
done |
#/bin/bash | |
# | |
# This script is used to Create a User Account with SUDO Privileges!!!, | |
# Display the Password and force the User to change that Password upon the first Login! | |
# | |
# Version: 1.0 | |
# Author: [email protected] | |
# Date: 02.08.2016 | |
#!/bin/bash | |
# | |
# This Script Regenerates the OpenSSH Host Keys, and deletes itself afterwards! | |
# Put this Script in the "/etc/rc5.d/" directory. | |
# | |
# Version: 1.1 | |
# Author: [email protected] | |
# Date 02.08.2016 | |
# SPDX-License-Identifier: MIT |
#!/bin/bash | |
# | |
# This Script sets a random root password, disables the root user and deletes itself afterwards! | |
# Put this Script in the "/etc/rc5.d/" directory. | |
# | |
# Version: 1.0 | |
# Author: [email protected] | |
# Date 02.08.2016 | |
genpasswd() { |
:: | |
:: This Script install the check-mk-agent and adds a Firewall Rule to the local Windows Firewall to allow Access to it! | |
:: https://gist.github.com/Ham5ter/2a8526e843c72ff9343bc3a38cdac97e | |
:: | |
:: Allow ICMP Echo (Ping) | |
netsh advfirewall firewall delete rule name="ICMP Allow incoming V4 echo request" | |
netsh advfirewall firewall add rule name="ICMP Allow incoming V4 echo request" protocol=icmpv4:8,any dir=in action=allow | |
:: Allow TCP Port 6556 (check-mk-agent) |
#!/bin/sh | |
sh -c 'sleep 5; xdotool type --delay 20 "$(xclip -o -selection clipboard)"' |
#!/bin/bash | |
# | |
# Very simple Script that checks a configured DNS Record, | |
# If it changed since the Last time this script was run, | |
# it alerts a specified Mail Recipient | |
# http://tecadmin.net/ways-to-send-email-from-linux-command-line/ | |
# | |
# Config Stuff | |
DOMAIN="example.com" |