Skip to content

Instantly share code, notes, and snippets.

@kthy
Last active April 18, 2021 22:00
Show Gist options
  • Select an option

  • Save kthy/23a5f412f4caba2223e149689e6f5f4a to your computer and use it in GitHub Desktop.

Select an option

Save kthy/23a5f412f4caba2223e149689e6f5f4a to your computer and use it in GitHub Desktop.
Enkidu Setup Log

Enkidu (Dell Latitude 9510) Setup Log

Installing Windows

  • "Let's start with region." → Ireland
  • "Is this the right keyboard?" → United States-International
  • "Set up for personal use."
  • Offline account → Limited experience → "Kristian" → "********"
  • Enter nonsense for the security questions
  • Skip Windows Hello
  • Don't use online speech recognition
  • No location, no Find My Device
  • Send only required diagnostic data to Microsoft
  • No, no and no
  • Support and Protection → Next → ⍻ My info is correct → Next

Wait for the setup to finish.

  • → "update" → Check for new updates and install
  • Reboot

BIOS

  • Boot → F2
    • System Configuration →
      • Keyboard Backlight Timeout on AC → Never
      • Keyboard Backlight Timeout on Battery → 5 minutes
    • POST Behavior →
      • Fn Lock Options → Lock Mode Disable/Standard
  • Apply → ⍻ Save as Custom User settings → OK → Exit

Windows Settings

  • About →
    • Rename this PC → ENKIDU
    • Advanced system settings → Environment Variables… → System variables → Path → Edit… → New → C:\bin → OK → OK
  • Taskbar → Taskbar location on screen → Right
  • Taskbar → Show taskbar on all displays → Off
  • System → Focus Assist:
    • When I'm duplicating my display → Off
    • When I'm playing a game → Off
    • When I'm using an app in full screen mode → Off
  • System → Power & Sleep →
    • On battery power, PC goes to sleep after → 10 minutes
    • When plugged in, PC goes to sleep after → Never
  • Language → English (Ireland) → Options →
    • Add a keyboard → United States-International QWERTY
    • Irish QWERTY → Remove
  • Language → English (US) → → Remove
  • Typing:
    • Autocorrect misspelled words → Off
    • Highlight misspelled words → Off
    • Show text suggestions … → Off
    • Add a space after … → Off
    • Add a period after … → Off
    • Typing insights → Off
    • Advanced keyboard settings →
      • Language bar options → Language bar → Hidden
      • Input language hot keys → Between input languages → Change Key Sequence → Not Assigned / Not Assigned

Other Windows stuff

  • x → Windows PowerShell (Admin) →
New-Item -Path C: -Name bin -ItemType Directory
New-Item -Path C: -Name src -ItemType Directory
$hexified = "00,00,00,00,00,00,00,00,02,00,00,00,1d,00,3a,00,00,00,00,00".Split(',') | % { "0x$_"};
$kbLayout = 'HKLM:\System\CurrentControlSet\Control\Keyboard Layout';
New-ItemProperty -Path $kbLayout -Name "Scancode Map" -PropertyType Binary -Value ([byte[]]$hexified);
$bingSearch = 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Search';
New-ItemProperty -Path $bingSearch -Name "BingSearchEnabled" -PropertyType DWord -Value 0

Reboot.

Explorer

  • e → File → Change folder and search options → View → Advanced settings:
    • ✓ Display the full path in the title bar
    • ✓ Show hidden files, folders and drives
    • ⍻ Hide empty drives
    • ⍻ Hide extensions for known file types

7-Zip

Fira Code NF

  • https://www.nerdfonts.com/font-downloads → Fira Code Nerd Font → Download → extract to %TEMP%
  • Install the following four fonts for all users:
    • Fira Code Bold Nerd Font Complete Windows Compatible
    • Fira Code Light Nerd Font Complete Windows Compatible
    • Fira Code Medium Nerd Font Complete Windows Compatible
    • Fira Code Regular Nerd Font Complete Windows Compatible

Firefox

Steam

Google Drive

KeePass

Portable version in Google Drive, run at startup:

  • C:\Users\Kristian\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup → New → Shortcut → "G:\My Drive\KeepAss\bin\KeePass.exe"

Microsoft Teams

  • ⚠️ Using Edge: https://www.microsoft.com/en-ww/microsoft-teams/download-app → Download for desktop
  • Install → Sign in to this app only
  • Settings → General →
    • Theme → Dark
    • ⍻ Auto-start application
    • ✓ Open application in background
    • App language → English (Ireland)
  • Settings → Privacy → ⍻ Surveys
  • Settings → Notifications → Missed activity emails → Off

Sysinternals

Windows Terminal & PowerShell Core

Set-PSRepository -Name PSGallery -InstallationPolicy Trusted
Install-Module -Name InstallModuleFromGitHub
Install-Module -Name posh-git -Scope CurrentUser
Install-Module -Name oh-my-posh -Scope CurrentUser -AllowPrerelease

WSL2 + Ubuntu

  • In Powershell:
    • dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart
    • dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart
  • Reboot.
  • https://wslstorestorage.blob.core.windows.net/wslblob/wsl_update_x64.msi → install
  • In Powershell: wsl --set-default-version 2
  • Install Ubuntu or whatever from the Microsoft store

⚠️Dig⚠️

  • Find the latest stable version of bind, e.g. https://downloads.isc.org/isc/bind9/9.16.13/BIND9.16.13.x64.zip
  • Extract dig.exe to C:\bin
  • Install PoshDig in PowerShell:
    • mkdir 'C:\Program Files\PowerShell\7\Modules\PoshDig'
    • curl https://codeload.github.com/IxianPixel/PoshDig/zip/master -o PoshDig.zip
    • Extract the zip archive to the PoshDig module directory
    • notepad $profile and add the following line: Import-Module PoshDig -ArgumentList 'C:\tools\dig.exe'

VS Code

  • https://code.visualstudio.com/#alt-downloads → System Installer → 64 bit
    • ✓ Add "Open with Code" action to Windows Explorer file context menu
    • ✓ Add "Open with Code" action to Windows Explorer directory context menu
    • ✓ Register Code as an editor for supported file types
  • Start VS Code →
    • Right-click status bar → ⍻ Tweet Feedback
    • Install the WSL plugin if suggested
    • Ctrln Save the following as C:\Users\kth\AppData\Roaming\Code\User\settings.json:
{
  "diffEditor.ignoreTrimWhitespace": false,
  "editor.fontFamily": "'FiraCode NF', Consolas, 'Courier New', monospace",
  "editor.fontLigatures": "'ss01', 'zero', 'onum'",
  "editor.renderWhitespace": "boundary",
  "git.path": "C:/Program Files/Git/bin/git.exe",
  "telemetry.enableTelemetry": false,
  "terminal.integrated.fontFamily": "'FiraCode NF'",
  "terminal.integrated.shell.windows": "C:/Program Files/PowerShell/7/pwsh.exe",
  "workbench.startupEditor": "newUntitledFile"
}
  • Extensions:
    • Beautify JSON / randrade23.beautify-json
    • Bracket Pair Colorizer 2 / CoenraadS.bracket-pair-colorizer-2
    • C# / ms-dotnettools.csharp
    • EditorConfig for VS Code / editorconfig.editorconfig
    • Error Lens / usernamehw.errorlens
    • Flutter / Dart-Code.flutter
      • Would you like to use recommended VS Code settings for Dart & Flutter? → Yes
    • GistPad / vsls-contrib.gistfs
    • Git Graph / mhutchie.git-graph
    • GitHub Actions / cschleiden.vscode-github-actions
    • GitLens / eamodio.gitlens
      • Git Code Lens → Add code lens to the following scopes ⍻ File scope
      • Dates & Times →
        • Date format → MMMM Do, YYYY hh:mm
        • Time format → hh:mm
    • Hide Gitignored / npxms.hide-gitignored
    • Markdown Preview Github Style / bierner.markdown-preview-github-styles
    • markdownlint / davidanson.vscode-markdownlint
    • Rainbow CSV / mechatroner.rainbow-csv
    • Remote Development / ms-vscode-remote.vscode-remote-extensionpack
    • REST Client / humao.rest-client
    • Version Lens / pflannery.vscode-versionlens
    • vscode-solution-explorer / fernandoescolar.vscode-solution-explorer
    • XML Tools / dotjoshjohnson.xml
    • Honourable mentions (extensions I've used before but haven't needed here … yet):
      • ckolkman.vscode-postgres
      • joaompinto.vscode-graphviz
      • mrorz.language-gettext
      • ms-azure-devops.azure-pipelines
      • ms-azuretools.vscode-docker
      • ms-vscode.cpptools

Git

git config --global alias.uncommit "reset --soft HEAD~1"
git config --global core.autocrlf false
git config --global init.defaultBranch main
git config --global pull.rebase false
git config --global user.name "Kristian Thy"
git config --global user.email thy@42.dk

Chrome

  • https://www.google.com/chrome → Download → Run
  • chrome://settings:
    • Privacy and security → Cookies and other site data → Send a "Do Not Track Request" …
    • Search engine → Search engine used in the address bar → DuckDuckGo
    • On startup → Continue where you left off
    • Advanced → Languages →
      • Offer to translate … → Off
      • Spell check → Off
  • https://chrome.google.com/webstore/ → uBlock Origin → Add to Chrome
    • Settings → Filter lists → Regions, languages → ✓ DEU, ✓ NOR, DNK, ISL → Update now

Android Studio

  • https://developer.android.com/studio → Download
  • Install → ✓ Android Virtual Device
  • Wizard → Custom →
    • ✓ Darcula
    • ✓ Android Virtual Device
    • HAXM → 4,096MB RAM
  • Finish → Configure → Settings →
    • Editor →
      • Code Editing → ✓ Show quick documentation on mouse move
      • Font →
        • Fira Code Medium → 14
        • ✓ Enable font ligatures
    • Version Control →
      • Commit Dialog → ✓ Force non-empty commit comments
      • Github → Add account (auth with token)
  • Add JAVA_HOME = C:\Program Files\Android\Android Studio\jre to the current user's environment settings
  • echo @C:\Users\Kristian\AppData\Local\Android\Sdk\emulator\emulator.exe %* > C:\bin\emulator.cmd

Flutter

Discord

Signal

  • https://signal.org/download/
  • (Link with Android device)
  • File → Preferences… →
    • Theme → Dark
    • Theme → ✓ Hide menu bar
    • Notifications → Name only
    • General → ⍻ Enable spell check …
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment