>How to start X normally like RH 6.1 ?
>you mean I need to install a window manager ?
>but how can I install window manger ?
>LEM haven't got " make " !!


Well I have to say that LEM has been designed to be as light as possible.
Therefore it doesn't have all the fancy things and window managers that a
normal distribution has.

LEM comes with Xfree but it doesn't come with all the Xfree Applications!
That means it just comes with the Xserver that allow you to run X
applications.

Now you think about what X applications you want to use and then you install
them on LEM.
then you check the librairies compatibility and add some librairies if
required.

let's take an example (your LEM partition is mouted under /LEM)

Suppose you want to run Xfig (Application to do CAD drawing.) on LEM
-just run xfig on redhat 6.1 and you'll know what it is.

boot redhat 6.1 and find the binary file for xfig.
usually binaries for X app are in /usr/X11R6/bin

copy the binary xfig to /LEM/usr/X11R6/bin

then check the lib compatibility with ldd
do # ldd /usr/X11R6/bin/xfig

that should display something like:

        libjpeg.so.62 => /usr/lib/libjpeg.so.62 (0x4001a000)
        libm.so.6 => /lib/libm.so.6 (0x40039000)
        libXpm.so.4 => /usr/X11R6/lib/libXpm.so.4 (0x40055000)
        libXaw3d.so.6 => /usr/X11R6/lib/libXaw3d.so.6 (0x40062000)
        libXmu.so.6 => /usr/X11R6/lib/libXmu.so.6 (0x400b4000)
        libXt.so.6 => /usr/X11R6/lib/libXt.so.6 (0x400c6000)
        libSM.so.6 => /usr/X11R6/lib/libSM.so.6 (0x40110000)
        libICE.so.6 => /usr/X11R6/lib/libICE.so.6 (0x40119000)
        libXext.so.6 => /usr/X11R6/lib/libXext.so.6 (0x4012e000)
        libX11.so.6 => /usr/X11R6/lib/libX11.so.6 (0x40139000)
        libc.so.6 => /lib/libc.so.6 (0x401d7000)
        /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)

now you know what librairies xfig needs to run OK. so you'll check in LEM
that you've got them.

by default LEM installs the followings libs:

        libm.so.6 => /lib/libm.so.6 (0x40039000)
        libXpm.so.4 => /usr/X11R6/lib/libXpm.so.4 (0x40055000)
        libXaw3d.so.6 => /usr/X11R6/lib/libXaw3d.so.6 (0x40062000)
        libXmu.so.6 => /usr/X11R6/lib/libXmu.so.6 (0x400b4000)
        libXt.so.6 => /usr/X11R6/lib/libXt.so.6 (0x400c6000)
        libSM.so.6 => /usr/X11R6/lib/libSM.so.6 (0x40110000)
        libICE.so.6 => /usr/X11R6/lib/libICE.so.6 (0x40119000)
        libXext.so.6 => /usr/X11R6/lib/libXext.so.6 (0x4012e000)
        libX11.so.6 => /usr/X11R6/lib/libX11.so.6 (0x40139000)
        libc.so.6 => /lib/libc.so.6 (0x401d7000)
        /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)

have a look in /LEM/usr/X11R6/lib and /LEM/lib

therefore to get xfig to run you need to add the library libjpeg.so.62

so you do # cp -av /usr/lib/libjpeg.so.62* /lem/usr/lib

that will copy the library libjpeg.so.62.0 as well as the symbolic link
libjpeg.so.62
make sure you copy the library and the symbolic link (not just the symbolic
link)

now you may need a window manager as well....
twm should do the job....

so copy twm to LEM

#cp -av /usr/X11R6/bin/twm /LEM/usr/X11R6/bin

all the librairies needed by twm are already in LEM so don't need to add any

then run LEM and do ldconfig
that will update the ld cache so it knows that it's got the new library.


edit you /usr/X11R6/bin/startx as follow:

#!/bin/bash
#LEM minimal startx
#S.Huet <[EMAIL PROTECTED]>

PATH=/bin:/usr/bin:/usr/X11R6/bin:.

xclients=/tmp/lemxclients
xinitres=/tmp/lemxinitres

# xclients
cat > ${xclients} <<END_xclients

   twm & #start the window manager
   xfig  #start xfig when you start

END_xclients

# xinitres
cat > ${xinitres} <<END_xinitres
   exec ${xclients}
END_xinitres

# change permission
chmod +x ${xclients}

# run X
xinit ${xinitres} -- /usr/X11R6/bin/X > /var/log/xinit.log 1>&2
rm -f /tmp/lemx*



and now if you do startx you will see xfig (normally)
and tom window manager

have you run xf86config before starting X?

it might be useful to do so

good luck






--
To unsubscribe from this list, send a message to [EMAIL PROTECTED]
with the command "unsubscribe linux-embedded" in the message body.
For more information, see <http://waste.org/mail/linux-embedded>.

Reply via email to