initial commit
Some checks failed
Build Simple CLI / build (push) Failing after 1s

This commit is contained in:
robojerk 2025-08-12 15:59:34 -07:00
commit 882552f4e7
10 changed files with 675 additions and 0 deletions

View file

@ -0,0 +1,52 @@
#!/bin/bash
# Simple CLI Network Configuration Script
# Based on Aurora's network configuration pattern
set -euo pipefail
echo "=== Configuring Network ==="
# Enable network services
echo "Enabling network services..."
systemctl enable systemd-networkd
systemctl enable systemd-resolved
# Configure network interfaces
echo "Configuring network interfaces..."
cat > /etc/systemd/network/10-eth0.network << EOF
[Match]
Name=eth0
[Network]
DHCP=yes
IPv6AcceptRA=yes
EOF
# Configure wireless if available
if [ -d /sys/class/net/wlan0 ]; then
echo "Configuring wireless network..."
cat > /etc/systemd/network/25-wireless.network << EOF
[Match]
Name=wlan0
[Network]
DHCP=yes
IPv6AcceptRA=yes
EOF
fi
# Configure DNS
echo "Configuring DNS..."
cat > /etc/systemd/resolved.conf << EOF
[Resolve]
DNS=8.8.8.8 8.8.4.4
FallbackDNS=1.1.1.1 1.0.0.1
EOF
# Start network services
echo "Starting network services..."
systemctl start systemd-networkd
systemctl start systemd-resolved
echo "=== Network configuration complete ==="
echo "Network services are running"

View file

@ -0,0 +1,50 @@
#!/bin/bash
# Simple CLI First Boot Setup Script
# Based on Aurora's firstboot pattern
set -euo pipefail
echo "=== Simple CLI First Boot Setup ==="
# Configure system locale
echo "Configuring locale..."
locale-gen en_US.UTF-8
update-locale LANG=en_US.UTF-8
# Configure timezone
echo "Configuring timezone..."
ln -sf /usr/share/zoneinfo/UTC /etc/localtime
# Create user directories
echo "Setting up user directories..."
mkdir -p /home/simple/.config
mkdir -p /home/simple/.local/share
chown -R simple:simple /home/simple
# Configure systemd services
echo "Configuring systemd services..."
systemctl enable systemd-networkd
systemctl enable systemd-resolved
systemctl enable systemd-timesyncd
# Configure networking
echo "Configuring networking..."
cat > /etc/systemd/network/20-wired.network << EOF
[Match]
Name=en*
[Network]
DHCP=yes
EOF
# Configure OSTree
echo "Configuring OSTree..."
mkdir -p /usr/lib/ostree-boot
ostree admin init-fs /usr/lib/ostree-boot
# Set up bootupd
echo "Configuring bootupd..."
bootupd install
echo "=== First boot setup complete ==="
echo "System is ready for use!"

View file

@ -0,0 +1,91 @@
# Simple CLI ujust Commands
# Based on Aurora's ujust pattern
# Show system information
info:
#!/usr/bin/env bash
echo "=== Simple CLI System Information ==="
echo "OS: $(cat /etc/os-release | grep PRETTY_NAME | cut -d'"' -f2)"
echo "Kernel: $(uname -r)"
echo "Architecture: $(uname -m)"
echo "Hostname: $(hostname)"
echo "Uptime: $(uptime -p)"
echo "================================"
# Show OSTree status
ostree-status:
#!/usr/bin/env bash
echo "=== OSTree Status ==="
ostree status
echo "==================="
# Update system
update:
#!/usr/bin/env bash
echo "Updating Simple CLI system..."
sudo ostree admin upgrade
echo "Update complete. Reboot to apply changes."
# Show package information
packages:
#!/usr/bin/env bash
echo "=== Installed Packages ==="
dpkg -l | wc -l
echo "========================="
# Show system services
services:
#!/usr/bin/env bash
echo "=== System Services ==="
systemctl list-units --type=service --state=running
echo "======================"
# Show network status
network:
#!/usr/bin/env bash
echo "=== Network Status ==="
ip addr show
echo "====================="
# Show disk usage
disk:
#!/usr/bin/env bash
echo "=== Disk Usage ==="
df -h
echo "================="
# Show memory usage
memory:
#!/usr/bin/env bash
echo "=== Memory Usage ==="
free -h
echo "==================="
# Show process information
processes:
#!/usr/bin/env bash
echo "=== Top Processes ==="
ps aux --sort=-%cpu | head -10
echo "===================="
# Show system logs
logs:
#!/usr/bin/env bash
echo "=== Recent System Logs ==="
journalctl -n 20 --no-pager
echo "========================="
# Help command
help:
@echo "Simple CLI ujust Commands:"
@echo " info - Show system information"
@echo " ostree-status - Show OSTree status"
@echo " update - Update system"
@echo " packages - Show package count"
@echo " services - Show running services"
@echo " network - Show network status"
@echo " disk - Show disk usage"
@echo " memory - Show memory usage"
@echo " processes - Show top processes"
@echo " logs - Show recent logs"
@echo " help - Show this help"