Rename C:\Windows\System32\Recovery\REAgent.xml to REAgent.old
Roy's Random Rants
Reviews of products I like, plus whatever comes to my mind...
Monday, September 29, 2025
Friday, September 26, 2025
Scan and repair corrupt Windows system files
Using elevated command prompt:
Dism /Online /Cleanup-Image /ScanHealth
Dism /Online /Cleanup-Image /CheckHealth
Dism /Online /Cleanup-Image /RestoreHealth
sfc /scannow
chkdsk /f /r
References:
Sunday, September 7, 2025
Adding a Samba user and setting the password
I almost always forget to add users to Samba group after enabling Samba. So here it is:
sudo smbpasswd -a <username>
Change service shutdown timeout in Debian
Make a change so that slow-non/responding services to terminate quickly during shutdown:
sudo nano /etc/systemd/system.conf
Uncomment and edit to:
DefaultTimeoutStopSec=5s
Reboot or reload with:
sudo systemctl daemon-reload
Adding ufw rules using application profiles while restricting source network
Unfortunately, the ufw help doesn't provide an example for using application profiles while specifying the source network. Here's an example how "OpenSSH" profile can be used but restricting the source network to local:
sudo ufw allow from 192.168.0.0/24 to any app OpenSSH
Saturday, September 6, 2025
Disable IPv6 in Debian Trixie
Edit /etc/hosts and remove the default IPv6 entries, including localhost, etc. If you don't do this, you may encounter weird errors down the road because some programs will try to bind to "localhost" and it ends up try using non-existing IPv6 address, etc.
Create the follow file:
sudo nano /etc/sysctl.d/90-disable_ipv6.conf
then add these lines and save:
net.ipv6.conf.all.disable_ipv6 = 1
net.ipv6.conf.default.disable_ipv6 = 1
Run:
sudo sysctl --system