Cleanup repository from un-used files and directories
This commit is contained in:
@@ -1,67 +0,0 @@
|
||||
# Greetd Auto-Login Setup for Ubuntu Server 24
|
||||
|
||||
## Overview
|
||||
This guide configures greetd for automatic login of the `kiosk` user on Ubuntu Server 24, bypassing password authentication while keeping the user account password-protected for other purposes.
|
||||
|
||||
## Installation
|
||||
|
||||
```bash
|
||||
# Install greetd
|
||||
sudo apt update
|
||||
sudo apt install greetd
|
||||
|
||||
# Disable other display managers if running
|
||||
sudo systemctl disable gdm3 lightdm sddm
|
||||
```
|
||||
|
||||
## Configuration
|
||||
|
||||
Edit `/etc/greetd/config.toml`:
|
||||
|
||||
```toml
|
||||
[terminal]
|
||||
vt = 1
|
||||
|
||||
[default_session]
|
||||
command = "agreety --cmd /bin/bash"
|
||||
user = "kiosk"
|
||||
|
||||
[initial_session]
|
||||
command = "/bin/bash"
|
||||
user = "kiosk"
|
||||
```
|
||||
|
||||
## Auto-Start Application
|
||||
|
||||
Create `/home/kiosk/.bash_profile`:
|
||||
|
||||
```bash
|
||||
#!/bin/bash
|
||||
# Auto-start RhemaWave on login
|
||||
if [ -z "$DISPLAY" ] && [ "$(tty)" = "/dev/tty1" ]; then
|
||||
exec /usr/local/bin/rhemawave
|
||||
fi
|
||||
```
|
||||
|
||||
Make it executable:
|
||||
```bash
|
||||
chmod +x /home/kiosk/.bash_profile
|
||||
chown kiosk:kiosk /home/kiosk/.bash_profile
|
||||
```
|
||||
|
||||
## Enable Service
|
||||
|
||||
```bash
|
||||
sudo systemctl enable greetd
|
||||
sudo systemctl start greetd
|
||||
```
|
||||
|
||||
## Verification
|
||||
|
||||
Reboot the system. The `kiosk` user should auto-login on tty1 and launch RhemaWave automatically.
|
||||
|
||||
## Notes
|
||||
|
||||
- The `kiosk` user password remains active for SSH, sudo, and manual logins on other TTYs
|
||||
- Auto-login only applies to tty1 (the primary console)
|
||||
- If RhemaWave crashes, the user remains logged in at a bash prompt
|
||||
@@ -1,189 +0,0 @@
|
||||
# RhemaWave Kiosk Setup Guide - Ubuntu Server 24
|
||||
|
||||
Complete setup guide for a fresh Ubuntu Server 24 installation configured as a RhemaWave kiosk.
|
||||
|
||||
## Initial System Setup
|
||||
|
||||
### 1. Create Kiosk User
|
||||
|
||||
```bash
|
||||
sudo adduser kiosk
|
||||
sudo usermod -aG sudo kiosk
|
||||
```
|
||||
|
||||
### 2. Install Dependencies
|
||||
|
||||
```bash
|
||||
sudo apt update
|
||||
sudo apt install -y \
|
||||
libsdl2-2.0-0 \
|
||||
libsdl2-ttf-2.0-0 \
|
||||
libsdl2-mixer-2.0-0 \
|
||||
libegl1-mesa \
|
||||
libgles2-mesa \
|
||||
libgbm1 \
|
||||
libinput10 \
|
||||
libxkbcommon0 \
|
||||
dbus \
|
||||
network-manager
|
||||
```
|
||||
|
||||
### 3. Install Cage (Wayland Compositor)
|
||||
|
||||
```bash
|
||||
sudo apt install -y cage
|
||||
```
|
||||
|
||||
### 4. Install Greetd
|
||||
|
||||
```bash
|
||||
sudo apt install -y greetd
|
||||
```
|
||||
|
||||
### 5. Configure PAM for Greetd
|
||||
|
||||
Create `/etc/pam.d/greetd`:
|
||||
|
||||
```bash
|
||||
sudo tee /etc/pam.d/greetd <<EOF
|
||||
#%PAM-1.0
|
||||
auth required pam_unix.so
|
||||
auth required pam_env.so
|
||||
account required pam_unix.so
|
||||
password required pam_unix.so
|
||||
session required pam_unix.so
|
||||
session required pam_limits.so
|
||||
EOF
|
||||
```
|
||||
|
||||
### 6. Configure Greetd Auto-Login
|
||||
|
||||
Create `/etc/greetd/config.toml`:
|
||||
|
||||
```bash
|
||||
sudo tee /etc/greetd/config.toml <<EOF
|
||||
[terminal]
|
||||
vt = 1
|
||||
|
||||
[initial_session]
|
||||
command = "cage -s -- /usr/local/bin/rhemawave"
|
||||
user = "kiosk"
|
||||
|
||||
[default_session]
|
||||
command = "cage -s -- /usr/local/bin/rhemawave"
|
||||
user = "kiosk"
|
||||
EOF
|
||||
```
|
||||
|
||||
### 7. Disable Network Wait Service
|
||||
|
||||
Speed up boot by disabling network wait:
|
||||
|
||||
```bash
|
||||
sudo systemctl disable systemd-networkd-wait-online.service
|
||||
sudo systemctl mask systemd-networkd-wait-online.service
|
||||
```
|
||||
|
||||
## Install RhemaWave
|
||||
|
||||
### Option 1: Via APT Repository (Recommended)
|
||||
|
||||
```bash
|
||||
# Add repository
|
||||
echo "deb [trusted=yes] https://repository.rhemawavetech.com/release ./" | \
|
||||
sudo tee /etc/apt/sources.list.d/rhemawave.list
|
||||
|
||||
# Install
|
||||
sudo apt update
|
||||
sudo apt install rhemawave
|
||||
```
|
||||
|
||||
### Option 2: Manual Installation
|
||||
|
||||
```bash
|
||||
# Download and install .deb package
|
||||
wget https://repository.rhemawavetech.com/rhemawave_X.X.X_amd64.deb
|
||||
sudo dpkg -i rhemawave_X.X.X_amd64.deb
|
||||
sudo apt install -f
|
||||
```
|
||||
|
||||
## Enable and Start Greetd
|
||||
|
||||
```bash
|
||||
sudo systemctl enable greetd
|
||||
sudo systemctl start greetd
|
||||
```
|
||||
|
||||
## Verify Setup
|
||||
|
||||
Check greetd status:
|
||||
```bash
|
||||
sudo systemctl status greetd
|
||||
```
|
||||
|
||||
Check logs if issues occur:
|
||||
```bash
|
||||
journalctl -xeu greetd
|
||||
```
|
||||
|
||||
## Reboot
|
||||
|
||||
```bash
|
||||
sudo reboot
|
||||
```
|
||||
|
||||
The system should auto-login as `kiosk` and launch RhemaWave in fullscreen via cage.
|
||||
|
||||
## Troubleshooting
|
||||
|
||||
### Greetd fails to start
|
||||
- Check PAM config: `cat /etc/pam.d/greetd`
|
||||
- Check greetd config syntax: `cat /etc/greetd/config.toml`
|
||||
- View detailed logs: `journalctl -xeu greetd`
|
||||
|
||||
### Black screen after login
|
||||
- Verify cage is installed: `which cage`
|
||||
- Verify rhemawave exists: `ls -l /usr/local/bin/rhemawave`
|
||||
- Check cage can access GPU: `ls -l /dev/dri/`
|
||||
- Add kiosk to video group: `sudo usermod -aG video kiosk`
|
||||
|
||||
### Network not connecting
|
||||
- Check NetworkManager status: `systemctl status NetworkManager`
|
||||
- Use nmtui for WiFi setup: `sudo nmtui`
|
||||
- RhemaWave will show WiFi setup page if no connection detected
|
||||
|
||||
### Auto-updates not working
|
||||
- Verify polkit rules: `ls -l /etc/polkit-1/rules.d/99-rhemawave-updater.rules`
|
||||
- Check updater script: `ls -l /usr/local/bin/rhemawave-updater.py`
|
||||
- Test manual update: `sudo apt update && sudo apt list --upgradable`
|
||||
|
||||
## Security Notes
|
||||
|
||||
- The kiosk user keeps their password for SSH and sudo access
|
||||
- Auto-login only applies to tty1 (the primary console)
|
||||
- Other TTYs (Ctrl+Alt+F2-F6) still require password
|
||||
- Polkit rules restrict kiosk user to only RhemaWave package updates
|
||||
|
||||
## Remote Management
|
||||
|
||||
### SSH Access
|
||||
```bash
|
||||
ssh kiosk@<kiosk-ip>
|
||||
```
|
||||
|
||||
### View RhemaWave Logs
|
||||
```bash
|
||||
# From SSH session
|
||||
sudo journalctl -u greetd -f
|
||||
```
|
||||
|
||||
### Restart RhemaWave
|
||||
```bash
|
||||
sudo systemctl restart greetd
|
||||
```
|
||||
|
||||
### Update RhemaWave
|
||||
```bash
|
||||
sudo apt update
|
||||
sudo apt upgrade rhemawave
|
||||
```
|
||||
@@ -1,64 +0,0 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
|
||||
# RhemaWave Repository Setup Script
|
||||
# Usage: curl -fsSL https://repository.rhemawavetech.com/setup.sh | sudo bash
|
||||
|
||||
echo "=== RhemaWave Repository Setup ==="
|
||||
|
||||
# Check if running as root
|
||||
if [ "$EUID" -ne 0 ]; then
|
||||
echo "Error: This script must be run as root"
|
||||
echo "Please run: curl -fsSL https://repository.rhemawavetech.com/setup.sh | sudo bash"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Check if running on Ubuntu/Debian
|
||||
if [ ! -f /etc/debian_version ]; then
|
||||
echo "Error: This script is for Ubuntu/Debian systems only"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
REPO_URL="https://repository.rhemawavetech.com"
|
||||
REPO_NAME="rhemawave"
|
||||
SOURCES_LIST="/etc/apt/sources.list.d/${REPO_NAME}.list"
|
||||
KEYRING_FILE="/usr/share/keyrings/${REPO_NAME}-archive-keyring.gpg"
|
||||
|
||||
echo "Adding RhemaWave repository..."
|
||||
|
||||
# Add the repository to sources.list.d
|
||||
# echo "deb [signed-by=${KEYRING_FILE}] ${REPO_URL} stable main" >"${SOURCES_LIST}"
|
||||
|
||||
echo "deb [trusted=yes] ${REPO_URL} release main" >"${SOURCES_LIST}"
|
||||
|
||||
# Download and install the GPG key (you'll need to provide this)
|
||||
# Uncomment and modify once you have a GPG key:
|
||||
# curl -fsSL "${REPO_URL}/KEY.gpg" | gpg --dearmor -o "${KEYRING_FILE}"
|
||||
|
||||
echo "Updating package lists..."
|
||||
apt update
|
||||
|
||||
echo "Upgrading system packages..."
|
||||
apt upgrade -y
|
||||
|
||||
echo "Installing Tailscale..."
|
||||
if ! command -v tailscale &> /dev/null; then
|
||||
curl -fsSL https://tailscale.com/install.sh | sh
|
||||
else
|
||||
echo "✓ Tailscale already installed"
|
||||
fi
|
||||
|
||||
echo "Installing RhemaWave..."
|
||||
apt install -y rhemawave
|
||||
|
||||
echo "Setting Tailscale operator..."
|
||||
if tailscale set --operator=kiosk; then
|
||||
echo "✓ Tailscale operator set to kiosk"
|
||||
else
|
||||
echo "⚠ Warning: Could not set Tailscale operator"
|
||||
fi
|
||||
|
||||
echo ""
|
||||
echo "=== Installation Complete ==="
|
||||
echo "RhemaWave has been installed successfully."
|
||||
echo ""
|
||||
Reference in New Issue
Block a user