104 lines
3.2 KiB
Org Mode
104 lines
3.2 KiB
Org Mode
#+TITLE: Windows 10 Setup
|
|
#+AUTHOR: James Blair
|
|
#+EMAIL: mail@jamesblair.net
|
|
#+DATE: 1st September 2019
|
|
|
|
|
|
* 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.
|
|
|
|
#+NAME: Enable the wsl feature
|
|
#+BEGIN_SRC tmate
|
|
powershell.exe Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux
|
|
#+END_SRC
|
|
|
|
|
|
After enabling the wsl feature we need to download the debian installer and
|
|
open it.
|
|
|
|
#+NAME: Download the debian installer
|
|
#+BEGIN_SRC tmate
|
|
cd "C:\Users\jmhbnz\Downloads"
|
|
powershell.exe curl.exe -L -o debian.appx https://aka.ms/wsl-debian-gnulinux
|
|
powershell.exe Add-AppxPackage .\debian.appx
|
|
#+END_SRC
|
|
|
|
|
|
After the installer runs we need to manually enter a username and password for
|
|
the unix account that wsl will use.
|
|
|
|
|
|
* Install an x server for wsl
|
|
|
|
One of the ways we extend standard wsl functionality is installing an x server
|
|
on windows to allow graphical applications to be run.
|
|
|
|
This has the added benefit of allowing command line clipboard tools like [[https://github.com/astrand/xclip][xclip]] to
|
|
be used within wsl.
|
|
|
|
The x server I've found to be rock solid for this purpose is [[https://sourceforge.net/projects/vcxsrv/][VcXsrv]]. Which is also
|
|
open source.
|
|
|
|
#+NAME: Download and install VcXsrv
|
|
#+BEGIN_SRC tmate
|
|
cd /mnt/c/Users/jmhbnz/Downloads/
|
|
wget https://sourceforge.net/projects/vcxsrv/files/latest/download
|
|
mv download installer.exe
|
|
cmd.exe /c installer.exe
|
|
#+END_SRC
|
|
|
|
|
|
After following through the installer we want to ensure VcXsrv launches at startup
|
|
with our desired configuration.
|
|
|
|
To achieve this we can add an xlaunch configuration which is just xml with a fancy
|
|
extension to our machines startup folder.
|
|
|
|
#+NAME: Apply our VcXsrv configuration
|
|
#+BEGIN_SRC tmate
|
|
cd /mnt/c/ProgramData/Microsoft/Windows/Start\ Menu/Programs/Startup
|
|
cat > VcXsrv.xlaunch << EOF
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
<XLaunch WindowMode="MultiWindow" ClientMode="NoClient" LocalClient="False" Display="-1" LocalProgram="xcalc" RemoteProgram="xterm" RemotePassword="" PrivateKey="" RemoteHost="" RemoteUser="" XDMCPHost="" XDMCPBroadcast="False" XDMCPIndirect="False" Clipboard="True" ClipboardPrimary="True" ExtraParams="" Wgl="True" DisableAC="False" XDMCPTerminate="False"/>
|
|
EOF
|
|
cmd.exe /c VcXsrv.xlaunch
|
|
#+END_SRC
|
|
|
|
|
|
* Configure windows ten
|
|
|
|
Enable all tray icons to be visible and restart explorer
|
|
|
|
#+NAME: Configure tray icons
|
|
#+BEGIN_SRC tmate
|
|
powershell.exe Set-ItemProperty HKLM:\SOFTWARE\Micorosoft\Windows\CurrentVersion\Explorer EnableAutoTray 0
|
|
powershell.exe ps explorer | kill
|
|
#+END_SRC
|
|
|
|
Additionally I normally take the following actions:
|
|
|
|
** Update taskbar layout
|
|
|
|
- Hide the search box.
|
|
- Hide the task view button.
|
|
- Unpin all but explorer.
|
|
|
|
|
|
** Update start menu layout
|
|
|
|
- Unpin all applications from start.
|
|
|
|
|
|
** Lock screen configuration
|
|
|
|
- Untick show tips
|
|
- Set background to be picture and use in folder
|
|
- Remove status detailed or otherwise for apps on lock screen
|
|
|
|
|
|
** Fix inactive window title colors
|
|
|
|
https://winaero.com/blog/change-color-of-inactive-title-bars-in-windows-10/
|