<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML ><HEAD ><TITLE >1st X server configuration file</TITLE ><META NAME="GENERATOR" CONTENT="Modular DocBook HTML Stylesheet Version 1.7"><LINK REL="HOME" TITLE="XFree Local Multi-User HOWTO" HREF="index.html"><LINK REL="UP" TITLE="Tweaking it" HREF="automation.html"><LINK REL="PREVIOUS" TITLE="Customising the login screen" HREF="automation_login_screen.html"><LINK REL="NEXT" TITLE="Number X servers started by Display managers" HREF="auto_dm_confs.html"></HEAD ><BODY CLASS="sect1" BGCOLOR="#FFFFFF" TEXT="#000000" LINK="#0000FF" VLINK="#840084" ALINK="#0000FF" ><DIV CLASS="NAVHEADER" ><TABLE SUMMARY="Header navigation table" WIDTH="100%" BORDER="0" CELLPADDING="0" CELLSPACING="0" ><TR ><TH COLSPAN="3" ALIGN="center" >XFree Local Multi-User HOWTO</TH ></TR ><TR ><TD WIDTH="10%" ALIGN="left" VALIGN="bottom" ><A HREF="automation_login_screen.html" ACCESSKEY="P" >Prev</A ></TD ><TD WIDTH="80%" ALIGN="center" VALIGN="bottom" >Chapter 7. Tweaking it</TD ><TD WIDTH="10%" ALIGN="right" VALIGN="bottom" ><A HREF="auto_dm_confs.html" ACCESSKEY="N" >Next</A ></TD ></TR ></TABLE ><HR ALIGN="LEFT" WIDTH="100%"></DIV ><DIV CLASS="sect1" ><H1 CLASS="sect1" ><A NAME="first_x_server" ></A >7.3. 1st X server configuration file</H1 ><P >A small part of the Mandrake init scripts <TT CLASS="filename" >/etc/rc.d/rc.sysinit</TT > (you can append it to yours if you are missing something similar):</P ><TABLE BORDER="0" BGCOLOR="#E0E0E0" WIDTH="100%" ><TR ><TD ><FONT COLOR="#000000" ><PRE CLASS="programlisting" > ----------------------------------------------------------------------------------- # (pixel) a kind of profile for XF86Config # if no XFree=XXX given on kernel command-line, restore XF86Config.standard for i in XF86Config XF86Config-4; do if [ -L "/etc/X11/$i" ]; then XFree=`sed -n 's/.*XFree=\(\w*\).*/\1/p' /proc/cmdline` [ -n "$XFree" ] || XFree=standard [ -r "/etc/X11/$i.$XFree" ] && ln -sf "$i.$XFree" "/etc/X11/$i" fi done ----------------------------------------------------------------------------------- </PRE ></FONT ></TD ></TR ></TABLE ><P >Move your <TT CLASS="filename" >XF86Config-4</TT > file (the one for standard kernel) to <TT CLASS="filename" >XF86Config-4.standard</TT >, create a symbolic link from it to <TT CLASS="filename" >XF86Config-4</TT >, and move the <TT CLASS="filename" >XF86Config-4</TT > file (the one for Backstreet Ruby) to <TT CLASS="filename" >XF86Config-4.bruby</TT >. For Ruby/Backstreet Ruby kernels, add to the append line in <TT CLASS="filename" >/etc/lilo.conf</TT >, or on boot prompt <SPAN CLASS="QUOTE" >"XFree=bruby"</SPAN >, leave the standard kernel as is.</P ><P >Results:</P ><P >Booting with <SPAN CLASS="QUOTE" >"XFree=standard"</SPAN > or without <SPAN CLASS="QUOTE" >"XFree="</SPAN > (boot prompt or <TT CLASS="filename" >lilo.conf</TT >) will result in linking <TT CLASS="filename" >XF86Config-4.standard</TT > to <TT CLASS="filename" >XF86Config-4</TT >; booting with <SPAN CLASS="QUOTE" >"XFree=bruby"</SPAN > will link <TT CLASS="filename" >XF86Config-4.bruby</TT > to <TT CLASS="filename" >XF86Config-4</TT >, so in both scenarios XFree can be started with the proper configuration file for the first X server.</P ><P >And what about the other X servers?</P ><P >Under a standard kernel you cannot use several independent X servers, so you should use the other XFree configuration files only under Ruby/Backstreet Ruby - there is no need for different configuration files under standard & bruby kernels.</P ></DIV ><DIV CLASS="NAVFOOTER" ><HR ALIGN="LEFT" WIDTH="100%"><TABLE SUMMARY="Footer navigation table" WIDTH="100%" BORDER="0" CELLPADDING="0" CELLSPACING="0" ><TR ><TD WIDTH="33%" ALIGN="left" VALIGN="top" ><A HREF="automation_login_screen.html" ACCESSKEY="P" >Prev</A ></TD ><TD WIDTH="34%" ALIGN="center" VALIGN="top" ><A HREF="index.html" ACCESSKEY="H" >Home</A ></TD ><TD WIDTH="33%" ALIGN="right" VALIGN="top" ><A HREF="auto_dm_confs.html" ACCESSKEY="N" >Next</A ></TD ></TR ><TR ><TD WIDTH="33%" ALIGN="left" VALIGN="top" >Customising the login screen</TD ><TD WIDTH="34%" ALIGN="center" VALIGN="top" ><A HREF="automation.html" ACCESSKEY="U" >Up</A ></TD ><TD WIDTH="33%" ALIGN="right" VALIGN="top" >Number X servers started by Display managers</TD ></TR ></TABLE ></DIV ></BODY ></HTML >