Search Icon Icon to open search
Running arch with i3 in wsl using vcxsrv Created April 17, 2022
The goal of this post is to show a minimal configuration to run
i3
i3
i3 (more specifically i3-wm or i3-gaps) is a tiled window managed.\
With a single hotkey, I split the screen in half...
7/29/2022
in
Arch linux
Arch linux
Arch Linux. What can I say!\
I have been familiar with it, and pacman for such a long time, it feels...
7/29/2022
under
WSL
WSL
WSL stands for Window subsystem for linux.
After struggling for years with dual-booting, and running linux on inefficient VM's, I finally...
7/29/2022
using
vcxsrv
VcXsrv
VcXsrv is an X-server for windows. It allows WSL users to run a full fledge GUI system under linux.
Note that...
7/29/2022
.
Installing necessary apps Make sure you
installed Arch linux on WSL
Installing Arch linux on WSL
Install Arch linux under WSL is quite straightforward.
Head over to ArchWsl and download the latest version
Extract the file
Launch a terminal...
7/29/2022
Download and install
VcXsrv
VcXsrv
VcXsrv is an X-server for windows. It allows WSL users to run a full fledge GUI system under linux.
Note that...
7/29/2022
Creating launch scripts Step 1: You are going to need 2 files. The first is called arch.vbs
and contains the following:
1
2
Set shell = CreateObject( "WScript.Shell" )
shell.Run "wsl.exe -u <username> -- sh ~/.config/wsl.sh" , 0
⚠️ Make sure your replace <username>
with your actual user.
Step 2: Next, inside wsl run the following code:
1
2
mkdir ~/.config
touch ~/.config/wsl.sh
This will create a .config
folder in your home, and add a wsl.sh
file to it.
Step 3: Add the following to the wsl.sh
file:
1
2
3
4
5
6
7
#!/bin/bash
export DISPLAY = $( cat /etc/resolv.conf | grep nameserver | awk '{print $2}' ) :0;
export WAYLAND_DISPLAY = $( cat /etc/resolv.conf | grep nameserver | awk '{print $2}' ) :0;
/mnt/c/Program\ Files/VcXsrv/vcxsrv.exe -ac -wgl -dpms -fullscreen&
i3
Let’s break down the file:
The first 2 line are important to tell wsl
how to connect to the X-server. You don’t have to worry about customizing it.
The line that launches vcxsrv
is important:
The -ac
is very important. It disables access control. Without it, nothing will work. The last options are… optional 😆 Try playing around with the -fullscreen
and -multimonitor
options depending on your setup You might also want to try -nodecoration
in case you don’t want to run the -fullscreen
option.
A full breakdown of options is available on the
VcXsrv page
Launch it Now, when you double click the arch.vbs
file in windows, it should run wsl and start i3 for you. If it fails, try running wsl.sh
from a wsl instance running in a standard windows terminal.
Interactive Graph VcXsrv WSL Meditation Awakening The 8-fold path Meditation is not about becoming a monk Losing what is dear 📚 The Mind Illuminated The 3 jewels Buddhism Taking refuge Dharma The Path Insight (Vipassanā) 🧠 Buddhist Philosophy Enlightenmnent Suffering Nirvana Desire The Path Self Purpose of Life Emptiness The 3 Evils Other religions Happiness A solution to the Paradox of Desire in Buddhism 🧠 Buddhist Philosophy Nirvana Samsara Suffering Suffering in Christianity Samsara Karma Anchor Terra Anchor Review Betterment Makara 🐮 Crypto Farm Dubai Passive Income Lending StableCoins Hedged Coin Staking Automated Market Making (AMM) Yield Farming Earning Dividends NFT strategies MetaVerse strategies Arbitrage Investment in Other funds Investing in crypto projects Options strategies Speculative Trading Trade Together Deep Balancer Feel Mining /Just Mining Feel Mining Staking as a Service Glossary Portfolio Tracking Investing in crypto projects SheeShaa Finance Lending StableCoins Anchor Makara Betterment Mitigating Risk Rug Pull Options strategies Covered Calls Strategies Squeeth Deribit StakeDao Opyn Passive Income Staking Robo-advisor /notes/Passive Income/Financial-advisors Robo-advisor Unagii Sofi /notes/Passive Income/M1-Finance Staking as a Service /www.mycointainer.com/ Trade Together History Russia - Ukraine WWII Anchor Betterment 🐮 Crypto Farm Dubai Feel Mining Glossary Investing in crypto projects Lending StableCoins Makara Mitigating Risk Options strategies Passive Income Robo-advisor Staking as a Service Trade Together 🪴 Second Brain /./Buddhism/Buddhism Programming /./CFD/CFD Trading /tags/meditation blog/ /tags/code blog/ Backtesting C# Javascript absolutely Typescript React Impermanence Vipassana Meditation Mindfulness Functional programming Thích Nhất Hạnh Ramda Vim Quantower /typescript /react The Four Noble Truths Running arch with i3 in wsl using vcxsrv i3 Arch linux Installing Arch linux on WSL A solution to the Paradox of Desire in Buddhism History 🐮 Crypto Farm Dubai Glossary Mitigating Risk Metacognitive Introspective Awareness Equanimity analytical meditation