Quote |
If so, can anyone point me toward an easy example so I can fix the problems. |
Quote (lucky13 @ Mar. 29 2008,16:53) |
Read the steps on the wiki. There's a page for each kind of MyDSL extension. http://damnsmalllinux.org/wiki/index.php/Creating_MyDSL_Extensions |
Quote |
There is also the fact that a lot of people don't know how or just don't want to have to compile source,or maybe they don't have the tools to do so. |
Quote |
Building a green extension can sometimes be as simple as packing up a pre-compiled binary with the appropriate ownership. |
Code Sample |
$ sudo mkdir /usr/src $ sudo chown dsl /usr/src $ chgrp staff /usr/src |
Code Sample |
$ mydsl-load /path-to-file/compile-3.3.5.uci $ export CPPFLAGS=-I/opt/compile-3.3.5/include |
Code Sample |
$ cd /usr/src/grub-0.97 $ ./configure --prefix=/opt/grub-0.97 $ make [open a terminal window as root] # cd /usr/src/grub-0.97 # make install |
Code Sample |
$ sudo strip --strip-unneeded /opt/grub-0.97/bin/* $ sudo strip --strip-unneeded /opt/grub-0.97/sbin/* $ sudo strip -g /opt/grub-0.97/lib/* [not required in this example] |
Code Sample |
$ ls /opt/grub-0.97/bin/* > /path-to-file/files_user $ ls /opt/grub-0.97/sbin/* >> /path-to-file/files_user $ beaver /path-to-file/files_user [edit to read /opt/bin rather than /opt/grub-0.97/bin, etc and save] $ sudo ln -s /opt/grub-0.97/bin/* /opt/bin $ sudo ln -s /opt/grub-0.97/sbin/* /opt/bin $ sudo tar -T /path-to-file/files_user --no-recursion -zcvf /opt/grub-0.97/user.tar.gz |
Code Sample |
$ cd /opt $ sudo mkisofs -R -hide-rr-moved grub-0.97/ | create_compressed_fs - 65536 > /tmp/grub-0.97.uci |
Code Sample |
$ sudo rm -r /opt/grub-0.97 $ mydsl-load /tmp/grub-0.97.uci |
Code Sample |
$ fdformat /dev/fd0H1440 $ mke2fs /dev/fd0 $ sudo mount -t ext2 /dev/fd0 /mnt/floppy $ grub-install --root-directory=/mnt/floppy fd0 $ sudo umount /mnt/floppy |
Quote |
Apologies for sticking this in this thread, hope it helps. |
Quote | ||
I was trying to find some simple progs that the following would apply to:
|
Quote |
I recall reading about forcing a program to run in /opt when it wants to run somewhere else. I think it involved writing a "wrapper script" to package up with the application. If I had an example of one, I'd probably be able to figure out how to modify it for any app I upload. |
Quote |
, I was trying to find some simple progs that the following would apply to: Quote Building a green extension can sometimes be as simple as packing up a pre-compiled binary with the appropriate ownership. |
Quote |
Nit picking is never helpful, nor is name calling, uttering slurs et cetera and so on. |
Code Sample |
% tar cvfz ./captchascript.tar.gz /opt/captchascript/ tar: Removing leading `/' from member names /opt/captchascript/ /opt/captchascript/something.php |