Gallery Installation of linux based artworks

Technology and galleries don’t usually mix that well. The gallery is a rigorous environment for any technology, particularly software art. Gallery staff are not usually very technically literate and consequently if the art work requires complex instructions to get running or needs continual maintenance, it will most likely wind up as a blank screen most of the time.

Problems can also arise from running the software for extended periods of time, lets face it software art is a creative act, not an engineering process, and the programming craft may suffer. Memory leaks, program errors, poor file-system management (of log files or temporary files) may all cause the artwork to crash or become dysfunctional.

Because of its server functionality Linux has most of the functionality required built in, and it is relatively easy to customise a desktop x86 (x86_64) Linux distribution such as ubuntu to be a reliable platform for software art in the gallery.

Ideally the artwork should require no intervention, it should start up and shutdown at appropriate times and should be able to be reset by the most brutal method of turning the power switch on and off.

  1. Select automatically restart after power failure generally in the power management section of the BIOS. Some bios-es seem to have the ability to set a startup alarm (I’ve been using abit motherboards) time but it seems pretty unsophisticated and unreliable, compared to the capability of Apple’s hardware for automatic startup and shutdown. So the machine will have to be started up with a power switch in the morning.
  2. Use a crontab editor such as (I used KCron run as superuser), to create a daily shutdown script (shutdown -h now) run at 6pm.
  3. Create an account and login for the program to run under, e.g. artwork.
  4. Create a specific login script for the artwork, for example artwork.sh:
    #!/bin/bash export GLIBCXX_FORCE_NEW=1 export PRODUCER_CAMERA_CONFIG_FILE=~artwork/singlemonitor.cfg xset -dpms xset s off setterm -blank 0 cd artwork; python artwork.py
  5. Create a gdm session to execute your login script. Edit /usr/share/xsessions/artwork.desktop :
    [Desktop Entry] Encoding=UTF-8 Name=artwork Exec=/usr/local/artwork/artwork.sh Type=Application
  6. Set the user artwork to use the session (also called artwork) in gdm.
  7. Set the user artwork to automatically login by editing /etc/gdm/gdm-custom :
    [daemon] AutomaticLoginEnable=true AutomaticLogin=artwork

That should be it!