Closed ThatGuy123-cmd closed 3 years ago
So ended up fixing this by changing the Display ENV var from "DISPLAY={DISPLAY:-:0.0}" to "DISPLAY=:0" after reading this article from the ubuntu forums (https://askubuntu.com/questions/1192102/xhost-produce-access-control-disabled-message-but-do-not-works)
@sickcodes Really looked around and couldn't find anything on this
Hope someone who's had the same problem as me across this and finds it useful, but for now, problem solved :)
Regarding the DISPLAY variable, I have it at the very, very bottom of the README.md sorry.
https://github.com/sickcodes/Docker-OSX#what-is-display-00
And then the GTK error is here.
https://github.com/sickcodes/Docker-OSX#libgtk-errors-connection-refused
I should add the DISPLAY instructions inside the gtk confused section!
So ended up fixing this by changing the Display ENV var from "DISPLAY={DISPLAY:-:0.0}" to "DISPLAY=:0" after reading this article from the ubuntu forums (https://askubuntu.com/questions/1192102/xhost-produce-access-control-disabled-message-but-do-not-works)
@sickcodes Really looked around and couldn't find anything on this
Hope someone who's had the same problem as me across this and finds it useful, but for now, problem solved :)
What host operating system were you using? I would like to fix the README :)
I was using Garuda KDE Dr460nized, Arch Linux, Kernel Version 5.14.15.
Haha, glad this may help someone in the future :)
Thanks, feel free to add a Garuda KDE note in the README 😇
So have tried previously suggested solutions (sudo pacman -S xorg-host && xhost +) but nethier have worked, all dependencies are downloaded and just having a really hard time with this
LOG:
╰─λ sudo docker run -it \ --device /dev/kvm \ -p 50922:10022 \ -v /tmp/.X11-unix:/tmp/.X11-unix \ -e "DISPLAY={DISPLAY:-:0.0}" \ sickcodes/docker-osx:big-sur ssh-keygen: generating new host keys: RSA DSA ECDSA ED25519 nohup: appending output to 'nohup.out' ++ id -u ++ id -g
default': alsa: Reason: No such file or directory ALSA lib confmisc.c:855:(parse_card) cannot find card '0' ALSA lib conf.c:5111:(_snd_config_evaluate) function snd_func_card_inum returned error: No such file or directory ALSA lib confmisc.c:422:(snd_func_concat) error evaluating strings ALSA lib conf.c:5111:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory ALSA lib confmisc.c:1334:(snd_func_refer) error evaluating name ALSA lib conf.c:5111:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory ALSA lib conf.c:5599:(snd_config_expand) Evaluate error: No such file or directory ALSA lib pcm.c:2660:(snd_pcm_open_noupdate) Unknown PCM default alsa: Could not initialize DAC alsa: Failed to open
default': alsa: Reason: No such file or directory audio: Failed to create voicedac' ALSA lib confmisc.c:855:(parse_card) cannot find card '0' ALSA lib conf.c:5111:(_snd_config_evaluate) function snd_func_card_inum returned error: No such file or directory ALSA lib confmisc.c:422:(snd_func_concat) error evaluating strings ALSA lib conf.c:5111:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory ALSA lib confmisc.c:1334:(snd_func_refer) error evaluating name ALSA lib conf.c:5111:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory ALSA lib conf.c:5599:(snd_config_expand) Evaluate error: No such file or directory ALSA lib pcm.c:2660:(snd_pcm_open_noupdate) Unknown PCM default alsa: Could not initialize ADC alsa: Failed to open
default': alsa: Reason: No such file or directory ALSA lib confmisc.c:855:(parse_card) cannot find card '0' ALSA lib conf.c:5111:(_snd_config_evaluate) function snd_func_card_inum returned error: No such file or directory ALSA lib confmisc.c:422:(snd_func_concat) error evaluating strings ALSA lib conf.c:5111:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory ALSA lib confmisc.c:1334:(snd_func_refer) error evaluating name ALSA lib conf.c:5111:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory ALSA lib conf.c:5599:(snd_config_expand) Evaluate error: No such file or directory ALSA lib pcm.c:2660:(snd_pcm_open_noupdate) Unknown PCM default alsa: Could not initialize ADC alsa: Failed to opendefault': alsa: Reason: No such file or directory audio: Failed to create voice
adc' gtk initialization failed