Liste der Anhänge anzeigen (Anzahl: 1)
ddev zum verzweifeln...
Hallo in die Runde,
würde mir jmd. Tipps zur Installation und Einrichtung von ddev und wls2 unter Windows 11x64 Pro geben? Ich verzweifle an diesem System!
Ich habe meine alte Entwicklermaschine mit Win 8.1 und Laragon jetzt in den Ruhestand gegeben und möchte meine Projekte unter Windows 11x64 Pro weiterführen. Dazu habe ich jetzt eine neue Maschine erworben, auf der ab Werk o.g. Windows installiert ist. Dazu liegt auch ein Prüfbericht bei, der bestätigt, dass alle Komponenten korrekt installiert sind.
Soweit so gut. Aber...
Für die Inbetriebnahme von wsl2 habe ich jetzt ca. 20 Stunden benötigt. Ich dachte nicht, dass ein grundlegendes Feature so schwer in Betrieb zu nehmen ist. Für diese Installation waren weitreichende Eingriffe in die Registry und das System (CodeFlowControl blockiert wsl) nötig, andernfalls lässt sich dieses Feature gar nicht aktivieren.
Jetzt läuft wsl2 mit Ubuntu 24.04. Das ist aber auch schon alles.
chocolatey und ddev lassen sich nur begrenzt oder gar nicht in Betrieb nehmen.
Kann jmd. dazu Tipps geben?
Hier mal meine letzten Schritte:
1. Öffnen der PowerShell mit Admin-Rechten
Code:
Windows PowerShell
Copyright (C) Microsoft Corporation. Alle Rechte vorbehalten.
Installieren Sie die neueste PowerShell für neue Funktionen und Verbesserungen! https://aka.ms/PSWindows
2. Testen, ob Chocolatey installiert ist...
Code:
PS C:\Users\Admin> choco -v
2.4.0
Chocolatey ist installiert...
3. Installieren von ddev
Hier besteht schon das erste Problem. Laut ddev eigenen Angaben, soll man ddev und docker inside wsl2 verwenden. Dort ist zu lesen, dass wsl2 bereits docker und ddev enthält und diese Komponenten auch betriebsbereit sind. Das kann ich bisher nicht nachstellen. Mein wsl2 ist betriebsbereit, jedoch sind weder ddev noch docker installiert.
Docker CE Inside Windows WSL2
Many have moved away from using Docker Desktop in favor of the Docker-provided open-source docker-ce package inside WSL2.
The instructions for DDEV Installation in WSL2 include Docker CE setup and a script that does almost all the work. Please use those.
Also versuche ich erst einmal als Admin ddev zu installieren...
Code:
PS C:\Users\Admin> choco install ddev
Chocolatey v2.4.0
Installing the following packages:
ddev
By installing, you accept licenses for the packages.
Downloading package from source 'https://community.chocolatey.org/api/v2/'
Progress: Downloading gsudo 2.5.1... 100%
gsudo v2.5.1 [Approved]
gsudo package files install completed. Performing other installation steps.
The package gsudo wants to run 'chocolateyinstall.ps1'.
Note: If you don't run this script, the installation will fail.
Note: To confirm automatically next time, use '-y' or consider:
choco feature enable -n allowGlobalConfirmation
Do you want to run the script?([Y]es/[A]ll - yes to all/[N]o/[P]rint): y
PATH environment variable does not have C:\tools\gsudo\Current in it. Adding...
symbolische Verknüpfung erstellt für C:\tools\gsudo\v2.5.1\sudo.exe <<===>> C:\tools\gsudo\v2.5.1\gsudo.exe
C:\Program Files\WindowsPowerShell\Modules\gsudoModule
symbolische Verknüpfung erstellt für C:\tools\gsudo\Current <<===>> C:\tools\gsudo\v2.5.1\
PowerShell users: Add auto-complete to gsudo by adding the following line to your $PROFILE
Import-Module 'gsudoModule'
Or run:
Write-Output "`nImport-Module 'gsudoModule'" | Add-Content $PROFILE
gsudo successfully installed. Please restart your consoles to use gsudo.
Environment Vars (like PATH) have changed. Close/reopen your shell to
see the changes (or in powershell/cmd.exe just type `refreshenv`).
The install of gsudo was successful.
Software install location not explicitly set, it could be in package or
default install location of installer.
Downloading package from source 'https://community.chocolatey.org/api/v2/'
Progress: Downloading ngrok 3.17.0... 100%
ngrok v3.17.0
ngrok package files install completed. Performing other installation steps.
The package ngrok wants to run 'chocolateyinstall.ps1'.
Note: If you don't run this script, the installation will fail.
Note: To confirm automatically next time, use '-y' or consider:
choco feature enable -n allowGlobalConfirmation
Do you want to run the script?([Y]es/[A]ll - yes to all/[N]o/[P]rint): y
Downloading ngrok 64 bit
from 'https://bin.equinox.io/a/nfnU7jYMftP/ngrok-v3-3.17.0-windows-amd64.zip'
Progress: 100% - Completed download of C:\Users\Admin\AppData\Local\Temp\chocolatey\ngrok\3.17.0\ngrok-v3-3.17.0-windows-amd64.zip (8.97 MB).
Download of ngrok-v3-3.17.0-windows-amd64.zip (8.97 MB) completed.
Hashes match.
Extracting C:\Users\Admin\AppData\Local\Temp\chocolatey\ngrok\3.17.0\ngrok-v3-3.17.0-windows-amd64.zip to C:\ProgramData\chocolatey\lib\ngrok\tools...
C:\ProgramData\chocolatey\lib\ngrok\tools
ShimGen has successfully created a shim for ngrok.exe
The install of ngrok was successful.
Deployed to 'C:\ProgramData\chocolatey\lib\ngrok\tools'
Downloading package from source 'https://community.chocolatey.org/api/v2/'
Progress: Downloading ddev 1.23.5... 100%
ddev v1.23.5 [Approved]
ddev package files install completed. Performing other installation steps.
The package ddev wants to run 'chocolateyinstall.ps1'.
Note: If you don't run this script, the installation will fail.
Note: To confirm automatically next time, use '-y' or consider:
choco feature enable -n allowGlobalConfirmation
Do you want to run the script?([Y]es/[A]ll - yes to all/[N]o/[P]rint): y
Downloading ddev 64 bit
from 'https://github.com/ddev/ddev/releases/download/v1.23.5/ddev_windows_amd64_installer.v1.23.5.exe'
Progress: 100% - Completed download of C:\Users\Admin\AppData\Local\Temp\chocolatey\ddev\1.23.5\ddev_windows_amd64_installer.v1.23.5.exe (12.55 MB).
Download of ddev_windows_amd64_installer.v1.23.5.exe (12.55 MB) completed.
Installing ddev...
ddev has been installed.
ddev may be able to be automatically uninstalled.
Environment Vars (like PATH) have changed. Close/reopen your shell to
see the changes (or in powershell/cmd.exe just type `refreshenv`).
The install of ddev was successful.
Software installed as 'EXE', install location is likely default.
Chocolatey installed 3/3 packages.
See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).
Hier kommt der Spaß, dass ngrok sogleich vom Defender als Virus blockiert wird, obwohl das Paket vom offiziellen Repo bezogen wurde.
Ist dieser Effekt bekannt?
Anhang 27515
4. Testen, ob ddev im wsl verfügbar...
Code:
PS C:\Users\Admin> wsl
Welcome to Ubuntu 24.04.1 LTS (GNU/Linux 5.15.153.1-microsoft-standard-WSL2 x86_64)
* Documentation: https://help.ubuntu.com
* Management: https://landscape.canonical.com
* Support: https://ubuntu.com/pro
System information as of Fri Nov 15 06:32:43 CET 2024
System load: 0.0 Processes: 63
Usage of /: 0.5% of 250.92GB Users logged in: 0
Memory usage: 1% IPv4 address for eth0: 172.19.153.177
Swap usage: 0%
This message is shown once a day. To disable it please create the
/root/.hushlogin file.
root@WORKSTATION2:/mnt/c/Users/Admin# ddev
ddev: command not found
Wechsle ich nun wieder in die PowerShell, dann ist ddev dort verfügbar. Aber es muss ja im wsl mit docker laufen.
Eine Installation im Admin-Account soll später aus Sicherheitsgründen ohnehin nicht verwendet werden.
Dazu habe ich vorgehend beschriebenen Prozess in einem degraded account (Standardbenutzer) ausgeführt. Dort lässt sich nicht einmal chocolatey installieren. Die zig Fehlermeldungen schreibe ich hier mal nicht auf.
Kann mir vllt. jmd. in dieser Sache behilflich sein? Ich habe gelesen und gehört, dass man mit ddev unter wsl2 gut Conto 5 entwickeln kann.
Also müsste jemand bereits Erfahrungen haben. Würdet Ihr die mit mir Teilen?
Beste Grüße vom
Theo