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 | |
| set -e | |
| echo "Installing prerequisites..." | |
| sudo apt-get update | |
| sudo apt-get install -y gnupg curl wget | |
| echo "Importing MongoDB public GPG key..." | |
| curl -fsSL https://www.mongodb.org/static/pgp/server-8.0.asc | \ |
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 | |
| set -e | |
| # Function to check if a package is installed | |
| is_installed() { | |
| dpkg -s "$1" &> /dev/null | |
| } | |
| echo "🔄 Updating package list..." | |
| sudo apt-get update |
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
| sudo sysctl iogpu.wired_limit_mb=DESIRED_VRAM_MB" |
OlderNewer