WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Change scripts inside directory  (Read 17221 times)

Offline gotokrikkit

  • Newbie
  • *
  • Posts: 6
Change scripts inside directory
« on: July 22, 2019, 08:50:52 PM »
Hello, I am new to Tiny Core, thanks to my boss and his Idea to drop Debian for something that is easy.

Here is my problem:

I need to push a script inside applications.gz (gzip) that contains an image called applications (cpio) with folders inside and at another archive called jwm_config.tcz that contains the script I want to modify .jwrc

Now I am trying to use debian to access the image and I get lost because I can extract and uncompress everything, but I have no Idea how to rebuild this huge mess.

Thank you

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11703
Re: Change scripts inside directory
« Reply #1 on: July 22, 2019, 09:20:28 PM »
Hi gotokrikkit
For the  .tcz  you need  squashfs-tools. To unpack it:
Code: [Select]
unsquashfs jwm_config.tczThe unsquashed package will be under a directory called  squashfs-root.  Make your changes, then squash it like this:
Quote
mksquashfs squashfs-root jwm_config.tcz

Offline gotokrikkit

  • Newbie
  • *
  • Posts: 6
Re: Change scripts inside directory
« Reply #2 on: July 22, 2019, 10:03:42 PM »
Hi, thank you for the reply :D

The mksquashfs command works fine, the problem comes after when I try to move the file back inside the cpio. I don't know how to rebuild it or at least how to mount it in rw mode.

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11703
Re: Change scripts inside directory
« Reply #3 on: July 22, 2019, 10:29:48 PM »
Hi gotokrikkit
You might want to check the Wiki. This might contain enough information:
http://wiki.tinycorelinux.net/wiki:remastering

Offline gotokrikkit

  • Newbie
  • *
  • Posts: 6
Re: Change scripts inside directory
« Reply #4 on: July 23, 2019, 01:33:31 AM »
Tried but at the end I get
" Could not find ramdisk image: /boot/core.gz"


Offline gotokrikkit

  • Newbie
  • *
  • Posts: 6
Re: Change scripts inside directory
« Reply #5 on: July 24, 2019, 08:12:23 PM »
Well guess this is another classified "great" idea from my boss ehehe

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11703
Re: Change scripts inside directory
« Reply #6 on: July 24, 2019, 08:29:58 PM »
Hi gotokrikkit
Tried but at the end I get
" Could not find ramdisk image: /boot/core.gz"
The link I provided was to serve as an example of the syntax of the commands. You're trying to unpack/repack something called
applications.gz,  not remaster an ISO.

Offline gotokrikkit

  • Newbie
  • *
  • Posts: 6
Re: Change scripts inside directory
« Reply #7 on: July 24, 2019, 08:37:41 PM »
Hey no I tried to repack the core.gz after some changes, just to get comfortable to the procedure. Unfortunately after following the instructions the core.gz was not recognized (althought it was there) at boot

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11703
Re: Change scripts inside directory
« Reply #8 on: July 24, 2019, 08:47:01 PM »
Hi gotokrikkit
Maybe this provides better instructions:
http://forum.tinycorelinux.net/index.php/topic,15493.0.html

Offline gotokrikkit

  • Newbie
  • *
  • Posts: 6
Re: Change scripts inside directory
« Reply #9 on: July 24, 2019, 11:47:18 PM »
Tried to run it but I think that it needs to be run from inside a working tinycore linux, something that at the moment I cannot do because I need to modify the core before installing it.

Offline coreplayer2

  • Hero Member
  • *****
  • Posts: 3020
Re: Change scripts inside directory
« Reply #10 on: July 25, 2019, 02:47:35 AM »
Tried to run it but I think that it needs to be run from inside a working tinycore linux, something that at the moment I cannot do because I need to modify the core before installing it.
Surely you can boot core on a PC, or virtual machine??


Sent from my iPhone using Tapatalk