Update Workflows/Linux/Fedora Workstation/Install DE into Fedora Server.md
All checks were successful
GitOps Automatic Deployment / GitOps Automatic Deployment (push) Successful in 7s
All checks were successful
GitOps Automatic Deployment / GitOps Automatic Deployment (push) Successful in 7s
This commit is contained in:
@ -38,4 +38,28 @@ Session=xfce.desktop
|
|||||||
```
|
```
|
||||||
|
|
||||||
!!! note "Determining Session Strings"
|
!!! 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
|
||||||
|
```
|
Reference in New Issue
Block a user