View previous topic :: View next topic |
Author |
Message |
bgrundy n00b
Joined: 15 Feb 2003 Posts: 38 Location: Baltimore Maryland
|
Posted: Fri May 23, 2003 1:25 pm Post subject: X and Font nightmare |
|
|
I'm not usually a complete idiot, but here's another one that has me stumpted.
I cannot start X as a user. As root it starts fine. If I try to start X as a user I get: Code: | XFree86 Version 4.3.0
Release Date: 27 February 2003
X Protocol Version 11, Revision 0, Release 6.6
Build Operating System: Linux 2.4.20 i686 [ELF]
Build Date: 03 May 2003
Before reporting problems, check http://www.XFree86.Org/
to make sure that you have the latest version.
Module Loader present
Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/XFree86.0.log", Time: Fri May 23 09:03:01 2003
(==) Using config file: "/etc/X11/XF86Config"
Using vt 7
(II) [GLX]: Initializing GLX extension
SESSION_MANAGER=local/jupiter:/tmp/.ICE-unix/14221
** (gnome-session:14221): WARNING **: Cannot open font file for font Verdana 10
** (gnome-session:14221): WARNING **: Cannot open fallback font, nothing to do
waiting for X server to shut down |
XF86Config has the fontpath listed for the Verdana font. Code: | FontPath "/usr/X11R6/lib/X11/fonts/truetype/"
FontPath "/usr/X11R6/lib/X11/fonts/Type1/"
FontPath "/usr/X11R6/lib/X11/fonts/local/"
FontPath "/usr/X11R6/lib/X11/fonts/misc/"
FontPath "/usr/X11R6/lib/X11/fonts/75dpi/:unscaled"
FontPath "/usr/X11R6/lib/X11/fonts/100dpi/:unscaled"
FontPath "/usr/X11R6/lib/X11/fonts/Speedo/"
FontPath "/usr/X11R6/lib/X11/fonts/75dpi/"
FontPath "/usr/X11R6/lib/X11/fonts/100dpi/" |
The font is readable by all. Code: | bash-2.05b# cd /usr/X11R6/lib/X11/fonts/truetype
bash-2.05b# ls -l ver* Ver*
-rw-r--r-- 1 root root 139640 May 23 08:52 Verdana.ttf
-rw-r--r-- 1 root root 136032 May 23 08:52 Verdanab.ttf
-rw-r--r-- 1 root root 154264 May 23 08:53 Verdanai.ttf
-rw-r--r-- 1 root root 139640 May 3 15:10 verdana.ttf
-rw-r--r-- 1 root root 136032 May 3 15:10 verdanab.ttf
-rw-r--r-- 1 root root 154264 May 3 15:10 verdanai.ttf
-rw-r--r-- 1 root root 153324 May 3 15:10 verdanaz.ttf |
Ive tried to remove config directories in ~user (like .gnome .gnome2, etc.) in and effort to get the default config like root's back. Again, I dont' unnerstand why root can start X just fine.
Anyone know where else I can look for the call to the Verdana font? Thanks.
. |
|
Back to top |
|
|
ralph Advocate
Joined: 02 Mar 2003 Posts: 2001 Location: Hamburg
|
Posted: Fri May 23, 2003 1:59 pm Post subject: |
|
|
don't know if this helps, but you could try to run fc-cache -f as root.
good luck! |
|
Back to top |
|
|
dev Apprentice
Joined: 06 Jul 2002 Posts: 248 Location: San Antonio, TX
|
Posted: Fri May 23, 2003 2:21 pm Post subject: |
|
|
You can try deleting all the fonts.* files in your truetype dir.
Run ttmkfdir in that dir, then mkfontdir, then fc-cache.
Good luck! |
|
Back to top |
|
|
grant.mcdorman Apprentice
Joined: 29 Jan 2003 Posts: 295 Location: Toronto, ON, Canada
|
Posted: Fri May 23, 2003 6:47 pm Post subject: Are the *directories* accessable? |
|
|
Do ls -l in /usr/X11R6/lib/X11/fonts and check those directories.
You can also do (as a user): (switch back to the virutal console) Code: | export DISPLAY=:0
xset -q :0
xlsfonts -fn '*verdana*'
xlsfonts -fn fixed
xfd -fn '*verdana*'
xfd -fn fixed
|
This should give some clue as to a) what your font path is and b) what fonts are failing. |
|
Back to top |
|
|
aardvark Guru
Joined: 30 Jun 2002 Posts: 576
|
Posted: Fri May 23, 2003 8:07 pm Post subject: |
|
|
dev wrote: | You can try deleting all the fonts.* files in your truetype dir.
Run ttmkfdir in that dir, then mkfontdir, then fc-cache.
Good luck! |
Enormously OT: Whaaaaa your avatar ! It's from the weird "rejected" movie with the guy and his bleeding ....
Is there more of that funny stuff?
I only got the one film..... |
|
Back to top |
|
|
dev Apprentice
Joined: 06 Jul 2002 Posts: 248 Location: San Antonio, TX
|
Posted: Fri May 23, 2003 8:28 pm Post subject: |
|
|
I'm pretty sure there's just one movie. Never seen any others |
|
Back to top |
|
|
bgrundy n00b
Joined: 15 Feb 2003 Posts: 38 Location: Baltimore Maryland
|
Posted: Fri May 23, 2003 8:58 pm Post subject: |
|
|
dev wrote: | You can try deleting all the fonts.* files in your truetype dir.
Run ttmkfdir in that dir, then mkfontdir, then fc-cache.
Good luck! |
Well, I did a little reading, then started with deleting the fonts.* file in /usr/X11R6/lib/X11/fonts/truetype, then ran the other commands as specified.
Now not only does the user bomb out, but so does root. This time there's no error message in the logs, simply "exec gnome-session failed" for the user. Root starts the X server and then all I get is a black background with the X pointer. No messgaes
At this point, I just need X back. If anyone can tell me how to get defaults back on (even if it takes unmerging and re-emerging something, ugly as that sounds), I'm up for it. I'm actually posting this from IE in XP |
|
Back to top |
|
|
grant.mcdorman Apprentice
Joined: 29 Jan 2003 Posts: 295 Location: Toronto, ON, Canada
|
Posted: Fri May 23, 2003 10:44 pm Post subject: |
|
|
bgrundy wrote: | dev wrote: | You can try deleting all the fonts.* files in your truetype dir.
Run ttmkfdir in that dir, then mkfontdir, then fc-cache.
Good luck! |
Well, I did a little reading, then started with deleting the fonts.* file in /usr/X11R6/lib/X11/fonts/truetype, then ran the other commands as specified.
Now not only does the user bomb out, but so does root. This time there's no error message in the logs, simply "exec gnome-session failed" for the user. Root starts the X server and then all I get is a black background with the X pointer. No messgaes
At this point, I just need X back. If anyone can tell me how to get defaults back on (even if it takes unmerging and re-emerging something, ugly as that sounds), I'm up for it. I'm actually posting this from IE in XP |
Sounds like you've blown away fonts that Gnome wants.
Unfortunately, that directory belongs to xfree. Deleting the directory and re-emergeing xfree will rebuild it - but it's expensive.
Did you check permissions on files after you used ttmkfdir?
Do you have a world-readable fonts.dir in the truetype directory? Code: | grant@mcd1800 truetype $ ls -l fonts.dir fonts.cache-1
-rw-r--r-- 1 root root 26447 2003-05-17 15:17 fonts.cache-1
-rw-r--r-- 1 root root 55040 2003-05-07 21:35 fonts.dir
grant@mcd1800 truetype $ ls -ld .
drwxr-xr-x 2 root root 4096 2003-05-11 17:08 ./
|
For XFree86 4.3, it should start with Code: | 766
andalemo.ttf -monotype-Andale Mono-medium-r-normal--0-0-0-0-m-0-adobe-standard
andalemo.ttf -monotype-Andale Mono-medium-r-normal--0-0-0-0-m-0-ascii-0
andalemo.ttf -monotype-Andale Mono-medium-r-normal--0-0-0-0-m-0-ibm-cp437
andalemo.ttf -monotype-Andale Mono-medium-r-normal--0-0-0-0-m-0-ibm-cp850
andalemo.ttf -monotype-Andale Mono-medium-r-normal--0-0-0-0-m-0-ibm-cp852
|
and have 767 lines (one plus the value in the first line).
Note, by the way, the Webdings font in that directory appears to be broken (or at least severely disliked by winex). Deleting the two entries for that font help winex, and don't seem to cause any problem (resulting in 764 entries instead of 766).
On the other hand, I don't know where the Verdana*.ttf entries in your font directory came from - I don't have them myself. Perhaps that's the problem. I have the following ttf files: Code: | grant@mcd1800 truetype $ ls -l *.ttf
-rw-r--r-- 1 root root 105468 2003-04-27 00:39 andalemo.ttf
-rw-r--r-- 1 root root 286620 2003-04-27 00:39 arialbd.ttf
-rw-r--r-- 1 root root 224692 2003-04-27 00:39 arialbi.ttf
-rw-r--r-- 1 root root 206132 2003-04-27 00:39 ariali.ttf
-rw-r--r-- 1 root root 275572 2003-04-27 00:39 arial.ttf
-rw-r--r-- 1 root root 117028 2003-04-27 00:39 ariblk.ttf
-rw-r--r-- 1 root root 111476 2003-04-27 00:39 comicbd.ttf
-rw-r--r-- 1 root root 126364 2003-04-27 00:39 comic.ttf
-rw-r--r-- 1 root root 311508 2003-04-27 00:39 courbd.ttf
-rw-r--r-- 1 root root 234788 2003-04-27 00:39 courbi.ttf
-rw-r--r-- 1 root root 244156 2003-04-27 00:39 couri.ttf
-rw-r--r-- 1 root root 302688 2003-04-27 00:39 cour.ttf
-rw-r--r-- 1 root root 139584 2003-04-27 00:39 georgiab.ttf
-rw-r--r-- 1 root root 156668 2003-04-27 00:39 georgiai.ttf
-rw-r--r-- 1 root root 142964 2003-04-27 00:39 georgia.ttf
-rw-r--r-- 1 root root 158796 2003-04-27 00:39 georgiaz.ttf
-rw-r--r-- 1 root root 136076 2003-04-27 00:39 impact.ttf
-rw-r--r-- 1 root root 333900 2003-04-27 00:39 timesbd.ttf
-rw-r--r-- 1 root root 238612 2003-04-27 00:39 timesbi.ttf
-rw-r--r-- 1 root root 247092 2003-04-27 00:39 timesi.ttf
-rw-r--r-- 1 root root 330412 2003-04-27 00:39 times.ttf
-rw-r--r-- 1 root root 123828 2003-04-27 00:39 trebucbd.ttf
-rw-r--r-- 1 root root 131188 2003-04-27 00:39 trebucbi.ttf
-rw-r--r-- 1 root root 139288 2003-04-27 00:39 trebucit.ttf
-rw-r--r-- 1 root root 126796 2003-04-27 00:39 trebuc.ttf
-rw-r--r-- 1 root root 136032 2003-04-27 00:39 verdanab.ttf
-rw-r--r-- 1 root root 154264 2003-04-27 00:39 verdanai.ttf
-rw-r--r-- 1 root root 139640 2003-04-27 00:39 verdana.ttf
-rw-r--r-- 1 root root 153324 2003-04-27 00:39 verdanaz.ttf
-rw-r--r-- 1 root root 118752 2003-04-27 00:39 webdings.ttf
|
(Don't copy Winders fonts into this directory, by the way - make a new directory for them.) |
|
Back to top |
|
|
dev Apprentice
Joined: 06 Jul 2002 Posts: 248 Location: San Antonio, TX
|
Posted: Sat May 24, 2003 12:56 pm Post subject: |
|
|
bgrundy wrote: | dev wrote: | You can try deleting all the fonts.* files in your truetype dir.
Run ttmkfdir in that dir, then mkfontdir, then fc-cache.
Good luck! |
Well, I did a little reading, then started with deleting the fonts.* file in /usr/X11R6/lib/X11/fonts/truetype, then ran the other commands as specified.
Now not only does the user bomb out, but so does root. This time there's no error message in the logs, simply "exec gnome-session failed" for the user. Root starts the X server and then all I get is a black background with the X pointer. No messgaes
At this point, I just need X back. If anyone can tell me how to get defaults back on (even if it takes unmerging and re-emerging something, ugly as that sounds), I'm up for it. I'm actually posting this from IE in XP |
I went ahead and did the same on my pc. Been a loooong time since I've had to do it. Everything turned out aok again for me. What files do you have in your truetype dir?
Code: | -rw-r--r-- 1 root root 39156 May 24 07:54 fonts.cache-1
-rw-r--r-- 1 root root 73955 May 24 07:54 fonts.dir
-rw-r--r-- 1 root root 73955 May 24 07:54 fonts.scale
|
|
|
Back to top |
|
|
bgrundy n00b
Joined: 15 Feb 2003 Posts: 38 Location: Baltimore Maryland
|
Posted: Sat May 24, 2003 1:47 pm Post subject: |
|
|
grant.mcdorman wrote: |
Sounds like you've blown away fonts that Gnome wants.
Unfortunately, that directory belongs to xfree. Deleting the directory and re-emergeing xfree will rebuild it - but it's expensive. |
Okay, I'm not real good at fonts, apparently. I tried the steps above (reading as much as I could before hand to try and understand what was going on, and it still did not work. So I went ahead and del'd that dir (/usr/X11R6/lib/X11/fonts/truetype) and unmerged xfree and then re-emerged it (4.3.0-r2). Now X won't start for anyone. Here's what I get: Code: | XFree86 Version 4.3.0
Release Date: 27 February 2003
X Protocol Version 11, Revision 0, Release 6.6
Build Operating System: Linux 2.4.20 i686 [ELF]
Build Date: 23 May 2003
Before reporting problems, check http://www.XFree86.Org/
to make sure that you have the latest version.
Module Loader present
Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/XFree86.0.log", Time: Sat May 24 04:05:26 2003
(==) Using config file: "/etc/X11/XF86Config"
Using vt 7
(II) [GLX]: Initializing GLX extension
waiting for X server to shut down |
and the end of XFree.0.log looks like (the rest has not errors and looks normal):
Code: | (**) Option "CorePointer"
(**) Mouse1: Core Pointer
(**) Option "Device" "/dev/psaux"
(**) Mouse1: Emulate3Buttons, Emulate3Timeout: 50
(**) Option "ZAxisMapping" "4 5"
(**) Mouse1: ZAxisMapping: buttons 4 and 5
(**) Mouse1: Buttons: 5
(II) Keyboard "Keyboard1" handled by legacy driver
(II) XINPUT: Adding extended input device "Mouse1" (type: MOUSE)
(II) Mouse1: ps2EnableDataReporting: succeeded
|
This has left me without any idea. I dont think its a gnome problem. I removed .xinitrc and checked the default xinitrc to make sure at least twm would load, but no joy. Same results. This is getting frustrating.
The nvidia module loads fine (I get the nvidia splash before the server dies, and X log shows it loads w/o error).
Thanks for all the help. Even if this does not get solved, I'm impressed and thankful for the assistance so far on this forum. |
|
Back to top |
|
|
bgrundy n00b
Joined: 15 Feb 2003 Posts: 38 Location: Baltimore Maryland
|
Posted: Sat May 24, 2003 3:03 pm Post subject: I AM and idiot! |
|
|
Okay, apparently I am a complete buffoon. The above steps listed by various guru's apparently DID work, and I'm just too dumb to know it. I'm not sure what step worked, because since it appeared to me that none of them did, I went ahead an did them all.
The problem was that instead of removing my .xinitrc files, I just commented everything out. When the X server found .xinitrc it exectuted it and then exited. Like it should. Bah! All I had to do was put either "exec twm" or "exec gnome-session" in there OR remove it completely to see what was going on. The sad part is, I'm not sure what steps above would have done the trick, incase it happens again.
Thanks for all the help. |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|