Answer by Pascal V. for How can I logout from the GUI using CLI?
This is what works best for me (with xfce, lightdm and ssh):$ DISPLAY=:0.0 xfce4-session-logout --logoutOr$ sudo service lightdm restart
View ArticleAnswer by Pascal V. for How to type into the lightdm login screen from the...
This works fine for me (from ssh, with lightdm):$ XAUTHORITY=/var/lib/lightdm/.Xauthority DISPLAY=:0.0 sudo sh -c 'xdotool type "My Password"&& xdotool key Return'
View Article
More Pages to Explore .....