Crimata's custom OS/desktop environment - auth, dock, and contacts services
  • C 40.7%
  • TypeScript 26.8%
  • JavaScript 14.8%
  • CSS 8.6%
  • HTML 8.4%
  • Other 0.7%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Andrew Gundersen 44f3192b78 Add multi-user auth with sessions and login UI
- auth: POST /auth validates PAM, returns session token
- auth: GET /me validates Bearer token, returns username
- auth: POST /logout destroys session
- auth: POST /users creates Linux user via useradd+chpasswd
- session.c: in-memory token store (1024 slots, pthread mutex, /dev/urandom tokens)
- user.c: fork/exec useradd + chpasswd with username validation
- ui: login overlay shown until authenticated (x-cloak)
- ui: token persisted in sessionStorage, validated on page load
- ui: username displayed in dock after login
- ui: apps only load after successful auth

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-02-27 11:33:07 -05:00
apps Initial commit 2026-02-25 15:35:31 -05:00
auth Add multi-user auth with sessions and login UI 2026-02-27 11:33:07 -05:00
dock Add dock service, provision README, MIT License 2026-02-26 23:51:56 -05:00
ui Add multi-user auth with sessions and login UI 2026-02-27 11:33:07 -05:00
.DS_Store Initial commit 2026-02-25 15:35:31 -05:00
LICENSE Add dock service, provision README, MIT License 2026-02-26 23:51:56 -05:00
README.md Add dock service, provision README, MIT License 2026-02-26 23:51:56 -05:00

Crimata OS

Install Paths

Component Path
Web desktop UI /opt/crimata/ui/
Auth daemon /opt/crimata/bin/crimata-auth
Dock daemon /opt/crimata/bin/crimata-dock
Contacts app /usr/lib/crimata-contacts/
Nginx config /etc/nginx/sites-available/crimata
systemd units /etc/systemd/system/crimata-*.service
Postgres DBs crimata_contacts, crimata_blog, …

Ports

Service Port
nginx 80
crimata-auth 7700
crimata-dock 7701
crimata-contacts 3001