appimage: README: Update docker instructions demonstrate xauth usage
This commit is contained in:
parent
e438838725
commit
009e798ca8
|
|
@ -42,20 +42,28 @@ Example startup with command line options:
|
||||||
# FAQ: How to use (inside docker / podman)
|
# FAQ: How to use (inside docker / podman)
|
||||||
|
|
||||||
```
|
```
|
||||||
|
echo DISPLAY=$DISPLAY # should look like :0
|
||||||
|
xauth list # find the correct cookie for display :0 ; dnf install xauth
|
||||||
|
export X11_AUTHORITY_COOKIE="00112233445566778899aabbccddeeff" # fixup with your exact cookie
|
||||||
|
|
||||||
chmod +x Magic-x86_64.AppImage
|
chmod +x Magic-x86_64.AppImage
|
||||||
|
|
||||||
### Podman or Docker, use :Z when rootless with selinux enabled
|
### Podman or Docker, use :Z when rootless with selinux enabled
|
||||||
podman run --rm --device /dev/fuse --privileged \
|
podman run --rm --device /dev/fuse --privileged \
|
||||||
-v "$(pwd):/tmp/work:Z" -v "/tmp/.X11-unix/X0:/tmp/.X11-unix/X0:Z" \
|
-v "$(pwd):/tmp/work:Z" -v "/tmp/.X11-unix/X0:/tmp/.X11-unix/X0:Z" \
|
||||||
-e DISPLAY -ti almalinux:10
|
-e DISPLAY -e X11_AUTHORITY_COOKIE -ti almalinux:10
|
||||||
|
|
||||||
### Inside Docker:
|
### Inside Docker:
|
||||||
dnf update -y
|
dnf update -y
|
||||||
|
|
||||||
dnf install -y fuse libX11 cairo libGL libGLU
|
dnf install -y fuse libX11 cairo libGL libGLU xauth
|
||||||
|
|
||||||
cd /tmp/work
|
cd /tmp/work
|
||||||
|
|
||||||
|
echo DISPLAY=$DISPLAY # should look like :0
|
||||||
|
echo X11_AUTHORITY_COOKIE=$X11_AUTHORITY_COOKIE # should look like hex-string
|
||||||
|
xauth -q add "$DISPLAY" "MIT-MAGIC-COOKIE-1" "$X11_AUTHORITY_COOKIE"
|
||||||
|
|
||||||
./Magic-x86_64.AppImage -d XR -T scmos
|
./Magic-x86_64.AppImage -d XR -T scmos
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -42,12 +42,16 @@ Example startup with command line options:
|
||||||
# FAQ: How to use (inside docker / podman)
|
# FAQ: How to use (inside docker / podman)
|
||||||
|
|
||||||
```
|
```
|
||||||
|
echo DISPLAY=$DISPLAY # should look like :0
|
||||||
|
xauth list # find the correct cookie for display :0 ; dnf install xauth
|
||||||
|
export X11_AUTHORITY_COOKIE="00112233445566778899aabbccddeeff" # fixup with your exact cookie
|
||||||
|
|
||||||
chmod +x Magic-x86_64.AppImage
|
chmod +x Magic-x86_64.AppImage
|
||||||
|
|
||||||
### Podman or Docker, use :Z when rootless with selinux enabled
|
### Podman or Docker, use :Z when rootless with selinux enabled
|
||||||
podman run --rm --device /dev/fuse --privileged \
|
podman run --rm --device /dev/fuse --privileged \
|
||||||
-v "$(pwd):/tmp/work:Z" -v "/tmp/.X11-unix/X0:/tmp/.X11-unix/X0:Z" \
|
-v "$(pwd):/tmp/work:Z" -v "/tmp/.X11-unix/X0:/tmp/.X11-unix/X0:Z" \
|
||||||
-e DISPLAY -ti centos:7
|
-e DISPLAY -e X11_AUTHORITY_COOKIE -ti centos:7
|
||||||
|
|
||||||
### Inside Docker:
|
### Inside Docker:
|
||||||
echo "FIXUP yum from vault and update" \
|
echo "FIXUP yum from vault and update" \
|
||||||
|
|
@ -61,10 +65,14 @@ echo "FIXUP yum from vault and update" \
|
||||||
&& yum -y update \
|
&& yum -y update \
|
||||||
&& rm -f /tmp/CentOS-Base.repo.old
|
&& rm -f /tmp/CentOS-Base.repo.old
|
||||||
|
|
||||||
yum install -y fuse libX11 cairo
|
yum install -y fuse libX11 cairo xauth
|
||||||
|
|
||||||
cd /tmp/work
|
cd /tmp/work
|
||||||
|
|
||||||
|
echo DISPLAY=$DISPLAY # should look like :0
|
||||||
|
echo X11_AUTHORITY_COOKIE=$X11_AUTHORITY_COOKIE # should look like hex-string
|
||||||
|
xauth -q add "$DISPLAY" "MIT-MAGIC-COOKIE-1" "$X11_AUTHORITY_COOKIE"
|
||||||
|
|
||||||
./Magic-x86_64.AppImage -d XR -T scmos
|
./Magic-x86_64.AppImage -d XR -T scmos
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -42,20 +42,28 @@ Example startup with command line options:
|
||||||
# FAQ: How to use (inside docker / podman)
|
# FAQ: How to use (inside docker / podman)
|
||||||
|
|
||||||
```
|
```
|
||||||
|
echo DISPLAY=$DISPLAY # should look like :0
|
||||||
|
xauth list # find the correct cookie for display :0 ; dnf install xauth
|
||||||
|
export X11_AUTHORITY_COOKIE="00112233445566778899aabbccddeeff" # fixup with your exact cookie
|
||||||
|
|
||||||
chmod +x Magic-x86_64.AppImage
|
chmod +x Magic-x86_64.AppImage
|
||||||
|
|
||||||
### Podman or Docker, use :Z when rootless with selinux enabled
|
### Podman or Docker, use :Z when rootless with selinux enabled
|
||||||
podman run --rm --device /dev/fuse --privileged \
|
podman run --rm --device /dev/fuse --privileged \
|
||||||
-v "$(pwd):/tmp/work:Z" -v "/tmp/.X11-unix/X0:/tmp/.X11-unix/X0:Z" \
|
-v "$(pwd):/tmp/work:Z" -v "/tmp/.X11-unix/X0:/tmp/.X11-unix/X0:Z" \
|
||||||
-e DISPLAY -ti almalinux:8
|
-e DISPLAY -e X11_AUTHORITY_COOKIE -ti almalinux:8
|
||||||
|
|
||||||
### Inside Docker:
|
### Inside Docker:
|
||||||
dnf update -y
|
dnf update -y
|
||||||
|
|
||||||
dnf install -y fuse libX11 cairo libGL libGLU
|
dnf install -y fuse libX11 cairo libGL libGLU xauth
|
||||||
|
|
||||||
cd /tmp/work
|
cd /tmp/work
|
||||||
|
|
||||||
|
echo DISPLAY=$DISPLAY # should look like :0
|
||||||
|
echo X11_AUTHORITY_COOKIE=$X11_AUTHORITY_COOKIE # should look like hex-string
|
||||||
|
xauth -q add "$DISPLAY" "MIT-MAGIC-COOKIE-1" "$X11_AUTHORITY_COOKIE"
|
||||||
|
|
||||||
./Magic-x86_64.AppImage -d XR -T scmos
|
./Magic-x86_64.AppImage -d XR -T scmos
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -44,20 +44,28 @@ Example startup with command line options:
|
||||||
# FAQ: How to use (inside docker / podman)
|
# FAQ: How to use (inside docker / podman)
|
||||||
|
|
||||||
```
|
```
|
||||||
|
echo DISPLAY=$DISPLAY # should look like :0
|
||||||
|
xauth list # find the correct cookie for display :0 ; dnf install xauth
|
||||||
|
export X11_AUTHORITY_COOKIE="00112233445566778899aabbccddeeff" # fixup with your exact cookie
|
||||||
|
|
||||||
chmod +x Magic-x86_64.AppImage
|
chmod +x Magic-x86_64.AppImage
|
||||||
|
|
||||||
### Podman or Docker, use :Z when rootless with selinux enabled
|
### Podman or Docker, use :Z when rootless with selinux enabled
|
||||||
podman run --rm --device /dev/fuse --privileged \
|
podman run --rm --device /dev/fuse --privileged \
|
||||||
-v "$(pwd):/tmp/work:Z" -v "/tmp/.X11-unix/X0:/tmp/.X11-unix/X0:Z" \
|
-v "$(pwd):/tmp/work:Z" -v "/tmp/.X11-unix/X0:/tmp/.X11-unix/X0:Z" \
|
||||||
-e DISPLAY -ti almalinux:9
|
-e DISPLAY -e X11_AUTHORITY_COOKIE -ti almalinux:9
|
||||||
|
|
||||||
### Inside Docker:
|
### Inside Docker:
|
||||||
dnf update -y
|
dnf update -y
|
||||||
|
|
||||||
dnf install -y fuse libX11 cairo libGL libGLU
|
dnf install -y fuse libX11 cairo libGL libGLU xauth
|
||||||
|
|
||||||
cd /tmp/work
|
cd /tmp/work
|
||||||
|
|
||||||
|
echo DISPLAY=$DISPLAY # should look like :0
|
||||||
|
echo X11_AUTHORITY_COOKIE=$X11_AUTHORITY_COOKIE # should look like hex-string
|
||||||
|
xauth -q add "$DISPLAY" "MIT-MAGIC-COOKIE-1" "$X11_AUTHORITY_COOKIE"
|
||||||
|
|
||||||
./Magic-x86_64.AppImage -d XR -T scmos
|
./Magic-x86_64.AppImage -d XR -T scmos
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue