Skip to content

mdsketch/pve-parent

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Parental Controls for Proxmox

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages