Windows 11 Latest updates Language EN
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
Whatever comes with the laptop
Log into OneDrive, sync it
choco install firefox googlechrome notepadplusplus npppluginmanager 7zip javaruntime bitwarden vcredist2005 vcredist2008 vcredist2010 vcredist2012 vcredist2013 vcredist140 qbittorrent slack teamviewer windirstat
choco install reaper obs spotify tidal vlc
Install Office 365 from the website
Finish Windows Updates
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
.
choco install docker-desktop
Reboot.
Open Docker Desktop, accept terms.
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
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.
choco install msys2
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"
},
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.
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.
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
git config --global user.name "Marcell Toth"
git config --global user.email "[email protected]"
Set email separately in repos if desired.
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]
Install Backblaze per its official docs, and pick the "Inherit backup state" to inherit from the old computer.