IDE:Hauptseite: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
Keine Bearbeitungszusammenfassung |
|||
| Zeile 52: | Zeile 52: | ||
=== Postgis Installation in Ubuntu 23.04 === | === Postgis Installation in Ubuntu 23.04 === | ||
<pre> | |||
sudo -u postgres -i | |||
createuser thorsten | |||
createdb -E UTF8 -O thorsten thorsten | |||
psql -d thorsten -c "CREATE EXTENSION postgis;" # Erweiterung hinzufügen | |||
psql -d thorsten -c "CREATE EXTENSION hstore;" # Erweiterung hinzufügen | |||
psql -d thorsten -c "CREATE EXTENSION vector;" # Erweiterung hinzufügen | |||
psql -d thorsten -c "ALTER TABLE geometry_columns OWNER TO thorsten;" # Rechte setzen | |||
psql -d thorsten -c "ALTER TABLE spatial_ref_sys OWNER TO thorsten;" # Rechte setzen | |||
psql -d thorsten -c "\password thorsten" | |||
exit # Ausloggen | |||
</pre> | |||
Version vom 30. Juni 2025, 22:54 Uhr
Aktualisieren
- Öffne Sie das Terminal und auf ihrem Ubuntu-Desktop
- Führen Sie folgenden Befehl aus,um System zu aktualisieren.
sudo apt-get update
sudo apt-get upgrade
sudo apt install libsecret-1-0 libsecret-tools libsecret-1-dev libglib2.0-dev
Git Installieren
sudo apt-get install git gh
git config --global user.email "you@example.com"
git config --global user.name "Your Name"
gh Konfigurieren
gh auth login
Nodejs Installieren
sudo apt-get install curl
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.1/install.sh | bash
source ~/.bashrc
nvm install 22
# Verify the Node.js version:
node -v # Should print "v22.12.0".
nvm current # Should print "v22.12.0".
# Verify npm version:
npm -v # Should print "10.9.0".
Visual Studio Code
Installieren
sudo snap install code --classic
Pflugin
In Visual Studio Code, öffnen Sie das Terminal und führen Sie folgende Befehle aus.
code --install-extension GitHub.copilot
code --install-extension ckolkman.vscode-postgres
code --install-extension ms-ossdata.vscode-postgresql
code --install-extension RoweWilsonFrederiskHolme.wikitext
code --install-extension ms-windows-ai-studio.windows-ai-studio
Datenbank
PostgreSQL
Installation
sudo apt-get install postgresql-all
PosgreSQL Version zeigen
psql --version
Postgis Installation in Ubuntu 23.04
sudo -u postgres -i createuser thorsten createdb -E UTF8 -O thorsten thorsten psql -d thorsten -c "CREATE EXTENSION postgis;" # Erweiterung hinzufügen psql -d thorsten -c "CREATE EXTENSION hstore;" # Erweiterung hinzufügen psql -d thorsten -c "CREATE EXTENSION vector;" # Erweiterung hinzufügen psql -d thorsten -c "ALTER TABLE geometry_columns OWNER TO thorsten;" # Rechte setzen psql -d thorsten -c "ALTER TABLE spatial_ref_sys OWNER TO thorsten;" # Rechte setzen psql -d thorsten -c "\password thorsten" exit # Ausloggen