Open main menu

Changes

XScript

2 bytes removed, 11:46, 17 June 2023
====install====
====='''Update system & install dependent packages====='''
cd ~
sudo pacman -Syyu
sudo pacman -S python python-setuptools
====='''Install RPi.GPIO Python Library=====''' 
The script that the fan runs depends on the RPi.GPIO Python library. Since this OS does not include this package by default, we need to install it manually.
Refer to [[How to Install RPi.GPIO Python Library]], and you need use the ''''Method 2 – Manual Installation''''
=====download '''Download script====='''
cd ~
git clone https://github.com/geekworm-com/xscript.git
sudo pacman -S git
=====install====='''Install script'''
cd ~/xscript
sudo chmod +x *.sh rc.local
sudo sed -i '$ i sudo python3 ~/xscript/fan.py &' /etc/rc.local
'''Create a alias xoff'''
echo "alias xoff='sudo /usr/local/bin/softsd.sh'" >> ~/.bashrc
Then reboot the device