This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Used EC2 Image: Techlatest.net-nvidia-aiml-cuda-vm-v01-prod-b2r3n6vwasdcy | |
# 1. Check if script is run with sudo | |
if [ "$EUID" -ne 0 ]; then | |
echo "Please run as root (using sudo)" | |
exit 1 | |
fi | |
# 2. Change the password of ubuntu, for jupyterhub login |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Put me at /usr/libexec/netdata/charts.d/apex.chart.sh | |
# shellcheck shell=bash | |
# no need for shebang - this file is a plugin | |
# Initialization function | |
# Used to check if the required commands are available | |
apex_check() { | |
require_cmd cat || return 1 | |
return 0 | |
} |