Note book to help you and me remember some tricks

Category Linux

Detect ghost space on linux system

On one server there was space missing As you can see / size is 118G but when you look at the data size in / you find 69G 49G are missing The reason is that there are files deleted but… Continue Reading →

VSCode + Free LLM model on private server with or without GPU (CPU-only)

Prerequisites Private server with 8 or 12 cores (8 or up to 12 virtual CPU if your server is a virtual machine). Install Ollama + LLM models To easily manager LLM model you can install Ollama. It’s easier to manage… Continue Reading →

Do you know the difference between sleep 1000, sleep 1000 & and (sleep 1000 &)? ChatGPT thinks it knows but is wrong

So I asked chatgpt a question for an experimented Linux system administrator. The question Here is the question: You are a software engineer and linux system administror. You are an expert in using shell script.can you compare the following 3… Continue Reading →

Ansible.builtin.script triggers permission denied on Oracle Linux

You have some Oracle Linux servers targeted by your ansible playbooks. You have your_playbook.yml that contains the following task: (The become and become_user instructions are not required to reproduce the error) If you got an error, just add the -vvv… Continue Reading →

How install and configure Clamav antivirus as a background process notifying you by email when a threat is detected

In the following post we will work on a rocky Linux server (RHEL). Install EPEL Repository The Rocky Linux base repo does not contain packages for installing Clamv. Install Clamav Set SELinux for Clamav freshclam: run Virus database signature update… Continue Reading →

OCI: increase the size of a block volume that is attached to a single instance (not shareable block volume)

Go to the instance where you have attached your block volume. Now go to the ssh terminal of this instance and execute: You can see your block volume has been mounted on /fortest Now in OCI console, increase by 1G… Continue Reading →

OCI: attach a new block volume to a single host

In the OCI console, go to the block volumes menu and create a block volume. Choose in which compartment you want to create your block volume (same compartment as your host), and choose a custom size. Let the other settings… Continue Reading →

Management of permissions on a mount point with Linux SGID and Linux group + ansible example

For the purpose of this article, I give you an existing context. Imagine you have one server share.yourdomain.com that is an NFS server, and that shares a directory that we have named /heapdump Now imagine you have ten other linux… Continue Reading →

Error 500 after securing your wazuh installation

if you follow the step-by-step guide to install wazuh, you will also get to the step “securing your wazuh installation” in which a command is provided to replace all the default passwords: Then if you go back to your dashboard… Continue Reading →

Ansible shell execution: no environment variable are loaded

When you execute shell script with ansible module ansible.builtin.shell, bash is invoked as a non-interactive login shell. Consequently, environment variables from the user are not loaded. If you execute man bash, you’ll see: The solution is juste to explicitly load… Continue Reading →

« Older posts

© 2025 Software engineer >> Sysadmin >> Devops >> SRE — Powered by WordPress

Theme by Anders NorenUp ↑