WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: move cups-pdf from onboot to "dep" of minefield; howto?  (Read 2651 times)

Offline floppy

  • Hero Member
  • *****
  • Posts: 577
move cups-pdf from onboot to "dep" of minefield; howto?
« on: October 01, 2012, 06:07:18 AM »
hello,
I achieved to install cups-pdf on my hp dc7100 (the AMD K6-III install was not successfull few months ago).
But it is "onboot" and it takes boot-time.

Is there any possibility to move cups-pdf as a dependency from "minefield" = only when I start minefield (or other programms), cups-pdf would be available.

The issue in my opinion is the bootlocal.sh which should contain the line "/usr/local/etc/init.d/cups start".
And I dont know how to start that line when an application is loaded. So, how to do it?


Perhaps the .dep files could be extended with a new possibility ?
=============================================
extensiondepfile.dep
...
abcd.tcz (dep as per today situation)
cdef.tcz
...
skriptuser.sh
...

Skriptuser would be executed after application loading.
=============================================
AMD K6-IIIATZ 550MHz MB DFI K6xv3/+66
P4 HP DC7100 3GB 3GHz
Samsung NC10 boot from SD card port (via USB reader)
.. all TinyCore proofed

Offline netnomad

  • Hero Member
  • *****
  • Posts: 1026
Re: move cups-pdf from onboot to "dep" of minefield; howto?
« Reply #1 on: October 01, 2012, 07:07:49 AM »
hi floppy,

as far as i know it's not possible to include in the dep-file something different than a tcz-package.
so a script in the dep-file won't be executed.

i would recommend you another approach:
prepare yourself a individual dummy-package f.e. mycups-pdf.tcz
this dummy-package has in it's dep-file the original dependency to cups-pdf, that means everything stays compatible even the cups-pdf.tcz will be updated in the future.
cups-pdf.tcz loads cups.tcz as a dependency.
in this dummy-package mycups-pdf.tcz you can include a script under /usr/local/tce.installed/ that starts cups,
and at the same time cups-pdf is loaded, too.

f.e. this could be /usr/local/tce.installed/mycups-pdf

#!/bin/sh

sleep 3
sudo /usr/local/etc/init.d/dbus start
sudo /usr/local/etc/init.d/cups start

now you can include mycups-pdf.tcz in the dep-file of minefield and everything should work as you expected.

i use this approach for sound and printing in some individual meta-packages all the time and it works stable.
« Last Edit: October 01, 2012, 07:09:50 AM by netnomad »

Offline netnomad

  • Hero Member
  • *****
  • Posts: 1026
Re: move cups-pdf from onboot to "dep" of minefield; howto?
« Reply #2 on: October 01, 2012, 07:17:34 AM »
hi floppy,

i can offer you a far simpler way to get a pdf with the help of minefield!
all mozilla-products are able to print to a file in pdf-format.
this pdf is created with some advantages:

compared to cups-pdf
it's far quicker to create a pdf and to load it later,
the size is just 25-30%
and i guess that even the quality is much better.

try it and give me your reply whether you experience the same results.

Offline tinypoodle

  • Hero Member
  • *****
  • Posts: 3857
Re: move cups-pdf from onboot to "dep" of minefield; howto?
« Reply #3 on: October 01, 2012, 06:40:49 PM »

all mozilla-products are able to print to a file in pdf-format.


Maybe what you refer to is gtk2's builtin printing feature?
"Software gets slower faster than hardware gets faster." Niklaus Wirth - A Plea for Lean Software (1995)

Offline floppy

  • Hero Member
  • *****
  • Posts: 577
Re: move cups-pdf from onboot to "dep" of minefield; howto?
« Reply #4 on: October 05, 2012, 12:39:39 PM »
prepare yourself a individual dummy-package f.e. mycups-pdf.tcz
-> how?   "touch mycups-pdf.tcz" ?

in this dummy-package mycups-pdf.tcz you can include a script under /usr/local/tce.installed/ that starts cups,
and at the same time cups-pdf is loaded, too.
-> how?   create and later put /usr/local/tce.installed/mycups-pdf in .filetool.lst ?

I was reading the instructions for making scripts of extensions in the wiki. But dont know how where to include them.
AMD K6-IIIATZ 550MHz MB DFI K6xv3/+66
P4 HP DC7100 3GB 3GHz
Samsung NC10 boot from SD card port (via USB reader)
.. all TinyCore proofed

Offline netnomad

  • Hero Member
  • *****
  • Posts: 1026
Re: move cups-pdf from onboot to "dep" of minefield; howto?
« Reply #5 on: October 05, 2012, 05:09:35 PM »
prepare yourself a individual dummy-package f.e. mycups-pdf.tcz
-> how?   "touch mycups-pdf.tcz" ?

in this dummy-package mycups-pdf.tcz you can include a script under /usr/local/tce.installed/ that starts cups,
and at the same time cups-pdf is loaded, too.
-> how?   create and later put /usr/local/tce.installed/mycups-pdf in .filetool.lst ?

I was reading the instructions for making scripts of extensions in the wiki. But dont know how where to include them.

hi floppy,

look in /tmp/tcloop and have a look to the different directories that show you the file- and dir-structure of your loaded packages...

then create a similiar dir-structure for your dummy-package f.e. in /tmp/mycups-pdf/ and

then create with
mksquashfs /tmp/mycups-pdf/ mycups-pdf.tcz
your dummy-package.
« Last Edit: October 05, 2012, 05:11:30 PM by netnomad »

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11621
Re: move cups-pdf from onboot to "dep" of minefield; howto?
« Reply #6 on: October 05, 2012, 10:02:02 PM »
Hi floppy
Quote
But it is "onboot" and it takes boot-time.
So address the problem directly. Remove cups-pdf from OnBoot. Create the following script:
/home/tc/.local/bin/cups-loader.sh
Code: [Select]
#!/bin/sh
tce-load -i path/to/cups-pdf
/usr/local/etc/init.d/cups start
Create the file:
/home/tc/.X.d/load-cups-pdf
Code: [Select]
cups-loader.shThat will delay loading cups-pdf until after your desktop is loaded.