Tiny Core Linux
Tiny Core Extensions => TCE Q&A Forum => Topic started by: floppy 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.
=============================================
-
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.
-
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.
-
all mozilla-products are able to print to a file in pdf-format.
Maybe what you refer to is gtk2's builtin printing feature?
-
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.
-
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.
-
Hi floppy
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
#!/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
cups-loader.sh
That will delay loading cups-pdf until after your desktop is loaded.