Closed knireis closed 4 years ago
These instructions should work on common distros such as Ubuntu 16.04+ and Debian 9+.
sudo apt install git smartmontools hdparm
git clone https://github.com/lynix/hdd-spindown.sh
cd hdd-spindown.sh
sudo mv hdd-spindown.sh /usr/bin/
sudo mv hdd-spindown.service /etc/systemd/system/
sudo mv hdd-spindown.rc /etc/
sudo chown root:root /usr/bin/hdd-spindown.sh
sudo chown root:root /etc/systemd/system/hdd-spindown.service
sudo chown root:root /etc/hdd-spindown.rc
sudo chmod +x /usr/bin/hdd-spindown.sh
sudo nano /etc/hdd-spindown.rc (edit the config to reflect your setup)
sudo systemctl daemon-reload
sudo systemctl enable --now hdd-spindown
thanks i noticed smartctl is now smartmontools on debian
My mistake, I always confuse the package name. Updated instructions now in case someone else needs it in the future.
@broizter you could have used make install
Sorry newbie here, how do i install the script? Can't find any install instructions in the readme.