How to , and other stuff about linux, photo, php … A linux, photography blog. To remember some linux situation, and fix them quickly.

September 22, 2022

curl: (60) SSL certificate problem: certificate has expired

Filed under: Linux — Tags: , , , — admin @ 11:30 am

I have this problem on a debian 9 client, that try to run a curl to a website that have valid SSL .

The fix is to blacklist the expired ssl on the client computer, not on server.

sed -i ‘s|mozilla/DST_Root_CA_X3.crt|!mozilla/DST_Root_CA_X3.crt|’ /etc/ca-certificates.conf && update-ca-certificates

September 19, 2022

Using FTP usernames with @ – symbol in midnight commander, virtual username

Filed under: Linux — Tags: , , , , — admin @ 5:47 pm

Mc, is a file manager for linux. But if you want to use a virtual ftp account you will have a problem

The format is  [username[:password]@]hostname  . However if you have a username with @ into it that is the problem.

The solution is to replace the @ with +

So if you have then you will input

May 6, 2021

nextcloud face recognition on centos7

Filed under: Linux — Tags: , , — admin @ 12:11 pm

The face recognition for the nextcloud into centos 7 need DLib and OpenBLAS.

The problem is that DLib require C++11 support and the centos 7 have older version of gcc the solution is to install

yum install centos-release-scl

yum install devtoolset-7

The path for the gcc is located /opt/rh/devtoolset-7/root/usr/bin/gcc

To build the DLib this command


Need to be replaced with

cmake -D CMAKE_C_COMPILER=/opt/rh/devtoolset-7/root/usr/bin/gcc -D CMAKE_CXX_COMPILER=/opt/rh/devtoolset-7/root/usr/bin/g++ -DBUILD_SHARED_LIBS=ON ..

Also to install the pdlib the ./configure need to be replaced with

PKG_CONFIG_PATH=/usr/local/lib64/pkgconfig CC=/opt/rh/devtoolset-7/root/usr/bin/gcc CXX=/opt/rh/devtoolset-7/root/usr/bin/g++ ./configure

February 2, 2021

how to disable attempt authentication using pageant

Filed under: Linux — Tags: , — admin @ 12:50 pm

First of all this is about windows. If you ever have multiple key and you want to login using password you will have this password by default . I was searching how to disable this, but there is no click . So the easy way is to create a shortcut , edit and add to the target this parameter -noagent . After you start the putty using that shortcut , you will have the pageant disabled .

July 14, 2020

redirect to https

Filed under: Linux — Tags: , , , , — admin @ 12:33 pm

I have more versions of redirect

RewriteEngine On
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$$1 [R,L]

Other version is

#non-www. http to www. https
RewriteCond %{ENV:HTTPS} !on
RewriteCond %{HTTP_HOST} ^(www.)?$
RewriteRule (.*)$1 [R=301,L]

#non-www. https to www. https
RewriteCond %{ENV:HTTPS} on
RewriteCond %{HTTP_HOST} ^$
RewriteRule (.*)$1 [R=301,L]

Other version is

RewriteEngine on

RewriteCond %{HTTPS} off [OR]
RewriteCond %{HTTP_HOST} !^www.
RewriteRule ^{REQUEST_URI} [NC,L,R=301,NE]

Another one :

RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
Older Posts »

Powered by WordPress