Skip to content
Go back

setup windows environment

Scoop Setup on Windows

what is scoop

Scoop is a command-line installer for Windows.
Why use Scoop instead of wget, Chocolatey, or winget? See the comparison here:
👉 Scoop vs Chocolatey vs Winget

⚠️ Always open PowerShell in Administrator mode before running these commands.


If you are behind a firewall or in China, enabling a proxy will help downloads succeed.

Custom Installation Path

By default, Scoop installs to: C:\Users<user>\scoopIf you want to change the path:

$env:SCOOP='D:\scoop'
[environment]::setEnvironmentVariable('SCOOP', $env:SCOOP, 'User')

Install Scoop

iwr -useb get.scoop.sh | iex

Check if it works:

scoop --help

Scoop Proxy Config

scoop config proxy xxx.xxx.xxx.xxx:xxxx

Install Essential Software

scoop install git 7zip
scoop install aria2

Add Buckets (software repositories)

scoop bucket add extras
scoop bucket add dorado https://github.com/h404bi/dorado
scoop bucket add nonportable

## Install Applications
scoop install mactype powertoys windows-terminal quicklook snipaste TrafficMonitor `
              wechat googlechrome parsec-np potplayer motrix `
              vscode python ollama bruno

Clear Cache

scoop cache rm *

Debugging Blue Screens (BSOD)

References:

Check logs:
Get-Eventlog -LogName System -Source "User32" | group EventID
Get-EventLog System 41 -Source Microsoft-Windows-Kernel-Power -Newest 5 | % {
    '{0} BugCheckCode: {1:X}' -f $_.TimeGenerated,$_.ReplacementStrings[0]
}
Get-Eventlog -LogName System -Source "User32" -Newest 1 | Where-Object { $_.EventID -eq 1074} | fl *

WSL (Windows Subsystem for Linux)

wsl -l -v
wsl --set-default-version 2
wsl --install
wsl --update

Windows Terminal & SSH Config

~/.ssh/config example:

cat ~/.ssh/config
Host Infra-xxx
  HostName xxx
  User root
#   ProxyCommand cloudflared access ssh --hostname %h
  PreferredAuthentications publickey
  IdentityFile ~/.ssh/id_ed25519

Host Prod-xxx
  HostName xxx
  User root
  PreferredAuthentications publickey
  IdentityFile ~/.ssh/id_ed25519

Enable SSH Host Autocompletion

_ssh_hosts() {
    local cur=${COMP_WORDS[COMP_CWORD]}
    local hosts=$(grep -E '^Host ' ~/.ssh/config | awk '{print $2}')
    COMPREPLY=( $(compgen -W "$hosts" -- "$cur") )
}

## Register the completion function
complete -F _ssh_hosts ssh

Reload your shell:

source ~/.bashrc

power

powercfg /list

powercfg /setactive 8c5e7fda-e8bf-4a96-9a85-a6e23a8c635c

why not use winget


Share this post on:

Previous Post
Garmin Forerunner 255 After 5 Months
Next Post
amd mini pc 7840H all in one