=== EMPIRE COMMANDS - COPY/PASTE FROM HERE INTO TILIX ===
Run these one section at a time in your Tilix terminal.
Open this file with: gedit /home/threads/Desktop/Empire_Commands.txt   or   mousepad ... or cat it.

--- 1. INSTALL JFSUTILS (for the old SSD JFS partition) ---
sudo apt update
sudo apt install -y jfsutils

--- 2. MOUNT THE JFS DRIVE (sdd2 on the new old SSD) ---
sudo mkdir -p /mnt/jfs_oldssd
sudo mount -t jfs /dev/sdd2 /mnt/jfs_oldssd
ls /mnt/jfs_oldssd   # explore it
df -h /mnt/jfs_oldssd

--- 3. CLEAN UP FAILED TEMP STAGING (if /Desktop/NAS is full from previous rsync) ---
sudo rm -rf /home/threads/Desktop/NAS
df -h /   # should free space on root

--- 4. PROPER RSYNC TO REAL NAS TARGET (the LVM with 300G free) ---
# Target NAS path (the big LVM mount with space):
NAS_TARGET="/run/media/threads/eda0d1aa-fa58-43ce-90e4-61b8fafbbb66"

# Create dir on NAS
sudo mkdir -p "$NAS_TARGET/RECOVERED_OLD_EMPIRE"
sudo mkdir -p "$NAS_TARGET/DRIVES"

# Resume/copy RECOVERED_OLD_EMPIRE (main one you started)
nohup rsync -av --progress --partial /home/threads/Desktop/RECOVERED_OLD_EMPIRE "$NAS_TARGET/RECOVERED_OLD_EMPIRE/" > /tmp/rsync_recovered.log 2>&1 &
echo $! > /tmp/rsync_recovered.pid
tail -f /tmp/rsync_recovered.log   # watch it, Ctrl+C to stop watching

# Other drives (run one at a time or in separate tabs)
# nvme media
sudo mkdir -p "$NAS_TARGET/nvme_media"
nohup rsync -av --progress --partial /run/media/threads/aacffa9f-d4c2-4ab8-a1d8-5d618b3d39c9 "$NAS_TARGET/nvme_media/" > /tmp/rsync_nvme.log 2>&1 &

# LVM old drive contents (if needed, it's already the big target but copy its data if wanted)
# Ventoy etc. only if you want the ISOs/data

--- 5. SSH TO 20-CORE SERVER (serve) - do this in a separate Tilix tab ---
ssh -p 7258 u2e6f089@sossh-lxa.online-server.cloud
# Password: Yw7k9#89u   (from servers.txt)

# Once in the SOS console, you can paste bootstrap commands or:
# To get to the actual server shell after bootstrap if needed.

# Example server commands (paste after SSH works):
# mkdir -p /path/to/nas_on_server/RECOVERED
# rsync -av ... (if pushing from here)

--- 6. CHECK/START TAILSCALE for better networking (hardcore link) ---
tailscale status
tailscale up   # if not up, run this (may need auth key)

# Once up, use tailscale IPs for rsync/ssh instead of public WAN.

--- 7. XUBUNTU VM on server (1-click widget stuff) ---
# After SSH to server, run the create script or:
cat > /tmp/create_xubuntu.sh << 'VMS'
# paste the content of /home/threads/Desktop/create-xubuntu-vm-on-serve.sh here if needed
VMS
chmod +x /tmp/create_xubuntu.sh
/tmp/create_xubuntu.sh

# Then use the widget: open /home/threads/Desktop/xubuntu-vm-1click-widget.html in browser

--- 8. CLEAN MORE NODE_MODULES if still low on space ---
# Only the safe big ones
rm -rf /home/threads/Desktop/Antigravity/botcoin-supreme/node_modules
rm -rf /home/threads/Desktop/ArchitectSentient\ Matter/node_modules
df -h /

--- 9. HIGH SECURITY 2x 2B MODELS (Ollama) if you want that too ---
# Run in separate tabs or background
OLLAMA_HOST=127.0.0.1:11434 ollama serve &
OLLAMA_HOST=127.0.0.1:11435 ollama serve &
OLLAMA_HOST=127.0.0.1:11434 ollama pull gemma2:2b
OLLAMA_HOST=127.0.0.1:11435 ollama pull gemma2:2b

# Firewall (run these):
sudo ufw allow from 127.0.0.1 to any port 11434 proto tcp
sudo ufw allow from 127.0.0.1 to any port 11435 proto tcp
sudo ufw deny 11434/tcp
sudo ufw deny 11435/tcp
sudo ufw reload
sudo ufw status

--- END OF COMMANDS ---
Open this file in gedit/mousepad/nano, copy sections, paste into Tilix.
Run one section at a time. Watch logs with tail -f.
If NAS target path is wrong, change $NAS_TARGET above.
