Brave auf apt, Kitty, FaceTime-Webcam, WireGuard wg-quick, SSH-Setup, HiDPI-Verbesserungen

- Brave Browser: von Flatpak auf apt mit offiziellem Repo umgestellt
- Kitty Terminal: Installation (apt) + Konfiguration in setup-desktop.sh
- FaceTime HD Webcam: Firmware + DKMS-Treiber (bcwc_pcie)
- WireGuard: von NetworkManager auf wg-quick umgestellt, DNS fuer m13
- SSH-Key-Generierung + automatische HTTPS→SSH Umstellung der Repos
- Thunderbird: von apt auf Snap (wegen .deb-Bug)
- XFCE HiDPI: Noto Sans 10pt, Panel 28px, fuer beide MBPs vereinheitlicht
- Tastatur: ctrl:swap_lwin_lctl fuer Mac-like Cmd+C/V
- Standard-Apps: Brave (Browser), Thunderbird (Mail)
- CLAUDE.md: Doku aktualisiert

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Rene 2026-03-31 12:43:24 +02:00
parent 273978b78f
commit aa24f89511
4 changed files with 234 additions and 92 deletions

View file

@ -71,16 +71,14 @@ export PATH="$HOME/.npm-global/bin:$PATH"
npm install -g @anthropic-ai/claude-code
ok "Claude Code installiert"
# ── 5. Flatpak-Apps (PrusaSlicer + Brave) ──────────────────────────────
echo -e "\n=== 5/8 Flatpak-Apps ==="
# ── 5. Flatpak-Apps (PrusaSlicer) ──────────────────────────────────────
echo -e "\n=== 5/10 Flatpak-Apps ==="
flatpak remote-add --user --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
flatpak install --user -y flathub com.prusa3d.PrusaSlicer
ok "PrusaSlicer installiert (Flatpak)"
flatpak install --user -y flathub com.brave.Browser
ok "Brave Browser installiert (Flatpak)"
# ── 6. PlatformIO (pipx) ────────────────────────────────────────────────
echo -e "\n=== 6/8 PlatformIO ==="
echo -e "\n=== 6/10 PlatformIO ==="
if ! command -v pio &>/dev/null; then
pipx install platformio
pipx ensurepath
@ -88,7 +86,7 @@ fi
ok "PlatformIO installiert (pipx)"
# ── 7. Dot-Files ────────────────────────────────────────────────────────
echo -e "\n=== 7/8 Dot-Files ==="
echo -e "\n=== 7/10 Dot-Files ==="
DOTFILES_DIR="$HOME/git-projekte/dotfiles-rene"
if [[ ! -d "$DOTFILES_DIR" ]]; then
mkdir -p "$HOME/git-projekte"
@ -146,8 +144,87 @@ else
warn ".p10k.zsh nicht im Dotfiles-Repo — beim ersten zsh-Start 'p10k configure' ausfuehren"
fi
# ── 8. XFCE-Einstellungen ───────────────────────────────────────────────
echo -e "\n=== 8/8 XFCE-Einstellungen ==="
# ── 8. Kitty Terminal ──────────────────────────────────────────────────
echo -e "\n=== 8/10 Kitty Terminal ==="
KITTY_CONF_DIR="$HOME/.config/kitty"
mkdir -p "$KITTY_CONF_DIR"
cat > "$KITTY_CONF_DIR/kitty.conf" <<'KITTYEOF'
# Font
font_family MesloLGS NF
font_size 18.0
# Fenster
initial_window_width 120c
initial_window_height 35c
# Scrollback
scrollback_lines 10000
# Kein Glockenspiel
enable_audio_bell no
# Copy/Paste mit Ctrl+C/V (= Cmd auf Mac-Keyboard nach Swap)
map ctrl+c copy_or_interrupt
map ctrl+v paste_from_clipboard
# Tab-Verwaltung
map ctrl+t new_tab
map ctrl+w close_tab
map ctrl+shift+left previous_tab
map ctrl+shift+right next_tab
# Scrolling
map ctrl+shift+up scroll_line_up
map ctrl+shift+down scroll_line_down
map ctrl+shift+page_up scroll_page_up
map ctrl+shift+page_down scroll_page_down
# Keine Scrollbar
scrollback_indicator_color none
KITTYEOF
ok "Kitty Terminal konfiguriert"
# Kitty als Standard-Terminal
sudo update-alternatives --set x-terminal-emulator /usr/bin/kitty 2>/dev/null || true
ok "Kitty als Standard-Terminal"
# ── 9. SSH-Key + Git auf SSH umstellen ────────────────────────────────
echo -e "\n=== 9/10 SSH-Key + Git ==="
SSH_KEY="$HOME/.ssh/id_ed25519"
if [[ ! -f "$SSH_KEY" ]]; then
ssh-keygen -t ed25519 -C "rene@$(hostname)" -f "$SSH_KEY" -N ""
ok "SSH-Key erstellt"
echo ""
warn "SSH Public Key in Forgejo hinterlegen:"
echo " https://git.motocamp.de/user/settings/keys"
echo ""
cat "${SSH_KEY}.pub"
echo ""
else
ok "SSH-Key vorhanden"
fi
# Forgejo SSH Host-Key akzeptieren
ssh-keyscan -p 2222 dsm.motocamp.de >> ~/.ssh/known_hosts 2>/dev/null
ok "Forgejo Host-Key akzeptiert"
# Git Remotes auf SSH umstellen
GIT_BASE="$HOME/git-projekte"
for repo in "$GIT_BASE"/*/; do
[[ -d "$repo/.git" ]] || continue
old_url=$(git -C "$repo" remote get-url origin 2>/dev/null)
if [[ "$old_url" == https://git.motocamp.de/rene/* ]]; then
name=$(basename "$old_url" .git)
git -C "$repo" remote set-url origin "ssh://git@dsm.motocamp.de:2222/rene/${name}.git"
ok "SSH: $(basename "$repo")"
fi
done
# Git Credential-Store (Fallback falls SSH-Key noch nicht in Forgejo)
git config --global credential.helper store
# ── 10. XFCE-Einstellungen ──────────────────────────────────────────────
echo -e "\n=== 10/10 XFCE-Einstellungen ==="
# Keyboard: XFCE soll /etc/default/keyboard respektieren (nicht eigenes Layout erzwingen)
if command -v xfconf-query &>/dev/null; then
@ -208,6 +285,12 @@ else
fi
ok "WezTerm: XFCE Standard-Terminal gesetzt"
# Standard-Apps: Brave als Browser, Thunderbird als Mail
xdg-settings set default-web-browser brave-browser.desktop 2>/dev/null || true
xdg-mime default thunderbird.desktop x-scheme-handler/mailto 2>/dev/null || true
xdg-mime default thunderbird.desktop message/rfc822 2>/dev/null || true
ok "Standard-Apps: Brave (Browser), Thunderbird (Mail)"
# ── Autostart entfernen ─────────────────────────────────────────────────
AUTOSTART_FILE="$HOME/.config/autostart/macbook-setup-desktop.desktop"
if [[ -f "$AUTOSTART_FILE" ]]; then
@ -222,7 +305,8 @@ echo -e " ${GREEN}Desktop-Setup abgeschlossen!${NC}"
echo "============================================"
echo ""
warn "Noch manuell erledigen:"
echo " 1. Synology Drive Client installieren (.deb von synology.com)"
echo " 2. Thunderbird starten → Profil aus Synology Drive einbinden"
echo " 3. Brave starten → Synchronisation einrichten"
echo " 4. Falls p10k-Icons fehlen: Terminal-Schriftart auf 'MesloLGS NF' setzen"
echo " 1. SSH Public Key in Forgejo hinterlegen (falls noch nicht geschehen)"
echo " 2. Synology Drive Client installieren (.deb von synology.com)"
echo " 3. Thunderbird starten → Profil aus Synology Drive einbinden"
echo " 4. Brave starten → Synchronisation einrichten"
echo " 5. Falls p10k-Icons fehlen: Terminal-Schriftart auf 'MesloLGS NF' setzen"