Skip to content

feat: WSL distro enhancements — MOTD, CLI, auto-update, smaller tarball#11

Closed
Awaiswilll wants to merge 6 commits into
mainfrom
feat/wsl-enhancements
Closed

feat: WSL distro enhancements — MOTD, CLI, auto-update, smaller tarball#11
Awaiswilll wants to merge 6 commits into
mainfrom
feat/wsl-enhancements

Conversation

@Awaiswilll

Copy link
Copy Markdown
Owner

Summary

Complete WSL distro enhancement: custom MOTD, dweb CLI, auto-update mechanism, and smaller tarball.

Changes

New: MOTD Banner (/etc/profile.d/dweb-motd.sh)

  • dweb ASCII art logo on every wsl -d dweb login
  • Shows server status (running/starting), Node.js version, memory, uptime, load, IP
  • Lists available dweb commands

New: dweb CLI (/usr/bin/dweb)

  • dweb status — detailed server + system status
  • dweb start|stop|restart — manage the server
  • dweb logs [-f] — view server logs
  • dweb ping — quick health check
  • dweb update — check for newer GitHub releases

New: Auto-update (/opt/dweb/tools/dweb-update.sh)

  • Checks latest GitHub release
  • Downloads and applies updates in-place (with backup)
  • Invokable via dweb update

Smaller tarball

  • Stripped: locales, zoneinfo, i18n, headers, static libs, .pyc caches
  • Reduced from 57.6MB to 46MB (20% smaller)

Build script (build-wsl-distro.sh)

  • Added overlay installation step for reproducible builds
  • Overlay source files in packaging/wsl/overlay/

Testing

  1. wsl --import dweb C:\dweb-wsl dweb-wsl-rootfs.tar.gz --version 2
  2. wsl -d dweb — should show MOTD banner
  3. dweb status — should show server info
  4. dweb ping — should return {"status":"ok"}
  5. dweb update — should check GitHub releases

Closes #4, #5

@Awaiswilll Awaiswilll closed this Jul 3, 2026
@Awaiswilll Awaiswilll deleted the feat/wsl-enhancements branch July 3, 2026 08:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add P2P connection status indicator to navbar

1 participant