MyDSLguiForum: myDSL Extensions (deprecated) Topic: MyDSLgui started by: Rapidweather Posted by Rapidweather on Nov. 08 2004,22:37
I've placed several mydsl applications in the CD, some in /optional and some in the root of the cd. If I use the MyDSLGUI to load one of the apps in /optional, such as Firefox, or Gimp, then I cannot open my cdrom drawer to play a music cd, for instance. I boot with the "toram" option, and this should allow me to remove the DSL cdrom, and put a music cd in the drive and play it. I can open the drawer before I start the MyDSLGUI, but not after I do that.--- I tried to umount cdrom, but it says the drive is busy. --- I looked in TOP, to see if perhaps there was a process I could kill, so as to release the cdrom drive, but there was not one. --- I note that even after I "load" the applications from the /optional directory on the cd, that when I actually start the app via the Menu, or Desktop Icon, then the cdrom drive spins a bit. Apparently it is needed from then on, even if you start the application, and then try and get the cdrom drive unmounted. --- I looked at the mydslgui.pl script, and cannot determine what may be done to unload, if that is the word, the script, so the cdrom drive can be used. --- I'll have to move the applications over to a USB pen drive, or to a hard drive partition, and keep none of them in the root of the cd, or in /optional in the cd. That then would keep the cd drive free, and I can play music cd's or whatever other use I may have for the drive, IF I boot with "toram". Failing to do that, and the drive is locked for the duration of the session, whether or not one has mastered in .dsl applications into the cd. --- Any suggestions? Posted by cbagger01 on Nov. 08 2004,23:42
Are you using any *.uci or *.ci extensions?These extensions require direct access to the storage device because the files are not stored in the RAMdisk. try typing: mount on a blank line and see what your currently mounted filesystems are listed. Posted by Rapidweather on Nov. 09 2004,00:43
I am using the opera.uci and the firefox.uci.--- When I do "df" in an rxvt, I discovered that they are now part of the filesystem, and so I decided to write a little script, accessed via the menu, to unload them if I want to play music cd's for a while. ---
--- Here is the menu item:
--- Notice that I put it next to the MyDSL Click and Load. Also, one could simply run this in an rxvt, and not have the fancy Dillo message, with this html:
--- All this has a limited usefulness in that only a few master in the MyDSL applications, and only the .uci's are affected. I have a bunch of Dock Apps in the root of the CD, and in /optional I have Gimp 1.2 and Abiword, both .dsl's and Opera and Firefox, the offending .uci's. --- The location of the closeuci is given in the script, and I "chmod +x closeuci" and also chgrp to staff and chown to dsl, then copy it over to my /etc/skel for inclusion in the next build. Same thing with the menu item, and the html. --- The DSL development team is invited to rewrite this script to a nicer form, and use it if you want or need it. It's possible to include this in the mydslgui.pl script, to completely unload the .uci applications, to allow the cdrom drive, hard drive partition, or pen drive to be unmounted. Everyone would have to think about why this might need to be done. I do know that a "toram" boot option is necessary to be able to get a music cd in the drive, without it, one cannot. With the addition of the very useful and fast .uci's into the cd, we have another way where the cd drive can get locked. --- Posted by Rapidweather on Nov. 09 2004,00:51
One must close Firefox and/or Opera, or the script will fail to do what it is supposed to. This gives you a failsafe, in case you run this script and are using one of the applications, it will not crash or disappear on you. I need to think about that, perhaps I will just run the script from the menu using an rxvt, and leave out the dillo part. If the script fails, then the dillo part runs anyway, giving a false message. Rough way to do it would be to use "killall's" to drop Firefox or Opera if they are open. Opera will complain next time, but Firefox won't. --- Posted by roberts on Nov. 09 2004,01:10
The ability to "unload" umount the uci is already part of DSL.You can use elemfm to navigate to the uci and then double-click and the uci is mounted. Later if you double-click again it is "unloaded" umounted. You can also use the mydsl button in elemfm with the same results. You can also use the cli mydsl-load with the same results. Posted by Rapidweather on Nov. 09 2004,02:20
I'll get busy and work with that a while. --- If I find out anything interesting, I'll get back in here. Posted by Rapidweather on Nov. 10 2004,01:15
roberts is right.I did tests with my script, and eventually, the system gets to the point where the MyDSL apps will not load anymore. I get a message, "can't find /dev/cloop8". So, the Official DSL way is the _way_ to do it, Use the MyDSL GUI to load the applications, and when through with them, use the MyDSL GUI to unload them. The use of emelfm gives a response in the bottom pane, however, that you can see. At this point, 0.8.2, the MyDSL GUI does not have "unload" buttons, or any other way to _know_ what you have, and need to do. --- I have this little message in my Remaster of 0.8.2 that tells what to do when you want to unload the apps, and use the CDROM to play music: ----------------------------------------------------------------------------------
-------------------------------------------------------------------------------- I have done extensive load and unload, play CD, etc using this method, and have no problems. ---- So, any of you trying out my code sample in the earlier posts, be forewarned that it did not stand up to the test of time, and I discarded it, in favor of the Official DSL way. I did decide to add this to my fluxbox menu, to allow some control of the CDROM drive, once the MyDSL applications are unloaded, and I am wanting to open the drive drawer:
--- I don't know if the latest DSL has any changes to the MyDSL Click and Load GUI that has an "unload" section, buttons, etc. That would be simpler to use than emelfm, although once you get used to using emelfm, it's very nice for this load/unload work. --- Note for Remasterers: Also, it is useful to master- in the file /opt/mydsl-drives that shows "cdrom" if one is going to put the MyDSL applications in /optional in the CD. That way, you don't have to fill it out in the MyDSL GUI, it comes up ready to use, with your applications already there. If you want, add it to your filetool.lst, and once you use the MyDSL GUI, the file will be in /ramdisk/opt/mydsl-drives for your backup to pick up. That may be easier for the non-remastering folks. --- |