IDE:Hauptseite

Aus ahrensburg.city
Zur Navigation springen Zur Suche springen

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

C und C++ Installieren

sudo apt  install curl 
sudo apt install build-essential
code --install-extension  ms-vscode.cpptools-extension-pack
sudo apt-get install cmake
sudo apt-get install gdb

Python Installieren

sudo apt install python3 python3-pip python3-venv  python-is-python3
code --install-extension  ms-python.python

Rust

curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
code --install-extension rust-lang.rust-analyzer

Golang

cd $HOME
wget https://go.dev/dl/go1.24.2.linux-amd64.tar.gz
sudo tar -C /usr/local -xzf go1.24.2.linux-amd64.tar.gz
echo 'export PATH=$PATH:/usr/local/go/bin' >> ~/.bashrc
echo 'export GOPATH=$HOME/go' >> ~/.bashrc
echo 'export PATH=$PATH:$GOPATH/bin' >> ~/.bashrc
source ~/.bashrc

dotnet

sudo apt-get update # Aktualisiert die Paketliste
sudo apt-get install -y dotnet-sdk-9.0 # Installation des .NET SDK
sudo apt-get install -y dotnet-sdk-8.0 # Installation des .NET SDK
echo 'export PATH=$HOME/.dotnet/tools:$PATH' >> ~/.bashrc # Hinzufügen des Pfads zum .bashrc
source ~/.bashrc  # Aktualisierung der .bashrc
code --install-extension ms-dotnettools.csdevkit # Installiert die C# Dev Kit Erweiterung