diff --git a/Workflows/Linux/Fedora Workstation/Install DE into Fedora Server.md b/Workflows/Linux/Fedora Workstation/Install DE into Fedora Server.md index 2a6ac90..540e8d2 100644 --- a/Workflows/Linux/Fedora Workstation/Install DE into Fedora Server.md +++ b/Workflows/Linux/Fedora Workstation/Install DE into Fedora Server.md @@ -38,4 +38,28 @@ Session=xfce.desktop ``` !!! note "Determining Session Strings" - If you're unsure of the correct session string, check what's available by typing `ls /usr/share/xsessions/`. + If you're unsure of the correct session string, check what's available by typing `ls /usr/share/xsessions/`. You will be looking for something like `xfce.desktop` + +### Configure Lock on Initial Login +At this point, its not the most secure thing to just leave a server logged-in upon boot, so the following steps will instantly lock the server after logging in, allowing the XFCE session to persist so Rustdesk can attach to it for remote management of the server. + +```sh +mkdir -p ~/.config/autostart +nano ~/.config/autostart/xfce-lock.desktop +``` + +```ini title="~/.config/autostart/xfce-lock.desktop" +[Desktop Entry] +Type=Application +Exec=xfce4-screensaver-command -l +Hidden=false +NoDisplay=false +X-GNOME-Autostart-enabled=true +Name=Auto Lock +Comment=Lock the screen on login +``` + +Lastly, test that everything is working by rebooting the server. +```sh +sudo reboot +``` \ No newline at end of file