2024-10-30 15:15:38 -05: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 15:26:17 -05:00
|
|
|
echo "[DSMOSS] Prepare Toolchain..."
|
2024-10-30 15:15:38 -05:00
|
|
|
xcode-select --install
|
|
|
|
echo Install toolchain, then press ENTER.
|
|
|
|
|
|
|
|
# Prepare Homebrew
|
2024-10-30 15:26:17 -05:00
|
|
|
echo "[DSMOSS] Prepare Homebrew..."
|
2024-10-30 15:15:38 -05:00
|
|
|
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
|
|
|
|
cp ~/.zprofile ~/.zprofile-pretapped
|
|
|
|
echo 'eval $(/opt/homebrew/bin/brew shellenv)' > ~/.zprofile
|
|
|
|
eval $(/opt/homebrew/bin/brew shellenv)
|
|
|
|
|
|
|
|
# Homebrew
|
2024-10-30 15:26:17 -05:00
|
|
|
echo "[DSMOSS] Install homebrew stuffs..."
|
2024-11-01 15:52:18 -05:00
|
|
|
brew install mas node python3 potrace telnet imagemagick wget minetest golang microsoft-openjdk@21 gradle c2048 chocolate-doom
|
2024-10-30 15:15:38 -05:00
|
|
|
brew install ffmpeg yt-dlp
|
|
|
|
brew tap localsend/localsend
|
|
|
|
brew install localsend
|
|
|
|
brew install --cask toontown-rewritten darktable arc ollama utm hiddenbar vmware-fusion pencil2d vscodium vlc protonvpn upscayl android-studio android-platform-tools libreoffice krita openemu
|
|
|
|
brew install --cask github@beta inkscape virtual-ii parsec
|
|
|
|
brew install --cask nvidia-geforce-now roblox robloxstudio blender@lts imazing-profile-editor
|
|
|
|
brew install git-credential-manager
|
|
|
|
brew tap macos-fuse-t/homebrew-cask
|
|
|
|
brew install fuse-t fuse-t-sshfs
|
|
|
|
brew install --cask twingate
|
|
|
|
|
|
|
|
|
|
|
|
# NPM global
|
2024-10-30 15:26:17 -05:00
|
|
|
echo "[DSMOSS] Install NPM Global stuffs..."
|
2024-10-30 15:15:38 -05:00
|
|
|
sudo npm install -g cordova
|
|
|
|
|
|
|
|
# Mac App Store (MAS cli)
|
2024-10-30 15:26:17 -05:00
|
|
|
echo "[DSMOSS] Install Mac App Store stuffs..."
|
2024-10-30 15:15:38 -05:00
|
|
|
mas install 497799835 682658836 425424353 937984704 # XCode, GarageBand, The Unarchiver, Amphetamine.
|
|
|
|
|
|
|
|
# Settings
|
2024-10-30 15:26:17 -05:00
|
|
|
echo "[DSMOSS] Edit settings..."
|
2024-10-30 15:15:38 -05:00
|
|
|
defaults write com.apple.TextEdit NSShowAppCentricOpenPanelInsteadOfUntitledFile -bool false
|
|
|
|
defaults write -g ApplePressAndHoldEnabled -bool false
|
|
|
|
defaults write com.apple.swipescrolldirection -bool false
|
|
|
|
defaults write NSGlobalDomain AppleShowAllExtensions -bool true
|
|
|
|
mkdir ~/Pictures/screenies
|
|
|
|
defaults write com.apple.screencapture location ~/Pictures/screenies
|
|
|
|
killall SystemUIServer
|
|
|
|
defaults write com.apple.dock static-only -bool true
|
|
|
|
killall Dock
|
|
|
|
defaults write com.apple.finder ShowDesktopOnFrontmostApp -bool false
|
|
|
|
killall Finder
|
|
|
|
|
|
|
|
# Sneed Settings
|
2024-10-31 16:12:16 -05:00
|
|
|
echo "[DSMOSS] Set sneed settings..."
|
2024-11-01 13:45:55 -05:00
|
|
|
open open "/System/Library/PreferencePanes/Profiles.prefPane" "sneed-settings.mobileconfig"
|
|
|
|
echo Enable Sneed Settings then press ENTER.
|
|
|
|
read
|
2024-10-30 15:15:38 -05:00
|
|
|
|
|
|
|
# Setup Git
|
2024-10-30 15:26:17 -05:00
|
|
|
echo "[DSMOSS] Setup Git..."
|
2024-10-30 15:15:38 -05:00
|
|
|
git config --global --add credential.helper manager
|
|
|
|
git config --global user.name "Sneed Group Holder"
|
|
|
|
git config --global user.email "no@nope.nicetry"
|
|
|
|
|
|
|
|
# Install DOOM shareware
|
2024-10-30 15:26:17 -05:00
|
|
|
echo "[DSMOSS] [GZD] Install DOOM Shareware..."
|
2024-10-30 15:15:38 -05:00
|
|
|
brew install --cask gzdoom
|
|
|
|
cd ~/
|
|
|
|
wget http://www.doomworld.com/3ddownloads/ports/shareware_doom_iwad.zip
|
|
|
|
unzip shareware_doom_iwad.zip
|
|
|
|
rm shareware_doom_iwad.zip
|
|
|
|
|
|
|
|
# Make code folder
|
2024-10-30 15:26:17 -05:00
|
|
|
echo "[DSMOSS] Make code folder..."
|
2024-10-30 15:15:38 -05:00
|
|
|
mkdir ~/Code
|
|
|
|
cd ~/Code
|
|
|
|
|
|
|
|
# Install Video Editor...
|
2024-10-30 15:26:17 -05:00
|
|
|
echo "[DSMOSS] Install Video Editor..."
|
2024-11-01 13:39:53 -05:00
|
|
|
brew install --cask kdenlive
|
2024-10-30 15:15:38 -05:00
|
|
|
|
|
|
|
# Minecraft get!
|
2024-11-01 13:39:53 -05:00
|
|
|
echo "[DSMOSS] Minecraft get"
|
2024-10-30 15:15:38 -05:00
|
|
|
echo 'export PATH="/usr/local/opt/openjdk@21/bin:$PATH"' >> ~/.zshrc
|
2024-11-01 15:52:18 -05: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 15:15:38 -05:00
|
|
|
chmod +x ~/Minecraft.sh
|
|
|
|
|
|
|
|
# Create cloud init....
|
2024-10-30 15:26:17 -05:00
|
|
|
echo "[DSMOSS] Create cloud init..."
|
2024-10-30 15:15:38 -05:00
|
|
|
mkdir ~/Cloud
|
2024-10-30 15:22:53 -05:00
|
|
|
echo 'sshfs dh_ekhqt7@pdx1-shared-a3-04.dreamhost.com:/home/dh_ekhqt7/rfs.sparksammy.com/LordCloud ~/Cloud' > ~/cloudinit.sh
|
|
|
|
chmod +x ~/cloudinit.sh
|
2024-10-30 15:15:38 -05:00
|
|
|
|
2024-10-30 15:23:25 -05:00
|
|
|
# Create SSH helpers...
|
2024-10-30 15:26:17 -05:00
|
|
|
echo "[DSMOSS] Create SSH helpers..."
|
2024-10-30 15:23:25 -05:00
|
|
|
echo 'ssh root@192.168.50.144' > ~/ssh-to-felix.sh
|
|
|
|
echo 'ssh sparky@192.168.50.238' > ~/ssh-to-optishmex.sh
|
|
|
|
chmod +x ~/ssh-to-felix.sh ~/ssh-to-optishmex.sh
|
|
|
|
|
2024-10-30 15:15:38 -05:00
|
|
|
# Add extra net tools...
|
2024-10-30 15:26:17 -05:00
|
|
|
echo "[DSMOSS] Install more networking tools..."
|
2024-10-30 15:15:38 -05:00
|
|
|
brew install cloudflared miniupnpc
|
|
|
|
brew install --cask cyberduck
|
|
|
|
|
|
|
|
# More common settings...
|
2024-10-30 15:26:17 -05:00
|
|
|
echo "[DSMOSS] Run the more common settings script..."
|
2024-10-30 15:15:38 -05:00
|
|
|
chmod +x "more-common-settings.sh"
|
|
|
|
./more-common-settings.sh
|