WirePuzzle Mac OS

Mac

Setting up X

Mojave

Install XQuartz (X.Org X Window System that runs on MacOS)

Then in the XQuartz preferences, under the security tab, check the allow connections from network clients button

  • Extremely Puzzling List of all puzzles (3115) Hints: Click on column heads for different sorting and searching. After using the Nav-bar you can jump back to the beginning using the browser's Back-Button.
  • Sep 01, 2009 Mac OS 10.4 – 10.1 (Tiger and earlier) If you need assistance finding the MAC address on other mobile devices, then please contact the Technology Information Center (TIC) on the Washington Street Campus in Russell Hall.

Quickstart (tldr)

Given XQuartz is set up

Easily connect your Thunderbolt-equipped Mac to a FireWire device with the Apple Thunderbolt to FireWire Adapter. Small and compact, it connects to the Thunderbolt port on your Mac computer, giving you a FireWire 800 port that supplies up to 7W for bus-powered peripherals like. 1 - China Purchased from EsTOYS. The Lost Game of the Pharoahs A simple six-piece ball pyramid. (Pharoah sculpture not included!) Twist-L-Dan, in Oak, Wenge, and Karin woods, designed by Takeyuki Endo. Purchased from the Karakuri Club. 8Pd, in Oak, Angsana, and Karin woods, designed by Takeyuki Endo.

Find your IP address and allow access to the X server (assuming en0 is your network device)

pull the container

run it with the following environment variables (passing in your localIP to DISPLAY)

Now that’s fun, but let’s go through how the Dockerfile was built, and add a generic script that would ensure it would run on any MacBook.

Wire Puzzle Mac Os X

Building the Dockerfile

Using ubuntu as the base image. Let’s work out the RUN commands we’ll need.

Base software

Let’s install the packages required, xauth, xorg, and sudo since we want your non-root user to be able to escalate to root.

For the games, we’ll install gnome-games and the KDE games. the kdegames package doesn’t exist anymore, so we’ll individually install all the known packages.

Wire Puzzle Mac Os X

User configuration

We’ll create the user ubuntu with sudo privledges

Then set it as default with its home as the WORKDIR, add the /usr/games to PATH

Game list

I’d like the user to have a list of games avaiable with a description for each one. A trick is to use apt-cache search ^packagename$ to get the description, e.g.,

What we can do is run this against all the games in the /usr/games directory and redirect it to a file gamelist that we can output when the container is run. Using some xargs magic, we can speed it up during the build

where the -P flag is for Parallel mode and nproc will print the number of processing units available to the current process, so we can parallelise the process as much as possible.

Entrypoint

Wire Puzzle Mac Os Download

We’ll set the entrypoint to be a script

where it will print the list of games, cd in /user/games, and exec whatever command is passed to the container

Putting it all together

Optimising for layers and image size we now have our Dockerfile

Running the container

I wrote a script that finds the MacBook’s active network device and the local IP, gives it access to the X server, and runs the container

it works as expected

With no arguments passed, the container will cat the gamelist file and give the user an interactive shell in the /usr/games directory. Passing a game name as an argument, the container will simply run the game.

Nice and simple! 👏

GitHub repository