free software resistance

 the cost of computing freedom is eternal vigilance

### mcorepup02.fig *original date:* jul 2018 *originally posted:* oct 2024 mcorepup02.fig: ``` #### license: creative commons cc0 1.0 (public domain) #### http://creativecommons.org/publicdomain/zero/1.0/ proginf = "mcorepup 0.2, jul 2018 mn" ; print isov = "7" # number of corepup iso ; for corepup-7.iso put "7" #### copyright information about certain source files #### (which is not noted elsewhere) #### #### this downloads a modified version of tc-config, #### a component of tinycore, written by robert shingledecker. #### the copyright notice on tc-config is unmodified; #### however, it does not mention that the license is gpl 2. #### i am not the person who modified the file, however #### i uploaded it to https://ptpb.pw/3Jyz (with the copyright #### notice.) if there are any compliance issues, roberts may #### contact me on the tinycore forum: figosdev #### #### this script modifies a gpl-licensed distribution. #### it then outputs the iso for a similar distribution. #### the script itself is in the public domain. #### most compliance issues should pertain to what is then #### done with the resulting iso. however, the tc-config #### file does not say what license it uses; it is part of #### an aggregate distribution that implies it is gpl 2, #### particularly here: http://tinycorelinux.net/faq.html # to create corepup, include "wanderer" in addchanges # to change corepup, add names of other contributors addchanges = "wanderer wanderer-minimal figosdev" addchanges = "wanderer wanderer-minimal" coreplusurl = "http://smokey01.com/wanderer/CorePlus-6.4.1.iso" # sha256 c07424fac838f2117b9150d94021d768ff3864b81221c8a8abbcf49f0280b762 # =========================================================== # you will need python 2, and fig 2.x or 4.x to run mcorepup. # you can download fig 4.6 here: # https://notabug.org/figosdev/figos/raw/master/fig46.py # =========================================================== # this is a python-based language ; it does not require indentation # only inline python code needs indenting # to add functionality for a contributor, use this conditional around their code: # change = changeforwhom addchanges "contributorname" # iftrue change # # put code for that contributor here # # it will only run if mcorepup is run with their name included in addchanges # fig # ignore the fastcomp thing, related to sfs versions of mkfigos # you want fastcomp to be 0 # (removing the 1 works as well as putting a 0 after.) # set to 1 when trying the script out, will do less compression of sfs fastcomp 0 #isov split proginf "," mid 1 1 split isov " " mid 2 1 isoname "corepup-" plus isov function changeforwhom (addchanges whom) now = addchanges ; lcase ; split now " " ; instr now whom ; return now fig function addquoted mainv toquote q 34 chr now mainv plus " " plus q plus toquote plus q return now fig function urf (p) # filename from url # ... return whats to the right of the rightmost "/" (or entire string if "/" not found) r p reverse instr r "/" minus 1 ifmore r 0 now p right r return now else now p return now fig fig function download (iso) now = iso now = urf iso u = urf iso ck = "ls" addquoted ck u plus " | wc -l" arrshell join ck " " int ifequal ck 0 now "wget" addquoted now iso plus " 2> /dev/null" shell ck = "ls" addquoted ck u plus " | wc -l" arrshell join ck " " int print else now u colortext 15 plus " already exists, not downloading" prints colortext 7 "" print fig fig function gettcz (major pkg) base = "http://tinycorelinux.net/" pkgurl = base plus major plus "/x86/tcz/" plus pkg plus ".tcz" ; download pkgurl txturl = base plus major plus "/x86/tcz/" plus pkg plus ".tcz.md5.txt" ; download txturl depurl = base plus major plus "/x86/tcz/" plus pkg plus ".tcz.dep" ; download depurl fig function rmtcz (major pkg) base = "rm " pkgurl = base plus pkg plus ".tcz" ; shell txturl = base plus pkg plus ".tcz.md5.txt 2> /dev/null" ; shell depurl = base plus pkg plus ".tcz.dep 2> /dev/null" ; shell fig function addpackages (pkgtype major pkgs) addpkg = split pkgs " " forin packages addpkg now = gettcz major packages next fig function rmpackages (pkgtype major pkgs) rmpkg = split pkgs " " forin packages rmpkg now = rmtcz major packages next fig pwd "pwd" arrshell join pwd "" urfcoreplusurl = urf coreplusurl now download coreplusurl fpath pwd plus "/" plus urfcoreplusurl now "mkdir /mnt/mcorepup" shell now "mkdir /mnt/mcorepup/newiso" shell now "mkdir /mnt/mcorepup/fs" shell now "mkdir /mnt/mcorepup/coreplus" shell now "mkdir /mnt/mcorepup/coreplusfs" shell nowplus "cd /mnt/mcorepup ; if [ -e logo.16 ] ; then echo ; else wget -O- 'https://notabug.org/figosdev/figos/raw/master/el3ZRly.png' > logo.16 ; " now nowplus plus "wget 'https://notabug.org/figosdev/figos/raw/master/fig46.py' ; wget 'https://notabug.org/figosdev/figos/raw/master/alex23.py' ; chmod +x fig*.py alex*.py ; fi" shell q 34 chr now "mount " plus q plus pwd plus "/" plus urfcoreplusurl plus q plus " /mnt/mcorepup/coreplus -o loop" shell now "mkdir /mnt/mcorepup/newiso/cde" shell now "mkdir /mnt/mcorepup/newiso/boot" shell now "mkdir /mnt/mcorepup/newiso/boot/isolinux" shell now "cp -r /mnt/mcorepup/coreplus/cde/* /mnt/mcorepup/newiso/cde/" shell now "cp -r /mnt/mcorepup/coreplus/boot/* /mnt/mcorepup/newiso/boot/" shell now "cp /mnt/mcorepup/coreplus/boot/isolinux/* /mnt/mcorepup/newiso/boot/isolinux" shell #now "rm /mnt/mcorepup/newiso/puppy_librepup_6.0.2.2.sfs /mnt/mcorepup/newiso/zdrv_librepup_6.0.2.2.sfs" shell now = "mkdir /mnt/mcorepup/newiso/cde/optional 2> /dev/null" ; shell now = "/mnt/mcorepup/newiso/cde/optional" ; chdir change = changeforwhom addchanges "wanderer" iftrue change now = addpackages "tcz" "6.x" "glib1 gtk1 leafpad emelfm dillo" # sha256 47e738d43a97397f731c741d55755be57119a114475031f627877e5646fb36cf now = "wget -O- https://ptpb.pw/0fdv > /mnt/mcorepup/newiso/cde/optional/corepup.tcz" ; shell fig change = changeforwhom addchanges "wanderer-minimal" iftrue change now = rmpackages "tcz" "" "firmware-ipw2100 firmware-ipw2200 fltk-1.1.10 firmware_iwlwifi-7260 glib1" now = rmpackages "tcz" "" "gtk1 glib2 gdk-pixbuf2 gtk2 libxml2 expat2 firmware-broadcom_bnx2 perl5 libEGL" now = rmpackages "tcz" "" "libGL libFS libXxf86dga libXinerama liblzma ttf-bitstream-vera Xorg-7.7-lib" now = rmpackages "tcz" "" "udev-lib libXvmc leafpad libxshmfence libglade flwm_topside firmware-myri10ge" now = rmpackages "tcz" "" "libXdamage firmware-vxge libxkbfile readline firmware wl-modules-3.16.6-tinycore" now = rmpackages "tcz" "" "ndiswrapper-modules-3.16.6-tinycore wireless-3.16.6-tinycore firmware-zd1211" now = rmpackages "tcz" "" "libXcomposite libtiff firmware-openfwwf fontconfig librsvg libpci" now = rmpackages "tcz" "" "fribidi libffi wifi firmware-iwlwifi atk tc-install libnl openssl emelfm libdrm" now = rmpackages "tcz" "" "firmware-ueagle-atm libXxf86vm icewm jwm flwm pixman firmware-netxen" now = rmpackages "tcz" "" "gamin firmware-radeon libstartup-notification libcroco pango dillo cairo" now = rmpackages "tcz" "" "advcomp tar ndiswrapper ezremaster b43-fwcutter libXcursor firmware-libertas" now = rmpackages "tcz" "" "libXres ncurses libXfixes pci-utils mkisofs-tools wireless_tools" now = rmpackages "tcz" "" "dosfstools firmware-atheros kmaps libXss libpciaccess libXft wpa_supplicant" now = rmpackages "tcz" "" "libXtst libXv libXaw iw libiw firmware-iwimax libdmx hackedbox openbox" now = rmpackages "tcz" "" "fluxbox syslinux firmware-broadcom_bcm43xx firmware-ti-connectivity harfbuzz" now = "rm ../wififirmware.instlist libX11.tcz.dep imlib2.tcz.dep " ; shell now = "rm ../wifi.instlist fltk-1.3.tcz.dep libxcb.tcz.dep " ; shell now = "rm ../installer.instlist libXi.tcz.dep libXpm.tcz.dep " ; shell now = "rm ../ndiswrapper.instlist imlib2-bin.tcz.dep wbar.tcz.dep " ; shell now = "rm ../remaster.instlist libXrandr.tcz.dep libXrender.tcz.dep " ; shell now = "rm ../kmaps.instlist Xlibs.tcz.dep Xprogs.tcz.dep " ; shell now = "rm ../xfbase.lst libXt.tcz.dep libXfont.tcz.dep " ; shell now = "rm ../xibase.lst libXext.tcz.dep libXmu.tcz.dep " ; shell now = "rm ../xwbase.lst " ; shell fig change = changeforwhom addchanges "wanderer" iftrue change now = "echo aterm.tcz > ../copy2fs.lst ; echo fltk-1.3.tcz >> ../copy2fs.lst" ; shell now = "echo corepup-jwm.tcz >> ../copy2fs.lst ; echo freetype.tcz >> ../copy2fs.lst" ; shell now = "echo imlib2-bin.tcz >> ../copy2fs.lst ; echo imlib2.tcz >> ../copy2fs.lst" ; shell now = "echo libfontenc.tcz >> ../copy2fs.lst ; echo libICE.tcz >> ../copy2fs.lst" ; shell now = "echo libjpeg-turbo.tcz >> ../copy2fs.lst ; echo libpng.tcz >> ../copy2fs.lst" ; shell now = "echo libSM.tcz >> ../copy2fs.lst ; echo libX11.tcz >> ../copy2fs.lst" ; shell now = "echo libXau.tcz >> ../copy2fs.lst ; echo libxcb.tcz >> ../copy2fs.lst" ; shell now = "echo libXdmcp.tcz >> ../copy2fs.lst ; echo libXext.tcz >> ../copy2fs.lst" ; shell now = "echo libXfont.tcz >> ../copy2fs.lst ; echo libXi.tcz >> ../copy2fs.lst" ; shell now = "echo libXmu.tcz >> ../copy2fs.lst ; echo libXpm.tcz >> ../copy2fs.lst" ; shell now = "echo libXrandr.tcz >> ../copy2fs.lst ; echo libXrender.tcz >> ../copy2fs.lst" ; shell now = "echo libXt.tcz >> ../copy2fs.lst ; echo wbar.tcz >> ../copy2fs.lst" ; shell now = "echo Xlibs.tcz >> ../copy2fs.lst ; echo Xprogs.tcz >> ../copy2fs.lst" ; shell now = "echo Xvesa.tcz >> ../copy2fs.lst " ; shell now = "ls *.tcz | sort -f > ../xbase.lst" ; shell now = "ls *.tcz | sort -f > ../onboot.lst" ; shell fig change = changeforwhom addchanges "figosdev" iftrue change now = addpackages "tcz" "6.x" "syslinux" # add python 2 now = addpackages "tcz" "6.x" "python libffi ncurses readline gdbm openssl bzip2-lib sqlite3" # add curl now = addpackages "tcz" "6.x" "libgpg-error libgcrypt libssh2 libidn curl" # add qemu-x86 (requires curl) # now = addpackages "tcz" "6.x" "qemu-x86 libcap-ng gamin glib2 qemu-common pixman udev-lib libusb libasound libmad SDL" fig now = "/mnt/mcorepup" ; chdir #now "cp /mnt/mcorepup/coreplus/live/vmlinuz /mnt/mcorepup/newiso" shell # now "cp /mnt/mcorepup/coreplus/live/initrd.img /mnt/mcorepup/newiso/initrd.gz" shell now "mkdir /mnt/mcorepup/newiso/LiveOS" shell now "mkdir /mnt/mcorepup/newiso/boot" shell now "mkdir /mnt/mcorepup/newiso/boot/isolinux" shell now "cp /mnt/mcorepup/coreplus/boot/vmlinuz /mnt/mcorepup/newiso/boot/" shell now "cp /mnt/mcorepup/coreplus/boot/initrd /mnt/mcorepup/newiso/boot/" shell # now "cp /mnt/mcorepup/coreplus/live/filesystem.squashfs /mnt/mcorepup/newiso/live" shell function fixpings force isoname fromt tot fname try fc arropen fname ck join fc " " instr ck "auto-edited by mk" iftrue force ck 0 fig iftrue ck pass else now fname open "w" forin t fc text split t fromt join text tot now text fprint fname next now " # auto-edited by mk" plus isoname fprint fname now fname close q 34 chr now "chmod +x " plus q plus fname plus q shell fig except pass resume fig #now fixpings 0 isoname "VSHIFT 2" "VSHIFT 14" "/mnt/mcorepup/newiso/boot/isolinux/isolinux.cfg" #now fixpings 0 isoname "Italiano" "it_IT locale" "/mnt/mcorepup/newiso/boot/isolinux/isolinux.cfg" #now fixpings 1 isoname "Void Linux" "Fig OS" "/mnt/mcorepup/newiso/boot/isolinux/isolinux.cfg" #now "cat /mnt/mcorepup/iso/isolinux.cfg | head -9 | sed 's/default puppy/default live/g' > /mnt/mcorepup/newiso/isolinux.cfg" shell #now "cat /mnt/mcorepup/coreplus/isolinux/live.cfg > /mnt/mcorepup/newiso/isolinux.cfg" shell now "/mnt/mcorepup/coreplusfs" chdir #now "unsquashfs /mnt/mcorepup/coreplus/LiveOS/squashfs.img" shell now "mkdir /mnt/mcorepup/coreplusfs/" shell now "mkdir /mnt/mcorepup/coreplusfs/squashfs-root/" shell now "echo copying #; cp /mnt/mcorepup/coreplusfs/squashfs-root/LiveOS/ext3fs.img /mnt/mcorepup/" #now "mount /mnt/mcorepup/coreplusfs/squashfs-root/LiveOS/ext3fs.img /mnt/mcorepup/coreplusfs/squashfs-root/" shell now "rm /mnt/mcorepup/coreplusfs/squashfs-root/usr/lib/libLLVM-4.0.so" shell now "rm /mnt/mcorepup/coreplusfs/squashfs-root/usr/lib/libLLVM-4.0.1.so" shell now "echo '#!/bin/bash' > /mnt/mcorepup/coreplusfs/squashfs-root/usr/sbin/figoshelp" shell quot 34 chr bs 92 chr now "echo 'su $(cat /etc/passwd | grep 1000:1000 | tr : " plus quot plus bs plus bs plus "n" plus quot plus " | head -1) -c " plus quot plus "x-www-browser https://sourceforge.net/u/figosdev/fig/figos/" plus quot plus "' >> /mnt/mcorepup/coreplusfs/squashfs-root/usr/sbin/figoshelp" shell now "chmod +x /mnt/mcorepup/coreplusfs/squashfs-root/usr/sbin/figoshelp" shell now "mkdir /mnt/mcorepup/coreplusfs/squashfs-root/usr/share/doc/puppy" shell now "mkdir /mnt/mcorepup/coreplusfs/squashfs-root/usr/share/doc/figueira 2> /dev/null" shell now "rm /mnt/mcorepup/coreplusfs/squashfs-root/usr/bin/fig29.py" shell now "cp /mnt/mcorepup/fig46.py /mnt/mcorepup/coreplusfs/squashfs-root/usr/bin" shell now "cp /mnt/mcorepup/figu29.py /mnt/mcorepup/coreplusfs/squashfs-root/usr/bin" shell now "cp /mnt/mcorepup/alex23.py /mnt/mcorepup/coreplusfs/squashfs-root/usr/bin" shell now "chmod +x /mnt/mcorepup/coreplusfs/squashfs-root/usr/bin/fig46.py" shell now "chmod +x /mnt/mcorepup/coreplusfs/squashfs-root/usr/bin/figu29.py" shell now "mkdir /mnt/mcorepup/coreplusfs/squashfs-root/usr/" shell now "mkdir /mnt/mcorepup/coreplusfs/squashfs-root/usr/bin" shell now "mkdir /mnt/mcorepup/coreplusfs/squashfs-root/usr/share" shell now "mkdir /mnt/mcorepup/coreplusfs/squashfs-root/usr/local" shell now "mkdir /mnt/mcorepup/coreplusfs/squashfs-root/usr/local/bin" shell now "rm /mnt/mcorepup/coreplusfs/squashfs-root/etc/os-release" shell now "rm /mnt/mcorepup/coreplusfs/squashfs-root/usr/share/lxqt/themes/frost/lxqt*.png" shell #now "chroot /mnt/mcorepup/coreplusfs/squashfs-root/" shell now "echo 'echo >/usr/share/lxqt/graphics/helix.svg' >> /mnt/mcorepup/coreplusfs/squashfs-root/etc/rc.local" shell now "echo '/root/updatefirstrun 2> /dev/null' >> /mnt/mcorepup/coreplusfs/squashfs-root/etc/rc.local" shell now "echo '/root/pythoninstall' >> /mnt/mcorepup/coreplusfs/squashfs-root/etc/rc.local" shell now "echo '/root/wminstall' >> /mnt/mcorepup/coreplusfs/squashfs-root/etc/rc.local" shell now "echo '/root/curlinstall' >> /mnt/mcorepup/coreplusfs/squashfs-root/etc/rc.local" shell now "echo '/root/installother' >> /mnt/mcorepup/coreplusfs/squashfs-root/etc/rc.local" shell quot 34 chr #now "/bin/echo -e '#!/bin/bash\np=$(which python 2> /dev/null | wc -l) ; if [[ " plus quot plus "$p" plus quot plus " == " plus quot plus "0" plus quot plus " ]] ; then xbps-install --repository /var/cache/xbps -yS python ; fi' > /mnt/mcorepup/coreplusfs/squashfs-root/root/pythoninstall ; chmod +x /mnt/mcorepup/coreplusfs/squashfs-root/root/pythoninstall" shell #now "/bin/echo -e '#!/bin/bash\np=$(which icewm 2> /dev/null | wc -l) ; if [[ " plus quot plus "$p" plus quot plus " == " plus quot plus "0" plus quot plus " ]] ; then xbps-install --repository /var/cache/xbps -yS icewm ; ' > /mnt/mcorepup/coreplusfs/squashfs-root/root/wminstall ; chmod +x /mnt/mcorepup/coreplusfs/squashfs-root/root/wminstall" shell #now "/bin/echo -e '#!/bin/bash\np=$(which curl 2> /dev/null | wc -l) ; if [[ " plus quot plus "$p" plus quot plus " == " plus quot plus "0" plus quot plus " ]] ; then xbps-install --repository /var/cache/xbps -yS curl wget ; fi' > /mnt/mcorepup/coreplusfs/squashfs-root/root/curlinstall ; chmod +x /mnt/mcorepup/coreplusfs/squashfs-root/root/curlinstall" shell #now "/bin/echo -e '#!/bin/bash\np=$(which leafpad 2> /dev/null | wc -l) ; if [[ " plus quot plus "$p" plus quot plus " == " plus quot plus "0" plus quot plus " ]] ; then xbps-install --repository /var/cache/xbps -yS leafpad gdmap hsetroot xrandr xset xz mtpaint i3lock hdparm smartmontools xpdf yad alsa-tools alsa-utils ; fi' > /mnt/mcorepup/coreplusfs/squashfs-root/root/installother ; chmod +x /mnt/mcorepup/coreplusfs/squashfs-root/root/installother" shell #now "echo 'cp /var/cache/?bps/*bps* /mnt/hda1/root/' >> /mnt/mcorepup/coreplusfs/squashfs-root/root/.bash_history" shell #now "echo 'smartctl --all /dev/sda | egrep " plus quot plus "vera|Load|Logge" plus quot plus "' >> /mnt/mcorepup/coreplusfs/squashfs-root/root/.bash_history" shell #now "echo 'xbps-install --repository /var/cache/xbps -yS binutils' >> /mnt/mcorepup/coreplusfs/squashfs-root/root/.bash_history" shell #now "echo 'xrandr --output LVDS --off' >> /mnt/mcorepup/coreplusfs/squashfs-root/root/.bash_history" shell #now "echo 'gdmap -f /mnt/hda1 &' >> /mnt/mcorepup/coreplusfs/squashfs-root/root/.bash_history" shell #now "/bin/echo -e '#!/bin/bash\nxbps-rindex -a /var/cache/xbps/*.xbps ; rm /root/updatefirstrun' > /mnt/mcorepup/coreplusfs/squashfs-root/root/updatefirstrun ; chmod +x /mnt/mcorepup/coreplusfs/squashfs-root/root/updatefirstrun" shell now "/mnt/mcorepup/" chdir function vpaupdate ifequal 1 0 nl 10 chr nla nl plus "" now "loading repos" print repos arrcurl "https://repo.voidlinux.eu/current/" join repos "" split repos "" join repos nla split repos ">" join repos nl split repos nl now "vpa.r" open "w" forin p repos grep instr p ".i686.xbps" filt instr p "<" iftrue grep ifequal filt 0 now p fprint "vpa.r" fig fig next now "vpa.r" close fig fig function vpasearch repos p nl 10 chr now "searching repos for: " prints colortext 15 now p prints colortext 7 "" print print forin s repos grep instr s p filt instr s ".xbps.sig" iftrue grep ifequal filt 0 now s print fig fig next fig function vpadownload repos p nl 10 chr nlt 9 chr plus nl reverse tabbed repos join tabbed nlt split tabbed nl now "downloading: " prints colortext 15 plen p len minus 1 now p left plen prints colortext 7 "" print print forin num "0123456789" pnum p plus num forin d tabbed grep instr d pnum filt instr d ".xbps.sig" iftrue grep ifequal filt 0 tab 9 chr pname split d tab join d "" ltrim url "https://repo.voidlinux.eu/current/" plus pname try now "downloading: " plus url plus " " plus url plus ".sig" print now "rm " plus pname plus " " plus pname plus ".sig" plus " 2> /dev/null" shell now "wget " plus url shell now "wget " plus url plus ".sig" shell except pass resume fig fig next next fig function vpa vpacmd searchfor "" downloadname "" while findp vpacmd instr findp "search" iftrue findp try p vpacmd mid findp 2 arr mid 2 1 plen p len ifequal plen 0 now divby 0 fig except now "to search, enter part of a package name after the search command: " prints now colortext 15 "vpa search python" prints colortext 7 "" print resume iftrue p searchfor p fig break fig findp vpacmd instr findp "download" iftrue findp try p vpacmd mid findp 2 arr mid 2 1 plen p len ifequal plen 0 now divby 0 fig except now "to download a package, enter the package name after the search command: " prints now colortext 15 "vpa download leafpad" prints colortext 7 "" print resume iftrue p tab 9 chr downloadname tab plus p plus "-" fig break fig upd vpacmd instr upd "update" iftrue upd now vpaupdate break fig break wend try repos arropen "vpa.r" except repos "" arr resume count repos len divby 2 int ifmore count 1 now count prints " packages" print else now "no packages in vpa list; running " prints colortext 15 "vpa update" prints colortext 7 "" print vpaupdate fig iftrue searchfor now vpasearch repos searchfor fig iftrue downloadname now vpadownload repos downloadname fig fig now "/mnt/mcorepup/" chdir now "mkdir /mnt/mcorepup/core" shell change = changeforwhom addchanges "wanderer" # only change /boot/core.gz for iftrue change now = "cd /mnt/mcorepup/core ; zcat /mnt/mcorepup/coreplus/boot/core.gz | sudo cpio -i -H newc -d" ; shell now = "/mnt/mcorepup/core/etc/init.d" ; chdir # /etc/init.d/tc-config # sha256 6a0a630b07761352d0844ea808778ddabb12189dfdbcb366f6aa4c8048bb564c ck = "rm tc-config ; ls tc-config | wc -l" ; arrshell ; join ck " " ; int ifequal ck 0 now = "wget -O- https://ptpb.pw/3Jyz > tc-config" ; shell else now = "tc-config" ; colortext 15 ; plus " already exists, not downloading" ; prints ; colortext 7 ; "" ; print fig now "/mnt/mcorepup/core/" ; chdir # sha256 98089ba431651a1c1d23fa8694382b792c7187a11765eab2873943059abc1a0d ck = "ls /mnt/mcorepup/core/mkcore.sh | wc -l" ; arrshell ; join ck " " ; int ifequal ck 0 now = "wget -O- https://ptpb.pw/_1zo > mkcore.sh" ; shell else now = "" ; colortext 15 ; plus "already exists, not downloading" ; prints ; colortext 7 ; "" ; print fig now "/mnt/mcorepup/" ; chdir now = "rm /mnt/mcorepup/newiso/boot/core.gz" ; shell now = "cd /mnt/mcorepup/core ; find | sudo cpio -o -H newc | gzip -5 > /mnt/mcorepup/newiso/boot/core.gz" ; shell # still working on this part # sha256 9bff8e7f09bc1e8a740fef5b006a471583335891c87bde26b6ccc5ebfac49bcb now = "wget -O- https://ptpb.pw/ZOd0 > /mnt/mcorepup/newiso/boot/core.gz" ; shell now = "wget -O- https://ptpb.pw/KwSz > /mnt/mcorepup/newiso/boot/isolinux/isolinux.cfg " ; shell fig #now "download gdbm" split now " " vpa now #now "download libcrypto43" split now " " vpa now #now "download libssl45" split now " " vpa now now "/mnt/mcorepup/" chdir now "wget 'http://http.us.debian.org/debian/pool/main/d/dpkg/dpkg_1.18.24_i386.deb'" shell now "ar x dpkg_1.18.24_i386.deb" shell now "tar -xvf data.tar.xz ./usr/bin/dpkg-deb ; cp ./usr/bin/dpkg-deb /mnt/mcorepup" shell now "cp dpkg-deb /mnt/mcorepup/coreplusfs/squashfs-root/usr/bin" shell now "cp *.xbps *.xbps.sig /mnt/mcorepup/coreplusfs/squashfs-root/var/cache/xbps" shell now "/mnt/mcorepup/coreplusfs" chdir #now "cp /mnt/mcorepup/figuchsh.odt /mnt/mcorepup/coreplusfs/squashfs-root/usr/share/doc/figueira" shell #now "cp /mnt/mcorepup/figuchsh.pdf /mnt/mcorepup/coreplusfs/squashfs-root/usr/share/doc/figueira" shell now "ln -s /root/.bash_history /mnt/mcorepup/coreplusfs/squashfs-root/.bash_history" shell now pwd chdir insticewm "ls /mnt/mcorepup/coreplusfs/squashfs-root/usr/bin/icewm | wc -l 2> /dev/null" arrshell mid 1 1 int ifequal insticewm 0 now "mkdir -p /mnt/mcorepup/coreplusfs/squashfs-root/usr/share/pixmaps" shell # now "wget -O- https://web.archive.org/web/20180409203435/https://openclipart.org/image/48px/svg_to_png/25428/Network.png > /mnt/mcorepup/coreplusfs/squashfs-root/usr/share/pixmaps/connect48.png" shell # now "wget -O- https://web.archive.org/web/20180409203311/https://openclipart.org/image/48px/svg_to_png/212874/RootTerminal.png > /mnt/mcorepup/coreplusfs/squashfs-root/usr/share/pixmaps/console48.png" shell # now "wget -O- https://web.archive.org/web/20180409203255/https://openclipart.org/image/48px/svg_to_png/285844/Help-content.png > /mnt/mcorepup/coreplusfs/squashfs-root/usr/share/pixmaps/help48.png" shell # now "wget -O- https://web.archive.org/web/20180409203213/https://openclipart.org/image/48px/svg_to_png/65101/leafpad3.png/ > /mnt/mcorepup/coreplusfs/squashfs-root/usr/share/pixmaps/edit48.png" shell # now "wget https://notabug.org/figosdev/figos/raw/master/arrlen.fig" shell # now "wget https://notabug.org/figosdev/figos/raw/master/arrname.fig" shell # now "wget https://notabug.org/figosdev/figos/raw/master/dircmp.fig" shell # now "wget http://http.us.debian.org/debian/pool/main/h/hashdeep/hashdeep_4.4-4_i386.deb" shell # now "wget http://http.us.debian.org/debian/pool/main/h/hashdeep/md5deep_4.4-4_all.deb" shell fig now "/mnt/mcorepup/coreplusfs" chdir now "rm /mnt/mcorepup/coreplusfs/squashfs-root/usr/share/icewm/themes/default/default.png" shell now "cp arrlen.fig arrname.fig dircmp.fig /mnt/mcorepup/coreplusfs/squashfs-root/usr/bin" shell now "mkdir -p /mnt/mcorepup/coreplusfs/squashfs-root/var/cache/apt/archives" shell #now "cp libglib2.0-0_2.42.1-1+b1_i386.deb /mnt/mcorepup/coreplusfs/squashfs-root/var/cache/apt/archives" shell #now "dpkg-deb -x iceweasel_45.4.0esr-1~deb8u2_all.deb /mnt/mcorepup/coreplusfs/squashfs-root" shell #now "dpkg-deb -x firefox-esr_45.4.0esr-1~deb8u2_i386.deb /mnt/mcorepup/coreplusfs/squashfs-root" shell #now "dpkg-deb -x libssl1.0.0_1.0.1t-1+deb8u5_i386.deb /mnt/mcorepup/coreplusfs/squashfs-root" shell #now "rm -rf /mnt/mcorepup/coreplusfs/squashfs-root/etc/systemd" shell #now "rm -rf /mnt/mcorepup/coreplusfs/squashfs-root/var/lib/systemd" shell #now "rm /mnt/mcorepup/coreplusfs/squashfs-root/usr/bin/dbus-daemon" shell #now "rm /mnt/mcorepup/coreplusfs/squashfs-root/usr/bin/dbus-launch" shell # (udisks) # now "rm /mnt/mcorepup/coreplusfs/squashfs-root/etc/avahi/services/*.service" shell now "nrm /mnt/mcorepup/coreplusfs/squashfs-root/etc/systemd/system/bluetooth.target.wants/*.service" shell now "nrm /mnt/mcorepup/coreplusfs/squashfs-root/lib/systemd/system/*.service*" shell now "nrm /mnt/mcorepup/coreplusfs/squashfs-root/root/deb/lib/systemd/system/*.service*" shell #now "rm /mnt/mcorepup/coreplusfs/squashfs-root/etc/alternatives/x-session-manager" shell #now "ln -s /usr/bin/icewm-session /mnt/mcorepup/coreplusfs/squashfs-root/etc/alternatives/x-session-manager" shell #now "rm /mnt/mcorepup/coreplusfs/squashfs-root/etc/alternatives/x-window-manager" shell #now "ln -s /usr/bin/icewm /mnt/mcorepup/coreplusfs/squashfs-root/etc/alternatives/x-window-manager" shell #now fixpings 0 isoname "/usr/bin/startxfce4" "/usr/bin/icewm-session" "/mnt/mcorepup/coreplusfs/squashfs-root/etc/lxdm/lxdm.conf" #now fixpings 0 isoname "__Default__" "IceWM" "/mnt/mcorepup/coreplusfs/squashfs-root/var/lib/lxdm/lxdm.conf" ###now "cp /mnt/mcorepup/unsq/squashfs-root/usr/local/PupClockset/icons/blank1.png /mnt/mcorepup/coreplusfs/squashfs-root/usr/share/backgrounds/default.png" shell #now "ln -s /root/.config /mnt/mcorepup/coreplusfs/squashfs-root/.config" shell # puppy to coreplus #now "cat /mnt/mcorepup/unsq/squashfs-root/usr/share/backgrounds/default.png > /mnt/mcorepup/coreplusfs/squashfs-root/usr/share/backgrounds/xfce" shell #now "mkdir /mnt/mcorepup/coreplusfs/squashfs-root/usr/local/apps" shell #now "cp -r /mnt/mcorepup/unsq/squashfs-root/usr/local/apps/ROX-Filer /mnt/mcorepup/coreplusfs/squashfs-root/usr/local/apps" shell #now "cp /mnt/mcorepup/unsq/squashfs-root/usr/local/bin/rox /mnt/mcorepup/coreplusfs/squashfs-root/usr/local/apps" shell #now "mkdir /mnt/mcorepup/coreplusfs/squashfs-root/usr/local/lib" shell q 34 chr #now "sed -i 's/DesktopBackgroundColor=" plus q plus "rgb:50\/50\/78" plus q plus "/DesktopBackgroundColor=" plus q plus "rgb:00\/00\/00" plus q plus "/g' /mnt/mcorepup/coreplusfs/squashfs-root/usr/share/icewm/themes/icedesert/default.theme" shell #now "sed -i 's/xterm/xterm -fn 10x20/g' /mnt/mcorepup/coreplusfs/squashfs-root/usr/share/icewm/keys" shell #now "sed -i 's/^PermitRootLogin without-password/PermitRootLogin no/g' /mnt/mcorepup/coreplusfs/squashfs-root/etc/ssh/sshd_config" shell #now "/mnt/mcorepup/coreplusfs/squashfs-root/usr/bin/" chdir #now "mkdir fig ; cd fig ; if [ -e fig29-31_1.0.deb ] ; then echo ; else wget http://distro.ibiblio.org/coreplus/files/extra_packages/fig29-31_1.0.deb ; fi" shell #now "cd fig ; dpkg-deb -x fig29-31_1.0.deb /mnt/mcorepup/coreplusfs/squashfs-root" shell # fig now catches a reference in this example, this line fixes the error #now fixpings 0 isoname "abs :" "" "/mnt/mcorepup/coreplusfs/squashfs-root/usr/share/doc/fig/examples/asciimint.fig" #now "echo 'export LANG=en_US.UTF-8' >> /mnt/mcorepup/coreplusfs/squashfs-root/root/.bashrc" shell #now "echo '#export LANG=en_US.UTF-8' >> /mnt/mcorepup/coreplusfs/squashfs-root/user/.bashrc" shell #now "/bin/echo -e '#!/bin/bash\nyad --text-info --editable --wrap --fontname=monospace --show-uri --maximized --listen' > /mnt/mcorepup/coreplusfs/squashfs-root/usr/bin/yadless ; chmod +x /mnt/mcorepup/coreplusfs/squashfs-root/usr/bin/yadless" shell #now "/bin/echo -e '#!/bin/bash\npython -m SimpleHTTPServer' > /mnt/mcorepup/coreplusfs/squashfs-root/usr/bin/pserver ; chmod +x /mnt/mcorepup/coreplusfs/squashfs-root/usr/bin/pserver" shell function overloadclihelp folder clihelp python clihelp = """#!/usr/bin/env bash #### license: creative commons cc0 1.0 (public domain) #### http://creativecommons.org/publicdomain/zero/1.0/ proginf="cli help overloading 0.2" if [[ "$1" == "" ]] then echo function pq() { echo -e "$q" | tr '(' '^' | sed "s/\ \@/\x1b\[1\;37m\ \@/g" | sed "s/\@\ /\@\ \x1b\[0\;37m/g" | sed "s/\@\^/\@\x1b\[0\;37m\^/g" | tr '^' '(' } q=' \x1b[1;33mfig os command line help\x1b[0m ' ; pq q=' ' ; pq echo -e " \x1b[1;33mhelp usual \x1b[0m standard bash help command" echo -e " \x1b[1;33mhelp network \x1b[0m help with network commands" echo -e " \x1b[1;33mhelp files \x1b[0m help with file commands" echo -e " \x1b[1;33mhelp config \x1b[0m help with some puppy settings" echo -e " \x1b[1;33mhelp misc \x1b[0m commands to reboot, stop beeping, etc." echo -e " \x1b[1;33mhelp coding \x1b[0m quick help for coding" echo -e " \x1b[1;33mhelp alias \x1b[0m aliases to customize bash" echo else if [[ "$1" == "usual" ]] then bash -c 'help' fi if [[ "$1" == "network" ]] then echo -e "help with network commands" \\\\n echo -e \\\\nto connect to available network interfaces: '(use one)'\\\\n for p in $(ip link | cut -d " " -f 2 | tr -d ':') ; do if [[ "$p" != "lo" ]] ; then echo dhclient $p ; fi ; done ; echo -e \\\\n \\\\nto find available network interfaces: \\\\n \\\\nip link \| 'cut -d " " -f 2 | tr -d' \\':\\' \\\\n fi if [[ "$1" == "files" ]] then echo "help with file commands" fi if [[ "$1" == "config" ]] then echo "help with some puppy settings" fi if [[ "$1" == "misc" ]] then echo "commands to reboot, stop beeping, etc." fi if [[ "$1" == "coding" ]] then echo "quick help for coding" fi if [[ "$1" == "alias" ]] then echo "aliases to customize bash" fi fi """ fig now folder plus "/usr/local/bin" chdir now "help" open "w" now clihelp fprint "help" now "help" close now "chmod +x ./help" shell now folder chdir q 34 chr bs 92 chr plus q q bs usualhelp "cat root/.bashrc | grep usualhelp | wc -l" arrshell mid 1 1 int ifequal usualhelp 0 now "echo alias usualhelp=" plus q plus "bash -c 'help'" plus q plus " >> root/.bashrc" shell now "echo alias help=" plus q plus "/usr/local/bin/help" plus q plus " >> root/.bashrc" shell fig fig #now "/mnt/mcorepup/coreplusfs/squashfs-root" overloadclihelp now quot 34 chr ###now "echo #PS1='\[\e]2;\w\a\e[32m\]$USER:\w\\$ \[\e[0m\]'# >> /mnt/mcorepup/unsq/squashfs-root/root/.bashrc" split now "'" join now quot split now "#" join now "'" shell #now "cp /mnt/mcorepup/coreplusfs/squashfs-root/usr/share/icewm/taskbar/icewm.orig.xpm /mnt/mcorepup/coreplusfs/squashfs-root/usr/share/icewm/taskbar/icewm.xpm" shell #now "mkdir -p /mnt/mcorepup/coreplusfs/squashfs-root/usr/share/icewm/taskbar" shell #now "/mnt/mcorepup/coreplusfs/squashfs-root/usr/share/icewm.xpm" open "w" icewmicon python icewmicon = """/* XPM */ static char *icewm_xpm[] = { "48 20 4 1", " c None", "1 c #009A00", "2 c #000000", "3 c #000000", " ", " ", " 33333 ", " 311113 ", " 3111113 ", " 311111133 ", " 22222222222222222222222222222223111111113 ", " 311111111111111111111111111111111111111113 ", " 311111111111111111111111111111111111111113 ", " 311111111111111111111111111111111111111113 ", " 311111111111111111111111111111111111111113 ", " 311111111111111111111111111111111111111113 ", " 22222222222222222222222222222222111111113 ", " 311111113 ", " 31111133 ", " 311113 ", " 33333 ", " ", " ", " " }; """ fig #now icewmicon fprint "/mnt/mcorepup/coreplusfs/squashfs-root/usr/share/icewm.xpm" #now "/mnt/mcorepup/coreplusfs/squashfs-root/usr/share/icewm.xpm" close #now "mkdir -p /mnt/mcorepup/coreplusfs/squashfs-root/root/.config/pcmanfm/default/" shell #now "mkdir -p /mnt/mcorepup/coreplusfs/squashfs-root/root/.config/libfm/" shell ###now "mkdir -p /mnt/mcorepup/unsq/squashfs-root/root/.config/pcmanfm/default/" shell ###now "mkdir -p /mnt/mcorepup/unsq/squashfs-root/root/.config/libfm/" shell df "/mnt/mcorepup/coreplusfs/squashfs-root/root/welcome.fig" #now df open "w" text0 "" python text0 = """proginf = "fig os welcome 0.1, oct 2016 mn" now "" print ckremote "pgrep sshd | wc -l" arrshell mid 1 1 int iftrue ckremote now "" print now " you have sshd enabled... to prevent remote logins," colortext 12 print "" print now " it is recommended you turn it off by typing: " prints now "remote off" colortext 14 print colortext 7 "" print print `fig trythatfirst 0 while qu 0 rc 0 ifequal trythatfirst 1 now " " times 11 prints "you can get help simply by typing: " colortext 7 prints now "help" colortext 14 print colortext 7 "" print print trythatfirst 2 else ifequal trythatfirst 0 trythatfirst 1 `fig `fig try p "type here: " colortext 10 prints colortext 7 "" prints "bash -c 'read -e t ; echo $t'" arrshell mid 1 1 plen p len iftrue plen first p asc else first 0 `fig now p ltrim rtrim lcase ckcmd " " plus now plus " " ckcmdremote instr ckcmd " remote " ckcmdoff instr ckcmd " off " times ckcmdremote iftrue ckcmdoff rc 1 now " " times 11 prints "service ssh stop" shell "" print `fig ifequal now "help" rc 1 trythatfirst 2 ## disable function that tells you about the help command now " " times 11 prints "valid commands are:" colortext 3 print "" print now " " times 11 prints " help" colortext 14 prints ": to get help" colortext 7 print now " " times 11 prints "remote off" colortext 14 prints ": to turn off remote login" colortext 7 print now " " times 11 prints " sh" colortext 14 prints ": if you know bash" colortext 7 print now " " times 11 prints " exit" colortext 14 prints ": (or quit or q) to quit welcome program " colortext 7 print now "" colortext 7 print `fig ifequal now "sh" rc 1 qu 1 now " " times 11 prints "running bash... welcome program will quit on exit:" colortext 3 print "" print now "cd /root ; bash --rcfile /root/.bashrc" shell `fig ifequal now "exit" rc 1 qu 1 `fig ifequal now "quit" rc 1 qu 1 `fig ifequal now "q" rc 1 qu 1 `fig except qu 1 resume iftrue qu now "" print system `fig ifequal rc 0 now " " times 11 prints colortext 3 "unrecognized command (no problem)" prints colortext 7 "" print print wend """ fig now split text0 "`" join now "" swap now text0 #now text0 fprint df #now df close now "fig29.py " plus df plus " 2> /dev/null" shell now "fig29 " plus df plus " 2> /dev/null" shell df "/mnt/mcorepup/coreplusfs/squashfs-root/root/desktops" #now df open "w" text0 "" python text0 = """#!/bin/bash while [[ 1 ]] do p=$(pgrep pcmanfm | wc -l) if [[ "$p" -lt "1" ]] then export XAUTHORITY=$(find /home | grep "\.Xauthority" | tail -1) pcmanfm export DISPLAY=:0.0 d=$(pwd) while [[ 1 ]] ; do sleep .2 ; p=$(pgrep icewm | wc -l) ; if [[ "$p" -gt "1" ]] ; then break ; fi ; done cd /root pcmanfm-qt --desktop 2> /dev/null & cd $d export XAUTHORITY= fi sleep 2 done """ fig #now text0 fprint df #now df close now "chmod +x " plus df shell now "/mnt/mcorepup/" chdir df "/mnt/mcorepup/coreplusfs/squashfs-root/root/welcomes" #now df open "w" text0 "" python text0 = """#!/bin/bash while [[ 1 ]] do while [[ 1 ]] ; do sleep .2 ; p=$(pgrep icewm | wc -l) ; if [[ "$p" -gt "1" ]] ; then break ; fi ; done while [[ 1 ]] ; do sleep .2 ; p=$(pgrep pcmanfm | wc -l) ; if [[ "$p" -gt "0" ]] ; then break ; fi ; done w=$(pgrep python | wc -l) if [[ "$w" -lt "1" ]] then export XAUTHORITY=$(find /home | grep "\.Xauthority" | tail -1) xterm export DISPLAY=:0.0 sleep 1.75 xterm -fn 10x20 -geometry 800x240 -e bash --rcfile /root/.bashrc -c 'cd /root ; python /root/welcome.fig.py' export XAUTHORITY= kill $(pgrep welcomes) fi sleep 2 done """ fig #now text0 fprint df #now df close now "chmod +x " plus df shell nl 10 chr icofx "ownIcon=true" plus nl plus "type=mainmenu" now fixpings 1 isoname "type=mainmenu" icofx "/mnt/mcorepup/coreplusfs/squashfs-root/home/anon/.config/lxqt/panel.conf" now fixpings 1 isoname "position=Bottom" "position=Top" "/mnt/mcorepup/coreplusfs/squashfs-root/home/anon/.config/lxqt/panel.conf" df "/mnt/mcorepup/coreplusfs/squashfs-root/root/.config/pcmanfm/default/pcmanfm.conf" #now df open "w" text0 "" python text0 = """[config] bm_open_method=0 [volume] mount_on_startup=0 mount_removable=0 autorun=1 [ui] always_show_tabs=0 max_tab_chars=32 win_width=640 win_height=480 splitter_pos=150 media_in_new_tab=0 desktop_folder_new_win=0 change_tab_on_drop=1 close_on_unmount=1 focus_previous=0 side_pane_mode=places view_mode=icon show_hidden=0 sort=name;ascending; toolbar=newtab;navigation;home; show_statusbar=1 pathbar_mode_buttons=0 """ fig #now text0 fprint df #now df close ###df "/mnt/mcorepup/unsq/squashfs-root/root/.config/libfm/libfm.conf" #now df open "w" #now text2 fprint df #now df close #now "/mnt/mcorepup/unsq/squashfs-root/bin/baseping" open "w" text "exit 0" #now text fprint "/mnt/mcorepup/unsq/squashfs-root/bin/baseping" #now "/mnt/mcorepup/unsq/squashfs-root/bin/baseping" close #now "chmod +x /mnt/mcorepup/unsq/squashfs-root/bin/baseping" shell #now "/mnt/mcorepup/unsq/squashfs-root/bin/baseping6" open "w" #text "exit 0" #now text fprint "/mnt/mcorepup/unsq/squashfs-root/bin/baseping6" #now "/mnt/mcorepup/unsq/squashfs-root/bin/baseping6" close #now "chmod +x /mnt/mcorepup/unsq/squashfs-root/bin/baseping6" shell now "mkdir /mnt/mcorepup/coreplusfs/squashfs-root/etc/rc.d" shell #now "cp /mnt/mcorepup/unsq/squashfs-root/etc/rc.d/PUPSTATE /mnt/mcorepup/coreplusfs/squashfs-root/etc/rc.d/" shell now "mkdir /mnt/mcorepup/coreplusfs/squashfs-root/etc/xdg/menus/" shell now "echo -n >> /mnt/mcorepup/coreplusfs/squashfs-root/etc/xdg/menus/hierarchy" shell now "sed -i 's/# FocusRequestFlashTime=0/FocusRequestFlashTime=1/g' /mnt/mcorepup/coreplusfs/squashfs-root/usr/share/icewm/preferences" shell now "sed -i 's/# TaskBarAtTop=0/TaskBarAtTop=1/g' /mnt/mcorepup/coreplusfs/squashfs-root/usr/share/icewm/preferences" shell now "sed -i 's/# TaskBarShowClock=1/TaskBarShowClock=0/g' /mnt/mcorepup/coreplusfs/squashfs-root/usr/share/icewm/preferences" shell now "sed -i 's/# TaskBarShowAPMStatus=0/TaskBarShowAPMStatus=1/g' /mnt/mcorepup/coreplusfs/squashfs-root/usr/share/icewm/preferences" shell ifequal 1 0 #now "echo '#!/bin/sh -e' > /mnt/mcorepup/coreplusfs/squashfs-root/etc/rc.local" shell now "echo 'chmod +x /etc/menu-methods/icewm-common ; /usr/bin/update-menus --menumethod=/etc/menu-methods/icewm-common' >> /mnt/mcorepup/coreplusfs/squashfs-root/etc/rc.local" shell now "echo 'rm /var/lib/dbus/machine-id' >> /mnt/mcorepup/coreplusfs/squashfs-root/etc/rc.local" shell now "echo '/root/desktops &' >> /mnt/mcorepup/coreplusfs/squashfs-root/etc/rc.local" shell now "echo '/root/welcomes &' >> /mnt/mcorepup/coreplusfs/squashfs-root/etc/rc.local" shell ### now "echo 'dpkg -i /var/cache/apt/archives/libglib2.0-0_2.42.1-1+b1_i386.deb' >> /mnt/mcorepup/coreplusfs/squashfs-root/etc/rc.local" shell now "echo 'exit 0' >> /mnt/mcorepup/coreplusfs/squashfs-root/etc/rc.local" shell fig #now "mkdir /mnt/mcorepup/coreplusfs/squashfs-root/home/user/.icewm" shell #now "echo 'sudo pcmanfm --desktop &' > /mnt/mcorepup/coreplusfs/squashfs-root/home/user/.icewm/startup" shell #now fixpings 0 isoname "# invoke global X" "/usr/bin/pcmanfm --desktop & # # invoke global X" "/mnt/mcorepup/coreplusfs/squashfs-root/home/user/.icewm/startup" now "mkdir /mnt/mcorepup/coreplusfs/squashfs-root/Desktop" shell function ldesk df n cmt ex ico term now df open "w" now "[Desktop Entry]" fprint df # now "Keywords=editor" fprint df now "Name=" plus n fprint df now "Comment=" plus cmt fprint df now "Exec=" plus ex fprint df now "Icon=" plus ico fprint df now "Terminal=" plus term fprint df now "Type=Application" fprint df now df close fig ifequal 1 0 now ldesk "/mnt/mcorepup/coreplusfs/squashfs-root/Desktop/conn.desktop" "Connect" "network setup" "/usr/bin/wicd-gtk" "/usr/share/pixmaps/connect48.png" "false" now ldesk "/mnt/mcorepup/coreplusfs/squashfs-root/Desktop/term.desktop" "Console" "term window" "/usr/bin/xterm -fn 10x20 -e /bin/bash --rcfile /root/.bashrc" "/usr/share/pixmaps/console48.png" "false" #now ldesk "/mnt/mcorepup/coreplusfs/squashfs-root/Desktop/draw.desktop" "Draw" "vector editor" "/usr/local/bin/defaultdraw" "/usr/share/pixmaps/paint48.png" "false" now ldesk "/mnt/mcorepup/coreplusfs/squashfs-root/Desktop/help.desktop" "Help" "help files" "/usr/sbin/figoshelp" "/usr/share/pixmaps/help48.png" "false" #now ldesk "/mnt/mcorepup/coreplusfs/squashfs-root/Desktop/inst.desktop" "Install" "installer" "/usr/sbin/dotpup" "/usr/share/pixmaps/pet48.png" "false" now ldesk "/mnt/mcorepup/coreplusfs/squashfs-root/Desktop/edit.desktop" "Leafpad" "text editor" "/usr/bin/leafpad" "/usr/share/pixmaps/edit48.png" "false" #now ldesk "/mnt/mcorepup/coreplusfs/squashfs-root/Desktop/dmnt.desktop" "Mount" "connect drives" "/usr/sbin/pmount" "/usr/share/pixmaps/drive48.png" "false" #now ldesk "/mnt/mcorepup/coreplusfs/squashfs-root/Desktop/osmo.desktop" "Plan" "calendar" "/usr/local/bin/defaultcalendar" "/usr/share/pixmaps/date48.png" "false" #now ldesk "/mnt/mcorepup/coreplusfs/squashfs-root/Desktop/setp.desktop" "Setup" "setup wizard" "/usr/sbin/wizardwizard" "/usr/share/pixmaps/configuration48.png" "false" fig change = changeforwhom addchanges "figosdev" iftrue change # if you have source for mcorepup in /mnt/mcorepup it will copy it into iso writefilename = split proginf "," ; mid 1 1 ; split writefilename " " ; mid 1 2 ; join writefilename "" ; split writefilename "." ; join writefilename "" now = "cp /mnt/mcorepup/" plus writefilename plus ".fig /mnt/mcorepup/newiso 2> /dev/null" ; shell fig #now "rm -rf /mnt/mcorepup/coreplusfs/squashfs-root/etc/systemd/ /mnt/mcorepup/coreplusfs/squashfs-root/lib/systemd/system/*.service /mnt/mcorepup/coreplusfs/squashfs-root/etc/os-release /mnt/mcorepup/coreplusfs/squashfs-root/usr/lib/os-release" shell ifequal 0 1 ##now "/mnt/mcorepup/unsq/squashfs-root" chdir iftrue fastcomp now "mksquashfs . /mnt/mcorepup/newfs/new.sfs -noappend ; ###cp /mnt/mcorepup/newfs/new.sfs /mnt/mcorepup/newiso/puppy_librepup_6.0.2.2.sfs" shell else now "mksquashfs . /mnt/mcorepup/newfs/new.sfs -noappend -comp xz -b 512K ; cp /mnt/mcorepup/newfs/new.sfs /mnt/mcorepup/newiso/puppy_librepup_6.0.2.2.sfs" shell fig now "echo 'mkdir /mnt/hda1' >> /mnt/mcorepup/coreplusfs/squashfs-root/etc/rc.local" shell now "echo 'mkdir /mnt/hda2' >> /mnt/mcorepup/coreplusfs/squashfs-root/etc/rc.local" shell now "echo 'mkdir /mnt/hdb1' >> /mnt/mcorepup/coreplusfs/squashfs-root/etc/rc.local" shell now "echo 'mkdir /mnt/hdb2' >> /mnt/mcorepup/coreplusfs/squashfs-root/etc/rc.local" shell now "echo 'mount -r /dev/sda1 /mnt/hda1' >> /mnt/mcorepup/coreplusfs/squashfs-root/etc/rc.local" shell now "echo 'mount -r /dev/sda2 /mnt/hda2' >> /mnt/mcorepup/coreplusfs/squashfs-root/etc/rc.local" shell now "echo 'mount -r /dev/sdb1 /mnt/hdb1' >> /mnt/mcorepup/coreplusfs/squashfs-root/etc/rc.local" shell now "echo 'mount -r /dev/sdb2 /mnt/hdb2' >> /mnt/mcorepup/coreplusfs/squashfs-root/etc/rc.local" shell now "echo 'rm /usr/share/icewm/themes/default/default.png' >> /mnt/mcorepup/coreplusfs/squashfs-root/root/wminstall" shell now "echo 'rm /usr/share/icewm/taskbar/*pm' >> /mnt/mcorepup/coreplusfs/squashfs-root/root/wminstall" shell now "echo 'cp /usr/share/icewm.xpm /usr/share/icewm/taskbar' >> /mnt/mcorepup/coreplusfs/squashfs-root/root/wminstall" shell now "echo 'cp /usr/bin/icewm-session /usr/bin/lxqt-session' >> /mnt/mcorepup/coreplusfs/squashfs-root/root/wminstall" shell now "echo 'cp /usr/share/icewm/preferences /usr/share/icewm/pref' >> /mnt/mcorepup/coreplusfs/squashfs-root/root/wminstall" shell now "echo 'cp /usr/bin/qter* /usr/bin/xterm' >> /mnt/mcorepup/coreplusfs/squashfs-root/root/wminstall" shell now "echo 'echo DesktopBackgroundColor=000000 >> /usr/share/icewm/themes/default/default.theme' >> /mnt/mcorepup/coreplusfs/squashfs-root/root/wminstall" shell quot 34 chr quoted = "echo 'cat /usr/share/icewm/pref | alex23.py --replace " plus quot plus "# TaskBarShowClock=1" plus quot plus " " quoted2 = quoted plus quot plus "TaskBarShowClock=0" plus quot plus " | alex23.py --replace " plus quot plus "# TaskBarAtTop=0" plus quot plus " " quoted3 = quoted2 plus quot plus "TaskBarAtTop=1" plus quot plus " | alex23.py --replace " plus quot plus "# TaskBarShowWindowListMenu=1" plus quot quoted = quoted3 plus " " plus quot plus "TaskBarShowWindowListMenu=0" plus quot plus " > /usr/share/icewm/preferences ; fi' >> /mnt/mcorepup/coreplusfs/squashfs-root/root/wminstall" now quoted shell now "echo '/root/desktops &' >> /mnt/mcorepup/coreplusfs/squashfs-root/etc/rc.local" shell now "echo '/root/welcomes &' >> /mnt/mcorepup/coreplusfs/squashfs-root/etc/rc.local" shell now "echo 'p=$(cat /mnt/hda1/etc/.figos-local 2> /dev/null) ; if [ " plus quot plus "$p" plus quot plus " -eq " plus quot plus "1" plus quot plus " ] ; then umount /mnt/hda2 /mnt/hdb1 /mnt/hdb2 2> /dev/null ; /mnt/hda1/etc/rc.local ; else umount /mnt/hda1 2> /dev/null ; fi' >> /mnt/mcorepup/coreplusfs/squashfs-root/etc/rc.local" shell now "echo 'p=$(cat /mnt/hda2/etc/.figos-local 2> /dev/null) ; if [ " plus quot plus "$p" plus quot plus " -eq " plus quot plus "1" plus quot plus " ] ; then umount /mnt/hdb1 /mnt/hdb2 2> /dev/null ; /mnt/hda2/etc/rc.local ; else umount /mnt/hda2 2> /dev/null ; fi' >> /mnt/mcorepup/coreplusfs/squashfs-root/etc/rc.local" shell now "echo 'p=$(cat /mnt/hdb1/etc/.figos-local 2> /dev/null) ; if [ " plus quot plus "$p" plus quot plus " -eq " plus quot plus "1" plus quot plus " ] ; then umount /mnt/hdb2 2> /dev/null ; /mnt/hdb1/etc/rc.local ; else umount /mnt/hdb1 2> /dev/null ; fi' >> /mnt/mcorepup/coreplusfs/squashfs-root/etc/rc.local" shell now "echo 'p=$(cat /mnt/hdb2/etc/.figos-local 2> /dev/null) ; if [ " plus quot plus "$p" plus quot plus " -eq " plus quot plus "1" plus quot plus " ] ; then /mnt/hdb2/etc/rc.local ; else umount /mnt/hdb2 2> /dev/null ; fi' >> /mnt/mcorepup/coreplusfs/squashfs-root/etc/rc.local" shell #now "/mnt/mcorepup/coreplusfs/squashfs-root" chdir now "/mnt/mcorepup/coreplusfs" chdir iftrue fastcomp now "mksquashfs . /mnt/mcorepup/newiso/LiveOS/squashfs.img -noappend" shell else now "mksquashfs . /mnt/mcorepup/newiso/LiveOS/squashfs.img -noappend -comp xz -b 512K" shell fig fig now "/mnt/mcorepup/newiso" chdir # now "cp /mnt/mcorepup/logo.16 boot/isolinux/splash.png" shell # now "cp /mnt/mcorepup/coreplus/LiveOS/squashfs.img LiveOS" shell # now "genisoimage -b boot/isolinux/isolinux.bin -c boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table -r -J -l -V VOID_LIVE -o /mnt/mcorepup/" plus isoname plus ".iso /mnt/mcorepup/newiso/" shell # now "xorriso -as mkisofs -r -J -joliet-long -l -cache-inodes -isohybrid-mbr boot/isolinux/isolinux.bin -partition_offset 16 -volid VOID_LIVE -A 'Fig OS' -b boot/isolinux/isolinux.bin -c boot/isolinux/boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table -o /mnt/mcorepup/" plus isoname plus ".iso /mnt/mcorepup/newiso/" shell now "mkisofs -b boot/isolinux/isolinux.bin -c boot/isolinux/boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table -joliet-long -R -l -V Corepup-7 -o /mnt/mcorepup/" plus isoname plus ".iso /mnt/mcorepup/newiso/" print now "mkisofs -b boot/isolinux/isolinux.bin -c boot/isolinux/boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table -joliet-long -R -l -V Corepup-7 -o /mnt/mcorepup/" plus isoname plus ".iso /mnt/mcorepup/newiso/" shell now "isohybrid /mnt/mcorepup/" plus isoname plus ".iso" shell ``` license: 0-clause bsd ``` # 2018 mn # # Permission to use, copy, modify, and/or distribute this software for any # purpose with or without fee is hereby granted. # # THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES # WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF # MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR # ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES # WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN # ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF # OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. ``` => https://freesoftwareresistance.neocities.org