XFree86 4.3.0

Booting and Analysing
- Perform this stage using your Core Linux PC.
- Boot your Core Linux PC.
- Login as
root. You will need to enter the password at the prompt.- Wait for the following text to appear:
localhost login: - Type
rootand press Enter. - The screen will display this message:
Password: - Enter the password for
rootthat you set earlier. - You will be shown a prompt that looks like this:
[~]#
- Wait for the following text to appear:
- Use wget to download the XFree86
Xinstall.shscript from the.earth.li/pub/XFree86/4.3.0.- At the system prompt enter:
wget http://the.earth.li/pub/XFree86/4.3.0/Xinstall.sh - The wget program will download the file, and finish with the line:
'Xinstall.sh' saved - [36185/36185]
- At the system prompt enter:
- Run the
Xinstall.shscript using the commandsh Xinstall.sh -check. Note which binaries are correct for your system.- At the system prompt enter:
sh Xinstall.sh -check - The script will run and display information about your kernel, architecture and libc version. Look for the line which details the correct binaries for your platform. In this example, the line says:
Make a note of this string.
Binary distribution name is 'Linux-ix86-glibc23'
- At the system prompt enter:
Preparation
- Perform this stage using your functioning PC.
- Having determined the correct binaries for your system, download the following essential files from the XFree86 4.3.0 directory of a mirror of www.xfree86.org:
You should download the following optional module file, which provides headers against which window managers can later be compiled:
Xinstall.sh The installer script extract The utility for extracting tarballs Xbin.tgz X clients/utilities and run-time libraries Xlib.tgz Some data files required at run-time Xman.tgz Manual pages Xdoc.tgz XFree86 documentation Xfnts.tgz Base set of fonts Xfenc.tgz Base set of font encoding data Xetc.tgz Run-time configuration files Xvar.tgz Run-time data Xxserv.tgz XFree86 X server Xmod.tgz XFree86 X server modules This example assumes that these other optional module files are downloaded, although they are not essential for operation:Xprog.tgz X header files, config files and compile-time libs You may also wish to download some of the other optional module files:Xfsrv.tgz Font server Xnest.tgz Nested X server Xprt.tgz X Print server Xvfb.tgz Virtual framebuffer X server Xf100.tgz 100dpi fonts Xfcyr.tgz Cyrillic fonts Xfscl.tgz Scalable fonts (Speedo, Type1 and TrueType) Xhtml.tgz HTML version of the documentation Xps.tgz PostScript version of the documentation Xjdoc.tgz Documentation in Japanese - Visit www.xfree86.org and click on the "Mirror sites for downloading" link.
- Scroll down the list of mirror sites. Choose one close to you.
- This example uses an HTTP mirror, rather than an FTP mirror.
- Copy and paste the URL of your chosen mirror into the address bar of your browser. Hit enter.
- Navigate to the
4.3.0directory. - Navigate to the
binariesdirectory. - Navigate to the directory that matches the string output from the
Xinstall.shscipt. In this example the directoryLinux-ix86-glibc23is used. - Click to download each of the files listed above in turn.
- You will be asked to where you wish to save the file. Chose a safe place and make a note of it.
- The files in this example about 64Mb in total and will about 5 hours to download over a modem, but a lot less over a broadband connection.
- If you are using a download accelerator program, it will save the file to your default download directory.
- Burn the downloaded files to a CD. This page assumes that the subdirectory
XFree864.3.0is used for the files. The CD-ROM can be a multi-session disk.- Use your CD burning software to create an ISO9660 disc image with the files for XFree86 4.3.0 in a directory called
XFree864.3.0. - Burn the CD and verify the data stored on it.
- Use your CD burning software to create an ISO9660 disc image with the files for XFree86 4.3.0 in a directory called
Installing the XFree86 4.3.0 binaries
- Perform this stage and subsequent stages, unless otherwise stated, using your Core Linux PC.
- Place the CD-R in the CD-ROM drive on your Core Linux system. Mount the CD-ROM drive under
/mnt/cdrom.- At the prompt enter:
mount /dev/hdb /mnt/cdrom - You will see the following line appear:
mount: block device /dev/hdb is write-protected, mounting read-only
- At the prompt enter:
- Change to the
XFree864.3.0directory on the CD-R.- At the prompt enter:
cd /mnt/cdrom/XFree864.3.0 - The prompt will change to:
[/mnt/cdrom/XFree864.3.0]#
- At the prompt enter:
- Make a temporary directory for the install files.
- At the system prompt enter:
mkdir /tmp/XFree864.3.0 - The system will not display a message if everything is OK.
- At the system prompt enter:
- Copy all the files from
/mnt/cdrom/XFree864.3.0to/tmp/XFree864.3.0- At the system prompt enter:
cp * /tmp/XFree864.3.0 - The system will not display a message if everything is OK.
- At the system prompt enter:
- Change to the
/tmp/XFree864.3.0directory.- At the prompt enter:
cd /tmp/XFree864.3.0 - The prompt will change to:
[/tmp/XFree864.3.0]#
- At the prompt enter:
- Run the
Xinstall.shscript.- At the prompt enter:
sh Xinstall.sh - The system will display a message prompting you to backup any existing configuration and asking you if you want to proceed. Enter
y. - You will be asked whether you want to install each of the optional modules in turn. Enter
yfor those you do want to install. Enternfor those you don't want to install. - You will be asked whether you want to install new xterm terminfo entries now. Enter
y. - You will be asked whether you want to install new OpenGL links in your system directories. Enter
y. - You will be asked whether you want to install a link to rstart in your
/usr/bindirectory. If you wish to use rstart via a remote terminal, entery. If not, entern. - The script finishes with the line:
Installation complete.
- At the prompt enter:
Prepare your system to run XFree86
- Change to the
/etcdirectory.- At the system prompt enter:
cd /etc - The prompt will change to:
[/etc]#
- At the system prompt enter:
- Add the following lines to the
ld.so.conffile:/lib
/usr/lib- At the prompt enter:
nano ld.so.conf - The screen will show the contents of the empty
ld.so.confwith information about the file at the top and bottom of the screen. - Add the following text to the file:
/lib
/usr/lib - Save the file and exit the text editor.
- Press Ctrl+x on the keyboard.
- The contents of the white line at the bottom of the screen will change to read:
Save modified buffer (ANSWERING "No" WILL DESTROY CHANGES) ? - Type
y. - The contents of the white line at the bottom of the screen will change to read:
File Name to write: ld.so.conf - Press Enter.
- You will be returned to the system prompt.
- At the prompt enter:
- Run the program
ldconfig.- At the system prompt enter:
ldconfig - The system will not display a message if everything is OK.
- At the system prompt enter:
- Add a link to the device file to which your mouse is connected called
/dev/mouse.- This example uses a PS/2 mouse on device
/dev/psaux. - At the system prompt enter:
ln -s /dev/psaux /dev/mouse - The system will not display a message if everything is OK.
- This example uses a PS/2 mouse on device
- Add a link to the directory
/usr/X11R6/include/X11called/usr/include/X11.- At the system prompt enter:
ln -s /usr/X11R6/include/X11 /usr/include/X11 - The system will not display a message if everything is OK.
- At the system prompt enter:
- Add a link to the directory
/usr/X11R6called/usr/X11.- At the system prompt enter:
ln -s /usr/X11R6 /usr/X11 - The system will not display a message if everything is OK.
- At the system prompt enter:
- Add the directory
/usr/X11/binto the$PATHenviroment variable.- At the prompt enter:
nano /root/.profile - The screen will show the contents of
/root/.profilewith information about the file at the top and bottom of the screen. - Change the first line from:
to
export PATH="$PATH:/sbin:/usr/sbin:/usr/local/sbin"export PATH="$PATH:/sbin:/usr/sbin:/usr/local/sbin:/usr/X11/bin" - Save the file and exit the text editor.
- Press Ctrl+x on the keyboard.
- The contents of the white line at the bottom of the screen will change to read:
Save modified buffer (ANSWERING "No" WILL DESTROY CHANGES) ? - Type
y. - The contents of the white line at the bottom of the screen will change to read:
File Name to write: /root/.profile - Press Enter.
- You will be returned to the system prompt.
- At the prompt enter:
- In order to activate the changes to the
$PATHenviroment variable, you will have to logout and log back in again.- At the system prompt enter:
logout - You will be logged out and returned to the login prompt.
- Login as
root. You will need to enter the password at the prompt.- Type
rootand press Enter. - The screen will display this message:
Password: - Enter the password for
rootthat you set earlier. - You will be shown a prompt that looks like this:
[~]#
- Type
- At the system prompt enter:
Configuring your X server
- Run the program
XFree86with the argument-configure.- At the system prompt enter:
XFree86 -configure - The system will display information that is has gathered about your system.
- On the test system this included an error about a "glide module". However, on the test system this did not cause any problems after this point.
- At the system prompt enter:
- Test the configuration with the command
XFree86 -xf86config /root/XF86Config.new.- At the prompt enter:
XFree86 -xf86config /root/XF86Config.new - The screen will change to show a basic X screen, with a cursor. The cursor should respond to mouse movememnts.
- To exit the X test, hit Ctrl-Alt-Backspace. You may find you have to hit an additional key to restart the terminal display.
- At the prompt enter:
- Once you have established basic X functionallity, you can set up you configuration file for your system. Copy the file
/root/XF86Config.newto/root/XF86Config.- At the prompt enter:
cp /root/XF86Config.new /root/XF86Config - The system will not display a message if everything is OK.
- At the prompt enter:
- Edit the
/root/XF86Configfile to include details about your system configuration.- At the prompt enter:
nano /root/XF86Config - The screen will show the contents of
/root/XF86Configwith information about the file at the top and bottom of the screen. - Scroll down the file until you find the line
Section "Monitor". Change the details of this section to include that of your monitor.- The test system uses a Compaq 171FS monitor, so the Monitor section was changed to read:
Identifier "Monitor0"
VendorName "Compaq"
ModelName "171FS"
HorizSync 30-58
VertRefresh 50-100
- The test system uses a Compaq 171FS monitor, so the Monitor section was changed to read:
- Scroll down the file until you find the line
Section "Screen". Change the details of this section to your desired desktop setup.- The test system is capable of 1024x768 at 16-bit, so the Screen section was changed to read:
Identifier "Screen0"
Device "Card0"
Monitor "Monitor0"
DefaultDepth 16
- The test system is capable of 1024x768 at 16-bit, so the Screen section was changed to read:
- The Display subsection was changed to read:
Depth 16
Modes "1024x768"
- At the prompt enter:
- Save the file and exit the text editor.
- Press Ctrl+x on the keyboard.
- The contents of the white line at the bottom of the screen will change to read:
Save modified buffer (ANSWERING "No" WILL DESTROY CHANGES) ? - Type
y. - The contents of the white line at the bottom of the screen will change to read:
File Name to write: /etc/rc.d/rc.ha - Press Enter.
- You will be returned to the system prompt.
Further Testing
- Start the X server using the command
startx.- At the prompt enter:
startx - The X server should start with your new settings. You will be presented with a simple screen of three xterm windows and a clock display, running under the twm window manager.
- You may notice errors with regard to the mcookie authentication program, which isn't installed with Core Linux. On the test system, X ran without problems despite this error.
- To exit X enter
exitin the right-hand xterm window. You will be returned to the command prompt.
- At the prompt enter:

The text of this page is licensed under a Creative Commons License.
