I wonder if someone could give any guide or information how to create tar.bz2 files.
Thank
I wonder if someone could give any guide or information how to create tar.bz2 files.
Thank
On a linux PC, if you have all your files in the same directory (e.g. mydir), and you want to create the file mytar.tar.bz2, from a terminal
write the following command line:
tar cjf mytar.tar.bz2 mydir
There are also a number of applications that let you create and manipulate archives, try google with "create tar bz2 archive".
Since I'm not familiar with linux and thank you for such valuable information.
You didn't tell what operating system you need your answer for (and we still don't know - maybe you're running a Mac?). As for Windows, command line tar programs are available as part of the UnxUtils and MSYS packages as well as with cygwin. I recommend UnxUtils if you don't need a more (cygwin) or less (MSYS) complete Unix emulation layer. There's also some unix tools package from Microsoft, but I can't recommend it. You'll find all of them via Google.
There may be Windows packers which can create .tar.bz2, but I'm not aware of any - it's a rather uncommon format for this OS.
ZitatOriginally posted by hczim
There may be Windows packers which can create .tar.bz2, but I'm not aware of any - it's a rather uncommon format for this OS.
Look for bzip2 for windows. Regards, pcd.
Hi.
If You running Windows,get power archiver.
Zdan,
Sometimes when I use my Windows laptop I use Total Commander32 for MS Windows. This program will let you do .ZIP .RAR .TAR .ARJ .UC2 .GZ and more. First I do .TAR and then I pack again from .TAR to .GZ and you have xxx.tar.gz file. There is no difference between .GZ and .BZ2, Gemini reads both. Hope this helps. Regards,
ZitatOriginally posted by zdan
Since I'm not familiar with linux and thank you for such valuable information.
If you are runningmacosx, you can do it with Clean Archiver. You can download it from the database of this forum.
Thank so much guys for support. I hope this will benefit to all members.
now that we have covered all of that.
how about the way to make them right on the dreambox.
i have read how to do this with the nitro image but i don't remember how to do it with gemini.
nitro - put all files you want in the tmp folder and use telnet to send a command that will put all those files into a bz2 file.
does anyone remember exactly how to do this?
Create a directory in /tmp and name it for example mytargz
Inside this directory you must create the correct subdirectories for each file...
Lets say you want to create a tarball for newcamd... create the following subdirectories...
/tmp/mytargz/var/bin
/tmp/mytargz/var/tuxbox/config/newcamd
Place the newcamd binary in /tmp/mytargz/var/bin and the configs in
/tmp/mytargz/var/tuxbox/config/newcamd
Dont forget to give 755 to the binary
Then run the following commands
cd /tmp/mytargz
tar -cvf mytargz.tar var/
gzip mytargz.tar
Thats it...
Your tarball will be created in /tmp/mytargz
you can use the methode mentioned in the previous post, or you can use Power Archiver as follows:
We will be creating a tarball for evocamd. On the root directory of one of your drives, let's say D drive, create a tree that resemple the structure of evocamd tarball as follows:
d:/var/bin/
d:/var/script/
d:/var/uninstall/
-place the evocamd binary in thr /var/bin/ folder
-place the 3 install scripts in the /var/script/ folder
-place the 3 uninstall script in the /var/uninstall/ folder
-Assuming you have installed Power Archiver, from the root of your D drive, right click on the var folder and choose compress with options.
-Under Add to Archive, rename your archive to Evocamd-Complete click on TAR , and under Compression, choose BZIPTar - make sure you put a check mark on Save full folder info .
-Click Add and your tarball will be created in the root of your D drive.
ZitatAlles anzeigenOriginally posted by eolos68
Create a directory in /tmp and name it for example mytargz
Inside this directory you must create the correct subdirectories for each file...
Lets say you want to create a tarball for newcamd... create the following subdirectories...
/tmp/mytargz/var/bin
/tmp/mytargz/var/tuxbox/config/newcamd
Place the newcamd binary in /tmp/mytargz/var/bin and the configs in
/tmp/mytargz/var/tuxbox/config/newcamd
Dont forget to give 755 to the binary
Then run the following commands
cd /tmp/mytargz
tar -cvf mytargz.tar var/
gzip mytargz.tar
Thats it...
Your tarball will be created in /tmp/mytargz
this is what i was looking for.
is this tar.gz for ok for gemini or does it have to be bz2???
ZitatOriginal von goodrench
this is what i was looking for.
is this tar.gz for ok for gemini or does it have to be bz2???
It have to be ta.bz2 for Gemini
It will install on Gemini just fine.
There is not need for it to have a .bz2 extension.... .gz will do the job
Just make sure you have the files in the correct subdirectories like explained above and that you have given the correct attributes
Tested and it works.
regards
eolos68
ZitatOriginally posted by eolos68
Just make sure you have the files in the correct subdirectories like explained above and that you have given the correct attributes
I'm attempting to make a tarball for Gemini using Power Archiver (in WinXP). I get all the files downloaded OK into the correct gemini folders but they all have attributes 444. How can I make them have attributes755 (or whatever).
It seems this cannot be done in Windows and I can't see any option in Power Archiver either.
Help please.
007.4
hello
you can make a tarball on the dreambox withe bzip:
Addon erstellen mithilfe der Dreambox
Addon erstellen mithilfe der Dreambox Posting
HOWTO build Gemini package with my dreambox
--------------------------------------------------------------------------------
ZitatAlles anzeigenhis is a tutorial about Linux too.
I write this tutorial so you can use your dreambox like a real Linux machine to build a package for Gemini Images.
---------------
1) About Gemini packages:
As you know when you upload a gemini package in the directory /var/tmp you can install it with manual installation and later you can remove it by Gemini cp.
- Gemini and all images uses tar system. tar is a way to recover files
in the appropriate directory.
- Gemini image detect own packages by file compression system (bz2).
- Gemini image delete packages if a file xxxx_delfile.sh is present in the directory /var/unistall.
So if we have to prepare a package for Gemini we need:
a) Prepare the tree of our files (the directories in wich they will go)
b) Prepare the file xxx_delfile.sh (this is needed for package unistalling)
c) Use tar to build the package
d) Use bzip2 compression
----------------------------------
To do all this work we can use pur dreambox like a normal linux machine accessing to it with ftp and telnet. We can use our dreambox with all images to make this work but the only problem we have is that
in our Dreambox we have not available the bzip2 compression command. So we cannot compress package.
To solve this problem i will provide you in attachment the files you need to comprime package as bz2 with your dreambox.
I will provide you too a sample files to prepare package so yo can test to build an example package with an example xxx_delfile.sh
Ok ready to start?
------------------------
First Step:
a) Download the attachment files
bzip2.zip
test.zip
Second Step:
Now you have to install into your dreambox the bzip compress system.
This is easy.
Unzip the attachment bzip2.zip
Upload files bzip2 and bziprecover in your dreambox directory:
/usr/bin/
Now we are ready to work
Second Step:
Now you have to install into your dreambox the bzip compress system.
This is easy.
Unzip the attachment bzip2.zip
Upload files bzip2 and bziprecover in your dreambox directory:
/usr/bin/
Now we are ready to work
------------------------------------------
third step:
Now we need to create in our dreambox a directory to work.
It is not good to use the flash to make this work so i think is better to create our work enviroment into the hd or usb. So i suppose we have an Hard Disk in our Dreambox...
1) Create directory /media/hdd/personal
this is the directory we will use to create packages
2) Create subdirectory /media/hdd/personal/var
this is the subdirectory in wich we will upload files of the package for Gemini we want to build
3) Create subdirectory /media/hdd/personal/var/unistall
this is the subdirectory in wich we will upload the xxx_delfile.sh that is nedeed to unistall package
-------------------------------
four step
Ok Now we have set up own enviroment space.
We will use this to prepare our packages.
To create a new package for Gemini we have to:
1) Upload files of our package in the directory:
/media/hdd/personal/
2) Setup permissions of the files (if needed)
3) Create the file xxx_delfile.sh for our package
4) telnet to our dreambox
5) goto our working directory: cd /media/hdd/personal/
6) tar our package: tar -cvf filename.tar var
7) compress our package in Gemini format: bzip2 filename.tar
All Done. Now we have our gemini package and we can install / unistall it by gemini cp !!
But i know you need an example to all of this and to know how to create xxx-delfile.sh
So in the next step i will provide you an example to build a simple package (keys) and the relative xxx-delfile.sh so you can edit this example file for you future packages.
---------------------------
Five step: Build an example package.
Warning to execute this step you need to have installed tha bzip2 package and to have created the directory as explained above.
Ok it is time to try to build our first package.
This is an exampled procedure.
We want to create a keys package for Gemini.
We will create a test package that will install the empty files: test and test2 in the directories /var/keys and /var/scce of our Dreambox
I prepared the file test.zip to help you.
1) Download the file test.zip from the first post of this thread.
2) unzip the file.
3) upload the directory var in your dreambox directory: /media/hdd/personal/
4) telnet to your dreambox
5) from the command line digit this command:
cd /media/hdd/personal/
6) digit this command:
tar -cvf test.tar var
7) digit this command
bzip2 test.tar
All done !!
Now in the directory /media/hdd/personal/ you will find the file test.tar.bz2
This is you first package for Gemini.
You can test this package uploading it in the folder /var/tmp and tryng to install and unistall it.
-----------------------------------
Final step: Conclusions
Now you can build packages for Gemini.
You have only to upload the files of the package you want to build in the directory: /media/hdd/personal/ and repeat the procedure i explained.
The only way you have to change is the name of the package in the commands i provide and the file xxx_delfile.sh
- About package name: you have only to substitute in the commands
test.tar with the name of your package as for example Nabilokeys.tar
-About xxx_delfile.sh . To create the right delfile for your package you have to:
a) rename the file in the drectory /media/hdd/personal/var/uninstall
As for example: Nabilokeys_delfile.sh instead of test_delfile.sh
b) edit this file and add in it all the files of your package.
As for example for our test package:
That's really really all.
I hope this will be useful for somebody.
have Fun !!
Grazie mille Bacicciosat , thanks Bacicciosat
Thanks guys some good info there.
I'll have a play will all of that tomorrow.
Cheers
007.4
zur Zeit sind 39 Mitglieder (davon 7 unsichtbar) und 3.679 Gäste online - Rekord: 5.681 Benutzer ()