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
  •  


Cisco UCS B200 M4 Blade Module 2x Xeon E5-2680 v3 12-Core NO RAM NO HDD picture

Cisco UCS B200 M4 Blade Module 2x Xeon E5-2680 v3 12-Core NO RAM NO HDD

$39.99



Dell PowerEdge FX2s CTO Blade 4 Slot 2U Chassis 2x 2000W picture

Dell PowerEdge FX2s CTO Blade 4 Slot 2U Chassis 2x 2000W

$399.00



DELL PEM640 POWEREDGE M640 BLADE SERVER picture

DELL PEM640 POWEREDGE M640 BLADE SERVER

$539.95



Dell PowerEdge M640 Barebone Server Blade No Hard Drive Trays picture

Dell PowerEdge M640 Barebone Server Blade No Hard Drive Trays

$499.00



HP Proliant BL460C Gen8 Blade Server 2x 8C E5-2690 192GB Ram picture

HP Proliant BL460C Gen8 Blade Server 2x 8C E5-2690 192GB Ram

$58.15



Google Search Appliance - Dell PowerEdge R710 x2 Xeon X5690 192GB Memory 6TB HDD picture

Google Search Appliance - Dell PowerEdge R710 x2 Xeon X5690 192GB Memory 6TB HDD

$529.99



🔥 World Of Warcraft Server Blade 🔥 picture

🔥 World Of Warcraft Server Blade 🔥

$944.86



Dell PowerEdge M520 Blade Server Xeon E5-2403 NO HDD NO RAM picture

Dell PowerEdge M520 Blade Server Xeon E5-2403 NO HDD NO RAM

$45.00



DELL PowerEdge M630 Blade 2x E5-2697v4 2.3GHz =36 Cores 128GB H330 2x10Gb X520 picture

DELL PowerEdge M630 Blade 2x E5-2697v4 2.3GHz =36 Cores 128GB H330 2x10Gb X520

$351.00



DELL PowerEdge M630 Blade 2x E5-2687Wv3 3.1GHz =20 Cores 32GB H330 2x10Gb X520 picture

DELL PowerEdge M630 Blade 2x E5-2687Wv3 3.1GHz =20 Cores 32GB H330 2x10Gb X520

$193.00