Dockerized version of x48 (Hewlett Packard 48) for Linux / x11
1.6K
x48 can be found here: https://github.com/gwenhael-le-moine/x48
Notes:
Copy and paste it into an editor, save it as 'runx48.sh', change the permissions so it's executable, and run it.
#!/bin/bash
start_x48 () {
docker run --rm --network none \
--volume="/tmp/.X11-unix:/tmp/.X11-unix" \
--volume="/home/$USER:/home/$USER" \
--volume="/etc/group:/etc/group:ro" \
--volume="/etc/passwd:/etc/passwd:ro" \
--volume="/etc/shadow:/etc/shadow:ro" \
--volume="/etc/sudoers.d:/etc/sudoers.d:ro" \
--env="DISPLAY" \
--user $(id -u):$(id -g) \
danwitt/x48 $@
}
# IF we can't pull the image, then we need to build it
if [[ $1 == "--build" ]]; then
#Run the build process
docker build -t danwitt/x48 .
#If the build was good, start x48
if [[ $? == 0 ]]; then
start_x48 $@
fi
else
start_x48 $@
fi
HELP
$ ./runx48.sh -help
x48 Version 0.6.4, Copyright (c) 1994-2005 by Eddie C. Dost <[email protected]>.
usage:
x48 [-options ...]
where options include:
-help print out this message
-display <displayname> X server to contact
-name <string> set application name to <string>
-title <string> set window title to <string>
-geometry <geometry> position of window
-iconGeom <geometry> position of icon window
-iconic start iconic
-visual <visualname> use visual <visualname>
-mono force monochrome
-gray force grayscale
-monoIcon force monochrome icon
-smallFont <fontname> <fontname> to draw small labels (MTH - DEL)
-mediumFont <fontname> <fontname> to draw medium label (ENTER)
-largeFont <fontname> <fontname> to draw large labels (Numbers)
-connFont <fontname> <fontname> to display wire & IR connections
-/+xshm turn on/off XShm extension
-version print out version information
-copyright print out copyright information
-warranty print out warranty information
-verbose run verbosive
-quiet run quietly
-/+terminal turn on/off pseudo terminal interface
-/+serial turn on/off serial interface
-line <devicename> use serial line <devicename> for IR connection
-/+debug turn on/off debugger
-disasm <string> use <string> ('HP' or 'class') mnemonics
-reset perform a reset (PC = 0) on startup
-initialize force initialization x48 from ROM-dump
-rom <filename> if initializing, read ROM from <filename>
-home <directory> use directory ~/<directory> to save x48 files
-xrm <resource> set Xresource <resource>
-/+throttle turn off/on speed emulation
-/+netbook turn off/on netbook layout
Content type
Image
Digest
Size
6.2 MB
Last updated
over 6 years ago
docker pull danwitt/x48