WSL2 Unable to init server: Could not connect: Connection refused
export DISPLAY=$(ip route show default | grep -ioP '\d+\.\d+\.\d+\.\d+'):0
export LIBGL_ALWAYS_INDIRECT=1
export DISPLAY=$(ip route show default | grep -ioP '\d+\.\d+\.\d+\.\d+'):0
export LIBGL_ALWAYS_INDIRECT=1
echo $(grep -hnr "CLUSTER=" .env) | cut -d'=' -f2
find . -name .DS_Store -print0 | xargs -0 git rm -f --ignore-unmatch
Andale Mono 13
export PS1="\[\033[36m\]\u\[\033[m\]@\[\033[32m\]\h:\[\033[33;1m\]\w\[\033[m\]\$ " export CLICOLOR=1 export LSCOLORS=GxFxCxDxCxegedabagaced
REF: https://stackoverflow.com/questions/41083436/how-to-play-sound-in-a-docker-container
you will notice
docker run -it \
-v /tmp/.X11-unix:/tmp/.X11-unix \ # mount the X11 socket
-e DISPLAY=unix$DISPLAY \ # pass the display
--device /dev/snd \ # sound
--name spotify \
jess/spotify
or for Chrome, at the end
docker run -it \
--net host \ # may as well YOLO
--cpuset-cpus 0 \ # control the cpu
--memory 512mb \ # max memory it can use
-v /tmp/.X11-unix:/tmp/.X11-unix \ # mount the X11 socket
-e DISPLAY=unix$DISPLAY \ # pass the display
-v $HOME/Downloads:/root/Downloads \ # optional, but nice
-v $HOME/.config/google-chrome/:/data \ # if you want to save state
--device /dev/snd \ # so we have sound
--name chrome \
jess/chrome