linux gnome
I have a Fedora Linux server with Gnome 3. I want to lock / unlock the remote Gnome desktop remotely. How to activate or deactivate it remotely through SSH?
我有一个Fedora 的Linux与服务器的Gnome 3.我想锁定/解锁远程遥控Gnome桌面。 如何通过SSH远程激活或停用它?
Use gnome-screensaver-command
. It is not specific to Gnome 3.
使用gnome-screensaver-command
。 它不是特定于Gnome 3的。
Turn the screensaver on (blank the screen):
打开屏保(黑屏):
$ gnome-screensaver-command -a
If the screensaver is active then deactivate it (un-blank the screen)
如果屏幕保护程序处于活动状态,则将其禁用(取消空白屏幕)
$ gnome-screensaver-command -d
Answered by Adam.
亚当回答。
翻译自: https://www.systutorials.com/how-to-activate-or-deactivate-a-linux-host-with-gnome-remotely/
linux gnome