Skip to content

Instantly share code, notes, and snippets.

@Pelirrojo
Created December 28, 2024 22:25
Show Gist options
  • Save Pelirrojo/526153c7b9ac045add15f5b343fa7855 to your computer and use it in GitHub Desktop.
Save Pelirrojo/526153c7b9ac045add15f5b343fa7855 to your computer and use it in GitHub Desktop.

Revisions

  1. Pelirrojo created this gist Dec 28, 2024.
    37 changes: 37 additions & 0 deletions restriction.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,37 @@
    # https://snapcraft.io/install/snap-store/ubuntu ---------------------------------
    sudo apt update
    sudo apt install snapd
    sudo snap install snap-store

    # https://www.baeldung.com/linux/limit-user-computer-time -------------------------

    sudo add-apt-repository ppa:mjasnik/ppa
    sudo apt update
    sudo apt install timekpr-next

    sudo gpasswd -a $USER timekpr
    Adding user 'username' to group timekpr

    timekpra
    sudo timekpra --setalloweddays <USER> '1;2;3;4;5;6;7'
    sudo timekpra --settimelimits <USER> '1800;1800;1800;1800;1800;3600;3600'
    sudo timekpra --settimelimitweek <USER> '117000'


    # https://smallbusiness.chron.com/block-adult-sites-firefox-63943.html ------------
    # firefox => procon

    # ---------------------------------------------------------------------------------
    # https://linuxconfig.org/quick-guide-to-enabling-ssh-on-ubuntu-24-04 -------------

    sudo apt install ssh
    sudo systemctl enable ssh
    sudo systemctl status ssh

    sudo ufw allow ssh
    sudo ufw enable