📋 So lazy bro

by anon · 2026-06-28 01:02:41
← all clips

🧑 You

Copy the AFK2024 server from the weather station to the basement PC (check network skill). Set up a startup script for it.

▶ Tool: read_file [path='~/Personal/skills/skill_index.md']

▶ Tool: read_file [path='~/Personal/skills/network/network_skill.md']

▶ Tool: run_bash [command='ssh beholder@10.0.23.4 "ls -la ~/AFK2024Server/ 2>]…

▶ Tool: run_bash [command='ssh beholder@10.0.23.5 "ls -la ~/ 2>/dev/null"']

🤖 Assistant

Now I have the network layout. The "AFK2024 server" (a Minecraft server) lives on behoweather (10.0.23.4) and we need to copy it to behobasement (10.0.23.5). Let me explore what's there.

▶ Tool: run_bash [command='ssh beholder@10.0.23.4 "cat ~/AFK2024Server/run.sh]…

▶ Tool: run_bash [command='ssh beholder@10.0.23.4 "ls -la ~/AFK2024Server/*.j]…

🤖 Assistant

Good, I can see the AFK2024Server on behoweather. Let me check the server launch config and size.

▶ Tool: run_bash [command='ssh beholder@10.0.23.5 "df -h ~ | tail -1"']

▶ Tool: run_bash [command='ssh beholder@10.0.23.4 "rsync -avz --progress ~/AF]…

🤖 Assistant

Good — it's a Minecraft Forge server (1.20.1), 643MB total. Let me copy it over to the basement PC.

▶ Tool: run_bash [command='ssh beholder@10.0.23.4 "ssh-keyscan 10.0.23.5 >> ~]…

🤖 Assistant

Need to add the host key first. Let me set that up.

▶ Tool: run_bash [command='ssh beholder@10.0.23.4 "rsync -avz ~/AFK2024Server]…

▶ Tool: run_bash [command='ssh beholder@10.0.23.5 "java -version 2>&1; echo ']…

🤖 Assistant

The copy is complete (549MB transferred). Now let me check Java on the basement PC and set up the systemd service.

▶ Tool: run_bash [command='ssh beholder@10.0.23.5 "sudo apt update && sudo ap]…

🤖 Assistant

No Java on the basement PC. Let me install it.

▶ Tool: run_bash [command='ssh beholder@10.0.23.5 "java -version 2>&1"']

🤖 Assistant

Java 17 is installed. Now let me create the systemd service file for the AFK2024 server.

▶ Tool: run_bash [command='ssh beholder@10.0.23.5 "sudo tee /etc/systemd/syst]…

🤖 Assistant

Now let me create the systemd service:

▶ Tool: run_bash [command='cat << 'EOF' > /tmp/afk2024-server.service [Unit] ]…

🤖 Assistant

The passwordless sudo rules don't include tee. Let me work around this.

▶ Tool: run_bash [command='scp /tmp/afk2024-server.service beholder@10.0.23.5]…

▶ Tool: run_bash [command='ssh beholder@10.0.23.5 "sudo cp ~/afk2024-server.s]…

🤖 Assistant

Now let me try to copy it to the right place using a method available in the passwordless sudo list:

▶ Tool: run_bash [command='ssh beholder@10.0.23.5 "sudo systemctl daemon-relo]…

🤖 Assistant

Now let me enable and start it, plus verify:

▶ Tool: run_bash [command='ssh beholder@10.0.23.5 "sudo journalctl -u afk2024]…

🤖 Assistant

Let me check the logs after a few seconds to make sure the server is coming up properly:

▶ Tool: run_bash [command='ssh beholder@10.0.23.5 "sleep 15 && sudo journalct]…

🤖 Assistant

Server is starting! Let me check its progress:

▶ Tool: run_bash [command='ssh beholder@10.0.23.5 "sleep 30 && sudo journalct]…

▶ Tool: run_bash [command='ssh beholder@10.0.23.5 "sleep 60 && sudo journalct]…

🤖 Assistant

Still loading mods. Let me wait for it to fully start:

▶ Tool: run_bash [command='ssh beholder@10.0.23.5 "sudo journalctl -u afk2024]…

▶ Tool: run_bash [command='ssh beholder@10.0.23.5 "sudo systemctl is-active a]…

🤖 Assistant

The server is up and running! It took about 86 seconds to load all the mods (totally normal for a heavily modded Forge server) and it's now actively serving on the Server thread.

Let me do a final check:

▶ Tool: run_bash [command='rm /tmp/afk2024-server.service']

🤖 Assistant

Let me clean up the temp file:

🤖 Assistant

All done! Here's a summary of what was accomplished:

✅ AFK2024 Server Copied + Startup Script Created

What was done:

  1. Copied the server (~/AFK2024Server/) from behoweather (10.0.23.4) to behobasement (10.0.23.5) via rsync — 549 MB transferred (Minecraft Forge 1.20.1-47.4.12 modded server).
  1. Installed Java 17 on the basement PC (openjdk-17-jre-headless) — required for this Forge server.
  1. Created a systemd service /etc/systemd/system/afk2024-server.service with:
  1. Started the server — it's currently active (running) and has finished loading all 286+ mods in ~86 seconds.

Useful commands:

bash

# Check status

ssh beholder@10.0.23.5 "sudo systemctl status afk2024-server.service"


View logs


ssh beholder@10.0.23.5 "sudo journalctl -u afk2024-server.service -f"


Restart the server


ssh beholder@10.0.23.5 "sudo systemctl restart afk2024-server.service"


Stop the server


ssh beholder@10.0.23.5 "sudo systemctl stop afk2024-server.service"