lynix / hdd-spindown.sh

Automatic Disk Standby using Kernel diskstats and hdparm
MIT License
52 stars 16 forks source link

install question #4

Closed knireis closed 4 years ago

knireis commented 4 years ago

Sorry newbie here, how do i install the script? Can't find any install instructions in the readme.

broizter commented 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
knireis commented 4 years ago

thanks i noticed smartctl is now smartmontools on debian

broizter commented 4 years ago

My mistake, I always confuse the package name. Updated instructions now in case someone else needs it in the future.

USBhost commented 4 years ago

@broizter you could have used make install