diff --git a/cli-only.sh b/cli-only.sh new file mode 100755 index 0000000..e2e9d94 --- /dev/null +++ b/cli-only.sh @@ -0,0 +1,43 @@ +#!/bin/zsh + +# Check if the script is run as root +if [[ $EUID -eq 0 ]]; then + echo "Run this script as a normal user, not as root." + exit 1 +fi + +# Prepare Toolchain +echo "[DSMOSS] Prepare Toolchain..." +xcode-select --install +echo Install toolchain, then press ENTER. + +# Prepare Rosetta +echo "[DSMOSS] Prepare Rosetta..." +softwareupdate --install-rosetta --agree-to-license +echo Install Rosetta if on ARM, then press ENTER. + +# Prepare Homebrew +echo "[DSMOSS] Prepare Homebrew..." +/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" +cp .zprofile ~/ +eval $(/usr/local/bin/brew shellenv) + +# Homebrew +echo "[DSMOSS] Install homebrew stuffs..." +brew install thefuck +brew install mas node python3 potrace imagemagick wget golang c2048 +brew install ffmpeg streamlink +brew install --cask android-platform-tools +brew install git-credential-manager + +# NPM global +echo "[DSMOSS] Install NPM Global stuffs..." +sudo npm install -g cordova + +# Make code folder +echo "[DSMOSS] Make code folder..." +mkdir ~/Code + +echo "[DSMOSS] Run the more common settings script..." +chmod +x "more-common-settings.sh" +./more-common-settings.sh \ No newline at end of file diff --git a/launcher.zsh b/launcher.zsh index 41675d7..4cbde36 100755 --- a/launcher.zsh +++ b/launcher.zsh @@ -9,6 +9,7 @@ fi echo "Choose an option:" echo "1. Full (512GB+ storage models)" echo "2. Lightweight (256GB Storage models)" +echo "3. CLI ONLY (For those storing their apps and home on external media)" printf "Enter your choice (1 or 2): " read choice @@ -24,6 +25,11 @@ case $choice in chmod +x lite.zsh ./lite.zsh ;; + 3) + echo "[ST] CLI ONLY SELECTED" + chmod +x cli-only.zsh + ./cli-only.zsh + ;; *) echo "[ST] [ERR] Not a valid selection! Exiting..." exit 1 diff --git a/more-common-settings.sh b/more-common-settings.sh index dfe8472..3c872b8 100755 --- a/more-common-settings.sh +++ b/more-common-settings.sh @@ -59,12 +59,6 @@ echo "[DSMOSS] Optimizing network settings..." sudo sysctl -w net.inet.tcp.delayed_ack=0 sudo sysctl -w net.inet.tcp.mssdflt=1440 -# Disable iCloud... -echo "[DSMOSS] Disable iCloud..." -killall Photos -sudo defaults write com.apple.CloudDocs DisableCloudKit -bool true -sudo defaults write com.apple.CloudPhotos FrameworkEnabled -bool false - # Configure file manager... echo "[DSMOSS] Configure file manager..." defaults write com.apple.finder ShowPathbar -bool true