diff options
Diffstat (limited to 'filehooker/root-image')
61 files changed, 0 insertions, 1349 deletions
diff --git a/filehooker/root-image/etc/collectd.conf b/filehooker/root-image/etc/collectd.conf deleted file mode 100644 index 5225a036..00000000 --- a/filehooker/root-image/etc/collectd.conf +++ /dev/null @@ -1,84 +0,0 @@ -#Hostname "filehooker<id>" -Interval 10 - -LoadPlugin syslog -<Plugin syslog> - LogLevel info -</Plugin> - -LoadPlugin md -LoadPlugin cpu -LoadPlugin df -LoadPlugin disk -#LoadPlugin ping -LoadPlugin hddtemp -LoadPlugin interface -LoadPlugin load -LoadPlugin memory -LoadPlugin network -LoadPlugin uptime -LoadPlugin users -LoadPlugin write_graphite - -<Plugin df> -# Device "/dev/sda1" -# Device "192.168.0.2:/mnt/nfs" - FSType "ext2" - FSType "ext3" - FSType "ext4" - FSType "btrfs" - FSType "ntfs" - FSType "ntfs-3g" - FSType "vfat" - - IgnoreSelected false -</Plugin> - -<Plugin disk> - Disk "/[vsh]d[abcdefg][12345678]/" - IgnoreSelected false -</Plugin> - -<Plugin hddtemp> - Host "127.0.0.1" - Port 7634 - #TranslateDevicename false -</Plugin> - -<Plugin interface> - Interface "lo" - IgnoreSelected true -</Plugin> - - -#<Plugin ping> - #Host "elchhub.krebsco.de" - #Host "elchstats.krebsco.de" - #Interval 1.0 - #Timeout 0.9 -# TTL 255 -# SourceAddress "1.2.3.4" -# Device "eth0" -# MaxMissed -1 -#</Plugin> - - -#<Plugin sensors> -# Sensor "it8712-isa-0290/temperature-temp1" -# Sensor "it8712-isa-0290/fanspeed-fan3" -# Sensor "it8712-isa-0290/voltage-in8" -# IgnoreSelected false -#</Plugin> - - -<Plugin "write_graphite"> - <Carbon> - Host "elchstats.nsupdate.info" - Port "2003" - Prefix "elch." - #Postfix "" - EscapeCharacter "_" - StoreRates false - AlwaysAppendDS false - </Carbon> -</Plugin> diff --git a/filehooker/root-image/etc/fstab b/filehooker/root-image/etc/fstab deleted file mode 100644 index e69de29b..00000000 --- a/filehooker/root-image/etc/fstab +++ /dev/null diff --git a/filehooker/root-image/etc/hostname b/filehooker/root-image/etc/hostname deleted file mode 100644 index ef8963cd..00000000 --- a/filehooker/root-image/etc/hostname +++ /dev/null @@ -1 +0,0 @@ -filebitch diff --git a/filehooker/root-image/etc/locale.conf b/filehooker/root-image/etc/locale.conf deleted file mode 100644 index 01ec548f..00000000 --- a/filehooker/root-image/etc/locale.conf +++ /dev/null @@ -1 +0,0 @@ -LANG=en_US.UTF-8 diff --git a/filehooker/root-image/etc/pam.d/su b/filehooker/root-image/etc/pam.d/su deleted file mode 100644 index a2910423..00000000 --- a/filehooker/root-image/etc/pam.d/su +++ /dev/null @@ -1,6 +0,0 @@ -#%PAM-1.0 -auth sufficient pam_rootok.so -auth sufficient pam_wheel.so trust use_uid -auth required pam_unix.so -account required pam_unix.so -session required pam_unix.so diff --git a/filehooker/root-image/etc/sudoers.d/g_wheel b/filehooker/root-image/etc/sudoers.d/g_wheel deleted file mode 100644 index 8c45359f..00000000 --- a/filehooker/root-image/etc/sudoers.d/g_wheel +++ /dev/null @@ -1 +0,0 @@ -%wheel ALL=(ALL) NOPASSWD: ALL diff --git a/filehooker/root-image/etc/systemd/scripts/choose-mirror b/filehooker/root-image/etc/systemd/scripts/choose-mirror deleted file mode 100755 index 0ae08067..00000000 --- a/filehooker/root-image/etc/systemd/scripts/choose-mirror +++ /dev/null @@ -1,26 +0,0 @@ -#!/bin/bash - -get_cmdline() { - local param - for param in $(< /proc/cmdline); do - case "${param}" in - $1=*) echo "${param##*=}"; - return 0 - ;; - esac - done -} - -mirror=$(get_cmdline mirror) -[[ $mirror = auto ]] && mirror=$(get_cmdline archiso_http_srv) -[[ $mirror ]] || exit 0 - -mv /etc/pacman.d/mirrorlist /etc/pacman.d/mirrorlist.orig -cat >/etc/pacman.d/mirrorlist << EOF -# -# Arch Linux repository mirrorlist -# Generated by archiso -# - -Server = ${mirror%%/}/\$repo/os/\$arch -EOF diff --git a/filehooker/root-image/etc/systemd/system/choose-mirror.service b/filehooker/root-image/etc/systemd/system/choose-mirror.service deleted file mode 100644 index 1e4d771d..00000000 --- a/filehooker/root-image/etc/systemd/system/choose-mirror.service +++ /dev/null @@ -1,10 +0,0 @@ -[Unit] -Description=Choose mirror from the kernel command line -ConditionKernelCommandLine=mirror - -[Service] -Type=oneshot -ExecStart=/etc/systemd/scripts/choose-mirror - -[Install] -WantedBy=multi-user.target diff --git a/filehooker/root-image/etc/systemd/system/collectd.service.d/wait.conf b/filehooker/root-image/etc/systemd/system/collectd.service.d/wait.conf deleted file mode 100644 index 05d8b43c..00000000 --- a/filehooker/root-image/etc/systemd/system/collectd.service.d/wait.conf +++ /dev/null @@ -1,2 +0,0 @@ -[Service] -ExecStartPre=/usr/bin/sleep 20 diff --git a/filehooker/root-image/etc/systemd/system/dhcpcd.service.d/force-reboot.conf b/filehooker/root-image/etc/systemd/system/dhcpcd.service.d/force-reboot.conf deleted file mode 100644 index 5b506341..00000000 --- a/filehooker/root-image/etc/systemd/system/dhcpcd.service.d/force-reboot.conf +++ /dev/null @@ -1,2 +0,0 @@ -[Service] -StartLimitAction=reboot-force diff --git a/filehooker/root-image/etc/systemd/system/etc-pacman.d-gnupg.mount b/filehooker/root-image/etc/systemd/system/etc-pacman.d-gnupg.mount deleted file mode 100644 index 4eab5513..00000000 --- a/filehooker/root-image/etc/systemd/system/etc-pacman.d-gnupg.mount +++ /dev/null @@ -1,8 +0,0 @@ -[Unit] -Description=Temporary /etc/pacman.d/gnupg directory - -[Mount] -What=tmpfs -Where=/etc/pacman.d/gnupg -Type=tmpfs -Options=mode=0755 diff --git a/filehooker/root-image/etc/systemd/system/filehooker-hostname.service b/filehooker/root-image/etc/systemd/system/filehooker-hostname.service deleted file mode 100644 index bcee7964..00000000 --- a/filehooker/root-image/etc/systemd/system/filehooker-hostname.service +++ /dev/null @@ -1,11 +0,0 @@ -[Unit] -Description=change filehooker hostname -Before=network.target nss-lookup.target multi-user.target - -[Service] -Type=oneshot -RemainAfterExit=yes -ExecStart=/krebs/bin/set-hostname.sh - -[Install] -WantedBy=multi-user.target diff --git a/filehooker/root-image/etc/systemd/system/getty@tty1.service.d/run_krebs_secret.conf b/filehooker/root-image/etc/systemd/system/getty@tty1.service.d/run_krebs_secret.conf deleted file mode 100644 index 29e5be5f..00000000 --- a/filehooker/root-image/etc/systemd/system/getty@tty1.service.d/run_krebs_secret.conf +++ /dev/null @@ -1,3 +0,0 @@ -[Service] -ExecStart= -ExecStart=-/usr/bin/agetty --autologin reaktor --noclear %I 38400 linux diff --git a/filehooker/root-image/etc/systemd/system/hddtemp.service.d/monitor_all_disks.conf b/filehooker/root-image/etc/systemd/system/hddtemp.service.d/monitor_all_disks.conf deleted file mode 100644 index e6b8fcda..00000000 --- a/filehooker/root-image/etc/systemd/system/hddtemp.service.d/monitor_all_disks.conf +++ /dev/null @@ -1,3 +0,0 @@ -[Service] -ExecStart= -ExecStart=/bin/bash -c "/usr/bin/hddtemp -dF hddtemp -d /dev/[vsh]d[a-z]" diff --git a/filehooker/root-image/etc/systemd/system/ntpdate.service.d/set_hwclock.conf b/filehooker/root-image/etc/systemd/system/ntpdate.service.d/set_hwclock.conf deleted file mode 100644 index e57550c8..00000000 --- a/filehooker/root-image/etc/systemd/system/ntpdate.service.d/set_hwclock.conf +++ /dev/null @@ -1,2 +0,0 @@ -[Service] -ExecStart=/usr/bin/hwclock --systohc --utc -w diff --git a/filehooker/root-image/etc/systemd/system/pacman-init.service b/filehooker/root-image/etc/systemd/system/pacman-init.service deleted file mode 100644 index 23b81445..00000000 --- a/filehooker/root-image/etc/systemd/system/pacman-init.service +++ /dev/null @@ -1,15 +0,0 @@ -[Unit] -Description=Initializes Pacman keyring -Wants=haveged.service -After=haveged.service -Requires=etc-pacman.d-gnupg.mount -After=etc-pacman.d-gnupg.mount - -[Service] -Type=oneshot -RemainAfterExit=yes -ExecStart=/usr/bin/pacman-key --init -ExecStart=/usr/bin/pacman-key --populate archlinux - -[Install] -WantedBy=multi-user.target diff --git a/filehooker/root-image/etc/systemd/system/start-ncdc@.service b/filehooker/root-image/etc/systemd/system/start-ncdc@.service deleted file mode 100644 index 1189be0f..00000000 --- a/filehooker/root-image/etc/systemd/system/start-ncdc@.service +++ /dev/null @@ -1,13 +0,0 @@ -[Unit] -Description=ncdc autoconfig and startup for %i -After=network.target local-fs.target multi-user.target filehooker-hostname.service - -[Service] -Type=oneshot -RemainAfterExit=yes -#KillMode=none -ExecStart=/usr/bin/tmux new-session -n startup -d "/bin/sh /krebs/bin/start-ncdc.ship" -ExecStop=/usr/bin/sudo -u %i /usr/bin/tmux send-keys -t dcpp:ncdc "/quit" C-m - -[Install] -WantedBy=multi-user.target diff --git a/filehooker/root-image/etc/systemd/system/tor-configure-hidden.service b/filehooker/root-image/etc/systemd/system/tor-configure-hidden.service deleted file mode 100644 index c9b8f20f..00000000 --- a/filehooker/root-image/etc/systemd/system/tor-configure-hidden.service +++ /dev/null @@ -1,11 +0,0 @@ -[Unit] -Description=Announce Tor Hidden Address -After=network.target nss-lookup.target - -[Service] -Type=oneshot -RemainAfterExit=yes -ExecStart=/krebs/bin/tor_configure_hidden_service.ship - -[Install] -WantedBy=multi-user.target diff --git a/filehooker/root-image/etc/udev/rules.d/81-dhcpcd.rules b/filehooker/root-image/etc/udev/rules.d/81-dhcpcd.rules deleted file mode 100644 index 1c4053c0..00000000 --- a/filehooker/root-image/etc/udev/rules.d/81-dhcpcd.rules +++ /dev/null @@ -1 +0,0 @@ -ACTION=="add", SUBSYSTEM=="net", ENV{INTERFACE}=="en*|eth*", ENV{SYSTEMD_WANTS}="dhcpcd@$name.service" diff --git a/filehooker/root-image/krebs/bin/add-reaktor-secret.sh b/filehooker/root-image/krebs/bin/add-reaktor-secret.sh deleted file mode 100755 index 92681449..00000000 --- a/filehooker/root-image/krebs/bin/add-reaktor-secret.sh +++ /dev/null @@ -1,24 +0,0 @@ -#!/bin/sh -set -euf -green='\e[0;32m' -red='\e[0;31m' -nc='\e[0m' -black='\e[0;30m' - -printf "${green}Add a Reaktor Secret ${nc}\n" -printf "${red}(no spaces in input plox)${nc}\n" - -nick=${1:-} -while test -z "${nick:-}" ;do - printf "provide Nick Name:\n" - read nick -done - -secret=${2:-} -while test -z "${secret:-}" ;do - printf "provide Secret:$black\n" - read secret -done - -echo "$nick $secret" >> /krebs/painload/Reaktor/admin.lst -printf "${green}done${nc}" diff --git a/filehooker/root-image/krebs/bin/macid.sh b/filehooker/root-image/krebs/bin/macid.sh deleted file mode 100755 index 0fccc84b..00000000 --- a/filehooker/root-image/krebs/bin/macid.sh +++ /dev/null @@ -1,2 +0,0 @@ -#!/bin/sh -ip addr | grep ether | awk '{print $2}' | sort |md5sum | awk '{print $1}' | dd bs=1 count=6 2>/dev/null diff --git a/filehooker/root-image/krebs/bin/reaktor-shell.sh b/filehooker/root-image/krebs/bin/reaktor-shell.sh deleted file mode 100755 index 117c64f6..00000000 --- a/filehooker/root-image/krebs/bin/reaktor-shell.sh +++ /dev/null @@ -1,4 +0,0 @@ -#!/bin/sh -echo "IP Addresses:" -/krebs/painload/Reaktor/commands/ips || echo "no IPs!" -/krebs/bin/add-reaktor-secret.sh diff --git a/filehooker/root-image/krebs/bin/refresh-shares.ship b/filehooker/root-image/krebs/bin/refresh-shares.ship deleted file mode 100755 index 364d7758..00000000 --- a/filehooker/root-image/krebs/bin/refresh-shares.ship +++ /dev/null @@ -1,11 +0,0 @@ -#!/bin/sh -#TODO: -#!/usr/bin/env ship -set -euf -#@include filehooker -. /krebs/lib/filehooker -ncdc_user="hooker" - -share_all_partitions -systemctl restart hddtemp.service -exit 0 diff --git a/filehooker/root-image/krebs/bin/set-hostname.sh b/filehooker/root-image/krebs/bin/set-hostname.sh deleted file mode 100755 index 31101a18..00000000 --- a/filehooker/root-image/krebs/bin/set-hostname.sh +++ /dev/null @@ -1,5 +0,0 @@ -#!/bin/sh -hostn="elch_$(/krebs/bin/macid.sh)" -hostnamectl set-hostname "$hostn" -hostname $hostn -echo "$hostn" > /etc/hostname diff --git a/filehooker/root-image/krebs/bin/start-ncdc.ship b/filehooker/root-image/krebs/bin/start-ncdc.ship deleted file mode 100755 index 1d47bcfb..00000000 --- a/filehooker/root-image/krebs/bin/start-ncdc.ship +++ /dev/null @@ -1,23 +0,0 @@ -#!/usr/bin/env ship -set -euf -#@include filehooker -. /krebs/lib/filehooker -#@include network -ncdc_user="hooker" - -useradd -m $ncdc_user ||: - -sudo -u $ncdc_user /usr/bin/tmux new-session -s dcpp -n ncdc -d ncdc 2>/dev/null || echo "ncdc is already running" - -nick=$(cat /etc/hostname) -echo "using nick $nick" -ncdc_configure_nick "$nick" -sleep 1 -dc_hub="adcs://elchhub.nsupdate.info:2781" -echo "connecting to $dc_hub" -ncdc_configure_hub "$dc_hub" "elch" - - -share_all_partitions - -exit 0 diff --git a/filehooker/root-image/krebs/bin/tor-get-hidden-service.sh b/filehooker/root-image/krebs/bin/tor-get-hidden-service.sh deleted file mode 100755 index c9946366..00000000 --- a/filehooker/root-image/krebs/bin/tor-get-hidden-service.sh +++ /dev/null @@ -1,2 +0,0 @@ -#!/bin/sh -cat /var/lib/tor/hidden_service/hostname diff --git a/filehooker/root-image/krebs/bin/tor_configure_hidden_service.ship b/filehooker/root-image/krebs/bin/tor_configure_hidden_service.ship deleted file mode 100755 index 1e026d26..00000000 --- a/filehooker/root-image/krebs/bin/tor_configure_hidden_service.ship +++ /dev/null @@ -1,16 +0,0 @@ -#!/bin/sh -#@include core -. /krebs/lib/core -#@include network -. /krebs/lib/network -#@include tor -. /krebs/lib/tor - -sleep_time=5 -test -w "$torrc" || ( error "$torrc is not writable!"; exit 1 ) || exit 1 - -configure_hidden_service -test ! -e $hidden_service_dir/hostname && \ - info "hidden service file does not exist, restarting tor" && \ - systemctl restart tor && \ - sleep 1 diff --git a/filehooker/root-image/krebs/bin/tor_publish_ssh.ship b/filehooker/root-image/krebs/bin/tor_publish_ssh.ship deleted file mode 100755 index 2ecee9fb..00000000 --- a/filehooker/root-image/krebs/bin/tor_publish_ssh.ship +++ /dev/null @@ -1,12 +0,0 @@ -#!/usr/bin/env ship -#@include core -. /krebs/lib/core -#@include network -. /krebs/lib/network -#@include tor -. /krebs/lib/tor - -test -w "$torrc" || ( error "$torrc is not writable!"; exit 1 ) || exit 1 - -configure_hidden_service -cat $hidden_service_dir/hostname | send_irc diff --git a/filehooker/root-image/krebs/bin/update-search.sh b/filehooker/root-image/krebs/bin/update-search.sh deleted file mode 100755 index 665f6543..00000000 --- a/filehooker/root-image/krebs/bin/update-search.sh +++ /dev/null @@ -1,5 +0,0 @@ -#!/bin/sh -for i in /media/vag*;do - updatedb -l 0 -o "$i/mlocate.db" -U "$i" -done -echo "update complete" diff --git a/filehooker/root-image/krebs/bin/vim_sane_defaults.ship b/filehooker/root-image/krebs/bin/vim_sane_defaults.ship deleted file mode 100755 index fcc7ffcf..00000000 --- a/filehooker/root-image/krebs/bin/vim_sane_defaults.ship |