Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Sat 30 Aug 2014, 14:52
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Unsorted
xFileMount.pup -mount, unmount many file types - GUI
Moderators: deshlab, Flash, GuestToo, Ian, JohnMurga, Lobster
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
Page 3 of 4 Posts_count   Goto page: Previous 1, 2, 3, 4 Next
Author Message
sunburnt


Joined: 08 Jun 2005
Posts: 5016
Location: Arizona, U.S.A.

PostPosted: Sun 17 Dec 2006, 02:58    Post_subject:  

I wrote a GUI utility for making new Squash files as I'm sure many have,
but then Puppy should have tools like this as they've very small & useful.

The remaster scripts (there's quite a few) make new Squash & Gzip images.
Alot of the time apps. added to the big Squash file need config files in /etc,
which is in the Gzip file (initrd.gz = Puppy2) or (image.gz = Puppy1).
Also the WindowManager menus are in /root in the Gzip image file.

These scripts make it easy, just setup Puppy how you want it & remaster.
Puppy runs so many different ways, the scripts remaster just a few of them.
Back to top
View user's profile Send_private_message 
lederlunge


Joined: 12 Nov 2005
Posts: 17

PostPosted: Wed 20 Dec 2006, 08:19    Post_subject:  

is there any chance to teach this application to work with tar.gz files ?
Back to top
View user's profile Send_private_message 
sunburnt


Joined: 08 Jun 2005
Posts: 5016
Location: Arizona, U.S.A.

PostPosted: Wed 20 Dec 2006, 16:09    Post_subject:  

Hi lederlunge; Puppy has a Gzip app., but I find half the time that it doesn't work.
Yes GZip & Tar functions could be added to it, I thought about that,
but they don't really perform file mounting as such, so I didn't include it.

I'm in the process of adding some new capabilities to xfilemount, so I'll
keep compression formats in mind for upgrading it to a multi use app.
Back to top
View user's profile Send_private_message 
kleung21

Joined: 18 Nov 2006
Posts: 28
Location: Toronto, Ontario

PostPosted: Wed 20 Dec 2006, 21:41    Post_subject:  

Sunburnt...

Thanks for this utility - I find it very useful.
Back to top
View user's profile Send_private_message 
lederlunge


Joined: 12 Nov 2005
Posts: 17

PostPosted: Fri 22 Dec 2006, 07:24    Post_subject:    

i have not understood how to make a *.tar.gz file with Gzip.

thanx anyway

###################
# Shocked let there be SMOKE Laughing #
###################
Back to top
View user's profile Send_private_message 
sunburnt


Joined: 08 Jun 2005
Posts: 5016
Location: Arizona, U.S.A.

PostPosted: Fri 22 Dec 2006, 13:28    Post_subject:  

kleung21; Thanks... Nice to hear about one's efforts being useful to others!


lederlunge; Here's some code snips for Tar & Gzip from my collection:

### To extract files from a tar + gzip archives, ".tar.gz" & ".tgz".
gunzip < (file.tar.gz) | tar xvf -
gunzip < (file.tgz) | tar xvf -

### To compress files to a tar + gzip archive, do BOTH lines: tar then gzip.
tar -cvf (newFileName.tar) (Path&Files)
gzip -9 (newFileName.tar)

### To tar files & to untar files, cf = compress files & xf = extract files.
tar -cvf (newfile.tar) (path & files)
tar -xf (path & file.tar)

### To extract Gzip files, use gunzip
gunzip (file.gz)


All of these are typed into Xterm, while in the file's dir.
Back to top
View user's profile Send_private_message 
Pizzasgood


Joined: 04 May 2005
Posts: 6270
Location: Knoxville, TN, USA

PostPosted: Fri 22 Dec 2006, 15:45    Post_subject:  

You can add a -z tag to the tar command and it does the gunzip part automatically:
tar -zxf file.tar.gz

_________________
Between depriving a man of one hour from his life and depriving him of his life there exists only a difference of degree. --Muad'Dib

Back to top
View user's profile Send_private_message Visit_website 
sunburnt


Joined: 08 Jun 2005
Posts: 5016
Location: Arizona, U.S.A.

PostPosted: Fri 22 Dec 2006, 19:07    Post_subject:  

PizzasGood; I assume that this compression command wouldn't work?

tar -zcf file.tar
Back to top
View user's profile Send_private_message 
Gn2


Joined: 16 Oct 2006
Posts: 936
Location: virtual - Veni vidi, nihil est adpulerit

PostPosted: Fri 22 Dec 2006, 19:25    Post_subject:  

Use the built-in man help files
Code:
(man) tar  gzip bzip2

If not included, See the list , right side of Page
Back to top
View user's profile Send_private_message 
sunburnt


Joined: 08 Jun 2005
Posts: 5016
Location: Arizona, U.S.A.

PostPosted: Fri 22 Dec 2006, 20:44    Post_subject:  

It does work... except the correct command line would be:

tar -zcf FileName.tar.gz *
Back to top
View user's profile Send_private_message 
Gn2


Joined: 16 Oct 2006
Posts: 936
Location: virtual - Veni vidi, nihil est adpulerit

PostPosted: Sat 23 Dec 2006, 00:50    Post_subject:  

Be VERY careful with syntax - tar creates an archive and ADDS files or directories to that archive -
Use of compression utilities along with tar complicates further !
If just compression is wanted tar is not Req'd - any compressed files/folders may be archived as one - added/removed later.

It is strongly advised > create a temporary folder, copy non-essential files there & then play with variations of the CLI &
varied parameters to see results.
It will also be noted - the order of parameters is important !

Single files or directories may be added (concatenated) or pulled out of the archives.

READ the man files carefully
Back to top
View user's profile Send_private_message 
lederlunge


Joined: 12 Nov 2005
Posts: 17

PostPosted: Mon 25 Dec 2006, 06:45    Post_subject:  

after
#uncompress with

tar xvzf backup.tar.gz

and repack with

tar cvzf backup.tar.gz home/ usr/ opt/

the file is somewhat broken and the mashine cannot boot -...and i cannot listen to christmas songz.

holy sh**!
Back to top
View user's profile Send_private_message 
wow

Joined: 29 Jun 2006
Posts: 986
Location: Peru

PostPosted: Thu 04 Jan 2007, 21:21    Post_subject:  

Small update, now has support for the new mime database(Puppy-2.13), and also the old mime structure for xFileMount. It works for Puppy-2.xx and Puppy 1.xx, older versions I don't know Embarassed (icons not included Cool )

Supported files: *.3fs; *.2fs; *.iso; *.sfs; *.squashfs; *.sqfs; *.fs;*.img

sunburnt, with the new mime database it is possible to add mime types for filenames such as: initrd, initrd.gz, image, image.gz. But, Is it safe to do it?

And about the icons I'll release a new Icon Theme for Puppy-2.13/ROX-Filer-2.5 tomorrow.
MIME-Types-xfilemount_rev2.pup
Description  updated for puppy 2.13
pup

 Download 
Filename  MIME-Types-xfilemount_rev2.pup 
Filesize  2.07 KB 
Downloaded  374 Time(s) 

_________________

Back to top
View user's profile Send_private_message 
sunburnt


Joined: 08 Jun 2005
Posts: 5016
Location: Arizona, U.S.A.

PostPosted: Thu 04 Jan 2007, 22:05    Post_subject:  

wow; I see no problem with adding specific files as mime types,
the image files aren't executable anyway, so it shouldn't matter.

As I see it, if clicking on a file in ROX doesn't have anyother purpose,
then setting a mime type for the file should be okay.


lederlunge; I missed your post (I don't know why I wasn't emailed).
I'm not sure just what your trying to do, or what your saying has happened.
Back to top
View user's profile Send_private_message 
wow

Joined: 29 Jun 2006
Posts: 986
Location: Peru

PostPosted: Thu 04 Jan 2007, 22:21    Post_subject:  

Well, I'll make an optional dotpup for those types later.
_________________

Back to top
View user's profile Send_private_message 
Display_posts:   Sort by:   
Page 3 of 4 Posts_count   Goto page: Previous 1, 2, 3, 4 Next
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Unsorted
Jump to:  

Rules_post_cannot
Rules_reply_cannot
Rules_edit_cannot
Rules_delete_cannot
Rules_vote_cannot
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0704s ][ Queries: 12 (0.0046s) ][ GZIP on ]