GithubHelp home page GithubHelp logo

pauleve / docker-mtgo Goto Github PK

View Code? Open in Web Editor NEW
459.0 16.0 34.0 789 KB

Docker image with ready-to-play MTGO (Magic Online) for Linux and macOS

Home Page: https://hub.docker.com/r/panard/mtgo/

Makefile 2.64% Shell 85.72% Dockerfile 11.64%
docker-image game cards magic-the-gathering linux

docker-mtgo's People

Contributors

bmdan avatar etchevef avatar github-actions[bot] avatar heyrcl avatar manpages avatar pauleve avatar sobolews avatar willlam avatar xatrekak avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

docker-mtgo's Issues

HELP - "How to" for users with no experince using docker/wine and etc

I know that I'm asking too much from you, but if you have time I would really appreciate some help. I have no experience using docker/wine and other but I have manage to get some parts of the tutorial done.
I got stuck after "pulling" you docker and don't know who to proceed and have the image installed.
I've tried a bunch of things and searched for an answer but as I said I have zero knowledge on codding and etc.

--- This was my last message in terminal after pulling:
latest: Pulling from panard/mtgo
Digest: sha256:ad46d8277cf41b3a44b8ad3bdf6152d45791b1691d7b7c8eaa0146a8623a87ee
Status: Image is up to date for panard/mtgo:latest

--- I tried to "run" the scipt I got the following message using docker:
Jonass-MacBook-Pro:~ alvimjc$ docker run run-mtgo
Unable to find image 'run-mtgo:latest' locally
docker: Error response from daemon: pull access denied for run-mtgo, repository does not exist or may require 'docker login'.
See 'docker run --help'.

--- Than I tried to run again with another command:
Jonass-MacBook-Pro:~ alvimjc$ docker run panard/mtgo
wine: Call from 0x7b43c05c to unimplemented function api-ms-win-core-winrt-roparameterizediid-l1-1-0.dll.RoGetParameterizedTypeInstanceIID, aborting
wine: Call from 0x7b43c05c to unimplemented function api-ms-win-core-winrt-roparameterizediid-l1-1-0.dll.RoGetParameterizedTypeInstanceIID, aborting
wine: Call from 0x7b43c05c to unimplemented function api-ms-win-core-winrt-roparameterizediid-l1-1-0.dll.RoGetParameterizedTypeInstanceIID, aborting
wine: Call from 0x7b43c05c to unimplemented function api-ms-win-core-winrt-roparameterizediid-l1-1-0.dll.RoGetParameterizedTypeInstanceIID, aborting
wine: Call from 0x7b43c05c to unimplemented function api-ms-win-core-winrt-roparameterizediid-l1-1-0.dll.RoGetParameterizedTypeInstanceIID, aborting
wine: Call from 0x7b43c05c to unimplemented function api-ms-win-core-winrt-roparameterizediid-l1-1-0.dll.RoGetParameterizedTypeInstanceIID, aborting
wine: Call from 0x7b43c05c to unimplemented function api-ms-win-core-winrt-roparameterizediid-l1-1-0.dll.RoGetParameterizedTypeInstanceIID, aborting
wine: Call from 0x7b43c05c to unimplemented function api-ms-win-core-winrt-roparameterizediid-l1-1-0.dll.RoGetParameterizedTypeInstanceIID, aborting
wine: Call from 0x7b43c05c to unimplemented function api-ms-win-core-winrt-roparameterizediid-l1-1-0.dll.RoGetParameterizedTypeInstanceIID, aborting
wine: Call from 0x7b43c05c to unimplemented function api-ms-win-core-winrt-roparameterizediid-l1-1-0.dll.RoGetParameterizedTypeInstanceIID, aborting
wine: Call from 0x7b43c05c to unimplemented function api-ms-win-core-winrt-roparameterizediid-l1-1-0.dll.RoGetParameterizedTypeInstanceIID, aborting
wine: Call from 0x7b43c05c to unimplemented function api-ms-win-core-winrt-roparameterizediid-l1-1-0.dll.RoGetParameterizedTypeInstanceIID, aborting
wine: Call from 0x7b43c05c to unimplemented function api-ms-win-core-winrt-roparameterizediid-l1-1-0.dll.RoGetParameterizedTypeInstanceIID, aborting
wine: Call from 0x7b43c05c to unimplemented function api-ms-win-core-winrt-roparameterizediid-l1-1-0.dll.RoGetParameterizedTypeInstanceIID, aborting
wine: Call from 0x7b43c05c to unimplemented function api-ms-win-core-winrt-roparameterizediid-l1-1-0.dll.RoGetParameterizedTypeInstanceIID, aborting
wine: Call from 0x7b43c05c to unimplemented function api-ms-win-core-winrt-roparameterizediid-l1-1-0.dll.RoGetParameterizedTypeInstanceIID, aborting
wine: Call from 0x7b43c05c to unimplemented function api-ms-win-core-winrt-roparameterizediid-l1-1-0.dll.RoGetParameterizedTypeInstanceIID, aborting
wine: Call from 0x7b43c05c to unimplemented function api-ms-win-core-winrt-roparameterizediid-l1-1-0.dll.RoGetParameterizedTypeInstanceIID, aborting
wine: Call from 0x7b43c05c to unimplemented function api-ms-win-core-winrt-roparameterizediid-l1-1-0.dll.RoGetParameterizedTypeInstanceIID, aborting
wine: Call from 0x7b43c05c to unimplemented function api-ms-win-core-winrt-roparameterizediid-l1-1-0.dll.RoGetParameterizedTypeInstanceIID, aborting
wine: Call from 0x7b43c05c to unimplemented function api-ms-win-core-winrt-roparameterizediid-l1-1-0.dll.RoGetParameterizedTypeInstanceIID, aborting
wine: Call from 0x7b43c05c to unimplemented function api-ms-win-core-winrt-roparameterizediid-l1-1-0.dll.RoGetParameterizedTypeInstanceIID, aborting
wine: Call from 0x7b43c05c to unimplemented function api-ms-win-core-winrt-roparameterizediid-l1-1-0.dll.RoGetParameterizedTypeInstanceIID, aborting
wine: Call from 0x7b43c05c to unimplemented function api-ms-win-core-winrt-roparameterizediid-l1-1-0.dll.RoGetParameterizedTypeInstanceIID, aborting
wine: Call from 0x7b43c05c to unimplemented function api-ms-win-core-winrt-roparameterizediid-l1-1-0.dll.RoGetParameterizedTypeInstanceIID, aborting
wine: Call from 0x7b43c05c to unimplemented function api-ms-win-core-winrt-roparameterizediid-l1-1-0.dll.RoGetParameterizedTypeInstanceIID, aborting
wine: Call from 0x7b43c05c to unimplemented function api-ms-win-core-winrt-roparameterizediid-l1-1-0.dll.RoGetParameterizedTypeInstanceIID, aborting

Unhandled Exception: System.ComponentModel.Win32Exception: Error creating window handle.
at System.Windows.Forms.NativeWindow.CreateHandle(CreateParams cp)
at System.Windows.Forms.Control.CreateHandle()
at System.Windows.Forms.Form.CreateHandle()
at System.Windows.Forms.Control.get_Handle()
at System.Windows.Forms.Control.SetVisibleCore(Boolean value)
at System.Windows.Forms.Form.SetVisibleCore(Boolean value)
at System.Deployment.Application.UserInterfaceForm.SetVisibleCore(Boolean value)
at System.Windows.Forms.Control.set_Visible(Boolean value)
at System.Deployment.Application.SplashPiece.ShowSplash(Form parentForm)
at System.Deployment.Application.SplashPiece..ctor(UserInterfaceForm parentForm, SplashInfo info)
at System.Deployment.Application.UserInterfaceForm.InitializeContent()
at System.Deployment.Application.UserInterfaceForm..ctor(ManualResetEvent readyEvent, SplashInfo splashInfo)
at System.Deployment.Application.UserInterface.UIThread()
at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()
wine: Unhandled exception 0xe0434352 in thread 47 at address 0x5140023:0x7b43c05c (thread 0047), starting debugger...
Can't attach process 0037: error 5
err:winediag:nodrv_CreateWindow Application tried to create a window, but no driver could be loaded.
err:winediag:nodrv_CreateWindow Make sure that your X server is running and that $DISPLAY is set correctly.

--- Also tried using wine and had the following:
Jonass-MacBook-Pro:~ alvimjc$ wine wget -O run-mtgo https://raw.githubusercontent.com/pauleve/docker-mtgo/master/run-mtgo
fixme:wer:WerSetFlags (2) stub!
fixme:heap:RtlSetHeapInformation 0x0 1 0x0 0 stub
fixme:process:SetProcessShutdownParameters (00000380, 00000000): partial stub.
wine: Call from 0x7b4272e1 to unimplemented function mscoree.dll.CorIsLatestSvc, aborting
wine: Unimplemented function mscoree.dll.CorIsLatestSvc called at address 0x7b4272e1 (thread 001b), starting debugger...
err:module:import_dll Library MSVCR120_CLR0400.dll (which is needed by L"C:\windows\Microsoft.NET\Framework64\v4.0.30319\mscorsvw.exe") not found
err:module:LdrInitializeThunk Main exe initialization for L"C:\windows\Microsoft.NET\Framework64\v4.0.30319\mscorsvw.exe" failed, status c0000135
err:service:process_send_command service protocol error - failed to write pipe!
fixme:service:scmdatabase_autostart_services Auto-start service L"clr_optimization_v4.0.30319_64" failed to start: 1053
err:winediag:nulldrv_CreateWindow Application tried to create a window, but no driver could be loaded.
err:winediag:nulldrv_CreateWindow The explorer process failed to start.
wine: cannot find L"C:\windows\system32\wget.exe"

It's very likely that I'm doing something stupid and easy to sort and I'm sorry in advance. And as a piece of information, probably necessary, I'm using a Mac.

Quartz opening but without showing MOL

Hi guys,

I have this strange output of the console, when I try to run the docker image:

TiberioMacBookPro:~ carlostiberiojr$ ./run-mtgo
Using network interface 'en1'
open -a XQuartz
socat on 192.168.1.14 forwarding to /private/tmp/com.apple.launchd.1cx72bdCia/org.macosforge.xquartz:0
docker run --privileged --rm -e DISPLAY -v /Users/carlostiberiojr/.local/share/mtgo:/home/wine/.wine/host/ -v mtgo-data:/home/wine/.wine/drive_c/users/ -e WINE_X11_NO_MITSHM=1 --net=host --ipc=host -e TZ=/usr/share/zoneinfo/zoneinfo/America/Sao_Paulo --name mtgo_running -o mtgo
unknown shorthand flag: 'o' in -o
See 'docker run --help'.
./run-mtgo: line 230: 704 Terminated: 15 tail -f ${URL_REQUESTS}
706 | while read url; do
run $WEBBROWSER "${url}";
done

This -o things is bugging me... and I don't know what could be the issue here...

Thanks in advance !

This docker container is amazing, any chance you could also create one for Arena ?

Hi @pauleve ,

Been enjoying using this docker container! I was wondering if you plan on having one for MTGA as well ? should be quite similar to this one I imagine!

It seems to be working well by default on wine with "PlayOnLinux" but would much rather play it within a docker container itself as it plays better with my current setup (I use I3 vm as the desktop manager, running apps dierectly with wine tends to break cursor interactions when moving to other tile)

run.mtgo crashes when installing

i get this after clicking Accept on the EULA prompt:

screen shot 2018-07-16 at 11 25 40 am

here are the program error details. sorry, i had to take screenshots in chunks because i have no idea how to save it as a .txt, and it wouldn't let me copy and paste the text.

screen shot 2018-07-16 at 11 31 03 am

screen shot 2018-07-16 at 11 31 37 am

screen shot 2018-07-16 at 11 32 14 am

daemon error

I followed the macos steps but get the following error when I run ./run-mtgo:

(sorry if I'm being dumb, never used docker before)

docker volume create mtgo-data
Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
Using network interface 'en0'
open -a XQuartz
socat on 192.168.1.3 forwarding to
docker run --privileged --rm -e DISPLAY -v /Users/fred/.local/share/mtgo:/home/wine/.wine/host/ -v mtgo-data:/home/wine/.wine/drive_c/users/ -e WINE_X11_NO_MITSHM=1 --net=host --ipc=host -e TZ=/usr/share/zoneinfo/Europe/London --name mtgo_running panard/mtgo:latest mtgo
docker: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?.
See 'docker run --help'.
./run-mtgo: line 230: 79915 Terminated: 15 tail -f ${URL_REQUESTS}
79917 | while read url; do
run $WEBBROWSER "${url}";
done>

More generic timezone detection

Currently we rely on /etc/timezone and /etc/localtime files to forward the correct time to the container.
It seems that some distributions (and probably Mac OS X) use different pathways to set the timezone.
The script run-mtgo should be able to auto-detect most of them.

Support for user id other than 1000 (was: Running on linux with i3 desktop manager)

Getting the following error when running on Linux and using the "i3" as desktop manager using the command ./run-mtgo

0047:err:winediag:nodrv_CreateWindow Application tried to create a window, but no driver could be loaded.
0047:err:winediag:nodrv_CreateWindow Make sure that your X server is running and that $DISPLAY is set correctly.
0044:err:winsock:WSAIoctl -> SIO_ADDRESS_LIST_CHANGE request failed with status 0x2733
0044:err:winsock:WSAIoctl -> SIO_ADDRESS_LIST_CHANGE request failed with status 0x2733
0047:err:eventlog:ReportEventW L"Application: dfsvc.exe\nFramework Version: v4.0.30319\nDescription: The process was terminated due to an unhandled exception.\nException Info: System.ComponentModel.Win32Exception\n   at System.Windows.Forms.NativeWindow.CreateHandle(System.Windows.Forms.CreateParams)\n   at System.Windows.Forms.Cont"...

Unhandled Exception: System.ComponentModel.Win32Exception: Error creating window handle.
   at System.Windows.Forms.NativeWindow.CreateHandle(CreateParams cp)
   at System.Windows.Forms.Control.CreateHandle()
   at System.Windows.Forms.Form.CreateHandle()
   at System.Windows.Forms.Control.get_Handle()
   at System.Windows.Forms.Control.SetVisibleCore(Boolean value)
   at System.Windows.Forms.Form.SetVisibleCore(Boolean value)
   at System.Deployment.Application.UserInterfaceForm.SetVisibleCore(Boolean value)
   at System.Windows.Forms.Control.set_Visible(Boolean value)
   at System.Deployment.Application.SplashPiece.ShowSplash(Form parentForm)
   at System.Deployment.Application.SplashPiece..ctor(UserInterfaceForm parentForm, SplashInfo info)
   at System.Deployment.Application.UserInterfaceForm.InitializeContent()
   at System.Deployment.Application.UserInterfaceForm..ctor(ManualResetEvent readyEvent, SplashInfo splashInfo)
   at System.Deployment.Application.UserInterface.UIThread()
   at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Threading.ThreadHelper.ThreadStart()
wine: Unhandled exception 0xe0434352 in thread 47 at address 0x7b43c44c (thread 0047), starting debugger...
004a:err:winediag:nodrv_CreateWindow Application tried to create a window, but no driver could be loaded.
004a:err:winediag:nodrv_CreateWindow Make sure that your X server is running and that $DISPLAY is set correctly.

Am I missing any other setup steps ?

After GRN update UI glitches

After GRN client update can't continue due to UI glitches - impossible to accept updated Rules&Terms. Found on latest docker-mtgo, MacBook Pro (Retina, 13-inch, Early 2015), HighSierra 10.13.6.

No window opens

Hi, I'm using a perhaps non-traditional setup. I have the Awesome Window Manager and no traditional desktop manager.

When running the script, it just hands at wine /opt/mtgo/mtgo.exe, no windows opens or nothing else happens.

ntlm_auth was not found or is outdated

Get this error when trying to run the container

0012:err:winediag:SECUR32_initNTLMSP ntlm_auth was not found or is outdated. Make sure that ntlm_auth >= 3.0.25 is in your path. Usually, you can find it in the winbind package of your distribution.
No protocol specified

Accessing Host File System?

New to docker so this might be a docker thing more than an issue with this image - but is there an easy way to get access to my base file system through MTGO running in this docker image some how? Ideally I'd like to be able to import / export deck files.

mac os: XQuartz does not open?

The first time I went through the instructions and ran ./run-mtgo, xquartz opend with "bash-3.2$", but nothing else would happen. So I rebooted, ran the command again, and now the xquartz opens, but no windows pop up and the following error message pops up on terminal:

open -a XQuartz
socat on 10.123.86.119 forwarding to /private/tmp/com.apple.launchd.h7ddC3NbBK/org.macosforge.xquartz:0
2018/02/10 01:22:03 socat[795] E bind(5, {LEN=16 AF=2 10.123.86.119:6000}, 16): Address already in use
docker run --privileged --rm -e DISPLAY -v /Users/alexhwang/.local/share/mtgo:/home/wine/.wine/host/ -v mtgo-data:/home/wine/.wine/drive_c/users/ -e WINE_X11_NO_MITSHM=1 --net=host --ipc=host -e TZ=/usr/share/zoneinfo/America/Los_Angeles --name mtgo_running panard/mtgo:latest mtgo
docker: Error response from daemon: Conflict. The container name "/mtgo_running" is already in use by container "208d561d7b61bcf48d26c00fb134249a4dccbc5313bd612777a96466ed7199a0". You have to remove (or rename) that container to be able to reuse that name.
See 'docker run --help'

Don't really know what I've done wrong, so :(

Sound support

According to https://bugs.winehq.org/show_bug.cgi?id=43729
installing wmp10 quartz and some codecs in allcodecs is sufficient to make sound working with wine.
Then, the gateway with local sound server has to be setup for the docker container, probably by mounting /run/user/1000/pulse/native and /dev/snd with potential uid issues.

Crash on startup

It was working fine before the last update or Mojave i don't know which one broke my setup

ERROR: Caught a segmentation fault while loading plugin file:
/usr/lib/i386-linux-gnu/gstreamer-1.0/libgstcoreelements.so

Please either:
- remove it and restart.
- run with --gst-disable-segtrap --gst-disable-registry-fork and debug.
====== shutting down
wineserver -kw

Use volumes to keep user data

I've studied the MTGO directories, and it can be useful find a way to save user changes without commit new container images (which is not a good practice, imho).

I've found MTGO installation files in
/home/wine/.wine/drive_c/users/wine/Local Settings/Application Data/Apps/2.0/4ZCGNGV8.Q6C/PQ0L852P.JOD where 4ZCGNGV8.Q6C/PQ0L852P.JOD are random strings.

The idea is use a persistent volume to store MTGO files and make the startup faster.

I used docker-compose to more practice, but it's just a mapping of docker-run options:

version: "2"

services:
  mtgo:
    build: ./
    privileged: true
    volumes:
      - /tmp/.X11-unix:/tmp/.X11-unix:rw
      - data:/home/wine/.wine/drive_c/users/wine/Local Settings/Application Data
    network_mode: host
    stdin_open: true
    tty: true

volumes:
  data: {}

In this way, on first run it ask me updates and license confirmation. The second run I got the login screen with my username already there.

Docker doesn't work

When i launch docker, the whale logo appears in the top right. Then as shown of the screenshot, it says docker is starting, but it stays like that and doesn't actually start, so ./run-mtgo doesn't work.
capture d ecran 2018-05-01 a 23 21 05

Cannot Run on Deepin 15.6

I tried following the instructions as best I can but when I run ./run-mtgo I am getting an error. Also when going through the walkthrough run first running ./run-mtgo it fails to create a docker volume. docker volume create --name mtgo-data-(user) does work though. After adding myself to the docker group and running ./run-mtgo I get this output:

docker run --privileged --rm -e DISPLAY -v mtgo-data-alec:/home/wine/.wine/host/ -v mtgo-data-alec:/home/wine/.wine/drive_c/users/ -v /tmp/.X11-unix:/tmp/.X11-unix:rw -v /home/alec/.local/share/mtgo/Xauthority:/home/wine/.Xauthority:ro --net=host --ipc=host -e TZ=/usr/share/zoneinfo/America/Chicago --name mtgo_running panard/mtgo:latest mtgo
docker: Error response from daemon: invalid header field value "oci runtime error: container_linux.go:247: starting container process caused "process_linux.go:359: container init caused "rootfs_linux.go:53: mounting \"cgroup\" to rootfs \"/var/lib/docker/aufs/mnt/dd253bd177fcdd4ea577a0d00208588e6134d6a83d49f084e2611190a4362ee6\" at \"/sys/fs/cgroup\" caused \"no subsystem for mount\"""n".

EDIT: I fixed the not running issue, but I don't know how to enable sound for the application. I installed PulseAudio but don't hear anything when the application runs/opens.

Crashes on Foil Cards Sometimes

Non-zero chance this is a MTGO "Feature" but I am getting crashes when foil cards are displayed a non-zero amount of the time. Anyone else?

Ubuntu 17.10 must run ./run-mtgo as sudo

As the title explains, when attempting to run the ./run-mtgo script from cli after following readme instructions for Ubuntu Linux 17.10 the following occurs:

$ ./run-mtgo 
docker volume create mtgo-data
Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Post http://%2Fvar%2Frun%2Fdocker.sock/v1.37/volumes/create: dial unix /var/run/docker.sock: connect: permission denied
docker run --privileged --rm -e DISPLAY -v /home/justin/.local/share/mtgo:/home/wine/.wine/host/ -v mtgo-data:/home/wine/.wine/drive_c/users/ -v /tmp/.X11-unix:/tmp/.X11-unix:rw -v /home/justin/.Xauthority:/home/wine/.Xauthority:ro --net=host --ipc=host -e TZ=/usr/share/zoneinfo/America/Chicago --name mtgo_running panard/mtgo:latest mtgo
docker: Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Post http://%2Fvar%2Frun%2Fdocker.sock/v1.37/containers/create?name=mtgo_running: dial unix /var/run/docker.sock: connect: permission denied.
See 'docker run --help'.

I ran the command as sudo instead and had the problem solved immediately:

$ sudo ./run-mtgo 
docker volume create mtgo-data
mtgo-data
docker run --privileged --rm -e DISPLAY -v /home/justin/.local/share/mtgo:/home/wine/.wine/host/ -v mtgo-data:/home/wine/.wine/drive_c/users/ -v /tmp/.X11-unix:/tmp/.X11-unix:rw -v /home/justin/.Xauthority:/home/wine/.Xauthority:ro --net=host --ipc=host -e TZ=/usr/share/zoneinfo/America/Chicago --name mtgo_running panard/mtgo:latest mtgo
Unable to find image 'panard/mtgo:latest' locally
latest: Pulling from panard/mtgo
4bbaad9d12d2: Pull complete 
984bd8ba789f: Pull complete 
6e60683913ab: Pull complete 
38c2ca6d4660: Pull complete 
b3d79722445f: Pull complete 
4165bb036215: Pull complete 
37ea99b7b5c9: Pull complete 
5b192db82862: Pull complete 
87e3354f5983: Pull complete 
419305be10c8: Pull complete 
532686dc50ae: Pull complete 
Digest: sha256:2565dcd01092216bce772ffff2ff299f1077bc1d5d51817f2b71fd0da369941d
Status: Downloaded newer image for panard/mtgo:latest
wineboot
wine /opt/mtgo/mtgo.exe

I have opened this Issue because nowhere in the readme do you state that sudo is necessary to run your container or script. If I do not need to sudo this script, I would like to figure out what went wrong so that you can add troubleshooting for the issue into your FAQ / Wiki so that this issue does not cause anyone else (including you) additional confusion.

Error Downloading MTGO

The following properties have been set:
Property: [AdminUser] = true {boolean}
Property: [InstallMode] = HomeSite {string}
Property: [ProcessorArchitecture] = Intel {string}
Property: [VersionNT] = 6.1.1 {version}
Running checks for package 'Microsoft .NET Framework 4.5.2 (x86 and x64)', phase BuildList
Reading value 'Release' of registry key 'HKLM\Software\Microsoft\NET Framework Setup\NDP\v4\Full'
Read integer value 394806
Setting value '394806 {int}' for property 'DotNet45Full_Release'
Reading value 'v4' of registry key 'HKLM\SOFTWARE\Microsoft\NET Framework Setup\OS Integration'
Unable to read registry value
Not setting value for property 'DotNet45Full_OSIntegrated'
The following properties have been set for package 'Microsoft .NET Framework 4.5.2 (x86 and x64)':
Property: [DotNet45Full_Release] = 394806 {int}
Running checks for command 'DotNetFX452\NDP452-KB2901907-x86-x64-AllOS-ENU.exe'
Result of running operator 'ValueEqualTo' on property 'InstallMode' and value 'HomeSite': true
Result of checks for command 'DotNetFX452\NDP452-KB2901907-x86-x64-AllOS-ENU.exe' is 'Bypass'
Running checks for command 'DotNetFX452\NDP452-KB2901907-x86-x64-AllOS-ENU.exe'
Result of running operator 'ValueEqualTo' on property 'InstallMode' and value 'HomeSite': true
Result of checks for command 'DotNetFX452\NDP452-KB2901907-x86-x64-AllOS-ENU.exe' is 'Bypass'
Running checks for command 'DotNetFX452\NDP452-KB2901954-Web.exe'
Result of running operator 'ValueNotEqualTo' on property 'InstallMode' and value 'HomeSite': false
Result of running operator 'ValueGreaterThanEqualTo' on property 'DotNet45Full_Release' and value '379893': true
Result of checks for command 'DotNetFX452\NDP452-KB2901954-Web.exe' is 'Bypass'
Running checks for command 'DotNetFX452\NDP452-KB2901954-Web.exe'
Result of running operator 'ValueNotEqualTo' on property 'InstallMode' and value 'HomeSite': false
Result of running operator 'ValueGreaterThanEqualTo' on property 'DotNet45Full_Release' and value '379893': true
Result of checks for command 'DotNetFX452\NDP452-KB2901954-Web.exe' is 'Bypass'
'Microsoft .NET Framework 4.5.2 (x86 and x64)' RunCheck result: No Install Needed
Running checks for package 'Windows Installer 4.5', phase BuildList
Looking up path for special folder 'WindowsFolder'
Running check with folder 'C:\windows\System32' and file 'msi.dll'
Attempting to find file 'C:\windows\System32\msi.dll'
File version is '4.5.6001.22308'
Setting value '4.5.6001.22308 {version}' for property 'VersionMsiDll'
The following properties have been set for package 'Windows Installer 4.5':
Property: [VersionMsiDll] = 4.5.6001.22308 {version}
Running checks for command 'WindowsInstaller4_5\WindowsXP-KB942288-v3-x86.exe'
Result of running operator 'VersionGreaterThanOrEqualTo' on property 'VersionMsi' and value '4.5': true
Result of checks for command 'WindowsInstaller4_5\WindowsXP-KB942288-v3-x86.exe' is 'Bypass'
Running checks for command 'WindowsInstaller4_5\WindowsXP-KB958655-v2-x86-ENU.exe'
Result of running operator 'VersionGreaterThanOrEqualTo' on property 'VersionMsiDll' and value '4.5.6001.22299': true
Result of checks for command 'WindowsInstaller4_5\WindowsXP-KB958655-v2-x86-ENU.exe' is 'Bypass'
Running checks for command 'WindowsInstaller4_5\WindowsServer2003-KB942288-v4-x86.exe'
Result of running operator 'VersionGreaterThanOrEqualTo' on property 'VersionMsi' and value '4.5': true
Result of checks for command 'WindowsInstaller4_5\WindowsServer2003-KB942288-v4-x86.exe' is 'Bypass'
Running checks for command 'WindowsInstaller4_5\WindowsServer2003-KB958655-v2-x86-ENU.exe'
Result of running operator 'VersionGreaterThanOrEqualTo' on property 'VersionMsiDll' and value '4.5.6001.22299': true
Result of checks for command 'WindowsInstaller4_5\WindowsServer2003-KB958655-v2-x86-ENU.exe' is 'Bypass'
Running checks for command 'WindowsInstaller4_5\WindowsServer2003-KB942288-v4-x64.exe'
Result of running operator 'VersionGreaterThanOrEqualTo' on property 'VersionMsi' and value '4.5': true
Result of checks for command 'WindowsInstaller4_5\WindowsServer2003-KB942288-v4-x64.exe' is 'Bypass'
Running checks for command 'WindowsInstaller4_5\WindowsServer2003.WindowsXP-KB958655-v2-x64-ENU.exe'
Result of running operator 'VersionGreaterThanOrEqualTo' on property 'VersionMsiDll' and value '4.5.6001.22299': true
Result of checks for command 'WindowsInstaller4_5\WindowsServer2003.WindowsXP-KB958655-v2-x64-ENU.exe' is 'Bypass'
Running checks for command 'WindowsInstaller4_5\Windows6.0-KB958655-v2-x86.MSU'
Result of running operator 'VersionGreaterThanOrEqualTo' on property 'VersionMsiDll' and value '4.5.6001.22308': true
Result of checks for command 'WindowsInstaller4_5\Windows6.0-KB958655-v2-x86.MSU' is 'Bypass'
Running checks for command 'WindowsInstaller4_5\Windows6.0-KB958655-v2-x64.MSU'
Result of running operator 'VersionGreaterThanOrEqualTo' on property 'VersionMsiDll' and value '4.5.6001.22308': true
Result of checks for command 'WindowsInstaller4_5\Windows6.0-KB958655-v2-x64.MSU' is 'Bypass'
'Windows Installer 4.5' RunCheck result: No Install Needed
Launching Application.
URLDownloadToCacheFile failed with HRESULT '-2146697208'
Error: An error occurred trying to download 'http://mtgoclientdepot.onlinegaming.wizards.com/MTGO.application'.

I get this result with both the normal version and the Wine 3 version.

Arch Linux, Docker 1:18.02.0

terminal freezes

Hi guys, thanks for the great work,

when i run the ./run-mtgo, the terminal runs for a while, and then freezes at
System information:
Wine build: wine-3.6
Platform: i386
Version: Windows 7
Host system: Linux
Host version: 4.9.87-linuxkit-aufs

after a long time waiting, i have to ctrl+c to kill it.

and obviously, run-mtgo doesn't work.

what should i do? thank you:)

macOS: black windows (was: MTGO Never opens)

The first time I went through this process every time I got to the point of actually starting Magic, I typed the command "./run-mtgo" and XQuartz would open with "bash-3.2$" in the window. Nothing else would happen, no matter what I tried so I uninstalled and deleted all the files and started over. Now when I try to run "./run-mtgo" I get feedback (which I will paste at the bottom) like it's working and then XQuartz opens on my dock, but no actual windows come up and I'm stuck again. Any subsequent commands I send aren't recognized until I actually quit Terminal, at which point it says "Closing this window will terminate the running processes: bash (3), tail, docker." I am running Sierra 10.12.6

This is the feedback I receive from Terminal:
open -a XQuartz
socat on forwarding to /private/tmp/com.apple.launchd.G6OpvTemMG/org.macosforge.xquartz:0
2018/02/06 14:06:00 socat[4946] E getaddrinfo("", "NULL", {1,2,1,6}, {}): nodename nor servname provided, or not known
docker run --privileged --rm -e DISPLAY -v /Users/my name/.local/share/mtgo:/home/wine/.wine/host/ -v mtgo-data:/home/wine/.wine/drive_c/users/ -e WINE_X11_NO_MITSHM=1 --net=host --ipc=host -e TZ=/usr/share/zoneinfo/America/New_York --name mtgo_running panard/mtgo:latest mtgo

oci runtime error

I'm trying to get this running on my ArchLinux x86_64 installation but I run into this error:

docker run --privileged --rm -it -e DISPLAY -v /tmp/.X11-unix:/tmp/.X11-unix:rw -v /root/.Xauthority:/home/wine/.Xauthority:ro --net=host --ipc=host -v /etc/timezone:/etc/timezone:ro -v /etc/localtime:/etc/localtime:ro --name mtgo_running panard/mtgo:latest mtgo docker: Error response from daemon: oci runtime error: container_linux.go:262: starting container process caused "process_linux.go:339: container init caused \"rootfs_linux.go:57: mounting \\\"/etc/timezone\\\" to rootfs \\\"/var/lib/docker/devicemapper/mnt/825a5ce6a14819bdc0dbc1b5aebc009f5c3d6745167c255c0b0ef743afad268e/rootfs\\\" at \\\"/var/lib/docker/devicemapper/mnt/825a5ce6a14819bdc0dbc1b5aebc009f5c3d6745167c255c0b0ef743afad268e/rootfs/etc/timezone\\\" caused \\\"not a directory\\\"\"" : Are you trying to mount a directory onto a file (or vice-versa)? Check if the specified host path exists and is the expected type.

On which distro did you run it?
I got it working on Ubuntu 16.04 LTS but I prefer to have it running on my Workstation :) And shouldn't be the issue with the multimonitor setup I guess.

Random crashes due to X error (BadAccess)

X Error of failed request: BadAccess (attempt to access private resource denied)
Major opcode of failed request: 130 (MIT-SHM)
Minor opcode of failed request: 1 (X_ShmAttach)
Serial number of failed request: 73549
Current serial number in output stream: 73550

Start up crash on Linux Mint

So, I'm very new to using Linux and running things out of Terminal etc but I've been having an issue where I run the script, where it appears to start, then crashes, and I lose sound on my system. The terminal outputs the following :

` $ sudo ./run-mtgo
[sudo] password for peter:
docker run --privileged --rm -e DISPLAY -v /home/peter/.local/share/mtgo:/home/wine/.wine/host/ -v mtgo-data:/home/wine/.wine/drive_c/users/ -v /tmp/.X11-unix:/tmp/.X11-unix:rw -v /home/peter/.Xauthority:/home/wine/.Xauthority:ro --net=host --ipc=host -e TZ=/usr/share/zoneinfo/Australia/Sydney --name mtgo_running panard/mtgo:latest mtgo
wineboot
wine /opt/mtgo/mtgo.exe
====== MTGO.exe has started.
ALSA lib confmisc.c:767:(parse_card) cannot find card '0'
ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func_card_driver returned error: No such file or directory
ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings
ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory
ALSA lib confmisc.c:1246:(snd_func_refer) error evaluating name
ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5007:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM default
ALSA lib confmisc.c:767:(parse_card) cannot find card '0'
ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func_card_driver returned error: No such file or directory
ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings
ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory
ALSA lib confmisc.c:1246:(snd_func_refer) error evaluating name
ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5007:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM default
ALSA lib seq_hw.c:466:(snd_seq_hw_open) open /dev/snd/seq failed: Permission denied

ERROR: Caught a segmentation fault while loading plugin file:
/usr/lib/i386-linux-gnu/gstreamer-1.0/libgstcoreelements.so

Please either:

  • remove it and restart.
  • run with --gst-disable-segtrap --gst-disable-registry-fork and debug.

(wine:95): GStreamer-CRITICAL **: gst_pad_unlink: assertion 'GST_IS_PAD (srcpad)' failed

(wine:95): GStreamer-CRITICAL **: gst_object_unref: assertion 'object != NULL' failed

(wine:95): GStreamer-CRITICAL **: gst_object_unref: assertion 'object != NULL' failed
====== shutting down
wineserver -kw
./run-mtgo: line 234: 3674 Terminated tail -f ${URL_REQUESTS}
3675 | while read url; do
run $WEBBROWSER "${url}";
done`

I honestly have no damn idea what this means. It's probably a rather simple error and fix, but this a brave new world for me, was hoping someone could shed some light on it for me.

mtgo doesnt open macos

Hi, im a bit of a newbie and just followed all the steps, but after all of that I'm getting these errors:

./run-mtgo
docker volume create mtgo-data
./run-mtgo: line 124: docker: command not found
Using network interface 'en0'
open -a XQuartz
socat on 192.168.1.105 forwarding to /private/tmp/com.apple.launchd.XOqLSMw2hO/org.macosforge.xquartz:0
docker run --privileged --rm -e DISPLAY -v /Users/fofinhos/.local/share/mtgo:/home/wine/.wine/host/ -v mtgo-data:/home/wine/.wine/drive_c/users/ -e WINE_X11_NO_MITSHM=1 --net=host --ipc=host -e TZ=/usr/share/zoneinfo/zoneinfo/America/Bogota --name mtgo_running panard/mtgo:latest mtgo
./run-mtgo: line 124: docker: command not found
./run-mtgo: line 230: 754 Terminated: 15 tail -f ${URL_REQUESTS}
756 | while read url; do
run $WEBBROWSER "${url}";
done
MacBook-Pro-de-Fofinhos:~ fofinhos$

Any idea in what i could be missing??

Line 124: Docker not found

Hi, I'm fairly new at this, I've made it through adding homebrew and wine. However, I am running into a problem. I keep on getting "./run-mtgo: line 124: docker: command not found" and mtgo doesn't start up. Do you have any advice with what to do? I've included what happens after I run "./run-mtgo"

Thanks in advance for your help.

[User]$ ./run-mtgo
docker volume create mtgo-data
./run-mtgo: line 124: docker: command not found
Using network interface 'en1'
open -a XQuartz
socat on 192.168.0.6 forwarding to /private/tmp/com.apple.launchd.ij0iCMcOnr/org.macosforge.xquartz:0
2018/02/21 20:23:34 socat[13442] E bind(5, {LEN=16 AF=2 192.168.0.6:6000}, 16): Address already in use
docker run --privileged --rm -e DISPLAY -v /Users/Adan/.local/share/mtgo:/home/wine/.wine/host/ -v mtgo-data:/home/wine/.wine/drive_c/users/ -e WINE_X11_NO_MITSHM=1 --net=host --ipc=host -e TZ=/usr/share/zoneinfo/America/Los_Angeles --name mtgo_running panard/mtgo:latest mtgo
./run-mtgo: line 124: docker: command not found

EULA and multi-monitor issue

When MTGO updates you need to accept the EULA again. The problem is that when the EULA window opens itself on a different monitor from where MTGO's main window is opened it is simply greyed out garbage of other applications you current have open on that screen:

https://i.imgur.com/zxJ1Xxk.png

I can tell this is the EULA window because it is the correct shape.

The work around for the time being is turning off all but one of my monitors before launching MTGO for the first time after the update. This forces the EULA window to open over the main MTGO window so I can interact with it as expected.

Unimplemented function api-ms-win-core-winrt-roparameterized

I am getting these messages, even though they don't seem to interfere with the play, I thought it was a good idea to report.

wine: Call from 0x7b43c05c to unimplemented function api-ms-win-core-winrt-roparameterizediid-l1-1-0.dll.RoGetParameterizedTypeInstanceIID, aborting

Errors on mtgo.exe open

Hey @pauleve, first of all - cool container!

I'm seeing an issue where when wine tries to open the execution file I get a few errors. Could you help me out with understanding these? Thanks!

wine /opt/mtgo/mtgo.exe
0037:err:winediag:SECUR32_initNTLMSP ntlm_auth was not found or is outdated. Make sure that ntlm_auth >= 3.0.25 is in your path. Usually, you can find it in the winbind package of your distribution.
2018/10/22 11:32:51 socat[18790] E connect(5, LEN=2 AF=1 "<anon>", 2): Invalid argument
0037:err:winediag:nodrv_CreateWindow Application tried to create a window, but no driver could be loaded.
0037:err:winediag:nodrv_CreateWindow Make sure that your X server is running and that $DISPLAY is set correctly.

Crashes when going into "Help" menu

The docker container crashes when accessing the "Help" menu in game. This started happening for me after the most recent update, also the game has been crashing a lot since that update.

HiDPI displays

I'm having a HiDPI display (4K) and the game opens extremely tiny. Does wine have a common fix for this?

Pulse Audio locks up on launching

Pulse audio kept hard locking on my system, and I finally figured out that launching MTGO under this docker image was the cause. After launching with --disable-sound pulse audio no longer locks, so pretty certain launching MTGO with the default settings from here is the cause

Screenshot of pulse audio in my system manager when it is locked up: https://i.imgur.com/fowS4Ke.png

Also worth noting I don't seem to be able to re-enable sound after running with --disable-sound. Running with the --sound option gives me:

PulseAudio does not seem active (/run/user/0/pulse/native not found)

help wanted: change display resolution of mtgo?

Almost in shock that MTGO is working beautifully on Ubuntu (17.10 64-bit) with this fantastic docker repo!

I'm new to using docker and wine, is there a way to alter the resolution of the program running? even max-sized the cards are appearing quite small. Thank you again.

Support for Wayland host

The script will probably fail if the host is using Wayland instead of X11.
Graphical system can be detected using loginctl show-session $(loginctl | grep $(whoami) | awk '{print $1}') -p Type
I do not plan relying on Wayland anytime soon, any feedback is welcome.

Unable to run without Sudo

So I've been having issues on and off with MTGO under Linux. Have just purged all MTGO related content and reinstalled the script, made myself a member of the docker group etc however, when I attempt to run the scrip without sudo I get the following:

./run-mtgo: line 270: /home/peter/.local/share/mtgo/openurl: Permission denied

Again, I'm not super familiar with the world of linux yet, so I'm really unsure as to what I should be doing here.

Cheers for any help!

MTGO 'disconnected'

My internet connection is fine but MTGO appears to be disconnected and therefore I can't log on. Updating and reseting didn't work, also I'm kinda just a noob at this stuf... any help would be appreciated!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.