all 17 comments

sorted by: hot top controversial new old
[–] 36 points 1 year ago (2 children)

Idk if titles can be updated but consider chmod 666

  • source
  • hideshow 2 child comments
  • [–] 25 points 1 year ago (5 children)
  • [–] 7 points 1 year ago (3 children)
  • [–] 17 points 1 year ago (2 children)

    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.

  • source
  • parent
  • hideshow 2 child comments
  • [–] 26 points 1 year ago

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

  • source
  • [–] 18 points 1 year ago

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

  • source
  • [–] 5 points 1 year ago (3 children)

    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

  • source
  • hideshow 3 child comments
  • [–] 6 points 1 year ago (1 child)

    This should work. Add a file /home/username/.config/systemd/user/my_cool_service.service with this content:

    [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.

    #!/bin/bash
    echo "Hello from my cool script."
    

    Enable and run the service.

    $ 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 user username logs in.

  • source
  • parent
  • hideshow 1 child comment
  • [–] 4 points 1 year ago

    go get em, tiger

  • source
  • [–] 3 points 1 year ago

    chmod 640 for the win.

  • source