Skip to main content

Environment Setup

About 3 minMicrosoftWindowsEnvironment Setupbatpwshwin-runoh-my-pwshchocolateywindows-terminalcmdpowershellps1scooppacmanjdkjdk7temurintemurin11dockerfastfetch

Environment Setup ๊ด€๋ จ


A. ๊ธฐ๋ณธ์„ค์ •

A1. regedit ์„ค์ •

์œˆ๋„์šฐ ์ž‘์—…ํ‘œ์‹œ์ค„ ๊ฒ€์ƒ‰์ฐฝ์ด๋‚˜ +R(์‹คํ–‰) ์—ด์–ด์„œ cmd๋ฅผ ctrl+shift+enter ๋ˆŒ๋Ÿฌ ์‹คํ–‰ํ•ฉ๋‹ˆ๋‹ค.

Prerequesite(s)

First, ensure that you open prompt in ADMINISTRATIVE mode

:: '์ด ์•ฑ ๋•Œ๋ฌธ์— ์ข…๋ฃŒํ•  ์ˆ˜ ์—†์Šต๋‹ˆ๋‹ค' ๋น„ํ™œ์„ฑํ™”
REG add "HKEY_CURRENT_USER\Control Panel\Desktop" /v "AutoEndTasks" /d "1" /f 
:: IE์—์„œ ๊ฐœ๋ฐœ์ž ๋„๊ตฌ ๋ฉ”๋‰ด๊ฐ€ ํ™œ์„ฑํ™”
REG add "HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\IEDevTools" /v "Disabled" /d "0" /f 
:: SmartScreen ๋น„ํ™œ์„ฑํ™”
REG add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\System" /v "EnableSmartScreen" /d "0"
:: Telemetry ๋น„ํ™œ์„ฑํ™”
REG add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\DataCollection" /v "AllowTelemetry" /d "0"
:: cmd์— ์‚ฌ์šฉํ•  ํฐํŠธ๋ฅผ ์ถ”๊ฐ€
REG add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Console\TrueTypeFont" /v "000" /d "JetBrainsMono Nerd Font Mono" /f
:: ๋„˜๋ฒ„๋ฝ ์ผœ๊ธฐ
:: REG add "HKEY_USERS\.DEFAULT\Control Panel\Keyboard" /v "InitialKeyboardIndicators" /d "2147483650" /f
:: 
REG add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\WebClient\Parameters" /v "BasicAuthLevel" /d "2" /f
::
REG add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\WebClient\Parameters" /v "FileSizeLimitInBytes" /d "ffffffff" /f

A2. gedit.msc ์„ค์ •

์œˆ๋„์šฐ ์ž‘์—…ํ‘œ์‹œ์ค„ ๊ฒ€์ƒ‰์ฐฝ์ด๋‚˜ ์‹คํ–‰ (+R) ์—ด์–ด์„œ gpedit.msc๋ฅผ ์‹คํ–‰ํ•ฉ๋‹ˆ๋‹ค.

  • .[์ปดํ“จํ„ฐ ๊ตฌ์„ฑ] -> [๊ด€๋ฆฌ ํ…œํ”Œ๋ฆฟ] -> [์œˆ๋„ ๊ตฌ์„ฑ์š”์†Œ] -> [๋ฐ์ดํ„ฐ ์ˆ˜์ง‘ ๋ฐ preview ๋นŒ๋“œ] -> [์›๊ฒฉ ๋ถ„์„ ํ—ˆ์šฉ ํด๋ฆญ] -> [์‚ฌ์šฉ ์•ˆํ•จ] ์„ค์ •

A3. services.msc ์„ค์ •

์œˆ๋„์šฐ ์ž‘์—…ํ‘œ์‹œ์ค„ ๊ฒ€์ƒ‰์ฐฝ์ด๋‚˜ ์‹คํ–‰ (+R) ์—ด์–ด์„œ services.msc๋ฅผ ctrl+shift+enter ๋ˆŒ๋Ÿฌ ์‹คํ–‰ํ•ฉ๋‹ˆ๋‹ค.

  • .[Connected User Experiences and Telemetry] ์‹œ์ž‘์œ ํ˜• ์‚ฌ์šฉ์•ˆํ•จ

B. Winget

์œˆ๋„์šฐ ์ž‘์—…ํ‘œ์‹œ์ค„ ๊ฒ€์ƒ‰์ฐฝ์ด๋‚˜ ์‹คํ–‰ (+R) ์—ด์–ด์„œ powershell๋ฅผ ctrl+shift+enter ๋ˆŒ๋Ÿฌ ์‹คํ–‰ํ•ฉ๋‹ˆ๋‹ค.

Prerequesite(s)

First, ensure that you open prompt in ADMINISTRATIVE mode

B1. Configure

Copy and Paste the following to the Powershell Prompt

powershell
winget install -e --id TableClothProject.TableCloth;
get-appxpackage *feedback* | remove-appxpackage;

C. Chocolatey

์œˆ๋„์šฐ ์ž‘์—…ํ‘œ์‹œ์ค„ ๊ฒ€์ƒ‰์ฐฝ์ด๋‚˜ ์‹คํ–‰ (+R) ์—ด์–ด์„œ powershell๋ฅผ ctrl+shift+enter ๋ˆŒ๋Ÿฌ ์‹คํ–‰ํ•ฉ๋‹ˆ๋‹ค.

Prerequesite(s)

First, ensure that you open prompt in ADMINISTRATIVE mode

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

C1. Configure

Copy and Paste the following to the Powershell Prompt

powershell
choco install -y everything everythingtoolbar exiftool notion openssl powertoys qdir `
    sharex speccy sublimemerge sublimetext4 vlc vscode flameshot `
    dbeaver googlechrome fiddler windirstat 7zip `
    procexp scrcpy fnm rancher-desktop temurin11 temurin11 `
    intellijidea revo-uninstaller glogg autoruns microsoft-windows-terminal `
    twinkle-tray wingetui wiztree rust

D. Scoop.sh

์œˆ๋„์šฐ ์ž‘์—…ํ‘œ์‹œ์ค„ ๊ฒ€์ƒ‰์ฐฝ์ด๋‚˜ ์‹คํ–‰ (+R) ์—ด์–ด์„œ powershell๋ฅผ ctrl+shift+enter ๋ˆŒ๋Ÿฌ ์‹คํ–‰ํ•ฉ๋‹ˆ๋‹ค.

Prerequesite(s)

First, ensure that you open prompt in ADMINISTRATIVE mode

Set-ExecutionPolicy RemoteSigned -Scope CurrentUser
irm get.scoop.sh | iex

D1. Configure

Copy and Paste the following to the Powershell Prompt

powershell
scoop install 7zip cheat hyperfine fastfetch nu`
  oh-my-posh terminal-icons tokei watchman git

E. Alias ์ง€์ • ๊ด€๋ จ

E1. Prerequesite(s)

  • alias.cmd ํŒŒ์ผ์„ ๋งŒ๋“ค์–ด ๊ด€๋ จ Alias ์ง€์ •

E2. Guide

  • + r ๋ˆ„๋ฅธ ํ›„ regedit ์‹คํ–‰
  • HKEY_CURRENT_USER\Software\Microsoft\Command Processor ๊ฒฝ๋กœ๋กœ ์ด๋™
  • ์ฐฝ์— ๋งˆ์šฐ์Šค ์šฐํด๋ฆญ ํ›„, ๋ฉ”๋‰ด์—์„œ ์ƒˆ๋กœ๋งŒ๋“ค๊ธฐ > ๋ฌธ์ž์—ด ๊ฐ’ ์„ ํƒ ํ›„ ์•„๋ž˜ ๊ฐ’ ์ž…๋ ฅ
    • Key: AutoRun
    • Value: %USERPROFILE%\alias.cmd

E2-i. schema.json

์ €์žฅ์œ„์น˜: ์™ ๋งŒํ•˜๋ฉด %USERPROFILE%\.oh-my-posh ํด๋”์— ์œ„์น˜ํ•ด ๋‘๋„๋ก
{
  "$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
  "blocks": [
    {
      "alignment": "left",
      "segments": [
        {
          "type": "session",
          "style": "diamond",
          "background": "#6272a4",
          "foreground": "#ffffff",
          "leading_diamond": "\ue0b6",    
          "template": "{{ .UserName }} "
        }, {
          "type": "path",
          "style": "powerline",
          "background": "#bd93f9",
          "foreground": "#ffffff",
          "powerline_symbol": "\ue0b0",
          "properties": {
            "style": "folder"
          },
          "template": " {{ .Path }} "
        }, {
          "type": "git",
          "style": "powerline",
          "powerline_symbol": "\ue0b0",
          "foreground": "#ffffff",
          "background": "#ffb86c",
          "properties": {
            "branch_icon": "",
            "fetch_stash_count": true,
            "fetch_status": false,
            "fetch_upstream_icon": true
          },
          "template": " \u279c ({{ .UpstreamIcon }}{{ .HEAD }}{{ if gt .StashCount 0 }} \uf692 {{ .StashCount }}{{ end }}) "
        }, {
          "type": "node",
          "style": "powerline",
          "background": "#8be9fd",
          "foreground": "#ffffff",
          "powerline_symbol": "\ue0b0",
          "template": " \ue718 {{ if .PackageManagerIcon }}{{ .PackageManagerIcon }} {{ end }}{{ .Full }} "
        }, {
          "type": "time",
          "style": "diamond",
          "background": "#ff79c6",
          "foreground": "#ffffff",
          "properties": {
            "time_format": "15:04"
          },
          "template": " \u2665 {{ .CurrentDate | date .Format }} ",
          "trailing_diamond": "\ue0b0"
        }
      ],
      "type": "prompt"
    }
  ],
  "final_space": true,
  "version": 2
}

E2-ii. Microsoft.PowerShell_profile.ps1

$profile ํŒŒ์ผ ๋‚ด์šฉ

# Commands
Set-Alias sublime sublime_text
function alias()
{
    notepad $profile
}

# ADB ๋ฐ ์•ˆ๋“œ๋กœ์ด๋“œ ๊ด€๋ จ
function scrcpyDefault()
{
    scrcpy -m 1024 --always-on-top
}
function scrcpyRec() 
{
    scrcpy -m 1024 --always-on-top --show-touches
}
function killTestbed() 
{
    adb shell am force-stop kr.go.mobile.testbed.iff
}

# ๊ฐœ๋ฐœํ™˜๊ฒฝ ๊ตฌ์„ฑ
function openWspHomeAndroidWeb1()
{
    code $env:WspHomeAndroidWeb1
}
function openWspHomeAndroidWeb2() 
{
    code $env:WspHomeAndroidWeb2
}

$env:PATH += ";$env:UserProfile\scoop\apps\oh-my-posh\current\bin"
$env:PATH += ";$env:UserProfile\scoop\shims"
oh-my-posh init pwsh --config "$env:UserProfile\.oh-my-posh\schema.json" | Invoke-Expression
Import-Module Terminal-Icons
fastfetch

๊ธฐํƒ€ ํˆด

์œˆ๋„์šฐํด๋ฆฌ๋„ˆ

๊ธฐ๋ณธ ํ”„๋กœ์„ธ์„œ๋งŒ ๋‚จ๊ฒจ๋‘๊ณ  ๊นจ๋—์ด ์ข…๋ฃŒํ•ด๋“œ๋ฆฝ๋‹ˆ๋‹ค.
๋ฉ”๋ชจ๋ฆฌํด๋ฆฌ๋„ˆ
๋ฉ”๋ชจ๋ฆฌ ์ •๋ฆฌ๋ฅผ ํด๋ฆญ ํ•œ๋ฒˆ์— ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.
์‹œํฌ๋ฆฟDNS
DNS ์•”ํ˜ธํ™” ๋ฐ SNI ํŒŒํŽธํ™”๋ฅผ ํ•ฉ๋‹ˆ๋‹ค.
๋ถ€์ŠคํŠธํ•‘
์˜จ๋ผ์ธ ๊ฒŒ์ž„์˜ ๋ฐ˜์‘ ์†๋„๋ฅผ ํ–ฅ์ƒ์‹œํ‚ต๋‹ˆ๋‹ค.
์ด๋ฏธ์ง€์ปจ๋ฒ„ํ„ฐ
์ด๋ฏธ์ง€ ํฌ๋งท ๋ณ€๊ฒฝ์„ ํด๋ฆญ ํ•œ๋ฒˆ์— ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.
์˜คํ† ํด๋ฆญ
๋งˆ์šฐ์Šค๋ฅผ ์ž๋™์œผ๋กœ ํด๋ฆญํ•ฉ๋‹ˆ๋‹ค.
Cyber Scarecrow
An app for scaring away malware

์ด์ฐฌํฌ (MarkiiimarK)
Never Stop Learning.