Code Monkey home page Code Monkey logo

env-setup's Introduction

MTLT Environment Setup

Basic Setup

Windows 11 Latest updates Language EN

Install Chocolatey

Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))

choco feature enable -n allowGlobalConfirmation

Install driver manager

Whatever comes with the laptop

Set up cloud

Log into OneDrive, sync it

Install basic software

Basic tools

choco install firefox googlechrome notepadplusplus npppluginmanager 7zip javaruntime bitwarden vcredist2005 vcredist2008 vcredist2010 vcredist2012 vcredist2013 vcredist140 qbittorrent slack teamviewer windirstat

Multimedia (optional)

choco install reaper obs spotify tidal vlc

Manual setup

Install Office 365 from the website

Finish Windows Updates

Development

WSL

This is needed for Docker Desktop even if not used directly.

wsl --install

Reboot.

Wait for the prompt to come up, and set the username as marcelltoth.

Docker

choco install docker-desktop

Reboot.

Open Docker Desktop, accept terms.

Install NVM & node

Install NVM Windows per instructions on its github

Install Node LTS. This may need to be ran in a non-elevated shell window. NVM handles UAC requests automatically.

nvm install lts
nvm use lts

Let's install Yarn, and log into NPM.

npm i -g yarn
npm login

Windows-native development tools

choco install git.install --params "/NoShellIntegration /NoAutoCrlf"
choco install jetbrainstoolbox dotnet dotnet-sdk azure-functions-core-tools ssms vscode vscode-gitignore vscode-prettier vscode-yaml vscode-chrome-debug vscode-eslint vscode-docker vscode-csharp nodejs postman fiddler python3 python2

Start Jetbrains Toolbox, log in, then install the desired tools.

MSYS2

Main feature

choco install msys2

Terminal

Add this config to the Windows Terminal settings.

            {
                "commandline": "C:/msys64/msys2_shell.cmd -defterm -here -no-start -ucrt64 -use-full-path",
                "font": 
                {
                    "face": "Cascadia Code",
                    "size": 11.0,
                    "weight": "normal"
                },
                "guid": "{17da3cac-b318-431e-8a3e-7fcdefe6d114}",
                "icon": "C:/msys64/ucrt64.ico",
                "name": "MSYS2 / UCRT64"
            },

Install ZSH

pacman -Syu
pacman -S zsh

Append -shell zsh to the command line above, and open a new shell window.

If the install was correct, you should see the ZSH configuration prompt. You can pick (q) because we are going to override.

Install Oh-My-Zsh

cd ~
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
git clone https://github.com/marcelltoth/env-setup
cp ~/env-setup/home/.zfunctions -r ~
cd ~/.zfunctions
ln -s async.zsh async
ln -s pure.zsh prompt_pure_setup
cp ~/env-setup/home/.dircolors ~

Install zsh-syntax-highlighting:

git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting

Apply /home/.zshrc

Reload shell.

Set up SSH keys

ssh-keygen -t ed25519 -b 4096 -C "[email protected]"

Upload public key to GitHub.

Let's now enable the Windows OpenSSH key agent, and add the key.

Start-Service ssh-agent
Set-Service -Name ssh-agent -StartupType 'Automatic'
ssh-add path-to-the-private-key

Set up Git username & email

git config --global user.name "Marcell Toth"
git config --global user.email "[email protected]"

Set email separately in repos if desired.

Set up Git GPG signing - optional

Generate a key for [email protected] with no passphrase.

echo 'export GPG_TTY=$(tty)' >> ~/.profile
export GPG_TTY=$(tty)
gpg --gen-key

Connect it with Git:

gpg --list-secret-keys --keyid-format LONG
git config --global user.signingkey KEYABCDEF
git config --global commit.gpgsign true

Export it and upload it to GitHub:

gpg --armor --export [email protected]

Backup

Install Backblaze per its official docs, and pick the "Inherit backup state" to inherit from the old computer.

env-setup's People

Contributors

marcelltoth avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.