LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Puppy
User Name
Password
Puppy This forum is for the discussion of Puppy Linux.

Notices


Reply
  Search this Thread
Old 12-19-2014, 08:00 AM   #1
Fixit7
Senior Member
 
Registered: Mar 2014
Location: El Lago, Texas
Distribution: Ubuntu_Mate 16.04
Posts: 1,374

Rep: Reputation: 169Reputation: 169
Add full path to file name in an archive


When I use Xarchive to add a file, it does not add the full path, only the file name.

It is for a pet file.
 
Old 12-19-2014, 10:43 AM   #2
neerajkolte
LQ Newbie
 
Registered: May 2014
Location: Pune, India.
Distribution: Fatdog64
Posts: 13

Rep: Reputation: 6
Hi Andy,
Make a fake and empty copy of system folders that lay below / and keep your files for that pet in them.
You don't need all folders under /, just where you want to put your files.
Make sure names of folders and their subfolders are same as in your system.
Then select those folders and make a .pet or .sfs archive.
And don't forget to delete all these folders you made in the end when you get the pet.
Or do all this in /tmp folder, puppy will delete them when shutting down.

This is what I have used, maybe somebody knowledgeable will tell you some thing simpler.

Thanks.

- Neeraj.
 
Old 12-19-2014, 10:52 AM   #3
neerajkolte
LQ Newbie
 
Registered: May 2014
Location: Pune, India.
Distribution: Fatdog64
Posts: 13

Rep: Reputation: 6
For making sfs I make a folder with the pet name say xyz-1.1 in /tmp
Then create folders in it and place my files just like I said above.
Then open a terminal in /tmp, run the command
Code:
mksquashfs xyz-1.1 xyz-1.1.sfs
Making an sfs before .pet lets me check the software's working with sfs-load/unload without doing any changes to my working system.
Thanks.

- Neeraj.
 
Old 12-19-2014, 03:07 PM   #4
Fixit7
Senior Member
 
Registered: Mar 2014
Location: El Lago, Texas
Distribution: Ubuntu_Mate 16.04
Posts: 1,374

Original Poster
Rep: Reputation: 169Reputation: 169
It sounds complicated.

I can add files in Windows that contain the directory name.

Seems much easier.

Then I can convert the tar.gz file to a pet file.
 
Old 12-20-2014, 01:10 AM   #5
Fixit7
Senior Member
 
Registered: Mar 2014
Location: El Lago, Texas
Distribution: Ubuntu_Mate 16.04
Posts: 1,374

Original Poster
Rep: Reputation: 169Reputation: 169
This is how I made a pet file.

I wanted sensors to show Fahrenheit instead of Celsius.

So I changed the config file and added it.

Now I can easily re-install CPUTemp and have it show degrees F.

(I noticed that tar files are very much larger than zip, or tgz files.
Are they compressed at all ?)

I tried to upload the compressed pet file, but I could not. ?

Quote:
#!/bin/bash
#
#(USEFUL IN MAKING PET FILES)
# CREATE A .TGZ COMPRESSED FILE and Convert it to a .pet file
#
#
clear
tar -cpzf CPU_Temp CPUtemp-1.7
tgz2pet CPU_Temp.tgz

Last edited by Fixit7; 12-20-2014 at 01:14 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Configuring GNOME to have Full File Path Text Fields in File Open Dialog Boxes bgoodr Linux - Desktop 3 11-29-2011 09:07 AM
Add files to a zip archive without having to re write the entire file? gabriel.560 Linux - Software 6 09-13-2011 10:09 AM
How to get the full path of a file in C? Basel Programming 3 10-30-2010 10:52 PM
TAR Archive file - need relative path cmd0a0 Linux - Software 2 10-19-2005 02:57 PM
shell script - add file to archive ? xconspirisist Linux - Software 2 03-20-2004 03:27 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Puppy

All times are GMT -5. The time now is 09:02 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration