PDA

View Full Version : How to edit the contents of .tbz file



probono
03-19-2003, 04:07 AM
I want to look inside the configz.tbz file that is created when Knoppix settings are saved. Unfortunately, the KDE archiver program "ark" does not open the .tbz file. How can I edit the contents of this file? (I want only some settings to be "persistent")

And, is there any advantage to using .tbz instead of, let's say, .tar.bz, which ark could handle?

probono
03-19-2003, 04:10 AM
Oops, this was easier than I thought. Just rename the configs.tbz to configs.tar.bz and you can open it!

rickenbacherus
03-19-2003, 04:36 AM
'.tbz' is acceptable shorthand for tar.bz

Dave_Bechtel
03-19-2003, 05:26 AM
At the command line, you can do ' tar tjvf configz.tbz |less ' OR:
' bzip2 -cd configz.tbz | tar tvf - | less '


I want to look inside the configz.tbz file that is created when Knoppix settings are saved. Unfortunately, the KDE archiver program "ark" does not open the .tbz file. How can I edit the contents of this file? (I want only some settings to be "persistent")

And, is there any advantage to using .tbz instead of, let's say, .tar.bz, which ark could handle?

probono
03-19-2003, 05:58 AM
'.tbz' is acceptable shorthand for tar.bzperhaps we should tell that the ark developers so that they can include it as an acceptable suffix for ark.

probono
03-19-2003, 06:07 AM
At the command line, you can do ' tar tjvf configz.tbz |less ' OR:
' bzip2 -cd configz.tbz | tar tvf - | less ' Thanks a lot!
How can I pack them again after editing them or deleting unneeded files? (e. g. saving such things as X configuration and fstab is actually stupid since it renders hardware autodetection useless! Antialiasing however is a thing I would love to save...)

Dave_Bechtel
03-19-2003, 08:48 AM
--I dunno; if you custom-modified your fstab you'd definitely want to save a copy. Personally I don't use the save-config stuff; just boot KPX where needed, usually w/o X. I figure running from CD is *designed* to be ad-hoc, and use knx-hdinstall for "saving changes" :lol:

--Anyway, the ' tar tvf ' only LISTS the files in the tarball. CD to where you want the extracted files and dirs to go, and replace "t" with "x" (tar xvf). This will eXtract the directories and all into your current directory. I highly recommend using ' mc ' to browse and delete. Also make a copy of the original .tbz file JustInCase. To re-archive it gets a little tricky:
' tar cvf - * |bzip2 >configz.tbz '

--This is an *uncofirmed* method of re-archiving. You'll have to double check that the config-restore program extracts the re-archived file correctly, due to subdirectories not being fully-qualified. (See ' info tar ' for more info on tar than you ever hoped to see.) Again, I don't use the saveconfig/restore stuff; tried it once and then just installed to HD.



At the command line, you can do ' tar tjvf configz.tbz |less ' OR:
' bzip2 -cd configz.tbz | tar tvf - | less ' Thanks a lot!
How can I pack them again after editing them or deleting unneeded files? (e. g. saving such things as X configuration and fstab is actually stupid since it renders hardware autodetection useless! Antialiasing however is a thing I would love to save...)