Posts

Apache 2.4 require IP virtualhost

Apache 2.4 require IP virtualhost   In Apache 2.4, the authorization configuration syntax has changed, and the Order , Deny or Allow directives should no longer be used. The new way to do this would be: <VirtualHost *:8080> <Location /> Require ip 192.168.1.0 </Location> ... </VirtualHost>

Proxmox 7 upgrade error CT does not support running in a unified cgroup v2 layout

When upgrading Proxmox to ver 7 and running Centos 7.9 as Container it gives error   At least one CT (174) which does not support running in a unified cgroup v2 layout.  To solve it, update systemd using this repo wget https://copr.fedorainfracloud.org/coprs/jsynacek/systemd-backports-for-centos-7/repo/epel-7/jsynacek-systemd-backports-for-centos-7-epel-7.repo -O /etc/yum.repos.d/jsynacek-systemd-centos-7.repo yum update systemd

Symlinks inside SFTP chroot

Symlinks inside SFTP chroot If symlinks inside chroot does not work, because require full, absolute path, you can just make mount to the destination folder 1. create dir else 2. mount --bind /some/directory /somewhere/else  

How to check which application listens on particular port in Windows

   How to check which application listens on particular port in Windows go to start->cmd and run  netstat -aon | findstr ":80" | findstr "LISTENING" Output is like this: TCP 0.0.0.0:80 0.0.0.0:0 LISTENING 3880   and last number is process id, now search for the application   tasklist /fi "pid eq 3880"    or use Powershell   Get-Process -Id (Get-NetTCPConnection -LocalPort 80).OwningProcess   

How to check MD5/SHA256 CheckSum in Windows 10?

  How to check MD5/SHA256 CheckSum in Windows 10?   Checksum a file in Windows using the built-in certUtil command-line utility: C:\> certUtil -hashfile <PATH_TO_FILE> <HASH_ALGORITHM> MD5 checksum example (md5sum): C:\> certUtil -hashfile C:\file.img MD5 SHA256 checksum example (sha256sum): C:\> certUtil -hashfile C:\file.img SHA256

How to create .pfx file or PKCS12 or .pfx file for my SSL Cert from certificate and private key?

 How to create .pfx file or PKCS12 or .pfx file for my SSL Cert from certificate and private key?   You need to use openssl and command: (from Godaddy example) for P12 openssl pkcs12 -export -in mydomain.crt -inkey mydomain.com.key -certfile gd_bundle-g2-g1.crt -out mydomain.p12   For PFX openssl pkcs12 -export -out domain.name.pfx -inkey domain.name.key -in domain.name.crt Using Windows there is tool for that The Microsoft Pvk2Pfx command line utility Pvk2Pfx (Pvk2Pfx.exe) is a command-line tool copies public key and private key information contained in .spc, .cer, and .pvk files to a Personal Information Exchange (.pfx) file. http://msdn.microsoft.com/en-us/library/windows/hardware/ff550672(v=vs.85).aspx

Using google advanced protection and thunderbird as email client

Image
 Using google advanced protection and Thunderbird as email client  To still use Thunderbird as an email client after enabling advanced security on google account, you have to change the type of login inside Thunderbird account settings. Go to Tools -> Account settings -> Your gmail account -> Server Settings And change the Authentication method to OAuth2. After this, when you try to log in, there will be a pop-up window to provide your Google Account  Password and Authenticate using the 2FA key. Change to Oauth also in the SMTP settings to send emails. After that, you are set!