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
  •  


TP-Link 24-Port Gigabit Ethernet Unmanaged Switch Desktop/Rackmount TL-SG1024D picture

TP-Link 24-Port Gigabit Ethernet Unmanaged Switch Desktop/Rackmount TL-SG1024D

$69.99



Fortinet FortiSwitch FS-124D-POE 24 Port Gigabit Ethernet Switch UNREGISTERED picture

Fortinet FortiSwitch FS-124D-POE 24 Port Gigabit Ethernet Switch UNREGISTERED

$99.97



CISCO MERAKI MS120-24P-HW 24-PORT GIGABIT CLOUD MANAGED PoE SWITCH - UNCLAIMED picture

CISCO MERAKI MS120-24P-HW 24-PORT GIGABIT CLOUD MANAGED PoE SWITCH - UNCLAIMED

$103.74



Dell X1018 X-Series Smart Managed Switches 16-Port Gigabit 2-Port SFP Switch picture

Dell X1018 X-Series Smart Managed Switches 16-Port Gigabit 2-Port SFP Switch

$42.00



NETGEAR GS108 ProSafe 8-Port GbE Unmanaged Switch w/ Power Adapter picture

NETGEAR GS108 ProSafe 8-Port GbE Unmanaged Switch w/ Power Adapter

$14.99



Dell X1026P E11W 24-Port PoE Smart Managed Gigabit Ethernet Switch 2X SFP picture

Dell X1026P E11W 24-Port PoE Smart Managed Gigabit Ethernet Switch 2X SFP

$25.00



Dell X1052P Series 52-Port Gigabit Rack Mountable Managed Network Switch picture

Dell X1052P Series 52-Port Gigabit Rack Mountable Managed Network Switch

$30.00



New 10/100 Mbps 8 Ports Fast Ethernet LAN Desktop RJ45 Network Switch Hub picture

New 10/100 Mbps 8 Ports Fast Ethernet LAN Desktop RJ45 Network Switch Hub

$11.49



Cisco WS-C3750X-48PF-S 48 Port PoE Gigabit Switch w/ C3KX-NM-10G & Dual 1100WAC picture

Cisco WS-C3750X-48PF-S 48 Port PoE Gigabit Switch w/ C3KX-NM-10G & Dual 1100WAC

$121.88



Loocam Gigabit PoE Switch 8 Port 96W 2 Uplink Port Unmanaged Ethernet Switch picture

Loocam Gigabit PoE Switch 8 Port 96W 2 Uplink Port Unmanaged Ethernet Switch

$49.99