Posts

Showing posts from 2026

auto update debian 13

  1. Install Required Packages Install the update utility and the mail tools needed to send notifications. bash sudo apt update && sudo apt upgrade -y sudo apt install unattended-upgrades apt-listchanges bsd-mailx msmtp msmtp-mta -y      2. Configure msmtp (Zoho Mail)   Create and secure the mail configuration file at /etc/msmtprc .   Edit the file: sudo nano /etc/msmtprc Add your Zoho settings: ini defaults auth on tls on tls_starttls on tls_trust_file /etc/ssl/certs/ca-certificates.crt logfile /var/log/msmtp.log account zoho host smtp.zoho.com port 587 from your-email@zoho.com user your-email@zoho.com password your-regular-password account default : zoho      Set Permissions:  bash sudo groupadd -f msmtp sudo chown root:msmtp /etc/msmtprc sudo chmod 640 /etc/msmtprc  echo "Test body" | msmtp -d rashitha@gmx.com   if permission error...

free port 53

 Steps to Disable DNSStubListener (Recommended Method) Create a configuration file: Create or edit /etc/systemd/resolved.conf.d/no-stub.conf.   bash sudo mkdir -p /etc/systemd/resolved.conf.d echo -e "[Resolve]\nDNSStubListener=no" | sudo tee /etc/systemd/resolved.conf.d/no-stub.conf Restart the service:   bash sudo systemctl restart systemd-resolved Update /etc/resolv.conf: If it still points to 127.0.0.53, you may need to update the symlink to use your network manager's settings or a static DNS server.   bash sudo ln -sf /run/systemd/resolve/resolv.conf /etc/resolv.conf Alternative: Stop and Disable the Service Entirely If you don't need systemd-resolved at all, you can stop it completely:  bash sudo systemctl stop systemd-resolved sudo systemctl disable systemd-resolved Verification Run the following command to check if port 53 is still in use:    bash sudo netstat -tlnp | grep :53 # OR sudo ss -tulpn | grep :53 stop kvm default network sudo virsh n...

use dnf with proxy server

use dnf with proxy sudo vi /etc/dnf/dnf.conf  proxy=http://192.168.151.1:3128   [main]  proxy=http://192.168.151.1:3128

using docker with proxy

Create the drop-in directory: bash sudo mkdir -p /etc/systemd/system/docker.service.d Use code with caution. Create the proxy configuration file: Create a file named /etc/systemd/system/docker.service.d/http-proxy.conf . Add your proxy details: Paste the following into the file, replacing the placeholder URLs with your actual proxy address: ini [Service] Environment="HTTP_PROXY=http://proxy.example.com:3128" Environment="HTTPS_PROXY=http://example.com" Environment="NO_PROXY=localhost,127.0.0.1,docker-registry.example.com" Use code with caution. Apply the changes: Reload the systemd manager configuration and restart the Docker service: bash sudo systemctl daemon-reload sudo systemctl restart docker Use code with caution. Verify the configuration: Check if the environment variables are active: bash sudo systemctl show --property=Environment docker Use code with caution.   2. Configure the Docker Client (Containers & Builds)   This configuration tells Do...