I started out by creating a "Ports Jail (insecure, allows running X applications)," which automatically downloads and installs the FreeBSD ports tree (a large library of applications that can be compiled to run on a FreeBSD system). I installed a few packages (binary, precompiled programs), including the
ssh daemon and sudo.From there, I descended into the ports tree in
/usr/ports/games/anki, and then I executed a recursive make command, to automatically compile everything
/usr/bin/nice -n 19 make DISABLE_VULNERABILITIES=yes -DBATCH
This worked swimmingly, and a subsequent make install successfully integrated Anki into my jailed environment. However, a few issues remain:- X11 over SSH: ssh -Y username@ports_jail does NOT forward X11 correctly. Launching any X11 program results in the following message:
If you're SSHing in via a shell within your computer's X11 environment, this can be rectified with:X11 connection rejected because of wrong authentication.
Error: Can't open display: localhost:11.0
However, this doesn't really fix the ssh X11 forwarding problem, and I'm still at an impasse.export DISPLAY=":0.0" - QT doesn't render correctly. When launched without environmental variables, I get the following results:

- A number of X11 errors when launching from the command line:
QNativeImage: Unable to attach to shared memory segment.
X Error: BadDrawable (invalid Pixmap or Window parameter) 9
Major opcode: 62 (X_CopyArea)
Resource id: 0x0
X Error: BadDrawable (invalid Pixmap or Window parameter) 9
Major opcode: 62 (X_CopyArea)
Resource id: 0x0 - The initial screen is rendered improperly: gray windows, weird artifacts.
QT_GRAPHICSSYSTEM=native anki
No comments:
Post a Comment