Configure Windows Laptop for Development

·

2 min read

Create RamDisk for Cache

  1. Install ImDisk Toolkit.
  2. Set the size of RamDisk to 8GB, allocate memory statically, mount it on R:\, and set TEMP variables to R:\Temp.
  3. Open command line with admin privilege. Paradoxically, you should now close Edge.
  4. Delete the exisiting cache directory.
    rmdir /s /q "%USERPROFILE%\AppData\Local\Microsoft\Edge\User Data\Default\Cache"
    
  5. Create a symbolic link to RamDisk.
    mklink /d "%USERPROFILE%\AppData\Local\Microsoft\Edge\User Data\Default\Cache" R:\Temp
    
  6. Set the default download path to R:\ in Edge.

Install Chocolatey and essential apps

Now run PowerShell with admin privilege and run the code for installation.

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'))

Still in PowerShell, install essential apps.

choco install -y peazip filezilla git nodejs-lts python3 notepadplusplus vscode yarn freefilesync brave transgui hwmonitor treesizefree everything pdfxchangeeditor

Development Environment

Install Vue CLI and Quasar CLI.

npm install -g @vue/cli
yarn global add @quasar/cli

Install PKG.

npm install -g pkg

Enable Hyper-V.

Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-V -All
DISM /Online /Enable-Feature /All /FeatureName:Microsoft-Hyper-V

Back up the system

  1. Disable System Restore and Hibernation in PowerShell.
    Disable-ComputerRestore -Drive "C:\"
    powercfg /h off
    
  2. Set virtual memory to zero.
  3. Download and install AOMEI Backupper, and back up the system.

After that ...

I set up GNOME desktop for Ubuntu. I installed on demand some other SDKs, runtimes and the like.