docs: add Element Desktop setup scripts for Windows, macOS, and Linux
This commit is contained in:
parent
147ac079f7
commit
659acdf601
206
docs/setup/README-Element-Setup.md
Normal file
206
docs/setup/README-Element-Setup.md
Normal file
@ -0,0 +1,206 @@
|
|||||||
|
# Element Desktop Setup Scripts
|
||||||
|
|
||||||
|
Automatische Konfiguration und Installation von Element Desktop mit Custom Themes für aXion1337.Chat
|
||||||
|
|
||||||
|
## 📋 Systemanforderungen
|
||||||
|
|
||||||
|
- **Windows 10/11**
|
||||||
|
- **macOS 10.13+**
|
||||||
|
- **Linux** (Ubuntu, Debian, Fedora, Arch, openSUSE, etc.)
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## 🪟 Windows
|
||||||
|
|
||||||
|
### Installation
|
||||||
|
|
||||||
|
1. **Lade die Datei herunter**: `element-setup-windows.cmd`
|
||||||
|
2. **Doppelklick** auf die Datei
|
||||||
|
3. Das Skript wird automatisch:
|
||||||
|
- ✅ Die config.json erstellen
|
||||||
|
- ✅ Element Desktop installieren (falls nötig)
|
||||||
|
- ✅ Element starten
|
||||||
|
|
||||||
|
**Oder manuell:**
|
||||||
|
```cmd
|
||||||
|
element-setup-windows.cmd
|
||||||
|
```
|
||||||
|
|
||||||
|
### Voraussetzungen
|
||||||
|
|
||||||
|
Das Skript versucht automatisch, Element zu installieren über:
|
||||||
|
- Windows Store (Microsoft Store)
|
||||||
|
- WinGet (Windows Package Manager)
|
||||||
|
- Chocolatey
|
||||||
|
|
||||||
|
Falls nichts davon vorhanden ist, installiere Element manuell:
|
||||||
|
https://element.io/download
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## 🍎 macOS
|
||||||
|
|
||||||
|
### Installation
|
||||||
|
|
||||||
|
1. **Lade die Datei herunter**: `element-setup-macos.command`
|
||||||
|
2. **Doppelklick** im Finder
|
||||||
|
3. Das Skript wird automatisch:
|
||||||
|
- ✅ Die config.json erstellen
|
||||||
|
- ✅ Element Desktop installieren (über Homebrew falls nötig)
|
||||||
|
- ✅ Element starten
|
||||||
|
|
||||||
|
**Oder im Terminal:**
|
||||||
|
```bash
|
||||||
|
chmod +x element-setup-macos.command
|
||||||
|
./element-setup-macos.command
|
||||||
|
```
|
||||||
|
|
||||||
|
### Voraussetzungen
|
||||||
|
|
||||||
|
Das Skript nutzt **Homebrew** (falls vorhanden):
|
||||||
|
```bash
|
||||||
|
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
|
||||||
|
```
|
||||||
|
|
||||||
|
Oder installiere Element manuell:
|
||||||
|
https://element.io/download
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## 🐧 Linux
|
||||||
|
|
||||||
|
### Installation
|
||||||
|
|
||||||
|
1. **Lade die Datei herunter**: `element-setup-linux.sh`
|
||||||
|
2. **Im Terminal:**
|
||||||
|
```bash
|
||||||
|
chmod +x element-setup-linux.sh
|
||||||
|
./element-setup-linux.sh
|
||||||
|
```
|
||||||
|
|
||||||
|
3. Das Skript wird automatisch:
|
||||||
|
- ✅ Die config.json erstellen
|
||||||
|
- ✅ Element Desktop installieren (über apt/dnf/pacman/zypper)
|
||||||
|
- ✅ Element starten
|
||||||
|
|
||||||
|
### Unterstützte Distributionen
|
||||||
|
|
||||||
|
- **Ubuntu/Debian**: `apt`
|
||||||
|
- **Fedora/RHEL**: `dnf`
|
||||||
|
- **Arch Linux**: `pacman`
|
||||||
|
- **openSUSE**: `zypper`
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## ✅ Was die Skripte machen
|
||||||
|
|
||||||
|
Alle Skripte führen diese Schritte aus:
|
||||||
|
|
||||||
|
1. **config.json erstellen** im richtigen Verzeichnis:
|
||||||
|
- **Windows**: `%APPDATA%\Element\config.json`
|
||||||
|
- **macOS**: `~/Library/Application Support/Element/config.json`
|
||||||
|
- **Linux**: `~/.config/Element/config.json`
|
||||||
|
|
||||||
|
2. **Automatische Konfiguration**:
|
||||||
|
```json
|
||||||
|
{
|
||||||
|
"configUrl": "https://axion1337.chat/config.json",
|
||||||
|
"brand": "aXion1337.Chat",
|
||||||
|
"default_theme": "aXion1337 Dark",
|
||||||
|
"show_labs_settings": true,
|
||||||
|
"features": {
|
||||||
|
"feature_qr_code_login": true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
3. **Element Desktop installieren** (falls nicht vorhanden)
|
||||||
|
|
||||||
|
4. **Element starten** und deine Custom Themes laden
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## 🎨 Themes nach Setup
|
||||||
|
|
||||||
|
Nach dem Setup hat dein Element Desktop:
|
||||||
|
|
||||||
|
1. **Automatisch geladene Themes** von: `https://axion1337.chat/config.json`
|
||||||
|
2. **Standard Theme**: aXion1337 Dark
|
||||||
|
3. **Verfügbare Themes**:
|
||||||
|
- aXion1337 Dark
|
||||||
|
- Deep Purple
|
||||||
|
- Discord Dark
|
||||||
|
- Electric Blue
|
||||||
|
- Everforest dark hard
|
||||||
|
- Gruvbox Dark
|
||||||
|
- Wal
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## ⚙️ Manuelle Konfiguration (falls Skript nicht funktioniert)
|
||||||
|
|
||||||
|
Falls die Skripte nicht funktionieren, erstelle manuell die config.json:
|
||||||
|
|
||||||
|
### Windows
|
||||||
|
```
|
||||||
|
%APPDATA%\Element\config.json
|
||||||
|
```
|
||||||
|
|
||||||
|
### macOS
|
||||||
|
```
|
||||||
|
~/Library/Application Support/Element/config.json
|
||||||
|
```
|
||||||
|
|
||||||
|
### Linux
|
||||||
|
```
|
||||||
|
~/.config/Element/config.json
|
||||||
|
```
|
||||||
|
|
||||||
|
**Inhalt** (copy-paste):
|
||||||
|
```json
|
||||||
|
{
|
||||||
|
"configUrl": "https://axion1337.chat/config.json",
|
||||||
|
"brand": "aXion1337.Chat",
|
||||||
|
"default_theme": "aXion1337 Dark",
|
||||||
|
"show_labs_settings": true,
|
||||||
|
"features": {
|
||||||
|
"feature_qr_code_login": true
|
||||||
|
},
|
||||||
|
"setting_defaults": {
|
||||||
|
"custom_themes": []
|
||||||
|
}
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## 🆘 Troubleshooting
|
||||||
|
|
||||||
|
### Element startet nicht
|
||||||
|
- Stelle sicher, dass Element Desktop installiert ist
|
||||||
|
- Überprüfe den Installationspfad
|
||||||
|
- Starten manuell: `element` (Terminal/CMD)
|
||||||
|
|
||||||
|
### config.json wird nicht geladen
|
||||||
|
- Überprüfe, dass die Datei im richtigen Verzeichnis ist
|
||||||
|
- Beende Element vollständig (auch in der Taskbar)
|
||||||
|
- Starte Element neu
|
||||||
|
|
||||||
|
### Themes nicht sichtbar
|
||||||
|
- Überprüfe Internetverbindung
|
||||||
|
- `https://axion1337.chat/config.json` sollte erreichbar sein
|
||||||
|
- Öffne Settings > Appearance > Theme und wähle manuell
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## 📞 Support
|
||||||
|
|
||||||
|
Bei Fragen oder Problemen:
|
||||||
|
- https://element.io/help
|
||||||
|
- https://axion1337.chat
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
**Version**: 1.0
|
||||||
|
**Letztes Update**: 2026-04-23
|
||||||
|
**Kompatibilität**: Element Desktop 1.11+
|
||||||
114
docs/setup/element-setup-linux.sh
Executable file
114
docs/setup/element-setup-linux.sh
Executable file
@ -0,0 +1,114 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
# Element Desktop Setup Script for Linux
|
||||||
|
# Ausführung: chmod +x element-setup-linux.sh && ./element-setup-linux.sh
|
||||||
|
|
||||||
|
echo "========================================"
|
||||||
|
echo "Element Desktop Konfiguration Setup"
|
||||||
|
echo "========================================"
|
||||||
|
echo ""
|
||||||
|
|
||||||
|
# Erkenne Linux Distribution
|
||||||
|
if [ -f /etc/os-release ]; then
|
||||||
|
. /etc/os-release
|
||||||
|
OS=$ID
|
||||||
|
else
|
||||||
|
OS=$(uname -s)
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Config-Verzeichnis
|
||||||
|
CONFIG_DIR="$HOME/.config/Element"
|
||||||
|
CONFIG_FILE="$CONFIG_DIR/config.json"
|
||||||
|
|
||||||
|
# Erstelle Verzeichnis falls nicht vorhanden
|
||||||
|
if [ ! -d "$CONFIG_DIR" ]; then
|
||||||
|
echo "Erstelle Element Verzeichnis..."
|
||||||
|
mkdir -p "$CONFIG_DIR"
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Erstelle config.json
|
||||||
|
echo "Erstelle config.json..."
|
||||||
|
cat > "$CONFIG_FILE" << 'EOF'
|
||||||
|
{
|
||||||
|
"configUrl": "https://axion1337.chat/config.json",
|
||||||
|
"brand": "aXion1337.Chat",
|
||||||
|
"default_theme": "aXion1337 Dark",
|
||||||
|
"show_labs_settings": true,
|
||||||
|
"features": {
|
||||||
|
"feature_qr_code_login": true
|
||||||
|
},
|
||||||
|
"setting_defaults": {
|
||||||
|
"custom_themes": []
|
||||||
|
}
|
||||||
|
}
|
||||||
|
EOF
|
||||||
|
|
||||||
|
echo "✅ Config erstellt: $CONFIG_FILE"
|
||||||
|
echo ""
|
||||||
|
|
||||||
|
# Versuche Element zu starten/installieren
|
||||||
|
echo "Überprüfe Element Desktop Installation..."
|
||||||
|
|
||||||
|
# Methode 1: Element ist bereits installiert
|
||||||
|
if command -v element &> /dev/null; then
|
||||||
|
echo "Element gefunden. Starte Element..."
|
||||||
|
element &
|
||||||
|
sleep 2
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Methode 2: Apt (Debian/Ubuntu)
|
||||||
|
if command -v apt &> /dev/null; then
|
||||||
|
echo ""
|
||||||
|
echo "Installiere Element über apt..."
|
||||||
|
sudo apt update
|
||||||
|
sudo apt install -y element-desktop
|
||||||
|
echo "Starte Element..."
|
||||||
|
element &
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Methode 3: Pacman (Arch Linux)
|
||||||
|
if command -v pacman &> /dev/null; then
|
||||||
|
echo ""
|
||||||
|
echo "Installiere Element über pacman..."
|
||||||
|
sudo pacman -S --noconfirm element-web
|
||||||
|
echo "Starte Element..."
|
||||||
|
element &
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Methode 4: DNF (Fedora/RHEL)
|
||||||
|
if command -v dnf &> /dev/null; then
|
||||||
|
echo ""
|
||||||
|
echo "Installiere Element über dnf..."
|
||||||
|
sudo dnf install -y element-desktop
|
||||||
|
echo "Starte Element..."
|
||||||
|
element &
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Methode 5: Zypper (openSUSE)
|
||||||
|
if command -v zypper &> /dev/null; then
|
||||||
|
echo ""
|
||||||
|
echo "Installiere Element über zypper..."
|
||||||
|
sudo zypper install -y element-desktop
|
||||||
|
echo "Starte Element..."
|
||||||
|
element &
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Fallback
|
||||||
|
echo ""
|
||||||
|
echo "⚠️ Element Desktop konnte nicht automatisch installiert werden."
|
||||||
|
echo ""
|
||||||
|
echo "Bitte installiere Element Desktop manuell:"
|
||||||
|
echo " Ubuntu/Debian: sudo apt install element-desktop"
|
||||||
|
echo " Fedora/RHEL: sudo dnf install element-desktop"
|
||||||
|
echo " Arch: sudo pacman -S element-web"
|
||||||
|
echo " openSUSE: sudo zypper install element-desktop"
|
||||||
|
echo ""
|
||||||
|
echo "Oder: https://element.io/download"
|
||||||
|
echo ""
|
||||||
|
echo "✅ Deine config.json wurde erstellt unter:"
|
||||||
|
echo "$CONFIG_FILE"
|
||||||
|
echo ""
|
||||||
84
docs/setup/element-setup-macos.command
Normal file
84
docs/setup/element-setup-macos.command
Normal file
@ -0,0 +1,84 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
# Element Desktop Setup Script for macOS
|
||||||
|
# Doppelklick im Finder zum Ausführen
|
||||||
|
|
||||||
|
echo "========================================"
|
||||||
|
echo "Element Desktop Konfiguration Setup"
|
||||||
|
echo "========================================"
|
||||||
|
echo ""
|
||||||
|
|
||||||
|
# Config-Verzeichnis
|
||||||
|
CONFIG_DIR="$HOME/Library/Application Support/Element"
|
||||||
|
CONFIG_FILE="$CONFIG_DIR/config.json"
|
||||||
|
|
||||||
|
# Erstelle Verzeichnis falls nicht vorhanden
|
||||||
|
if [ ! -d "$CONFIG_DIR" ]; then
|
||||||
|
echo "Erstelle Element Verzeichnis..."
|
||||||
|
mkdir -p "$CONFIG_DIR"
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Erstelle config.json
|
||||||
|
echo "Erstelle config.json..."
|
||||||
|
cat > "$CONFIG_FILE" << 'EOF'
|
||||||
|
{
|
||||||
|
"configUrl": "https://axion1337.chat/config.json",
|
||||||
|
"brand": "aXion1337.Chat",
|
||||||
|
"default_theme": "aXion1337 Dark",
|
||||||
|
"show_labs_settings": true,
|
||||||
|
"features": {
|
||||||
|
"feature_qr_code_login": true
|
||||||
|
},
|
||||||
|
"setting_defaults": {
|
||||||
|
"custom_themes": []
|
||||||
|
}
|
||||||
|
}
|
||||||
|
EOF
|
||||||
|
|
||||||
|
echo "Config erstellt: $CONFIG_FILE"
|
||||||
|
echo ""
|
||||||
|
|
||||||
|
# Versuche Element zu installieren/starten
|
||||||
|
echo "Überprüfe Element Desktop Installation..."
|
||||||
|
|
||||||
|
# Methode 1: Über Homebrew (falls installiert)
|
||||||
|
if command -v brew &> /dev/null; then
|
||||||
|
if brew list element &> /dev/null; then
|
||||||
|
echo "Element über Homebrew gefunden. Starte Element..."
|
||||||
|
open -a Element
|
||||||
|
sleep 2
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Methode 2: Direkte App im Applications Folder
|
||||||
|
if [ -d "/Applications/Element.app" ]; then
|
||||||
|
echo "Element im Applications Folder gefunden. Starte Element..."
|
||||||
|
open -a Element
|
||||||
|
sleep 2
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Methode 3: Homebrew Installation
|
||||||
|
if command -v brew &> /dev/null; then
|
||||||
|
echo ""
|
||||||
|
echo "Installiere Element über Homebrew..."
|
||||||
|
brew install element --cask
|
||||||
|
echo "Starte Element..."
|
||||||
|
sleep 2
|
||||||
|
open -a Element
|
||||||
|
exit 0
|
||||||
|
else
|
||||||
|
echo ""
|
||||||
|
echo "⚠️ Homebrew nicht gefunden. Bitte installiere zuerst:"
|
||||||
|
echo "https://brew.sh"
|
||||||
|
echo ""
|
||||||
|
echo "Oder installiere Element manuell:"
|
||||||
|
echo "https://element.io/download"
|
||||||
|
echo ""
|
||||||
|
echo "✅ Deine config.json wurde erstellt unter:"
|
||||||
|
echo "$CONFIG_FILE"
|
||||||
|
echo ""
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Warte auf Benutzer-Input vor dem Schließen
|
||||||
|
read -p "Drücke Enter zum Beenden..."
|
||||||
89
docs/setup/element-setup-windows.cmd
Normal file
89
docs/setup/element-setup-windows.cmd
Normal file
@ -0,0 +1,89 @@
|
|||||||
|
@echo off
|
||||||
|
REM Element Desktop Setup Script for Windows
|
||||||
|
REM Doppelklick zum Ausführen
|
||||||
|
|
||||||
|
setlocal enabledelayedexpansion
|
||||||
|
|
||||||
|
echo ========================================
|
||||||
|
echo Element Desktop Konfiguration Setup
|
||||||
|
echo ========================================
|
||||||
|
echo.
|
||||||
|
|
||||||
|
REM Config-Verzeichnis
|
||||||
|
set APPDATA_PATH=%APPDATA%\Element
|
||||||
|
set CONFIG_FILE=%APPDATA_PATH%\config.json
|
||||||
|
|
||||||
|
REM Erstelle Verzeichnis falls nicht vorhanden
|
||||||
|
if not exist "%APPDATA_PATH%" (
|
||||||
|
echo Erstelle Element Verzeichnis...
|
||||||
|
mkdir "%APPDATA_PATH%"
|
||||||
|
)
|
||||||
|
|
||||||
|
REM Erstelle config.json
|
||||||
|
echo Erstelle config.json...
|
||||||
|
(
|
||||||
|
echo {
|
||||||
|
echo "configUrl": "https://axion1337.chat/config.json",
|
||||||
|
echo "brand": "aXion1337.Chat",
|
||||||
|
echo "default_theme": "aXion1337 Dark",
|
||||||
|
echo "show_labs_settings": true,
|
||||||
|
echo "features": {
|
||||||
|
echo "feature_qr_code_login": true
|
||||||
|
echo },
|
||||||
|
echo "setting_defaults": {
|
||||||
|
echo "custom_themes": []
|
||||||
|
echo }
|
||||||
|
echo }
|
||||||
|
) > "%CONFIG_FILE%"
|
||||||
|
|
||||||
|
echo Config erstellt: %CONFIG_FILE%
|
||||||
|
echo.
|
||||||
|
|
||||||
|
REM Versuche Element zu installieren/starten
|
||||||
|
echo Überprüfe Element Desktop Installation...
|
||||||
|
|
||||||
|
REM Methode 1: Über Microsoft Store (wenn verfügbar)
|
||||||
|
where element >nul 2>nul
|
||||||
|
if %ERRORLEVEL% == 0 (
|
||||||
|
echo Starte Element Desktop...
|
||||||
|
start element
|
||||||
|
timeout /t 2 >nul
|
||||||
|
echo Done!
|
||||||
|
pause
|
||||||
|
exit /b 0
|
||||||
|
)
|
||||||
|
|
||||||
|
REM Methode 2: WinGet (Falls installiert)
|
||||||
|
winget list --name "Element" >nul 2>nul
|
||||||
|
if %ERRORLEVEL% == 0 (
|
||||||
|
echo WinGet gefunden. Installiere Element...
|
||||||
|
winget install Element.Element --silent
|
||||||
|
echo Starte Element...
|
||||||
|
timeout /t 3 >nul
|
||||||
|
start element
|
||||||
|
pause
|
||||||
|
exit /b 0
|
||||||
|
)
|
||||||
|
|
||||||
|
REM Methode 3: Chocolatey (Falls installiert)
|
||||||
|
choco list element >nul 2>nul
|
||||||
|
if %ERRORLEVEL% == 0 (
|
||||||
|
echo Chocolatey gefunden. Installiere Element...
|
||||||
|
choco install element -y
|
||||||
|
echo Starte Element...
|
||||||
|
timeout /t 3 >nul
|
||||||
|
start element
|
||||||
|
pause
|
||||||
|
exit /b 0
|
||||||
|
)
|
||||||
|
|
||||||
|
REM Fallback: Manueller Download
|
||||||
|
echo.
|
||||||
|
echo Element Desktop konnte nicht automatisch installiert werden.
|
||||||
|
echo Bitte installiere Element Desktop manuell:
|
||||||
|
echo https://element.io/download
|
||||||
|
echo.
|
||||||
|
echo Deine config.json wurde erstellt unter:
|
||||||
|
echo %CONFIG_FILE%
|
||||||
|
echo.
|
||||||
|
pause
|
||||||
Loading…
x
Reference in New Issue
Block a user