You are not logged in.
Re: llev
> ... you're very brave to make this PC work!
Hahaha! It's actually my girlfriend's PC. I would never have bought such a pile of trash: 3rd mobo, 3rd power supply, hdd gone, all in just under 2 years! This was 6 years ago just about the time when 3.0 came out. To console her for all the trouble a computer shop guy gave my girlfriend a "10 GB" hdd for free which on closer inspection turned out to be a 1 GB Seagate drive from the Pleistocene of computing. Still, I got ambitious and instead of buying a new hdd I've been working, improving and learning ever since. Personally, I very much like the static nature of this set-up which except for its abysmal boot-up time (3+ minutes) performs very well, is fast, safe and practically incorruptible.
Regarding ldconfig ... I've never used it but I just read its manpage. Interesting, but at this moment I'm battling on so many fronts (X, packaging, spacefm, panel config, /applications, /icons etc.) that I don't want to open another can of worms :-) In the manpage it says that ldconfig maintains a cache of links to shared libraries which probably doesn't lend itself well to a static installation like mine. Would I have to include this cache in my persistent storage? Anyways ... I'm sure I will try out ldconfig some time.
Re: sixofeight
Yes, I have heard and read about Plop. But I've never tried it out and I have no idea what trickery it is that makes this work. Are you using it? Of course it would be great if I could boot from an USB stick or from one of our external USB drives. Now that you've reminded me of Plop I will definitely try to make it work as soon as I have taken care of a few other issues. At this moment there's "Baustelle" all over the place and I don't want to start something like this before I have finished some other work.
Offline
@ Darjeeling
Yes, I use plop and there is no risk at all to do so, because this tool doesn't install,(but of course one can install it), or overwrite something.
btw
I also use porteus, another relatively small (~200mb) Linux live distro which has "plop" as an option at the boot screen.
(plug in the usb > boot the porteus CD > at the boot screen select plop and boot the usb-flash-drive)
...work flawlessly...
Offline
@Darjeeling
ldconfig does two things: maintain a cache, and create symlinks. You can disable the former with -N:
-N
Don't rebuild the cache. Unless -X is also specified, links are still updated.
-X
Don't update links. Unless -N is also specified, the cache is still rebuilt.
I also used Plop bootmanager in the past. This was a PIII laptop with USB 1.1 ports; I had trouble with the optical drive, but the laptop came with a USB floppy drive (from which the BIOS allowed to boot). You can see Plop as a bootloader/chainloader with additional drivers.
Offline
I've been re-reading things and trying to figure out how to make the commands work, but I just don't see how to do it. I did read the section on receipts, in the Cookbook, as wel as the tazpkg manual and cookutils manual, but that didn't help.
Besides not understanding how to make the commands work at all, I also don't see a way around the timing issue I mentioned (ie that some commands need to be executed before some files are overwritten, ...) or that some commands need to be executed first before files are copied in, ...
Can you give me a working version of the gajim-OTR receipt, so I can see how *I should* do it ? Here's the latest version of the receipt (updated it as it needed some commands afte all):
# SliTaz package receipt.
PACKED_SIZE="112.0K"
UNPACKED_SIZE="396.0K"
PACKAGE="gajim-OTR"
VERSION="0.14.1"
CATEGORY="network"
SHORT_DESC="Adds the OTR (off-the-record) plugin to gajim"
WEB_SITE="https://trac-plugins.gajim.org/wiki/OffTheRecordPlugin"
MAINTAINER="teamtaz@slitaz.org"
DEPENDS="gajim"
CONFIG_FILES=""
# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
tazpkg get-install pycrypto
cd /usr/share/gajim/plugins/pure-python-otr-master
sudo python setup.py install
}
pre_remove()
{
cd /usr/share/gajim/
rm -rf plugins
tazpkg remove pycrypto
}
PS: In the event I'm unable to figure things out the correct way, one alternative I could do is just make a mere script and add that in the fs folder (for example under /home/tux/package_scripts/). People would then be able to execute my commands by running that script which copies itself immediatelly to the folder mentioned on the harddisk. If possible, I'd like to avoid this though and just use the correct way to do things.
Offline
Again, you're mixing package generation and installation. Installation is just a matter of copying the files which have been placed into the package when it was generated.
http://doc.slitaz.org/en:cookbook:receipt#functions
I can't help you with writing a correct receipt if you don't tell me exactly what you want to do.
Do you want the package built by the cooker? -> A
Or do you provide all the needed files in a tarball? -> B
A: What are the commands needed to compile the package (i.e. to produce the needed files)?
A&B: Give me the list of the files to install.
Offline
Do you want the package built by the cooker? -> A
Or do you provide all the needed files in a tarball? -> B
Are both methods equally powerful; ie can commands be given at all with option B ? Or can option B only be used to copy files ? In case option B is equally powerful, we'll go with that. I like something that's simple enough for me to understand (and equally, easy enough for non-programmers to do as well); the minute they start using variables like $install, $CONFIGURE_ARGS and so on, I (and many others I suspect) just don't understand it any more.
I put all files in the fs folder (see gajim-OTR package at https://drive.google.com/drive/folders/0B0Orq8VMiN7QMndGZndMTTl5a0E ). Do I need to put these in a tar.gz file (tarball) ? Le me know how to put in the files correctly, and more importantly, where I enter the commands so they're actually executed.
Offline
linuxscripts,
If using variables is beyond your abilities, which I can understand, then don't try to assess what's "powerful" or not, and just answer the question you quoted.
Also, adding a plugin normally doesn't require executing commands (beyond file manipulation like cp).
Offline
If using variables is beyond your abilities, which I can understand, then don't try to assess what's "powerful" or not, and just answer the question you quoted.
For the exact commands to be used in the gajim-OTR package: these were in the receipt in the gajim-OTR package downloadable from https://drive.google.com/drive/folders/0B0Orq8VMiN7QMndGZndMTTl5a0E
More precisely:
tazpkg get-install pycrypto
cd /usr/share/gajim/plugins/pure-python-otr-master
sudo python setup.py install
and at
pre_remove()
{
cd /usr/share/gajim/
rm -rf plugins
tazpkg remove pycrypto
}
If executing commands really requires the cooker, than that's an option too, it's just that how things are explained now with the variables, I really don't get it. I *might* be able to understand it if the manual was written a bit clearer though, for example by explaining why the variables are needed at all, where they link to (what exact paths), whether additional files need to be made where the variables link to (for example cook.conf, ...), ...
Offline
For the exact commands to be used in the gajim-OTR package...
Again, and for the last time until I give up, don't tell me what needs to be in the receipt since you don't know how to write a receipt...
You say "[c]tazpkg get-install pycrypto ; cd /usr/share/gajim/plugins/pure-python-otr-master[/c]" but this folder is not in that package. So my question still holds: do you provide *all* *needed* files, or do you want cooker to build your package (from scratch)? If the former, give a list of them. If the latter, explain how the needed files are to be obtained.
Finally, what is the "setup.py" script supposed to do?
Offline
I checked the google drive link again, and the link might not have been the correct one (ie only accessible by me, after logging in). With google drive, appearantly, the open?id= needs to be in the URL for others to be able to see the shared files without having full access to the account.
So, for the finished packages folder, use
https://drive.google.com/open?id=0B0Orq8VMiN7QMndGZndMTTl5a0E
The /usr/share/gajim/plugins/pure-python-otr-master folder you mentioned is indeed placed in the fs folder by me, see
https://drive.google.com/open?id=0B0Orq8VMiN7QVnFaLVlxTTVyWms
or just browse down in the gajim-OTR folder from the "finished packages" folder URL cited above
Regarding whether I want to provide *all* *needed* files, or whether I want cooker to build my package (from scratch):
it's a bit of both really, I want to provide all the required files specific for this gajim-OTR package, but if there are additional packages that need to be installed (which are all ready available on the slitaz server), I just want the receipt to install them from the slitaz server using the tazpkg command.
These extra commands I added recently (tazpkg get-install pycrypto, sudo python setup.py install ) I saw mentioned in the readmes (readme.md in the pure-python-otr-master folder, ...). I don't know what setup.py does exactly, but the readmes mentioned that for the gajim-OTR program to work, pycrypto needs to be installed and that setup.py install command needs to have been executed as well
Offline
Your fs contents is quite wrong: it should not contain source files, license, readme's, etc. A package should only contain binaries, scripts, configuration files...
Needed packages simply have to be put in the DEPENDS variable, so in your case:
[c]DEPENDS="pycrypto"[/c]
You have to investigate on what the setup script does, notably: does it create files?
What you provide here is likely not a package but a package source that has to be built. Thus I encourage you to learn how to build packages in SliTaz. I know you're reluctant, but you know, making a package is more complicated than mastering shell variables, so if you're not ready for the latter, forget the former.
Offline
I knew of the depends variable, but didn't realise it actually automatically installed that package if it wasn't found on the system.
As for not learning how to build packages in SliTaz: I'm not reluctant to learn this, actually I'm really motivated to learn new things. It's just that with the information/manuals present here, I'm just not able to. Things need to be explained more clearly to me to understand it (I'm not an IT guy). If I were to find clear manuals, I would be sure to read and learn them, but so far I haven't found any.
I guess I'll put things temporarily on hold, and ask someone else later to do it for me instead.
Alternatively, if I were to just dump all files (with readme's, ..) in the fs folder as I did, and add in a shell script, would all files indeed be copied to the similarly named folder on the harddisk ? If so, the trick of just having the user install it manually then by executing the shell script I added in could then work. This would be good enough for me, assuming it works. Let me know.
Offline
It's not that hard, but one needs a bit of experience in shell scripts and installing software from source (did you do this before? configure, make, make install?).
About your question: everything that is going to be installed must lie in the fs folder, including your script. Outside of fs/ there are just the "internal" tazpkg files. It should work (but the user will need root privilege to install in system folders).
Offline
Since my approach works, the packages were posted at http://sourceforge.net/projects/taz/files/semi_ready_packages/
I'll task someone to make them into true packages in a while (unless someone beats me to it, in which case I'll post those instead and give hime the credit), and concentrate on the other packages for now. Will post the true packages at the sourceforge site as well when they're done (should still take a while, since I'm focusing first on the other packages and even these I'll probably won't be able to make those work correctly). Once the packages are true packages, the customized slitaz version (TAZ) will also be updated by having them included.
Offline
I also posted the packages that still need all the work done (so not ready at all) at http://sourceforge.net/projects/taz/files/not_at_all_ready_packages/
These do contain what exatcly needs to be done in text files though.
Offline
I also uploaded the conky-crnbng_style tazpackage there, which requires a bit more work then simply making it into a working package: the additional work to be done on this package also includes improving the conky text itself. There are several flaws to correct on it:
the font is too large
the entire text is aligned left: should be aligned right
"Linux 3.2.71" header is a moving text; should be a regular text; also the alignment is wrong (starts moving from center)
Upload and download today/this month: doesn't work
CNN RSS doesn't work
Weather forecast doesn't work
vnstat in script (under /home/tux) doesn't install correctly
If it can be made working, should be very useful as people can then get the news and weather forecast directly shown when starting the pc. If weather forecast is too large to show, perhaps make a different column for it
Offline
Minor update on the conky-crnbng_style tazpackage:
font is fixed, along with the moving header;
upload and download today is now implemented in a more esthic way, yet I'm not sure whether the code is correct (not sure whether it'll show the right data)
Also, the size of the conky window is not correct any more (needs to be longer, as not all text fits on the window any more)
Offline
[ Generated in 0.017 seconds, 7 queries executed - Memory usage: 1.58 MiB (Peak: 1.77 MiB) ]