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 Fri 29 Aug 2014, 01:25
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 [56 Posts]   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 poster's 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  373 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 from previous:   Sort by:   
Page 3 of 4 [56 Posts]   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:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


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