Posts

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...

Setting up Auto update fedora

Setting up Auto update sudo dnf install dnf-automatic sudo cp /usr/share/dnf5/dnf5-plugins/automatic.conf /etc/dnf/automatic.conf sudo nano /etc/dnf/automatic.conf ______________________________________________________________________________________ apply_updates = yes download_updates = yes network_online_timeout = 60 random_sleep = 0 upgrade_type = default reboot = never (when-changed, when-neede) [emitters] emit_via = email (command, command_email - can set meny seperated by coma) emit_no_updates = yes _______________________________________________________________________________________ If Set Command_email email_from = root@localhost email_to = rasitha@localhost sudo dnf install sendmail s-nail sudo systemctl enable sendmail sudo systemcts start sendmail to view email cat /var/mail/user If set email email_from = rasitha@zohomail.com email_to = rashitha@gmx.com email_host = smtp email_port = 465 email_tls = yes # Credentials to us...

Fedora

 network manager    sudo dnf install nm-connection-editor   Gnome Disk Utility   sudo dnf install gnome-disk-utility   To update GRUB after editing a file, run the        sudo grub2-mkconfig  install kvm/qemu sudo dnf install @virtualization   multimedia codecs enable rpmfusion    sudo dnf install \ https://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm   sudo dnf install \ https://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm      sudo dnf group install multimedia sudo dnf group install sound-and-video if needed   sudo dnf swap ffmpeg-free ffmpeg --allowerasing   sudo dnf config-manager set -opt fedora-cisco-openh264.enabled=1        increase dnf parallel downloads   Step-by-step instructions Open the DNF configuration file: Open the file /etc/dnf/dnf.conf ...
kde themes  Dream-blur-color-dark-aurorae-6 silvery-blur-dark-aurorae-6  vivid-blur-dark-aurorae-6 vivid-dark-aurorae-6      slot-dark-icon  macs green-blue