Xorg Applications

Introduction to Xorg Applications

The Xorg applications provide the expected applications available in previous X Window implementations.

This package is known to build and work properly using an LFS-7.3 platform.

Package Information

Xorg Applications Dependencies

Required

libpng-1.6.2, MesaLib-9.1.3 (required for OpenGL support), xbitmaps-1.1.1, xcb-util-0.3.9, and Xorg Libraries

Optional

Linux-PAM-1.1.6

User Notes: http://wiki.linuxfromscratch.org/blfs/wiki/Xorg7Applications

Downloading Xorg Applications

First, create a list of files to be downloaded. This file will also be used to verify the integrity of the downloads when complete:

cat > app-7.7.md5 << "EOF"
96a648a332160a7482885800f7a506fa  bdftopcf-1.0.4.tar.bz2
08e3f6b523da8b0af179f22f339508b2  iceauth-1.0.5.tar.bz2
c4a3664e08e5a47c120ff9263ee2f20c  luit-1.1.1.tar.bz2
18c429148c96c2079edda922a2b67632  mkfontdir-1.0.7.tar.bz2
414fcb053418fb1418e3a39f4a37e0f7  mkfontscale-1.1.0.tar.bz2
f548e389ff68424947b87785df6a321b  sessreg-1.0.8.tar.bz2
1001771344608e120e943a396317c33a  setxkbmap-1.3.0.tar.bz2
edce41bd7562dcdfb813e05dbeede8ac  smproxy-1.0.5.tar.bz2
5c3c7431a38775caaea6051312a49bc9  x11perf-1.5.4.tar.bz2
cbcbd8f2156a53b609800bec4c6b6c0e  xauth-1.0.7.tar.bz2
c9891d6a3f3129d56cede72daa0ba26c  xbacklight-1.1.2.tar.bz2
5812be48cbbec1068e7b718eec801766  xcmsdb-1.0.4.tar.bz2
09f56978a62854534deacc8aa8ff3031  xcursorgen-1.0.5.tar.bz2
1ef08f4c8d0e669c2edd49e4a1bf650d  xdpyinfo-1.3.0.tar.bz2
3d3cad4d754e10e325438193433d59fd  xdriinfo-1.0.4.tar.bz2
5b0a0b6f589441d546da21739fa75634  xev-1.2.1.tar.bz2
c06067f572bc4a5298f324f27340da95  xgamma-1.0.5.tar.bz2
a0fcd2cb6ddd9f378944cc6f4f83cd7c  xhost-1.0.5.tar.bz2
d2459d35b4e0b41ded26a1d1159b7ac6  xinput-1.6.0.tar.bz2
a0fc1ac3fc4fe479ade09674347c5aa0  xkbcomp-1.2.4.tar.bz2
37ed71525c63a9acd42e7cde211dcc5b  xkbevd-1.1.3.tar.bz2
502b14843f610af977dffc6cbf2102d5  xkbutils-1.0.4.tar.bz2
e7f0d57b6ba49c384e9cf8c9ff3243c1  xkill-1.0.3.tar.bz2
9d0e16d116d1c89e6b668c1b2672eb57  xlsatoms-1.1.1.tar.bz2
760099f0af112401735801e3b9aa8595  xlsclients-1.1.2.tar.bz2
d9b65f6881afe0d6d9863b30e1081bde  xmodmap-1.0.7.tar.bz2
6101f04731ffd40803df80eca274ec4b  xpr-1.0.4.tar.bz2
d5529dc8d811efabd136ca2d8e857deb  xprop-1.2.1.tar.bz2
4d68317238bb14a33c0e419233d57d87  xrandr-1.4.0.tar.bz2
ed2e48cf33584455d74615ad4bbe4246  xrdb-1.0.9.tar.bz2
2f63f88ad0dcecd33c8cf000f38e9250  xrefresh-1.0.4.tar.bz2
d44e0057d6722b25d5a314e82e0b7e7c  xset-1.2.2.tar.bz2
7211b31ec70631829ebae9460999aa0b  xsetroot-1.1.1.tar.bz2
1fbd65e81323a8c0a4b5e24db0058405  xvinfo-1.1.2.tar.bz2
2113126f9ac9c02bb8547c112c5d037e  xwd-1.0.5.tar.bz2
9e8b58c8aa6172e87ab4f9cf3612fedd  xwininfo-1.1.2.tar.bz2
3025b152b4f13fdffd0c46d0be587be6  xwud-1.0.4.tar.bz2
EOF

To download the needed files using wget, use the following commands:

mkdir app &&
cd app &&
grep -v '^#' ../app-7.7.md5 | awk '{print $2}' | wget -i- -c \
    -B http://xorg.freedesktop.org/releases/individual/app/ &&
md5sum -c ../app-7.7.md5

Installation of Xorg Applications

[Note]

Note

When installing multiple packages in a script, the installation needs to be done as the root user. There are three general options that can be used to do this:

  1. Run the entire script as the root user (not recommended).

  2. Use the sudo command from the Sudo-1.8.6p3 package.

  3. Use su -c "command arguments" (quotes required) which will ask for the root password for every iteration of the loop.

One way to handle this situation is to create a short bash function that automatically selects the appropriate method. Once the command is set in the environment, it does not need to be set again.

as_root()
{
  if   [ $EUID = 0 ];        then $*
  elif [ -x /usr/bin/sudo ]; then sudo $*
  else                            su -c \\"$*\\"
  fi
}

export -f as_root

First, start a subshell that will exit on error:

bash -e

Install all of the applications by running the following commands:

for package in $(grep -v '^#' ../app-7.7.md5 | awk '{print $2}')
do
  packagedir=${package%.tar.bz2}
  tar -xf $package
  pushd $packagedir
  case $packagedir in
    xmodmap-[0-9]* )
      sed -e 's@#include <X11/Xos.h>@#ifdef HAVE_CONFIG_H\n# include "config.h"\n#endif\n\n&@' \
          -i {exec,pf,xmodmap}.c
    ;;
    luit-[0-9]* )
      sed -e 's@#ifdef HAVE_CONFIG_H@#ifdef _XOPEN_SOURCE\n#undef _XOPEN_SOURCE\n#define _XOPEN_SOURCE 600\n#endif\n\n&@' \
          -i sys.c
    ;;
  esac
  ./configure $XORG_CONFIG
  make
  as_root make install
  popd
  rm -r $packagedir
done

Finally, exit the shell that was started earlier:

exit

Contents

Installed Programs: bdftopcf, iceauth, luit, mkfontdir,mkfontscale, sessreg, setxkbmap, smproxy, x11perf, x11perfcomp, xauth, xcmsdb, xcursorgen, xdpr, xdpyinfo, xdriinfo, xev, xgamma, xhost, xkbbell, xkbcomp, xkbevd, xkbvleds, xkbwatch, xkill, xlsatoms, xlsclients, xmodmap, xpr, xprop, xrandr, xrdb, xrefresh, xset, xsetroot, xvinfo, xwd, xwininfo, and xwud
Installed Libraries: None
Installed Directories: None

Short Descriptions

appres

lists the X application resource database.

bdftopcf

converts an X font from Bitmap Distribution Format to Portable Compiled Format.

iceauth

is the ICE authority file utility.

luit

provides locale and ISO 2022 support for Unicode terminals.

mkfontdir

creates an index of X font files in a directory.

mkfontscale

creates an index of scalable font files for X.

sessreg

manages utmp/wtmp entries for non-init clients.

setxkbmap

sets the keyboard using the X Keyboard Extension.

smproxy

is the Session Manager Proxy.

x11perf

is an X11 server performance test program.

x11perfcomp

is an X11 server performance comparison program.

xauth

is the X authority file utility.

xcmsdb

is the Device Color Characterization utility for the X Color Management System.

xcursorgen

creates an X cursor file from a collection of PNG images.

xdpr

dumps an X window directly to a printer.

xdpyinfo

is a display information utility for X.

xdriinfo

queries configuration information of DRI drivers.

xev

prints contents of X events.

xgamma

alters a monitor's gamma correction through the X server.

xhost

is a server access control program for X.

xkbbell

is an XKB utility program that raises a bell event.

xkbcomp

compiles an XKB keyboard description.

xkbevd

is the XKB event daemon.

xkbvleds

shows the XKB status of keyboard LEDs.

xkbwatch

monitors modifier keys and LEDs.

xkill

kills a client by its X resource.

xlsatoms

lists interned atoms defined on the server.

xlsclients

lists client applications running on a display.

xmodmap

is a utility for modifying keymaps and pointer button mappings in X.

xpr

prints an X window dump.

xprop

is a property displayer for X.

xrandr

is a primitive command line interface to RandR extension.

xrdb

is the X server resource database utility.

xrefresh

refreshes all or part of an X screen.

xset

is the user preference utility for X.

xsetroot

is the root window parameter setting utility for X.

xvinfo

prints out X-Video extension adaptor information.

xwd

dumps an image of an X window.

xwininfo

is a window information utility for X.

xwud

is an image displayer for X.

Last updated on 2013-05-05 18:02:40 +0000