drinkcat / chroagh

Chromium OS Archlinux Chroot Environment
BSD 3-Clause "New" or "Revised" License
241 stars 27 forks source link

Target not found: ttf_dejavu #120

Open NoahVlncrt opened 8 years ago

NoahVlncrt commented 8 years ago

Not sure why or what's going on i'm following all the instructions and am using the florida mirror. Has anyone else had this problem?

NoahVlncrt commented 8 years ago

Okay i've made some progress turns out all the font files are named ttf-dejavu without and underscore is there anyway to fix this? @elkangaroo

elkangaroo commented 8 years ago

Thanks for your report, Noah. From your email I got that you are on an ARM chromebook. What's the exact command you run for installing chroagh (crouton), including the targets and mirror?

I don't see any of the fonts with underscore in the code, I wonder why it wants to install 'em that way?!

NoahVlncrt commented 8 years ago

I know it's driving me nuts I can't figure it out either. I spent some time trying to tinker with the files had no success. Anyway here is my installation command!

sudo sh -e installer/main.sh -r arch -t xfce -m 'http://fl.us.mirror.archlinuxarm.org/armv7h/$repo'

that looks correct so i'm not sure what it going on. If we can work together and fix this it would be awesome :D

elkangaroo commented 8 years ago

I think I found something in target xorg (which is a requirement for your target xfce):

Can you please try to change line https://github.com/elkangaroo/chroagh/blob/master/targets/xorg#L194 install arch=ttf_dejavu into install arch=ttf-dejavu and see if that installs?

NoahVlncrt commented 8 years ago

Okay all is good I have made the changes on my branch and guess what???? It installs which is fine and dandy. I can run sudo enter-chroot and that works! I run into problems when I try to run the desktop. On running sudo startxfce4 I get the following error

Entering /mnt/stateful_partition/crouton/chroots/arch...
chown: invalid user: 'messagebus:messagebus'
/usr/bin/startxfce4: Starting X server

/usr/lib/xorg-server/Xorg.wrap: Only console users are allowed to run the X server
/usr/bin/xinit: giving up
/usr/bin/xinit: unable to connect to X server: Connection refused
/usr/bin/xinit: server error
Unmounting /mnt/stateful_partition/crouton/chroots/arch...
elkangaroo commented 8 years ago

Good to hear the change fixes the install on your chromebook :+1:

As for the error starting X (xorg-server): I got the same error on a x86_64 chromebook with a current arch mirror and I did not find a solution yet. As far as I know, the root cause are the changes in xorg-server 1.16 (rootless X), that why it should work if you find an old mirror with an xorg-server < 1.16, but I don't know if there are any for Arch ARM.

I already spend several days trying to fix this for current versions of xorg-server, but my knowledge there is limited and I did not get it to work yet :(