jueves, 16 de abril de 2026

yamlfmt on wsl

Steps to install yamlfmt and go in wsl

sudo apt update && sudo apt install -y golang
go install github.com/google/yamlfmt/cmd/yamlfmt@latest
echo 'export PATH="$PATH:$HOME/go/bin"' >> ~/.bashrc
source ~/.bashrc

martes, 7 de abril de 2026

Mosquitto post install

 

Mosquitto comes with a password file generating utility called mosquitto_passwd.

mosquitto_passwd -c /etc/mosquitto/passwd <user>

Ensure that the file is managed by the appropriate user and group.

chown mosquitto:mosquitto /etc/mosquitto/passwd

Now restart Mosquitto server.

systemctl restart mosquitto

The command below will show what ports are listening (look for *:1883 (LISTEN))

lsof -i -P -n | grep LISTEN

jueves, 26 de marzo de 2026

Out of space lvm on lxc container proxmox

 

# List LVM volumes for the container
lvs | grep vm-101

# Check the actual size and usage
lvdisplay /dev/pve/vm-101-disk-0

# Try to mount the container's rootfs temporarily to check space
mkdir -p /tmp/ct101-check
mount /dev/pve/vm-101-disk-0 /tmp/ct101-check
df -h /tmp/ct101-check
du -sh /tmp/ct101-check/* | sort -hr | head -20


# First, unmount the temporary mount
umount /tmp/ct101-check

# Resize the rootfs to 20GB (or 30GB if you plan to run many containers)
pct resize 101 rootfs 20G

# Now start the container
pct start 101