chmod 666

submitted by edited

https://discuss.tchncs.de/pictrs/image/9c025c7a-db8c-4ecf-83fc-73ad00d8f05e.png

chmod 666
17
333

Log in to comment

17 Comments

Idk if titles can be updated but consider chmod 666

Yup, it can be edited. This is not Reddit. :)

Ooh do snap next

And then apt?

There was a mote of an idea floating about a few months back you've reminded me of. Basically distrohopping the hard way - start with one distro and install/remove packages until you've gotten to another one.

Oh that's nasty. Yeah, do it!

No idea what you're taking about, but I'll always upvote this picture.

You... You wouldn't actually do this, would you?

How does one actually use systemd? I tried making a script to trigger every time I boot up but it didn't work out for me

This should work. Add a file /home/username/.config/systemd/user/my_cool_service.service with this content:
```unit
[Unit]
Description=My cool service

[Service]
Type=oneshot
ExecStart=/home/username/my_cool_script.sh

[Install]
WantedBy=default.target
Now add the script `/home/username/my_cool_script.sh`. bash
#!/bin/bash
echo "Hello from my cool script."
Enable and run the service. bash
$ chmod +x /home/username/my_cool_script.sh
$ systemctl --user daemon-reload
$ systemctl --user enable my_cool_service.service

Optional:

$ systemctl --user start my_cool_service.service
$ journalctl -e --user-unit=my_cool_service # You should see the echoed string from the script.
`` The service should now run every time the userusername` logs in.

Oh, thanks! My distro has a package that has a bunch of visual configurations that reset on boot and I wanted to do my configs on top

Did you set the WantedBy field?

Did you systemctl enable the service?