View Single Post
Old 03-05-2013, 09:29 AM   #5
twobob
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Týr
twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.
 
twobob's Avatar
 
Posts: 6,552
Karma: 6015922
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
EDIT: LibXfonts.so.1 needs to be the one I have attached. TO THE TOP POST


Spoiler:

Okay this is the 2nd time someone said they couldn't work out how to specify fonts to Xephyr so this time I thought I would try it AGAIN myself...

The following info is specifically if you use my horrible "make /mnt/us look like it is really in the root" HACK...
Spoiler:
FIRST: well the error you posted is worrying:
Quote:
Could not init font path element /mntususr/share/fonts/X11/75dpi/, removing from list!
Since that is actually one of the folders in the zip... (I just checked)
you positive you linked it right...???
because as I outline at great length below I don't see how that could be the case...

I actually went off and checked mine (after a recent update cleared my rootfs)
So I DONT have the link...

are the fonts there?
[root@kindle root]# ls /mnt/us/usr/share/fonts/X11/
Quote:
100dpi 75dpi Type1 encodings util
yes

is the link there?
[root@kindle root]# ls /
Quote:
bin
dev
etc
lib
log
mnt
opt
proc
sbin
sys
tmp
usr
var
who
No

Let's try running it...
[root@kindle root]# Xephyr :1
Quote:
_XSERVTransSocketOpenCOTSServer: Unable to open socket for inet6
_XSERVTransOpen: transport open failed for inet6/kindle:1
_XSERVTransMakeAllCOTSServerListeners: failed to open listener for inet6
[dix] Could not init font path element /mntususr/share/fonts/X11/misc/, removing from list!
[dix] Could not init font path element /mntususr/share/fonts/X11/TTF/, removing from list!
[dix] Could not init font path element /mntususr/share/fonts/X11/OTF/, removing from list!
[dix] Could not init font path element /mntususr/share/fonts/X11/Type1/, removing from list!
[dix] Could not init font path element /mntususr/share/fonts/X11/100dpi/, removing from list!
[dix] Could not init font path element /mntususr/share/fonts/X11/75dpi/, removing from list!
That looks familiar... (note mine doesn't actually fail but anyways)

So... Let's link it up.

[root@kindle root]# mntroot rw
Quote:
system: I mntroot:def:Making root filesystem writeable
[root@kindle root]# cd /
[root@kindle /]# ln -s /mnt/us/usr mntususr
[root@kindle /]# mntroot ro

Let's check it's really there
[root@kindle root]# ls /
Quote:
bin
dev
etc
lib
log
mnt
mntususr
opt
proc
sbin
sys
tmp
usr
var
who
And give it a test...
[root@kindle /]# ls -al /mntususr/
Quote:
drwxr-xr-x 9 root root 8192 Feb 8 16:05 .
drwxr-xr-x 57 root root 16384 Mar 5 13:30 ..
drwxr-xr-x 6 root root 16384 Mar 2 04:06 bin
drwxr-xr-x 6 root root 8192 Feb 1 14:22 include
drwxr-xr-x 56 root root 32768 Feb 8 16:08 lib
drwxr-xr-x 4 root root 8192 Dec 24 04:40 local
drwxr-xr-x 2 root root 8192 Feb 8 15:48 sbin
drwxr-xr-x 27 root root 8192 Feb 1 14:22 share
Seems like it really does point to the other place...

Now let's try that other test again...
[root@kindle /]# Xephyr :1
Quote:
_XSERVTransSocketOpenCOTSServer: Unable to open socket for inet6
_XSERVTransOpen: transport open failed for inet6/kindle:1
_XSERVTransMakeAllCOTSServerListeners: failed to open listener for inet6
[dix] Could not init font path element /mntususr/share/fonts/X11/misc/, removing from list!
[dix] Could not init font path element /mntususr/share/fonts/X11/TTF/, removing from list!
[dix] Could not init font path element /mntususr/share/fonts/X11/OTF/, removing from list!
Hmm which is what I would expect your result to say if you really did link it up right and put the files on...

So maybe fix that up first...


Now I actually DON'T EVEN REMEMBER WHY THIS WORKS on mine sigh...
Memory fail... IIRC I just put an entry to 'fixed' in one of the fonts.alias files...
So I no longer need all this links and stuff...


but anyways.. Let's do it the long way round... Just to check... if the errors go away

reading Xephyr --help... we can specify the font path with fp anyway

Like:
-fp /mnt/us/usr/share/fonts/X11/75dpi/ (The sub-folder not the X11 one)

and we can give a font name

-fn "lucidasans-bolditalic-8"

Assuming we do that right...

[root@kindle /]# Xephyr :1 -fp "/mnt/us/usr/share/fonts/X11/75dpi" -fn "lucida
sans-bolditalic-8"

Quote:
_XSERVTransSocketOpenCOTSServer: Unable to open socket for inet6
_XSERVTransOpen: transport open failed for inet6/kindle:1
_XSERVTransMakeAllCOTSServerListeners: failed to open listener for inet6
A totally smaller set of of "warnings" and it starts up fine.

Let's now try to break that...
[root@kindle /]# Xephyr :1 -fp "/mnt/us/usr/share/fonts/X11/StupidPath" -fn "D
umbFont"

Quote:
_XSERVTransSocketOpenCOTSServer: Unable to open socket for inet6
_XSERVTransOpen: transport open failed for inet6/kindle:1
_XSERVTransMakeAllCOTSServerListeners: failed to open listener for inet6
[dix] Could not init font path element /mnt/us/usr/share/fonts/X11/StupidPath, removing from list!

Fatal server error:
could not open default font 'DumbFont'

SO.

we want: [root@kindle /]# Xephyr :1 -fp "/mnt/us/usr/share/fonts/X11/75dpi" -fn "lucidasans-bolditalic-8"

and if we want to see want fonts we can use...

[root@kindle /]# cat /mnt/us/usr/share/fonts/X11/75dpi/fonts.alias | awk '{print
$1}' | tail -n +4


Quote:
lucidasans-bolditalic-8
lucidasans-bolditalic-10
lucidasans-bolditalic-12
lucidasans-bolditalic-14
lucidasans-bolditalic-18
lucidasans-bolditalic-24
lucidasans-bold-8
lucidasans-bold-10
lucidasans-bold-12
lucidasans-bold-14
lucidasans-bold-18
lucidasans-bold-24
lucidasans-italic-8
lucidasans-italic-10
lucidasans-italic-12
lucidasans-italic-14
lucidasans-italic-18
lucidasans-italic-24
lucidasans-8
lucidasans-10
lucidasans-12
lucidasans-14
lucidasans-18
lucidasans-24
lucidasanstypewriter-bold-8
lucidasanstypewriter-bold-10
lucidasanstypewriter-bold-12
lucidasanstypewriter-bold-14
lucidasanstypewriter-bold-18
lucidasanstypewriter-bold-24
lucidasanstypewriter-8
lucidasanstypewriter-10
lucidasanstypewriter-12
lucidasanstypewriter-14
lucidasanstypewriter-18
lucidasanstypewriter-24
I hope that finally puts paid to "how do I use Xephyrs fonts..." and how do I fix the "fixed" font error.

Cheers.

Last edited by twobob; 08-15-2013 at 01:34 PM.
twobob is offline   Reply With Quote