<xmp><!-- <body><!--'"</title></head>--> <script type="text/javascript"> //OwnerIQ var __oiq_pct = 50; if( __oiq_pct>=100 || Math.floor(Math.random()*100/(100-__oiq_pct)) > 0 ) { var _oiqq = _oiqq || []; _oiqq.push(['oiq_addPageBrand','Lycos']); _oiqq.push(['oiq_addPageCat','Internet > Websites']); _oiqq.push(['oiq_addPageLifecycle','Intend']); _oiqq.push(['oiq_doTag']); (function() { var oiq = document.createElement('script'); oiq.type = 'text/javascript'; oiq.async = true; oiq.src = document.location.protocol + '//px.owneriq.net/stas/s/lycosn.js'; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(oiq, s); })(); } //Google Analytics var _gaq = _gaq || []; _gaq.push(['_setAccount','UA-21402695-19']); _gaq.push(['_setDomainName','tripod.com']); _gaq.push(['_setCustomVar',1,'member_name','trcmdisk01',3]); _gaq.push(['_trackPageview']); (function() { var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); })(); //Lycos Init function getReferrer() { var all= this.document.cookie; if (all== '') return false; var cookie_name = 'REFERRER='; var start = all.lastIndexOf(cookie_name); if (start == -1) return false; start += cookie_name.length; var end = all.indexOf(';', start); if (end == -1) end = all.length; return all.substring(start, end); } function getQuery() { var rfr = getReferrer(); if (rfr == '') return false; var q = extractQuery(rfr, 'yahoo.com', 'p='); if (q) return q; q = extractQuery(rfr, '', 'q='); return q ? q : ""; } function extractQuery(full, site, q_param) { var start = full.lastIndexOf(site); if (start == -1) return false; start = full.lastIndexOf(q_param); if (start == -1) return false; start += q_param.length; var end = full.indexOf('&', start); if (end == -1) end = full.length; return unescape(full.substring(start, end)).split(" ").join("+"); } function generateHref(atag, template){ atag.href=template.replace('_MYURL_', window.location.href.replace('http://', '')).replace('_MYTITLE_','Check%20out%20this%20Tripod%20Member%20site!'); } var lycos_ad = Array(); var lycos_onload_timer; var cm_role = "live"; var cm_host = "tripod.lycos.com"; var cm_taxid = "/memberembedded"; var tripod_member_name = "trcmdisk01"; var tripod_member_page = "trcmdisk01/linux/s_fdfssp01.html"; var tripod_ratings_hash = "1568856207:eca814178298e7fd18435d0c472af27b"; var lycos_ad_category = null; var lycos_ad_remote_addr = "34.231.247.139"; var lycos_ad_www_server = "www.tripod.lycos.com"; var lycos_ad_track_small = "http://members.tripod.com/adm/img/common/ot_smallframe.gif?rand=266666"; var lycos_ad_track_served = "http://members.tripod.com/adm/img/common/ot_adserved.gif?rand=266666"; var lycos_search_query = getQuery(); </script> <script type="text/javascript" src="http://scripts.lycos.com/catman/init.js"></script> <script type='text/javascript'> var googletag = googletag || {}; googletag.cmd = googletag.cmd || []; (function() { var gads = document.createElement('script'); gads.async = true; gads.type = 'text/javascript'; var useSSL = 'https:' == document.location.protocol; gads.src = (useSSL ? 'https:' : 'http:') + '//www.googletagservices.com/tag/js/gpt.js'; var node = document.getElementsByTagName('script')[0]; node.parentNode.insertBefore(gads, node); })(); </script> <script type='text/javascript'> googletag.cmd.push(function() { googletag.defineSlot('/95963596/TRI_300X250_dfp', [300, 250], 'div-gpt-ad-1450204159126-0').addService(googletag.pubads()); googletag.defineSlot('/95963596/TRI_above_728x90_dfp', [728, 90], 'div-gpt-ad-1450204159126-1').addService(googletag.pubads()); googletag.defineSlot('/95963596/TRI_below_728x90_dfp', [728, 90], 'div-gpt-ad-1450204159126-2').addService(googletag.pubads()); googletag.pubads().enableSingleRequest(); googletag.enableServices(); }); </script> <script type="text/javascript"> (function(isV) { if( !isV ) { return; } var adMgr = new AdManager(); var lycos_prod_set = adMgr.chooseProductSet(); var slots = ["leaderboard", "leaderboard2", "toolbar_image", "toolbar_text", "smallbox", "top_promo", "footer2", "slider"]; var adCat = this.lycos_ad_category; adMgr.setForcedParam('page', (adCat && adCat.dmoz) ? adCat.dmoz : 'member'); if (this.lycos_search_query) { adMgr.setForcedParam("keyword", this.lycos_search_query); } else if(adCat && adCat.find_what) { adMgr.setForcedParam('keyword', adCat.find_what); } for (var s in slots) { var slot = slots[s]; if (adMgr.isSlotAvailable(slot)) { this.lycos_ad[slot] = adMgr.getSlot(slot); } } adMgr.renderHeader(); adMgr.renderFooter(); }((function() { var w = 0, h = 0, minimumThreshold = 300; if (top == self) { return true; } if (typeof(window.innerWidth) == 'number' ) { w = window.innerWidth; h = window.innerHeight; } else if (document.documentElement && (document.documentElement.clientWidth || document.documentElement.clientHeight)) { w = document.documentElement.clientWidth; h = document.documentElement.clientHeight; } else if (document.body && (document.body.clientWidth || document.body.clientHeight)) { w = document.body.clientWidth; h = document.body.clientHeight; } return ((w > minimumThreshold) && (h > minimumThreshold)); }()))); window.onload = function() { var f = document.getElementById("FooterAd"); var b = document.getElementsByTagName("body")[0]; b.appendChild(f); f.style.display = "block"; document.getElementById('lycosFooterAdiFrame').src = '/adm/ad/footerAd.iframe.html'; // DOM Inj Ad (function(isTrellix) { var e = document.createElement('iframe'); e.style.border = '0'; e.style.margin = 0; e.style.display = 'block'; e.style.cssFloat = 'right'; e.style.height = '254px'; e.style.overflow = 'hidden'; e.style.padding = 0; e.style.width = '300px'; var isBlokedByDomain = function( href ) { var blockedDomains = [ "ananyaporn13000.tripod.com", "xxxpornxxx.tripod.com" ]; var flag = false; for( var i=0; i<blockedDomains.length; i++ ) { if( href.search( blockedDomains[ i ] ) >= 0 ) { flag = true; } } return flag; } var getMetaContent = function( metaName ) { var metas = document.getElementsByTagName('meta'); for (i=0; i<metas.length; i++) { if( metas[i].getAttribute("name") == metaName ) { return metas[i].getAttribute("content"); } } return false; } var getCommentNodes = function(regexPattern) { var nodes = {}; var nodesA = []; var preferredNodesList = ['a', 'c', 'b']; (function getNodesThatHaveComments(n, pattern) { if (n.hasChildNodes()) { if (n.tagName === 'IFRAME') { return false; } for (var i = 0; i < n.childNodes.length; i++) { if ((n.childNodes[i].nodeType === 8) && (pattern.test(n.childNodes[i].nodeValue))) { var areaName = pattern.exec(n.childNodes[i].nodeValue)[1]; nodes[areaName] = n; } else if (n.childNodes[i].nodeType === 1) { getNodesThatHaveComments(n.childNodes[i], pattern); } } } }(document.body, regexPattern)); for (var i in preferredNodesList) { if (nodes[preferredNodesList[i]]) { if( isTrellix && nodes[preferredNodesList[i]].parentNode.parentNode.parentNode.parentNode ) { nodesA.push(nodes[preferredNodesList[i]].parentNode.parentNode.parentNode.parentNode); } else { nodesA.push( nodes[preferredNodesList[i]] ); } } } return nodesA; } var properNode = null; var areaNodes = getCommentNodes( new RegExp( '^area Type="area_(\\w+)"' ) ); for (var i = 0; i < areaNodes.length; i++) { var a = parseInt(getComputedStyle(areaNodes[i]).width); if ((a >= 300) && (a <= 400)) { properNode = areaNodes[i]; break; } } var propertyName = getMetaContent("property") || false; if( isTrellix && (properNode) ) { e.src = '/adm/ad/injectAd.iframe.html'; properNode.insertBefore(e, properNode.firstChild); } else if( isTrellix && !( properNode ) ) // Slap the ad eventhought there is no alocated slot { e.src = '/adm/ad/injectAd.iframe.html'; e.style.cssFloat = 'none'; var cdiv = document.createElement('div'); cdiv.style = "width:300px;margin:10px auto;"; cdiv.appendChild( e ); b.insertBefore(cdiv, b.lastChild); } else if( !isBlokedByDomain( location.href ) ) { var injF = document.createElement('iframe'); injF.style.border = '0'; injF.style.margin = 0; injF.style.display = 'block'; injF.style.cssFloat = 'none'; injF.style.height = '254px'; injF.style.overflow = 'hidden'; injF.style.padding = 0; injF.style.width = '300px'; injF.src = '/adm/ad/injectAd.iframe.html'; if( b && ( !isTrellix || ( typeof isTrellix == "undefined" ) ) ) // All other tripod props { var cdiv = document.createElement('div'); cdiv.style = "width:300px;margin:10px auto;"; cdiv.appendChild( injF ); b.insertBefore(cdiv, b.lastChild); } } }( document.isTrellix )); } </script> <div id="tb_container" style="background:#DFDCCF; border-bottom:1px solid #393939; position:relative; z-index:999999999!important"> <!--form name="search" onSubmit="return searchit()" id='header_search' > <input type="text" placeholder="Search" size=30 name="search2" value=""> <input type="button" value="Go!" onClick="searchit()"> </form> <style> form#header_search { width: 916px; margin: 0 auto 8px; position: relative; } form#header_search input { height: 40px; font-size: 14px; line-height: 40px; padding: 0 8px; box-sizing: border-box; background: #F4F2E9; border: 1px solid #BBB8B8; transition: background-color 300ms ease-out, color 300ms ease; } form#header_search input[type="text"] { width: 100%; } form#header_search input[type="text"]:focus { border-color: #A2D054; background-color: #fff; box-shadow: 0 0px 12px -4px #A2D054; } form#header_search input[type="button"] { position: absolute; top: 1px; right: 1px; opacity: 1; background: #DFDCCF; color: #463734; width: 125px; cursor: pointer; height: 38px; border: none; } form#header_search input[type="text"]:focus ~ input[type='button']:hover, form#header_search input[type='button']:hover { background-color: #A5CE56; color: #fff; } form#header_search input[type="text"]:focus ~ input[type='button'] { background-color: #52AEDF; color: #fff; } </style> <script> function searchit(){ // determine environment var search_env if (lycos_ad_www_server.indexOf(".pd.") > -1) { search_env = 'http://search51.pd.lycos.com/a/'; } else if (lycos_ad_www_server.indexOf(".qa.") > -1) { search_env = 'http://search51.qa.lycos.com/a/'; } else { search_env = 'http://search51.lycos.com/a/'; } var search_term = encodeURIComponent(document.search.search2.value) var search_url = search_env+search_term; window.open(search_url); return false } </script--> <style> .adCenterClass{margin:0 auto} </style> <div id="tb_ad" class="adCenterClass" style="display:block!important; overflow:hidden; width:916px;"> <a href="http://adtrack.ministerial5.com/clicknew/?a=637394" title="build your own website at Tripod.com" style="float:left; width:186px; border:0"> <img src="http://ly.lygo.com/ly/tpSite/images/freeAd2.jpg" alt="Make your own free website on Tripod.com" style="border:0; display:block" /> </a> <div id="ad_container" style="display:block!important; float:left; width:728px "> <script type="text/javascript"> if (typeof lycos_ad !== "undefined" && "leaderboard" in lycos_ad) { document.write(lycos_ad['leaderboard']); } </script> </div> </div> </div> <script type="text/javascript"> if (typeof lycos_ad !== "undefined" && "slider" in lycos_ad) { document.write(lycos_ad['slider']); } </script> <!-- added 7/22 --> <div id="FooterAd" style="background:#DFDCCF; border-top:1px solid #393939; clear:both; display:none; width:100%!important; position:relative; z-index:999999!important; height:90px!important"> <div class="adCenterClass" style="display:block!important; overflow:hidden; width:916px;"> <a href="http://adtrack.ministerial5.com/clicknew/?a=637394" title="build your own website at Tripod.com" style="float:left; display:block; width:186px; border:0"> <img src="http://ly.lygo.com/ly/tpSite/images/freeAd2.jpg" alt="Make your own free website on Tripod.com" style="border:0; display:block; " /> </a> <div id="footerAd_container" style="display:block!important; float:left; width:728px"> <iframe id="lycosFooterAdiFrame" style="border:0; display:block; float:left; height:96px; overflow:hidden; padding:0; width:750px"></iframe> </div> </div> </div> --></xmp>


Linux logo

FDF / SSP.

zkp :: FDF/SSP


+++ zkp
#!/bin/sh
#========

# Screaming CuckooBroad Associates 2015 -=[zkp]=- for Xubuntu 15.04 (Linux 3.19.0)
# resides in /usr/bin (in ${PATH} for all users)
# usage: $(zkp) alone globally returns kpZone path; any parm runs the editor

  KPU=/etc/kpzone/kData/unx
# KPU=/opt/bin/kpZone/kData/unx
# KPU=/home/tux/kpZone/kData/unx
# KPU=/home/guest/kpZone/kData/unx
# KPU=/data/data/jackpal.androidterm

# [ -z $1 ] && echo -n ${KPU} || exec ue $@
  [ -z $1 ] && echo -n ${KPU} || xterm -e ue $@
# [ -z $1 ] && echo -n ${KPU} || urxvt -T microemacs -e ue $@
# [ -z $1 ] && echo -n ${KPU} || lxterminal -T microemacs -e ue $@
# [ -z $1 ] && echo -n ${KPU} || xfce4-terminal -T microemacs -I slackware -e "ue $@"

exit 0


+++ FDF/SSP
=========================================================
FrugalDriver Framework w/ SSP : Freqently Asked Questions
 the best live GNU/Linux/X11  :          v0.020           
=========================================================
Q: What is this about ?

A: The FrugalDriver Framework is a means of administering bootable linux images in a robust, flexible, & secure way. FDF/SSP owes its existence to 3 fortuitous technical achievements of the Linux world, to wit:

  1. The ability of GRUB2 to boot most modern ISO images directly
  2. The practice of running Linux "live", meaning with its root filesystem mounted in RAM
  3. The squashfs technology which can create compressed readonly mountable filesystems from a distros packages
Most modern GNU/Linux/X11 distros continue to have conventional installers, despite the live ISOs they ship being fully functional systems on their own. A traditional installation often becomes a snarly cumulative heap of package installs, configs, & upgrades which sometimes cannot be backed out or undone even with the most powerful packagemanagers & wellintentioned admin philosophies. With FDF/SSP all of this is simply unnecessary. The framework uses a not uncommon approach of livebooting the vanilla ISO, & then applying all discretionary user customisations with each boot in the form of curated package installs & freshly restored configs.

Q: So how does it work ?

A: An ordinary install of GRUB2 is done to a boot partition on any device: harddisk, flashdrive, whatever. A separate partition is established for the ISO images which are written unaltered to a Linux filesystem. Then a 3rd partition is used for the user specific control data, which are (1) the salient portions of the ${HOME} directory, (2) packages from the supported repo converted to SSPs (Symlinkable Squashfs Packages) to be hooked into the live system, & (3) a user invoked script to apply the inittime customisations to the vanilla booted image. When a distro is booted, the filemanager is invoked to mount the control partition (if necessary) & drill down to the initthis.cfg script which is executed in a terminal. The script finishes by restarting the X11 session so when you login again you are presented with your fully customised system with your favourite packages & modifications, running live in system memory.

Q: What are the advantages of this approach ?

A: First & foremost FDF/SSP completely obviates the need for a conventional install. The system resides in RAM so changes to it arent persistent unless you explicitly want them to be. This results in a great deal of flexibility in the inevitable experimentation with packages & configs, without having to rely on a packagemanagers undo function or full system restores to recover from maladventurous customisations. The completely unaltered as-shipped system is available with every boot for reference, & the supported packagemanager is consulted so that all intended dependencies are met. Acquired packages are converted to SSPs which are mounted readonly & hooked into the live system not by union mounts but by ordinary symlinks.

With a little care FDF/SSP makes system updates swift & trivial. For example when the monthly snapshot of a rolling ISO appears, it is simply dropped into the ISO partition & booted. In many cases user installed packages dont have to be reacquired as there are no changes to them & they continue to work with the new ISO. Until they dont, whereupon its generally pretty obvious & they can be replaced as needed & not until. SSPs often prove to be surprisingly cross-distro, but when they arent you can merely unmount them or at the worst reboot & they are completely uninstalled.

One advantage of running live is being able selectively to backup parts of ${HOME}. At this writing my ${HOME} is nearly 54M [sic] because of the runtime caches & such, much of which is better off in RAM than on physical media. Yet the image of ${HOME} restored at boottime can be less than 800K, because it consists only of tested & necessary configs specifically copied there.

Finally, FDF/SSP works with virtually *any* distro, effectively turning any modern LiveISO into a standalone admin / rescue resource, which can also serve as the principal session. Because unaltered ISOs & a simple GRUB2 config are used, it doesnt matter where the user control data resides. This makes it fairly trivial to set up on-the-metal multibooting systems on any device(s) & migrate them to other media easily along with their succinct collections of user modifications.

Q: How is it done ?

A: Easy. First you need a GRUB2 stanza to boot your ISO. An Xubuntu example would be:

menuentry ".. Xubuntu 18.10 from ISO (loop ISF)" {
    echo ooo
    set isofile="iso1810/xubuntu-18.10-desktop-amd64.iso"
    loopback aloop (hd0,5)/ini_xubuntu/$isofile
    linux  (aloop)/casper/vmlinuz selinux=0 audit=0 boot=casper ignore_uuid live-media-path=/casper iso-scan/filename=/ini_xubuntu/$isofile
    initrd (aloop)/casper/initrd
}
In the control partition establish a directory ini_xubuntu which has at minimum 4 items: a ${HOME} directory named for the user account, the user-invokable initthis.cfg (see example below), & the repo_deb & repo_ssp which contain the acquired & generated packages respectively. On debian distros downloaded debs can be copied from /var/cache/apt/archives to the repo_deb where they can be kept sorted by package for auditing purposes.
drwxrwxrwx  9    1000    1000 4096 Aug  2 12:16 .
drwxr-xr-x  3    1000    1000 4096 Jul 31 07:16 ..
drwxr-xr-x  3 xubuntu xubuntu 4096 Aug  2 11:56 repo_deb
drwxr-xr-x 10 xubuntu xubuntu 4096 Aug  7 12:12 repo_ssp
drwxr-xr-x 17 xubuntu xubuntu 4096 Jun 24 12:10 xubuntu
lrwxrwxrwx  1 root    root      37 Jul 31 07:16 initthis.cfg -> xubuntu/kpZone/kData/unx/initthis.cfg

drwxrwxr-x 8 xubuntu xubuntu   4096 Nov 12 05:53 .
drwxrwxr-x 3 xubuntu xubuntu   4096 Oct 18 09:42 ..
drwxrwxr-x 2 xubuntu xubuntu   4096 Oct 19 08:08 .gftp
drwxrwxr-x 2 xubuntu xubuntu   4096 Oct 18 12:27 .gkrellm
drwxrwxr-x 2 xubuntu xubuntu   4096 Oct 18 10:21 .hexchat
drwxrwxr-x 2 xubuntu xubuntu   4096 Oct 18 09:53 .mc
drwxrwxr-x 2 xubuntu xubuntu   4096 Nov 12 05:51 .openbox
drwxrwxr-x 2 xubuntu xubuntu   4096 Oct 18 09:42 .vfu
-rw-r--r-- 1 xubuntu xubuntu  38304 Aug 13 16:18 chkservice_0.1-3_amd64.deb
-rw-r--r-- 1 xubuntu xubuntu  62608 Apr  5  2018 qiv_2.3.1-1build1_amd64.deb
-rw-r--r-- 1 xubuntu xubuntu 729348 Jun 21  2018 rxvt-unicode_9.22-4_amd64.deb
-rw-r--r-- 1 xubuntu xubuntu  78532 Apr  5  2018 xfishtank_2.5-1build1_amd64.deb
-rw-r--r-- 1 xubuntu xubuntu 733712 Jun 25  2013 xfwm4-themes_4.10.0-2_all.deb
-rw-r--r-- 1 xubuntu xubuntu 171144 Jan 31  2018 xpenguins_2.2-11_amd64.deb
The process is controlled entirely by 3 simple scripts: fdfctl, mksspfs, & shlntree. fdfctl processes an entire directory at a time, converting distro packages into SSPs via mksspfs, activating them by mounting / symlinking them to the system via shlntree, or maintaining symlinks in the top level of the repo_deb & repo_ssp, which determine whether a package will be installed by the initthis.cfg at startup.
#!/bin/sh
#========

# fdfctl for frugaldriver framework
# script to process a directory of packages
# parm 1 is function:
#   ssp : generate SSPs
#   sym : establish symlinks one dirlevel up (default)
#   del : delete symlinks one dirlevel up
#   deb : install all packages: deb
#   rpm : install all packages: rpm
#   pac : install all packages: pkg.tar.xz
#   act : activate SSPs w/ optionally specified subdir (parm 2)

  echo ooo
  echo $(basename $0) v0.11
  date +%G%b%d%a.%P%H:%M:%S
  uname -srm

[ -z $1 ] && FNC=sym || FNC=$1
[ -z $2 ] && MDR=ssp || MDR=$2

case ${FNC} in
  deb ) sudo dpkg --install *.deb ;;
  rpm ) sudo rpm  --install *.rpm ;;
  pac ) sudo pacman -U --noconfirm --cachedir . * ;;
    * ) for i in *
        do
          case ${FNC} in
            del ) rm -f ../${i} ;;
            ssp ) $(zkp)/sh/mksspfs ${i} ;;
            act ) MPT=/opt/${MDR}/${i}
                  sudo mkdir -p ${MPT}
                  sudo mount -t squashfs -o ro ${i} ${MPT}
                  sudo $(zkp)/sh/shlntree ${MPT} ;;
            sym ) [ -f ${i} ] && ln -sf ${PWD##*/}/${i} ../${i} ;;
              * ) echo "$0: read source for doc" ;;
          esac
        done ;;
esac

exit 0

#!/bin/sh
#========

echo ooo
echo mksspfs v1.020
date +%G%b%d%a.%P%H:%M:%S
uname -srm

# script to rebundle software from gnu/linux repos
# creates SSP: symlinkable squashfs package
# (with no parm merely gens from prebuilt sspbuild)

TMPDIR=/tmp/sspbuild

if [ -z $1 ]; then
  PKG=sspbuild
else
  rm -rf ${TMPDIR} ; mkdir ${TMPDIR} ; DIR=${PWD}

  for i in .tar.xz .deb .xpak .rpm .tbz2 .tazpkg .xbps .eopkg
  do
    if echo $1 | grep -i ${i}$ ; then
      PKG=${1%%${i}} ; cd ${TMPDIR}
      case "${i}" in
        ".tar.xz" ) #--( archlinux )--#
          tar -xJvf ${DIR}/$1 && rm -f .* >/dev/null 2>&1
        ;;
        ".deb"    ) #--( debian )--#
          for SUF in xz gz
          do
            ARG=data.tar.${SUF} ; [ "${SUF}" = "xz" ] && TYP=J || TYP=z
            ar -xv ${DIR}/$1 ${ARG} ; tar -x${TYP}vf ${ARG} 2>/dev/null && rm -f ${ARG}
          done
        ;;
        ".xpak"   ) #--( gentoo )--#
          tar -xjvf ${DIR}/$1
        ;;
        ".rpm"    ) #--( red space hat )--#
          rpm2cpio ${DIR}/$1 | cpio -idm
        ;;
        ".tbz2"   ) #--( sabayon )--#
          tar -xjvf ${DIR}/$1
        ;;
        ".tazpkg" ) #--( slitaz )--#
          cpio -iF ${DIR}/$1 && unlzma fs.cpio.lzma && cpio -iF fs.cpio && rm -f * ; mv fs/* . && rmdir fs
        ;;
        ".eopkg"  ) #--( solus )--#
          unzip ${DIR}/$1 && unxz install.tar.xz && tar -xvf install.tar && rm -f *.xml install.tar
        ;;
        ".xbps"   ) #--( void )--#
          ln -sf ${DIR}/${PKG}.xbps ${DIR}/${PKG}.xz
          tar -xJvf ${DIR}/${PKG}.xz && rm -f *.plist ${DIR}/${PKG}.xz >/dev/null 2>&1
        ;;
                * ) #--( oops )--#
          echo error: ${i}
        ;;
      esac
    fi
  done

fi

# singlethreaded tar
  while KPID=$(pidof tar)
  do
    :
  done

# here we go ...
  chmod 755 ${TMPDIR}
  rm -rf /tmp/${PKG}.ssp
  echo 'executing mksquashfs ...'
  mksquashfs ${TMPDIR} /tmp/${PKG}.ssp -all-root -comp xz
  ls -al /tmp/${PKG}*.ssp*

exit 0

#!/bin/sh
#========

# echo ooo
  echo shlntree v0.04 : $1
# date +%G%b%d%a.%P%H:%M:%S
# uname -srm

# run as root
# script to symlink a directory tree to root filesystem

[ -d $1 ] && cd $1 || exit 1

for i in $(find)
do

  if [ "${i}" != "." ]; then
    RES=$1/${i}
#   echo ${RES} ${i}
    if   [ -h ${RES} ]; then
      cp -fpP ${RES} /${i}
    elif [ -d ${i} ]; then
      [ ! -d /${i} ] && mkdir /${i}
    else
      ln -sf ${RES} /${i}
    fi
  fi

done

exit 0
Q: What exactly does an initthis.cfg look like ?

A: On Xubuntu, for example, it would look like this:

#!/bin/sh
#========

# initthis.cfg for Xubuntu 18.10
# runs xubuntu in frugal mode from live install media
# user invoked from isodevice partition mounted r/w at boottime
# customises session from persistent user settings, repos, & scripted configs

# =================
# standard prologue
# =================
env printf "...\n"
env printf "initthis.cfg in progress\n"
# echo -e  "\033[1;34m$(date +%G%b%d%a.%P%H:%M:%S)\033[0m"
env printf "\033[1;34m$(date +%G%b%d%a.%P%H:%M:%S)\033[0m\n"
env printf "\033[1;32m .SNOG is Not Overwhelmingly GNUlike. \033[0m\n"
env printf "\033[1;32m  _______  _______  _______  _______  \033[0m\n"
env printf "\033[1;32m |     __||    |  ||       ||     __| \033[0m\n"
env printf "\033[1;32m |__     ||       ||   -   ||    |  | \033[0m\n"
env printf "\033[1;32m |_______||__|____||_______||_______| Linux \033[0m\n"

# =============================
# ${HOME} directory linkage &c.
# =============================
# snoginit
  sudo pkill -x xfconfd
  sudo pkill -x Thunar
  cd $(dirname $0) ; INI=/tmp/.X11-snog ; mkdir ${INI} ; ln -sfn ${PWD} ${INI}/init
# homedir
  sudo cp -fpr ${USER} /home
  sudo ln -sfn ${HOME}/kpZone /etc/kpzone
# configs outside of ${HOME}
  UNX=/etc/kpzone/kData/unx
  sudo cp -fp ${UNX}/= /usr/bin
  sudo cp -fp ${UNX}/sh/zkp /usr/bin
# sysreq
  sudo sysctl kernel.sysrq=1

# =========================
# boottime package installs
# =========================
# tarballs
  if [ -d repo_tgz ]; then
    for i in repo_tgz/*.tgz
    do
      sudo tar -C / --overwrite -xzf ${i}
    done
  fi
# packages
  cd ${INI}/init/repo_deb
  ls -alL *.deb 2>/dev/null && xterm -geom -264-100 -fg blue -e sudo dpkg --install *.deb
# symlinkable squashfs packages
  cd ${INI}/init/repo_ssp && $(zkp)/sh/fdfctl act

# ============
# user configs
# ============
# systemwide
  sudo $(zkp)/sh/rc_init

# ==============================
# give control to the ui session
# ==============================
# pause
  grep -iq fdflog /proc/cmdline && read aparm
# refresh
# xfce4-session-logout
# sudo pkill -x xfce4-terminal
  sudo pkill -x lightdm

env printf "\033[1;34minitthis.cfg complete\033[0m\n"
  exit 0
Q: What does the booted system look like ?

A: One difference visavis a conventional install is that the installed packages are mounted as loop devices:

Filesystem      Size  Used Avail Use% Mounted on
udev            939M     0  939M   0% /dev
tmpfs           193M  1.3M  191M   1% /run
/dev/sda5       110G   93G   12G  89% /isodevice
/dev/loop0      1.5G  1.5G     0 100% /cdrom
/dev/loop1      1.4G  1.4G     0 100% /rofs
/cow            962M   43M  919M   5% /
tmpfs           962M  1.7M  960M   1% /dev/shm
tmpfs           5.0M  8.0K  5.0M   1% /run/lock
tmpfs           962M     0  962M   0% /sys/fs/cgroup
tmpfs           962M  240K  962M   1% /tmp
/dev/loop2      384K  384K     0 100% /opt/ssp/amx-ristretto_0.8.0-0mx150+1_amd64.ssp
/dev/loop3      128K  128K     0 100% /opt/ssp/arc-beaver-0.4.1-3-x86_64.pkg.ssp
/dev/loop4      128K  128K     0 100% /opt/ssp/chkservice_0.1-3_amd64.ssp
/dev/loop5      1.2M  1.2M     0 100% /opt/ssp/chromium-codecs.ssp
/dev/loop6      640K  640K     0 100% /opt/ssp/gftp-common_2.0.19-5_amd64.ssp
/dev/loop7      256K  256K     0 100% /opt/ssp/gftp-gtk_2.0.19-5_amd64.ssp
/dev/loop8      128K  128K     0 100% /opt/ssp/gftp-text_2.0.19-5_amd64.ssp
/dev/loop9      128K  128K     0 100% /opt/ssp/gftp_2.0.19-5_all.ssp
/dev/loop10     768K  768K     0 100% /opt/ssp/gkrellm_2.3.10-2_amd64.ssp
/dev/loop11     128K  128K     0 100% /opt/ssp/gkrellmoon64.ssp
/dev/loop12     1.3M  1.3M     0 100% /opt/ssp/hexchat-common_2.14.2-2_all.ssp
/dev/loop13     384K  384K     0 100% /opt/ssp/hexchat_2.14.2-2_amd64.ssp
/dev/loop14     128K  128K     0 100% /opt/ssp/libgnutls-openssl27_3.6.4-2ubuntu1_amd64.ssp
/dev/loop15     256K  256K     0 100% /opt/ssp/libgtksourceview2.0-0_2.10.5-2ubuntu2_amd64.ssp
/dev/loop16     640K  640K     0 100% /opt/ssp/libgtksourceview2.0-common_2.10.5-2ubuntu2_all.ssp
/dev/loop17     128K  128K     0 100% /opt/ssp/libncurses5_6.1+20180210-4ubuntu1_amd64.ssp
/dev/loop18     128K  128K     0 100% /opt/ssp/libntlm0_1.5-1_amd64.ssp
/dev/loop19     128K  128K     0 100% /opt/ssp/libobrender32v5_3.6.1-7ubuntu2_amd64.ssp
/dev/loop20     128K  128K     0 100% /opt/ssp/libobt2v5_3.6.1-7ubuntu2_amd64.ssp
/dev/loop21     128K  128K     0 100% /opt/ssp/libssh2-1_1.8.0-2_amd64.ssp
/dev/loop22     1.8M  1.8M     0 100% /opt/ssp/mc-data_3%3a4.8.21-1_all.ssp
/dev/loop23     512K  512K     0 100% /opt/ssp/mc_3%3a4.8.21-1_amd64.ssp
/dev/loop24     256K  256K     0 100% /opt/ssp/obconf_1%3a2.0.4+git20150213-2_amd64.ssp
/dev/loop25     384K  384K     0 100% /opt/ssp/openbox_3.6.1-7ubuntu2_amd64.ssp
/dev/loop26      78M   78M     0 100% /opt/ssp/opera-sandbox.ssp
/dev/loop27     128K  128K     0 100% /opt/ssp/qiv_2.3.1-1build1_amd64.ssp
/dev/loop28     1.3M  1.3M     0 100% /opt/ssp/rxvt-unicode_9.22-4_amd64.ssp
/dev/loop29     128K  128K     0 100% /opt/ssp/trcm-customstylescript.ssp
/dev/loop30      18M   18M     0 100% /opt/ssp/trcm-opera1216.ssp
/dev/loop31     128K  128K     0 100% /opt/ssp/trcm-theme_NOX.ssp
/dev/loop32     128K  128K     0 100% /opt/ssp/trcm-theme_zoncolorEvening.ssp
/dev/loop33     1.8M  1.8M     0 100% /opt/ssp/trcmcore.ssp
/dev/loop34     256K  256K     0 100% /opt/ssp/vfu_4.15-trcm_amd64.ssp
/dev/loop35      67M   67M     0 100% /opt/ssp/vivaldi-sandbox.ssp
/dev/loop36     128K  128K     0 100% /opt/ssp/xfishtank_2.5-1build1_amd64.ssp
/dev/loop37     256K  256K     0 100% /opt/ssp/xpenguins_2.2-11_amd64.ssp
tmpfs           193M  8.0K  193M   1% /run/user/999
/dev/sdb1       2.3G  1.9G  398M  83% /media/xubuntu/UD01_sys
Q: How would you sum up the philosophy of the FrugalDriver Framework ?

A: FDF/SSP is the result of running GNU/Linux/X11 according to the time tested & venerable principles:

  1. Solve the Right Problem
  2. Start with Something You Know Works
  3. Always be Able to Go Back, & Failing that, be Able to Start Over
"It is easier to start with something fixed & break it a piece at a time, than it is to start with something broken & fix it a piece at a time." --me


+++ Credits with Many Thanx
(*) = (www) LocalNet - Buffalo dialup nationwide
(*) = (www) ShortURL.com - still the best address on the net
(*) = (www) AmazingCounters - get your own free hitcounter

visitor
hit counter
number

GPL
@ 2019 TRCM TranceRave Capital Management

Screaming CuckooBroad Associates part of the CircleOmega organisation TRCM
<noscript> <!-- ooo