/
Cheat Sheet für VM Shell Shortcuts

Cheat Sheet für VM Shell Shortcuts

Dieser Spickzettel ist für die Entwicklung unter Remote Desktop unter Linux Desktop Mate und Odoo. / This cheat sheet is for development under Remote Desktop on Linux and Odoo.

Grundsätzlich arbeiten wir in der virtuellen Python-Umgebung! / Basically, we work in the virtual Python environment! (dev10 / dev12 / dev13 / dev14) 

Diese erreichen wir über die Konsole mit Eingabe von "dev10" "dev12" "dev13" "dev14". 

./odoo-bin -c /home/dev/gitbase/dev-helpers/conf/odoo10.conf --db-filter=v10_basis -d v10_basis

GIT-Vorbereitungen und Erzeugen des SSH Key / GIT preparations and generating the SSH key:

git Zugriff vorbereiten
$ ls -a ~/.ssh
$ ssh-keygen
$ ls ~/.ssh

$ cat  ~/.ssh/id_rsa.pub
ssh-rsa xxxxxxx..länger..xxxxxxxx openvscode-server@381xxxxx
# Den Publickey im Gitlab hinterlegen - Put the public key in gitlab

$ git config --global user.name "Dein Name"
$ git config --global user.email deine@mail.io

Die wichtigsten GIT Befehle: / Most important Git commands:

Mit "cd ~/gitbase/Ordnername" in den jeweiligen Ordner gehen.

BefehlBedeutung
git status
Zeigt den Status des aktuellen lokalen GIT-Repositories an
git pull
Holt den aktuellen Inhalt aus dem Gitlab-Repository
git add .
Veranlasst GIT alle Änderungen für Commit hinzu zufügen
git commit -m "[CHG] TEXT"
Änderung wird zunächst lokal committed
git push
Übertragung zum Gitlab-Repository
git clone -b develop git@xxxxx.git
Repository zur Cloud9 hinzufügen 
tig 
Konsolen App für GIT https://www.atlassian.com/blog/git/git-tig oder https://devhints.io/tig

Weiteres Cheatsheet für GIT https://www.atlassian.com/git/tutorials/atlassian-git-cheatsheet

Kurzbefehle der Konsole / Shortcuts for console 

AliasFunktionErklärung (Entsprechung)
dev10Schalte auf virtuelles Python auf Python 2.7 für Odoo 10 um
cd $HOME/venv/ && source v10-p27/bin/activate && cd $HOME/gitbase/v10-server/
dev12Schalte auf virtuelles Python auf Python 3.6 für Odoo 12 um
cd /home/dev/venv/ && source v12-p36/bin/activate && cd /home/dev/gitbase/v12/v12-server/
dev12p37Schalte auf virtuelles Python auf Python 3.7 für Odoo 12 um
cd /home/dev/venv/ && source v12-p37/bin/activate && cd /home/dev/gitbase/v12/v12-server/
dev12pypySchalte auf virtuelles Python auf PyPy 3.6 für Odoo 12 um
cd /home/dev/venv/ && source v12-pypy/bin/activate && cd /home/dev/gitbase/v12/v12-server/
dev-Schalte auf virtuelles Python ab
deactivate && cd $HOME/gitbase
exam10Gibt Beispielaufruf für Odoo 10 Betrieb in der Konsole aus
./odoo-bin -c $HOME/gitbase/dev-helpers/conf/odoo10.conf --db-filter=v10_basis -d v10_basis
exam12Gibt Beispielaufruf für Odoo 12 Betrieb in der Konsole aus
./odoo-bin -c $HOME/gitbase/dev-helpers/conf/odoo12.conf --db-filter=v12_basis -d v12_basis
dpsListet alle Docker Container 
sudo docker ps -a
dpiListet alle Docker Images
sudo docker images
syspatchKomplett-Update inkl. Cleanup  für Ubuntu/Debian
sudo apt-get update && sudo apt-get dist-upgrade && sudo apt-get autoremove && sudo apt-get autoclean
pgaStart von pg_activity bei PostgreSQL auf HOST
sudo -u postgres pg_activity -U postgres
gopsqlStart von psql bei PostgreSQL auf HOST
sudo su - postgres -c "psql"
mygitSpringt zum Basisverzeichnis von GIT
cd $HOME/gitbase/

Offene Ports 

80 (http), 443 (https) und 22 (ssh).


FAQ Remote Proxy 

https://guacamole.apache.org/faq/

Related content

First Steps with ownerp.io - Visual Code based on OpenVSCode
First Steps with ownerp.io - Visual Code based on OpenVSCode
More like this
Entwicklerleitfaden / Leitfaden Codestyle
Entwicklerleitfaden / Leitfaden Codestyle
Read with this
Cheat Sheet für AWS Cloud9 Shell Shortcuts
Cheat Sheet für AWS Cloud9 Shell Shortcuts
More like this
Cheat Sheet für ownerp.io Shortcuts
Cheat Sheet für ownerp.io Shortcuts
More like this
Cheat Sheet für Shell Shortcuts für Odoo Systeme basierend auf Docker
Cheat Sheet für Shell Shortcuts für Odoo Systeme basierend auf Docker
More like this
Verbinden der Entwickler VM mittels SSH Key mit Github und Bitbucket (deprecated)
Verbinden der Entwickler VM mittels SSH Key mit Github und Bitbucket (deprecated)
More like this