From 12c77cdbfa4ec48d935af3ae7cf1118e38bec6e1 Mon Sep 17 00:00:00 2001 From: tv Date: Sun, 29 May 2011 15:47:21 +0200 Subject: lowered filesystem hierarchy--everything are modules --- modules/Monitoring/Makefile | 8 - modules/Monitoring/TODO | 5 - modules/Monitoring/conf/hostgroups_nagios2.cfg | 31 -- modules/Monitoring/conf/krebs_hosts.cfg | 78 ----- modules/Monitoring/conf/krebsnet.cfg | 20 -- modules/Monitoring/conf/localhost.cfg | 60 ---- modules/Monitoring/conf/other_hosts.cfg | 23 -- modules/Monitoring/conf/shack_infrastructure.cfg | 231 -------------- modules/Monitoring/conf/shacknet.cfg | 34 -- modules/Monitoring/conf/tinc_hosts.cfg | 45 --- modules/Monitoring/conf/tincnet.cfg | 31 -- .../htdocs/images/logos/krebs/favicon.ico | Bin 822 -> 0 bytes .../Monitoring/htdocs/images/logos/krebs/krebs.gd2 | Bin 1047 -> 0 bytes .../Monitoring/htdocs/images/logos/krebs/krebs.png | Bin 323 -> 0 bytes .../Monitoring/htdocs/images/logos/krebs/shack.gd2 | Bin 1047 -> 0 bytes .../Monitoring/htdocs/images/logos/krebs/shack.png | Bin 316 -> 0 bytes .../Monitoring/htdocs/images/logos/krebs/tinc.gd2 | Bin 1305 -> 0 bytes .../Monitoring/htdocs/images/logos/krebs/tinc.png | Bin 361 -> 0 bytes .../images/logos/krebs/wireless_access_point.gd2 | Bin 1047 -> 0 bytes .../images/logos/krebs/wireless_access_point.png | Bin 883 -> 0 bytes .../logos/krebs/wireless_access_point_64.png | Bin 5364 -> 0 bytes modules/Monitoring/plugins/check_sip | 252 --------------- modules/bigeye/bigeyed | 70 ----- modules/infest/Makefile | 18 -- modules/infest/bin/make-patch | 57 ---- modules/infest/bootstrap.sh | 23 -- modules/infest/core/angstrom | 4 - modules/infest/core/debian | 6 - modules/infest/host-patch/beagleboard/Makefile | 9 - .../infest/host-patch/beagleboard/profile.patch | 42 --- modules/infest/skel/etc/motd.tail | 10 - modules/infest/skel/etc/profile | 58 ---- modules/infest/skel/etc/rc.local | 10 - modules/infest/skel/home/.ssh/authorized_keys | 6 - modules/infest/skel/home/.vimrc | 31 -- modules/morse/COPYING | 14 - modules/morse/README | 32 -- modules/morse/morse.sh | 160 ---------- modules/node/Makefile | 8 - modules/noise/Makefile | 16 - modules/noise/TODO | 60 ---- modules/noise/cron/bin/zeit | 18 -- modules/noise/init.d/noise | 48 --- modules/noise/modules/cat | 14 - modules/noise/modules/chat | 33 -- modules/noise/modules/date | 6 - modules/noise/modules/echo | 6 - modules/noise/modules/ein_mal_eins | 37 --- modules/noise/modules/espeak | 34 -- modules/noise/modules/help | 24 -- modules/noise/modules/join | 15 - modules/noise/modules/lang | 22 -- modules/noise/modules/mpc | 14 - modules/noise/modules/names | 22 -- modules/noise/modules/nick | 10 - modules/noise/modules/part | 15 - modules/noise/modules/ping | 24 -- modules/noise/modules/play | 36 --- modules/noise/modules/pong | 26 -- modules/noise/modules/query | 23 -- modules/noise/modules/send_to_channel | 17 - modules/noise/modules/sendmail | 55 ---- modules/noise/modules/shackstatus | 104 ------ modules/noise/modules/sleep | 10 - modules/noise/modules/stream | 64 ---- modules/noise/modules/temp | 56 ---- modules/noise/modules/test | 13 - modules/noise/modules/twitter | 125 -------- modules/noise/modules/vvs | 17 - modules/noise/modules/wall | 8 - modules/noise/modules/zeit | 19 -- modules/noise/noise | 182 ----------- modules/noise/noise-as-user | 4 - modules/noise/noise-server | 4 - modules/people/Makefile | 6 - modules/people/README.md | 13 - modules/people/TODO.md | 3 - modules/people/VERSION | 1 - modules/people/arping.py | 37 --- modules/people/arping_users.py | 54 ---- modules/people/mac_names.lst | 1 - modules/retiolum/Makefile | 15 - modules/retiolum/README | 29 -- modules/retiolum/bin/fillxx | 6 - modules/retiolum/bin/hosts | 11 - modules/retiolum/bin/ipv6 | 35 --- modules/retiolum/bin/tinc | 18 -- modules/retiolum/bin/update_tinc_hosts | 33 -- modules/retiolum/doc/install_dotcloud | 85 ----- modules/retiolum/doc/install_no.de | 4 - modules/retiolum/scripts/README | 16 - modules/retiolum/scripts/adv_graphgen/README | 28 -- modules/retiolum/scripts/adv_graphgen/parse.py | 101 ------ modules/retiolum/scripts/adv_graphgen/sanitize.sh | 13 - modules/retiolum/scripts/autostart/Makefile | 14 - modules/retiolum/scripts/autostart/tinc | 94 ------ modules/retiolum/scripts/tinc_multicast/retiolum | 34 -- .../retiolum/scripts/tinc_multicast/retiolum.py | 349 --------------------- modules/retiolum/scripts/tinc_setup/README | 18 -- .../retiolum/scripts/tinc_setup/autoupdate_cron.sh | 7 - modules/retiolum/scripts/tinc_setup/bootstrap.sh | 11 - modules/retiolum/scripts/tinc_setup/build_arch.sh | 14 - .../retiolum/scripts/tinc_setup/build_debian.sh | 32 -- .../scripts/tinc_setup/build_debian_clean.sh | 31 -- modules/retiolum/scripts/tinc_setup/build_ec2.sh | 16 - modules/retiolum/scripts/tinc_setup/build_no.de.sh | 1 - modules/retiolum/scripts/tinc_setup/install.sh | 72 ----- modules/retiolum/scripts/tinc_setup/tinc-up | 20 -- .../retiolum/scripts/tinc_setup/write_channel.py | 26 -- modules/roboctl/index.js | 18 -- modules/roboctl/lib/irc.js | 67 ---- modules/streams/Makefile | 10 - modules/streams/README | 10 - modules/streams/deepmix | 27 -- modules/streams/groove | 29 -- modules/streams/radiotux | 29 -- modules/temper/.gitignore | 1 - modules/temper/99-tempsensor.rules | 1 - modules/temper/Makefile | 14 - modules/temper/temper.c | 277 ---------------- modules/temper/temper.h | 39 --- modules/webcams/cam1.sh | 2 - modules/zoneminder/Makefile | 14 - modules/zoneminder/zmdc.pl-LD_PRELOAD.patch | 10 - modules/zoneminder/zoneminder.conf | 2 - 125 files changed, 4355 deletions(-) delete mode 100644 modules/Monitoring/Makefile delete mode 100644 modules/Monitoring/TODO delete mode 100644 modules/Monitoring/conf/hostgroups_nagios2.cfg delete mode 100644 modules/Monitoring/conf/krebs_hosts.cfg delete mode 100644 modules/Monitoring/conf/krebsnet.cfg delete mode 100644 modules/Monitoring/conf/localhost.cfg delete mode 100644 modules/Monitoring/conf/other_hosts.cfg delete mode 100644 modules/Monitoring/conf/shack_infrastructure.cfg delete mode 100644 modules/Monitoring/conf/shacknet.cfg delete mode 100644 modules/Monitoring/conf/tinc_hosts.cfg delete mode 100644 modules/Monitoring/conf/tincnet.cfg delete mode 100644 modules/Monitoring/htdocs/images/logos/krebs/favicon.ico delete mode 100644 modules/Monitoring/htdocs/images/logos/krebs/krebs.gd2 delete mode 100644 modules/Monitoring/htdocs/images/logos/krebs/krebs.png delete mode 100644 modules/Monitoring/htdocs/images/logos/krebs/shack.gd2 delete mode 100644 modules/Monitoring/htdocs/images/logos/krebs/shack.png delete mode 100644 modules/Monitoring/htdocs/images/logos/krebs/tinc.gd2 delete mode 100644 modules/Monitoring/htdocs/images/logos/krebs/tinc.png delete mode 100644 modules/Monitoring/htdocs/images/logos/krebs/wireless_access_point.gd2 delete mode 100644 modules/Monitoring/htdocs/images/logos/krebs/wireless_access_point.png delete mode 100644 modules/Monitoring/htdocs/images/logos/krebs/wireless_access_point_64.png delete mode 100755 modules/Monitoring/plugins/check_sip delete mode 100755 modules/bigeye/bigeyed delete mode 100644 modules/infest/Makefile delete mode 100755 modules/infest/bin/make-patch delete mode 100644 modules/infest/bootstrap.sh delete mode 100755 modules/infest/core/angstrom delete mode 100755 modules/infest/core/debian delete mode 100644 modules/infest/host-patch/beagleboard/Makefile delete mode 100644 modules/infest/host-patch/beagleboard/profile.patch delete mode 100644 modules/infest/skel/etc/motd.tail delete mode 100755 modules/infest/skel/etc/profile delete mode 100755 modules/infest/skel/etc/rc.local delete mode 100644 modules/infest/skel/home/.ssh/authorized_keys delete mode 100644 modules/infest/skel/home/.vimrc delete mode 100644 modules/morse/COPYING delete mode 100644 modules/morse/README delete mode 100755 modules/morse/morse.sh delete mode 100644 modules/node/Makefile delete mode 100644 modules/noise/Makefile delete mode 100644 modules/noise/TODO delete mode 100755 modules/noise/cron/bin/zeit delete mode 100755 modules/noise/init.d/noise delete mode 100755 modules/noise/modules/cat delete mode 100755 modules/noise/modules/chat delete mode 100755 modules/noise/modules/date delete mode 100755 modules/noise/modules/echo delete mode 100755 modules/noise/modules/ein_mal_eins delete mode 100755 modules/noise/modules/espeak delete mode 100755 modules/noise/modules/help delete mode 100755 modules/noise/modules/join delete mode 100755 modules/noise/modules/lang delete mode 100755 modules/noise/modules/mpc delete mode 100755 modules/noise/modules/names delete mode 100755 modules/noise/modules/nick delete mode 100755 modules/noise/modules/part delete mode 100755 modules/noise/modules/ping delete mode 100755 modules/noise/modules/play delete mode 100755 modules/noise/modules/pong delete mode 100755 modules/noise/modules/query delete mode 100755 modules/noise/modules/send_to_channel delete mode 100755 modules/noise/modules/sendmail delete mode 100755 modules/noise/modules/shackstatus delete mode 100755 modules/noise/modules/sleep delete mode 100755 modules/noise/modules/stream delete mode 100755 modules/noise/modules/temp delete mode 100755 modules/noise/modules/test delete mode 100755 modules/noise/modules/twitter delete mode 100755 modules/noise/modules/vvs delete mode 100755 modules/noise/modules/wall delete mode 100755 modules/noise/modules/zeit delete mode 100755 modules/noise/noise delete mode 100755 modules/noise/noise-as-user delete mode 100755 modules/noise/noise-server delete mode 100644 modules/people/Makefile delete mode 100644 modules/people/README.md delete mode 100644 modules/people/TODO.md delete mode 100644 modules/people/VERSION delete mode 100755 modules/people/arping.py delete mode 100755 modules/people/arping_users.py delete mode 100644 modules/people/mac_names.lst delete mode 100644 modules/retiolum/Makefile delete mode 100644 modules/retiolum/README delete mode 100755 modules/retiolum/bin/fillxx delete mode 100755 modules/retiolum/bin/hosts delete mode 100755 modules/retiolum/bin/ipv6 delete mode 100755 modules/retiolum/bin/tinc delete mode 100755 modules/retiolum/bin/update_tinc_hosts delete mode 100644 modules/retiolum/doc/install_dotcloud delete mode 100644 modules/retiolum/doc/install_no.de delete mode 100644 modules/retiolum/scripts/README delete mode 100644 modules/retiolum/scripts/adv_graphgen/README delete mode 100755 modules/retiolum/scripts/adv_graphgen/parse.py delete mode 100755 modules/retiolum/scripts/adv_graphgen/sanitize.sh delete mode 100644 modules/retiolum/scripts/autostart/Makefile delete mode 100755 modules/retiolum/scripts/autostart/tinc delete mode 100755 modules/retiolum/scripts/tinc_multicast/retiolum delete mode 100755 modules/retiolum/scripts/tinc_multicast/retiolum.py delete mode 100644 modules/retiolum/scripts/tinc_setup/README delete mode 100644 modules/retiolum/scripts/tinc_setup/autoupdate_cron.sh delete mode 100644 modules/retiolum/scripts/tinc_setup/bootstrap.sh delete mode 100755 modules/retiolum/scripts/tinc_setup/build_arch.sh delete mode 100755 modules/retiolum/scripts/tinc_setup/build_debian.sh delete mode 100755 modules/retiolum/scripts/tinc_setup/build_debian_clean.sh delete mode 100755 modules/retiolum/scripts/tinc_setup/build_ec2.sh delete mode 100644 modules/retiolum/scripts/tinc_setup/build_no.de.sh delete mode 100755 modules/retiolum/scripts/tinc_setup/install.sh delete mode 100755 modules/retiolum/scripts/tinc_setup/tinc-up delete mode 100644 modules/retiolum/scripts/tinc_setup/write_channel.py delete mode 100644 modules/roboctl/index.js delete mode 100644 modules/roboctl/lib/irc.js delete mode 100644 modules/streams/Makefile delete mode 100644 modules/streams/README delete mode 100755 modules/streams/deepmix delete mode 100755 modules/streams/groove delete mode 100755 modules/streams/radiotux delete mode 100644 modules/temper/.gitignore delete mode 100644 modules/temper/99-tempsensor.rules delete mode 100644 modules/temper/Makefile delete mode 100644 modules/temper/temper.c delete mode 100644 modules/temper/temper.h delete mode 100755 modules/webcams/cam1.sh delete mode 100644 modules/zoneminder/Makefile delete mode 100644 modules/zoneminder/zmdc.pl-LD_PRELOAD.patch delete mode 100644 modules/zoneminder/zoneminder.conf (limited to 'modules') diff --git a/modules/Monitoring/Makefile b/modules/Monitoring/Makefile deleted file mode 100644 index cc1d8903..00000000 --- a/modules/Monitoring/Makefile +++ /dev/null @@ -1,8 +0,0 @@ -.phony: debian -debian: - [ `which nagios3` ] || apt-get install nagios3 - rm /etc/nagios3/conf.d/localhost_nagios2.cfg || true - cp -r conf/* /etc/nagios3/conf.d/ - cp -R htdocs/* /usr/share/nagios3/htdocs/ - cp -r plugins /usr/lib/nagios - /etc/init.d/nagios3 reload diff --git a/modules/Monitoring/TODO b/modules/Monitoring/TODO deleted file mode 100644 index 6d74fdcd..00000000 --- a/modules/Monitoring/TODO +++ /dev/null @@ -1,5 +0,0 @@ -add guest user -add guest user to -> * authorized_for_all_services=usernagios,guest -> * authorized_for_all_hosts=usernagios,guest -in /etc/nagios3/somewhere diff --git a/modules/Monitoring/conf/hostgroups_nagios2.cfg b/modules/Monitoring/conf/hostgroups_nagios2.cfg deleted file mode 100644 index 63acbf50..00000000 --- a/modules/Monitoring/conf/hostgroups_nagios2.cfg +++ /dev/null @@ -1,31 +0,0 @@ -# Some generic hostgroup definitions - -# A simple wildcard hostgroup -define hostgroup { - hostgroup_name all - alias All Servers - members * - } - -# A list of your Debian GNU/Linux servers -define hostgroup { - hostgroup_name debian-servers - alias Debian GNU/Linux Servers - members localhost - } - -# A list of your web servers -define hostgroup { - hostgroup_name http-servers - alias HTTP servers - members localhost - } - -# A list of your ssh-accessible servers -define hostgroup { - hostgroup_name ssh-servers - alias SSH servers - members localhost - } - - diff --git a/modules/Monitoring/conf/krebs_hosts.cfg b/modules/Monitoring/conf/krebs_hosts.cfg deleted file mode 100644 index a929fa19..00000000 --- a/modules/Monitoring/conf/krebs_hosts.cfg +++ /dev/null @@ -1,78 +0,0 @@ - -# -# Ur-Krebs -# -define host{ - use generic-host - host_name krebs.shack - alias krebs - _tinc_address 10.7.7.156 - address 10.42.23.5 - parents shack-coreswitch - hostgroups krebs-machines,tinc-nodes,ssh-servers - } -# -# UTART -# -define host{ - use generic-host - host_name utart - alias UTART - _tinc_address 10.7.7.66 - address 10.42.23.23 - parents shack-coreswitch - hostgroups krebs-machines,tinc-nodes,ssh-servers - } -# -# ytart -# will use tinc ip as long as no static ip is supplied -# -define host{ - use generic-host - host_name ytart - alias ytart - _tinc_address 10.7.7.201 - parents shack-wlan-ap5 - address 10.7.7.201 - hostgroups krebs-machines,tinc-nodes,ssh-servers - } -# -# uPM -# -define host{ - use generic-host - host_name upm - alias uPM Virtual Machine - _tinc_address 10.7.7.99 - address upm.shack - parents shack-node1 - hostgroups krebs-machines,ssh-servers,shack-rz - #,tinc-nodes - } - -# TODO add upm and genericore as tinc-nodes -# TODO check MONGODB on uPM - - - -#TODO verkrebse genericore/get password -define host{ - use generic-host - host_name genericore - alias genericore Virtual Machine - #_tinc_address 10.7.7.XX - address genericore.shack - parents shack-node1 - hostgroups ssh-servers,shack-rz - #,tinc-nodes,krebs-machines - } - -define host{ - use generic-host - host_name shepherd - alias Shepherd Krebs - _tinc_address 10.7.7.29 - address 10.42.23.42 - parents shack-coreswitch - hostgroups krebs-machines,tinc-nodes,ssh-servers - } diff --git a/modules/Monitoring/conf/krebsnet.cfg b/modules/Monitoring/conf/krebsnet.cfg deleted file mode 100644 index ae5b898e..00000000 --- a/modules/Monitoring/conf/krebsnet.cfg +++ /dev/null @@ -1,20 +0,0 @@ -## extended infos for krebsnet -define hostgroup { - hostgroup_name krebs-machines - alias Krebs Machines - } -define hostextinfo{ - hostgroup_name krebs-machines - notes Deployed Krebse -# notes_url http://webserver.localhost.localdomain/hostinfo.pl?host=netware1 - icon_image krebs/krebs.png - icon_image_alt Krebs - vrml_image krebs.png - statusmap_image krebs/krebs.gd2 - } -#define host{ -# use generic-host -# register 0 -# name tinc-only-host -# check_command check_internal_tinc_up!100.0,20%!500.0,60% -# } diff --git a/modules/Monitoring/conf/localhost.cfg b/modules/Monitoring/conf/localhost.cfg deleted file mode 100644 index 3b098195..00000000 --- a/modules/Monitoring/conf/localhost.cfg +++ /dev/null @@ -1,60 +0,0 @@ -# A simple configuration file for monitoring the local host -# This can serve as an example for configuring other servers; -# Custom services specific to this host are added here, but services -# defined in nagios2-common_services.cfg may also apply. -# - -define host{ - use generic-host ; Name of host template to use - host_name localhost - alias localhost - address 127.0.0.1 - hostgroups krebs-machines - } - -# Define a service to check the disk space of the root partition -# on the local machine. Warning if < 20% free, critical if -# < 10% free space on partition. - -define service{ - use generic-service ; Name of service template to use - host_name localhost - service_description Disk Space - check_command check_all_disks!20%!10% - } - - - -# Define a service to check the number of currently logged in -# users on the local machine. Warning if > 20 users, critical -# if > 50 users. - -define service{ - use generic-service ; Name of service template to use - host_name localhost - service_description Current Users - check_command check_users!20!50 - } - - -# Define a service to check the number of currently running procs -# on the local machine. Warning if > 250 processes, critical if -# > 400 processes. - -define service{ - use generic-service ; Name of service template to use - host_name localhost - service_description Total Processes - check_command check_procs!250!400 - } - - - -# Define a service to check the load on the local machine. - -define service{ - use generic-service ; Name of service template to use - host_name localhost - service_description Current Load - check_command check_load!5.0!4.0!3.0!10.0!6.0!4.0 - } diff --git a/modules/Monitoring/conf/other_hosts.cfg b/modules/Monitoring/conf/other_hosts.cfg deleted file mode 100644 index bfc36154..00000000 --- a/modules/Monitoring/conf/other_hosts.cfg +++ /dev/null @@ -1,23 +0,0 @@ -define host{ - use generic-host - host_name google.de - alias Google Website - address google.de - parents shack-modem - hostgroups http-servers - } - -define host{ - use generic-host - host_name google-dns - parents shack-gw - parents shack-modem - alias Google DNS Service (always reachable) - address 8.8.8.8 - } -define service { - host_name google-dns - service_description DNS Service - use generic-service - check_command check_dns - } diff --git a/modules/Monitoring/conf/shack_infrastructure.cfg b/modules/Monitoring/conf/shack_infrastructure.cfg deleted file mode 100644 index dd123dc3..00000000 --- a/modules/Monitoring/conf/shack_infrastructure.cfg +++ /dev/null @@ -1,231 +0,0 @@ -# - -# -# Shack Virtual Machine Hoster Platform -# - -# -# Virtualization and storage -# -define host{ - use generic-host - host_name shack-node1 - alias Shack Virtualization Server - address 10.42.0.10 - parents shack-serverswitch - hostgroups shack-rz,ssh-servers - } -define host{ - use generic-host - host_name shack-zetbox - alias Shack Virtualization Server - address 10.42.0.10 - parents shack-serverswitch - hostgroups shack-rz,ssh-servers - } -define host{ - use generic-host - host_name shack-plattenschwein - parents shack-serverswitch - alias Shack Plattenschwein - address 10.42.0.12 - hostgroups shack-rz,ssh-servers - } -define host{ - use generic-host - host_name shack-gauda0 - parents shack-serverswitch - alias Shack gauda0 Mining Server - address gauda0.shack - hostgroups shack-rz - } -# -# Network Infrastructure -# - -# -## Shack gateway (no gateway-no internet) -# -define host{ - use generic-host - host_name shack-gw - parents shack-coreswitch - alias Watchguard Shack Gateway - address 10.42.0.1 - hostgroups shack-rz,ssh-servers - } -define host{ - use generic-host - host_name shack-modem - parents shack-gw - alias Shack Telecom VDSL Router - address 192.168.2.1 - hostgroups shack-rz - } -define host{ - use generic-host - host_name shack-externswitch - parents shack-gw - alias Shack External Switch (2.OG) - address 10.0.10.2 - hostgroups shack-rz - } - -define service { - host_name shack-gw - service_description DNS Service - use generic-service - check_command check_dns - } -define host{ - use generic-host - host_name shack-coreswitch - alias Shack Cisco Router Coreswitch - address 10.42.0.3 - hostgroups shack-rz,ssh-servers - } -define host{ - use generic-host - host_name shack-serverswitch - parents shack-coreswitch - alias Shack Cisco Router Serverswitch - address 10.42.0.4 - hostgroups shack-rz - } - -define host{ - use generic-host - host_name shack-wlan-ap1 - parents shack-coreswitch - alias Shack Wlan Access Point 1 - address 10.42.0.5 - hostgroups wlan-ap - } -define host{ - use generic-host - host_name shack-wlan-ap2 - parents shack-coreswitch - alias Shack Wlan Access Point 2 - address 10.42.0.6 - hostgroups wlan-ap - } -define host{ - use generic-host - host_name shack-wlan-ap3 - parents shack-coreswitch - alias Shack Wlan Access Point 3 - address 10.42.0.7 - hostgroups wlan-ap - } -define host{ - use generic-host - host_name shack-wlan-ap4 - parents shack-coreswitch - alias Shack Wlan Access Point 4 - address 10.42.0.8 - hostgroups wlan-ap - } -define host{ - use generic-host - host_name shack-wlan-ap5 - parents shack-coreswitch - alias Shack Wlan Access Point 5 - address 10.42.0.9 - hostgroups wlan-ap - } -# -# Voip Infrastructure -# -define host{ - use generic-host - host_name shack-voip - alias Shack Cisco VOIP Gateway - address 10.42.0.2 - parents shack-coreswitch - hostgroups shack-rz,http-servers - } - -define service{ - host_name shack-voip - service_description SIP Service - use generic-service - check_command check_sip - } - - - - - -# -# Shack DNS Server -# - -define host{ - use generic-host - host_name shack-dns - parents shack-zetbox - alias Shack DNS Virtual Host - address 10.42.0.100 - hostgroups shack-rz - } -define service { - host_name shack-dns - service_description DNS Service - use generic-service - check_command check_dns_shack - } - -define host{ - use generic-host - host_name shack-pxe - parents shack-zetbox - alias Shack PXEBoot Vhost - address pxeboot.shack - hostgroups shack-rz - } - -define host{ - use generic-host - host_name shack-printsrv - parents shack-node1 - alias Shack Print Server - address printer.shack - hostgroups shack-rz - } - -define host{ - use generic-host - host_name shack-aptproxy - parents shack-zetbox - alias Shack Apt-proxy - address aptproxy.shack - hostgroups shack-rz - } - -define host{ - use generic-host - host_name shack-shack - parents shack-node1 - alias Shack Data Exchange - address shack.shack - hostgroups shack-rz,ssh-servers - } - -# -# shack ldap server -# -define host{ - use generic-host - host_name shack-ldap - parents shack-zetbox - alias Shack LDAP Server - address ldap.shack - hostgroups shack-rz - } -define service { - host_name shack-ldap - service_description LDAP Service - use generic-service - check_command check_ldap!shammunity - } - diff --git a/modules/Monitoring/conf/shacknet.cfg b/modules/Monitoring/conf/shacknet.cfg deleted file mode 100644 index 7658ab80..00000000 --- a/modules/Monitoring/conf/shacknet.cfg +++ /dev/null @@ -1,34 +0,0 @@ -define hostgroup { - hostgroup_name shack-rz - alias Shack RZ Infrastructure - } -define hostgroup { - hostgroup_name wlan-ap - alias Shack Wlan Access Points - } -define hostextinfo{ - hostgroup_name wlan-ap - notes Access Points for Shack - icon_image krebs/wireless_access_point.png - icon_image_alt wireless_access_point - vrml_image wireless_access_point.png - statusmap_image krebs/wireless_access_point.gd2 - } -define hostextinfo{ - hostgroup_name shack-rz - notes Shack RZ Infrastructure - icon_image krebs/shack.png - icon_image_alt shack-RZ - vrml_image shack.png - statusmap_image krebs/shack.gd2 - } - -define command { - command_name check_sip - command_line $USER1$/check_tcp -H $HOSTADDRESS$ -p 5060 - } - -define command { - command_name check_dns_shack - command_line $USER1$/check_dns -H shack.shack -s '$HOSTADDRESS$' - } diff --git a/modules/Monitoring/conf/tinc_hosts.cfg b/modules/Monitoring/conf/tinc_hosts.cfg deleted file mode 100644 index 23c2b75e..00000000 --- a/modules/Monitoring/conf/tinc_hosts.cfg +++ /dev/null @@ -1,45 +0,0 @@ -#connection will not work if no internet is available (e.g. no shack-gateway) - -# -# Miefda Supernode -# -define host{ - use generic-host - host_name supernode - alias Supernode External - _TINC_ADDRESS 10.7.7.1 - address miefda.org - parents shack-modem - hostgroups tinc-nodes,ssh-servers,http-servers - } - -define service { - host_name supernode - service_description IRC - use generic-service - check_command check_ircd - } -# -# Sharepoint (dhbw-stuttgart) -# -define host{ - use generic-host - host_name sharepoint - alias PA Sharepoint - address 141.31.8.11 - _TINC_ADDRESS 10.7.7.5 - parents shack-modem - hostgroups tinc-nodes,ssh-servers - } -# -# Leechi -# -define host{ - use generic-host - host_name leechi - alias no_omo - address leechi.kicks-ass.org - _TINC_ADDRESS 10.7.7.111 - parents shack-modem - hostgroups tinc-nodes,ssh-servers,http-servers - } diff --git a/modules/Monitoring/conf/tincnet.cfg b/modules/Monitoring/conf/tincnet.cfg deleted file mode 100644 index f0b35b4e..00000000 --- a/modules/Monitoring/conf/tincnet.cfg +++ /dev/null @@ -1,31 +0,0 @@ -define hostgroup { - hostgroup_name tinc-nodes - alias Tinc Nodes - } - -define hostextinfo{ - hostgroup_name tinc-nodes - notes Tinc Nodes - icon_image krebs/tinc.png - icon_image_alt tinc - vrml_image tinc.png - statusmap_image krebs/tinc.gd2 - } - -define command { - command_name check_internal_tinc_up - command_line $USER1$/check_ping -H $_HOSTTINC_ADDRESS$ -w $ARG1$ -c $ARG2$ - } -define command { - command_name check_ircd - command_line $USER1$/check_ircd $_HOSTTINC_ADDRESS$ - } - -define service { - hostgroup_name tinc-nodes - service_description tinc internal - check_command check_internal_tinc_up!100.0,20%!500.0,60% - use generic-service - notification_interval 0 -} - diff --git a/modules/Monitoring/htdocs/images/logos/krebs/favicon.ico b/modules/Monitoring/htdocs/images/logos/krebs/favicon.ico deleted file mode 100644 index fa18384c..00000000 Binary files a/modules/Monitoring/htdocs/images/logos/krebs/favicon.ico and /dev/null differ diff --git a/modules/Monitoring/htdocs/images/logos/krebs/krebs.gd2 b/modules/Monitoring/htdocs/images/logos/krebs/krebs.gd2 deleted file mode 100644 index 1113f03e..00000000 Binary files a/modules/Monitoring/htdocs/images/logos/krebs/krebs.gd2 and /dev/null differ diff --git a/modules/Monitoring/htdocs/images/logos/krebs/krebs.png b/modules/Monitoring/htdocs/images/logos/krebs/krebs.png deleted file mode 100644 index 3d8a8ab8..00000000 Binary files a/modules/Monitoring/htdocs/images/logos/krebs/krebs.png and /dev/null differ diff --git a/modules/Monitoring/htdocs/images/logos/krebs/shack.gd2 b/modules/Monitoring/htdocs/images/logos/krebs/shack.gd2 deleted file mode 100644 index 8b0d98e5..00000000 Binary files a/modules/Monitoring/htdocs/images/logos/krebs/shack.gd2 and /dev/null differ diff --git a/modules/Monitoring/htdocs/images/logos/krebs/shack.png b/modules/Monitoring/htdocs/images/logos/krebs/shack.png deleted file mode 100644 index 53f1275b..00000000 Binary files a/modules/Monitoring/htdocs/images/logos/krebs/shack.png and /dev/null differ diff --git a/modules/Monitoring/htdocs/images/logos/krebs/tinc.gd2 b/modules/Monitoring/htdocs/images/logos/krebs/tinc.gd2 deleted file mode 100644 index 36572d4a..00000000 Binary files a/modules/Monitoring/htdocs/images/logos/krebs/tinc.gd2 and /dev/null differ diff --git a/modules/Monitoring/htdocs/images/logos/krebs/tinc.png b/modules/Monitoring/htdocs/images/logos/krebs/tinc.png deleted file mode 100644 index daa1fdeb..00000000 Binary files a/modules/Monitoring/htdocs/images/logos/krebs/tinc.png and /dev/null differ diff --git a/modules/Monitoring/htdocs/images/logos/krebs/wireless_access_point.gd2 b/modules/Monitoring/htdocs/images/logos/krebs/wireless_access_point.gd2 deleted file mode 100644 index 6e740ec4..00000000 Binary files a/modules/Monitoring/htdocs/images/logos/krebs/wireless_access_point.gd2 and /dev/null differ diff --git a/modules/Monitoring/htdocs/images/logos/krebs/wireless_access_point.png b/modules/Monitoring/htdocs/images/logos/krebs/wireless_access_point.png deleted file mode 100644 index 9febe45e..00000000 Binary files a/modules/Monitoring/htdocs/images/logos/krebs/wireless_access_point.png and /dev/null differ diff --git a/modules/Monitoring/htdocs/images/logos/krebs/wireless_access_point_64.png b/modules/Monitoring/htdocs/images/logos/krebs/wireless_access_point_64.png deleted file mode 100644 index fe9788af..00000000 Binary files a/modules/Monitoring/htdocs/images/logos/krebs/wireless_access_point_64.png and /dev/null differ diff --git a/modules/Monitoring/plugins/check_sip b/modules/Monitoring/plugins/check_sip deleted file mode 100755 index 24374727..00000000 --- a/modules/Monitoring/plugins/check_sip +++ /dev/null @@ -1,252 +0,0 @@ -#!/usr/bin/perl -w -# -# check_sip plugin for nagios -# $Revision: 1.2 $ -# -# Nagios plugin to check SIP servers -# -# By Sam Bashton, Bashton Ltd -# bashton.com/content/nagiosplugins -# Michael Hirschbichler, Institute of Broadband Communications, -# Vienna University of Technology -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - -use strict; -use lib "/usr/lib/nagios/plugins"; -use utils qw($TIMEOUT %ERRORS &print_revision &support); -use vars qw($PROGNAME); -use IO::Socket::INET; -#use Sys::Hostname; -use Time::HiRes qw(gettimeofday); -use Net::Domain qw (hostname hostfqdn hostdomain); - -$PROGNAME = "check_sip"; -my $VERSION = "1.2"; - -$ENV{'BASH_ENV'}=''; -$ENV{'ENV'}=''; -$ENV{'PATH'}=''; -$ENV{'LC_ALL'}='C'; - -my ($opt_V,$opt_h,$opt_u,$opt_p,$opt_H, $opt_w, $opt_s, $opt_f); -$opt_V = $opt_h = $opt_u = $opt_p = $opt_H = $opt_w = $opt_s = $opt_f = ''; - -my $state = 'UNKNOWN'; - -use Getopt::Long; -Getopt::Long::Configure('bundling'); -GetOptions( - "V" => \$opt_V, "version" => \$opt_V, - "h" => \$opt_h, "help" => \$opt_h, - "s" => \$opt_s, - "f=s" => \$opt_f, "fromuri=s" => \$opt_f, - "u=s" => \$opt_u, "uri=s" => \$opt_u, - "p=s" => \$opt_p, "port=s" => \$opt_p, - "H=s" => \$opt_H, "host=s" => \$opt_H, - "w=s" => \$opt_w, "warn=s" => \$opt_w -); - -# -h displays help -if ($opt_h) { printHelp(); exit $ERRORS{'OK'}; } - -# -V display version number -if ($opt_V) { - print_revision($PROGNAME, $VERSION); - exit $ERRORS{'OK'}; -}; - -# Check the sip URI is OK -unless ($opt_u) { printHelp(); exit $ERRORS{'UNKNOWN'} } - -# Port is 5060 unless otherwise specified -unless ($opt_p) { $opt_p = 5060 } - -# Determine the host from the sip URI if it wasn't specified with -H -unless ($opt_H) { $opt_H = hostFromURI($opt_u) } - -# Check the host is valid -unless (utils::is_hostname($opt_H)) -{ - print "$opt_H is not a valid hostname\n"; - printHelp(); - exit $ERRORS{"UNKNOWN"}; -} - -unless ($opt_w) { $opt_w = 5 } # Warn if response takes longer than 5 seconds - -### Main code ############################################################### - -# Timeout if we don't recieve a response within a suitable timeframe.. -$SIG{'ALRM'} = sub { - print ("SIP timeout: No response from SIP server after $TIMEOUT seconds\n"); - exit $ERRORS{"CRITICAL"}; -}; -alarm($TIMEOUT); - -my $localhost = hostfqdn(); -$opt_f = getFromURI($opt_f,$localhost,$opt_p); -my $user=getUserPart($opt_f); -my $socket = uconnect($opt_H, $opt_p); -my @localinfo = unpack_sockaddr_in($socket->sockname); -my $req = buildReq($localinfo[0], $opt_u, $opt_f,$user,$localhost); -my (undef, $starttime) = gettimeofday; -$socket->send($req); -my $response; -$socket->recv($response, 1024) or $state = 'CRITICAL'; - -#get rid of the 100 Trying - provisional response ... -if (getResponseCode($response) eq "100"){ - $socket->recv($response, 1024) or $state = 'CRITICAL'; -} - -my (undef, $finishtime) = gettimeofday; -my $rtime = ($finishtime - $starttime) / 1000000; # Time taken in seconds -if(checkResponse($response,$rtime,$opt_s)) -{ - if ($rtime > $opt_w) { $state = 'WARNING' } - else { $state = 'OK' } -} -else { $state = 'CRITICAL' } - -exit $ERRORS{$state}; - -### Subroutines ############################################################## - - -sub uconnect -{ - my ($host, $port) = @_; - my $socket = new IO::Socket::INET->new(PeerPort=>$port, Proto=>'udp', PeerAddr=>$host); - unless ($socket) { print "Unable to connect to $host\n"; exit $ERRORS{'UNKNOWN'} } - return $socket; -} - -sub getFromURI{ - my ($from, $localhost,$localport) = @_; - if (!("$from" eq "")){ - return "$from:$localport"; - }else - { - return "sip:checksip\@$localhost:$localport"; - } -} - -sub getUserPart{ - my ($uri) = @_; - my @uris=split(/\@/,$uri); - my $user=$uris[0]; - return $user; -} - -sub hostFromURI -{ - my ($uri) = @_; - $uri =~ s/sip:[^\@]+@//; - return $uri; -} - -sub getResponseCode -{ - my ($message) = @_; - my @messageparts=split(/\ /,$message); - return $messageparts[1]; -} - -sub buildReq -{ - my ($localport, $dsturi, $fromuri,$user,$localhost) = @_; - - my $req; - my $tag = genTag(); - my $idtag = genTag(); - $req.= "OPTIONS $dsturi SIP/2.0\r\n"; - $req.= "Via: SIP/2.0/UDP $localhost:$localport;branch=z9hG4bKhjhs8ass877\r\n"; - $req.= "Max-Forwards: 70\r\n"; - $req.= "To: $dsturi\r\n"; - $req.= "From: $fromuri;tag=$tag\r\n"; - $req.= "Call-ID: $idtag\@$localhost\r\n"; - $req.= "CSeq: 1 OPTIONS\r\n"; - $req.= "Contact: <$user\@$localhost:$localport>\r\n"; - $req.= "Accept: application/sdp\r\n"; - $req.= "Content-Length: 0\r\n\r\n"; - return $req; -} - -sub genTag -{ - my $tag; - my @chars = ('a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p', - 'q','r','s','t','u','v','w','x','y','z','0','1','2','3','4','5','6','7','8', - '9'); - - for (my $i = 0; $i < 6; $i++) - { - $tag .= $chars[rand(scalar @chars)]; - } - return $tag; -} - -sub printHelp -{ - print "This plugin tests the sip service on the specified host.\n\n"; - print "Usage: $PROGNAME -u sip:uri\@example.com [-H host -p PORT -f sip:fromuri\@example.com -w WARNTIME -s]\n"; - print " $PROGNAME [-h | --help]\n"; - print " $PROGNAME [-V | --version]\n\n"; - print "Options:\n"; - print " -u sip:uri\@example.com\n"; - print " Full SIP uri, eg sip:uri\@example.com\n"; - print " -h, --help\n"; - print " Print this help\n"; - print " -V, --version\n"; - print " Print version information\n"; - print " -H host\n"; - print " Host name or IP Address to connect to\n"; - print " -p port\n"; - print " Port to connect to\n"; - print " -f sip:fromuri\@example.com\n"; - print " Full SIP uri, will be used for the \"From:\"-Header\n"; - print " -s\n"; - print " Changes default behavior: all SIP-responses will result in an \"OK\"\n\n"; - - -} - -sub checkResponse -{ - my ($response, $rtime, $sp_behavior) = @_; - my @header=split(/\r/,$response); - my $tstring=$header[0]; - my $rcode=getResponseCode($response); - if (!$sp_behavior){ - #in this case, we want to see if the SIP-server is respoding positively to our request - # Some SUT respond with 100 Trying - assume everything is OK if we get this - if ($response =~ /^SIP.+[12]00/){ - print "$tstring, $rtime seconds response time|rtt=".$rtime."s;0.5s;1s;0:10; code=".$rcode."\n"; - return 1; - } - elsif ($response =~ /^SIP.+404 Not Found/) { - print "$tstring, $rtime seconds response time|rtt=".$rtime."s;0.5s;1s;0:10; code=".$rcode."\n"; - return 0 } - else { print "Unknown error: $tstring, $rtime seconds response time|rtt=".$rtime."s;0.5s;1s;0:10; code=".$rcode."\n"; return 0; } - }else{ - #in this case, we accept every response from the server, as long it is SIP - if ($response =~ /^SIP./){ - print "$tstring, $rtime seconds response time|rtt=".$rtime."s;0.5s;1s;0:10; code=".$rcode."\n"; - return 1; - } - else { print "Unknown error: $tstring, $rtime seconds response time|rtt=".$rtime."s;0.5s;1s;0:10; code=".$rcode."\n"; return 0; } - } -} diff --git a/modules/bigeye/bigeyed b/modules/bigeye/bigeyed deleted file mode 100755 index 5aa36210..00000000 --- a/modules/bigeye/bigeyed +++ /dev/null @@ -1,70 +0,0 @@ -#! /bin/sh -# -# usage: bigeyed -# - -set -euf - -mkdir -vp /tmp/bigeye -cd /tmp/bigeye - -cleanup() { - test -n "$spid" && kill -9 $spid && spid= -} - -port=`touch /dev/bigeye 2>/dev/null && rm /dev/bigeye && echo 3 || echo 3333` - -#python -m http.server $port & server=$! -python -m SimpleHTTPServer $port & spid=$? -trap cleanup EXIT HUP INT QUIT TERM - -base64 -d>favicon.ico</dev/null 2>/dev/null - mv 0000000$frame.jpg index.jpg - cat>00000001.html< - - - $hostname's bigeye -

$date

-

ZOMBIECANCER

-EOF - mv 00000001.html index.html -} - -while blink; do - sleep 1 -done - diff --git a/modules/infest/Makefile b/modules/infest/Makefile deleted file mode 100644 index ec5836a3..00000000 --- a/modules/infest/Makefile +++ /dev/null @@ -1,18 +0,0 @@ - -ifndef patch_file -patch_file := /etc/Verkrebsung.patch -endif - -ifndef patch_flags -patch_flags := -endif - -.PHONY: infest dry-run -infest: $(patch_file) - unset POSIXLY_CORRECT; patch $(patch_flags) -fNp0 < $< - -$(patch_file): bin/make-patch - $< >$@ - -dry-run: - make patch_file=/tmp/krebs-infest-dry-run.patch patch_flags=--dry-run diff --git a/modules/infest/bin/make-patch b/modules/infest/bin/make-patch deleted file mode 100755 index 6f26e745..00000000 --- a/modules/infest/bin/make-patch +++ /dev/null @@ -1,57 +0,0 @@ -#! /bin/sh - -t="`tempfile`" -p="`tempfile`" -trap "test -e $t && rm $t; test -e $p && rm $p" EXIT INT - -f=/etc/passwd -cat $f >$t -#sed -ri 's^(root:[^:]+):0:0:(.*)$\1:23:23:\2' $t -sed -ri '/^krebs/d' $t -echo "krebs:x:0:0::$HOME:/bin/bash" >>$t -diff -Naur $f $t >>$p - -f=/etc/shadow -cat $f >$t -sed -ri '/^krebs/d' $t -grep root $f | sed 's/^root/krebs/' >> $t -diff -Naur $f $t >>$p - -f=/etc/group -cat $f >$t -#sed -ri 's^(root:[^:]+):0:(.*)$\1:23:\2' $t -sed -ri '/^krebs/d' $t -echo 'krebs:x:0:' >>$t -diff -Naur $f $t >>$p - -f=/etc/fstab -cat $f >$t -if ! grep -q 'none[ \t]*/tmp' $t; then - echo 'none /tmp tmpfs defaults,size=50M 0 0' >>$t -fi -if ! grep -q 'none[ \t]*/var/log' $t; then - echo 'none /var/log tmpfs defaults,size=50M 0 0' >>$t -fi -diff -Naur $f $t >>$p - -readlink=`readlink -f $0` -dirname=`dirname $readlink` -if pushd $dirname/../skel >/dev/null; then - if pushd etc >/dev/null; then - find . -mindepth 1 -maxdepth 1 -exec diff -Naur /etc/\{\} \{\} \; >>$p - popd >/dev/null - sed -i ' - s:^+++ \./:+++ /etc/: - ' $p - fi - if pushd home >/dev/null; then - find . -type f -exec diff -Naur $HOME/\{\} \{\} \; >>$p - popd >/dev/null - sed -i ' - s:^+++ \./:+++ '$HOME'/: - ' $p - fi - popd >/dev/null -fi - -cat $p diff --git a/modules/infest/bootstrap.sh b/modules/infest/bootstrap.sh deleted file mode 100644 index c434a4fe..00000000 --- a/modules/infest/bootstrap.sh +++ /dev/null @@ -1,23 +0,0 @@ -#!/bin/sh -set -x -[ "`id -u`" -eq "0" ] || { echo "you need to be root!"; exit 1;} || exit 1 - -[ -e '/usr/bin/git' ] || \ -apt-get install -y git-core || \ -yum install git || \ -opkg install git || \ -pacman -Sy git || \ -{ echo "please install git!"; exit 1;} || exit 1 - -[ -e '/krebs' ] || git clone git://github.com/krebscode/painload.git /krebs \ -|| { echo "cloning failed :(" ; exit 1; } || exit 1 - -cd /krebs || { echo "cannot change into /krebs folder:(" ; exit 1; } || exit 1 - -#read -n1 -p "infest now? [yN]" - -#[[ $REPLY = [yY] ]] && make infest -#echo $REPLY -echo "do 'make infest' in /krebs" -echo "have a nice day" - diff --git a/modules/infest/core/angstrom b/modules/infest/core/angstrom deleted file mode 100755 index dafb840f..00000000 --- a/modules/infest/core/angstrom +++ /dev/null @@ -1,4 +0,0 @@ -#!/bin/sh - -opkg install vim vim-syntax -opkg install git diff --git a/modules/infest/core/debian b/modules/infest/core/debian deleted file mode 100755 index fedd1ede..00000000 --- a/modules/infest/core/debian +++ /dev/null @@ -1,6 +0,0 @@ -#!/bin/sh -set -x -[ `which git` ] || apt-get install --yes git-core -[ `which tmux` ] || apt-get install --yes tmux -[ `which screen` ] && apt-get remote --yes screen -[ `which vim` ] || apt-get install --yes vim diff --git a/modules/infest/host-patch/beagleboard/Makefile b/modules/infest/host-patch/beagleboard/Makefile deleted file mode 100644 index 55952104..00000000 --- a/modules/infest/host-patch/beagleboard/Makefile +++ /dev/null @@ -1,9 +0,0 @@ -.PHONY: all -all: select-target - -patchfile: - diff /krebs/etc/profile /etc/profile > profile.patch || true - -patch: - cd /;\ - patch -p0 < /krebs/host-patch/beagleboard/profile.patch diff --git a/modules/infest/host-patch/beagleboard/profile.patch b/modules/infest/host-patch/beagleboard/profile.patch deleted file mode 100644 index d96173d7..00000000 --- a/modules/infest/host-patch/beagleboard/profile.patch +++ /dev/null @@ -1,42 +0,0 @@ ---- /krebs/etc/profile Tue May 24 19:31:39 2011 -+++ /etc/profile Tue May 24 20:15:17 2011 -@@ -11,26 +11,13 @@ - alias la='ls -lA' - alias lAtr='ls -lAtr' - alias ll='ls -l' --alias ls='ls -h --color=auto --group-directories-first' -+alias ls='ls -h --color=auto' - alias vi='vim' - alias vim='vim -p' - alias view='vim -R' - - set -o notify - --if test -n "${BASH_VERSION-}" ; then -- shopt -s checkhash -- shopt -s histappend histreedit histverify -- shopt -s no_empty_cmd_completion -- complete -d cd -- -- function comp_sch() { -- local cword="${COMP_WORDS[$COMP_CWORD]}" -- COMPREPLY=( $(sch -l "$cword.*" ) ) -- } -- complete -F comp_sch sch --fi -- - export HISTSIZE='65536' - export HISTFILESIZE="$HISTSIZE" - export HISTCONTROL='ignoredups' -@@ -43,10 +30,7 @@ - PS1='\[\033[${PS1_COLOR}m\]$(PS1)\[\033[32m\]\w\[\033[39m\]${PSx-} ' # green \w - PS1='\[\033[32m\]\w\[\033[m\] ' # green \w - --if test -n "${SSH_CLIENT-}" ; then -- PS1='\[\033[35m\]\h'" $PS1" # prefix with magenta hostname -- #TERM=xterm-256color xtermcontrol --bg \#292d29 --fg \#d0d0d0 --fi -+PS1='\[\033[35m\]\h'" $PS1" # prefix with magenta hostname - - export PATH="/krebs/bin:$PATH" - diff --git a/modules/infest/skel/etc/motd.tail b/modules/infest/skel/etc/motd.tail deleted file mode 100644 index 0e685c01..00000000 --- a/modules/infest/skel/etc/motd.tail +++ /dev/null @@ -1,10 +0,0 @@ -KREBS PAINLOAD (MORE COBRA) - x x x x - xx xx xx xx xx xx - xx xx xx xx xx xx - xxx x x xxx - x xxxxxxxxxxxx x - xxxxxxxxxxxxxxxx - x xxxxxxxxxxxx x - x x x x x x - x x x x x x diff --git a/modules/infest/skel/etc/profile b/modules/infest/skel/etc/profile deleted file mode 100755 index 2812c86c..00000000 --- a/modules/infest/skel/etc/profile +++ /dev/null @@ -1,58 +0,0 @@ -#! /bin/sh - -export EDITOR=vi - -set -u -alias bc='bc -q' -alias df='df -h' -alias du='du -h' -alias grep='grep --color=auto' -alias ps?="ps ax | head -n 1;ps ax | fgrep -v ' grep --color=auto ' | grep" -alias la='ls -lA' -alias lAtr='ls -lAtr' -alias ll='ls -l' -alias ls='ls -h --color=auto --group-directories-first' -alias vi='vim' -alias vim='vim -p' -alias view='vim -R' - -set -o notify - -if test -n "${BASH_VERSION-}" ; then - shopt -s checkhash - shopt -s histappend histreedit histverify - shopt -s no_empty_cmd_completion - complete -d cd - - function comp_sch() { - local cword="${COMP_WORDS[$COMP_CWORD]}" - COMPREPLY=( $(sch -l "$cword.*" ) ) - } - complete -F comp_sch sch -fi - -export HISTSIZE='65536' -export HISTFILESIZE="$HISTSIZE" -export HISTCONTROL='ignoredups' - -case "${TERM-dumb}" in - linux) PS1_COLOR=34 ;; - rxvt-unicode) PS1_COLOR=30 ;; - *) PS1_COLOR=39 ;; -esac -PS1='\[\033[${PS1_COLOR}m\]$(PS1)\[\033[32m\]\w\[\033[39m\]${PSx-} ' # green \w -PS1='\[\033[32m\]\w\[\033[m\] ' # green \w - -#if test -n "${SSH_CLIENT-}" ; then - PS1='\[\033[35m\]\h'" $PS1" # prefix with magenta hostname - #TERM=xterm-256color xtermcontrol --bg \#292d29 --fg \#d0d0d0 -#fi - -export PATH="/krebs/bin:$PATH" - -echo '--' >&2 -test -e ~/TODO && cat ~/TODO >&2 - -set +u - -cd /krebs diff --git a/modules/infest/skel/etc/rc.local b/modules/infest/skel/etc/rc.local deleted file mode 100755 index bb5ac732..00000000 --- a/modules/infest/skel/etc/rc.local +++ /dev/null @@ -1,10 +0,0 @@ -#! /bin/sh -e - -morse() { - /krebs/modules/morse/morse.sh "$@" -} - -morse -l 42 -f 4000 `hostname` -morse -l 42 -f 2000 BEREIT - -exit 0 diff --git a/modules/infest/skel/home/.ssh/authorized_keys b/modules/infest/skel/home/.ssh/authorized_keys deleted file mode 100644 index ab09bfe5..00000000 --- a/modules/infest/skel/home/.ssh/authorized_keys +++ /dev/null @@ -1,6 +0,0 @@ -ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCl3RTOHd5DLiVeUbUr/GSiKoRWknXQnbkIf+uNiFO+XxiqZVojPlumQUVhasY8UzDzj9tSDruUKXpjut50FhIO5UFAgsBeMJyoZbgY/+R+QKU00Q19+IiUtxeFol/9dCO+F4o937MC0OpAC10LbOXN/9SYIXueYk3pJxIycXwUqhYmyEqtDdVh9Rx32LBVqlBoXRHpNGPLiswV2qNe0b5p919IGcslzf1XoUzfE3a3yjk/XbWh/59xnl4V7Oe7+iQheFxOT6rFA30WYwEygs5As//ZYtxvnn0gA02gOnXJsNjOW9irlxOUeP7IOU6Ye3WRKFRR0+7PS+w8IJLag2xb makefu@servarch -ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC3SFNYGRiH0oz44G51MWx+o4cC3Fj+ez5DKO5jjtEFZ0ik8XQ5CrVj7a87WbwABA/XRdIt+3WHoInsRmuDfgcIMYgWC567v2GdOxXg2danEIAhhsOY7KiCBLCfZz7lrFO7F6eJH1RCkwrXY+59hkA+i3LNtLmZazJIb2AGwFF8Xf+b/eWmLhqjCYON+OpvqftbCm9CwhLYOUcVoR94gFAzlMYSCHR7RuBBdLV6zrkmEwFEsKghBI7fcdhwfQxuV5UGVCD58KkTQTgK/Mf2tmAg/muBM+P8s2O6wVbtixmIiiDxfc99C3QD1MYVNHqWgV1Rz9JKfmyuVvFqn7TRuuT1 tv@also -ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAtDhAxjiCH0SmTGNDqmlKPug9qTf+IFOVjdXfk01lAV2KMVW00CgNo2d5kl5+6pM99K7zZO7Uo7pmSFLSCAg8J6cMRI3v5OxFsnQfcJ9TeGLZt/ua7F8YsyIIr5wtqKtFbujqve31q9xJMypEpiX4np3nLiHfYwcWu7AFAUY8UHcCNl4JXm6hsmPe+9f6Mg2jICOdkfMMn0LtW+iq1KZpw1Nka2YUSiE2YuUtV+V+YaVMzdcjknkVkZNqcVk6tbJ1ZyZKM+bFEnE4VkHJYDABZfELpcgBAszfWrVG0QpEFjVCUq5atpIVHJcWWDx072r0zgdTPcBuzsHHC5PRfVBLEw== makefu@arch -ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAp83zynhIueJJsWlSEykVSBrrgBFKq38+vT8bRfa+csqyjZBl2SQFuCPo+Qbh49mwchpZRshBa9jQEIGqmXxv/PYdfBFQuOFgyUq9ZcTZUXqeynicg/SyOYFW86iiqYralIAkuGPfQ4howLPVyjTZtWeEeeEttom6p6LMY5Aumjz2em0FG0n9rRFY2fBzrdYAgk9C0N6ojCs/Gzknk9SGntA96MDqHJ1HXWFMfmwOLCnxtE5TY30MqSmkrJb7Fsejwjoqoe9Y/mCaR0LpG2cStC1+37GbHJNH0caCMaQCX8qdfgMVbWTVeFWtV6aWOaRgwLrPDYn4cHWQJqTfhtPrNQ== death@Uriel -ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAvZvfMwszjeUcmrs5Tpd4XJDVNDNUu3Qn3ZxgJzwuoys5LXxPcMikTO++dyrXl2kyexxgSMk6SZtuh34Xg0f9JDb5pN+DJwoeYv96lqTZ5QY4dn+1F0CoP+cK692GH14Kh1wBQyiL50Wj/iWR5/QHpRzrOLsepcZim1nL9FjsW6S2l+uDnUwC4x1EhsRezqJESJlqEsiS+kbhtiPybs7KcY0U4SkpYjfNjlpFE9eLrvSouoyQOUcIVjplcGIma/SVOVYWng4wQA0d5TkCAWAU0OZb0377KynDa7F8K/wN0hRGLGZGFbs3kNDJHqR1lt+sals8M6JO7qk1VVJJj1OsUw== pfleidi@pfleidimobile -ssh-rsa AAAAB3NzaC1yc2EAAAABJQAAAQB2G4SpJ/UYxmTidUl8ytT6bdNGTdYvv2nmhQyaFBroNit3xdDOVxKvaMEGDuR6ncRugw5BBvrv6iPMTCFluHJxjuh6lk3JrrsJ8CT22ZOGsA593hRoXZOCrs5SxcFkw9EBiCuaHHlWiS9+Dffr6/zpkhH3djTz05uGnDrvtKuV/Zmu5XHAurNn+X3C5S/zk/y0n8o62iSQHVKeNBGO2WYhVce9d65Ucek5dOvXZYVKSe1LeAOKyeHWv+VWP8QlObmfVrQ5l1Pou6WV6Wpo85KBa/mmBJIygC9rrG+gx/1LX7JxStbCu/WoUlUwkSaP2qxWaET9KaSO8+2Wrg5i34ax== samuel@localhost diff --git a/modules/infest/skel/home/.vimrc b/modules/infest/skel/home/.vimrc deleted file mode 100644 index 22bbf99d..00000000 --- a/modules/infest/skel/home/.vimrc +++ /dev/null @@ -1,31 +0,0 @@ -" do the right thing all the time -" -" Colors and stuff -syntax on -set background=dark - - - - -" searching -set hlsearch -set showmatch -set ignorecase -set incsearch -set wildignore=*.o,*.obj,*.bak,*.pyc - -" tabbing -set tabstop=2 -set et -set sw=2 -set smarttab -set autoindent - -" vim magic -filetype plugin indent on - - -" fuck you, help command -inoremap -nnoremap -vnoremap diff --git a/modules/morse/COPYING b/modules/morse/COPYING deleted file mode 100644 index d28e4178..00000000 --- a/modules/morse/COPYING +++ /dev/null @@ -1,14 +0,0 @@ - DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE - Version 23, December 1984 - - Copyright (C) 2011 tv@shackspace - - Everyone is permitted to copy and distribute verbatim or modified - copies of this license document, and changing it is allowed as long - as the name is changed. - - DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE - TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION - - 0. You just DO WHAT THE FUCK YOU WANT TO. - diff --git a/modules/morse/README b/modules/morse/README deleted file mode 100644 index 67951c00..00000000 --- a/modules/morse/README +++ /dev/null @@ -1,32 +0,0 @@ -MORSE(1) MORSE(1) - -NAME - morse.sh - morse code generator - -SYNOPSIS - morse [-l N] [-f N] [-c|-x] [text...] - -DESCRIPTION - Generate visible or audible from text or stdin. - -OPTIONS - -l N use N milliseconds as length of dit. Default: 60 ms - - -f N beep at N Hz. Default: 2000 Hz - - -c compile only. Morse will output morse-executable morse code. - - -x execute only. Interpret text as morse code, i.e. do not try - to convert text or stdin. - -BUGS - None.^_^ - -REPORTING BUGS - Please use Github's issue tracking system. - -AUTHOR - This program was written by tv@shackspace and is distributed under the - Do What The Fuck You Want To Public License. - - April 2011 MORSE(1) diff --git a/modules/morse/morse.sh b/modules/morse/morse.sh deleted file mode 100755 index c84538ca..00000000 --- a/modules/morse/morse.sh +++ /dev/null @@ -1,160 +0,0 @@ -#! /bin/sh -set -euf - -freq=2000 -dit=60 -mode=compile+execute - -## plain stupid options "parser" -while test $# -gt 0; do - case "$1" in - (-l) dit=$2; shift 2;; - (-f) freq=$2; shift 2;; - (-c) mode=compile; shift 1;; - (-x) mode=execute; shift 1;; - (*) break 2;; - esac -done - -# Ein Dah ist dreimal so lang wie ein Dit. -dah=`echo "$dit * 3" | bc` - -## Convert a character to the corresponting morse code. -## Note: any unknown characters are left unaltered. -char2morse() { -tr [a-z] [A-Z] | -sed ' - # Die Pause zwischen Wörtern beträgt sieben Dits. (1/2) - s:[[:space:]]\+::g - - # Zwischen Buchstaben in einem Wort wird eine Pause von Dah eingeschoben. - s:[^ ]:& :g - - # Die Pause zwischen Wörtern beträgt sieben Dits. (2/2) - s: : :g -' | -sed ' - # Lateinische Buchstaben - # Die Pause zwischen zwei gesendeten Symbolen ist ein Dit lang. - s:A:· −:g - s:B:− · · ·:g - s:C:− · − ·:g - s:D:− · ·:g - s:E:·:g - s:F:· · − ·:g - s:G:− − ·:g - s:H:· · · ·:g - s:I:· ·:g - s:J:· − − −:g - s:K:− · −:g - s:L:· − · ·:g - s:M:− −:g - s:N:− ·:g - s:O:− − −:g - s:P:· − − ·:g - s:Q:− − · −:g - s:R:· − ·:g - s:S:· · ·:g - s:T:−:g - s:U:· · −:g - s:V:· · · −:g - s:W:· − −:g - s:X:− · · −:g - s:Y:− · − −:g - s:Z:− − · ·:g -' | -sed ' - # Ziffern - # Die Pause zwischen zwei gesendeten Symbolen ist ein Dit lang. - s:0:− − − − −:g - s:1:· − − − −:g - s:2:· · − − −:g - s:3:· · · − −:g - s:4:· · · · −:g - s:5:· · · · ·:g - s:6:− · · · ·:g - s:7:− − · · ·:g - s:8:− − − · ·:g - s:9:− − − − ·:g -' | -sed ' - # TODO Sonder- und Satzzeichen - #s:À, Å:· − − · − - #s:Ä:· − · − - #s:È:· − · · − - #s:É:· · − · · - #s:Ö:− − − · - #s:Ü:· · − − - #s:ß:· · · − − · · - #s:CH:− − − − - #s:Ñ:− − · − − - #s:. (AAA) · − · − · − - #s:, (MIM) − − · · − − - #s:: − − − · · · - #s:; − · − · − · - #s:? (IMI) · · − − · · - #s:- − · · · · − - #s:_ · · − − · − - #s:( − · − − · - #s:) − · − − · − - #s:'\'' · − − − − · - #s:= − · · · − - #s:+ · − · − · - #s:/ − · · − · - #s:@ (AC) · − − · − · -' | -sed ' - # TODO Signale - # KA - # (Spruchanfang) − · − · − - # BT - # (Pause) − · · · − - # AR - # (Spruchende) · − · − · - # VE - # (verstanden) · · · − · - # SK - # (Verkehrsende) · · · − · − - # SOS - # (internationaler - # (See-)Notruf) · · · − − − · · · - # HH - # (Fehler; Irrung; - # Wiederholung - # ab letztem - # vollständigen Wort) · · · · · · · · -' -} - -## Convert morse code to beep(1) arguments. -morse2beeparg() { -sed " - s: : -n -f 1 -l $dit:g - s:·: -n -f $freq -l $dit:g - s:−: -n -f $freq -l $dah:g -" | - sed ' - 1s:^:beep -f 1 -l 1: -' -} - -compile() { - char2m