Access to AWS EC2 instance by local Linux machine

Guide for Linux Ubuntu This method uses IAM credentials and does not require opening port 22 on your EC2 instance. This is the safest method to connect to an EC2 instance from a local machine. AWS CLI Install AWS CLI on your machine: Check: session-manager-plugin Download the .deb package of session-manager-plugin. x86_64 Install it Verify

Local LLM Setup with Docker Containers

This guide describes my setup for running a local LLM using Docker containers. The model and the frontend UI run in separate containers, connected via a Docker network. Stack Overview: Final Architecture (Docker Version) Install Docker Run Docker without sudo:https://devopslog.pl/2026/05/06/using-docker-without-sudo/(A reboot is required after configuration.) Model Storag & Recommended Engine Best place for the latest

Set the Maximum Battery Charging Threshold on Ubuntu 26.04

Creating a custom service in systemd starts with defining a .service file. This file specifies how the service should operate, including the command to execute, restart behavior, and startup conditions. ISSUE:If we change the value of the maximum battery charge threshold, it only persists until the next reboot. After that, the value resets to the

BASH script tracing by -x

Very useful option which allows to trace the execution of a bash script. You can add the -x option directly to the shebang: Or, for better portability, you can leave the shebang standard and enable tracing with set -x inside the script: We can test it by applying it to a simple bash script and

How to check the error of every command?

Answer: How it works? If you put a command into your terminal, and after that you haven’t gotten any info about it, then you can check it using echo $?. For example: In the output, the terminal doesn’t show any info about the status. We can check this: In the output we will see 0

Source Code – The Recipe for Your Meal

Source code is nothing other than ordinary code written by a programmer in a specific language like Python .py, C++ .cpp or low-level C, which can be written using .c and .h extensions. Here is an example of a simple code written in C using .c, .h and Makefile. Compiling If we talk about low-level,

Create BACKUP of Linux Files Before Editing

Before editing any important file, the best practice is to create a backup of it. The extensions “.bak”, “.sav”, “.old”, and “.orig” are all popular ways of indicating a backup file. So, create the simplest backup using .bak: Now, if we run ls, we can see that .bashrc.bak appears slightly dimmed: If you need to,