Xorg Applications

#### Gaming Linux® From Scratch - Version 13.0

### Chapter 14. X11

- Prev

  xbitmaps-1.1.3

- Next

  xcursor-themes-1.0.7

- Up
- Home

# Xorg Applications

## Introduction to Xorg Applications

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

### Note

This may take a while to build. Feel free to do something else while this is building.

- Download: https://xorg.freedesktop.org/archive/individual/app/

### Xorg Applications Dependencies

Required
libpng-1.6.55, libglvnd-1.7.0, xbitmaps-1.1.3, and XCB Utils

## Downloading Xorg Applications

First, create a list of files to be downloaded:

    cat > x7app-7-list << "EOF"
    iceauth-1.0.10.tar.xz
    mkfontscale-1.2.3.tar.xz
    sessreg-1.1.4.tar.xz
    setxkbmap-1.3.4.tar.xz
    smproxy-1.0.8.tar.xz
    xauth-1.1.5.tar.xz
    xcmsdb-1.0.7.tar.xz
    xcursorgen-1.0.9.tar.xz
    xdpyinfo-1.4.0.tar.xz
    xdriinfo-1.0.8.tar.xz
    xev-1.2.6.tar.xz
    xgamma-1.0.8.tar.xz
    xhost-1.0.10.tar.xz
    xinput-1.6.4.tar.xz
    xkbcomp-1.5.0.tar.xz
    xkbevd-1.1.6.tar.xz
    xkbutils-1.0.6.tar.xz
    xkill-1.0.7.tar.xz
    xlsatoms-1.1.4.tar.xz
    xlsclients-1.1.5.tar.xz
    xmessage-1.0.7.tar.xz
    xmodmap-1.0.11.tar.xz
    xpr-1.2.0.tar.xz
    xprop-1.2.8.tar.xz
    xrandr-1.5.3.tar.xz
    xrdb-1.2.2.tar.xz
    xrefresh-1.1.0.tar.xz
    xset-1.2.5.tar.xz
    xsetroot-1.1.3.tar.xz
    xvinfo-1.1.5.tar.xz
    xwd-1.0.9.tar.xz
    xwininfo-1.1.6.tar.xz
    xwud-1.0.7.tar.xz
    EOF

To download the needed files using Wget-1.25.0, use the following commands:

    mkdir x7app &&
    cd x7app &&
    grep -v '^#' ../x7app-7-list | wget -i- -c \
        -B https://xorg.freedesktop.org/archive/individual/app/

## Installation of Xorg Applications

### 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 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 packages by running the following commands:

    for package in $(grep -v '^#' ../x7app-7-list)
    do
      packagedir=${package%.tar.?z*}
      tar -xf $package
      pushd $packagedir
         ./configure $XORG_CONFIG
         make
         as_root make install
      popd
      rm -rf $packagedir
    done

Finally, exit the shell that was started earlier:

    exit

Remove an undocumented script which is reported to be broken (xkeystone provided by the xrandr package):

    as_root rm -f /usr/bin/xkeystone

## Contents

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

### Short Descriptions

iceauth | is the ICE authority file utility
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
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
xinput | is a utility to configure and test X input devices
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
xmessage | displays a message or query in a window
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

- Prev

  xbitmaps-1.1.3

- Next

  xcursor-themes-1.0.7

- Up
- Home