WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Quick hack to convert Debian packages.  (Read 55625 times)

aus9

  • Guest
Re: Quick hack to convert Debian packages.
« Reply #15 on: September 11, 2010, 10:36:28 PM »
hi

Thanks for the script.

Any chance of making this a sticky?

Offline dashism

  • Newbie
  • *
  • Posts: 7
Re: Quick hack to convert Debian packages.
« Reply #16 on: September 12, 2010, 02:43:51 AM »
thanks for the script
but when i try to use it Iface with this error : "sh: deb2tc: not found!" :o
I added the executable file to /sbin folder but error exist.
any help will be appreciated .

Offline Jason W

  • Administrator
  • Hero Member
  • *****
  • Posts: 9730
Re: Quick hack to convert Debian packages.
« Reply #17 on: September 12, 2010, 03:37:34 AM »
dashism - did you make the file itself executable after downloading?

aus9 - thanks, but I think it is best left like it is.

Offline dashism

  • Newbie
  • *
  • Posts: 7
Re: Quick hack to convert Debian packages.
« Reply #18 on: September 12, 2010, 04:11:50 AM »
of course yes .
 I used  #chmod +x deb2tc .
is there any extra information that I don't know ?
thanks


Offline Jason W

  • Administrator
  • Hero Member
  • *****
  • Posts: 9730
Re: Quick hack to convert Debian packages.
« Reply #19 on: September 12, 2010, 05:56:22 AM »
Only other thing I can think of is to make sure #!/bin/sh is on the first line and not below it.  I corrected the  quoted script as there was a space there, which would cause issue if that space was copied.

Offline tinypoodle

  • Hero Member
  • *****
  • Posts: 3857
Re: Quick hack to convert Debian packages.
« Reply #20 on: September 12, 2010, 12:06:05 PM »
Is there any particular reason you put it into /sbin ?
seems rather unorthodox to me...   ::)
"Software gets slower faster than hardware gets faster." Niklaus Wirth - A Plea for Lean Software (1995)

Offline dashism

  • Newbie
  • *
  • Posts: 7
Re: Quick hack to convert Debian packages.
« Reply #21 on: September 12, 2010, 11:08:32 PM »
no , but when I tried to use it in a directory I experience the same problem so I put it into /sbin .
If you know another or the correct way to use this executable file please help me . ;)
I also solved my problem to some extend by using the .rpm version of the package and converting it to .tcz .
thanks

Offline pix

  • Newbie
  • *
  • Posts: 5
Re: Quick hack to convert Debian packages.
« Reply #22 on: December 02, 2010, 05:51:27 AM »
Thank you for this amazing tip! I have been looking enviously at Tinycore for a little while now, trying to decide how I can use it at home. I'm looking to build a home server project and eventually my desktop on Tinycore. A modular OS is what I have craved since I was 12 years old and BARTPE NEARLY gave me what I was looking for, but tincore should produce something even better with a smaller footprint!!! With v3.3 released and looking good, this tip to import addiitional software may be enough! :)

Thank you again.


Offline SamK

  • Hero Member
  • *****
  • Posts: 713
Re: Quick hack to convert Debian packages.
« Reply #23 on: December 29, 2010, 03:43:14 AM »
Don't know if you're already aware of this one, so just in case...

Without modification, the script fails when used with TC3 as it requires "squashfs-tools-4.0".  In the TC3 repo this is named "squashfs-tools-4.x.tcz".
   

Offline Jason W

  • Administrator
  • Hero Member
  • *****
  • Posts: 9730
Re: Quick hack to convert Debian packages.
« Reply #24 on: December 29, 2010, 06:45:57 AM »
Thanks.  I will use a check like "which mksquashfs" instead of looking for a specific extension name so the eventual move to squashfs-tools 5.x won't break it again.

coreplayer

  • Guest
Re: Quick hack to convert Debian packages.
« Reply #25 on: June 08, 2011, 08:37:32 PM »
This is so cool however I just wish there was less guessing at each step..

I'm a newbie here and need a little guidance?

First created the blank file in the same directory as the deb file to be converted. next copied the script into it and named it deb2tc

opened a terminal window at this location and you guessed it:  ERROR file not found

ok a ton of reading later and placed the script file in /bin

Error do not run as root..   

ok who would have thought!  oh well opened a terminal as user and all is well

so the first two hurdles "Filed not found" and "do not run as root"

next problem; 

Error  Install squashfs-tools-4.0 before proceeding :(

How can this be?  I mean the extension was installed prior to running the script. 

squashfs-tools-4.0 was installed as "On-Boot"  and rebooted earlier. 

If the ext is already installed why would I need to run install squashfs-tools-4.0 at the terminal?  I don't get it and am getting tired of feeling around in the dark..

So anyone what 's missing please?

 

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11178
Re: Quick hack to convert Debian packages.
« Reply #26 on: June 08, 2011, 09:58:58 PM »
Hi coreplayer

Quote
First created the blank file in the same directory as the deb file to be converted. next copied the script into it and named it deb2tc

opened a terminal window at this location and you guessed it:  ERROR file not found

Try ./deb2tc and it will find it. If you want to execute a file in the directory you are in AND that directory
is not listed in the PATH variable then you need to precede the filename with  ./

coreplayer

  • Guest
Re: Quick hack to convert Debian packages.
« Reply #27 on: June 08, 2011, 10:10:47 PM »
cool thanks for the tip.

Any assistance with the issue of "Install squashfs-tools-4.0 before proceeding "  ??  

Only thing I can see is the script call for version squashfs-tools-4.0  yet the version installed is "squashfs-tools-4.x"  maybe a co-coincidence?

Ok this was indeed the issue!!   project completed  phew!!  I could have done without that pita  hope I remember what i did the next time..
« Last Edit: June 08, 2011, 10:18:36 PM by coreplayer »

Offline jur

  • Hero Member
  • *****
  • Posts: 863
    • cycling photo essays
Re: Quick hack to convert Debian packages.
« Reply #28 on: June 08, 2011, 10:16:24 PM »
No, that's it - the squashfs-tools was 4.0 a while ago when that script was written, but is now changed to 4.x. So you need to find the code snippets containing 4.0 and change that to 4.x.

coreplayer

  • Guest
Re: Quick hack to convert Debian packages.
« Reply #29 on: June 08, 2011, 10:24:07 PM »
yes thanks I found that that was the issue already :D