diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..c69be9e --- /dev/null +++ b/.gitignore @@ -0,0 +1,20 @@ +bin +boot/ +data/ +dev/ +home/ +lib +lib32 +lib64 +lost+found/ +media/ +mnt/ +opt/ +proc/ +root/ +run/ +sbin +srv/ +sys/ +tmp/ +usr/ diff --git a/README b/README deleted file mode 100644 index f10b50a..0000000 --- a/README +++ /dev/null @@ -1,3 +0,0 @@ -System configurations are stored in a seperate branch for each host or purpose. - -Check out (git checkout) the appropriate branch to find the configurations. diff --git a/etc/.gitignore b/etc/.gitignore new file mode 100644 index 0000000..95bd876 --- /dev/null +++ b/etc/.gitignore @@ -0,0 +1,102 @@ +*~ +*.lock +*.orig +*.OLD +acpi/ +bash/ +bindresvport.blacklist +ca-certificates/ +ca-certificates.conf +colors/ +cron.d/ +cron.hourly/ +cron.monthly/ +cron.weekly/ +crypttab +cups/ +dbus-1/ +default/ +depmod.d/ +dhcpcd.conf +dns/ +dracut.conf +dracut.conf.d/ +e2scrub.conf +environment +ethertypes +exports +exports.d/ +filesystems +fonts/ +gai.conf +group- +grub.d/ +gshadow +gshadow- +gtk-3.0/ +host.conf +hosts +idmapd.conf +inputrc +iproute2/ +iptables/ +issue +kernel.d/ +ld.so.conf +ld.so.conf.d/ +libnl/ +localtime +login.defs +lvm/ +lynx.cfg +lynx.lss +mail.rc +mailx.rc +man.conf +mke2fs.conf +modprobe.d/ +modules-load.d/ +mtab +netconfig +nsswitch.conf +ntp.conf +os-release +pam.d/ +passwd +passwd- +pkcs11/ +profile +profile.d/ +protocols +rc.local +rc.shutdown* +resolv.conf +rpc +runit/ +screenrc +securetty +security/ +services +shadow +shadow- +shells +skel/ +ssl/ +subgid +subgid- +subuid +subuid- +sudo.conf +sudoers +sudoers.dist +sv/ +sysctl.conf +sysctl.d/ +udev/ +vmware-tools/ +wpa_supplicant/ +xattr.conf +xbps.d/ +xdg/ +xtables.conf +zzz.d/ diff --git a/etc/autofs/.gitignore b/etc/autofs/.gitignore new file mode 100644 index 0000000..ec790fe --- /dev/null +++ b/etc/autofs/.gitignore @@ -0,0 +1,6 @@ +auto.master +auto.misc +auto.net* +auto.smb* +autofs.conf +autofs_ldap_auth.conf diff --git a/etc/autofs/auto.master.d/storage.autofs b/etc/autofs/auto.master.d/storage.autofs new file mode 100644 index 0000000..bb5f2e1 --- /dev/null +++ b/etc/autofs/auto.master.d/storage.autofs @@ -0,0 +1 @@ +/data /etc/autofs/auto.storage browse diff --git a/etc/autofs/auto.storage b/etc/autofs/auto.storage new file mode 100644 index 0000000..c6c58d7 --- /dev/null +++ b/etc/autofs/auto.storage @@ -0,0 +1,5 @@ +home -vers=4,hard,acl,rw,fsc 192.168.67.245:/home +media -vers=4,hard,acl,rw,fsc 192.168.67.245:/data/media +slackware -vers=4,hard,acl,rw,fsc 192.168.67.245:/data/slackware +tmp -vers=4,hard,acl,rw,fsc 192.168.67.245:/data/tmp +www -vers=4,hard,acl,rw,fsc 192.168.67.245:/data/www diff --git a/etc/certificates/.gitignore b/etc/certificates/.gitignore new file mode 100644 index 0000000..dbd311a --- /dev/null +++ b/etc/certificates/.gitignore @@ -0,0 +1,6 @@ +_DH_.pem +_msmtp_-afterdark.lan-cert.pem +_msmtp_-afterdark.lan-key.pem +_msmtp_-afterdark.lan-key.pem.gpg +_msmtp_-cert.pem +_msmtp_-key.pem diff --git a/etc/cron.daily/.gitignore b/etc/cron.daily/.gitignore new file mode 100644 index 0000000..fa4de9b --- /dev/null +++ b/etc/cron.daily/.gitignore @@ -0,0 +1,2 @@ +makewhatis +shadow diff --git a/etc/cron.daily/warn-git-status b/etc/cron.daily/warn-git-status new file mode 100755 index 0000000..d274574 --- /dev/null +++ b/etc/cron.daily/warn-git-status @@ -0,0 +1,9 @@ +#!/bin/bash + +source /etc/mail.conf "git-status" || exit 1 + +CONFIGSTATUS="$(cd / && git status | egrep -ve "^(On branch|Your branch|No commits|nothing|$)" -e "\(use")" + +[[ -z "$CONFIGSTATUS" ]] && exit 0 + +mailx "${MAILX_ARGS[@]}" -r "$EMAIL_FROM" -s "git statuses" "${EMAIL_TO[@]}" <<<"$CONFIGSTATUS" diff --git a/etc/fstab b/etc/fstab new file mode 100644 index 0000000..bc08dbe --- /dev/null +++ b/etc/fstab @@ -0,0 +1,3 @@ +UUID=55f6f46d-b408-4416-994d-faadde6c54aa / ext4 defaults 0 1 +UUID=e87a8703-cc91-446b-84a4-17b38194b3d2 none swap defaults 0 0 +tmpfs /tmp tmpfs defaults,nosuid,nodev 0 0 diff --git a/etc/group b/etc/group new file mode 100644 index 0000000..216de73 --- /dev/null +++ b/etc/group @@ -0,0 +1,34 @@ +root:x:0: +bin:x:1: +sys:x:2: +kmem:x:3: +wheel:x:4:tadgy +tty:x:5: +tape:x:6: +daemon:x:7: +floppy:x:8: +disk:x:9: +lp:x:10: +dialout:x:11: +audio:x:12: +video:x:13: +utmp:x:14: +adm:x:15: +cdrom:x:16: +optical:x:17: +mail:x:18: +storage:x:19: +scanner:x:20: +network:x:21: +kvm:x:24: +input:x:25: +plugdev:x:26: +usbmon:x:27: +sgx:x:28: +nogroup:x:99: +users:x:100: +admin:x:101:tadgy +_dhcpcd:x:999: +_uuidd:x:998: +ntpd:x:997: +rpc:x:996: diff --git a/etc/gshadow.gpg b/etc/gshadow.gpg new file mode 100644 index 0000000..e878cb2 Binary files /dev/null and b/etc/gshadow.gpg differ diff --git a/etc/hostname b/etc/hostname new file mode 100644 index 0000000..f3bc7a0 --- /dev/null +++ b/etc/hostname @@ -0,0 +1 @@ +chuckie.afterdark.lan diff --git a/etc/locale.conf b/etc/locale.conf new file mode 100644 index 0000000..87227b3 --- /dev/null +++ b/etc/locale.conf @@ -0,0 +1,2 @@ +LANG=en_GB.UTF-8 +LC_COLLATE=C diff --git a/etc/mail.conf b/etc/mail.conf new file mode 100644 index 0000000..28e24e6 --- /dev/null +++ b/etc/mail.conf @@ -0,0 +1,21 @@ +# This file is sourced by various scripts that need to send emails. + +case "$(hostname -d)" in + afterdark.lan) + EMAIL_DOMAIN="afterdark.org.uk" + ;; + *) + EMAIL_DOMAIN="slackware.network" + ;; +esac + +EMAIL_FROM="${HOSTNAME%%.*} " +EMAIL_TO=("Systems Administrator ") + +case "$1" in + sbosrcarch) + MAILX_ARGS=("-c" "Urchlay ") + ;; +esac + +true diff --git a/etc/msmtp-aliases b/etc/msmtp-aliases new file mode 100644 index 0000000..4e078fa --- /dev/null +++ b/etc/msmtp-aliases @@ -0,0 +1 @@ +default: sysadmin@afterdark.org.uk diff --git a/etc/msmtprc b/etc/msmtprc new file mode 100644 index 0000000..7bcf3b9 --- /dev/null +++ b/etc/msmtprc @@ -0,0 +1,13 @@ +account default +host gw.afterdark.lan +timeout 300 +domain chuckie.afterdark.lan +tls off +tls_starttls off +tls_trust_file /etc/ssl/certs/ca-certificates.crt +tls_cert_file /etc/certificates/_msmtp_-cert.pem +tls_key_file /etc/certificates/_msmtp_-key.pem +auto_from on +maildomain afterdark.org.uk +syslog LOG_MAIL +aliases /etc/msmtp-aliases diff --git a/etc/rc.conf b/etc/rc.conf new file mode 100644 index 0000000..723d29d --- /dev/null +++ b/etc/rc.conf @@ -0,0 +1,47 @@ +# /etc/rc.conf - system configuration for void + +# Set the host name. +# +# NOTE: it's preferred to declare the hostname in /etc/hostname instead: +# - echo myhost > /etc/hostname +# +#HOSTNAME="void-live" + +# Set RTC to UTC or localtime. +HARDWARECLOCK="UTC" + +# Set timezone, availables timezones can be found at /usr/share/zoneinfo. +# +# NOTE: it's preferred to set the timezone in /etc/localtime instead: +# - ln -sf /usr/share/zoneinfo/ /etc/localtime +# Setting the timezone here requires a reboot to apply any changes/fixes +# and read-write access to the filesystem. +# +#TIMEZONE="Europe/Madrid" + +# Keymap to load, see loadkeys(8). +KEYMAP=uk + +# Console font to load, see setfont(8). +#FONT="lat9w-16" + +# Console map to load, see setfont(8). +#FONT_MAP= + +# Font unimap to load, see setfont(8). +#FONT_UNIMAP= + +# Amount of ttys which should be setup. +#TTYS= + +# Set the mode for cgroup mounts. +# hybrid: mount cgroup v1 under /sys/fs/cgroup and +# cgroup v2 under /sys/fs/cgroup/unified +# legacy: mount cgroup v1 /sys/fs/cgroup +# unified: mount cgroup v2 under /sys/fs/cgroup +#CGROUP_MODE=hybrid + +# Set this to true only if you do not want seed files to actually credit the +# RNG, for example if you plan to replicate this file system image and do not +# have the wherewithal to first delete the contents of /var/lib/seedrng. +#SEEDRNG_SKIP_CREDIT=false diff --git a/etc/shadow.gpg b/etc/shadow.gpg new file mode 100644 index 0000000..754d592 --- /dev/null +++ b/etc/shadow.gpg @@ -0,0 +1,2 @@ +  BSbv|,e.~ުKF=!GXwsfJL%co"zyO7٥H{蘤kss;NBWBGdθD@ U1fcre!ok>Uw.@ƉGHt /H[ӵu0_R~wMBw(@/BM{ž4Q2;|FhVCW.zkIaIs0]7kjSտdBªo_V[䱙dޢ-~h5ϢbҌrTĘ"n۳%Gfւ^Q[Iv7l('p4?Т)g{MS3MdO-{-k +f Iz{&@U&S \ No newline at end of file diff --git a/etc/ssh/ssh_host_ed25519_key.pub b/etc/ssh/ssh_host_ed25519_key.pub new file mode 100644 index 0000000..2a88a93 --- /dev/null +++ b/etc/ssh/ssh_host_ed25519_key.pub @@ -0,0 +1 @@ +ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIETA3xleyhRRvvu/+RzMsacrAo9YQiPW0LYXojch+V9D root@void-live diff --git a/etc/ssh/ssh_host_rsa_key.gpg b/etc/ssh/ssh_host_rsa_key.gpg new file mode 100644 index 0000000..9937fc2 Binary files /dev/null and b/etc/ssh/ssh_host_rsa_key.gpg differ diff --git a/etc/ssh/ssh_host_rsa_key.pub b/etc/ssh/ssh_host_rsa_key.pub new file mode 100644 index 0000000..455a717 --- /dev/null +++ b/etc/ssh/ssh_host_rsa_key.pub @@ -0,0 +1 @@ +ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQCu/CWfLeiY97WzgmeDxWTsIuGEPY6aAzk6O67kyEozRwikgB54asxzI2gYxmnoJ7gHO0VjWg1PnE+I0cRyplxKummxwU9opRZ6xT3ehLXRJKWfFKIAQsVt5OncC/S1m496Me2B18WnXYcWhZkxo38DQpOOFtXkEGNuu/Q9juBBk1bkw56Ntn9ArKVQ2jBmGrodC329TK16mss1rN+RlEGrEpVU+EI8W1m/qYSs6menmWGvx92BPPn0ujCGOQZSYus4r07ebl2Xuy8ZCbdOdyqWfUW2CpQ5pokSIW5OtXiX6Gqgfb8KorG+wDaJs2tpSalvp9AR06rIfjlEFte4gszr5vuvnciKE0imVTvGbySUs6/0VB/lyCXzgWB12T9qIVdBop72pLfHFTkVG29yfQ5KlmPAw+WKAr9GQnsLQq3NwJQ9JyU/9+1Ak05A+X2+Cq0vMR45a8+/uo2aysLATeEW9Ew1cooQaJM350IVKy8QwOA1Af3cy+Y2fcDPuqwYHZU= root@void-live diff --git a/etc/sudoers.d/defaults b/etc/sudoers.d/defaults new file mode 100644 index 0000000..e34d298 --- /dev/null +++ b/etc/sudoers.d/defaults @@ -0,0 +1,2 @@ +## Set the password prompting timeout to 30 mins. +Defaults timestamp_timeout = 30 diff --git a/etc/sudoers.d/root-access b/etc/sudoers.d/root-access new file mode 100644 index 0000000..d217c8d --- /dev/null +++ b/etc/sudoers.d/root-access @@ -0,0 +1,2 @@ +## Allow users access to root using their own passwords. +tadgy ALL=(root) ALL diff --git a/etc/sudoers.d/wheel b/etc/sudoers.d/wheel new file mode 100644 index 0000000..40695bb --- /dev/null +++ b/etc/sudoers.d/wheel @@ -0,0 +1 @@ +%wheel ALL=(ALL:ALL) ALL diff --git a/var/.gitignore b/var/.gitignore new file mode 100644 index 0000000..0edb0e5 --- /dev/null +++ b/var/.gitignore @@ -0,0 +1,12 @@ +cache/ +chroot/ +db/ +empty/ +lib/ +lock +log/ +mail/ +opt/ +run +service +tmp/ diff --git a/var/spool/.gitignore b/var/spool/.gitignore new file mode 100644 index 0000000..db4ee56 --- /dev/null +++ b/var/spool/.gitignore @@ -0,0 +1,2 @@ +cronstamps/ +mail diff --git a/var/spool/cron/root b/var/spool/cron/root new file mode 100644 index 0000000..963bfc3 --- /dev/null +++ b/var/spool/cron/root @@ -0,0 +1,5 @@ +# Run the hourly, daily, weekly, and monthly cron jobs. +0 * * * * ID=sys-hourly /usr/bin/run-parts /etc/cron.hourly >/dev/null +0 0 * * * ID=sys-daily /usr/bin/run-parts /etc/cron.daily >/dev/null +0 0 * * 0 ID=sys-weekly /usr/bin/run-parts /etc/cron.weekly >/dev/null +0 0 1 * * ID=sys-monthly /usr/bin/run-parts /etc/cron.monthly >/dev/null