Quick way to consistently set up a new PC with my personal dev preferences for Machine Learning.
Tested most recently on a custom built desktop with RTX 3080 GPU and Windows 11
- Unbox and admire your shiny new hardware. Go through default OS setup.
- Install all updates OS (including upgrading to the latest OS version if needed).
- Launch Microsoft Store and install all app updates.
- Enable malware protection, e.g. Windows Defender or other.
- Download and install Microsoft Office (or other productivity suite), instructions will vary. Sign in.
- Download Teams (or other chat service e.g. Teams, Slack), instructions will vary. Sign in.
- Clean up Taskbar. Remove extraneous items and pin Teams, Slack, Outlook, etc.
- Set up printers / peripherals as needed.
- Launch Windows Terminal (from Start / Search) and pin it to the taskbar.
See comments in setup.ps1
for more information. This is an automated script that installs:
- WSL Ubuntu
- Winmerge
- Git
- Git LFS
- ScreenToGif
- Visual Studio Code
- Docker Desktop
- Azure Storage Explorer
- Azure CLI
- AWS CLI
To begin setup, launch Windows Terminal as an admin and paste in the following into the default (Powershell) terminal:
Set-ExecutionPolicy Bypass -Scope Process -Force; iex ((New-Object System.Net.WebClient).DownloadString('https://raw.githubusercontent.com/tjaffri/ml-dev-pc-setup/master/setup.ps1'))
After all tools are installed, close the terminal window above and open a new default (Powershell) Terminal. Then perform some basic config as follows:
git config --global user.name "<First Last>"
git config --global user.email <alias>@yourcompany.com
git lfs install --skip-smudge
aws configure
In Terminal, open a new window with the "Azure Cloud Shell" profile, then enter the following command and follow instructions:
az login
Take a moment and pin some more tools to your taskbar. I prefer to pin Winmerge
, ScreenToGif
and Visual Studio Code
at this point.
Important Note: At this point, RESTART your machine. We continue below inside WSL Ubuntu.
After the restart above, Ubuntu should launch automatically. If not, you can launch it yourself (Search for it in Start). On first run, you will be asked to specify a username and password for the Ubuntu instance.
Take a moment and make Ubuntu the default in Windows Terminal. See instructions here
- Set up git lfs using the steps here: https://github.com/git-lfs/git-lfs/wiki/Installation#ubuntu. Specifically, run:
curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | sudo bash
sudo apt-get install git-lfs
git lfs install --skip-smudge
- Configure git username:
git config --global user.name "Your Name"
git config --global user.email [email protected]
-
Set up Git Credential Manager
-
Clone your repos, then make sure credentials are persisted:
git clone https://.../foo.git
- Specify username and password (ideally a single use token) to clone
- cd into the cloned repo dir, then run
git config credential.helper store
- Run
git pull
again, then specify the username and password again. This time it will be persisted.