PDA

View Full Version : 7zip on the Nokia N900


torpedo48
2010-01-15, 11:36
Hi everyone,
I've found a working version of 7zip on a little repository for our Nokia N900. Please notice that that is not my work and it's not related to me in any way. I've been using it for lot of time and I can say that:

- It is NOT OPTIFIED, it takes about 4 MB in your rootfs so be careful

- Works well with these file types:
Decompression: ARJ, CAB, CHM, CPIO, DEB, DMG, HFS, ISO, LZH, LZMA, MSI, NSIS, RAR, RPM, UDF, WIM, XAR and Z
Compression/Decompression: 7z, ZIP, GZIP, BZIP2 and TAR

- It has not a GUI, so you have to use it through X-Term

-Type 7z in your X-Term and read the instructions

DISCLAIMER: do not use this repository and the packages inside it unless you know what you are really doing. Add this repository and use the packages at your own risk, I do not assume any responsibility for them.

These are the catalog details:

Catalog name: N900 Extras
Web address: http://n900.altervista.org/extras
Distribution: fremantle
Components: free

You'll find two packages, I've just tried the 7zip porting for the Nokia N900, if someone wants to test the busybox-advanced package (it should add more than 170 commands to the default N900's BusyBox ash shell)...

twaelti
2010-01-15, 11:59
Hello torpedo and thank you for the port!
Now about the distribution: please take the time to input it into extras instead of creating your own repository :-)

Tante grazie
-Tom

torpedo48
2010-01-15, 12:02
Hello torpedo and thank you for the port!
Now about the distribution: please take the time to input it into extras instead of creating your own repository :-)

Tante grazie
-Tom

Hello Tom,
in my first post I've written that I've just found that port, it is not related to me in any way... I'll edit the post to clarify that, sorry for the misunderstanding.

codeMonkey
2010-01-15, 12:28
7zip is already available in extras-devel in a couple of packages - both optified (I think).

http://maemo.org/packages/view/p7zip/
http://maemo.org/packages/view/p7zip-full/

rapante
2010-01-15, 12:39
I'd be very thankful if somebody could code a GUI for 7zip as I always struggle to extracting and packing stuff into archives with a command line only app

rm42
2010-01-15, 13:20
7zip is already available in extras-devel in a couple of packages - both optified (I think).

http://maemo.org/packages/view/p7zip/
http://maemo.org/packages/view/p7zip-full/

Ahh, this is very cool. Can someone please confirm that this is optified?

codeMonkey
2010-01-15, 13:27
I've got p7zip-full installed and that is definitely optified. The same guy did both ports.

rm42
2010-01-15, 17:31
I've got p7zip-full installed and that is definitely optified. The same guy did both ports.

This is really great news. I wrote a Python program that takes advantage of p7zip to be able to compress and decompress large amounts of data. You can read about it here:

http://pclosmag.com/html/Issues/200801/page07.html

It is going to be sweet to have that on the N900. I will test it as soon as I get a chance. I just wonder why it is still in devel and not even in testing. Any one knows?

Edit: (I sent a PM to the developer. He should know. ;))

rm42
2010-01-15, 22:39
Well I tried it and it worked perfectly, including 7sqz and 7usqz!!! :cool:
Notice that to make 7sqz and 7usqz executables you have to do so outside of home since home is an NTFS partition that doesn't support the executable bit. So what I did is download both to MyDocs and then used this commands to set them up:

sudo gainroot
cp ./7* /usr/bin
chmod 755 /usr/bin/7sqz
chmod 755 /usr/bin/7usqz

I am not certain p7zip is optified though. I neglected to check how much room I had on my root partition before installing it, but last I checked I was at about 75%. I am now at 82% used. :eek: Maybe someone else can do a check on this.

Any way, I am thrilled with this. Thanks a lot!

Arif
2010-01-16, 00:09
Great! Now someone write a GUİ pl0x :)

rm42
2010-01-16, 00:24
According to mikhmv, there is nothing holding back p7zip from moving to testing (or even extras). He just didn't think there was much interest. :)

codeMonkey
2010-01-16, 00:35
I am not certain p7zip is optified though. I neglected to check how much room I had on my root partition before installing it, but last I checked I was at about 75%. I am now at 82% used. :eek: Maybe someone else can do a check on this.
!

I haven't installed, but I downloaded the deb and checked inside it - it looks optified.

If you'd enabled extras-devel to install it that would've taken up a few percent temporarily. If you haven't already, disable extras-devel and update and you should get your space back.

mikhmv
2010-01-16, 01:01
I don't know how to promote it.
i found only not useful sentences:Promotion from Fremantle Extras-devel to Extras-testing and Extras-testing to Extras is done through the maemo.org package interface and the process is described at Promoting packages to extras-testing.
But nothing helpful there....
Can anybody give information how to do it?

Edit: Package optified and use only ~10 kb on rootfs

rm42
2010-01-16, 01:24
I haven't installed, but I downloaded the deb and checked inside it - it looks optified.

If you'd enabled extras-devel to install it that would've taken up a few percent temporarily. If you haven't already, disable extras-devel and update and you should get your space back.

I can confirm that. After disabling extras-devel, I am now back to 75% used. Not too bad. :)

qole
2010-02-11, 07:50
mikhmv: go to this page, log in, and you will be able to promote the package to testing.

http://maemo.org/packages/package_instance/view/fremantle_extras-devel_free_armel/p7zip/9.04~dfsg.1-1-m5-1/

I have a personal interest in getting lzma decompression available, since I'm investigating it as a method for decompressing the Easy Debian images. bzip2 decompression is tooooooo sllooooowwwww...

I want Tom Tanner to promote this one especially!!

http://maemo.org/packages/package_instance/view/fremantle_extras-devel_free_armel/lzma/4.43-14maemo1/

2disbetter
2010-02-11, 08:18
there is an unzip add on for file manager in devs right now. It will unzip any zip file to the zip name, and place it in a folder of the same name in the current folder. I don't think it supports any other decompression methods though. This is more for folks interested in zip decompressing.

2d

scuddy
2010-02-11, 15:41
could anyone tell me how to use p7zip on x terminal as I havent got a clue?

torpedo48
2010-02-11, 15:48
could anyone tell me how to use p7zip on x terminal as I havent got a clue?

Type 7z and ENTER, it will give you all the instructions.
If you type

7z x [archive name]

it will extract all the files inside an archive in the folder with full paths.
Do not know if your version works like mine, so I'm not sure.

mikhmv
2010-02-12, 16:09
mikhmv: go to this page, log in, and you will be able to promote the package to testing.

http://maemo.org/packages/package_instance/view/fremantle_extras-devel_free_armel/p7zip/9.04~dfsg.1-1-m5-1/

I have a personal interest in getting lzma decompression available, since I'm investigating it as a method for decompressing the Easy Debian images. bzip2 decompression is tooooooo sllooooowwwww...

I want Tom Tanner to promote this one especially!!

http://maemo.org/packages/package_instance/view/fremantle_extras-devel_free_armel/lzma/4.43-14maemo1/

Hi Qole, You are right!!!!
When I first time checked it button for promote was absent. It was couple days after I submit it to devel.
I just promote it.

Using it:
p7zip-full has 2 executable: 7z and 7za
p7zip has one executable 7zr

after installation in x-term type one of this command and you will get options.

P.S it is direct port of debian p7zip package. You can google it for help

titan
2010-02-13, 11:50
Hi qole,
I just found your post accidentally.
I'm going to promote the package to testing today.


I want Tom Tanner to promote this one especially!!

http://maemo.org/packages/package_instance/view/fremantle_extras-devel_free_armel/lzma/4.43-14maemo1/

hayalperest
2010-03-11, 01:28
i got this error unraring a password protected file

Extracting Gripin_-_M.S._05_03_2010_---Darkside/Gripin - M.S. 05 03 2010 ---by onur89/01-Sen Gidiyorsun.mp3
Enter password (will not be echoed) :
Unsupported Method
Extracting Gripin_-_M.S._05_03_2010_---Darkside/Gripin - M.S. 05 03 2010 ---by onur89/02-Koca Çınar.mp3 Unsupported Method
Extracting Gripin_-_M.S._05_03_2010_---Darkside/Gripin - M.S. 05 03 2010 ---by onur89/03-Durma Yağmur Durma.mp3 Unsupported Method

i am pretty sure that the pass is right.

badsubby
2010-03-17, 03:40
everytime i try to extract it says "there is no such archive". Tried both e and x cmds. The zip file is in the main folder when you open the file manager. I would really appreciate any help. Thanks.

devilsoulll
2010-04-15, 09:07
everytime i try to extract it says "there is no such archive". Tried both e and x cmds. The zip file is in the main folder when you open the file manager. I would really appreciate any help. Thanks.

i got the same problem..really need some help.
thnx in advance

~phoenix~
2010-04-17, 11:35
cant install 7z or 7z full .... i dont find it in appmgr.... devel and testing enabled..... when i download the deb file and try to install it it says not kompatible.... what now!?

~phoenix~
2010-04-19, 17:27
********push************

qole
2010-04-19, 17:44
Try gaining root, then doing

apt-get install p7zip-full


If it doesn't install, post the messages you get.

~phoenix~
2010-04-19, 18:18
/home/user # apt-get install p7z-full
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Couldn't find package p7z-full
/home/user #


what now!?

edit.... ups misstyped.... i think it installed now ....

edit agian: yay it works....

benso
2010-04-20, 01:13
hi im a newb..n have no idea what im doin can some one wal me through installing 7zip to my n900 please??!?!!!

~phoenix~
2010-04-20, 06:22
hi im a newb..n have no idea what im doin can some one wal me through installing 7zip to my n900 please??!?!!!

2 posts over yours

youngcalihottie
2010-05-08, 16:02
thanks!!! i really needed this!!!

cattuong89
2010-06-02, 05:16
can anyone pleaz tell me a detailed command-line for extracting a file named "hello.7z".
i put this file in the following path : Nokia-N900/Documents/dict/hello.7z
thx in advance !w!

torpedo48
2010-06-02, 09:23
can anyone pleaz tell me a detailed command-line for extracting a file named "hello.7z".
i put this file in the following path : Nokia-N900/Documents/dict/hello.7z
thx in advance !w!

If i'm not wrong it should be:

7z x /home/user/MyDocs/.documents/dict/hello.7z

cattuong89
2010-06-03, 02:56
If i'm not wrong it should be:

7z x /home/user/MyDocs/.documents/dict/hello.7z

i have tried and it works great ! Thank u very much torpedo48.
but one problem is that where are all the files that are extracted from the archive ? they are supposed to be in the same folder 'dict' :(

torpedo48
2010-06-03, 07:47
i have tried and it works great ! Thank u very much torpedo48.
but one problem is that where are all the files that are extracted from the archive ? they are supposed to be in the same folder 'dict' :(

Oh yeah I'm so sorry: I should have said this before.

7zip extracts the files in your current folder, so if you want to extract an archive in the same folders it is, you have to enter that folder with cd and then extract the package.

For example, in your case:

cd /home/user/MyDocs/.documents/dict

[press ENTER]

7z x hello.7z

[press ENTER]

Now it should work as you want.

cattuong89
2010-06-03, 16:00
Oh yeah I'm so sorry: I should have said this before.

7zip extracts the files in your current folder, so if you want to extract an archive in the same folders it is, you have to enter that folder with cd and then extract the package.

For example, in your case:

cd /home/user/MyDocs/.documents/dict

[press ENTER]

7z x hello.7z

[press ENTER]

Now it should work as you want.

great ! that's so kind of u !
thks again man,
have a nice day !

jake2kone
2010-06-21, 11:07
7za doesn't support the new PR1.2. Is there any chance to get another or a new version to manage archive? Love the cmd line because the GUI of other zipper are aweful and need a strong rework...

torpedo48
2010-06-21, 14:19
7za doesn't support the new PR1.2. Is there any chance to get another or a new version to manage archive? Love the cmd line because the GUI of other zipper are aweful and need a strong rework...

It's strange, I'm using it right now on my PR 1.2 Nokia N900... Maybe I'm not using the devel version, I've downloaded it from an independent repository.

jake2kone
2010-06-22, 08:11
I haven't found it in the maemo-repos yet.
Can you tell me the repo you got it from?

(I need it to zip my netxml-files) ;)

torpedo48
2010-06-22, 08:56
These should be the actual version in Testing:

http://maemo.org/packages/package_instance/view/fremantle_extras-testing_free_armel/p7zip-full/9.04~dfsg.1-1-m5-1/

I've found my 7zip (working with PR 1.2) in the repository I've written in the OP, but be careful I can't guarantee anything.

jake2kone
2010-06-22, 13:14
I can't find it through programmmanager and when I try to install it with the deb, a message notifies me that this package isn't compatible.
Too much risk to install it with force. :-/

Any alternatives?

zaoltryence
2010-06-22, 14:28
ive enabled the repos according to the firstpost but somehow i cant seem to install it, app manager downloads it just fine around 2.1 mb but says unable to install am i missing something...

jake2kone
2010-06-23, 09:23
Make sure Extras-Devel and Extras-testing are enabled, maybe there are some other dependencies.

I found 7z in the Repo and installed it. Took some time to figure out what "OP" means. ;)

torpedo48
2010-06-23, 09:50
I can't find it through programmmanager and when I try to install it with the deb, a message notifies me that this package isn't compatible.
Too much risk to install it with force. :-/

Any alternatives?

Mmhhh, that's weird...

Ok I've just verified that my perfectly working version is the p7zip-full 9.04~dfsg.1-1-m5-1, I've just installed it on a fresh N900 (using "apt-get install p7zip-full" with root superpowers ;) ) and it works ;).

I can't guarantee anything, but I assume it's pretty safe.

johnel
2010-06-23, 09:56
I installed it from the command-line (via apt-get & gainroot) and it works perfectly - I can open zip files now!

MohammadAG
2010-06-23, 11:43
If anyone has extras-devel enabled can you check if Xarchiver works now? I added p7zip as a dependency and made the UI usable (with a stylus at least)

jake2kone
2010-06-23, 14:13
Mmhhh, that's weird...

Ok I've just verified that my perfectly working version is the p7zip-full 9.04~dfsg.1-1-m5-1, I've just installed it on a fresh N900 (using "apt-get install p7zip-full" with root superpowers ;) ) and it works ;).

I can't guarantee anything, but I assume it's pretty safe.As I already wrote: Found it in a different repo. It was the one from you in the OP. It took some time to figure out what "OP" stands for. I'm no native English speaker... ;)
After I added the repo, I found and installed it without any trouble.

If anyone has extras-devel enabled can you check if Xarchiver works now? I added p7zip as a dependency and made the UI usable (with a stylus at least)
Hey MohammadAG, nice job. Have it on my N900 now.
Do you have the full access to manipulate the GUI?
Because it would be much better when the "Anlegen" button is behind "Name".
So the path windows (/file browser) could be bigger.
http://img375.imageshack.us/img375/2148/screenshot2010062316104.png

What do you think?

MohammadAG
2010-06-23, 14:20
Hey MohammadAG, nice job. Have it on my N900 now.
Do you have the full access to manipulate the GUI?
Because it would be much better when the "Anlegen" button is behind "Name".
So the path windows (/file browser) could be bigger.
http://img375.imageshack.us/img375/2148/screenshot2010062316104.png

What do you think?

It's the default GTK file dialog, I suppose I could change it to the hildon file picker, but that's not really a priotrity (and it's limited to MyDocs/MMC).
I can't change the default button layout afaik.

jake2kone
2010-06-24, 10:24
Okay, was just a suggestion.
Better than nothing. ;)

Thanks for your work anyway! :-)
Keep it up!

ArchiMark
2010-07-13, 22:46
Trying to follow instructions in another forum post...

I get the following error message on this step where you use 7z:


# 7z x /home/user/MyDocs/maemo-sdk-rootstrap_5.0_10.2010.19-1_armel.tgz -o /floppy
/usr/bin/7z: exec: line 2: /usr/lib/p7zip/7z: Too many levels of symbolic links


I've installed p7zip....as I get the help message when I type '7zr'...

Any suggestions??

Thanks!

clasificado
2010-07-13, 23:02
try apt-get remove --purge p7zip-full

and install it again.

i was in the same situation, and it was solved by itself

ArchiMark
2010-07-13, 23:21
try apt-get remove --purge p7zip-full

and install it again.

i was in the same situation, and it was solved by itself

Thanks for your help...

Just did what you suggested...but now I get


# 7z x /home/user/MyDocs/maemo-sdk-rootstrap_5.0_10.2010.19-1_armel.tgz -o /floppy

Error:
Incorrect command line


FYI, I cd'd into /home/user/MyDocs before doing the above...

Any ideas?

Thanks!

rm42
2010-07-14, 13:49
I was having this same "too many levels ..." problem. I tried purging and reinstalling p7zip several times. Finally I decided to remove XArchiver and do another p7zip purge/reinstall. That did it. P7zip worked fine again.

I then went and installed XArchiver again (from extras-devel) and the problem returned.

So, I removed Xarchiver, purged p7zip, and reinstalled XArchiver to see if it installed p7zip as a dependency. It didn't.

I then installed p7zip (with XArchiver already in place) and got the same "too many levels ..." error.

2disbetter
2010-07-14, 14:20
despite my efforts to find P7zip in extras-devel, I could not. (yes I have refreshed the cache)

I found file-roller though that seems to support quite a few formats and has a frontend. I'm guessing this is why P7zip is no longer in the repo?

2d

rm42
2010-07-14, 14:28
despite my efforts to find P7zip in extras-devel, I could not. (yes I have refreshed the cache)

I found file-roller though that seems to support quite a few formats and has a frontend. I'm guessing this is why P7zip is no longer in the repo?

2d

p7zip in only installable trough the Terminal with the following command as root (having already enabled the extras-devel repository in the package manager):

apt-get install p7zip-full

2disbetter
2010-07-14, 14:31
p7zip in only installable trough the Terminal with the following command as root (having already enabled the extras-devel repository in the package manager):

apt-get install p7zip-full


and the light goes on!

THanks!

2d

rm42
2010-07-14, 14:37
and the light goes on!

THanks!

2d

Thanks for the thanks. I hate it when my Thanks to Posts ratio goes below 50%. ;)

pittesn
2010-08-01, 15:51
Now ive tried every single command i found on the forums here, but still cant unzip a file.
Does it matter if its a norwegian n900??
Anyhow what i do, i get no such archive.
what to do? I have the file in nokia n900/dokumenter

rami3
2010-08-01, 15:53
try downloading xarchive

pittesn
2010-08-01, 16:17
Why do i get Failed, and command line output: too many levels of symbolic links?

dsawhney
2010-08-22, 19:59
Why do i get Failed, and command line output: too many levels of symbolic links?

The problem is due to circular links created during optifying step of p7zip install. If you remove p7zip and just use p7zip-full there is no issue. Can Xarchiver be updated to use p7zip-full instead of p7zip ?

rash.m2k
2010-10-18, 08:59
Ok so the problem is that it Xarchiver uses 7z rather than 7zr from the command line.

So the easiest solution is use the command line instead of Xarchiver.

Easy peasy using this:


7zr x -o[directory to extract to] name_of_file.7z

ikerrg
2012-09-19, 17:02
The problem is due to circular links created during optifying step of p7zip install. If you remove p7zip and just use p7zip-full there is no issue. Can Xarchiver be updated to use p7zip-full instead of p7zip ?

There is a workaround. You should install first the p7zip-full package. Then, make backup of the files inside /usr/lib/p7zip (these files will be overwritten by the wrong optifying that p7zip does in the installation). Make sure that you backup those files to a linux partition in order to maintain the file permissions. Then install p7zip and restore the backup files into /opt/maemo/usr/lib/p7zip, overwritting the wrong symlinks. That's all! You can install Xarchiver and everything will work perfectly.

Cheers!

badazimer
2013-06-04, 11:56
I cant install 7-zip. Help me, please:
BusyBox v1.10.2 (Debian 3:1.10.2.legal-1osso31+0cssu0) built-in shell (ash)
Enter 'help' for a list of built-in commands.

~ $ sudo gainroot
Root shell enabled


BusyBox v1.10.2 (Debian 3:1.10.2.legal-1osso31+0cssu0) built-in shell (ash)
Enter 'help' for a list of built-in commands.

/home/user # apt-get install p7zip-full
Reading package lists... Done
Building dependency tree
Reading state information... Done
Suggested packages:
p7zip-rar
The following NEW packages will be installed:
p7zip-full
0 upgraded, 1 newly installed, 0 to remove and 11 not upgraded.
Need to get 1371kB of archives.
After this operation, 3604kB of additional disk space will be used.
Get:1 http://repository.maemo.org fremantle/free p7zip-full 9.04~dfsg.1-1-m5-1 [1371kB]
Fetched 1371kB in 3s (452kB/s)
(Reading database ... 44028 files and directories currently installed.)
Unpacking p7zip-full (from .../p7zip-full_9.04~dfsg.1-1-m5-1_armel.deb) ...
dpkg: error processing /var/cache/apt/archives/p7zip-full_9.04~dfsg.1-1-m5-1_armel.deb (--unpack):
trying to overwrite `/usr/lib/p7zip/7z', which is also in package 7zip-9.0.4-1
Errors were encountered while processing:
/var/cache/apt/archives/p7zip-full_9.04~dfsg.1-1-m5-1_armel.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
/home/user # apt-get remove --purge p7zip-full
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package p7zip-full is not installed, so not removed
0 upgraded, 0 newly installed, 0 to remove and 11 not upgraded.
/home/user #

pichlo
2013-06-04, 12:25
dpkg: error processing /var/cache/apt/archives/p7zip-full_9.04~dfsg.1-1-m5-1_armel.deb (--unpack):
trying to overwrite `/usr/lib/p7zip/7z', which is also in package 7zip-9.0.4-1



It looks like you are trying to install 7zip-full while you have 7zip installed. Try removing 7zip first.

badazimer
2013-06-04, 14:23
It looks like you are trying to install 7zip-full while you have 7zip installed. Try removing 7zip first.

thanks! It works!