xinit-1.4.4

#### Beyond Linux® From Scratch (System V Edition) - Version r13.0-791

### Chapter 24. Graphical Environments

- Prev

  xclock-1.1.1

- Next

  Xorg-7 Testing and Configuration

- Up
- Home

# xinit-1.4.4

## Introduction to xinit

The xinit package contains a usable script to start the xserver.

### Note

Development versions of BLFS may not build or run some packages properly if LFS or dependencies have been updated since the most recent stable versions of the books.

### Package Information

- Download (HTTP): https://www.x.org/pub/individual/app/xinit-1.4.4.tar.xz

- Download MD5 sum: e7430a710261c9129b1280f26cb159a5

- Download size: 160 KB

- Estimated disk space required: 1.4 MB

- Estimated build time: less than 0.1 SBU

### xinit Dependencies

#### Required

Xorg Libraries

#### Recommended (runtime only)

twm-1.0.13.1, xclock-1.1.1, and xterm-410 (used in the default `xinitrc` file)

## Installation of xinit

Install xinit by running the following commands:

    ./configure $XORG_CONFIG --with-xinitdir=/etc/X11/app-defaults &&
    make

This package does not come with a test suite.

Now, as the `root` user:

    make install &&
    ldconfig

### Note

If starting Xorg from the command line, the default instructions above start Xorg on the current virtual terminal. It may be convenient to see Xorg and associated application messages on the current virtual terminal, normally tty1, and start the graphical environment on the first available unused virtual terminal, normally tty7. To do this, set the suid bit on the Xorg application as the `root` user:

    chmod u+s $XORG_PREFIX/bin/Xorg

At this point you can start Xorg on virtual terminal 7 with startx <client arguments> -- vt7. Now you can toggle between tty1 and tty7 with the Ctrl-Alt-F1 and Ctrl-Alt-F7 key combinations.

To automatically start Xorg on the first available virtual terminal, modify the startx script as the `root` user with:

    sed -i '/$serverargs $vtarg/ s/serverargs/: #&/' $XORG_PREFIX/bin/startx

After this change, the virtual terminal does not need to be specified on the startx command line.

## Contents

Installed Programs: xinit and startx
Installed Libraries: None
Installed Directories: None

### Short Descriptions

startx | initializes an X session
xinit | is the X Window System initializer

- Prev

  xclock-1.1.1

- Next

  Xorg-7 Testing and Configuration

- Up
- Home