DSL Ideas and Suggestions :: Script to permanently install UCI extensions



I've recently been playing with the python.uci extension.  As I use a traditional HD install, I copied the /opt/python folder to a temp location and then copied it back permanently the next time I rebooted.

I omitted to copy the python.app file that used to show up in MyDSL, so now I can't launch Python from the MyDSL submenu.  This isn't a big deal, I can get it later and put it in there.

It has made me think that it would be helpful to have a menu command that could have done all the work for me.  I find many of the menu commands helpful not only for the service they provide, but also for the understanding that they give me when I read the scripts.  I've learned many things from these scripts.

I'd write the PermanentInstallUCI myself, but there are a few things I don't understand yet...

1) Is there a way to see what's inside a UCI without mounting it?  Something akin to tar -t?

2) Does the python.app file in MyDSL come from inside the UCI or is it generated by the script that mounts the UCI?

3) Is there a way to unmount a UCI?

Much thanks,
John

1) I wouldn't be surprised if there is, but I don't know what it might be. Please note that one major benefit of using tar -t is that it doesn't extract the files. This benefit doesn't apply to mounting file systems, as the only disk use is the mountpoint. Mounting a uci doesn't really use any more resources than simply looking into the file would.

2) I believe it is created when mydsl-load is run, but I still haven't looked into the new installation process. This is just a guess. It may require running mydsl-load /opt/python/user.tar.gz *after* you remove the uci and copy the temp directory to /opt/python.

3) They are unmounted the same way they are mounted, using mydsl-load <filename>

Sorry, there shouldn't be a menu entry to do what DSL isn't intended for. And DSL really isn't intended for traditional hard drive install.

That said, I wrote on the following entry what I do when I use DSL for traditional hard drive installs.
http://lucky13linux.wordpress.com/2007....a-point

Unmounting UCI/UNC files is the same as mounting. Either execute mydsl-load or click on it in dfm. If you do a hard drive install, you can rearrange your menus and directories and symlinks to suit your tastes sans a MyDSL folder.

Edit: Regarding your first question, isofs is a separate filesystem rather than a tarball so it would need to be mounted to get to its contents. I stand to be corrected if there's a way to see contents in a filesystem without mounting it.

I've seen some iso-utils that list the contents without mounting, but the wouldn't work with cloop..
Is it possible to mount a UCI to a mount point other than the one that mydsl-load will use automatically?  That would help to make copying the files to HD install a 2-step process.

Thanks

Next Page...
original here.