You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
next edit /etc/profile.d/distrod-user-wsl-envs.sh to look like the following
#!/bin/sh# Load additional WSL session environment variables at runtime by sourcing# a script Distrod creates at runtime. A Linux user who launches Distrod first# can manipulte the contents of this script, so the script file is per-user one# to prevent the user from manipulating other user's environment variables.if [ -e"/run/distrod/distrod_wsl_env-uid$(id -u)" ];then."/run/distrod/distrod_wsl_env-uid$(id -u)"fi# If the creator of the script is root, a non-root user loading it is harmlessif [ "$(id -u)"!= 0 ] && [ -e"/run/distrod/distrod_wsl_env-uid0" ];then."/run/distrod/distrod_wsl_env-uid0"fiif [ "$(id -u)"== 0 ];thenechoecho"!!! INFO START !!!"echoecho"To start up the X11 server, please enter the following:"echoecho"sudo systemctl restart xrdp ; sudo systemctl status xrdp ; startx"echoechoechoecho"look for the following lines:"echoecho"Jul 16 18:14:06 DESKTOP-VJSURS0 xrdp[250]: [INFO ] address [0.0.0.0] port [3389] mode 1"echo"Jul 16 18:14:06 DESKTOP-VJSURS0 xrdp[250]: [INFO ] listening to port 3389 on 0.0.0.0"echoechoechoecho"then in a new windows terminal:"echoecho"mstsc.exe /v localhost:3389"echoecho"with 3389 being the port number you see in the lines above"echoecho"!!! INFO END !!!"echo# replace `archlinux` with your username
su - archlinux -p -c "sudo -S login -f archlinux"fi
replace archlinux with your username, this will spawn /run/user/ID and the [email protected], enabling systemctl --user commands
next exit wsl
then in terminal
wsl --shutdown
wsl -s Distrod
wsl
now we have systemd working, lets get xorg working
pacman-S git base-devel --noconfirm
cd
git clone https://aur.archlinux.org/yay-bin.git
cd yay-bin
makepkg -si
yay -S xrpc
yay -S xorgxrpc
next, open ~/.bashrc and add the following
## test for an existing bus daemon, just to be safeiftest -z "$DBUS_SESSION_BUS_ADDRESS";then## if not found, launch a new oneeval`dbus-launch --sh-syntax`fiiftest -z "$XDG_RUNTIME_DIR";thenexport XDG_RUNTIME_DIR=/run/user/$(id -u)fiexport EDITOR=nano
# enable color support of ls and also add handy aliasesif [ -x /usr/bin/dircolors ];thentest -r ~/.dircolors &&eval"$(dircolors -b ~/.dircolors)"||eval"$(dircolors -b)"alias ls='ls --color=auto'#alias dir='dir --color=auto'#alias vdir='vdir --color=auto'alias grep='grep --color=auto'alias fgrep='fgrep --color=auto'alias egrep='egrep --color=auto'alias pacman='pacman --color=auto'alias yay='yay --color=auto'fi# some more ls aliasesalias ll='ls -alF'alias la='ls -A'alias l='ls -CF'# Alias definitions.# You may want to put all your additions into a separate file like# ~/.bash_aliases, instead of adding them here directly.# See /usr/share/doc/bash-doc/examples in the bash-doc package.if [ -f~/.bash_aliases ];then.~/.bash_aliases
fi
next, we install the plasma desktop
sudo pacman -S kde-desktop konsole dolphin kate konversation firefox discover
next, start xrdp
sudo systemctl start xrdp
sudo systemctl status xrdp
take note of the port number, refer to it as $PORT
and now start X11
startx
next, open a new terminal and login with your LINUX username and password
mstsc.exe /v localhost:$PORT
replace $PORT with the number from earlier
The text was updated successfully, but these errors were encountered:
mgood7123
changed the title
DISTROD + FULL SYSTEMD + GUI DESKTOP
WSL2 + DISTROD + FULL SYSTEMD + GUI DESKTOP
Jul 15, 2022
mgood7123
changed the title
WSL2 + DISTROD + FULL SYSTEMD + GUI DESKTOP
[TUTORIAL] WSL2 + DISTROD + FULL SYSTEMD + GUI DESKTOP
Jul 15, 2022
https://gist.github.com/mgood7123/cb1669169d67218a8518a42e6c585241
COPY
first install distrod
select archlinux
install it
systemd is not fully working yet, lets fix that
next create
/etc/wsl.conf
with the contentsnext edit
/etc/profile.d/distrod-user-wsl-envs.sh
to look like the followingreplace
archlinux
with your username, this will spawn/run/user/ID
and the[email protected]
, enablingsystemctl --user
commandsnext exit wsl
then in terminal
now we have systemd working, lets get xorg working
wsl xorg requires a headerless xorg setup
install xorg
create
/etc/X11/xorg.conf.d/10-headless.conf
with the following contentnext, allow X11 to start as normal user
sudo bash -c "echo allowed_users = anybody > /etc/X11/Xwrapper.config"
next, create
~/.xinitrc
with the following contentsnext, install yay, xrpc, and xorgxrdp
next, open ~/.bashrc and add the following
next, we install the plasma desktop
next, start xrdp
take note of the port number, refer to it as $PORT
and now start X11
next, open a new terminal and login with your LINUX username and password
replace $PORT with the number from earlier
The text was updated successfully, but these errors were encountered: