Old notes: VNC with inverted colours

These instructions are no longer being maintained now that more GNU/Linux applications have their own support for customisable colours (and the experience of dealing for short periods of time with one that doesn’t is less bad on a modern flat screen than it was on the old CRTs); the instructions below may or may not work on newer versions of Debian. You may have to replace vncserver with vnc4server.

People with certain eyesight conditions find bright backgrounds difficult to work with, but some applications cannot be configured otherwise. If you have to use one of those applications, it might help a little to use a program that intercepts the display at a low level and inverts all the colours. This is a last resort as the result is unlikely to be optimal.

The following hack will do this on a Linux system. It relies on VNC (Virtual Network Computing) and we will be making a small modification to the VNC viewer.

Note: This works as-is only for Debian-based distributions. If your distribution is not Debian then you need to modify this.

First, download invert-vnc.diff and save it as /tmp/invert-vnc.diff

invert-vnc.diff

Then paste the following into a root prompt: the lines are long):

Then, if you are using Debian 3.0 aka Woody, paste in the following (ONLY if you are using Woody):

For Debian versions later than 3.0, paste the following instead of the above:

Finally, paste in the following script. You might like to change the variables at the beginning, especially Geometry. Security note: all local users will be able to interfere with your X display.

If you use a different keyboard layout (e.g. Dvorak) then you may need to add the appropriate xmodmap command to /usr/local/bin/run-inverted (use export DISPLAY=:$VNCDisplay first; do not send it to :$XnestDisplay or the real display). This should go before the wait.  setxkbmap is less likely to work than xmodmap.

The program is now ready for use. Use it like this (as an ordinary user, not root):

where application is the command to run the application that you wish to use with inverted colours. (If you need a window manager, create a script that launches the window manager and the application and run that.)

All material © Silas S. Brown unless otherwise stated. Debian is a trademark owned by Software in the Public Interest, Inc. Linux is the registered trademark of Linus Torvalds in the U.S. and other countries. VNC is a registered trademark of RealVNC Limited. Any other trademarks I mentioned without realising are trademarks of their respective holders.

Proxied content from gemini://tilde.pink/~ssb22/vnc-invert.gmi (external content)

Gemini request details:

Original URL
gemini://tilde.pink/~ssb22/vnc-invert.gmi
Status code
Success
Meta
text/gemini;lang=en
Proxied by
kineto

Be advised that no attempt was made to verify the remote SSL certificate.