Run Ubuntu
- Install Ubuntu for Windows from the Microsoft Store.
- Install Ubuntu 20.02 from the Microsoft Store.
- Open Ubuntu from the start menu.
- Open Ubuntu 20.02 from the start menu. It will begin installing, and will take a few minutes.
Get VcXsrv
-
Download and install VcXsrv.
-
Create a file called
config.xlaunch
:<?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"/>
``
-
After saving the file, double click it to run the application.
-
Add
export DISPLAY=localhost:0.0
to the end of WSL’s~/.bashrc
:echo "export DISPLAY=localhost:0.0" >> ~/.bashrc
``
-
Enable the Vim clipboard:
sudo apt install vim-gtk
``
-
Check that it got installed properly:
vim --version | grep clipboard > +clipboard
``
-
POTENTIALLY IMPORTANT STEP. Run as Admim in Powershell:
Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux
CHMOD the GPG keys
-
The
~/.gnupg
folder should be700
:chmod 700 ~/.gnupg
-
All the files inside should be
600
;cd ~/.gnupg chmod 600 *
-
Check that you didn’t just change any folders within
~/.gnupu
to600
. If you did, change them back to700
.ls -la > ... > > drwx------ 2 johnny 4096 Jun 6 22:49 private-keys-v1.d > > ... chmod 700 private-keys-v1.d
Install Pass
sudo apt update
sudo apt install pass -y
Install pass-update
git clone https://github.com/roddhjav/pass-update/
cd pass-update
sudo apt-get install build-essential
sudo make install # For OSX: make install PREFIX=/usr/local
Install pass-otp
git clone https://github.com/tadfisher/pass-otp
cd pass-otp
sudo make install
Powershell 7
- Go to the Releases page and download the latest Powershell 7 release. You’re looking for an
-x64.msi
file. - Install the
.msi
.