diff --git a/01-system-einrichten/prepare-dietpi-sd.sh b/01-system-einrichten/prepare-dietpi-sd.sh index e01b335..06e3ffe 100755 --- a/01-system-einrichten/prepare-dietpi-sd.sh +++ b/01-system-einrichten/prepare-dietpi-sd.sh @@ -140,7 +140,8 @@ settings = { "AUTO_SETUP_APT_INSTALLS": ( "git curl ca-certificates mc openssh-client " "python3-venv python3-pip " - "python3-gpiozero python3-lgpio python3-spidev i2c-tools" + "python3-gpiozero python3-lgpio python3-spidev i2c-tools " + "fonts-dejavu-core fonts-liberation2 fonts-lato fonts-freefont-ttf" ), "AUTO_SETUP_CUSTOM_SCRIPT_EXEC": "1", "CONFIG_BOOT_WAIT_FOR_NETWORK": "2", @@ -356,16 +357,20 @@ cat > /home/dietpi/.local/share/code-server/User/settings.json <<'JSONSETTINGS' { "telemetry.telemetryLevel": "off", "workbench.enableExperiments": false, + "chat.disableAIFeatures": true, + "extensions.autoCheckUpdates": false, - "extensions.autoUpdate": off, - "python.defaultInterpreterPath": "${workspaceFolder}/.venv/bin/python", - "python.terminal.activateEnvironment": true, + "extensions.autoUpdate": false, + + "python.terminal.activateEnvironment": false, + "python.languageServer": "None", + "editor.tabSize": 4, "files.encoding": "utf8", + "git.enableSmartCommit": true, - "workbench.editor.empty.hint": "hidden", - "python.languageServer": "None" + "workbench.editor.empty.hint": "hidden" } JSONSETTINGS chown -R dietpi:dietpi /home/dietpi/.local/share/code-server @@ -698,9 +703,9 @@ GIT_HOSTNAME="$(hostname)" echo "Konfiguriere Git-Benutzer für ${GIT_HOSTNAME} ..." -sudo -u dietpi git config --global user.name "${GIT_HOSTNAME}" -sudo -u dietpi git config --global user.email "${GIT_HOSTNAME}@raspi-labor.local" -sudo -u dietpi git config --global core.sshCommand "ssh -4 -p 2222" +runuser -u dietpi -- git config --global user.name "${GIT_HOSTNAME}" +runuser -u dietpi -- git config --global user.email "${GIT_HOSTNAME}@raspi-labor.local" +runuser -u dietpi -- git config --global core.sshCommand "ssh -4 -p 2222" # I2C- und weitere Boot-Konfigurationen werden erst nach einem Neustart # vollständig wirksam. Den ersten Start daher automatisch abschließen.