Posts

Showing posts from 2021

failed to dial gRPC: cannot connect to the Docker daemon. Is 'docker daemon' running on this host?: dial unix /var/run/docker.sock: connect: permission denied

To fix this issue you only need to change the permissions to docker.sock sudo chmod 666 /var/run/docker.sock Enjoy it!

How to fix TeamViewer: Not ready. Please check your connection

Image
If you run TeamViewer you will see the following output Init... CheckCPU: SSE2 support: yes Checking setup... Launching TeamViewer ... Starting network process (no daemon) Network process already started (or error) Launching TeamViewer GUI ... If you have an eternal loading, you will see the following window: To solve it, and could to connect to a remote computer you must run teamviewer as daemon as follows: sudo teamviewer --daemon enable Action: Installing daemon (15.5.3) for 'systemd' ... installing /etc/systemd/system/teamviewerd.service (/opt/teamviewer/tv_bin/script/teamviewerd.service) Try: systemctl enable teamviewerd.service systemctl start teamviewerd.service Now, execute again teamviewer as follows: teamviewer                     Init... CheckCPU: SSE2 support: yes Checking setup... Launching TeamViewer ... Launching TeamViewer GUI ... Enjoy it!

Microsoft Teams meeting link on linux doesn't work

If you must use Teams in linux, probably you will have this issue. After click the meeting link, Teams opens, but not the meeting. To solve it, you need fix the sentence to execute Teams.  Edit the /usr/bin/teams file and replace: nohup "$TEAMS_PATH" --disable-namespace-sandbox --disable-setuid-sandbox "$@" > "$TEAMS_LOGS/teams-startup.log" 2>&1 & by nohup "$TEAMS_PATH" "$@" --disable-namespace-sandbox --disable-setuid-sandbox > "$TEAMS_LOGS/teams-startup.log" 2>&1 & As you can see, the difference is only the position of "$@" Enjoy it!

How to enable Postgres debugging

Image
 It's very simple. Just install the plugin with the following sentence: sudo apt install postgresql-12-pldebugger Next, edit /etc/postgresql/12/main/postgresql.conf and enable the plugin adding the following line: shared_preload_libraries = 'plugin_debugger' Now, you need to restart the postgres service sudo service postgres restart If you run PGAdmin4, now you can see the extension enabled Enjoy it!

Firefox 85 doesn't load sign in page

Image
I just format my pc and I installed firefox 85.0. When I tried to sign in to accounts.firefox.com the page doesn't load. I found the solution is to disable privacy.resistFingerprinting You can do it from Preferences/Privacy & Security         Just uncheck Fingerprinters checkbox Enjoy it!

HINT: No function matches the given name and argument types. You might need to add explicit type casts.

It is common when using different versions of PostgreSQL, the name of the functions can change their name. In my particular case, migrating from version 9 to 12, the error appears with the following function LINE 10: select ST_Line_Interpolate_Point(geom,distance) as ge...                     ^ HINT: No function matches the given name and argument types. You might need to add explicit type casts. Just change the function name ST_Line_Interpolate_Point to: ST_LineInterpolatePoint Enjoy!

How to install snort 3.1 in Ubuntu 20.10

Image
 In my last post I installed snort3 in Ubuntu 18.04. Now, I tried in Ubuntu 20.10 and I find more issues to fight. When I was compiling I got an Error 2. It is not very intuitive to know what the error is due to. I compiled it again and I catched. Is a libdaq error, associated to a lower version. Now, we proceed to install the last github version of libdaq: git clone https://github.com/snort3/libdaq.git ./bootstrap ./configure make sudo make install Now, we compile again snort, but... make[2]: *** No rule to make target '/usr/lib/x86_64-linux-gnu/libdaq.so', needed by 'src/snort'.  Stop. make[2]: Leaving directory '/tmp/snort3-3.1.0.0/build' make[1]: *** [CMakeFiles/Makefile2:2997: src/CMakeFiles/snort.dir/all] Error 2 make[1]: Leaving directory '/tmp/snort3-3.1.0.0/build' make: *** [Makefile:152: all] Error 2 As you see, snort is looking for libdaq.so in /usr/lib/x86_64-linux-gnu. Now, we look for libdaq.so path with locate libdaq.so /usr/local/lib/lib...