Skip to main content

Setting up a new local site environment

Setting up a new project in Docker and VS Code.

Using Terminal, go to your Sites directory and create a new directory using the mkdir command.  In this instance I'm going to create a new directory titled ADCE

shortcut command to access the Sites directory

cd ~/Sites

Create the new directory

mkdir ADCE

Go in to the new directory

cd ADCE

Run the devcontainer command

Onboarding

Joining a new company / team there is always a lot of new items to do, install and familiarise yourself.  Below is a working list:

Install node via Homebrew including npm install: could not symlink error

Step 1: Install Homebrew

Homebrew is the missing package manager for macOS.

As per the Homebrew site, paste the following in a macOS Terminal prompt.

$ /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

This acton will install Homebrew on your OSX.  Using the following command you can check the brew version

$ brew -v

 

OSX mail unable to verify account name or password

Creating a new account in Mail on OSX Big Sur (11.2) and complete the required information for:

  • Email
  • Username
  • Password
  • Account type: IMAP
  • Incoming mail server
  • Outgoing mail server

I receive a message "Unable to verify account name or password."

Terminal commands - find

Find by file name

To perform a find command in terminal use

find / -name php.ini -type f

find / -name {filename} {type parameters}

Note there are many parameters in the commands, so I'll cover a couple regular expressions here.  Such as, 

get IP address from terminal OSX

To get your ip address in Terminal on OSX on WIFI

ipconfig getifaddr en0

Whereas if you are using Ethernet

ipconfig getifaddr en1
Subscribe to OSX