Some ease of life scrypts that I felt like I could not find or use frequently. Only meant for running on debian systems (Ubuntu a.s.o). Python scripts should also work on windows but it is not guaranteed! Install and upgrade scripts have no need for a specific folder, but there also is no cleanup, all donwloaded files will have to be removed manualy. Other scripts might need a certain working directory (placement) so read the topic!
Different automated install scripts are found in the install folder.
Such as:
Automatic cloning, building and configuring of xmrig for Debian systems (PiOSx64,Ubuntu (server)).
See log file with cat /home/miner/xmrig.log
gulf.moneroocean.stream:10128
) and device/miner namesudo wget https://raw.githubusercontent.com/Toomas633/Scripts/main/install/xmrig.sh
sudo chmod a+x xmrig.sh
sudo ./xmrig.sh
, fill in the 3 questions, and waitAutomatically start and/or stop systemd services running on your server. Script outputs will be logged to mc-background.log
file in the same folder as the python script.
Requirements:
sudo pip install mcstatus
Installing:
wget https://raw.githubusercontent.com/Toomas633/Scripts/main/minecraft/mc-background.py
server_address
to your minecraft server address and service_name
to the service you want to controlsudo chmod a+x mc-background.py
nohup python3 mc-background.py
* * * * * python3 /<path_to_script>/mc-background.py
using sudo crontab -e
and adding it to the end of the fileDifferent automated update scripts are found in the update folder.
Such as:
Running:
sudo chmod a+x 'file'
./'file'
)Automated update script to update Portainer to latest version. Optionally can also update portainer agent within the same script or use the update_portainer_agent.sh to only update the agent if only portainer agent is used on the server.
sudo wget https://raw.githubusercontent.com/Toomas633/Scripts/main/update/portainer/update_portainer.sh
sudo wget https://raw.githubusercontent.com/Toomas633/Scripts/main/update/portainer/update_portainer_agent.sh