This setup provides a multi-instance Minecraft server using systemd templates.
- Add user
adduser --disabled-password --gecos "" minecraft- Create files
/usr/lib/systemd/system/minecraft@.service
This setup provides a multi-instance Minecraft server using systemd templates.
adduser --disabled-password --gecos "" minecraft/usr/lib/systemd/system/minecraft@.service
| tar cvf - /path/to/file | gzip -9 - > filename.tar.gz |
| > /boot/firmware/config.txt | |
| # Disable the PWR LED | |
| dtparam=pwr_led_trigger=none | |
| dtparam=pwr_led_activelow=on | |
| # Disable the Activity LED | |
| dtparam=act_led_trigger=none | |
| dtparam=act_led_activelow=off |
| SELFOLDER="/foldername/" tar cf - ${SELFOLDER} -P | pv -s $(du -sb ${SELFOLDER} | awk '{print $1}') | gzip > ${SELFOLDER}.tar.gz |
| <domain type='kvm' xmlns:qemu='http://libvirt.org/schemas/domain/qemu/1.0'> | |
| <!-- ... --> | |
| <qemu:commandline> | |
| <qemu:arg value='-acpitable'/> | |
| <qemu:arg value='file=/some/path/slic.bin'/> | |
| <qemu:arg value='-acpitable'/> | |
| <qemu:arg value='file=/some/path/msdm.bin'/> | |
| <qemu:arg value='-smbios'/> | |
| <qemu:arg value='file=/some/path/smbios_type_0.bin'/> | |
| <qemu:arg value='-smbios'/> |
See: https://www.pgadmin.org/download/pgadmin-4-apt/
#
# Setup the repository
#
# Install the public key for the repository (if not done previously):
curl -fsS https://www.pgadmin.org/static/packages_pgadmin_org.pub | sudo gpg --dearmor -o /usr/share/keyrings/packages-pgadmin-org.gpg
This guide describes how to get Kodi running on Debian Bookworm based Raspberry Pi OS Lite 64Bit without having to run the full LXDE GUI of the desktop version.
It is based on this guide.
First, install kodi as usual with
apt install kodi
| #!/bin/bash | |
| # Vars | |
| HEREAMI="$(dirname "$(readlink -f "${0}")")" | |
| URL="https://www.internic.net/domain/named.root" | |
| FILE="/usr/share/dns/root.hints" | |
| # Check if file is the same, otherwise override | |
| if ! diff -q <(curl -s "${URL}") "${FILE}" > /dev/null 2>&1; then | |
| # Download root.hints file |
| dd if=/dev/zero of=1GB.bin bs=1 count=0 seek=1GB |
| find . -type f -exec grep -H 'example string' {} \; | |
| #or | |
| grep -Rnw '.' -e 'example string' |