find /home/*/imap -path '*/sieve/*' -name '*.sieve' -exec grep -HiE '^\s*redirect' {} \; 2>/dev/null
One liner to list and count all files & dirs
find . -mindepth 1 -maxdepth 1 -type d | sort | while read d; do printf "%s: %d files, %s\n" "$d" "$(find "$d" -type f | wc -l)" "$(du -sh "$d" | cut -f1)"; done
one line bash command for to list the total number of files in each directory and below directiroes
and directory total sizses each – Fuck English 😀
proxmox – assign ipv4 and ipv6 to vm’s
hani llm yoktu? varmi? cok ayip…. cok….
Step 1 — Configure /etc/network/interfaces on the Proxmox host
bash# /etc/network/interfaces
auto lo
iface lo inet loopback
# Physical NIC
auto eth0
iface eth0 inet manual
# vmbr0 — uplink bridge (real IPv4 + IPv6 from ISP)
auto vmbr0
iface vmbr0 inet static
address 203.0.113.1/24 # your real IPv4
gateway 203.0.113.254
bridge-ports eth0
bridge-stp off
bridge-fd 0
iface vmbr0 inet6 static
address 2a01:xxxx:xxxx:xxxx::1/64 # your real /64 prefix, host address
gateway fe80::1 # ISP's link-local gateway
# vmbr1 — internal NAT bridge (no physical port)
auto vmbr1
iface vmbr1 inet static
address 192.168.100.1/24
bridge-ports none
bridge-stp off
bridge-fd 0
post-up echo 1 > /proc/sys/net/ipv4/ip_forward
post-up iptables -t nat -A POSTROUTING -s 192.168.100.0/24 -o vmbr0 -j MASQUERADE
post-down iptables -t nat -D POSTROUTING -s 192.168.100.0/24 -o vmbr0 -j MASQUERADE
Apply with:
bashsystemctl restart networking
# or
ifreload -a
Step 2 — IPv4 DHCP for VMs via dnsmasq
Install and configure dnsmasq to hand out 192.168.100.x leases on vmbr1:
bashapt install dnsmasq
ini# /etc/dnsmasq.d/vmbr1.conf
interface=vmbr1
bind-interfaces
# IPv4 DHCP pool
dhcp-range=192.168.100.50,192.168.100.200,255.255.255.0,24h
# DNS
dhcp-option=6,1.1.1.1,8.8.8.8
# Optional: assign fixed IPs by MAC
# dhcp-host=aa:bb:cc:dd:ee:ff,192.168.100.10,myhostname
bashsystemctl enable --now dnsmasq
systemctl restart dnsmasq
Step 3 — Real IPv6 for VMs via SLAAC (Router Advertisements)
Your host has a real /64, so VMs can get real public IPv6 addresses automatically via SLAAC — no DHCPv6 needed (though you can add it).
Enable IPv6 forwarding and RA on vmbr0:
bash# /etc/sysctl.d/99-ipv6-forward.conf
net.ipv6.conf.all.forwarding = 1
net.ipv6.conf.vmbr0.accept_ra = 2 # accept RA even when forwarding
bashsysctl -p /etc/sysctl.d/99-ipv6-forward.conf
Install radvd to send Router Advertisements to VMs:
bashapt install radvd
conf# /etc/radvd.conf
interface vmbr0 {
AdvSendAdvert on;
MinRtrAdvInterval 30;
MaxRtrAdvInterval 100;
prefix 2a01:xxxx:xxxx:xxxx::/64 {
AdvOnLink on;
AdvAutonomous on; # enables SLAAC — VMs self-configure an IPv6
AdvRouterAddr on;
};
};
bashsystemctl enable --now radvd
Each VM with SLAAC support (all modern Linux, Windows, BSD) will auto-generate a 2a01:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx address from its MAC.
Step 4 — VM network config in Proxmox
When creating a VM, attach two network interfaces:
InterfaceBridgePurposenet0vmbr0Real IPv6 via SLAACnet1vmbr1Private IPv4 via DHCP (192.168.100.x)
directadmin Sending outbound email through remote mail server
proxmox backup server da birseyler silmek neden bu kadar iskence yahu?
proxmox backupserverda bir kac backup silecegim
hemen su an silmek ve yer temizlemek yer acmak istiyorum
24saat+5 dakika gcc prune vs vs shit degilmi?
o zaman sunu yap hizli ol
1- shelle git
find /path2pbs-datastore/.chunks -type f -print0 | xargs -0 touch -d "-2 days"
2- Daily GC Jobu calistir.
rustdesk wayland copy paste
# RustDesk
env GDK_BACKEND=x11 rustdesk
directadmin which site uses which version of php bash script
#!/bin/bash
#*******************************************************************************
#* @file php_list.sh
#*
#* @brief This scripts creates an list with used php versions for each domain on DA
#*
#*
#* @author Jordi van Nistelrooij @ Webs en Systems.
#* @email info@websensystems.nl
#* @website https://websensystems.nl
#* @version 1.0.0
#* @copyright Non of these scripts maybe copied or modified without permission of the author
#*
#* @date 2025-06-10
#*
#*******************************************************************************
DA_USERS="/usr/local/directadmin/data/users"
OPTIONS_CONF="/usr/local/directadmin/custombuild/options.conf"
OUTPUT_FILE="php_versies_per_domein.txt"
# Haal phpX_release waardes op uit options.conf
declare -A php_versions
for i in {1..4}; do
versie=$(grep "^php${i}_release=" "$OPTIONS_CONF" | cut -d= -f2)
if [ -n "$versie" ]; then
php_versions["$i"]="$versie"
fi
done
echo "Domein | Gekozen PHP Slot | PHP Versie" > "$OUTPUT_FILE"
echo "------------------------------" >> "$OUTPUT_FILE"
for user in $(ls "$DA_USERS"); do
DOMAINS_FILE="$DA_USERS/$user/domains.list"
if [ -f "$DOMAINS_FILE" ]; then
for domain in $(cat "$DOMAINS_FILE"); do
CONF_FILE="$DA_USERS/$user/domains/${domain}.conf"
if [ ! -f "$CONF_FILE" ]; then
continue
fi
SLOT=$(grep "^php1_select=" "$CONF_FILE" | cut -d= -f2)
if [ -z "$SLOT" ]; then
SLOT="1" # fallback naar php1 als er geen php1_select is
fi
VERSION="${php_versions[$SLOT]:-(onbekend)}"
echo "$domain | $SLOT | $VERSION" >> "$OUTPUT_FILE"
done
fi
done
column -t -s '|' "$OUTPUT_FILE"
exit
Optional Post-Installation Optimizations for Proxmox
# Update system packages
apt update && apt -y upgrade && apt -y autoremove && pveupgrade && pveam update
# Install useful utilities
apt install -y curl libguestfs-tools unzip iptables-persistent net-tools
# Remove subscription notice
sed -Ezi.bak "s/(Ext.Msg.show\(\{\s+title: gettext\('No valid sub)/void\(\{ \/\/\1/g" /usr/share/javascript/proxmox-widget-toolkit/proxmoxlib.js && systemctl restart pveproxy.service
Optimize ZFS Memory Usage
# Configure ZFS memory limits
echo "nf_conntrack" >> /etc/modules
echo "net.netfilter.nf_conntrack_max=1048576" >> /etc/sysctl.d/99-proxmox.conf
echo "net.netfilter.nf_conntrack_tcp_timeout_established=28800" >> /etc/sysctl.d/99-proxmox.conf
rm -f /etc/modprobe.d/zfs.conf
echo "options zfs zfs_arc_min=$[6 * 1024*1024*1024]" >> /etc/modprobe.d/99-zfs.conf
echo "options zfs zfs_arc_max=$[12 * 1024*1024*1024]" >> /etc/modprobe.d/99-zfs.conf
update-initramfs -u
https://community-scripts.github.io/ProxmoxVE/scripts?id=post-pve-install
fuck you centralnic
command = ModifyDomain
domain = xxxxxx.eu
ownercontact0 = P-NUE1815
X-EU-ACCEPT-TRUSTEE-TAC = 0
ek
COMMAND = SetAuthCode
DOMAIN = (TEXT)
promox mail gateway spam quarantine page for users change the logo on the right upside and the link for a little bit of branding
promox mail gateway spam quarantine page for users change the logo on the right upside and the link for a little bit of branding
1- logo is here:
/usr/share/javascript/pmg-gui/images/proxmox_logo.png
2- link is here:
/usr/share/javascript/proxmox-widget-toolkit/proxmoxlib.js