2024-10-30 20:15:38 +00:00
|
|
|
#!/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
|
2024-10-30 20:26:17 +00:00
|
|
|
echo "[DSMOSS] Prepare Toolchain..."
|
2024-10-30 20:15:38 +00:00
|
|
|
xcode-select --install
|
|
|
|
echo Install toolchain, then press ENTER.
|
|
|
|
|
2024-11-10 20:57:58 +00:00
|
|
|
# Prepare Rosetta
|
|
|
|
echo "[DSMOSS] Prepare Rosetta..."
|
|
|
|
software-update --install-rosetta
|
|
|
|
echo Install Rosetta if on ARM, then press ENTER.
|
|
|
|
|
2024-10-30 20:15:38 +00:00
|
|
|
# Prepare Homebrew
|
2024-10-30 20:26:17 +00:00
|
|
|
echo "[DSMOSS] Prepare Homebrew..."
|
2024-10-30 20:15:38 +00:00
|
|
|
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
|
2024-11-10 20:25:47 +00:00
|
|
|
cp .zprofile ~/
|
|
|
|
eval $(/usr/local/bin/brew shellenv)
|
2024-10-30 20:15:38 +00:00
|
|
|
|
|
|
|
# Homebrew
|
2024-10-30 20:26:17 +00:00
|
|
|
echo "[DSMOSS] Install homebrew stuffs..."
|
2024-11-10 20:25:47 +00:00
|
|
|
brew install thefuck
|
2024-10-30 20:15:38 +00:00
|
|
|
brew install mas node python3 potrace telnet imagemagick wget golang gradle c2048
|
2024-11-03 19:05:26 +00:00
|
|
|
brew install ffmpeg streamlink
|
2024-11-09 19:41:11 +00:00
|
|
|
brew install --cask ollama darktable arc vlc protonvpn upscayl android-platform-tools libreoffice krita
|
2024-10-30 20:15:38 +00:00
|
|
|
brew install --cask inkscape
|
2024-10-31 21:09:42 +00:00
|
|
|
brew tap localsend/localsend
|
|
|
|
brew install localsend
|
2024-10-30 20:15:38 +00:00
|
|
|
brew install --cask nvidia-geforce-now roblox
|
|
|
|
brew install git-credential-manager
|
|
|
|
|
|
|
|
# NPM global
|
2024-10-30 20:26:17 +00:00
|
|
|
echo "[DSMOSS] Install NPM Global stuffs..."
|
2024-10-30 20:15:38 +00:00
|
|
|
sudo npm install -g cordova
|
|
|
|
|
|
|
|
# Mac App Store (MAS cli)
|
2024-10-30 20:26:17 +00:00
|
|
|
echo "[DSMOSS] Install Mac App Store stuffs..."
|
2024-10-30 20:15:38 +00:00
|
|
|
mas install 425424353 937984704 # The Unarchiver, Amphetamine.
|
|
|
|
|
|
|
|
# Make code folder
|
2024-10-30 20:26:17 +00:00
|
|
|
echo "[DSMOSS] Make code folder..."
|
2024-10-30 20:15:38 +00:00
|
|
|
mkdir ~/Code
|
|
|
|
cd ~/Code
|
|
|
|
|
|
|
|
# Install Video Editor...
|
2024-10-30 20:26:17 +00:00
|
|
|
echo "[DSMOSS] Install Video Editor..."
|
2024-11-01 18:39:53 +00:00
|
|
|
brew install --cask kdenlive
|
2024-10-30 20:15:38 +00:00
|
|
|
|
|
|
|
# Minecraft get!
|
2024-11-01 18:39:53 +00:00
|
|
|
echo "[DSMOSS] Minecraft get"
|
2024-11-01 20:52:18 +00:00
|
|
|
brew install microsoft-openjdk@21
|
2024-10-30 20:15:38 +00:00
|
|
|
echo 'export PATH="/usr/local/opt/openjdk@21/bin:$PATH"' >> ~/.zshrc
|
2024-11-01 20:52:18 +00:00
|
|
|
wget https://github.com/HMCL-dev/HMCL/releases/download/v3.5.9.259/HMCL-3.5.9.259.sh -O ~/Minecraft.sh
|
2024-10-30 20:15:38 +00:00
|
|
|
chmod +x ~/Minecraft.sh
|
|
|
|
|
|
|
|
# Add extra net tools...
|
2024-10-30 20:26:17 +00:00
|
|
|
echo "[DSMOSS] Install more networking tools..."
|
2024-10-30 20:15:38 +00:00
|
|
|
brew install cloudflared miniupnpc
|
|
|
|
brew install --cask cyberduck
|
2024-11-02 21:53:17 +00:00
|
|
|
brew install --cask lagrange
|
2024-11-09 18:59:03 +00:00
|
|
|
brew install --cask twingate
|
2024-10-30 20:15:38 +00:00
|
|
|
|
2024-10-30 20:26:17 +00:00
|
|
|
echo "[DSMOSS] Run the more common settings script..."
|
2024-10-30 20:15:38 +00:00
|
|
|
chmod +x "more-common-settings.sh"
|
2024-11-02 18:58:15 +00:00
|
|
|
./more-common-settings.sh
|
|
|
|
|
|
|
|
# Install Parsec
|
|
|
|
echo "[DSMOSS] Install Parsec..."
|
|
|
|
brew install --cask parsec
|