Skip to content

Instantly share code, notes, and snippets.

View hpherzog's full-sized avatar

Hans-Peter Herzog hpherzog

  • Ludwigshafen, Germany
View GitHub Profile
@hpherzog
hpherzog / create-ca-signed-ssl-cert.sh
Last active December 14, 2015 04:48
Create a self or ca signed ssl certificate with openssl on debian wheezy
#!/bin/sh
#####################################################
# #
# Create a ca signed ssl certificate with CA.pl #
# #
#####################################################
# http://www.debian-administration.org/article/618/Certificate_Authority_CA_with_OpenSSL
#!/bin/sh
apt-get -y install \
tomcat7 \
tomcat7-admin \
openjdk-7-jre-headless
@hpherzog
hpherzog / debian-pcspkr-error.sh
Last active January 23, 2016 08:09
Remove debian boot error "Driver pcspkr is already registered, aborting…"
#!/bin/sh
apt-get -y install alsa-base
echo "blacklist snd-pcsp" >> /etc/modprobe.d/alsa-base-blacklist
@hpherzog
hpherzog / debian-webmin.sh
Last active December 17, 2015 05:39
Install webmin on debian
#!/bin/sh
(cat <<-SRC
# webmin repository
deb http://download.webmin.com/download/repository sarge contrib
deb http://webmin.mirror.somersettechsolutions.co.uk/repository sarge contrib
SRC
) > /etc/apt/sources.list.d/webmin.list
#!/bin/sh
NEO4J_INSTALL_USER = "foo"
cd /tmp
(cat <<-SRC
# neo4j
deb http://debian.neo4j.org/repo stable/
SRC
@hpherzog
hpherzog / wheezy-default.sh
Last active December 20, 2015 17:09
A basic wheezy installation.
#!/bin/sh
(cat <<-SRC
# default repo
deb http://ftp.de.debian.org/debian/ wheezy main contrib non-free
deb-src http://ftp.de.debian.org/debian/ wheezy main contrib non-free
# security updates
deb http://security.debian.org/ wheezy/updates main contrib non-free
deb-src http://security.debian.org/ wheezy/updates main contrib non-free
@hpherzog
hpherzog / wheezy-kamailio.sh
Last active December 25, 2015 18:29
Install kamailio on debian wheezy
#!/bin/sh
(cat <<-SRC
# kamailio
# http://www.kamailio.org/wiki/packages/debs
deb http://deb.kamailio.org/kamailio wheezy main
deb-src http://deb.kamailio.org/kamailio wheezy main
SRC
) > /etc/apt/sources.list.d/kamailio.list
@hpherzog
hpherzog / debian-mongodb.sh
Last active December 26, 2015 02:49
Install mongodb on debian.
#!/bin/sh
(cat <<-SRC
# mongodb
# http://docs.mongodb.org/manual/tutorial/install-mongodb-on-debian
deb http://downloads-distro.mongodb.org/repo/debian-sysvinit dist 10gen
SRC
) > /etc/apt/sources.list.d/mongodb.list
cd /tmp
@hpherzog
hpherzog / wheezy-nodejs.sh
Last active December 28, 2015 12:59
Install node.js on debian wheezy.
#!/bin/sh
apt-get -y install \
python \
g++ \
make \
checkinstall
cd /tmp
mkdir node-install
@hpherzog
hpherzog / wheezy-rfc5766-turn-server.sh
Last active December 30, 2015 05:39
wheezy-rfc5766-turn-server
#!/bin/sh
apt-get -y install \
libevent-core-2.0-5 \
libevent-extra-2.0-5 \
libevent-openssl-2.0-5 \
libevent-pthreads-2.0-5 \
libhiredis0.10 \
libpq5