From 96302c6f6d64795a27541e3a295131bedf8bae84 Mon Sep 17 00:00:00 2001 From: Alexander Clouter Date: Sun, 20 Sep 2020 10:18:40 +0100 Subject: remove need for DISPLAY --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'README.md') diff --git a/README.md b/README.md index f3bfe76..9999675 100644 --- a/README.md +++ b/README.md @@ -32,7 +32,7 @@ Pull requests, suggestions very welcome! docker pull sickcodes/docker-osx -docker run --privileged -e "DISPLAY=${DISPLAY:-:0.0}" -v /tmp/.X11-unix:/tmp/.X11-unix sickcodes/docker-osx +docker run --privileged -v /tmp/.X11-unix:/tmp/.X11-unix sickcodes/docker-osx # press ctrl G if your mouse gets stuck @@ -40,7 +40,7 @@ docker run --privileged -e "DISPLAY=${DISPLAY:-:0.0}" -v /tmp/.X11-unix:/tmp/.X1 # need more RAM and SSH on 0.0.0.0:50922? -docker run -e RAM=4 -p 50922:10022 --privileged -e "DISPLAY=${DISPLAY:-:0.0}" -v /tmp/.X11-unix:/tmp/.X11-unix sickcodes/docker-osx:latest +docker run -e RAM=4 -p 50922:10022 --privileged -v /tmp/.X11-unix:/tmp/.X11-unix sickcodes/docker-osx:latest ssh fullname@localhost -p 50922 @@ -109,7 +109,7 @@ docker ps --all #make note of your container id docker commit containerID newImageName # To run this image do the following -docker run --privileged -e "DISPLAY=${DISPLAY:-:0.0}" -v /tmp/.X11-unix:/tmp/.X11-unix newImageName +docker run --privileged -v /tmp/.X11-unix:/tmp/.X11-unix newImageName ``` # Troubleshooting @@ -130,7 +130,7 @@ sudo yum install xorg-x11-server-utils # then run xhost + -docker run --privileged -e "DISPLAY=${DISPLAY:-:0.0}" -v /tmp/.X11-unix:/tmp/.X11-unix sickcodes/docker-osx ./OpenCore-Boot.sh +docker run --privileged -v /tmp/.X11-unix:/tmp/.X11-unix sickcodes/docker-osx ./OpenCore-Boot.sh ``` Alternative run, thanks @roryrjb -- cgit v1.2.3 From 41dee4b3212f761819b2781a43347cda48649f79 Mon Sep 17 00:00:00 2001 From: Alexander Clouter Date: Sun, 20 Sep 2020 10:31:44 +0100 Subject: remove need for privileged --- README.md | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) (limited to 'README.md') diff --git a/README.md b/README.md index 9999675..76be75d 100644 --- a/README.md +++ b/README.md @@ -32,7 +32,7 @@ Pull requests, suggestions very welcome! docker pull sickcodes/docker-osx -docker run --privileged -v /tmp/.X11-unix:/tmp/.X11-unix sickcodes/docker-osx +docker run --device /dev/kvm --device /dev/snd -v /tmp/.X11-unix:/tmp/.X11-unix sickcodes/docker-osx # press ctrl G if your mouse gets stuck @@ -40,7 +40,7 @@ docker run --privileged -v /tmp/.X11-unix:/tmp/.X11-unix sickcodes/docker-osx # need more RAM and SSH on 0.0.0.0:50922? -docker run -e RAM=4 -p 50922:10022 --privileged -v /tmp/.X11-unix:/tmp/.X11-unix sickcodes/docker-osx:latest +docker run --device /dev/kvm --device /dev/snd -e RAM=4 -p 50922:10022 sickcodes/docker-osx:latest ssh fullname@localhost -p 50922 @@ -109,7 +109,7 @@ docker ps --all #make note of your container id docker commit containerID newImageName # To run this image do the following -docker run --privileged -v /tmp/.X11-unix:/tmp/.X11-unix newImageName +docker run --device /dev/kvm --device /dev/snd -v /tmp/.X11-unix:/tmp/.X11-unix newImageName ``` # Troubleshooting @@ -130,7 +130,7 @@ sudo yum install xorg-x11-server-utils # then run xhost + -docker run --privileged -v /tmp/.X11-unix:/tmp/.X11-unix sickcodes/docker-osx ./OpenCore-Boot.sh +docker run --device /dev/kvm --device /dev/snd -v /tmp/.X11-unix:/tmp/.X11-unix sickcodes/docker-osx ./OpenCore-Boot.sh ``` Alternative run, thanks @roryrjb @@ -159,12 +159,6 @@ sudo dockerd sudo nohup dockerd & ``` -Check /dev/kvm permissions - -```bash -sudo chmod 666 /dev/kvm -``` - If you don't have Docker already ```bash @@ -261,7 +255,7 @@ docker run \ -e CORES=4 \ -e EXTRA='-usb -device usb-host,hostbus=1,hostaddr=8' \ -e INTERNAL_SSH_PORT=23 \ ---privileged -v /tmp/.X11-unix:/tmp/.X11-unix docker-osx:latest +--device /dev/kvm --device /dev/snd -v /tmp/.X11-unix:/tmp/.X11-unix docker-osx:latest ``` -- cgit v1.2.3 From 812c4a2e0971b48953e54b9086c0b0f70c2dd7d5 Mon Sep 17 00:00:00 2001 From: Alexander Clouter Date: Sun, 20 Sep 2020 10:47:23 +0100 Subject: pulseaudio example AppleALC does not support the codec out of the box and I have been unable to work through https://osy.gitbook.io/hac-mini-guide/details/hda-fix to figure out how to make it appear. The controller does work, but without the codec driver support there no soundcard is present to macOS --- README.md | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'README.md') diff --git a/README.md b/README.md index 76be75d..f0ab46b 100644 --- a/README.md +++ b/README.md @@ -133,6 +133,15 @@ xhost + docker run --device /dev/kvm --device /dev/snd -v /tmp/.X11-unix:/tmp/.X11-unix sickcodes/docker-osx ./OpenCore-Boot.sh ``` +PulseAudio for sound (note neither [AppleALC](https://github.com/acidanthera/AppleALC) and varying [`alcid`](https://dortania.github.io/OpenCore-Post-Install/universal/audio.html) or [VoodooHDA-OC](https://github.com/chris1111/VoodooHDA-OC) have [codec support](https://osy.gitbook.io/hac-mini-guide/details/hda-fix#hda-codec) though [IORegistryExplorer](https://github.com/vulgo/IORegistryExplorer) does show the controller component working): +```bash +docker run --device /dev/kvm -e AUDIO_DRIVER=pa,server=unix:/tmp/pulseaudio.socket -v /run/user/$(id -u)/pulse/native:/tmp/pulseaudio.socket -v /tmp/.X11-unix:/tmp/.X11-unix sickcodes/docker-osx +``` +PulseAudio debugging: +```bash +docker run --device /dev/kvm -e AUDIO_DRIVER=pa,server=unix:/tmp/pulseaudio.socket -v /run/user/$(id -u)/pulse/native:/tmp/pulseaudio.socket -v /tmp/.X11-unix:/tmp/.X11-unix -e PULSE_SERVER=unix:/tmp/pulseaudio.socket sickcodes/docker-osx pactl list +``` + Alternative run, thanks @roryrjb ```bash -- cgit v1.2.3