This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This story is about: How do we fetch, process and display nice statistics for | |
freifunk-nodes, running a free, open WiFi-Network. | |
Else we want to implement pushes for the owner of each freifunk-node, when | |
something goes wrong or offline. | |
Status Quo: | |
Currently we use some hacky bash scripts[1] which generates a text-file, curl it | |
to a php running server over https and dropping the latest values to a |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
I'm using zfs for mirroring on my hypervisors, mitingated from lvm/mdadm-raid1. | |
Some days ago my zfs-mirroring stopped working, leading to a degraded state. ZFS said, | |
one of the mirror-devices, which should be normally named sda4, is now called | |
238018108320 or something like this, and on the last row of zpool status, theres an | |
entry like "was: /dev/sda4". | |
Zfs can't open the device again, I tried: | |
zpool offline data /dev/sda4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
netperf -L 192.168.0.20 -H 192.168.1.23 -t udp_stream -l 60 -- -R 1 | |
The "-- -R 1" part enables subnet-routing |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# x11-driver-video-sisimedia | |
# 2014-08-22 | |
Section "Device" | |
Identifier "sis671" | |
Driver "sisimedia" | |
Screen 0 | |
EndSection | |
Section "Monitor" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
yum install yum-utils -y | |
package-cleanup --oldkernels --count=2 | |
find /lib/modules/$(uname -r)/extra -name "splat.ko" -or -name "zcommon.ko" -or -name "zpios.ko" -or -name "spl.ko" -or -name "zavl.ko" -or -name "zfs.ko" -or -name "znvpair.ko" -or -name "zunicode.ko" | xargs rm -f | |
find /lib/modules/$(uname -r)/weak-updates -name "splat.ko" -or -name "zcommon.ko" -or -name "zpios.ko" -or -name "spl.ko" -or -name "zavl.ko" -or -name "zfs.ko" -or -name "znvpair.ko" -or -name "zunicode.ko" | xargs rm -f | |
modprobe -r zfs | |
yum remove zfs zfs-dkms spl spl-dkms dkms -y | |
yum install zfs -y |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mkdir /var/log/journal | |
systemd-tmpfiles --create --prefix /var/log/journal | |
systemctl restart systemd-journald |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
echo "admins=(\"ruben\" \"kevin\")" > /mnt/install.sh | |
echo "declare -A sshkeys" >> /mnt/install.sh | |
echo "sshkeys[\"ruben\"]='ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDA4VjJnNTVDxtLgQqCzOiPWsy0yBNiv32GzzYPPatKYozL8PW5hDhEWg7h8vMs5Ty77U/qijjNr4VRyKKmvDFv907f6Wg/Fnm0a7+DmzZ6M4jdEJgqM3LJc3V81aXB6vXDCpCHB3orIKVB9xz2zaBdcA1A8eNYmy7paiZZPnjnSTGDt+UNMWfKumD9TAj4zyvH3yc1MdeB2WOvWCdxQXnyVEfS/AvAIZtzZA5D2osCPKouTGpjKZXoRYqJoT7X+GltbkopFZ7As9jEMfxG3Rum8oIOrqhNwy4ipahd50RYLhBXEUFvFQpDNadlbeslgTq/P5feX1z41PUR5OgNP8cd [email protected] | |
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDIVP7CBN1orjIvx7OOvAaQ6h461ziDZjjgJSseR1GfPvpFizP80+N+6bhrOs8+sz/BxaO1kr9fpArs+g/NmMQobiiXKKmOcR+Wm1y2/LBOrtotmZZJGVQnSoQwwY9K7xhJMGKL4TlktSusvmja5kg2WAf7vW389oYqTfwVq4TgerpPSihn9vVRfVi0827MNfh5agwRIZ/OgWXd6ka/LDByQ0FtV4npFWAwx4/uWphg2t/g6vR7ZoIt5rBSR/E0VqRGMwSbwlbDbYgJTPJ3/lVCrDtVka2r1fuL5f+VyuyYhobtBwkjD5GusIB82XlvIs4KzFTOGVhPpvrmoFKaN1aJ [email protected]_2 | |
ecdsa-sha2-nistp521 AAAAE2VjZHNhLXNoYTItbmlzdHA1MjEAAAAIbmlzdHA1MjEAAACFBAFGe5/7cfDkbssq+by |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mv gluon-firmware-abc.bin /var/tmp/firmware.bin | |
cd /var/tmp/ | |
tftp -m binary -v 192.168.1.20 -c put firmware.bin |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
gpg-agent --daemon | |
gpg --full-gen-key --pinentry-mode loopback | |
gpg --keyserver keyserver.ubuntu.com --recv-key 1FFAA0B24B708F96 | |
gpg --keyserver keyserver.ubuntu.com --recv-key 520A9993A1C052F8 | |
gpg --lsign-key 1FFAA0B24B708F96 | |
gpg --lsign-key 520A9993A1C052F8 | |
yaourt -S nginx-mainline-libressl --noconfirm |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
oldifs="$IFS" | |
IFS=$'\n' | |
echo "" > installed_programs.txt | |
for e in `yaourt -Qen`; do | |
echo "$(echo $e | cut -d' ' -f1)" >> installed_programs.txt | |
done | |
IFS=$oldifs |
OlderNewer