All Projects → mgomesborges → Mac Dev Setup

mgomesborges / Mac Dev Setup

Licence: mit
A macOS development environment setup guide and installation scripts.

Programming Languages

shell
77523 projects

Projects that are alternatives of or similar to Mac Dev Setup

Hub
A command-line tool that makes git easier to use with GitHub.
Stars: ✭ 21,420 (+97263.64%)
Mutual labels:  homebrew
Brewformulas.org
A website to search and discover formulas from Homebrew for Mac
Stars: ✭ 567 (+2477.27%)
Mutual labels:  homebrew
Edizon
💡 A homebrew save management, editing tool and memory trainer for Horizon (Nintendo Switch)
Stars: ✭ 706 (+3109.09%)
Mutual labels:  homebrew
Git Peek
git repo to local editor instantly
Stars: ✭ 485 (+2104.55%)
Mutual labels:  homebrew
Formulae.brew.sh
🏎 An online formulae browser for Homebrew
Stars: ✭ 543 (+2368.18%)
Mutual labels:  homebrew
Nx Shell
A multi-purpose file manager for the Nintendo Switch.
Stars: ✭ 639 (+2804.55%)
Mutual labels:  homebrew
Octo
A Chip8 IDE
Stars: ✭ 419 (+1804.55%)
Mutual labels:  homebrew
Homebrew Cask Versions
🔢 Alternate versions of Casks
Stars: ✭ 891 (+3950%)
Mutual labels:  homebrew
Homebrew Nginx
🚒 Community NGINX tap for custom modules
Stars: ✭ 557 (+2431.82%)
Mutual labels:  homebrew
Asimov
Automatically exclude development dependencies from Apple Time Machine backups
Stars: ✭ 705 (+3104.55%)
Mutual labels:  homebrew
Dark Mode
Control the macOS dark mode from the command-line
Stars: ✭ 518 (+2254.55%)
Mutual labels:  homebrew
Libctru
Homebrew development library for Nintendo 3DS/Horizon OS user mode (Arm11)
Stars: ✭ 530 (+2309.09%)
Mutual labels:  homebrew
Dotfiles
Dotfiles for macOS
Stars: ✭ 678 (+2981.82%)
Mutual labels:  homebrew
Hb Appstore
Homebrew App Store - GUI for downloading/managing homebrew apps for video game consoles
Stars: ✭ 463 (+2004.55%)
Mutual labels:  homebrew
Brew Php Switcher
Brew PHP switcher is a simple shell script to switch your apache and CLI quickly between major versions of PHP. If you support multiple products/projects that are built using either brand new or old legacy PHP functionality. For users of Homebrew (or brew for short) currently only.
Stars: ✭ 739 (+3259.09%)
Mutual labels:  homebrew
Switchthemeinjector
Create custom themes for the nintendo switch !
Stars: ✭ 436 (+1881.82%)
Mutual labels:  homebrew
Jarvis
Dotfiles for a powerful, web development-focused environment powered by Neovim, iTerm2, tmux, and zsh
Stars: ✭ 617 (+2704.55%)
Mutual labels:  homebrew
Hydrosphere
Ocean beyond the Horizon
Stars: ✭ 17 (-22.73%)
Mutual labels:  homebrew
Mos
一个用于在 macOS 上平滑你的鼠标滚动效果或单独设置滚动方向的小工具, 让你的滚轮爽如触控板 | A lightweight tool used to smooth scrolling and set scroll direction independently for your mouse on macOS
Stars: ✭ 7,772 (+35227.27%)
Mutual labels:  homebrew
Brew
🍺 The missing package manager for macOS (or Linux)
Stars: ✭ 30,318 (+137709.09%)
Mutual labels:  homebrew

macOS Development Setup

A macOS development environment setup guide and command-line tool.

Release Doc License

Command Line Tools (mandatory)

Command Line Tools

The Command Line Tools Package is a small self-contained package available for download separately from Xcode and that allows you to do command line development in macOS.

Install Command Line Tools

  1. Paste that in the terminal prompt:

    xcode-select --install
    
  2. A software update popup window will appear. Click Install, then agree to the Terms of Service when requested.

    Command Line Tools

  3. The Command Line Tools is installed at:

    /Library/Developer/CommandLineTools/
    

Xcode (optional)

Xcode

Xcode is Apple's integrated development environment (IDE) for Swift, Objective-C, C, and C++. It also supports Java, AppleScript, Python, Ruby, and ResEdit (Rez).

Install Xcode

Download and install Xcode from the App Store or from Apple's website

⚠️ Xcode takes over 13 GB of disk space. Its installation is not mandatory.

Homebrew (mandatory)

Homebrew

Homebrew is the missing package manager for macOS.

Install Homebrewv

Open the terminal and run the following script:

/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

Git (mandatory)

Git

Git is a free and open source distributed version control system.

Install and set up git

  • Paste that in the terminal prompt:

    bash <(curl -fsSL raw.githubusercontent.com/mgomesborges/mac-dev-setup/master/install) git
    
  • Or follow the Git set-up guide.

Terminal

Zsh Bash

With macOS Catalina - October 2019, Apple is now using Zsh as the default shell. However, you can quickly switch back to Bash if you prefer.

Check out how to select your shell and set up your terminal theme:

Python

Python

Python is a programming language that lets you work quickly and integrate systems more effectively.

Install Pyenv and Python 3.7.6

Pyenv lets you easily switch between multiple versions of Python.

  • Paste that in the terminal prompt:

    bash <(curl -fsSL raw.githubusercontent.com/mgomesborges/mac-dev-setup/master/install) python376
    
  • Or follow the Python set-up guide.

⚠️ It is recommended to close and reopen the terminal to apply the configuration!

Python for Data Science

Python Package

Python Packages

  • TensorFlow, Keras, numpy, pandas
  • scipy, scikit-learn, scikit-image, sk-video
  • Matplotlib, pillow
  • Jupyter lab & extensions

Install Python Data Science packages

  • Paste that in the terminal prompt:

    bash <(curl -fsSL raw.githubusercontent.com/mgomesborges/mac-dev-setup/master/install) pypackages
    
  • Or follow the Python Data Science set-up guide.

Visual Studio Code - VS Code

VS Code

Visual Studio Code is a lightweight but powerful source code editor.

Check out the VS Code set-up guide.

Using VS Code with particular technologies

Microsoft created a collection of recipes for using VS Code with particular technologies (mostly Web).

Make sure to visit it at Microsoft/vscode-recipes.

LaTeX with VSCode

LaTeX - MacTeX (optional)

LaTeX

MacTeX is an install package which installs everything needed to run TeX on Mac OS X.

Install LaTeX

  1. Install Ghostscript

    brew install ghostscript
    
  2. Download MacTeX 2020 from https://tug.org/mactex/mactex-download.html

  3. Double click on the downloaded file to install

  4. Several pages of information will be displayed

  5. One of the last is shown below. Click on the Customise button

    MacTex

  6. Deselect the packages Ghostscript 9.50, Ghostscript Dynamic Library and GUI Applications, then click on Install

    MacTex

Qt

Qt

Qt is a cross-platform application development framework for desktop, embedded and mobile using C++ or Python. Supported Platforms include Linux, OS X, Windows, VxWorks, QNX, Android, iOS, BlackBerry, Sailfish OS and others.

Qt

Install Qt

  1. Download and run the Qt online Installer
  2. Click Next on the Welcome to the Qt Online installer window
  3. Click Skip on the Qt Account window
  4. Accept the Qt Open Source Usage Obligations, and click Continue
  5. Click Continue no the Setup - Qt window
  6. The installer will complain that Xcode is not installed, just click OK
  7. On the Qt Creator User Experience Development window, make your choice and click Continue
  8. Click Continue on the Installation Folder window
  9. Select the latest Qt version prebuilt components:
    • [x] Qt 5.15.0 / macOS
    • [x] Developer and Designer Tools / Qt Installer Framework 3.2
  10. Then click Next and Install

Add Qt Creator into Applications

Paste that in the terminal prompt:

# Symbolic link
ln -s "${HOME}/Qt/Qt Creator.app" "/Applications"

FFmpeg

FFmpeg

FFmpeg is a complete, cross-platform solution to record, convert and stream audio and video.

Install FFmpeg

Run that in the terminal:

# Leave Python virtual environment
deactivate

# Install FFmpeg with all modules
brew install ffmpeg

OpenCV

FFmpeg

OpenCV (Open Source Computer Vision Library) is an open source computer vision and machine learning software library.

UPGRADE OpenCV

  1. Uninstall old version:

    CV_DIRS=(
        "/usr/local/share"
        "/usr/local/include"
        "/usr/local/lib"
        "/usr/local/bin"
    )
    
    sudo -v
    
    for cv_dir in ${CV_DIRS[@]}; do
        sudo find ${cv_dir} -name "*opencv*" -exec rm -rf {} \;
    done
    
  2. Remove installation directories:

    rm -rf "${HOME}/opencv"
    rm -rf "${HOME}/opencv_contrib"
    
  3. Install OpenCV following the instructions below!

Install OpenCV with Python and Qt support

⚠️ To keep compatibility, use Python 3.7.6.

  1. Choose the version. Paste that in the terminal prompt:

    # export OPENCV_VERSION="4.X.X"
    # export OPENCV_VERSION="3.4.X"
    export OPENCV_VERSION="4.5.1"
    
  2. Easy install using mac-dev-setup:

    bash <(curl -fsSL raw.githubusercontent.com/mgomesborges/mac-dev-setup/master/install) opencv
    
  3. Or check out the OpenCV set-up guide with Qt support.

Contributing

All contributions are welcome! There are many ways in which you can participate in the project, for example:

If you are interested in fixing issues and contributing directly to the code base, please read our Contribution Guide.

Feedback

Author

License

The source code is licensed under the MIT license.

The content of this project itself is licensed under the Creative Commons Attribution 4.0 International.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].