Hello,

I am looking for a program that can force me to stop using Linux when I need to do something else, like eating dinner or going to bed.

This time enforcement could be as simple as changing the user password and then logging me out at a certain time (of course it should also change the password back later)

It should also require a password (different from the user password) to change its settings or uninstall it, so that I can’t tamper with it in a weak moment.

Is there such a program for Linux?

  • SayCyberOnceMore@feddit.uk
    Aquileo | link
    Aquileo | fedilink
    English
    Aquileo | arrow-up
    19
    ·
    5 days ago

    Not a direct answer for you, but a different approach.

    Psychologically the carrot is better than the stick, meaning you’ll keep fighting the lock-out mechanism, eventually resenting it and removing it.

    Having an alert to remind you that you wanted to stop will be more pursuasive. (I have a “go to bed” alarm with a gentle, gradually increasing volume on my phone)

    What’s even better is tying a habit you want (eating, going to bed, etc) into another habit which already exists, but obviously, I don’t know you well enough to suggest anything specific, but perhaps something else happens near those times you want to stop and that’ll help?

    • Remy@lemmy.todayOP
      Aquileo | link
      Aquileo | fedilink
      Aquileo | arrow-up
      1
      ·
      2 days ago

      Psychologically the carrot is better than the stick, meaning you’ll keep fighting the lock-out mechanism, eventually resenting it and removing it.

      The logout mechanism just needs to though me out of my way and take at least 5 minutes (better more) to circumvent, this will probably be enough for me to do the right thing.

      Having an alert to remind you that you wanted to stop will be more pursuasive. (I have a “go to bed” alarm with a gentle, gradually increasing volume on my phone)

      I tried this for many times, but ended up just dismising the alarms because my will is weak

  • solrize@lemmy.ml
    Aquileo | link
    Aquileo | fedilink
    Aquileo | arrow-up
    17
    ·
    5 days ago

    cron job that launches the lock screen at the specified time and unlocks it later?

    My idea for this has always been a battery powered computer, where the battery gets charged by a pedal powered generator. So I can use the computer as much as I want, but I have to at least get some exercise to keep it running.

    • Remy@lemmy.todayOP
      Aquileo | link
      Aquileo | fedilink
      Aquileo | arrow-up
      2
      ·
      5 days ago

      cron job that launches the lock screen at the specified time and unlocks it later?

      Is there a way to only allow changing it when entering a password (that is different from the user password)

          • solrize@lemmy.ml
            Aquileo | link
            Aquileo | fedilink
            Aquileo | arrow-up
            2
            ·
            5 days ago

            Usually the password is different, yes. If you’re unfamiliar with Linux system administration you might ask for more specific help. Root is the administrative account that lets you add and delete user accounts, access all the system’s files, and that sort of thing. Ultimately though, it’s like the joke about how many psychiatrists it takes to change a light bulb (just one, but the light bulb has to want to change). If you want to break through your time limiting software, you will find a way to do so. So you have to be willing to go along with it.

  • sudoer777@lemmy.ml
    Aquileo | link
    Aquileo | fedilink
    English
    Aquileo | arrow-up
    6
    Aquileo | arrow-down
    1
    ·
    5 days ago

    Pipe /dev/random to passwd for your user and put it in a chron job, then have another chron job that echos your original password back

  • [object Object]@lemmy.ca
    Aquileo | link
    Aquileo | fedilink
    Aquileo | arrow-up
    6
    ·
    5 days ago

    Write a script that installs one random AUR package a day.

    Then you’ll either never be able to leave, or distrust your system forever and want to spend less time on it.

  • MangoCats@feddit.it
    Aquileo | link
    Aquileo | fedilink
    English
    Aquileo | arrow-up
    4
    ·
    5 days ago

    It all depends on how “forced” you want to be.

    Generally, in Linux, if you’ve installed it, you have the power to uninstall it. Once your lockout gets put in effect, you can boot from USB, mount the hard drive, modify the files necessary to bypass your lockout, then reboot and proceed as if your lockout didn’t exist.

    Given that perspective: wouldn’t a nag reminder popping over your screen that you actually pay attention to be better than “locking your account” with locks so easily picked?

    • Remy@lemmy.todayOP
      Aquileo | link
      Aquileo | fedilink
      Aquileo | arrow-up
      1
      ·
      5 days ago

      It all depends on how “forced” you want to be.

      I would say: It should take at least 3 minutes (better more) to circumvent it.

      Generally, in Linux, if you’ve installed it, you have the power to uninstall it. Once your lockout gets put in effect, you can boot from USB, mount the hard drive, modify the files necessary to bypass your lockout, then reboot and proceed as if your lockout didn’t exist.

      This sounds like it would take me around 10 minutes, so its enough for me to stop and do what I should be doing instead.