Adding files permanently to be loaded in ramForum: Apps Topic: Adding files permanently to be loaded in ram started by: bib_ak Posted by bib_ak on July 04 2007,12:50
I need a binary file to be present in RAM at every boot, in the read only fileformat under /bin, and a symlink in /lib as well...Does this require a remaster of DSL? It seems a little difficult for a newbie - are there a better way? btw, great product this distro Posted by ^thehatsrule^ on July 04 2007,13:51
/bin ? maybe you meant /usr/bin, etc?Remastering the image will only be in ram if you boot with toram, or else your best bet would just to make a .dsl extension. Of course you could just copy your binary and libs manually (you'll probably need to run mkwriteable manually as well though) Posted by mikshaw on July 04 2007,20:59
If you don't want to run mkwriteable, which adds a slew of syminks to /ramdisk from /usr, /bin, /lib, and /sbin, the bin file could be added to /opt/bin. I don't think there is a writable lib directory in DSL without running mkwriteable, though, so for this file you'll either need to run mkwriteable (automatically done when installing a *.dsl file), or modify your LD_LIBRARY_PATH variable to include the new lib directory.
Posted by bib_ak on July 05 2007,08:56
Alright, let me try to explain better what I try to do:The application I want to run consist of one binary file, and one config file. It also requires libcrypto.so.0.9.8 in /lib. This library does exist in DSL, but as an earlier version - libcrypto.so.0.9.7. Though, this version works just fine for my needs, I can simply
As for the file ment to be in /bin directory, I have found a way to specify a different location for it, so the only thing for me to do is "faking" the existence of /lib/libcrypto.so.0.9.8 Is this a difficult task? Posted by bib_ak on July 05 2007,09:20
Additional info, slightly offtoptic, but for what it's worth:I am booting from a CF card, using an old Neoware thinclient (Eon 2000) as hardware. Nice power from a 300MHz Geode CPU ;) Seriously, it runs very smooth at maximum total power consumption of 15W! 128MB SD-RAM. No fans I may have caused confusion when mixing ramdisk with RO directories, sorry. I see now that only the directories /home, /opt and /var are on ramdisk, and of course that's what makes them RW. Which is making my thread title completely wrong. But it's impossible for me to change it... Posted by lucky13 on July 05 2007,11:26
I'm curious what you're trying to install.
Posted by ^thehatsrule^ on July 05 2007,16:00
though using different versions isn't recommended... here's something you could do without running mkwriteable or remastering
Posted by bib_ak on July 05 2007,21:43
Thank you so much for your support! My application is now running perfectly Fantastic forum this one, I love DSL more and more |