Re: More LiveCD space optimizations

2010-11-07 Thread Martin Pitt
Hello Martin, Martin Owens [2010-11-07 1:36 -0400]: > That already is written in C, it's the script that pulls in the config > and runs the usb_modeswitch program which is written in tcl. > > It should be very possible to convert it to python or vala. No python please, it has the same poor boot

Re: More LiveCD space optimizations

2010-11-06 Thread Martin Owens
On Fri, 2010-11-05 at 16:20 -0400, Martin Pitt wrote: > One thing that currently needs it is usb-modeswitch. I'd love the > usb-modeswitch-dispatcher thing to be rewritten in C, Vala, or another > compiled language. Not only is it holding tcl in the default install, > but it also dramatically slows

Re: More LiveCD space optimizations

2010-11-05 Thread Micah Gersten
On 10/08/2010 04:54 AM, Matthias Klose wrote: > [ compression related discussion removed ] > > So maybe we can save some MB with better compression, but we can save more by > not including files at all. Of course this requires inspection of the > packages > included on the liveCD. In the past

Re: More LiveCD space optimizations

2010-11-05 Thread Martin Pitt
John McCabe-Dansted [2010-10-08 0:07 +0800]: > We could test each file to ensure the image is identical, perhaps > using pngtopnm, and md5sum. This would be especially important for > jpegrescan/jpgcrush, which is at version 0.0.0-1. I use a simple test script for this kind of check, see https:/

Re: More LiveCD space optimizations

2010-11-05 Thread Martin Pitt
Matthias, Matthias Klose [2010-10-08 11:54 +0200]: > - Packages which should not be on the CD. Some things should not be > on the CD at all. Looking at the current live CD log, a typical > candidate for this would be tcl8.4. Why is it there, and how can > it be avoided? One thing

Re: More LiveCD space optimizations

2010-10-11 Thread John McCabe-Dansted
On Fri, Oct 8, 2010 at 2:01 AM, Matthias Klose wrote: >> Also, there are 12MB of jar files, which are basically zip files. We >> can also shrink those by 5MB or so with advzip, but that doesn't seem >> to shrink a .tgz of them so it may not shrink the liveCD. Since zip >> files compress file by fi

Re: More LiveCD space optimizations

2010-10-10 Thread Louis Simard
Sorry for the 4th post in a row, but I added a script that uses AdvanceCOMP to recompress the .gz files that aren't man pages, and I had to share my findings. AdvanceCOMP? | ISO size (B) | Install (KiB) No | 711,032,832 | 2,474,660 Yes |

Re: More LiveCD space optimizations

2010-10-08 Thread Louis Simard
Apologies for the previous attachment, it didn't have the addition for man-page symbolic links. I attach the proper one this time. - Louis ubuntu-opt.tar.gz Description: GNU Zip compressed data -- Ubuntu-devel-discuss mailing list Ubuntu-devel-discuss@lists.ubuntu.com Modify settings or unsubs

Re: More LiveCD space optimizations

2010-10-08 Thread Louis Simard
2010-10-07 16:07 GMT John McCabe-Dansted : > On Thu, Oct 7, 2010 at 10:05 AM, Louis Simard wrote: >> Do you want me to add to my script any of the optimisations discussed >> in your email? They are: Using AdvanceCOMP to recompress .png images >> and gzipped files; using either of jpegoptim or jpeg

Re: More LiveCD space optimizations

2010-10-08 Thread Louis Simard
2010-10-08 09:54 GMT Matthias Klose : > In the past we did see wasted space: > >  - Packages which should not be on the CD.  Some things should not be >   on the CD at all.  Looking at the current live CD log, a typical >   candidate for this would be tcl8.4. Why is it there, and how can >   it be

Re: More LiveCD space optimizations

2010-10-08 Thread Matthias Klose
[ compression related discussion removed ] So maybe we can save some MB with better compression, but we can save more by not including files at all. Of course this requires inspection of the packages included on the liveCD. In the past we did identify some issues and did add some diagnostics

Re: More LiveCD space optimizations

2010-10-07 Thread Till Kamppeter
On 10/08/2010 12:22 AM, Louis Simard wrote: >> There are a over a dozen different types of file to be tested (and >> there may be more than one application that wants to read them). For >> reference, I have attached them. Probably the most important thing to >> check is that printing still works, a

Re: More LiveCD space optimizations

2010-10-07 Thread Louis Simard
* LONG MESSAGE WARNING * While I've tried to reduce the quotes and quote nesting as much as I could, this message is still long. It is still important to read, when you have time. 2010-10-07 16:07 GMT John McCabe-Dansted : > On Thu, Oct 7, 2010 at 10:05 AM, Louis Simard wrote: >> > > I think thi

Re: More LiveCD space optimizations

2010-10-07 Thread Louis Simard
2010-10-07 16:29 GMT Martin Owens : > On Fri, 2010-10-08 at 00:07 +0800, John McCabe-Dansted wrote: >> Strangely, even running advzip -z -0 >> images_human.zip shrinks it by 3%, and even shrinks the corresponding >> images_human.zip.gz file > > That's not strange, that's just entropic packing princ

Re: More LiveCD space optimizations

2010-10-07 Thread Matthias Klose
On 07.10.2010 18:07, John McCabe-Dansted wrote: >> That's an interesting optimisation; I didn't really know about it >> either. However, I did use 7zip's Deflate compressor to recompress a >> .zip file of OpenOffice.org's from 5.9 MB to 5.4 MB. The method was >> rather crude, but it did the job: >

Re: More LiveCD space optimizations

2010-10-07 Thread Martin Owens
On Fri, 2010-10-08 at 00:07 +0800, John McCabe-Dansted wrote: > Strangely, even running advzip -z -0 > images_human.zip shrinks it by 3%, and even shrinks the corresponding > images_human.zip.gz file That's not strange, that's just entropic packing principles. You've got a bunch of assumptions th

Re: More LiveCD space optimizations

2010-10-07 Thread John McCabe-Dansted
On Thu, Oct 7, 2010 at 10:05 AM, Louis Simard wrote: > Hey :) > > Thanks for the interest in this optimisation! Unfortunately I wasn't > pushy enough in my thread from May-June and it wasn't included in the > Maverick LiveCD. A pending question is what to do to include the > recompressed files int

Re: More LiveCD space optimizations

2010-10-06 Thread Louis Simard
Hey :) Thanks for the interest in this optimisation! Unfortunately I wasn't pushy enough in my thread from May-June and it wasn't included in the Maverick LiveCD. A pending question is what to do to include the recompressed files into the archive's packages [1]. 2010-10-06 16:08 GMT John McCabe-D

More LiveCD space optimizations

2010-10-06 Thread John McCabe-Dansted
In May, Louis Simard proposed rencoding PNG files and SVG files to reduce their size [1]. I note that we can save further space by: 1) Using advdef on the png files in addition to optipng. This is what optimizegraphics does, and this shrinks the pngs on the Maverick RC liveCD from about 100.1MB to