SUMMARY: Adding fonts. Starting X session from CDE's login.

From: Vitaly Beliaev (
Date: Thu Aug 14 1997 - 03:37:14 CDT

Salutations managers!

First, I would like to make an obeisance to all people who
had time to answere my questions:


Thanks a lot for your hints and help guys!

And now, about my original letter:

>Hello sunners!
>Two questions for Solaris 2.5.1's CDE & Open Windows gurus:
>1. I can not start Open Windows session while running
> it from CDE's login screen. (dtlogin). I choose
> session - Open Windows, then start it, and after
> several seconds I'm kicked off back to dtlogin
> screen.
>2. After installation of new russian fonts into
> /usr/openwin/lib/X11/fonts/russian
> I do:
> xset +fp /usr/openwin/lib/X11/fonts/russian
> and get this error message:
>X Error of failed request: BadValue (integer parameter out of range for operation)
> Major opcode of failed request: 51 (X_SetFontPath)
> Value in failed request: 0x0
> Serial number of failed request: 8
> Current serial number in output stream: 10
>What does it mean? And why do I unable to add additional fonts?
>I would be very grateful for a some sort of little FAQ regarding
>secrets of CDE startup scripts, adding fonts, mapping keyboard,etc.
>Thanks a lot in advance for your attention! Summary will always follow.


1. Adding new fonts to system.
        Usually fonts for X windows are residing in /usr/openwin/lib/X11/fonts.
        You can set up new fonts into that directory or somewhere to another
                Have a look to the list of new fonts files and if it doesn't
        contain fonts.dir file, then create it by using the command mkfontdir.
        You can also set aliases for new fonts by manually creating the
        file fonts.alias.
                Now check permissions of new fonts files!!!! They must be
        readable for all users. That was my mistake, as my umask was 022, and
        all files had permission 700. So that's why I got error message
        mentioned above.
                Suppose you installed new fonts into /path/newfonts directory.
        Now it's time to add them to your system:
                xset +fp /path/newfonts
        If you are adding national fonts, then you have to set up national
        locale descriptions to /usr/lib/locale/your_locale_name.
        And then set environment variable LC_CTYPE = your_locale_name.
        There something else to be done, but it does not pertain to the
        subject of the current summary.

2. Starting Open Windows session from CDE's login screen.
        a) If you have your own file $HOME/.xinitrc, then make sure it
                contains an application on the last line, that is started
                in foreground mode. Don't use & at the end of application's
                command line.
        b) if you didn't make any changes to system files residing in
                /usr/dt/config or /etc/dt, then I would recommend to look
                through the file /usr/dt/config/Xservers. As for my
                Sparc station ELC, it contained incorrect line which starts
                X server. You may wish to make some changes to that file, as
                it contains comprehensive description for each entry.
                        I used the following line for my station:
                sparky:0 Local local@console /usr/openwin/bin/Xsun :0

To get additional information I would advice to read "CDE Advanced User's And
System Administration Guide" answerbook.

Hope this little summary will help you!

Best Regards,

 Vitaly Belyaev: Unix system administrator, JVSC MMK, RUSSIA
 e-mail: voice: +7 (3511)-333824
 Before you judge someone, stop and remember, we all see the same sun.
                                                       Mr. President

This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:12:00 CDT