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.0to the end of WSL’s~/.bashrc:echo "export DISPLAY=localhost:0.0" >> ~/.bashrcEnable the Vim clipboard:
sudo apt install vim-gtkCheck that it got installed properly:
vim --version | grep clipboard > +clipboardPOTENTIALLY IMPORTANT STEP. Run as Admim in Powershell:
Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux
CHMOD the GPG keys
The
~/.gnupgfolder should be700:chmod 700 ~/.gnupgAll the files inside should be
600;cd ~/.gnupg chmod 600 *Check that you didn’t just change any folders within
~/.gnuputo600. 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 updatesudo apt install pass -y
Install pass-update
git clone https://github.com/roddhjav/pass-update/cd pass-updatesudo apt-get install build-essentialsudo make install # For OSX: make install PREFIX=/usr/local
Install pass-otp
git clone https://github.com/tadfisher/pass-otpcd pass-otpsudo make install
Powershell 7
- Go to the Releases page and download the latest Powershell 7 release. You’re looking for an
-x64.msifile. - Install the
.msi.