xdmchooser


About

A replacement for the not-so-nice xdm, KDE and dt chooser programs. The program is used by selecting boot method "indirect" for XDMCP and entering the host running xdmchooser.
Also included: xdmping.

Build the package (V1.2.1)

AIX

  1. In cfg.c change
    #include <sys/fcntl.h> 
    
    to
    #include <fcntl.h> 
    
  2. In error.h adapt the varying argument macros
    #if defined(_AIX)
    #define ERR_MSG(...) show_error (__FILE__, __LINE__, __VA_ARGS__ )
    #define APP_MSG(...) show_error ("", -1, __VA_ARGS__ )
    #else
    #define ERR_MSG(x,args...) show_error (__FILE__, __LINE__, x, ## args)
    #define APP_MSG(x,args...) show_error ("", -1, x, ## args)
    #endif
    
  3. Remove the -Wall flag in Makefile.in
  4. run
    configure CC=cc CFLAGS=-O2 --prefix=/tmp/xdmchooser-1.2.1 # AIX native C compiler, install into /tmp
                                                              # attempt to add Xpm support (with example for location):
    configure CC=cc CFLAGS="-O2 -I/bio/local/../61/include" LDFLAGS="-L/bio/local/../61/lib" --prefix=/tmp/xdmchooser-1.2.1 
    make clean
    make
    
    to create the executables
  5. make install
    
    will copy essential executables and man pages (to /tmp/xdmchooser-1.2.1/).
  6. In addition, copy
    mkdir -p          /tmp/xdmchooser-1.2.1/etc  # config dir.
    cp -p xdmchoose.conf /tmp/xdmchooser-1.2.1/etc  # config file
    cp -p *.xpm          /tmp/xdmchooser-1.2.1/etc  # background pixmaps
    
  7. create a package (example):
    cd /tmp/xdmchooser-1.2.1/
    tar -cvf - * | compress >xdmchooser-1.2.1.tar.Z
    

Install & customize

On the XDM server:
  1. choose a target directory (represented by $DST) and unpack e.g.:
    mkdir $DST/xdmchooser-1.2.1
    cd    $DST/xdmchooser-1.2.1
    zcat  xdmchooser-1.2.1.tar.Z | tar -xvf -
    
  2. If desired, adapt the config file $DST/etc/xdmchoose.conf, e.g.:
    app.startscript   "$DST/bin/xdmchooser-background.sh"
    panel.background  "$DST/etc/xdmchoose-blur.xpm"
    app.hostlist      "bio.pool" "aix-pool" "lx-pool"
    
  3. In /etc/dt/config/Xconfig (if not existing, copy from /usr/dt/config/Xconfig) add the line
    Dtlogin*chooser:   $DST/bin/xdmchooser --config $DST/etc/xdmchoose.conf 

Last update: 18-Feb-2013, M.Kraemer