Skip to content

Latest commit

 

History

History
53 lines (36 loc) · 1.14 KB

README.md

File metadata and controls

53 lines (36 loc) · 1.14 KB

pve-parent

Just a random set of scripts I created to enable Parental Controls for Proxmox

Installation

  1. Clone this repository for the latest version of the script
cd /opt
git clone https://github.com/mdsketch/pve-parent

Note: All commands below must be run from the pve-parent repository root

  1. Install the monitor service
cp monitor.service /etc/systemd/system/monitor.service
systemctl daemon-reload
systemctl enable --now monitor.service
  1. Install cron job
  • Edit the crontab file
cp monitor.cron /etc/cron.d/monitor

Optional: Use Power Button to start VM

  1. Disable the default power button action
sed -i 's/HandlePowerKey=poweroff/HandlePowerKey=ignore/g' /etc/systemd/logind.conf
sed -i 's/HandleSuspendKey=suspend/HandleSuspendKey=ignore/g' /etc/systemd/logind.conf
sed -i 's/HandleHibernateKey=hibernate/HandleHibernateKey=ignore/g' /etc/systemd/logind.conf
  1. Install ACPI event handler
apt install acpid
  1. Edit the acpi handler file and add custom action
cp powerbtn-acpi-support /etc/acpi/events/powerbtn-acpi-support
cp pwbtn.sh /etc/acpi/pwbtn.sh