rdqoffice ist ein «work in progress» Buchhaltungsprojekt für Einnahmen-Ausgaben-Rechner von Herrn Johan Rosman aus Parndorf.
Die ersten Installationsschritte sind:
- Download des Containers LAPP von https://www.turnkeylinux.org/lapp
- Der Inhalt ist Linux, Apache, PostgreSQL, PHP 7.3, Python und Perl
- Nach der Installation dieses Containers auf meinem Proxmox Server erfolgt die Eingabe von
- PostgreSQL Master-Passwort und der Container ist erreichbar unter
│ Web: http://192.168.10.152 │
│ https://192.168.10.152 │
│ Web shell: https://192.168.10.152:12320 │
│ Webmin: https://192.168.10.152:12321 │
│ Adminer: https://192.168.10.152:12322 │
│ SSH/SFTP: root@192.168.10.152 (port 22) │
│ │
│ TKLBAM (Backup and Migration): NOT INITIALIZED │
TKLBAM möchte ich nicht einrichten, da dann die Daten automatisch auf Amazons S3 Servern landen.
Jetzt folgen die Schritte auf der Konsole.
ssh root@192.168.10.152
- #
apt update
- Get:1 http://security.debian.org buster/updates InRelease [65.4 kB]
- Get:2 http://security.debian.org buster/updates/main amd64 Packages [285 kB]
- Hit:3 http://deb.debian.org/debian buster InRelease
- Get:4 http://security.debian.org buster/updates/main Translation-en [148 kB]
- Ign:5 http://archive.turnkeylinux.org/debian buster-security InRelease
- Ign:6 http://archive.turnkeylinux.org/debian buster InRelease
- Hit:7 http://archive.turnkeylinux.org/debian buster-security Release
- Hit:9 http://archive.turnkeylinux.org/debian buster Release
- Fetched 498 kB in 3s (184 kB/s)
- Reading package lists… Done
- Building dependency tree
- Reading state information… Done
- 18 packages can be upgraded. Run ‹apt list –upgradable› to see them.
- #
apt full-upgrade
- #
confconsole
- Überprüfen, ob alle Einstellungen passen
- #
exit
– zurück zum Client
- #
- $
scp rdqoffice-pilot.zip root@192.168.10.152:.
ssh root@192.168.10.152
- #
cd /opt
- #
unzip ~/rdqoffice-pilot.zip
- #
apt install sudo
- #
apt install python3-venv python3-pip
- #
apt install python3-setuptools
- #
apt install rustc
- #
apt install python3-psycopg2
- #
apt install gunicorn3
- #
apt install inkscape
- #
apt install -y libreoffice-writer
- #
apt install -y libreoffice-calc
- #
apt install -y libreoffice-pdfimport
- #
apt install -y libreoffice-l10n-de
- #
apt install libmagickwand-dev
- #
locale-gen de_AT.UTF-8
- #
useradd rdqoffice
- #
passwd rdqoffice
- #
- Die nachfolgende Schritte passieren mit dem Benutzer rdqoffice
- $
pip3 install --upgrade pip
- $
pip3 install --upgrade wheel
- $
cd /opt/rdqoffice-pilot
- $
pip3 install -r requirements.txt
- $
python3 ./manage.py migrate
- $
python3 ./manage.py migrate
Skipping builder class [<class 'preview_generator.preview.generic_preview.OnePagePreviewBuilder'>]: method get_supported_mimetypes is not implemented
Skipping builder class [<class 'preview_generator.preview.generic_preview.ImagePreviewBuilder'>]: method get_supported_mimetypes is not implemented
Operations to perform:
Apply all migrations: admin, auth, contenttypes, cus, inv, prd, sessions, srv
Running migrations:
Applying contenttypes.0001_initial... OK
Applying auth.0001_initial... OK
Applying admin.0001_initial... OK
Applying admin.0002_logentry_remove_auto_add... OK
Applying admin.0003_logentry_add_action_flag_choices... OK
Applying contenttypes.0002_remove_content_type_name... OK
Applying auth.0002_alter_permission_name_max_length... OK
Applying auth.0003_alter_user_email_max_length... OK
Applying auth.0004_alter_user_username_opts... OK
Applying auth.0005_alter_user_last_login_null... OK
Applying auth.0006_require_contenttypes_0002... OK
Applying auth.0007_alter_validators_add_error_messages... OK
Applying auth.0008_alter_user_username_max_length... OK
Applying auth.0009_alter_user_last_name_max_length... OK
Applying auth.0010_alter_group_name_max_length... OK
Applying auth.0011_update_proxy_permissions... OK
Applying auth.0012_alter_user_first_name_max_length... OK
Applying cus.0001_initial... OK
Applying srv.0001_initial... OK
Applying prd.0001_initial... OK
Applying inv.0001_initial... OK
Applying inv.0002_initial... OK
Applying sessions.0001_initial... OK
- Einige Parameter müssen geändert werden
- $
vim rdqoffice/settings/init.py
- In der Zeile 111 bei
ALLOWED_HOSTS = django_config.get_cfg_item('ALLOWED_HOSTS', ['127.0.0.1', 'localhost'])
zu ändern auf ALLOWED_HOSTS = django_config.get_cfg_item('ALLOWED_HOSTS', ['127.0.0.1', 'localhost', '192.168.10.152' ])
- wobei die letzte IP-Adresse, die Adresse des Servers für rdqoffice ist
- $
python3 ./manage.py createsuperuser
- $
- Dann kann das Programm auf Port 8000 gestartet werden
- Das Shell Script gunicorn-start.sh ändern in
gunicorn3 --workers=8 --bind=:8000 --log-level debug --timeout 7200 rdqoffice.wsgi
- $
bash gunicorn-start.sh &
- Dann kann mit einem Webbrowser auf 192.168.10.152:8000 zugegriffen werden
Way cool! Some very valid points! I appreciate you penning
this write-up and the rest of the website is really good.
Sweet blog! I found it while browsing on Yahoo News.
Do you have any suggestions on how to get listed in Yahoo
News? I’ve been trying for a while but I never seem to
get there! Cheers
Hello There. I found your blog the usage of msn. This is an extremely smartly written article.
I will make sure to bookmark it and return to learn extra
of your helpful info. Thank you for the post. I will certainly return.