Skip to content

Instantly share code, notes, and snippets.

@uyjulian
Created January 19, 2025 00:38
Show Gist options
  • Save uyjulian/fa2e06e5f72b5b81f5cd31ff9dcc5998 to your computer and use it in GitHub Desktop.
Save uyjulian/fa2e06e5f72b5b81f5cd31ff9dcc5998 to your computer and use it in GitHub Desktop.
loginctl enable-linger
podman run --name crystite-test -dit --network=host \
-v /mnt/data/crystite/var/lib/crystite:/var/lib/crystite:rw \
-v /mnt/data/crystite/etc/crystite:/etc/crystite:rw \
-v /mnt/data/crystite/data:/mnt/data:rw \
public.ecr.aws/docker/library/debian:12 /bin/bash -c 'trap : TERM INT; coproc { exec >&-; read; }; eval exec "${COPROC[0]}<&-"; wait'
podman exec -it crystite-test /bin/bash
apt-get update
apt-get install -y sudo wget screen
wget https://packages.microsoft.com/config/debian/12/packages-microsoft-prod.deb -O packages-microsoft-prod.deb
dpkg -i packages-microsoft-prod.deb
rm packages-microsoft-prod.deb
echo 'deb [signed-by=/usr/share/keyrings/algiz.gpg] https://repo.algiz.nu/crystite bookworm main' | tee /etc/apt/sources.list.d/crystite.list
mkdir -p /usr/share/keyrings
wget -O /usr/share/keyrings/algiz.gpg https://repo.algiz.nu/algiz.gpg
apt-get update
apt-get -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" install -y crystite
exit
podman kill crystite-test
podman rm crystite-test
cd /mnt/data/steamcmd
./steamcmd.sh
@sSteamCmdForcePlatformType linux
force_install_dir /mnt/data/Resonite
login steamusernamehere
app_update 2519830
exit
rsync --recursive --progress /mnt/data/Resonite/ [email protected]:/mnt/data/crystite/var/lib/crystite/Resonite
podman kill crystite-test
podman rm crystite-test
chown -R crystite /var/lib/crystite
screen
cd /var/lib/crystite
while true; do apt-get -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" update -y; apt-get -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" upgrade -y; sudo -u crystite /usr/lib/crystite/crystite --allow-unsupported-resonite-version; done
rm -r /var/lib/crystite/data/Corrupted* /var/lib/crystite/data/*.litedb /var/lib/crystite/data/DatabaseRepair.mark /var/lib/crystite/data/Instance.lock /var/lib/crystite/data/LocalKey.bin /var/lib/crystite/data/Assets
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment