Passa al contingut principal

Entrades

S'estan mostrant les entrades d'aquesta data: 2021

Editor Online Markdown

 El MarkDown ja es el meu sistema d'edició preferint simple i eficient, però lo que necessito es un accés a ell amb condicions des de tots els indrets.  Per això tinc aquesta foto: Ara estic a provant  boostnote.io

Sempre esta be tindre un servei com aquest ... PLAYLIST to MP3 ...

 Sempre esta molt be tindre recursos online .. i per avui PLAYLIST TO MP3 com aquest... https://playlist-youtu.be/es/

Fer servir un servei, per aixecar un python amb entorn virtual....

 El problema be per  en un servei de Ubuntu sols pots fer una linear de comandament i com et fiques al entorn virtual..  Aixi ... On Dietpi Important All the paths in your scripts have to be absolute paths, there can be no relative path in your scripts. If there are relative paths that you must keep, you will have to change your current working directory by retrieving Modify the python script, add first line:  #!/home/dietpi/Temp/.env/bin/python3  which is the path to the python in the virtual env chmod +x bot.py  to make it executable, it will execute with the python you specified in the previous step, which the python you installed in your vritual environment. You can try this by directly running  ./bot.py  without any python before it, it should run the script. Type the following command in your terminal to add a  systemd  service: sudo systemctl edit --force --full dummy.service El converteixes amb un executable directament i després ...  Para ello, crearemos el siguiente archivo  

Aixecar un servei en ubuntu

 Gracies aquestes dos pagines eh pogut aixecar un servei que amb  Per crear un script, i després aixecar-ho: https://ubunlog.com/iniciar-scripts-al-inicio-ubuntu/ I després crear un servei: https://computernewage.com/2019/03/09/scripting-linux-bash-ejecutar-script-arranque/ Amb el complement d'aquest : https://atareao.es/tutorial/trabajando-con-systemd/como-crear-un-servicio-con-systemd/

Conexio amb una base de dades al servidor fent servir un ssh com a tunel!!!

Avui després de molt de temps, e tingut que connectar una base de dades al servidor fet servir un tunel SSH i tot gràficament gracies a DBEAVER.  https://dbeaver.io/ Molt simple i guay ...