From 525216f1f49256baa0a3c90a25a9922a9a48b93e Mon Sep 17 00:00:00 2001 From: James Blair Date: Wed, 11 Mar 2020 18:05:02 +1300 Subject: [PATCH] Improved windows setup process. --- readme.org | 4 ++-- windows-setup.org | 26 +++++++++++++++++++------- 2 files changed, 21 insertions(+), 9 deletions(-) diff --git a/readme.org b/readme.org index 4ac115c..07b85c0 100644 --- a/readme.org +++ b/readme.org @@ -8,9 +8,9 @@ This document captures my standard development environment for future replicatio and aims to make it as easy as possible to setup and use. The environment is based on Windows 10 using [[https://en.wikipedia.org/wiki/Windows_Subsystem_for_Linux][Windows Subsystem for Linux]] for a -command line inter face. +command line interface. -For pair programming I rely on [[https://www.gnu.org/software/emacs/][emacs]], specifically [[https://github.com/syl20bnr/spacemacs][spacemacs]] with [[https://tmate.io/][tmate]]. +For pair programming I rely on [[https://www.gnu.org/software/emacs/][emacs]], specifically [[https://github.com/kubemacs/kubemacs][kubemacs]] with [[https://tmate.io/][tmate]]. This documentation is split into two main sections: - [[windows-setup.org][Windows 10]] diff --git a/windows-setup.org b/windows-setup.org index a380e22..97fe829 100644 --- a/windows-setup.org +++ b/windows-setup.org @@ -1,3 +1,4 @@ +# -*- ii: ii; -*- #+TITLE: Windows 10 Setup #+AUTHOR: James Blair #+EMAIL: mail@jamesblair.net @@ -6,8 +7,7 @@ * Install windows subsystem for linux - To get underway we need to enable [[https://en.wikipedia.org/wiki/Windows_Subsystem_for_Linux][wsl]]. This requires a 64bit installation - of Windows 10. + To get underway we need to enable [[https://en.wikipedia.org/wiki/Windows_Subsystem_for_Linux][wsl]]. This requires a 64bit installation of Windows 10. #+NAME: Enable the wsl feature #+BEGIN_SRC tmate @@ -15,8 +15,7 @@ #+END_SRC - After enabling the wsl feature we need to download the debian installer and - open it. + After enabling the wsl feature we need to download the debian installer and open it. #+NAME: Download the debian installer #+BEGIN_SRC tmate @@ -24,7 +23,8 @@ powershell.exe curl.exe -L -o debian.appx https://aka.ms/wsl-debian-gnulinux powershell.exe Add-AppxPackage .\debian.appx #+END_SRC - + + *Note:* If you encounter an error while adding the package, I have needed to use the ~wsreset~ command in the past to first reset the windows store application. After the installer runs we need to manually enter a username and password for the unix account that wsl will use. @@ -66,7 +66,7 @@ cmd.exe /c VcXsrv.xlaunch #+END_SRC - + * Configure windows ten Enable all tray icons to be visible and restart explorer @@ -81,6 +81,8 @@ ** Update taskbar layout +I normally take the following steps immediately for a new installtion, I have not found an easy way of automating this as yet: + - Hide the search box. - Hide the task view button. - Unpin all but explorer. @@ -88,7 +90,17 @@ ** Update start menu layout - - Unpin all applications from start. +I prefer to have no pinned "tiles" in my start menu. The script below will unpin all applications from start. + +#+begin_src shell + powershell.exe -NoLogo + (New-Object -Com Shell.Application). +NameSpace('shell:::{4234d49b-0245-4df3-b780-3893943456e1}'). +Items() | +%{ $_.Verbs() } | +?{$_.Name -match 'Un.*pin from Start'} | +%{$_.DoIt()} +#+end_src ** Lock screen configuration