linux

  • 2026-04-06 Linux
    Enable Proxmox weekly containers fstrim

    What is fstrim? fstrim tells SSDs or thin-provisioned storage which blocks are no longer used by the filesystem so they can be reclaimed. Without TRIM/discard: deleted data still looks “used” to the storage layer SSD performance slowly degrades thin storage pools appear full even when files were deleted write amplification increases (reduces SSD lifespan) Running…

    No comments Read more →
  • 2025-10-04 Linux
    Debian 13 "trixie" sysctl tutorial

    Create or edit a custom config file in /etc/sysctl.d/ sudo nano /etc/sysctl.d/99-custom.conf Add your settings, e.g.: net.ipv4.ip_forward = 1 vm.swappiness = 10 Apply the changes: sudo sysctl --system Verify: sysctl net.ipv4.ip_forward sysctl vm.swappiness

    2 comments Read more →
  • 2025-03-16 Linux
    IPv6 RADVD SLAAC Config

    # /etc/radvd.conf interface vmbr1 { AdvSendAdvert on; MinRtrAdvInterval 30; MaxRtrAdvInterval 100; prefix 2a0f:85c1:334:8::/64 { AdvAutonomous on; # Enable SLAAC AdvOnLink on; }; };

    No comments Read more →
  • 2024-11-29 Linux
    How do I execute ALL sudo commands without password?

    Type the following command as root user: # visudo Append the following entry to run ALL command without a password for a user named tom: tom ALL=(ALL) NOPASSWD:ALL

    No comments Read more →
  • 2024-01-16 Linux
    Wireguard Clients isolation

    This will block traffic between clients: ip6tables -I FORWARD -i wg0 -o wg0 -j REJECT --reject-with icmp6-adm-prohibited iptables -I FORWARD -i wg0 -o wg0 -j REJECT --reject-with icmp-admin-prohibited To disable isolation for single client: iptables -I FORWARD -i wg0 -s 10.0.0.3/32 -d 10.0.0.0/24 -j ACCEPT 10.0.0.3/32 - Single client IP 10.0.0.0/24 - Subnet allow to…

    No comments Read more →
  • 2023-12-14 Linux
    Limit proxmox backup disk speed

    nano /etc/vzdump.conf add bwlimit: 12207 save This will limit read/write speed to 12 MiB/s during backup  

    No comments Read more →
  • 2021-07-14 Linux
    Raspberry Hardware Watchdog

    Automatically power cycle the Raspberry Pi once it gets stuck. 1) Enable the hardware watchdog on your Pi and reboot sudo su echo 'dtparam=watchdog=on' >> /boot/config.txt reboot 2) Install the watchdog system service sudo apt-get update sudo apt-get install watchdog 3) Configure the watchdog service sudo su echo 'watchdog-device = /dev/watchdog' >> /etc/watchdog.conf echo 'watchdog-timeout…

    No comments Read more →
  • 2021-05-09 Linux
    Syncthing įdiegimas Ubuntu/Debian

    Jei norite greitai pasiekti daugelio įrenginių failus, jums reikia sinchronizavimo. Tai atviro kodo kelių platformų failų sinchronizavimo sprendimas, kuris gali veikti lokaliai arba internetu. Ši platforma turi „Linux“, „Windows“ ir „macOS“ klientus. Taip pat turi „Android“ programą, skirtą sinchronizuoti iš…

    No comments Read more →
  • 2018-09-05 Linux
    Linux Laiko zonos keitimas

    Ši komanda yra bendra visoms linux operacinėms sistemoms ln -sf /usr/share/zoneinfo/Europe/Vilnius /etc/localtime Debian operacinei sistemai dpkg-reconfigure tzdata

    No comments Read more →
  • 2018-09-05 Linux
    Naudotojų draudimas jungtis prie serverio per SSH protokolą

    1. Atsisiunčiame nano teksto redagavimo programą (nebūtina bet patogiau naudoti). apt-get install nano 2. Atsidarome ssh serverio konfiguracinį failą su komanda nano /etc/ssh/sshd_config 3. Atidaryto failo apačioje įrašome tokią komandą AllowUsers root po AllowUsers įrašome kokie naudotojai turės galimybę jungtis prie serverio per SSH protokolą, visi kiti naudotojai, kurių šiame saraše nebus negalės jungtis prie…

    No comments Read more →