JattMannu / react-blog-github

🔥 React + Github Issues 👉 Your Personal Blog
https://saadpasta.github.io/react-blog-github/#/
MIT License
0 stars 0 forks source link

Autostart with Systemd service #35

Open JattMannu opened 3 years ago

JattMannu commented 3 years ago

you can get XScreenSaver to autostart at boot time with Systemd,

First, execute the following command to create a directory for storing Systemd service files of individual users.

mkdir -p ~/.config/systemd/user/

Then create xscreensaver.service file with a command-line text editor such as Nano

nano ~/.config/systemd/user/xscreensaver.service

Copy and paste the following text into the file.

[Unit]
Description=XScreenSaver
[Service]
ExecStart=/usr/bin/xscreensaver -nosplash
[Install]
WantedBy=default.target

To save the file in Nano text editor, press CTRL+ O, then press Enter to confirm. Press CTRL+X to exit. Finally, enable this service so that XScreenSaver will be automatically started at boot time.

systemctl --user enable xscreensaver

Link