Results 1 to 7 of 7

Thread: How to edit the contents of .tbz file

  1. #1
    Senior Member registered user
    Join Date
    Feb 2003
    Location
    Germany
    Posts
    1,159

    How to edit the contents of .tbz file

    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?

  2. #2
    Senior Member registered user
    Join Date
    Feb 2003
    Location
    Germany
    Posts
    1,159
    Oops, this was easier than I thought. Just rename the configs.tbz to configs.tar.bz and you can open it!

  3. #3
    Senior Member registered user
    Join Date
    Mar 2003
    Location
    colorado springs, colorado
    Posts
    1,933
    '.tbz' is acceptable shorthand for tar.bz

  4. #4
    Senior Member registered user
    Join Date
    Nov 2002
    Location
    USA, IL
    Posts
    1,041

    Re: How to edit the contents of .tbz file

    At the command line, you can do ' tar tjvf configz.tbz |less ' OR:
    ' bzip2 -cd configz.tbz | tar tvf - | less '

    Quote Originally Posted by probono
    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?

  5. #5
    Senior Member registered user
    Join Date
    Feb 2003
    Location
    Germany
    Posts
    1,159
    Quote Originally Posted by rickenbacherus
    '.tbz' is acceptable shorthand for tar.bz
    perhaps we should tell that the ark developers so that they can include it as an acceptable suffix for ark.

  6. #6
    Senior Member registered user
    Join Date
    Feb 2003
    Location
    Germany
    Posts
    1,159

    Re: How to edit the contents of .tbz file

    Quote Originally Posted by Dave_Bechtel
    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...)

  7. #7
    Senior Member registered user
    Join Date
    Nov 2002
    Location
    USA, IL
    Posts
    1,041

    Re: How to edit the contents of .tbz file

    --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"

    --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.

    Quote Originally Posted by probono
    Quote Originally Posted by Dave_Bechtel
    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...)

Similar Threads

  1. Which file to edit for configuring LAN
    By leenux in forum Networking
    Replies: 5
    Last Post: 12-08-2004, 04:49 AM
  2. edit knoppix-autoconfig changes file sys to RO ?
    By bigal2000 in forum Hdd Install / Debian / Apt
    Replies: 0
    Last Post: 07-07-2004, 04:53 PM
  3. Trying to edit file onn hdd.
    By CyberInzane in forum Hdd Install / Debian / Apt
    Replies: 3
    Last Post: 02-23-2004, 09:33 PM
  4. how can i edit a "read only" file (/etc/*.conf)
    By t0rp3d0 in forum General Support
    Replies: 1
    Last Post: 07-29-2003, 09:48 PM
  5. How to manually edit the contents of configs.tbz
    By probono in forum General Support
    Replies: 0
    Last Post: 04-03-2003, 05:31 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Intel Xeon E3-1270 v6 3.80GHz 4 Cores SR326 LGA1151 CPU Processor picture

Intel Xeon E3-1270 v6 3.80GHz 4 Cores SR326 LGA1151 CPU Processor

$46.00



Intel Xeon E5-2697A V4 2.6GHz CPU Processor 16-Core Socket LGA2011 SR2K1 picture

Intel Xeon E5-2697A V4 2.6GHz CPU Processor 16-Core Socket LGA2011 SR2K1

$39.99



Intel - Core i9-12900K Desktop Processor 16 (8P+8E) Cores up to 5.2 GHz Unloc... picture

Intel - Core i9-12900K Desktop Processor 16 (8P+8E) Cores up to 5.2 GHz Unloc...

$619.99



Intel - Core i7-12700K Desktop Processor 12 (8P+4E) Cores up to 5.0 GHz Unloc... picture

Intel - Core i7-12700K Desktop Processor 12 (8P+4E) Cores up to 5.0 GHz Unloc...

$419.99



Intel Core i9-13900KF Unlocked Desktop Processor - 24 Cores (8P+16E) & 32 Thread picture

Intel Core i9-13900KF Unlocked Desktop Processor - 24 Cores (8P+16E) & 32 Thread

$549.99



Intel Core i7-3770 3.40GHz 8MB Quad Core Socket LGA1155 CPU Processor SR0PK picture

Intel Core i7-3770 3.40GHz 8MB Quad Core Socket LGA1155 CPU Processor SR0PK

$35.00



FULLY TESTED  Intel i7-7700 Quad-core 3.6GHz  SR338 LGA 1151 Desktop Processor picture

FULLY TESTED Intel i7-7700 Quad-core 3.6GHz SR338 LGA 1151 Desktop Processor

$65.00



AMD Ryzen 5 5500 6-Core 3.6GHz Socket AM4 65W CPU Desktop Processor picture

AMD Ryzen 5 5500 6-Core 3.6GHz Socket AM4 65W CPU Desktop Processor

$93.98



Intel 16 Core i7-13700T DESKTOP processor TURBO Boost 4.90Ghz CM8071504820903 picture

Intel 16 Core i7-13700T DESKTOP processor TURBO Boost 4.90Ghz CM8071504820903

$269.00



Intel Core i7-7700 3.60GHz Quad-Core CPU picture

Intel Core i7-7700 3.60GHz Quad-Core CPU

$41.75