Lock Screen and Hibernate in Ubuntu 22.04

In Ubuntu you can hibernate your PC by using the following command:

sudo systemctl hibernate

The problem is it does not automatically lock the screen. To lock the screen use:

xdg-screensaver lock

Now we can combine it together:

xdg-screensaver lock && systemctl hibernate

Note that you will need to enable your user to execute systemctl hibernate without sudo. You can do it by editing /etc/sudoers. Just add:

your-username ALL= NOPASSWD: /usr/bin/systemctl hibernate

GService causing Windows 11 to sleep when RPD session ends?

I was struggling with this issue for a while. After I updated my PC with Windows 10 to Windows 11. I used to connect to this PC remotely using RDP. Any time I disconnected from RDP the PC went to sleep.

I was not able to find anything relevant on Google.

After some more digging in Event Viewer I found some events related to GCloud a part of GService which is software provided by GIGABYTE.

After I uninstalled GService the problem finally disappeared!

Unable to login to ZyXEL NAS542 after firmware upgrade

Today I upgraded our ZyXEL NAS to firmware V5.21(ABAG.7). After the upgrade, I was unable to into the web interface. SSH login for admin worked fine.

Because of Zyxel security advisory for the remote code execution vulnerability of NAS products — Zyxel Community the password no longer may contain special characters. If you used those special character in your admin password before update, you will need to reset it.

You should be able to reset admin password using the RESET button as stated in the documentation. But that did not worked for me.

If you have admin SSH access to the NAS, you may change the password by executing smbpasswd command. Web interface uses Samba for the authentication. As soon as you change the password using smbpasswd you should be able to login to web interface. Finally change the password in the web interface to make it permanent.

Windows Vista hangs on “Checking for updates”

Process svchost.exe is taking up the CPU and it looks like it will run forever (in days).
In my case I had a fresh install of Vista SP2. I was able to get rid of this by manually installing some of the updates.
First of all disable Windows Update and restart PC, so that the svchost.exe was in sleep state (no CPU usage).

After that it is required to manually install the following Windows updates:

As soon as the updates are installed and the PC is restarted, you should be able to check and install all updates as usual.