Block IP address in firewalld
sudo firewall-cmd --add-rich-rule="rule family='ipv4' source address='89.20.160.77' reject" --timeout=1h
Valid values for timeout - numbers followed by s, m or h
sudo firewall-cmd --add-rich-rule="rule family='ipv4' source address='89.20.160.77' reject" --timeout=1h
Valid values for timeout - numbers followed by s, m or h
Install sysstat package:
sudo dnf install sysstat -y
Install ttyplot to plot data and kazy to extract data with grm
grm install jsnjack/kazy-go
grm install tenox7/ttyplot==1.6.1 -n ttyplot -l
Check available disk partitions with df command. nvme0n1 is used in example:
iostat -dx 1 | kazy -i nvme0n1 | kazy -r -x "[\d.]*$" | ttyplot -s 100
flatpak uninstall --unused
Maintenance commands for flatpak:
flatpak update && flatpak uninstall --unused
lvremove /dev/default/LXDThinPool
To list all lvm pools:
lvdisplay
Reboot is needed if one of the following packages was updated:
kernel
glibc
linux-firmware
systemd
dbus
There is an application to easily check it:
sudo dnf install yum-utils
needs-restarting -r
openssl s_client -verify_return_error -CAfile ats_certs.pem -showcerts -connect www.zilverenkruis.nl:443 -servername www.zilverenkruis.nl
It is possible to request a URL in curl via proxy server using -x flag:
curl -x http://127.0.0.1:8080 https://google.com
This will send CONNECT request to your proxy server 127.0.0.1:8080. CONNECT request will ask proxy server to tunnel TCP connection to the destination. This means that, for example, proxy server won’t verify SSL certificate.
To force curl to send regular GET request, use the following command:
curl --request-target https://google.com -x 127.0.0.1:8080 127.0.0.1:8080
If you have no sound after the system comes back from sleep, try to run this command:
sudo systemctl start systemd-suspend
To disable USB device (audio device from Dell WD-19TB dock station in the example) when connecting it to your laptop, find it’s ids:
sudo lsusb -v
For example:
...
Bus 005 Device 007: ID 0bda:402e Realtek Semiconductor Corp. USB Audio
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 2.00
bDeviceClass 0
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 64
idVendor 0x0bda Realtek Semiconductor Corp.
idProduct 0x402e
bcdDevice 0.01
iManufacturer 3 Generic
iProduct 1 USB Audio
iSerial 2 200901010001
...
Save idVendor and idProduct values.
Create new file /lib/udev/rules.d/90-delldock.rules with the following content:
ACTION=="add", ATTR{idVendor}=="0bda", ATTR{idProduct}=="402e", RUN="/bin/sh -c 'echo 1 >/sys/\$devpath/remove'"
When the device is connected it will be automatically removed and your system won’t know about it