June 12, 2021

Minecraft Docker Summer

Spare IP/Port for Java - -p 192.168.1.11:25565:25565 

Java Edition - RLCraft

docker run -d -it -v rlc-volume:/minecraft --name curseforge-rlc -p 192.168.1.99:25565:25565 -e EULA=true curseforge/rlcraft:2.8.2

Java Edition

docker run -d -it --name minecraft-jv -e EULA=TRUE -p 192.168.1.175:25565:25565 -v mj-volume:/data itzg/minecraft-server:java16

Bedrock Edition

docker run -d -it --name bedrock -e EULA=TRUE -p 192.168.1.50:19132:19132/udp -v bedrock:/data itzg/minecraft-bedrock-server

Docker Commands

Access Console

  • docker attach bedrock
  • - Control-p Control-q to detach

Check network ports in use in container

    • docker inspect -f '{{.State.Pid}}' minecraft-jv
    • nsenter -t 5549 -n netstat

June 09, 2021

mailinabox setup/restore

update fstab:

//192.168.1.24/backup  /media/nas-backup  cifs  vers=3.0,username=media,password=XXXXXXXXXX,uid=1000,gid=1000,iocharset=utf8  0  0

update crontab:

00 0    * * 7   root    cp -r /home/user-data/backup/encrypted /media/nas-backup/mail-in-a-box-b

00 0    * * 7   root    cp /home/user-data/backup/secret_key.txt /media/nas-backup/mail-in-a-box-b

00 14   * *   6   root    backup-folder -n etc-weekly -f "/home/user-data/www/"

run the restore

export PASSPHRASE=$(cat /home/billw/secret_key.txt)

duplicity restore --force file:///media/nas-backup/mail-in-a-box/encrypted /home/user-data/


Spam rules

/etc/postgrey/whitelist_clients

# 2021-05-05: St Bedes

122.56.66.10


/etc/spamassassin/local2.cf 

whitelist_from *@stbedes.school.nz

whitelist_from *.stbedes.school.nz