Skip to content

Instantly share code, notes, and snippets.

@der-hugo
der-hugo / InstallSheepitAsAService.sh
Created June 27, 2019 14:25
Run Sheepit-Client as a Linux Service
#!/bin/bash
###############################################################
# This Script creates a service and a dedicated user #
# for running sheepit-client (www.sheepit.com) on a headless #
# Linux-Server #
# #
# Author of this script is: [email protected] #
###############################################################
###############################################################
@der-hugo
der-hugo / update
Created November 10, 2017 10:21
Script for automated Ubuntu apt updates
#!/bin/bash
#########################
## returns:
# 0 - success
# 1 - success : Requires reboot
# 2 - updated failed
# 3 - upgrade failed
# 4 - dist-upgrade failed
# 5 - autoremove failed
*filter
:OUTPUT ACCEPT [0:0]
:FORWARD DROP [0:0]
:UDP - [0:0]
:INPUT DROP [0:0]
:TCP - [0:0]
:ICMP - [0:0]
# Acceptable TCP traffic
-A TCP -p tcp --dport 22 -j ACCEPT
-A TCP -p tcp --dport 10000 -j ACCEPT