How to configure Xorg and fvwm on x86 Solaris 10 update 10?

I've installed Solaris 10 on P4 machine but, I don't like the current desktop e.g. CDE & JDS so I'd like to replace these with fvwm that comes from sunfreeware packages.
It's on /opt/sfw.
Please give me the steps to configure and run Xorg & fvwm as we do on Linux (with other wms).

Did you see this?

Configuring an X Server in Oracle Solaris - Oracle Solaris 11.1 Desktop Administrator's Guide

What Solaris 10 update are you running ? (cat /etc/release)

Are you running cde login or gdm ? (svcs -a | grep -w login)

@Neo
Yes, I've seen it but, couldn't get much and barely noticed as it's title refers to Solaris 11.
I'm going to go over it again as you say.
Thanks.

--- Post updated at 02:53 PM ---

@jlliagre,
Update 10 (x86) as I mentioned it in the title.
Xorg is running with JDS and CDE. I use JDS.
dtlogin is the most confusing thing I've been facing for awhile
as I can't understand how dtlogin works. I know how to stop, start
and kill dtlogin.
I'd activated gdm via smf but, restored to dtlogin.

--- Post updated at 03:01 PM ---

@jlliagre,
I installed x86 solaris 10, update 10. I mentioned it in the title of my post.
Xorg is running with dtlogin and I've been using JDS for a while.
I'd activated GDM via smf but restored to CDE login.
I follow the instructions from the following link but, missing something.
https://groups.google.com/forum/#!topic/comp.unix.solaris/4TfG-jZuGg4

Okay, better to put this in the post body.
Anyway, why are you running Solaris 10u10 and not Solaris 10u11?

Why?

These instructions are more than 20 years old and about Solaris 2.6. That's four major versions and seven years earlier than Solaris 10.
Not a big surprise they didn't work for you.

In any case, if you don't care about CDE and Gnome, the simpler way to run fvwm would be to disable the graphical login:

dtconfig -d
dtconfig -reset

Then run a shell script that launch what you want, e.g. (to be adjusted with the required window manager and terminal emulator paths):

#!/bin/ksh
/usr/X11/bin/Xorg :0 -depth 24 -nobanner -auth /var/dt/A:000 &
export DISPLAY=:0
sleep 2
/opt/sfw/bin/fvwm &
/usr/X/bin/xterm &
1 Like

jlliagre,

Thank you very much for your help.
It worked exactly what I wanted.

Please tell me which directory I should keep the script in.

I kept it in /usr/dt/bin, named it startx and manually called it (being root of course).
It fired X and xterm appeared but everything was so small and barely readable so I tried to
reconfigure X and miserably failed as I forgot to copy config file that was overwritten
and the error was "/usr/X11/lib/module//amd64/libpcidata.so"
failed to load "pcidata" (loader failed 7).

When I'd started X from your script, mouse'd been working but, later, it stopped working.
I'm going to reinstall the os.

Please tell me where I should put the script.
I, being a non-root user, want to start X from command line.

Thanks again.

P.S I haven't got stable internet connection so I downloaded update 10 because of
the dvd of packages sunfreeware offered. It was the last disc of extra open source
packages. They no longer provide dvd or cd free of cost. I couldn't
download from OpenCSW for the lack of internet connection.

Why did you try to reconfigure X? If the font is too small, just use a larger one...

xterm -fn fontname
1 Like

Please tell me where I should put the script.
I, being a non-root user, want to start X from command line

What makes you think the script location makes any difference? You can put it in the non-root user's home directory, or almost anywhere (/tmp whould be unwise for example).