View Single Post
Old 02-22-2017, 04:52 AM   #33
latepaul
Wizard
latepaul ought to be getting tired of karma fortunes by now.latepaul ought to be getting tired of karma fortunes by now.latepaul ought to be getting tired of karma fortunes by now.latepaul ought to be getting tired of karma fortunes by now.latepaul ought to be getting tired of karma fortunes by now.latepaul ought to be getting tired of karma fortunes by now.latepaul ought to be getting tired of karma fortunes by now.latepaul ought to be getting tired of karma fortunes by now.latepaul ought to be getting tired of karma fortunes by now.latepaul ought to be getting tired of karma fortunes by now.latepaul ought to be getting tired of karma fortunes by now.
 
latepaul's Avatar
 
Posts: 1,270
Karma: 10468300
Join Date: Dec 2011
Device: a variety (mostly kindles and kobos)
A livecd or VM would probably be simplest.

I must admit one of the reasons I started down the container path was that if it had worked it should have ended up being not only reliable but simple to repeat (the process itself might be complex but the steps could be reduced to something easy).

Anyway, FWIW - here's a set of steps based on what I did:
Spoiler:
  1. Install docker (see https://docs.docker.com/engine/installation/)
  2. Create a directory called 'adewine', copy dotnetfx35setup.exe and ADE_2.0_Installer.exe to it (see Wiki instructions)
  3. Create a file called Dockerfile with the following contents:
    Code:
    FROM debian:jessie
    
    RUN  dpkg --add-architecture i386
    RUN  apt-get update
    RUN  apt-get install -y wget apt-transport-https
    COPY wine.list /etc/apt/sources.list.d
    RUN  cd /tmp && wget https://dl.winehq.org/wine-builds/Release.key
    RUN  cd /tmp && apt-key add Release.key
    RUN  apt-get update
    RUN  apt-get install -y --install-recommends wine-staging
    RUN  cd /usr/local/bin && wget https://raw.githubusercontent.com/Winetricks/winetricks/master/src/winetricks && chmod 755 winetricks
    
    COPY ADE_2.0_Installer.exe /usr/local/bin
    COPY dotnetfx35setup.exe /usr/local/bin
    
    CMD  ["ping", "127.0.0.1", "-c", "30"]
    The 'ping' command is just a placeholder really, we're going to specify bash on the command line.
  4. Create a file called wine.list with the contents:
    Code:
    deb https://dl.winehq.org/wine-builds/debian/ jessie main
  5. Build the image:
    Code:
    docker build --rm -t adewine .
    This will take some time.
  6. Run the container based on this image:
    Code:
     docker run -ti --name adewine_con --net=host -e DISPLAY=$DISPLAY -v /tmp/.X11-unix:/tmp/.X11-unix -v $HOME/.Xauthority:/root/.Xauthority adewine /bin/bash
    This should start a container with access to your X display and you will be running a bash shell within it.
  7. In the container shell
    Code:
    cd /usr/local/bin
  8. In the container shell, follow the steps in the Wiki. You're root within the container so I'm assuming a WINEPREFIX of /root/.adewine
  9. In the container shell
    Code:
    cd /root && tar czvf /tmp/adewine.tar.gz .adewine
  10. In another terminal session on your host machine, run
    Code:
    docker cp adewine_con:/tmp/adewine.tar.gz /tmp
    cd ~ && tar xvf /tmp/adewine.tar.gz
  11. exit the container shell which will stop the container.

Once you're happy that it works, then you can remove the image and container:
Code:
docker rm adewine_con
docker rmi adewine
docker rmi debian:jessie
Not strictly necessary but it all takes up discspace.

Last edited by latepaul; 02-22-2017 at 04:55 AM.
latepaul is offline   Reply With Quote