Active Topics

 


Reply
Thread Tools
RogerS's Avatar
Posts: 772 | Thanked: 183 times | Joined on Jul 2005 @ Montclair, NJ (NYC suburbs)
#1
In another thread , AaronL asserted that "the 770 does not comes with an unzip utility, either in GUI or command-line form."

I seem to recall seeing that you could unzip files on the 770. I do know that FBReader can read text and html files inside a zip archive without unzipping, although I have no idea what that means in general.

Anyone have definitive information on whether the 770 has zip/unzip capabilities?
__________________
N900 Guide Brief intro to the Nokia N900 (http://n900guide.com/)
Maemoan since July 2005 )
 
Posts: 155 | Thanked: 10 times | Joined on Nov 2005 @ central georgia, usa
#2
Originally Posted by RogerS
In another thread , AaronL asserted that "the 770 does not comes with an unzip utility, either in GUI or command-line form."

I seem to recall seeing that you could unzip files on the 770. I do know that FBReader can read text and html files insize a zip archive without unzipping, although I have no idea what that means in general.

Anyone have definitive information on whether the 770 has zip/unzip capabilities?
See

man gunzip

"gunzip can currently decompress files created by gzip, zip, compress, compress -H or pack'
 
Posts: 32 | Thanked: 1 time | Joined on Nov 2005
#3
Originally Posted by putkowski
"gunzip can currently decompress files created by gzip, zip, compress, compress -H or pack'
Have you actually tried this on a 770? The busybox version of gzip provided on the 770 didn't appear to support zip when I tried it, perhaps there's a flag I'm not finding? Also is man installed on the 770? It's not in /usr/bin or anywhere in the default path.

Mike
 
Posts: 81 | Thanked: 1 time | Joined on Dec 2005
#4
Originally Posted by putkowski
See

man gunzip

"gunzip can currently decompress files created by gzip, zip, compress, compress -H or pack'
Well, after that text, the following paragraph in the man page states the following:

Files created by zip can be uncompressed by gzip only if they have a single member compressed with the 'deflation' method. This feature is only intended to help conversion of tar.zip files to the tar.gz format. To extract zip files with several members, use unzip instead of gunzip.
So basically, gunzip is not generally useful for handling ZIP files since it can only handle the case when a single file has been compressed. In addition, the version of gunzip that comes with the default 770 firmware is really a link to the busybox implementation (use ls -l on /bin/gunzip to see), and the busybox implementation is limited and doesn't appear to support ZIP files at all. Not to mention, it states in the gzip FAQ at http://www.gzip.org/#faq17 that gunzip does not support .ZIP files.

There does appear to be some support for ZIP files. As stated on a different thread, the backup utility generates ZIP files. However, I don't think that there is a standalone utility on the device that can handle ZIP files. At least, I haven't been able to find one. Apparently, the zlib library, which is installed on the 770 (from the zlib1g package), can be built in such a way that it supports ZIP files, so this might be where applications are getting ZIP file support.

No, there are no man pages on the device, presumably to save space. A list of packages that are installed as part of the default firmware and developer's firmware can be found at http://repository.maemo.org/unstable...reference.html . man-db is the name of the Debian package that includes the man utility, and it is not installed for either the default firmware or developer's firmware.

AaronL
 
Posts: 45 | Thanked: 1 time | Joined on Dec 2005
#5
I did not find a command-line Zip utility on my 770. FBReader probably uses a library, rather than an external command, to handle Zip files. However, I did find a site that had a precompiled command-line binary of UnRar for ARM Linux platforms (like the iPaq, for example), so just for kicks I installed in /usr/bin on my 770. It seemed to work fine. So, assuming you have some basic Linux knowledge, it probably won't be too hard to find a compatible utility for Zip, even if you're not comfortable compiling your own software.
 
Posts: 41 | Thanked: 0 times | Joined on Dec 2005 @ Brasil
#6
Pardon me if I am being naive, but isn't it just a matter of recompiling unzip using scratchbox et al as taught here?
http://www.maemo.org/platform/docs/t...g-applications
 
Posts: 81 | Thanked: 1 time | Joined on Dec 2005
#7
Originally Posted by Wooky
Pardon me if I am being naive, but isn't it just a matter of recompiling unzip using scratchbox et al as taught here?
http://www.maemo.org/platform/docs/t...g-applications
Yes, unzip should probably build quite easily under scratchbox. I think we were discussing whether or not a tool capable of unzipping ZIP files already exists on the 770. In addition, the ideal unzip utility would be one available from the GUI that would automatically come up when the user clicks on a ZIP file in the Web browser.

AaronL
 
jayholler's Avatar
Posts: 128 | Thanked: 4 times | Joined on Feb 2006 @ Philadelphia, PA
#8
Originally Posted by Neil McAllister
I did not find a command-line Zip utility on my 770. FBReader probably uses a library, rather than an external command, to handle Zip files. However, I did find a site that had a precompiled command-line binary of UnRar for ARM Linux platforms (like the iPaq, for example), so just for kicks I installed in /usr/bin on my 770. It seemed to work fine. So, assuming you have some basic Linux knowledge, it probably won't be too hard to find a compatible utility for Zip, even if you're not comfortable compiling your own software.
I found a file which sounds similar or the same to this, but in bz2 format. I guess there is no way to unzip this on the 770 device, you need at least some type of *nix box, right?
 
Posts: 45 | Thanked: 1 time | Joined on Dec 2005
#9
Originally Posted by jayholler
I found a file which sounds similar or the same to this, but in bz2 format. I guess there is no way to unzip this on the 770 device, you need at least some type of *nix box, right?
Probably, but you may find a Windows utility that can pop open that file. In fact, I think WinRar can do it. You need to be sure there's a binary executable inside that file, though. Without a Unix box you won't be able to do much with just source code.
 
Posts: 57 | Thanked: 1 time | Joined on Mar 2006
#10
Just don't know, but when i looked in backup folder, created with backup utility, in the
MM Card, i find some files with .zip extention. What does it mean?
 
Reply


 
Forum Jump


All times are GMT. The time now is 12:57.