22 lines
3.8 KiB
HTML
22 lines
3.8 KiB
HTML
|
<!DOCTYPE html><html><head><meta charset="utf-8"><meta http-equiv="Content-Security-Policy" content="upgrade-insecure-requests"><meta name="viewport" content="width=device-width, initial-scale=1.0"><link type="text/css" rel="stylesheet" href="/style.css"><link type="text/css" rel="stylesheet" href="style.css"><title>Mirrored Gemini content.</title></head><body><h1> macOS Install Guide</h1><p>Setting up macOS using the Terminal can be an efficient way to configure your system, install applications, and customize settings. Here’s a step-by-step guide on how to use tools like Homebrew, MAS (Mac App Store CLI), and the defaults command.</p><h2> Step 1: Open the Terminal</h2><p>You can find Terminal in ```Applications > Utilities > Terminal```, or search for it using Spotlight (Cmd + Space).</p><h2> Step 2: Install Homebrew</h2><p>Homebrew is a package manager for macOS that allows you to install software easily.</p><ul><li>Run the following command in Terminal to start install of Homebrew:</li></ul><pre>/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
|
|||
|
</pre><p>Follow the on-screen prompts to complete the installation.</p><ul><li>Add Homebrew to your PATH (if prompted), typically by adding the following line to your ~/.zprofile:</li></ul><pre>export PATH="/opt/homebrew/bin:$PATH"
|
|||
|
</pre><ul><li>Update Homebrew:</li></ul><pre>brew update
|
|||
|
</pre><h2> Step 3: Install Applications Using Homebrew</h2><p>With Homebrew installed, you can now install various applications. Here are a few commonly used commands:</p><ul><li>To install a package:</li></ul><pre>brew install <package_name>
|
|||
|
</pre><ul><li>For example, to install NodeJS:</li></ul><pre>brew install node
|
|||
|
</pre><ul><li>To install applications with Homebrew Cask (for GUI apps):</li></ul><pre>brew install --cask <app_name>
|
|||
|
</pre><ul><li>For example, to install Arc:</li></ul><pre>brew install --cask arc
|
|||
|
|
|||
|
</pre><h2> Step 4: Install the Mac App Store CLI (MAS)</h2><p>MAS allows you to manage Mac App Store applications from the command line.</p><ul><li>Install MAS using Homebrew:</li></ul><pre>brew install mas
|
|||
|
</pre><p>Sign in to your Apple ID if prompted when you first use MAS.</p><h2> Step 5: Install Applications from the Mac App Store</h2><ul><li>To find apps:</li></ul><pre>mas search <app_name>
|
|||
|
</pre><ul><li>To install an app:</li></ul><pre>mas install <app_id>
|
|||
|
</pre><p>You can get the <app_id> from the search results.</p><ul><li>To list installed apps:</li></ul><pre>mas list
|
|||
|
</pre><h2> Step 6: Use the defaults Command to Customize Settings</h2><p>The defaults command allows you to modify macOS settings from the terminal.</p><ul><li>Set the Finder to show hidden files:</li></ul><pre>defaults write com.apple.finder AppleShowAllFiles -bool true
|
|||
|
killall Finder
|
|||
|
</pre><ul><li>Change screenshots to png:</li></ul><pre>defaults write com.apple.screencapture type -string "png"
|
|||
|
killall SystemUIServer
|
|||
|
</pre><ul><li>Set the Dock to automatically hide:</li></ul><pre>defaults write com.apple.dock autohide -bool true
|
|||
|
killall Dock
|
|||
|
</pre><h2> Step 7: Update and Clean Up</h2><ul><li>Keep Homebrew packages updated:</li></ul><pre>brew update && brew upgrade
|
|||
|
</pre><ul><li>Clean up old versions of installed packages:</li></ul><pre>brew cleanup
|
|||
|
</pre><h2> Final Notes</h2><ul><li>Backup: Consider making a backup of your current settings before applying changes.</li></ul><ul><li>Customization: Feel free to explore more defaults commands to customize your macOS experience to your liking.</li></ul><ul><li>Documentation: Check the documentation for each tool for more advanced usage.</li></ul><p>With this setup, you’ll have a well-configured macOS environment tailored to your needs, and you can even make shell scripts to do most of the setup for you! (Like DSMOSS @ Sneed Group!)</p></body></html>
|