FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Gentoo > Gentoo Embedded

 
 
LinkBack Thread Tools
 
Old 11-27-2007, 05:46 PM
Marc Blumentritt
 
Default reducing size of X

Hi,

I have to use X for my application (vdr), but X (and dependencies) take
a lot of space, which I want to reduce. Most of it can be found under
/usr/share:

(build) hive mediamachine # du --max-depth=1 -h devroot/usr/share/
132K devroot/usr/share/eselect
24K devroot/usr/share/busybox
8.0K devroot/usr/share/xsessions
12K devroot/usr/share/my_layout
356K devroot/usr/share/ntp
4.0K devroot/usr/share/man
8.0K devroot/usr/share/hwdata
20K devroot/usr/share/et
24K devroot/usr/share/baselayout
28K devroot/usr/share/aclocal
12K devroot/usr/share/ss
16K devroot/usr/share/xorg
4.0K devroot/usr/share/info
4.0K devroot/usr/share/doc
752K devroot/usr/share/fluxbox
12M devroot/usr/share/fonts
1.6M devroot/usr/share/misc
5.4M devroot/usr/share/X11
20M devroot/usr/share/
(build) hive mediamachine # du --max-depth=1 -h devroot/usr/share/X11/
12K devroot/usr/share/X11/app-defaults
3.0M devroot/usr/share/X11/xkb
2.3M devroot/usr/share/X11/locale
5.4M devroot/usr/share/X11/

The big apples are /usr/share/fonts, /usr/share/X11/xkb, and
/usr/share/X11/locale. These dirs contain this:

(build) hive mediamachine # ls devroot/usr/share/fonts/
100dpi 75dpi Type1 cyrillic encodings misc ttf-bitstream-vera
(build) hive mediamachine # ls devroot/usr/share/X11/xkb/
compat geometry keycodes.dir rules symbols
types.dir
compat.dir geometry.dir keymap semantics symbols.dir xkbcomp
compiled keycodes keymap.dir semantics.dir types
(build) hive mediamachine # ls devroot/usr/share/X11/locale/
C iso8859-11 iso8859-9e locale.alias vi_VN.tcvn
armscii-8 iso8859-13 ja locale.dir vi_VN.viscii
compose.dir iso8859-14 ja.JIS microsoft-cp1251 zh_CN
el_GR.UTF-8 iso8859-15 ja.S90 microsoft-cp1255 zh_CN.UTF-8
en_US.UTF-8 iso8859-2 ja.SJIS microsoft-cp1256 zh_CN.gb18030
georgian-academy iso8859-3 ja.U90 mulelao-1 zh_CN.gbk
georgian-ps iso8859-4 ja_JP.UTF-8 nokhchi-1 zh_HK.UTF-8
ibm-cp1133 iso8859-5 ko pt_BR.UTF-8 zh_HK.big5
iscii-dev iso8859-6 ko_KR.UTF-8 tatar-cyr zh_HK.big5hkscs
isiri-3342 iso8859-7 koi8-c th_TH zh_TW
iso8859-1 iso8859-8 koi8-r th_TH.UTF-8 zh_TW.UTF-8
iso8859-10 iso8859-9 koi8-u tscii-0 zh_TW.big5


Now I'm wondering, if I really need all this stuff. At the moment I plan
to run an English system, perhaps adding German, both unicode. I do not
need fancy X fonts for vdr. Do you have any suggestions, what I can
delete and what I should keep?

Regards,
Marc

--
gentoo-embedded@gentoo.org mailing list
 
Old 11-27-2007, 07:09 PM
Arkadi Shishlov
 
Default reducing size of X

Marc Blumentritt wrote:

I have to use X for my application (vdr), but X (and dependencies) take
a lot of space, which I want to reduce. Most of it can be found under

...

Now I'm wondering, if I really need all this stuff. At the moment I plan
to run an English system, perhaps adding German, both unicode. I do not
need fancy X fonts for vdr. Do you have any suggestions, what I can
delete and what I should keep?


The nice trick is to run you application(s) under
strace -e file -o trace.log -f cmd..
for some time and see what is really used. Prepare the list of files from the
log and copy them to the target image. Additional research is needed in case
files are opened via relative path.

Works for me. Not very Gentoo-ish though.
--
gentoo-embedded@gentoo.org mailing list
 

Thread Tools




All times are GMT. The time now is 09:26 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org