SFS-Exec
Posted: Sun 06 Feb 2011, 15:23
WARNING! DO NOT USE WITH A PUPSAVE FILE.
I've been using linking to SFS files for quite a while now without a Pup save file, and finding it better for my uses.
All my settings and small stable programs are kept in a pup_z SFS which loads at boot, while everything else comes via SFS.
For some time I thought "wouldn't it be great if you could just click on an SFS file and it would automatically load and start just like any other program on a menu?" So, I tried various ways to do this by linking and scripts and for the most part it was ok, but rather slow and awkward.
After I saw the revival of Aufs union-layering again with shinobar's program "sfs_load-0.5 on-the-fly", I thought this might be the right framework for this idea.
So here's SFE-Exec --
* Click on an SFS file and the program starts and runs immediately. No need to go through a "mount-link-fixmenus-wmrestart-clickprogram" cycle.
* Click several programs one after another and have them all run immediately.
* Run SFS file(s) at startup (by calling scripts)
* Unmount and release mounted SFS files (sometimes not)
* Special handling to supplement individual SFS files
Here's how it works--
Start by making up a directory of SFS files containing your SFS files (make sure they are compatible with the pup version you are running - that can be checked by left-clicking on the SFS file)
Install the SFS-exec pet below. Upon install it will ask you to chose the directory containing your SFS files.
After installation is complete, you'll see Menu>Filesystem>SFS-Exec-Dir which, on click, will launch a Rox directory of your SFS files. This window is "always on top" which allows you to consecutively pick individual SFS files (one after another) with a right-click>SFS-Exec. The selected programs will all open behind this Rox window.
Should you feel the need to unmount some SFS files, under Menu>Filesystem>SFS-Exec-unloader, you'll find a picking checklist of each SFS file for unloading some or all of your mounted SFS files.
Sometimes you'll need special handling depending on individual SFS files. You can create a script named "SFSFILENAME"SETUP. e.g. vlc-0.9.2-i386_431.sfsSETUP and place it in the SFS directory. The script will execute before the program is started, allowing copying of config files or any other changes needed before the program starts.
THIS IS FOR RUNNING IN RAM WITH NO PUPSAVE FILE (PUPMODE=5)
Notes: In order to keep SFS-Exec quick, simple and nimble, there is little error checking- for example, if you put a mismatched SFS file in your SFS directory and try to execute it, a reboot might be necessary.
The program exec listed in the .desktop file of the SFS/usr/share/applications directory is used to start the program. So if the .desktop file can't be found, it will be mounted and unioned, but no program will start.
IF YOU HAVE A PUPSAVE FILE AND WANT TO TEST THIS PET, BOOT WITH PFIX=RAM
Many thanks to shinobar, goingnuts, 01micko and Barry of course, for all their Aufs mounting and unmounting work.
That's it - and see just how fast programs can execute this way.
Below is a Pet.
s
UPDATE: 4/28/2011
see below
Following some good ideas from Jasper and Nooby, both SFS-exec-pupsaves for using a pupsave file with SFS-exec have been superseded and replaced by a single pet - Save-pup-lock" which can be found at
http://murga-linux.com/puppy/viewtopic. ... 961#517961
I've been using linking to SFS files for quite a while now without a Pup save file, and finding it better for my uses.
All my settings and small stable programs are kept in a pup_z SFS which loads at boot, while everything else comes via SFS.
For some time I thought "wouldn't it be great if you could just click on an SFS file and it would automatically load and start just like any other program on a menu?" So, I tried various ways to do this by linking and scripts and for the most part it was ok, but rather slow and awkward.
After I saw the revival of Aufs union-layering again with shinobar's program "sfs_load-0.5 on-the-fly", I thought this might be the right framework for this idea.
So here's SFE-Exec --
* Click on an SFS file and the program starts and runs immediately. No need to go through a "mount-link-fixmenus-wmrestart-clickprogram" cycle.
* Click several programs one after another and have them all run immediately.
* Run SFS file(s) at startup (by calling scripts)
* Unmount and release mounted SFS files (sometimes not)
* Special handling to supplement individual SFS files
Here's how it works--
Start by making up a directory of SFS files containing your SFS files (make sure they are compatible with the pup version you are running - that can be checked by left-clicking on the SFS file)
Install the SFS-exec pet below. Upon install it will ask you to chose the directory containing your SFS files.
After installation is complete, you'll see Menu>Filesystem>SFS-Exec-Dir which, on click, will launch a Rox directory of your SFS files. This window is "always on top" which allows you to consecutively pick individual SFS files (one after another) with a right-click>SFS-Exec. The selected programs will all open behind this Rox window.
Should you feel the need to unmount some SFS files, under Menu>Filesystem>SFS-Exec-unloader, you'll find a picking checklist of each SFS file for unloading some or all of your mounted SFS files.
Sometimes you'll need special handling depending on individual SFS files. You can create a script named "SFSFILENAME"SETUP. e.g. vlc-0.9.2-i386_431.sfsSETUP and place it in the SFS directory. The script will execute before the program is started, allowing copying of config files or any other changes needed before the program starts.
THIS IS FOR RUNNING IN RAM WITH NO PUPSAVE FILE (PUPMODE=5)
Notes: In order to keep SFS-Exec quick, simple and nimble, there is little error checking- for example, if you put a mismatched SFS file in your SFS directory and try to execute it, a reboot might be necessary.
The program exec listed in the .desktop file of the SFS/usr/share/applications directory is used to start the program. So if the .desktop file can't be found, it will be mounted and unioned, but no program will start.
IF YOU HAVE A PUPSAVE FILE AND WANT TO TEST THIS PET, BOOT WITH PFIX=RAM
Many thanks to shinobar, goingnuts, 01micko and Barry of course, for all their Aufs mounting and unmounting work.
That's it - and see just how fast programs can execute this way.
Below is a Pet.
s
UPDATE: 4/28/2011
see below
Following some good ideas from Jasper and Nooby, both SFS-exec-pupsaves for using a pupsave file with SFS-exec have been superseded and replaced by a single pet - Save-pup-lock" which can be found at
http://murga-linux.com/puppy/viewtopic. ... 961#517961