Category: deployment

Install SafeLine WAF on Hetzner VPS even faster with cloud-init script on Debian 12

As you know my servers are hosted at hetzner.de – use this Link to get a 20€ start credit for your first servers. Now we will install a new virtual server with preparations for SafeLine WAF on Hetzner server. Preparations Select Debian 12 as your system! Follow the steps in the Article How to install...
debian deployment deployment - linux http linux tls waf

silent install silnite9

This is the silent installation for the silnite9 installer found at https://eclecticlight.co/downloads/ run the binary to get information on the current state of updates: Here is the zip file just in case the original is not available anymore: Download Just in case you wonder:Here is the explanation on “Why is my Mac’s Gatekeeper data so...
apple deployment - apple

silent install smartmontools on mac

#!/bin/bash set -x # Define variables SMART_PATH="/usr/local/sbin" SMARTCTL_PATH="$SMART_PATH/smartctl" SMARTUPDATEDB_PATH="$SMART_PATH/update-smart-drivedb" VERSION="7.4-1" BASE_URL="https://sourceforge.net/projects/smartmontools/files/smartmontools/7.4" DMG_FILE="smartmontools-${VERSION}.dmg" MD5_FILE="smartmontools-${VERSION}.dmg.md5" ASC_FILE="smartmontools-${VERSION}.dmg.asc" GPG_KEY="0C9577FD2C4CFCB4B9A599640A30812EFF3AEFF5" KEYSERVER="hkps://keys.openpgp.org" KEY_URL="https://www.smartmontools.org/browser/trunk/www/SmartmontoolsSigningKey_2021.txt?format=txt" KEY_DIR=$(dirname "$0") GPG_KEYFILE="$KEY_DIR/smartmontools_key.txt" DRIVE_DB="https://svn.code.sf.net/p/smartmontools/code/branches/RELEASE_7_3_DRIVEDB/smartmontools/drivedb.h" # Ensure running as root if [ "$(whoami)" != "root" ]; then echo "Error: This script must be run with superuser privileges." exit 1 fi # Check if smartmontools is already installed if command...
apple deployment - apple

install silnite7

This is the silent installation for the silnite7 installer found at https://eclecticlight.co/downloads/ run the binary to get information on the current state of updates: Here is the zip file just in case the original is not available anymore: Download Just in case you wonder:Here is the explanation on “Why is my Mac’s Gatekeeper data so...
apple deployment - apple

iptables – DNAT for Veeam-backup

When you have an internal Veeam-backup-server and you want to backup external linux-servers you need to create a destination NAT on the linux-server. Remember to add that line after every reboot if you do not save/restore iptables-rules during boot. You can choose the line with port-definition or just translate everything. Replace 127.0.0.1 with your external...
backup deployment - linux general

deploy – eset

echo offsetlocal ENABLEDELAYEDEXPANSIONif exist "C:\Program Files\ESET\ESET Security\ekrn.exe" (GOTO IS_INSTALLED) else (GOTO INSTALL)GOTO INSTALL :IS_INSTALLEDecho is installedeventcreate /L APPLICATION /T INFORMATION /SO %~n0%~x0 /ID 208 /D "%~0 -- eset is already installed"GOTO DONE :INSTALLecho installing softwareeventcreate /L APPLICATION /T INFORMATION /SO %~n0%~x0 /ID 404 /D "%~0 -- eset is not installed -- installing now…" if not...
bat deployment - windows general

deploy – google chrome

echo off setlocal ENABLEDELAYEDEXPANSION if exist "C:\Program Files\Google\Chrome\Application\chrome.exe" (GOTO IS_INSTALLED) else (GOTO INSTALL_UPGRADE) GOTO INSTALL_UPGRADE :IS_INSTALLED echo is installed eventcreate /L APPLICATION /T INFORMATION /SO %~n0%~x0 /ID 208 /D "%~0 -- Google Chrome is already installed - Upgrading" GOTO INSTALL_UPGRADE :INSTALL_UPGRADE echo installing software eventcreate /L APPLICATION /T INFORMATION /SO %~n0%~x0 /ID 404 /D "%~0...
bat deployment - windows general

deploy – OpenVPN client

if not exist c:\temp (mkdir c:\temp) if not exist c:\temp\OpenVPN-2.5.6-I601-amd64.msi ( curl -C - -o c:\temp\OpenVPN-2.5.6-I601-amd64.msi https://swupdate.openvpn.org/community/releases/OpenVPN-2.5.6-I601-amd64.msi) REM if exist "%programfiles%\OpenVPN\Uninstall.exe" (start /wait "%programfiles%\OpenVPN\Uninstall.exe") REM {E5931AF4-2A8F-48A5-AFC8-CE9B79C4B19D} OpenVPN 2.5.1-I601 amd64 msiexec.exe /x {E5931AF4-2A8F-48A5-AFC8-CE9B79C4B19D} /qn REM {E5931AF4-2A8F-48A5-AFC8-0E8A268358A0} OpenVPN 2.5.2-I601 amd64 msiexec.exe /x {E5931AF4-2A8F-48A5-AFC8-0E8A268358A0} /qn REM {919FC393-C79F-4043-ABD6-E80F81D3DD58} OpenVPN Connect start /wait msiexec.exe /x {919FC393-C79F-4043-ABD6-E80F81D3DD58} /qn REM {8B4BC420-3DCB-4018-A345-B24F7DBC30C3} OpenVPN...
bat deployment deployment - windows general windows

windows-updates and delivery defaults

REG ADD "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\DeliveryOptimization" /f /v DOAbsoluteMaxCacheSize /t REG_DWORD /d 16REG ADD "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\DeliveryOptimization" /f /v DOAllowVPNPeerCaching /t REG_DWORD /d 0REG ADD "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\DeliveryOptimization" /f /v DODelayBackgroundDownloadFromHttp /t REG_DWORD /d 1REG ADD "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\DeliveryOptimization" /f /v DODelayCacheServerFallbackBackground /t REG_DWORD /d 1REG ADD "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\DeliveryOptimization" /f /v DODelayCacheServerFallbackForeground /t REG_DWORD /d 1REG ADD "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\DeliveryOptimization" /f /v DODownloadMode /t REG_DWORD /d 1REG...
deployment - windows general windows

deploy – TeamViewer host

echo offsetlocal ENABLEDELAYEDEXPANSIONif exist %ProgramFiles(x86)%\TeamViewer\TeamViewer.exe (GOTO IS_INSTALLED) else (GOTO INSTALL)GOTO INSTALL :IS_INSTALLED echo is installed eventcreate /L APPLICATION /T INFORMATION /SO %~n0%~x0 /ID 208 /D "%~0 -- Teamviewer is already installed" REM assign Teamviewer to ABC "C:\Program Files (x86)\TeamViewer\Teamviewer.exe" assign --api-token=123456-xyzxyzxyz --grant-easy-access GOTO DONE :INSTALLecho installing softwareeventcreate /L APPLICATION /T INFORMATION /SO %~n0%~x0 /ID 404...
deployment - windows general windows

powershell – get installed software

Get-ItemProperty HKLM:\Software\Microsoft\Windows\CurrentVersion\Uninstall* | Format-Table PSChildName, DisplayName, Publisher, DisplayVersion, Version, UninstallString| Out-String -Width 300 Get-ItemProperty HKLM:\Software\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall* | Format-Table PSChildName, DisplayName, Publisher, DisplayVersion, Version, UninstallString| Out-String -Width 300
deployment - windows general powershell windows