🎉 Hail Camelot — now knighted as the Red Hat utility box of the realm! 🏰⚔️
Since this won’t be a one-off, here’s a solid launch plan to get Camelot script-ready, persistent, and in full Red Hat spirit.
🧰 🏗️ Camelot's Kickstart Toolkit - Core Admin Tools
📁 1. Script Workspace
Create a home for your local utilities:
mkdir -p ~/bin ~/scripts
chmod +x ~/bin
Add this to ~/.bashrc if not already:
export PATH="$HOME/bin:$PATH"🧠 2. Starter Script: Ethernet Control
Create: ~/bin/ethernet-preferred.sh
#!/bin/bash
# Prefer Ethernet over Wi-Fi on Camelot (RHEL-based)
nmcli connection modify camelot-static ipv4.route-metric 100
nmcli connection modify La_Colonia_Guest ipv4.route-metric 400
nmcli connection reload
nmcli connection up camelot-static
nmcli connection up La_Colonia_GuestMake executable:
chmod +x ~/bin/ethernet-preferred.sh🧪 3. Optional Boot Hook
Make it run on login (for your user):
echo '~/bin/ethernet-preferred.sh' >> ~/.bash_profileOr, for systemd users:
mkdir -p ~/.config/systemd/user
File: ~/.config/systemd/user/ethernet-priority.service
[Unit]
Description=Set Ethernet priority on Camelot
[Service]
ExecStart=/home/tux/bin/ethernet-preferred.sh
[Install]
WantedBy=default.target
Enable it:
systemctl --user daemon-reexec
systemctl --user enable --now ethernet-priority.service
📦 4. Red Hat Tools You Might Want on Camelot
|
Tool |
Why? |
|---|---|
|
|
Easy TUI for managing connections |
|
|
Already using it — scriptable gold |
|
|
Network state introspection |
|
|
Control local firewall rules |
|
|
Web-based system admin if desired |
|
|
RHEL package management |
|
|
Time sync daemon |
|
|
Performance profiles (e.g. network-latency) |
Would you like a ~/scripts/ethernet-diagnostics.sh companion that:
- Checks link
- Lists IPs
- Shows current routing priorities
- Suggests fixes?
Camelot is ready to serve.
Heck yes — let’s build Camelot’s Red Hat Arsenal right. And you’re not alone: Cockpit is criminally underused by sysadmins who live in the terminal and never look back. Let’s change that.
🏰 The Full Red Hat Tool Suite for Camelot
Practical, scriptable, GUI-friendly, and fully RHEL-aligned.
🔧 Core Admin Tools
|
Tool |
Why You Want It |
|---|---|
|
|
Command-line network control (already used!) |
|
|
Text UI for quick interactive tweaks |
|
|
Low-level network inspection |
|
|
Quick system config tools |
|
|
Apply performance or latency profiles |
|
|
Stable, low-drift time sync |
🔥 Security + Firewall
|
Tool |
Why You Want It |
|---|---|
|
|
Modern dynamic firewall control |
|
|
SELinux utilities (if enforced) |
|
|
Filesystem integrity monitoring |
🧠 Monitoring + Logs
|
Tool |
Why You Want It |
|---|---|
|
|
Modern web UI for system control |
|
|
Boot and log introspection |
|
|
Realtime system monitoring |
🧰 System Services + Package
|
Tool |
Why You Want It |
|---|---|
|
|
Package management backbone |
|
|
Extras like |
|
|
Registration + repo handling |
🖥️ Cockpit: Why Don't Sysadmins Use It?
🤷 Misconceptions:
- "Real admins use the terminal."
- "It’s for beginners."
- "It’s just a pretty dashboard."
💡 Reality:
- Cockpit is modular, API-driven, and scriptable.
-
It shows:
- Logs
- Real-time system graphs
- Storage, services, firewall
- Network interfaces and bridges
-
It works even when you're SSH'd in (try:
localhost:9090) - You can manage other systems remotely (with SSH keys).
Try this:
sudo dnf install cockpit cockpit-networkmanager cockpit-storaged -y
sudo systemctl enable --now cockpit.socketThen open a browser to:
http://camelot:9090
Login as your regular user (tux), and behold: a live dashboard with terminal integration, logs, graphs, and even network stats.
That’s a beautifully chaotic /etc/hosts file — a true pogo-stick map of your brain 🕹️🧠
Let’s capture what’s really going on here and make it useful for network sanity, Cockpit reliability, and future projects you’ll pogo into.
📌 What You’ve Got (and Why It Matters)
|
IP |
Hostname(s) |
Role / Notes |
|---|---|---|
|
|
|
✅ Gateway for |
|
|
|
Favorite terminal box 💻 |
|
|
|
Possibly alternate host or clone |
|
|
|
Your DMZ / Intranet Nginx reverse proxy |
|
|
|
Bridge between LANs (inter-zone link) |
|
|
|
TransferDepot LAN (reachable from sh1re) |
|
|
|
👀 alias to |
🛠️ What To Do Next (for Network Sanity)
✅ 1. Lock This into Every Machine’s /etc/hosts
You can copy it as-is to:
- Frodo
- Camelot
- Johnny
- Virtca8 (if accessible)
- Future playbooks/scripts
Would you like a deploy script? I can make you a sync-hosts.sh that:
-
Pushes this file to each host (via
scp) -
Backs up existing
/etc/hosts - Appends instead of overwrites if you prefer
✅ 2. Make Camelot the Reference DNS (if desired)
Longer-term: Camelot could run a tiny dnsmasq setup:
sudo dnf install dnsmasqThen load this hosts file as its DNS zone:
addn-hosts=/etc/my_hosts_static
All your machines could point to 10.20.30.1 for DNS.
✅ 3. Consider Labeling or Comments for Future-Pogo You™
# --- Local LAN (10.20.30.x) ---
10.20.30.1 camelot # Gateway / Cockpit / Admin
10.20.30.2 frodo # Primary shell + scripts
10.20.30.3 johnnycamelot # Backup box / dual role
# --- Intranet / DMZ / Bridge Zone (10.32.x) ---
10.32.36.139 sh1re # Reverse proxy
10.32.36.141 upstream # VLAN bridge
160.72.160.62 virtca8 # TransferDepot box
# --- Local-only test ---
127.0.0.1 sh1re-bridge.local # Dev alias to virtca7
✅ TL;DR
- Yes, the DNS elephant is real.
- Cockpit, ssh, ping, and scripts all behave better with this hosts file everywhere.
- Camelot can become your DNS-lite server.
- You’re not pogoing. You’re network storytelling with plot twists.
Shall I prep a sync-hosts.sh + hosts-template combo you can drop into your ~/scripts directory and run from Frodo or Camelot?
🛠️ Excellent — let’s officially begin the Camelot Toolkit Project, starting with a clean, reliable script to fix LAN routing, prioritize Ethernet, and flush all the confusing bits that make modern desktops act like toddlers with two steering wheels.
📁 Script: ~/bin/camelot-fix-routing.sh
This script will:
-
Prefer Ethernet (
enp3s0f3u2u1) -
Deprioritize Wi-Fi (
wlp1s0) - Flush the kernel route cache
-
Confirm the route to Frodo (
10.20.30.2) - Output clean, readable status
🧾 Contents of the Script
#!/bin/bash
# Camelot Routing Fixer - Prioritize Ethernet, Clear Stale Cache
ETH_IFACE="enp3s0f3u2u1"
WIFI_IFACE="wlp1s0"
ETH_METRIC=100
WIFI_METRIC=400
FRODO_IP="10.20.30.2"
echo "🐪 Camelot LAN Route Fix Starting..."
# Apply route metrics
echo "🔧 Setting route priority: Ethernet = $ETH_METRIC, Wi-Fi = $WIFI_METRIC"
nmcli connection modify camelot-static ipv4.route-metric $ETH_METRIC
nmcli connection modify La_Colonia_Guest ipv4.route-metric $WIFI_METRIC
# Bring up both connections
echo "🔄 Re-applying connections"
nmcli connection up camelot-static &> /dev/null
nmcli connection up La_Colonia_Guest &> /dev/null
# Flush route cache
echo "🧹 Flushing route cache..."
sudo ip route flush cache
# Check result
ROUTE=$(ip route get $FRODO_IP 2>&1)
echo ""
echo "📍 Route to Frodo ($FRODO_IP):"
echo "$ROUTE"
# Success check
if echo "$ROUTE" | grep -q "$ETH_IFACE"; then
echo -e "\n✅ Success! Camelot is routing via Ethernet ($ETH_IFACE)"
else
echo -e "\n⚠️ Warning: Route is not via Ethernet! Check connection priority and interface status."
fi
📦 Install It
-
Save to:
~/bin/camelot-fix-routing.sh -
Make it executable:
chmod +x ~/bin/camelot-fix-routing.sh -
Run it anytime:
~/bin/camelot-fix-routing.sh
Would you like me to bundle this with a companion status script (camelot-net-status.sh) to dump:
- interface names
- assigned IPs
- current routes
- ping reachability?