Thursday, January 02, 2025

Odoo 17 - Custom adds

 

 

[1] Diario/Seq https://apps.odoo.com/apps/modules/17.0/sequence_for_journal

 

Saturday, December 14, 2024

Friday, December 13, 2024

Wednesday, December 11, 2024

pgadmin4 issues on ubuntu 18

Ubuntu 18.04.5 LTS (Bionic Beaver)
 


pgadmin4-desktop pgadmin4-server pgadmin4-web

 

ImportError: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.28' not found (required by /usr/pgadmin4/venv/lib/python3.8/site-packages/cryptography/hazmat/bindings/_rust.abi3.so)

 

 fincahuanaco   ldd --version
ldd (Ubuntu GLIBC 2.27-3ubuntu1.4) 2.27
Copyright (C) 2018 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Written by Roland McGrath and Ulrich Drepper.


fincahuanaco   sudo /usr/pgadmin4/bin/setup-web.sh

ImportError: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.28' not found (required by  
/usr/pgadmin4/venv/lib/python3.8/site-packages/cryptography/hazmat/bindings/_rust.abi3.so)
Error setting up server mode. Please examine the output above.


Docker Alternative

 fincahuanaco   docker pull dpage/pgadmin4

 

sudo docker run -p 5050:5050 -e 'PGADMIN_DEFAULT_EMAIL=email@gmail.com' -e 'PGADMIN_DEFAULT_PASSWORD=password' -e 'PGADMIN_LISTEN_PORT=5050' -d dpage/pgadmin4

 

sudo docker ps

CONTAINER ID   IMAGE            COMMAND            CREATED          STATUS          PORTS     NAMES
2b0f1c329504   dpage/pgadmin4   "/entrypoint.sh"   25 minutes ago   Up 25 minutes             awesome_darwin

sudo docker stop 2b0f1c329504



sudo docker inspect 2b0f1c329504 | grep IPAddress  #discovery ip

 

#force use local network

sudo docker run -p 5050:5050 --network host -e 'PGADMIN_DEFAULT_EMAIL=email@gmail.com' -e 'PGADMIN_DEFAULT_PASSWORD=password' -e 'PGADMIN_LISTEN_PORT=5050' -d dpage/pgadmin4

 

Resume docker containers

$ sudo docker start  $(sudo docker ps -q -l)

 


Docker References:

 

[1] https://hub.docker.com/r/dpage/pgadmin4/

[2] Deploy https://www.pgadmin.org/docs/pgadmin4/latest/container_deployment.html

[3] https://stackoverflow.com/questions/53610385/docker-postgres-and-pgadmin-4-connection-refused

[4] Resume docker container https://stackoverflow.com/questions/21928691/how-to-continue-a-docker-container-which-has-exited

 


 


 

Tuesday, December 10, 2024

IPTV

 

Resources:

[1] https://iptv-org.github.io/

 

Thursday, November 28, 2024

Photo Animation

 

Resources:

[1] AI Animation https://vivago.ai/video-generation

[2] Remove BG https://www.remove.bg/upload

 

Run python request over proxy

Code

import requests

proxies = {
   'http': 'http://72.10.160.172:9739',
}

url = 'https://httpbin.io/ip'
response = requests.get(url, proxies=proxies)
print(response.json())
 

 

 

References:

[1] https://www.zenrows.com/blog/python-requests-proxy#perform-requests

[2] https://free-proxy-list.net/

[3] https://stackoverflow.com/questions/57579359/use-python-sshtunnel-for-port-forwarding-rest-request

 

Friday, November 22, 2024

Ubuntu Forware port 80

 

#!/bin/bash
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-port 8069
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 443 -j REDIRECT --to-port 8070
iptables-save

 

Permanent in system by:

$sudo vi /etc/rc.local



References:

https://www.odoo.com/forum/help-1/change-to-port-80-instead-of-8069-23031

 

Odoo 17 - Custom adds

    [1] Diario/Seq https://apps.odoo.com/apps/modules/17.0/sequence_for_journal