Skip to content

Instantly share code, notes, and snippets.

@bitcloud
bitcloud / digitalocean_install_pdns.sh
Last active August 29, 2015 14:12
Installscript for recent debian pdns server on docker
export APT_LISTCHANGES_FRONTEND=none
export APT_LISTBUGS_FRONTEND=none
export DEBIAN_FRONTEND=noninteractive
MYSQLPW=<mysql_password>
PDNSPW=<pdns_mysql_password>
sed -e 's/ \(stable\|wheezy\)/ testing/ig' /etc/apt/sources.list > /etc/apt/sources.list.d/testing.list
sed -e 's/ \(stable\|wheezy\)/ unstable/ig' /etc/apt/sources.list | grep -v security > /etc/apt/sources.list.d/unstable.list
@bitcloud
bitcloud / addProxmoxNoLoginConsole.sh
Last active August 29, 2015 14:11
Add default logging Console to Ubuntu Guest
#!/bin/sh
# run as root
apt-get install mingetty
cat << EOF > /etc/init/ttyProxmox.conf
# ttyProxmox - autologin mingetty
start on stopped rc RUNLEVEL=[2345]
stop on runlevel [!2345]
@bitcloud
bitcloud / backup-hook.pl
Last active January 22, 2025 20:18
Proxmox backup-hook for Hetzner Server
#!/usr/bin/perl -w
# hook script for vzdump (--script option)
=begin comment
backuphook for Proxmox
renames files so that they include the hostname of the machine
Instructions for Hetzner Backup Server auth via SSH