Linux

How to test RSA Keys in AlmaLinux 9 ?

To test if your RSA keys (public and private) can authenticate an SSH session on your AlmaLinux 9 server, you can follow these steps: Step 1: Ensure the Public Key is on the Server Place your public key in the ~/.ssh/authorized_keys file for the user you want to SSH into. Make sure it’s set up like this: cat your_public_key_file.pub >> ~/.ssh/authorized_keys Ensure the permissions are correct: chmod 600 ~/.ssh/authorized_keys chmod 700 ~/.ssh Step 2: Test SSH Login Using the Private Key […]

How to test RSA Keys in AlmaLinux 9 ? Read More »

ED25519, ECDSA, RSA encryption to choose for AlmaLinux 9

For generating new SSH keys, each algorithm has its pros and cons, so here’s a quick overview of the best choices for most purposes: ED25519 • Pros: ED25519 is fast and highly secure with a shorter key length, making it efficient in performance and storage. • Cons: Not compatible with very old systems that may not support it. • Recommendation: Recommended for most users if both the server and client support it. • Generate: ssh-keygen -t ed25519 -C “[email protected]” ECDSA • Pro[…]

ED25519, ECDSA, RSA encryption to choose for AlmaLinux 9 Read More »

Using curl to test speed test of url

I like some fast way to test the connection speed from my local host or my server, so I often use this way to test the connect time speed. time curl -o /dev/null -s -w “Connect: %{time_connect}s\nTTFB: %{time_starttransfer}s\nTotal time: %{time_total}s\n” [URL] Replace [URL] with the URL you want to test. Here’s a breakdown of the command: time: This will measure the real elapsed time of the entire command. -o /dev/null: Discards the output of the curl command. -s: Makes curl operate in “silent”[…]

Using curl to test speed test of url Read More »

Optimize Redis on CentOS 7

Optimizing Redis configuration involves various parameters that you can tweak based on your specific use case and workload. Below are some key configurations that you might consider tuning in your Redis setup on CentOS 7. The configuration file for Redis is usually located at /etc/redis.conf. Steps to Apply Changes: Remember, the above options are general

Optimize Redis on CentOS 7 Read More »

Using OVH S3 Object Storage on Discourse that using Docker in Centos 7

Using OVH S3 Object Storage on Discourse Deployed with Docker in CentOS 7 In this tutorial, we will guide you on how to effectively use OVH’s S3 Object Storage with Discourse deployed on Docker in CentOS 7. Using cloud-based storage, like OVH S3, is an effective way of managing, storing, and retrieving your Discourse data. It’s also a highly secure and scalable solution, making it suitable for applications of all sizes. Setting Up OVH S3 Object Storage First, you’ll need to create a container in[…]

Using OVH S3 Object Storage on Discourse that using Docker in Centos 7 Read More »

/user.slice/user-1000.slice/session-2145.scope is not a snap cgroup

Chromium Browser in Ubuntu Recently, I need to use headless Chromium Browser to running bot for some purpose, but it is not smooth as the documentation says. Error while using headless Chrome $ /usr/bin/chromium-browser –help /user.slice/user-1000.slice/session-2145.scope is not a snap cgroup Installing dbus-user-session # sudo apt-get install dbus-user-session Reading package lists… Done Building dependency tree… Done Reading state information… Done dbus-user-session is already the newes[…]

/user.slice/user-1000.slice/session-2145.scope is not a snap cgroup Read More »

Restore Discourse from Terminal

Restore discourse from terminal Preparing copy the backup file to from old host /var/discourse/shared/standalone/backups/default to new host /var/discourse/shared/standalone/backups/default Restore cd /var/discourse ./launcher enter app discourse enable_restore discourse restore juzhax-com-2021-03-21-043426-v20210315173137.tar.gz Rebuild cd /var/discourse ./launcher rebuild app

Restore Discourse from Terminal Read More »