free software resistance
the cost of computing freedom is eternal vigilance
### mkdlibre01.fig
*original date:* oct 2018
*originally posted:* oct 2024
mkdlibre01.fig:
```
#### license: creative commons cc0 1.0 (public domain)
#### http://creativecommons.org/publicdomain/zero/1.0/
proginf = "mkdlibre 0.1, oct 2018 mn" ; print
isov = split proginf "," mid 1 1 ; split isov " " mid 2 1
# ===========================================================
# you will need python 2, and fig 2.x or 4.x to run mkfreemos.
# 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
sourcedistro = "trisquel8 debianliveinst95 voidlxqtlive201710"
# mcorepup-0.3 means "create tcz packages for current version of this remaster tool, and for previous versions, back to 0.3"
# the default is currently not to create mcorepup packages.
# to avoid ambiguity: "tcz packages" are packages for tinycore or corepup.
# "mcorepup packages" are packages containing the mcorepup tool.
# non-standard extras
profiles = "wanderer wanderer-minimal wanderer-core figosdev figosdev-more libre mcorepup-3"
# standard corepup 6: (unused since mcorepup 0.1, please report results if you try it)
profiles = "wanderer"
# standard corepup 7:
profiles = "wanderer wanderer-minimal"
# standard corepup 8:
profiles = "wanderer wanderer-minimal wanderer-core"
srcdist = split sourcedistro " " right 1 mid 1 1
# the default profiles line is closer to the standard:
# this is the one that counts when you run mcorepup
profiles = "freemos"
# 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 1
ifequal srcdist "trisquel8"
primaryurl = "http://mirror.fsf.org/trisquel-images/trisquel_8.0_i686.iso"
# sha256 ff7fd63be01093f5da234534db107b22f84a00e7ac63732cbb73340e17e2c3da
fig
ifequal srcdist "debianliveinst95"
primaryurl = "https://cdimage.debian.org/debian-cd/current-live/i386/iso-hybrid/debian-live-9.5.0-i386-xfce.iso"
# sha256 8eb8df468ae58d0d5abb31cf2ffa1efbdcfb3d36d7d152b146f7ca4989c7c00c
fig
ifequal srcdist "voidlxqtlive201710"
primaryurl = "https://archive.org/download/VoidLinux/void-live-i686-20171007-lxqt.iso"
# sha256 bfce0a7f4c82b6fb6a89d3ba1d96df6ca3041bef38612059e7da46fed37ed189
fig
# to add functionality for a contributor, use this conditional around their code:
# change = changeforwhom profiles "contributorname"
# iftrue change
# # put code for that contributor here
# # it will only run if mcorepup is run with their name included in profiles
# fig
cksrc srcdist rtrim
ifequal cksrc ""
now = "no source distro selected by sourcedistro variable, exiting" print
fig
isoname "dlibre" plus isov
function changeforwhom (profiles whom)
now = profiles ; lcase ; split now " " ; instr now whom ; return now
fig
function changeforoption (profiles whom)
p = profiles ; lcase ; split p " "
find = whom plus "-" ; lcase
forin t p
now = instr t whom
ifequal now 1
profilelen = find ; len
r = t ; len ; minus profilelen
opt = t ; right r ; return opt
fig
next
now return ""
fig
function tczpreps (pkg addpath)
now = "mkdir -p /mnt/dlibre/tcz" ; shell
now = "mkdir -p /mnt/dlibre/tcz/" plus pkg plus addpath ; shell
fig
function (tczbuild pkg)
now = "mksquashfs /mnt/dlibre/tcz/" plus pkg plus " " plus "/mnt/dlibre/newiso/cde/optional/" plus pkg plus ".tcz -noappend" ; shell
now = "md5sum /mnt/dlibre/newiso/cde/optional/" plus pkg plus ".tcz > /mnt/dlibre/newiso/cde/optional/" plus pkg plus ".tcz.md5.txt" ; shell
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 copytcz (major pkg topath)
base = "cp '/mnt/dlibre/"
pkgurl = base plus pkg plus ".tcz' " plus topath ; shell
txturl = base plus pkg plus ".tcz.md5.txt' " plus topath ; shell
depurl = base plus pkg plus ".tcz.dep' " plus topath ; shell
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 copypackages (pkgtype major pkgs topath)
addpkg = split pkgs " "
forin packages addpkg
now = copytcz major packages topath
next
fig
function rmpackages (pkgtype major pkgs)
rmpkg = split pkgs " "
forin packages rmpkg
now = rmtcz major packages
next
fig
pwd "pwd" arrshell join pwd ""
# setup and some old stuff from mkfigos that wont go in the build by default
urfprimaryurl = urf primaryurl
now download primaryurl
fpath pwd plus "/" plus urfprimaryurl
now "mkdir /mnt/dlibre" shell
now "mkdir /mnt/dlibre/newiso" shell
#now "mkdir /mnt/dlibre/fs" shell
now "mkdir /mnt/dlibre/mountprimary" shell
now "mkdir /mnt/dlibre/primaryfs" shell
nowplus "cd /mnt/dlibre ; if [ -e fig46.py ] ; 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/figu29.py' ; wget 'https://notabug.org/figosdev/figos/raw/master/figuchsh.odt' ; wget 'https://notabug.org/figosdev/figos/raw/master/figuchsh.pdf' ; 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 urfprimaryurl plus q plus " /mnt/dlibre/mountprimary -o loop" shell
ifequal srcdist "trisquel8"
now "mkdir /mnt/dlibre/newiso/dists" shell
now "mkdir /mnt/dlibre/newiso/.disk" shell
now "mkdir /mnt/dlibre/newiso/preseed" shell
now "mkdir /mnt/dlibre/newiso/casper" shell
now "mkdir /mnt/dlibre/newiso/isolinux" shell
now "cp -r /mnt/dlibre/mountprimary/dists/* /mnt/dlibre/newiso/dists/" shell
now "cp -r /mnt/dlibre/mountprimary/.disk/* /mnt/dlibre/newiso/.disk/" shell
now "cp -r /mnt/dlibre/mountprimary/preseed/* /mnt/dlibre/newiso/preseed/" shell
now "cp -r /mnt/dlibre/mountprimary/casper/initrd* /mnt/dlibre/mountprimary/casper/vmlinuz* /mnt/dlibre/newiso/casper/" shell
now "cp /mnt/dlibre/mountprimary/isolinux/* /mnt/dlibre/newiso/isolinux" shell
fig
ifequal srcdist "debianliveinst95"
now "mkdir /mnt/dlibre/newiso/dists" shell
now "mkdir /mnt/dlibre/newiso/.disk" shell
now "mkdir /mnt/dlibre/newiso/preseed" shell
now "mkdir /mnt/dlibre/newiso/live" shell
now "mkdir /mnt/dlibre/newiso/isolinux" shell
now "cp -r /mnt/dlibre/mountprimary/dists/* /mnt/dlibre/newiso/dists/" shell
now "cp -r /mnt/dlibre/mountprimary/.disk/* /mnt/dlibre/newiso/.disk/" shell
now "cp -r /mnt/dlibre/mountprimary/preseed/* /mnt/dlibre/newiso/preseed/" shell
now "cp -r /mnt/dlibre/mountprimary/live/initrd* /mnt/dlibre/mountprimary/live/vmlinuz* /mnt/dlibre/newiso/live/" shell
now "cp /mnt/dlibre/mountprimary/isolinux/* /mnt/dlibre/newiso/isolinux" shell
fig
ifequal srcdist "voidlxqtlive201710"
now "mkdir /mnt/dlibre/newiso/boot" shell
now "mkdir /mnt/dlibre/newiso/boot/isolinux" shell
now "cp -r /mnt/dlibre/mountprimary/boot/* /mnt/dlibre/newiso/boot/" shell
now "mkdir /mnt/dlibre/newiso/LiveOS" shell
now "mkdir /mnt/dlibre/newiso/boot" shell
now "mkdir /mnt/dlibre/newiso/boot/isolinux" shell
now "cp /mnt/dlibre/mountprimary/boot/vmlinuz /mnt/dlibre/newiso/boot/" shell
now "cp /mnt/dlibre/mountprimary/boot/initrd /mnt/dlibre/newiso/boot/" shell
fig
change = changeforwhom profiles "wanderer-core"
iftrue change
now "rm /mnt/dlibre/newiso/isolinux/f1 /mnt/dlibre/newiso/isolinux/menu.c32" ; shell
rep = "[ " ; prints ; "removed f1 and menu.c32 for core (corepup-8 standard)" colortext 10 prints colortext 7 " ]" print
fig
#now = "mkdir -p /mnt/dlibre/newiso/cde/optional 2> /dev/null" ; shell
#now = "/mnt/dlibre/newiso/cde/optional" ; chdir
change = changeforwhom profiles "wanderer"
iftrue change
now = "/mnt/dlibre" ; chdir
now = addpackages "tcz" "9.x" "glib1 gtk1 leafpad emelfm dillo"
now = copypackages "tcz" "9.x" "glib1 gtk1 leafpad emelfm dillo" "/mnt/dlibre/newiso/cde/optional"
now = "/mnt/dlibre/newiso/cde/optional" ; chdir
# sha256 47e738d43a97397f731c741d55755be57119a114475031f627877e5646fb36cf
now = "wget -O- https://ptpb.pw/0fdv > /mnt/dlibre/newiso/cde/optional/corepup.tcz" ; shell
rep = "[ " ; prints ; "added glib1 gtk1 leafpad emelfm dillo" colortext 10 prints colortext 7 " ]" print
fig
change = changeforwhom profiles "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
rep = "[ " ; prints ; "changed to convert corepup to corepup minimal (corepup-7 standard)" colortext 10 prints colortext 7 " ]" print
fig
change = changeforwhom profiles "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
rep = "[ " ; prints ; "added copy2fs edits for corepup standard (all versions so far)" colortext 10 prints colortext 7 " ]" print
fig
change = changeforwhom profiles "wanderer-core"
iftrue change
now "cd .. ; rm xbase.lst copy2fs.lst onboot.lst" ; shell
now "rm libX11.tcz.md5.txt imlib2.tcz.md5.txt fltk-1.3.tcz.md5.txt libICE.tcz.md5.txt libSM.tcz.md5.txt" ; shell
now "rm Xvesa.tcz.md5.txt libxcb.tcz.md5.txt libfontenc.tcz.md5.txt freetype.tcz.md5.txt libpng.tcz.md5.txt" ; shell
now "rm libXi.tcz.md5.txt libXpm.tcz.md5.txt aterm.tcz.md5.txt imlib2-bin.tcz.md5.txt libjpeg-turbo.tcz.md5.txt" ; shell
now "rm libXdmcp.tcz.md5.txt wbar.tcz.md5.txt libXrandr.tcz.md5.txt libXrender.tcz.md5.txt Xlibs.tcz.md5.txt" ; shell
now "rm Xprogs.tcz.md5.txt libXt.tcz.md5.txt libXfont.tcz.md5.txt libXext.tcz.md5.txt libXau.tcz.md5.txt" ; shell
now "rm libXmu.tcz.md5.txt libX11.tcz imlib2.tcz fltk-1.3.tcz libICE.tcz" ; shell
now "rm libSM.tcz Xvesa.tcz libxcb.tcz libfontenc.tcz freetype.tcz" ; shell
now "rm libpng.tcz libXi.tcz libXpm.tcz aterm.tcz imlib2-bin.tcz" ; shell
now "rm libjpeg-turbo.tcz libXdmcp.tcz corepup.tcz wbar.tcz libXrandr.tcz" ; shell
now "rm libXrender.tcz Xlibs.tcz Xprogs.tcz libXt.tcz libXfont.tcz" ; shell
now "rm libXext.tcz libXau.tcz libXmu.tcz" ; shell
rep = "[ " ; prints ; "removed over 40 packages, for core standard (corepup-8 standard)" colortext 10 prints colortext 7 " ]" print
fig
change = changeforwhom profiles "wanderer-core"
iftrue change
nl 10 chr
filetext = arrcurl "http://murga-linux.com/puppy/viewtopic.php?mode=attach&id=117709"
openname = "/mnt/dlibre/newiso/isolinux/f2" ; open "w"
now = join filetext nl ; fprint openname
now = openname ; close
filetext = arrcurl "http://murga-linux.com/puppy/viewtopic.php?mode=attach&id=117710"
openname = "/mnt/dlibre/newiso/isolinux/f3" ; open "w"
now = join filetext nl ; fprint openname
now = openname ; close
filetext = arrcurl "http://murga-linux.com/puppy/viewtopic.php?mode=attach&id=117711"
openname = "/mnt/dlibre/newiso/isolinux/f4" ; open "w"
now = join filetext nl ; fprint openname
now = openname ; close
filetext = arrcurl "http://murga-linux.com/puppy/viewtopic.php?mode=attach&id=117712"
openname = "/mnt/dlibre/newiso/isolinux/boot.msg" ; open "w"
now = join filetext nl ; fprint openname
now = openname ; close
rep = "[ " ; prints ; "boot edits made for corepup-8 standard" colortext 10 prints colortext 7 " ]" print
fig
change = changeforwhom profiles "figosdev"
iftrue change
now = "/mnt/dlibre" ; chdir
now = addpackages "tcz" "9.x" "syslinux"
# add python 2
now = addpackages "tcz" "9.x" "python libffi ncurses readline gdbm openssl bzip2-lib sqlite3"
# add curl
now = addpackages "tcz" "9.x" "libgpg-error libgcrypt libssh2 libidn curl"
now = copypackages "tcz" "9.x" "syslinux" "/mnt/dlibre/newiso/cde/optional"
# add python 2
now = copypackages "tcz" "9.x" "python libffi ncurses readline gdbm openssl bzip2-lib sqlite3" "/mnt/dlibre/newiso/cde/optional"
# add curl
now = copypackages "tcz" "9.x" "libgpg-error libgcrypt libssh2 libidn curl" "/mnt/dlibre/newiso/cde/optional"
now = "/mnt/dlibre/newiso/cde/optional" ; chdir
# add qemu-x86 (requires curl)
# now = addpackages "tcz" "9.x" "qemu-x86 libcap-ng gamin glib2 qemu-common pixman udev-lib libusb libasound libmad SDL"
rep = "[ " ; prints ; "added python and syslinux per figosdev" colortext 10 prints colortext 7 " ]" print
fig
now = "/mnt/dlibre" ; chdir
change = changeforwhom profiles "figosdev-more"
iftrue change
now "mkdir /mnt/dlibre/newiso/LiveOS" shell
rep = "[ " ; prints ; "creating directory that goes with some other distro" colortext 10 prints colortext 7 " ]" print
fig
now "cp /mnt/dlibre/mountprimary/casper/vmlinuz /mnt/dlibre/newiso/casper/" shell
now "cp /mnt/dlibre/mountprimary/casper/initrd /mnt/dlibre/newiso/casper/" shell
# now "cp /mnt/dlibre/mountprimary/live/filesystem.squashfs /mnt/dlibre/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
ifequal srcdist "voidlxqtlive201710"
now fixpings 0 isoname "VSHIFT 2" "VSHIFT 14" "/mnt/dlibre/newiso/boot/isolinux/isolinux.cfg"
now fixpings 0 isoname "Italiano" "it_IT locale" "/mnt/dlibre/newiso/boot/isolinux/isolinux.cfg"
now fixpings 1 isoname "Void Linux" "Fig OS" "/mnt/dlibre/newiso/boot/isolinux/isolinux.cfg"
now "/mnt/dlibre/primaryfs" chdir
now "unsquashfs -p 1 /mnt/dlibre/mountprimary/LiveOS/squashfs.img" shell
now "mkdir /mnt/dlibre/vfs/" shell
now "mkdir /mnt/dlibre/vfs/squashfs-root/" shell
now "echo copying #; cp /mnt/dlibre/primaryfs/squashfs-root/LiveOS/ext3fs.img /mnt/dlibre/"
now "mount /mnt/dlibre/primaryfs/squashfs-root/LiveOS/ext3fs.img /mnt/dlibre/vfs/squashfs-root/" shell
now "echo '#!/bin/bash' > /mnt/dlibre/vfs/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/dlibre/vfs/squashfs-root/usr/sbin/figoshelp" shell
now "chmod +x /mnt/dlibre/vfs/squashfs-root/usr/sbin/figoshelp" shell
now "mkdir /mnt/dlibre/vfs/squashfs-root/usr/share/doc/puppy" shell
now "rm ../vfs/squashfs-root/usr/share/applications/gimp.desktop" shell
now "rm -rf ../vfs/squashfs-root/usr/bin/gimp*" shell
now "rm -rf ../vfs/squashfs-root/etc/gimp" shell
now "rm -rf ../vfs/squashfs-root/usr/lib/gimp" shell
now "rm -rf ../vfs/squashfs-root/usr/share/gimp" shell
now "rm -rf ../vfs/squashfs-root/usr/share/doc/gimp" shell
now "rm -rf ../vfs/squashfs-root/usr/share/doc/gimp-data" shell
now "rm -rf ../vfs/squashfs-root/usr/share/doc/libgimp2.0" shell
now "mkdir /mnt/dlibre/vfs/squashfs-root/usr/share/doc/figueira 2> /dev/null" shell
now "rm /mnt/dlibre/vfs/squashfs-root/usr/bin/fig29.py" shell
now "cp /mnt/dlibre/fig46.py /mnt/dlibre/vfs/squashfs-root/usr/bin" shell
now "cp /mnt/dlibre/figu29.py /mnt/dlibre/vfs/squashfs-root/usr/bin" shell
now "cp /mnt/dlibre/alex23.py /mnt/dlibre/vfs/squashfs-root/usr/bin" shell
now "chmod +x /mnt/dlibre/vfs/squashfs-root/usr/bin/fig46.py" shell
now "chmod +x /mnt/dlibre/vfs/squashfs-root/usr/bin/figu29.py" shell
now "mkdir /mnt/dlibre/primaryfs/squashfs-root/usr/" shell
now "mkdir /mnt/dlibre/primaryfs/squashfs-root/usr/bin" shell
now "mkdir /mnt/dlibre/primaryfs/squashfs-root/usr/share" shell
now "mkdir /mnt/dlibre/primaryfs/squashfs-root/usr/local" shell
now "mkdir /mnt/dlibre/primaryfs/squashfs-root/usr/local/bin" shell
now "rm /mnt/dlibre/vfs/squashfs-root/etc/os-release" shell
now "rm /mnt/dlibre/vfs/squashfs-root/usr/share/lxqt/themes/frost/lxqt*.png" shell
now "echo 'echo >/usr/share/lxqt/graphics/helix.svg' >> /mnt/dlibre/vfs/squashfs-root/etc/rc.local" shell
now "echo '/root/updatefirstrun 2> /dev/null' >> /mnt/dlibre/vfs/squashfs-root/etc/rc.local" shell
now "echo '/root/pythoninstall' >> /mnt/dlibre/vfs/squashfs-root/etc/rc.local" shell
now "echo '/root/wminstall' >> /mnt/dlibre/vfs/squashfs-root/etc/rc.local" shell
now "echo '/root/curlinstall' >> /mnt/dlibre/vfs/squashfs-root/etc/rc.local" shell
now "echo '/root/installother' >> /mnt/dlibre/vfs/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/dlibre/vfs/squashfs-root/root/pythoninstall ; chmod +x /mnt/dlibre/vfs/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 ; fi ' > /mnt/dlibre/vfs/squashfs-root/root/wminstall ; chmod +x /mnt/dlibre/vfs/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/dlibre/vfs/squashfs-root/root/curlinstall ; chmod +x /mnt/dlibre/vfs/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 fluxbox alsa-tools alsa-utils ; fi' > /mnt/dlibre/vfs/squashfs-root/root/installother ; chmod +x /mnt/dlibre/vfs/squashfs-root/root/installother" shell
quot 34 chr
now "echo 'cp /var/cache/?bps/*bps* /mnt/hda1/root/' >> /mnt/dlibre/vfs/squashfs-root/root/.bash_history" shell
now "echo 'smartctl --all /dev/sda | egrep " plus quot plus "vera|Load|Logge" plus quot plus "' >> /mnt/dlibre/vfs/squashfs-root/root/.bash_history" shell
now "echo 'xbps-install --repository /var/cache/xbps -yS binutils' >> /mnt/dlibre/vfs/squashfs-root/root/.bash_history" shell
now "echo 'xrandr --output LVDS --off' >> /mnt/dlibre/vfs/squashfs-root/root/.bash_history" shell
now "echo 'gdmap -f /mnt/hda1 &' >> /mnt/dlibre/vfs/squashfs-root/root/.bash_history" shell
now "/bin/echo -e '#!/bin/bash\nxbps-rindex -a /var/cache/xbps/*.xbps ; xbps-install --repository /var/cache/xbps -yS fluxbox ; rm /root/updatefirstrun' > /mnt/dlibre/vfs/squashfs-root/root/updatefirstrun ; chmod +x /mnt/dlibre/vfs/squashfs-root/root/updatefirstrun" shell
fig
#now "cat /mnt/dlibre/iso/isolinux.cfg | head -9 | sed 's/default puppy/default live/g' > /mnt/dlibre/newiso/isolinux.cfg" shell
#now "cat /mnt/dlibre/v/isolinux/live.cfg > /mnt/dlibre/newiso/isolinux.cfg" shell
now "mkdir /mnt/dlibre/primaryfs/" shell
now "/mnt/dlibre/primaryfs" chdir
ifequal srcdist "trisquel8"
now "unsquashfs -p 1 /mnt/dlibre/mountprimary/casper/filesystem.squashfs" shell
#### if you dont use -p 1 its a little too unstable sometimes
fig
ifequal srcdist "debianliveinst95"
now "unsquashfs -p 1 /mnt/dlibre/mountprimary/live/filesystem.squashfs" shell
fig
change = changeforwhom "trisquel8 debianliveinst95" srcdist
iftrue change
rep = "[ " ; prints ; "removing bloat in locales, icons, extra help files" colortext 10 prints colortext 7 " ]" print
now "rm -rf /mnt/dlibre/primaryfs/squashfs-root/usr/share/gimp" shell
now "rm -rf /mnt/dlibre/primaryfs/squashfs-root/usr/lib/gimp" shell
now "rm -rf /mnt/dlibre/primaryfs/squashfs-root/var/lib/dpkg/info/gimp*" shell
now "rm -rf /mnt/dlibre/primaryfs/squashfs-root/var/lib/dpkg/info/libgimp*" shell
now "rm -rf /mnt/dlibre/primaryfs/squashfs-root/usr/bin/gimp*" shell
now "rm -rf /mnt/dlibre/primaryfs/squashfs-root/etc/gimp" shell
now "rm -rf /mnt/dlibre/primaryfs/squashfs-root/var/lib/doc-base/documents/gimp*" shell
now "rm -rf /mnt/dlibre/primaryfs/squashfs-root/usr/lib/libgimp*" shell
now "rm -rf /mnt/dlibre/primaryfs/squashfs-root/usr/lib/libreoffice" shell
now "rm -rf /mnt/dlibre/primaryfs/squashfs-root/usr/share/libreoffice" shell
now "rm -rf /mnt/dlibre/primaryfs/squashfs-root/usr/lib/icedove*" shell
now "rm -rf /mnt/dlibre/primaryfs/squashfs-root/usr/share/backgrounds" shell
now "rm -rf /mnt/dlibre/primaryfs/squashfs-root/usr/share/mythes" shell
now "rm -rf /mnt/dlibre/primaryfs/squashfs-root/usr/share/hplip" shell
now "rm -rf /mnt/dlibre/primaryfs/squashfs-root/usr/share/gutenprint" shell
now "rm -rf /mnt/dlibre/primaryfs/squashfs-root/usr/lib/cups*" shell
now "rm -rf /mnt/dlibre/primaryfs/squashfs-root/usr/share/mate*" shell
now "rm -rf /mnt/dlibre/primaryfs/squashfs-root/usr/share/app-install" ; shell
now "rm -rf /mnt/dlibre/primaryfs/squashfs-root/usr/share/locale/de" ; shell
now "rm -rf /mnt/dlibre/primaryfs/squashfs-root/usr/share/locale/ru" ; shell
now "rm -rf /mnt/dlibre/primaryfs/squashfs-root/usr/share/locale/el" ; shell
now "rm -rf /mnt/dlibre/primaryfs/squashfs-root/usr/share/locale/pl" ; shell
now "rm -rf /mnt/dlibre/primaryfs/squashfs-root/usr/share/locale/nl" ; shell
now "rm -rf /mnt/dlibre/primaryfs/squashfs-root/usr/share/locale/ja" ; shell
now "rm -rf /mnt/dlibre/primaryfs/squashfs-root/usr/share/locale/mr" ; shell
now "rm -rf /mnt/dlibre/primaryfs/squashfs-root/usr/share/locale/da" ; shell
now "rm -rf /mnt/dlibre/primaryfs/squashfs-root/usr/share/locale/sr" ; shell
now "rm -rf /mnt/dlibre/primaryfs/squashfs-root/usr/share/locale/gl" ; shell
now "rm -rf /mnt/dlibre/primaryfs/squashfs-root/usr/share/locale/hu" ; shell
now "rm -rf /mnt/dlibre/primaryfs/squashfs-root/usr/share/locale/vi" ; shell
now "rm -rf /mnt/dlibre/primaryfs/squashfs-root/usr/share/locale/cs" ; shell
now "rm -rf /mnt/dlibre/primaryfs/squashfs-root/usr/share/locale/tr" ; shell
now "rm -rf /mnt/dlibre/primaryfs/squashfs-root/usr/share/locale/kn" ; shell
now "rm -rf /mnt/dlibre/primaryfs/squashfs-root/usr/share/locale/sv" ; shell
now "rm -rf /mnt/dlibre/primaryfs/squashfs-root/usr/share/locale/gu" ; shell
now "rm -rf /mnt/dlibre/primaryfs/squashfs-root/usr/share/locale/zh*" ; shell
now "rm -rf /mnt/dlibre/primaryfs/squashfs-root/usr/share/locale/ca" ; shell
now "rm -rf /mnt/dlibre/primaryfs/squashfs-root/usr/share/locale/pa" ; shell
now "rm -rf /mnt/dlibre/primaryfs/squashfs-root/usr/share/locale/sl" ; shell
now "rm -rf /mnt/dlibre/primaryfs/squashfs-root/usr/share/locale/sk" ; shell
now "rm -rf /mnt/dlibre/primaryfs/squashfs-root/usr/share/locale/ml" ; shell
now "rm -rf /mnt/dlibre/primaryfs/squashfs-root/usr/share/locale/ko" ; shell
now "rm -rf /mnt/dlibre/primaryfs/squashfs-root/usr/share/locale/bn" ; shell
now "rm -rf /mnt/dlibre/primaryfs/squashfs-root/usr/share/locale-langpack/de" ; shell
now "rm -rf /mnt/dlibre/primaryfs/squashfs-root/usr/share/locale-langpack/ru" ; shell
now "rm -rf /mnt/dlibre/primaryfs/squashfs-root/usr/share/locale-langpack/el" ; shell
now "rm -rf /mnt/dlibre/primaryfs/squashfs-root/usr/share/locale-langpack/pl" ; shell
now "rm -rf /mnt/dlibre/primaryfs/squashfs-root/usr/share/locale-langpack/nl" ; shell
now "rm -rf /mnt/dlibre/primaryfs/squashfs-root/usr/share/locale-langpack/ja" ; shell
now "rm -rf /mnt/dlibre/primaryfs/squashfs-root/usr/share/locale-langpack/mr" ; shell
now "rm -rf /mnt/dlibre/primaryfs/squashfs-root/usr/share/locale-langpack/da" ; shell
now "rm -rf /mnt/dlibre/primaryfs/squashfs-root/usr/share/locale-langpack/sr" ; shell
now "rm -rf /mnt/dlibre/primaryfs/squashfs-root/usr/share/locale-langpack/gl" ; shell
now "rm -rf /mnt/dlibre/primaryfs/squashfs-root/usr/share/locale-langpack/hu" ; shell
now "rm -rf /mnt/dlibre/primaryfs/squashfs-root/usr/share/locale-langpack/vi" ; shell
now "rm -rf /mnt/dlibre/primaryfs/squashfs-root/usr/share/locale-langpack/cs" ; shell
now "rm -rf /mnt/dlibre/primaryfs/squashfs-root/usr/share/locale-langpack/tr" ; shell
now "rm -rf /mnt/dlibre/primaryfs/squashfs-root/usr/share/locale-langpack/kn" ; shell
now "rm -rf /mnt/dlibre/primaryfs/squashfs-root/usr/share/locale-langpack/sv" ; shell
now "rm -rf /mnt/dlibre/primaryfs/squashfs-root/usr/share/locale-langpack/gu" ; shell
now "rm -rf /mnt/dlibre/primaryfs/squashfs-root/usr/share/locale-langpack/zh*" ; shell
now "rm -rf /mnt/dlibre/primaryfs/squashfs-root/usr/share/locale-langpack/ca" ; shell
now "rm -rf /mnt/dlibre/primaryfs/squashfs-root/usr/share/locale-langpack/pa" ; shell
now "rm -rf /mnt/dlibre/primaryfs/squashfs-root/usr/share/locale-langpack/sl" ; shell
now "rm -rf /mnt/dlibre/primaryfs/squashfs-root/usr/share/locale-langpack/sk" ; shell
now "rm -rf /mnt/dlibre/primaryfs/squashfs-root/usr/share/locale-langpack/ml" ; shell
now "rm -rf /mnt/dlibre/primaryfs/squashfs-root/usr/share/locale-langpack/ko" ; shell
now "rm -rf /mnt/dlibre/primaryfs/squashfs-root/usr/share/locale-langpack/bn" ; shell
now "rm -rf /mnt/dlibre/primaryfs/squashfs-root/usr/share/gnome/help-langpack" ; shell
now "rm -rf /mnt/dlibre/primaryfs/squashfs-root/usr/share/gnome/help/" ; shell
now "rm -rf /mnt/dlibre/primaryfs/squashfs-root/usr/share/help-langpack/" ; shell
now "rm -rf /mnt/dlibre/primaryfs/squashfs-root/usr/share/help" ; shell
now "rm -rf /mnt/dlibre/primaryfs/squashfs-root/usr/share/icons" ; shell
now "rm -rf /mnt/dlibre/primaryfs/squashfs-root/usr/share/doc/language-pack-gnome*" ; shell
fig
#### im not against this locale stuff. but its getting to take up such a huge percentage of
#### the dvd, there should definitely be a straightforward way to get just your language
######################################################################
#### the missing manual page:
#### 1. mkdlibres automation doesnt include installation.
#### you might want binutils for ar, you want syslinux for
#### isohybrid, you want either genisoimage or xorriso or mkisofs,
#### you want squashfs-utils and python 2 and fig (2.9 or 4.x.)
#### 2. youll need to run mkdlibre as root, from /mnt/dlibre
#### 3. to clean the primaryfs folder: rm -rf primaryfs
#### doing this is most likely necessary each time you change the
#### setting for sourcedistro. if primaryfs has files in it, the
#### live filesystem will not unsquash to the folder. for tinkering
#### this is alright, youll want to clean it at least once per use.
#### 4. when i make changes to mkdlibre i do this:
#### cd /mnt/dlibre ; umount mountprimary vfs/squashfs-root ;
#### rm -rf vfs/ mountprimary newiso/ ; rm mkdlibre01.fig.py ;
#### fig46.py mkdlibre01.fig ; ./mkdlibre01.fig.py #
#### (youll want to change 01 to the proper version number)
#### source distros are the bulk of what the output is produced from:
#### sourcedistro = "trisquel8"
#### mkdlibre01 removes systemd from trisquel 8.0 and any packages
#### that depend on it, reduces the 2.5g iso to =< 1.3, and replaces
#### mate with icewm.
#### when it boots, sudo bash to become root and startx
#### sourcedistro = "trisquel8 debianliveinst95"
#### mkdlibre01 removes systemd from debian live installer 9.5 and any
#### packages that depend on it, reduces the 1.9g iso to 1.6, and
#### adds mtpaint and leafpad.
#### when it boots, login as "root" with password "toor" and startx
#### sourcedistro = "trisquel8 debianliveinst95 voidlxqtlive201710"
#### mkdlibre01 incorporates fig os 3.0 and void is already free of
#### systemd. reduces the 1.9g iso to 1.6, and
#### adds mtpaint and leafpad.
#### when it boots, login as "root" with password "toor" and startx
######################################################################
change = changeforwhom "trisquel8 debianliveinst95" srcdist
iftrue change
dpath "/mnt/dlibre/primaryfs/squashfs-root/var/cache/apt" chdir
fig
ifequal srcdist "trisquel8"
now download "http://archive.trisquel.info/trisquel/pool/main/u/upstart/upstart-sysv_1.13.2-0ubuntu21.1_i386.deb"
fig
ifequal srcdist "debianliveinst95"
now download "http://deb.debian.org/debian/pool/main/liba/libart-lgpl/libart-2.0-2_2.3.21-2_i386.deb"
now download "http://deb.debian.org/debian/pool/main/a/audiofile/libaudiofile1_0.3.6-4_i386.deb"
now download "http://deb.debian.org/debian/pool/main/e/esound/esound-common_0.2.41-11_all.deb"
now download "http://deb.debian.org/debian/pool/main/e/esound/libesd0_0.2.41-11_i386.deb"
now download "http://deb.debian.org/debian/pool/main/libg/libglade2/libglade2-0_2.6.4-2_i386.deb"
now download "http://deb.debian.org/debian/pool/main/a/aptitude/aptitude-common_0.8.7-1_all.deb"
now download "http://deb.debian.org/debian/pool/main/c/cwidget/libcwidget3v5_0.5.17-4+b1_i386.deb"
now download "http://deb.debian.org/debian/pool/main/a/aptitude/aptitude_0.8.7-1_i386.deb"
now download "http://deb.debian.org/debian/pool/main/c/curl/libcurl3_7.52.1-5+deb9u6_i386.deb"
now download "http://deb.debian.org/debian/pool/main/c/curl/curl_7.52.1-5+deb9u6_i386.deb"
now download "http://deb.debian.org/debian/pool/main/g/gconf/gconf2_3.2.6-4+b1_i386.deb"
now download "http://deb.debian.org/debian/pool/main/g/gnome-mime-data/gnome-mime-data_2.18.0-1_all.deb"
now download "http://deb.debian.org/debian/pool/main/g/gtklp/gtklp_1.3.1-0.1+b1_i386.deb"
now download "http://deb.debian.org/debian/pool/main/i/icewm/icewm-common_1.3.8+mod+20161220-1_i386.deb"
now download "http://deb.debian.org/debian/pool/main/i/icewm/icewm_1.3.8+mod+20161220-1_i386.deb"
now download "http://deb.debian.org/debian/pool/main/l/leafpad/leafpad_0.8.18.1-5_i386.deb"
now download "http://deb.debian.org/debian/pool/main/libb/libbonobo/libbonobo2-common_2.32.1-3_all.deb"
now download "http://deb.debian.org/debian/pool/main/o/orbit2/liborbit-2-0_2.14.19-2+b1_i386.deb"
now download "http://deb.debian.org/debian/pool/main/libb/libbonobo/libbonobo2-0_2.32.1-3+b1_i386.deb"
now download "http://deb.debian.org/debian/pool/main/g/gnome-vfs/libgnomevfs2-common_2.24.4-6.1_all.deb"
now download "http://deb.debian.org/debian/pool/main/g/gnome-vfs/libgnomevfs2-0_2.24.4-6.1+b2_i386.deb"
now download "http://deb.debian.org/debian/pool/main/libg/libgnome/libgnome2-common_2.32.1-5_all.deb"
now download "http://deb.debian.org/debian/pool/main/libg/libgnome/libgnome-2-0_2.32.1-5+b1_i386.deb"
now download "http://deb.debian.org/debian/pool/main/libg/libgnomecanvas/libgnomecanvas2-common_2.30.3-3_all.deb"
now download "http://deb.debian.org/debian/pool/main/libg/libgnomecanvas/libgnomecanvas2-0_2.30.3-3_i386.deb"
now download "http://deb.debian.org/debian/pool/main/libb/libbonoboui/libbonoboui2-common_2.24.5-4_all.deb"
now download "http://deb.debian.org/debian/pool/main/libb/libbonoboui/libbonoboui2-0_2.24.5-4_i386.deb"
now download "http://deb.debian.org/debian/pool/main/libc/libcgi-pm-perl/libcgi-pm-perl_4.35-1_all.deb"
now download "http://deb.debian.org/debian/pool/main/libf/libfcgi-perl/libfcgi-perl_0.78-2_i386.deb"
now download "http://deb.debian.org/debian/pool/main/libc/libcgi-fast-perl/libcgi-fast-perl_2.12-1_all.deb"
now download "http://deb.debian.org/debian/pool/main/libs/libsub-name-perl/libsub-name-perl_0.21-1_i386.deb"
now download "http://deb.debian.org/debian/pool/main/libc/libclass-accessor-perl/libclass-accessor-perl_0.34-1_all.deb"
now download "http://deb.debian.org/debian/pool/main/libg/libgnomeui/libgnomeui-common_2.24.5-3.1_all.deb"
now download "http://deb.debian.org/debian/pool/main/libg/libgnomeui/libgnomeui-0_2.24.5-3.1_i386.deb"
now download "http://deb.debian.org/debian/pool/main/g/gnome-vfs/libgnomevfs2-extra_2.24.4-6.1+b2_i386.deb"
now download "http://deb.debian.org/debian/pool/main/libi/libio-string-perl/libio-string-perl_1.08-3_all.deb"
now download "http://deb.debian.org/debian/pool/main/libj/libjpeg-turbo/libturbojpeg0_1.5.1-2_i386.deb"
now download "http://deb.debian.org/debian/pool/main/libj/libjpeg-turbo/libjpeg-turbo-progs_1.5.1-2_i386.deb"
now download "http://deb.debian.org/debian/pool/main/libp/libparse-debianchangelog-perl/libparse-debianchangelog-perl_1.2.0-12_all.deb"
now download "http://deb.debian.org/debian/pool/main/m/menu/menu_2.1.47+b1_i386.deb"
now download "http://deb.debian.org/debian/pool/main/m/mtpaint/mtpaint_3.40-3_i386.deb"
now download "http://deb.debian.org/debian/pool/main/x/xscreensaver/xscreensaver-data_5.36-1_i386.deb"
now download "http://deb.debian.org/debian/pool/main/x/xscreensaver/xscreensaver_5.36-1_i386.deb"
fig
ifequal srcdist "debianliveinst95"
now download "http://http.us.debian.org/debian/pool/main/i/insserv/insserv_1.14.0-5.4+b1_i386.deb"
now download "http://http.us.debian.org/debian/pool/main/s/startpar/startpar_0.59-3.1_i386.deb"
now download "http://http.us.debian.org/debian/pool/main/s/sysvinit/sysv-rc_2.88dsf-59.9_all.deb"
now download "http://http.us.debian.org/debian/pool/main/s/sysvinit/initscripts_2.88dsf-59.9_i386.deb"
now download "http://http.us.debian.org/debian/pool/main/s/sysvinit/sysvinit-core_2.88dsf-59.9_i386.deb"
now download "http://http.us.debian.org/debian/pool/main/p/psmisc/psmisc_22.21-2.1+b2_i386.deb"
fig
# add icewm
change = changeforwhom "trisquel8 debianliveinst95" srcdist
iftrue change
dpath "/mnt/dlibre/primaryfs/squashfs-root/var/cache/apt/archives" chdir
fig
ifequal srcdist "trisquel8"
now download "http://archive.trisquel.info/trisquel/pool/main/liba/libart-lgpl/libart-2.0-2_2.3.21-2_i386.deb"
now download "http://archive.trisquel.info/trisquel/pool/main/libb/libbonobo/libbonobo2-common_2.32.1-3_all.deb"
now download "http://archive.trisquel.info/trisquel/pool/main/o/orbit2/liborbit-2-0_2.14.19-1build1_i386.deb"
now download "http://archive.trisquel.info/trisquel/pool/main/libb/libbonobo/libbonobo2-0_2.32.1-3_i386.deb"
now download "http://archive.trisquel.info/trisquel/pool/main/a/audiofile/libaudiofile1_0.3.6-2ubuntu0.16.04.1_i386.deb"
now download "http://archive.trisquel.info/trisquel/pool/main/e/esound/esound-common_0.2.41-11_all.deb"
now download "http://archive.trisquel.info/trisquel/pool/main/e/esound/libesd0_0.2.41-11_i386.deb"
now download "http://archive.trisquel.info/trisquel/pool/main/libg/libgnomecanvas/libgnomecanvas2-common_2.30.3-2_all.deb"
now download "http://archive.trisquel.info/trisquel/pool/main/libg/libgnomecanvas/libgnomecanvas2-0_2.30.3-2_i386.deb"
now download "http://archive.trisquel.info/trisquel/pool/main/i/icewm/icewm-common_1.3.8+githubmod+20150914+fa3fdef-2_i386.deb"
now download "http://archive.trisquel.info/trisquel/pool/main/i/icewm/icewm_1.3.8+githubmod+20150914+fa3fdef-2_i386.deb"
now download "http://archive.trisquel.info/trisquel/pool/main/libg/libgnome/libgnome2-common_2.32.1-5ubuntu1_all.deb"
now download "http://archive.trisquel.info/trisquel/pool/main/libg/libgnome/libgnome-2-0_2.32.1-5ubuntu1_i386.deb"
now download "http://archive.trisquel.info/trisquel/pool/main/libg/libgnome/libgnome2-bin_2.32.1-5ubuntu1_i386.deb"
now download "http://archive.trisquel.info/trisquel/pool/main/libg/libgnome/libgnome2-0_2.32.1-5ubuntu1_i386.deb"
now download "http://archive.trisquel.info/trisquel/pool/main/libb/libbonoboui/libbonoboui2-common_2.24.5-3ubuntu1_all.deb"
now download "http://archive.trisquel.info/trisquel/pool/main/libb/libbonoboui/libbonoboui2-0_2.24.5-3ubuntu1_i386.deb"
now download "http://archive.trisquel.info/trisquel/pool/main/libg/libgnomeui/libgnomeui-common_2.24.5-3.1_all.deb"
now download "http://archive.trisquel.info/trisquel/pool/main/libg/libgnomeui/libgnomeui-0_2.24.5-3.1_i386.deb"
now download "http://archive.trisquel.info/trisquel/pool/main/libj/libjpeg9/libjpeg9_9b-1ubuntu1_i386.deb"
now download "http://archive.trisquel.info/trisquel/pool/main/libj/libjpeg9/libjpeg-progs_9b-1ubuntu1_i386.deb"
now download "http://archive.trisquel.info/trisquel/pool/main/m/menu/menu_2.1.47ubuntu1_i386.deb"
now download "http://archive.trisquel.info/trisquel/pool/main/x/xscreensaver/xscreensaver-data_5.34-2ubuntu1_i386.deb"
now download "http://archive.trisquel.info/trisquel/pool/main/x/xscreensaver/xscreensaver_5.34-2ubuntu1_i386.deb"
fig
dpath "/mnt/dlibre" chdir
q 34 chr
ifequal srcdist "trisquel8"
dpath "rm /var/cache/apt/archives/upstart-sysv_1.13.2-0ubuntu21.1_i386.deb" shell
dpath "chroot primaryfs/squashfs-root/ /bin/bash -c 'dpkg -i /var/cache/apt/archives/*.deb'" shell
dpath "chroot primaryfs/squashfs-root/ /bin/bash -c 'dpkg -r trisquel language-selector-gnome aptdaemon trisquel-recommended brasero mate-desktop-environment-extras mate-desktop-environment mate-desktop-environment-core'" shell
dpath "chroot primaryfs/squashfs-root/ /bin/bash -c 'dpkg -r folder-color-caja colord deja-dup-caja gnome-bluetooth gnome-system-tools mate-user-share gvfs-backends mate-applets trisquel-print-system'" shell
dpath "chroot primaryfs/squashfs-root/ /bin/bash -c 'dpkg -r trisquel-desktop-common indicator-network indicator-sound-gtk2 indicator-sound libcanberra-pulse:i386 network-manager-gnome network-manager'" shell
dpath "chroot primaryfs/squashfs-root/ /bin/bash -c 'dpkg -r pulseaudio-module-x11 mate-control-center mate-gnome-main-menu-applet mate-indicator-applet mate-screensaver mate-session-manager'" shell
dpath "chroot primaryfs/squashfs-root/ /bin/bash -c 'dpkg -r ubuntu-mate-default-settings mate-panel mate-settings-daemon mate-power-manager printer-driver-postscript-hp pulseaudio-module-gconf'" shell
dpath "chroot primaryfs/squashfs-root/ /bin/bash -c 'dpkg -r caja gvfs gvfs-daemons hplip pulseaudio ubiquity-frontend-gtk ubiquity'" shell
dpath "chroot primaryfs/squashfs-root/ /bin/bash -c 'dpkg -r update-notifier update-manager udisks usb-creator-common usb-creator-gtk udisks2 trisquel-release-upgrader-gtk libpam-systemd policykit-1 mate-polkit'" shell
dpath "chroot primaryfs/squashfs-root/ /bin/bash -c 'dpkg -r systemd-sysv'" shell
dpath "chroot primaryfs/squashfs-root/ /bin/bash -c 'dpkg -i /var/cache/apt/upstart-sysv_1.13.2-0ubuntu21.1_i386.deb'" shell
dpath "rm /mnt/mkrefpup/primaryfs/squashfs-root/lib/systemd/systemd" shell
fig
ifequal srcdist "debianliveinst95"
dpath "chroot primaryfs/squashfs-root/ /bin/bash -c 'dpkg -r network-manager-gnome dbus-user-session gvfs gvfs-daemons udisks2 synaptic libreoffice live-task-xfce task-xfce-desktop light-locker lightdm network-manager packagekit-tools packagekit policykit-1-gnome policykit-1 libpam-systemd systemd-sysv'" shell
dpath "chroot primaryfs/squashfs-root/ /bin/bash -c 'dpkg -i /var/cache/apt/insserv_1.14.0-5.4+b1_i386.deb /var/cache/apt/startpar_0.59-3.1_i386.deb /var/cache/apt/sysv-rc_2.88dsf-59.9_all.deb /var/cache/apt/initscripts_2.88dsf-59.9_i386.deb /var/cache/apt/sysvinit-core_2.88dsf-59.9_i386.deb /var/cache/apt/psmisc_22.21-2.1+b2_i386.deb'" shell
dpath "chroot primaryfs/squashfs-root/ /bin/bash -c 'echo -e " plus q plus "toor\ntoor" plus q plus " | passwd root -q'" shell
dpath "rm /mnt/mkrefpup/primaryfs/squashfs-root/lib/systemd/systemd" shell
fig
ifequal srcdist "debianliveinst95"
installdeb "chroot primaryfs/squashfs-root/ /bin/bash -c 'cd /var/cache/apt ; dpkg -i libart-2.0-2_2.3.21-2_i386.deb libaudiofile1_0.3.6-4_i386.deb esound-common_0.2.41-11_all.deb"
now = installdeb plus " " plus "libesd0_0.2.41-11_i386.deb libglade2-0_2.6.4-2_i386.deb aptitude-common_0.8.7-1_all.deb libcwidget3v5_0.5.17-4+b1_i386.deb" swap now installdeb
now = installdeb plus " " plus "aptitude_0.8.7-1_i386.deb libcurl3_7.52.1-5+deb9u6_i386.deb curl_7.52.1-5+deb9u6_i386.deb" swap now installdeb
now = installdeb plus " " plus "gconf2_3.2.6-4+b1_i386.deb gnome-mime-data_2.18.0-1_all.deb gtklp_1.3.1-0.1+b1_i386.deb icewm-common_1.3.8+mod+20161220-1_i386.deb" swap now installdeb
now = installdeb plus " " plus "icewm_1.3.8+mod+20161220-1_i386.deb leafpad_0.8.18.1-5_i386.deb libbonobo2-common_2.32.1-3_all.deb" swap now installdeb
now = installdeb plus " " plus "liborbit-2-0_2.14.19-2+b1_i386.deb libbonobo2-0_2.32.1-3+b1_i386.deb" swap now installdeb
now = installdeb plus " " plus "libgnomevfs2-common_2.24.4-6.1_all.deb libgnomevfs2-0_2.24.4-6.1+b2_i386.deb libgnome2-common_2.32.1-5_all.deb" swap now installdeb
now = installdeb plus " " plus "libgnome-2-0_2.32.1-5+b1_i386.deb libgnomecanvas2-common_2.30.3-3_all.deb libgnomecanvas2-0_2.30.3-3_i386.deb" swap now installdeb
now = installdeb plus " " plus "libbonoboui2-common_2.24.5-4_all.deb libbonoboui2-0_2.24.5-4_i386.deb libcgi-pm-perl_4.35-1_all.deb" swap now installdeb
now = installdeb plus " " plus "libfcgi-perl_0.78-2_i386.deb libcgi-fast-perl_2.12-1_all.deb libsub-name-perl_0.21-1_i386.deb" swap now installdeb
now = installdeb plus " " plus "libclass-accessor-perl_0.34-1_all.deb libgnomeui-common_2.24.5-3.1_all.deb" swap now installdeb
now = installdeb plus " " plus "libgnomeui-0_2.24.5-3.1_i386.deb libgnomevfs2-extra_2.24.4-6.1+b2_i386.deb libio-string-perl_1.08-3_all.deb" swap now installdeb
now = installdeb plus " " plus "libturbojpeg0_1.5.1-2_i386.deb libjpeg-turbo-progs_1.5.1-2_i386.deb libparse-debianchangelog-perl_1.2.0-12_all.deb" swap now installdeb
now = installdeb plus " " plus "menu_2.1.47+b1_i386.deb mtpaint_3.40-3_i386.deb xscreensaver-data_5.36-1_i386.deb xscreensaver_5.36-1_i386.deb'" shell
fig
change = changeforwhom profiles "figosdev-more"
iftrue change
now "echo '#!/bin/bash' > /mnt/dlibre/primaryfs/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/dlibre/primaryfs/squashfs-root/usr/sbin/figoshelp" shell
now "chmod +x /mnt/dlibre/primaryfs/squashfs-root/usr/sbin/figoshelp" shell
now "mkdir /mnt/dlibre/primaryfs/squashfs-root/usr/share/doc/puppy" shell
now "mkdir /mnt/dlibre/primaryfs/squashfs-root/usr/share/doc/figueira 2> /dev/null" shell
now "rm /mnt/dlibre/primaryfs/squashfs-root/usr/bin/fig29.py" shell
now "cp /mnt/dlibre/fig46.py /mnt/dlibre/primaryfs/squashfs-root/usr/bin" shell
now "cp /mnt/dlibre/figu29.py /mnt/dlibre/primaryfs/squashfs-root/usr/bin" shell
now "cp /mnt/dlibre/alex23.py /mnt/dlibre/primaryfs/squashfs-root/usr/bin" shell
now "chmod +x /mnt/dlibre/primaryfs/squashfs-root/usr/bin/fig46.py" shell
now "chmod +x /mnt/dlibre/primaryfs/squashfs-root/usr/bin/figu29.py" shell
now "mkdir /mnt/dlibre/primaryfs/squashfs-root/usr/" shell
now "mkdir /mnt/dlibre/primaryfs/squashfs-root/usr/bin" shell
now "mkdir /mnt/dlibre/primaryfs/squashfs-root/usr/share" shell
now "mkdir /mnt/dlibre/primaryfs/squashfs-root/usr/local" shell
now "mkdir /mnt/dlibre/primaryfs/squashfs-root/usr/local/bin" shell
rep = "[ " ; prints ; "copying files and folders related to mkfigos" colortext 10 prints colortext 7 " ]" print
fig
change = changeforwhom profiles "figosdev-more"
iftrue change
now "rm /mnt/dlibre/primaryfs/squashfs-root/etc/os-release" shell
#now "chroot /mnt/dlibre/primaryfs/squashfs-root/" shell
now "echo 'echo >/usr/share/lxqt/graphics/helix.svg' >> /mnt/dlibre/primaryfs/squashfs-root/etc/rc.local" shell
now "echo '/root/updatefirstrun 2> /dev/null' >> /mnt/dlibre/primaryfs/squashfs-root/etc/rc.local" shell
now "echo '/root/pythoninstall' >> /mnt/dlibre/primaryfs/squashfs-root/etc/rc.local" shell
now "echo '/root/wminstall' >> /mnt/dlibre/primaryfs/squashfs-root/etc/rc.local" shell
now "echo '/root/curlinstall' >> /mnt/dlibre/primaryfs/squashfs-root/etc/rc.local" shell
now "echo '/root/installother' >> /mnt/dlibre/primaryfs/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/dlibre/primaryfs/squashfs-root/root/pythoninstall ; chmod +x /mnt/dlibre/primaryfs/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 ; fi ' > /mnt/dlibre/primaryfs/squashfs-root/root/wminstall ; chmod +x /mnt/dlibre/primaryfs/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/dlibre/primaryfs/squashfs-root/root/curlinstall ; chmod +x /mnt/dlibre/primaryfs/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 fluxbox alsa-tools alsa-utils ; fi' > /mnt/dlibre/primaryfs/squashfs-root/root/installother ; chmod +x /mnt/dlibre/primaryfs/squashfs-root/root/installother" shell
#now "echo 'cp /var/cache/?bps/*bps* /mnt/hda1/root/' >> /mnt/dlibre/primaryfs/squashfs-root/root/.bash_history" shell
#now "echo 'smartctl --all /dev/sda | egrep " plus quot plus "vera|Load|Logge" plus quot plus "' >> /mnt/dlibre/primaryfs/squashfs-root/root/.bash_history" shell
#now "echo 'xbps-install --repository /var/cache/xbps -yS binutils' >> /mnt/dlibre/primaryfs/squashfs-root/root/.bash_history" shell
#now "echo 'xrandr --output LVDS --off' >> /mnt/dlibre/primaryfs/squashfs-root/root/.bash_history" shell
#now "echo 'gdmap -f /mnt/hda1 &' >> /mnt/dlibre/primaryfs/squashfs-root/root/.bash_history" shell
#now "/bin/echo -e '#!/bin/bash\nxbps-rindex -a /var/cache/xbps/*.xbps ; rm /root/updatefirstrun' > /mnt/dlibre/primaryfs/squashfs-root/root/updatefirstrun ; chmod +x /mnt/dlibre/primaryfs/squashfs-root/root/updatefirstrun" shell
rep = "[ " ; prints ; "trying to modify files that probably arent in this distro" colortext 10 prints colortext 7 " ]" print
fig
now "/mnt/dlibre/" chdir
function vpaupdate
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
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
ifequal srcdist "voidlxqtlive201710"
now "download gdbm" split now " " vpa now
now "download libcrypto43" split now " " vpa now
now "download libssl45" split now " " vpa now
now "download python" split now " " vpa now
now "download wget" split now " " vpa now
now "download curl" split now " " vpa now
now "download gdk-pixbuf-xlib" split now " " vpa now
now "download icewm" split now " " vpa now
now "download jansson" split now " " vpa now
now "download libcurl" split now " " vpa now
now "download nghttp2" split now " " vpa now
now "download libXpm" split now " " vpa now
now "download fribidi" split now " " vpa now
now "download fluxbox" split now " " vpa now
now "download alsa-tools" split now " " vpa now
now "download alsa-utils" split now " " vpa now
now "download binutils" split now " " vpa now
now "download fltk" split now " " vpa now
now "download gdmap" split now " " vpa now
now "download ghostscript" split now " " vpa now
now "download gsfonts" split now " " vpa now
now "download hdparm" split now " " vpa now
now "download hsetroot" split now " " vpa now
now "download i3lock" split now " " vpa now
now "download leafpad" split now " " vpa now
now "download lesstif" split now " " vpa now
now "download libXfontcache" split now " " vpa now
now "download libXp" split now " " vpa now
now "download libXxf86misc" split now " " vpa now
now "download libev" split now " " vpa now
now "download libglade" split now " " vpa now
now "download libgs" split now " " vpa now
now "download libijs" split now " " vpa now
now "download libjbig2dec" split now " " vpa now
now "download liblz4" split now " " vpa now
now "download liblzma" split now " " vpa now
now "download libopenjpeg" split now " " vpa now
now "download libopenjpeg2" split now " " vpa now
now "download libpaper" split now " " vpa now
now "download lsof" split now " " vpa now
now "download mtpaint" split now " " vpa now
now "download nano" split now " " vpa now
now "download ncdu" split now " " vpa now
now "download psutils" split now " " vpa now
now "download pygtk" split now " " vpa now
now "download python-alsa" split now " " vpa now
now "download python-cairo" split now " " vpa now
now "download python-gobject2" split now " " vpa now
now "download smartmontools" split now " " vpa now
now "download squashfs-tools" split now " " vpa now
now "download syslinux" split now " " vpa now
now "download xmlcatmgr" split now " " vpa now
now "download xorriso" split now " " vpa now
now "download xpdf" split now " " vpa now
now "download xrandr" split now " " vpa now
now "download xset" split now " " vpa now
now "download xz" split now " " vpa now
now "download yad" split now " " vpa now
now "wget 'https://repo.voidlinux.eu/current/psutils-p17_4.i686.xbps.sig'" shell
now "wget 'https://repo.voidlinux.eu/current/psutils-p17_4.i686.xbps'" shell
now "wget 'https://repo.voidlinux.eu/current/gsfonts-8.11_4.noarch.xbps.sig'" shell
now "wget 'https://repo.voidlinux.eu/current/gsfonts-8.11_4.noarch.xbps'" shell
fig
now "/mnt/dlibre/" chdir
ifequal srcdist "voidlxqtlive201710"
now "/mnt/dlibre/" chdir
now "wget 'http://http.us.debian.org/debian/pool/main/d/dpkg/dpkg_1.19.2_i386.deb'" shell
now "ar x dpkg_1.19.2_i386.deb" shell
now "tar -xvf data.tar.xz ./usr/bin/dpkg-deb ; cp ./usr/bin/dpkg-deb /mnt/dlibre" shell
now "cp dpkg-deb /mnt/dlibre/vfs/squashfs-root/usr/bin" shell
now "cp *.xbps *.xbps.sig /mnt/dlibre/vfs/squashfs-root/var/cache/xbps" shell
now "/mnt/dlibre/primaryfs" chdir
now "cp /mnt/dlibre/figuchsh.odt /mnt/dlibre/vfs/squashfs-root/usr/share/doc/figueira" shell
now "cp /mnt/dlibre/figuchsh.pdf /mnt/dlibre/vfs/squashfs-root/usr/share/doc/figueira" shell
now "ln -s /root/.bash_history /mnt/dlibre/vfs/squashfs-root/.bash_history" shell
now pwd chdir
insticewm "ls /mnt/dlibre/vfs/squashfs-root/usr/bin/icewm | wc -l 2> /dev/null" arrshell mid 1 1 int
ifequal insticewm 0
now "mkdir -p /mnt/dlibre/vfs/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/dlibre/vfs/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/dlibre/vfs/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/dlibre/vfs/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/dlibre/vfs/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/dlibre/primaryfs" chdir
now "rm /mnt/dlibre/vfs/squashfs-root/usr/share/icewm/themes/default/default.png" shell
now "cp arrlen.fig arrname.fig dircmp.fig /mnt/dlibre/vfs/squashfs-root/usr/bin" shell
now "mkdir -p /mnt/dlibre/vfs/squashfs-root/var/cache/apt/archives" shell
#now "cp libglib2.0-0_2.42.1-1+b1_i386.deb /mnt/dlibre/vfs/squashfs-root/var/cache/apt/archives" shell
#now "dpkg-deb -x iceweasel_45.4.0esr-1~deb8u2_all.deb /mnt/dlibre/vfs/squashfs-root" shell
#now "dpkg-deb -x firefox-esr_45.4.0esr-1~deb8u2_i386.deb /mnt/dlibre/vfs/squashfs-root" shell
#now "dpkg-deb -x libssl1.0.0_1.0.1t-1+deb8u5_i386.deb /mnt/dlibre/vfs/squashfs-root" shell
#now "rm -rf /mnt/dlibre/vfs/squashfs-root/etc/systemd" shell
#now "rm -rf /mnt/dlibre/vfs/squashfs-root/var/lib/systemd" shell
#now "rm /mnt/dlibre/vfs/squashfs-root/usr/bin/dbus-daemon" shell
#now "rm /mnt/dlibre/vfs/squashfs-root/usr/bin/dbus-launch" shell
q 34 chr
now "cd /mnt/dlibre/vfs/squashfs-root/usr/share/locale/ ; rm -rf af am an ang ar ar_EG as ast az az_IR bal be be@latin bg bg_BG bn bn_IN" shell
now "cd /mnt/dlibre/vfs/squashfs-root/usr/share/locale/ ; rm -rf bo br bs bs_BA byn ca ca@valencia ceb ckb cmn crh cs csb cy da da_DK de " shell
now "cd /mnt/dlibre/vfs/squashfs-root/usr/share/locale/ ; rm -rf dv dz el en@boldquot " shell
now "cd /mnt/dlibre/vfs/squashfs-root/usr/share/locale/ ; rm -rf en@piglatin en@quot en@shaw eo et et_EE fa fa_IR fi fi_FI" shell
now "cd /mnt/dlibre/vfs/squashfs-root/usr/share/locale/ ; rm -rf fil fo frp fur fy ga gd gez gl gu gv haw he hi hr ht hu hy ia id id_ID ig" shell
now "cd /mnt/dlibre/vfs/squashfs-root/usr/share/locale/ ; rm -rf io is it it_IT ja ja_JP ka kg kk km kn ko kok ks ku ky la lb lg li lo lt " shell
now "cd /mnt/dlibre/vfs/squashfs-root/usr/share/locale/ ; rm -rf lv mai mg mhr mi mk ml ml_IN mn mr ms mt my nah nb nb_NO nds ne nhn nl " shell
now "cd /mnt/dlibre/vfs/squashfs-root/usr/share/locale/ ; rm -rf nl_NL nn nn_NO no nso oc or pa pl ps qu rm ro ru rw sc sd se shn si sk sl" shell
now "cd /mnt/dlibre/vfs/squashfs-root/usr/share/locale/ ; rm -rf so sq sr sr@ije sr@latin sr@Latn sr_RS sv sv_SE sw szl ta ta_LK te tet tg" shell
now "cd /mnt/dlibre/vfs/squashfs-root/usr/share/locale/ ; rm -rf th ti tig tk tl tl_PH tr tt tt@iqtelif tt_RU ug ur ur_PK uz uz@cyrillic " shell
now "cd /mnt/dlibre/vfs/squashfs-root/usr/share/locale/ ; rm -rf ve vi wa wae wal wo xh yi yo zh zh_CN zh_HK zh_TW zu" shell
now "cd /mnt/dlibre/vfs/squashfs-root/usr/share/icons/ ; rm -rf mate" shell
now "cd /mnt/dlibre/vfs/squashfs-root/usr/share/icons/ ; rm -rf Adwaita" shell
now "cd /mnt/dlibre/vfs/squashfs-root/usr/share/icons/ ; rm -rf breeze*" shell
now "/mnt/dlibre/vfs/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/refracta/files/extra_packages/fig29-31_1.0.deb ; fi" shell
now "cd fig ; dpkg-deb -x fig29-31_1.0.deb /mnt/dlibre/vfs/squashfs-root" shell
# fig now catches a reference in this example, this line fixes the error
now fixpings 0 isoname "abs :" "" "/mnt/dlibre/vfs/squashfs-root/usr/share/doc/fig/examples/asciimint.fig"
now "echo 'export LANG=en_US.UTF-8' >> /mnt/dlibre/vfs/squashfs-root/root/.bashrc" shell
now "echo '#export LANG=en_US.UTF-8' >> /mnt/dlibre/vfs/squashfs-root/user/.bashrc" shell
now "/bin/echo -e '#!/bin/bash\nyad --text-info --editable --wrap --fontname=monospace --show-uri --maximized --listen' > /mnt/dlibre/vfs/squashfs-root/usr/bin/yadless ; chmod +x /mnt/dlibre/vfs/squashfs-root/usr/bin/yadless" shell
now "/bin/echo -e '#!/bin/bash\npython -m SimpleHTTPServer' > /mnt/dlibre/vfs/squashfs-root/usr/bin/pserver ; chmod +x /mnt/dlibre/vfs/squashfs-root/usr/bin/pserver" shell
fig
now "mkdir /mnt/dlibre/core" shell
change = changeforwhom profiles "wanderer-no-core-yet-do-not-use" # only change /boot/core.gz
iftrue change
ifequal "this way of remastering" "likely to work very soon"
now = "cd /mnt/dlibre/core ; zcat /mnt/dlibre/mountprimary/boot/core.gz | cpio -i -H newc -d" ; shell
now = "/mnt/dlibre/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/dlibre/core/" ; chdir
# sha256 98089ba431651a1c1d23fa8694382b792c7187a11765eab2873943059abc1a0d
ck = "ls /mnt/dlibre/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
fig
now "/mnt/dlibre/" ; chdir
now = "wget -O- https://ptpb.pw/KwSz > /mnt/dlibre/newiso/boot/isolinux/isolinux.cfg " ; shell
rep = "[ " ; prints ; "added core.gz" colortext 10 prints colortext 7 " ]" print
fig
change = changeforwhom profiles "wanderer-core"
iftrue change
nl 10 chr
filetext = ""
python
filetext = """
display boot.msg
default microcore
label microcore
kernel /boot/vmlinuz
initrd /boot/tinycore.gz
append loglevel=3
label mc
kernel /boot/vmlinuz
append initrd=/boot/tinycore.gz loglevel=3
implicit 0
prompt 1
timeout 300
F1 boot.msg
F2 f2
F3 f3
F4 f4
"""
fig
openname = "/mnt/dlibre/newiso/boot/isolinux/isolinux.cfg" ; open "w"
now = filetext ; fprint openname
now = openname ; close
rep = "[ " ; prints ; "changed boot files for corepup-8 standard" colortext 10 prints colortext 7 " ]" print
fig
#now "download gdbm" split now " " vpa now
now "/mnt/dlibre/" chdir
#now "wget 'http://http.us.debian.org/debian/pool/main/d/dpkg/dpkg_1.19.2_i386.deb'" shell
now "ar x dpkg_1.19.2_i386.deb" shell
now "tar -xvf data.tar.xz ./usr/bin/dpkg-deb ; cp ./usr/bin/dpkg-deb /mnt/dlibre" shell
rep = "[ " ; prints ; "retrieved dpkg-deb" colortext 10 prints colortext 7 " ]" print
now "/mnt/dlibre/primaryfs" chdir
change = changeforwhom profiles "figosdev-more"
iftrue change
now "ln -s /root/.bash_history /mnt/dlibre/primaryfs/squashfs-root/.bash_history" shell
now pwd chdir
insticewm "ls /mnt/dlibre/primaryfs/squashfs-root/usr/bin/icewm | wc -l 2> /dev/null" arrshell mid 1 1 int
ifequal insticewm 0
now "mkdir -p /mnt/dlibre/primaryfs/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/dlibre/primaryfs/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/dlibre/primaryfs/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/dlibre/primaryfs/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/dlibre/primaryfs/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
fig
rep = "[ " ; prints ; "downloaded mkfigos icons and extra utils" colortext 10 prints colortext 7 " ]" print
fig
now "/mnt/dlibre/primaryfs" chdir
change = changeforwhom profiles "figosdev-more"
iftrue change
now "rm /mnt/dlibre/primaryfs/squashfs-root/usr/share/icewm/themes/default/default.png" shell
now "cp arrlen.fig arrname.fig dircmp.fig /mnt/dlibre/primaryfs/squashfs-root/usr/bin" shell
now "mkdir -p /mnt/dlibre/primaryfs/squashfs-root/var/cache/apt/archives" shell
#now "cp libglib2.0-0_2.42.1-1+b1_i386.deb /mnt/dlibre/primaryfs/squashfs-root/var/cache/apt/archives" shell
#now "dpkg-deb -x iceweasel_45.4.0esr-1~deb8u2_all.deb /mnt/dlibre/primaryfs/squashfs-root" shell
#now "dpkg-deb -x firefox-esr_45.4.0esr-1~deb8u2_i386.deb /mnt/dlibre/primaryfs/squashfs-root" shell
#now "dpkg-deb -x libssl1.0.0_1.0.1t-1+deb8u5_i386.deb /mnt/dlibre/primaryfs/squashfs-root" shell
#now "rm -rf /mnt/dlibre/primaryfs/squashfs-root/etc/systemd" shell
#now "rm -rf /mnt/dlibre/primaryfs/squashfs-root/var/lib/systemd" shell
#now "rm /mnt/dlibre/primaryfs/squashfs-root/usr/bin/dbus-daemon" shell
#now "rm /mnt/dlibre/primaryfs/squashfs-root/usr/bin/dbus-launch" shell
rep = "[ " ; prints ; "ran stuff that isnt ported to this distro as of yet" colortext 10 prints colortext 7 " ]" print
fig
change = changeforwhom profiles "figosdev-more"
iftrue change
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/dlibre/primaryfs/squashfs-root/usr/share/icewm/themes/icedesert/default.theme" shell
#now "sed -i 's/xterm/xterm -fn 10x20/g' /mnt/dlibre/primaryfs/squashfs-root/usr/share/icewm/keys" shell
#now "sed -i 's/^PermitRootLogin without-password/PermitRootLogin no/g' /mnt/dlibre/primaryfs/squashfs-root/etc/ssh/sshd_config" shell
#now "/mnt/dlibre/primaryfs/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/mountprimary/files/extra_packages/fig29-31_1.0.deb ; fi" shell
#now "cd fig ; dpkg-deb -x fig29-31_1.0.deb /mnt/dlibre/primaryfs/squashfs-root" shell
# fig now catches a reference in this example, this line fixes the error
#now fixpings 0 isoname "abs :" "" "/mnt/dlibre/primaryfs/squashfs-root/usr/share/doc/fig/examples/asciimint.fig"
#now "echo 'export LANG=en_US.UTF-8' >> /mnt/dlibre/primaryfs/squashfs-root/root/.bashrc" shell
#now "echo '#export LANG=en_US.UTF-8' >> /mnt/dlibre/primaryfs/squashfs-root/user/.bashrc" shell
#now "/bin/echo -e '#!/bin/bash\nyad --text-info --editable --wrap --fontname=monospace --show-uri --maximized --listen' > /mnt/dlibre/primaryfs/squashfs-root/usr/bin/yadless ; chmod +x /mnt/dlibre/primaryfs/squashfs-root/usr/bin/yadless" shell
#now "/bin/echo -e '#!/bin/bash\npython -m SimpleHTTPServer' > /mnt/dlibre/primaryfs/squashfs-root/usr/bin/pserver ; chmod +x /mnt/dlibre/primaryfs/squashfs-root/usr/bin/pserver" shell
rep = "[ " ; prints ; "would have run this stuff if it wasnt mostly commented out" colortext 10 prints colortext 7 " ]" print
fig
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
change = changeforwhom profiles "figosdev-more"
iftrue change
now "/mnt/dlibre/primaryfs/squashfs-root" overloadclihelp now
rep = "[ " ; prints ; "tried to overload help system (needs to be a tcz first)" colortext 10 prints colortext 7 " ]" print
fig
ifequal srcdist "voidlxqtlive201710"
now "/mnt/dlibre/vfs/squashfs-root" overloadclihelp now
fig
quot 34 chr
###now "echo #PS1='\[\e]2;\w\a\e[32m\]$USER:\w\\$ \[\e[0m\]'# >> /mnt/dlibre/unsq/squashfs-root/root/.bashrc" split now "'" join now quot split now "#" join now "'" shell
#now "cp /mnt/dlibre/primaryfs/squashfs-root/usr/share/icewm/taskbar/icewm.orig.xpm /mnt/dlibre/primaryfs/squashfs-root/usr/share/icewm/taskbar/icewm.xpm" shell
#now "mkdir -p /mnt/dlibre/primaryfs/squashfs-root/usr/share/icewm/taskbar" shell
now "/mnt/dlibre/primaryfs/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/dlibre/primaryfs/squashfs-root/usr/share/icewm.xpm"
now "/mnt/dlibre/primaryfs/squashfs-root/usr/share/icewm.xpm" close
ifequal srcdist "voidlxqtlive201710"
now "cp /mnt/dlibre/vfs/squashfs-root/usr/share/icewm/taskbar/icewm.orig.xpm /mnt/dlibre/vfs/squashfs-root/usr/share/icewm/taskbar/icewm.xpm" shell
now "mkdir -p /mnt/dlibre/vfs/squashfs-root/usr/share/icewm/taskbar" shell
now "/mnt/dlibre/vfs/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/dlibre/vfs/squashfs-root/usr/share/icewm.xpm"
now "/mnt/dlibre/vfs/squashfs-root/usr/share/icewm.xpm" close
now "mkdir -p /mnt/dlibre/vfs/squashfs-root/root/.config/pcmanfm/default/" shell
now "mkdir -p /mnt/dlibre/vfs/squashfs-root/root/.config/libfm/" shell
nl 10 chr
icofx "ownIcon=true" plus nl plus "type=mainmenu"
now fixpings 1 isoname "type=mainmenu" icofx "/mnt/dlibre/vfs/squashfs-root/home/anon/.config/lxqt/panel.conf"
now fixpings 1 isoname "position=Bottom" "position=Top" "/mnt/dlibre/vfs/squashfs-root/home/anon/.config/lxqt/panel.conf"
df "/mnt/dlibre/vfs/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/dlibre/vfs/squashfs-root/root/.config/pcmanfm/default/desktop-items-0.conf"
now df open "w"
text1 ""
python
text1 = """[*]
wallpaper_mode=crop
wallpaper_common=1
wallpaper=/usr/share/backgrounds/default.png
desktop_bg=#000000
desktop_fg=#ffffff
desktop_shadow=#000000
desktop_font=Sans 12
show_wm_menu=1
sort=mtime;ascending;
show_documents=0
show_trash=0
show_mounts=1
"""
fig
now text1 fprint df
now df close
df "/mnt/dlibre/vfs/squashfs-root/root/.config/libfm/libfm.conf"
now df open "w"
text2 ""
python
text2 = """# Configuration file for the libfm version 1.2.3.
# Autogenerated file, don't edit, your changes will be overwritten.
[config]
single_click=1
use_trash=1
confirm_del=1
confirm_trash=1
advanced_mode=0
si_unit=0
force_startup_notify=1
backup_as_hidden=1
no_usb_trash=1
no_child_non_expandable=0
show_full_names=0
only_user_templates=0
template_run_app=0
template_type_once=0
auto_selection_delay=600
drop_default_action=auto
defer_content_test=0
quick_exec=0
show_internal_volumes=0
terminal=xterm
thumbnail_local=0
thumbnail_max=2048
smart_desktop_autodrop=1
[ui]
big_icon_size=48
small_icon_size=16
pane_icon_size=16
thumbnail_size=128
show_thumbnail=0
shadow_hidden=0
[places]
places_home=1
places_desktop=1
places_root=0
places_computer=1
places_trash=1
places_applications=1
places_network=0
places_unmounted=1
"""
fig
now text2 fprint df
now df close
# fig os is an educational os designed for teaching people about computers.
# editing /etc/hosts is a valuable skill, and knowing it exists is a useful piece of knowledge.
# it is (in this authors opinion) better to edit mkfigos and run it than to download the iso.
# then you can customize mkfigos all you like; for instance, removing the following lines.
# you can also remove them if you install fig os, then edit the /etc/hosts file.
now "echo >> /mnt/dlibre/vfs/squashfs-root/etc/hosts" shell
now "echo # a few lines drawn in the sand-- delete any of the following entries you want: >> /mnt/dlibre/vfs/squashfs-root/etc/hosts" shell
now "echo 127.0.0.1 icanhazip.com >> /mnt/dlibre/vfs/squashfs-root/etc/hosts" shell
now "echo 127.0.0.1 hello.firefox.com >> /mnt/dlibre/vfs/squashfs-root/etc/hosts" shell
now "echo 127.0.0.1 input.mozilla.org >> /mnt/dlibre/vfs/squashfs-root/etc/hosts" shell
now "echo #127.0.0.1 support.mozilla.org >> /mnt/dlibre/vfs/squashfs-root/etc/hosts" shell
now "echo 127.0.0.1 aus5.mozilla.org >> /mnt/dlibre/vfs/squashfs-root/etc/hosts" shell
now "echo 127.0.0.1 crash-stats.mozilla.com >> /mnt/dlibre/vfs/squashfs-root/etc/hosts" shell
now "echo 127.0.0.1 snippets.cdn.mozilla.net >> /mnt/dlibre/vfs/squashfs-root/etc/hosts" shell
now "echo 127.0.0.1 marketplace.firefox.com >> /mnt/dlibre/vfs/squashfs-root/etc/hosts" shell
now "echo 127.0.0.1 tiles.services.mozilla.com >> /mnt/dlibre/vfs/squashfs-root/etc/hosts" shell
now "echo 127.0.0.1 api.getpocket.com >> /mnt/dlibre/vfs/squashfs-root/etc/hosts" shell
now "echo 127.0.0.1 sb-ssl.google.com >> /mnt/dlibre/vfs/squashfs-root/etc/hosts" shell
now "echo 127.0.0.1 safebrowsing.google.com >> /mnt/dlibre/vfs/squashfs-root/etc/hosts" shell
now "echo 127.0.0.1 shavar.services.mozilla.com >> /mnt/dlibre/vfs/squashfs-root/etc/hosts" shell
now "echo 127.0.0.1 en.malware-error.mozilla.com >> /mnt/dlibre/vfs/squashfs-root/etc/hosts" shell
now "echo 127.0.0.1 en_us.malware-error.mozilla.com >> /mnt/dlibre/vfs/squashfs-root/etc/hosts" shell
now "echo 127.0.0.1 en.phish-error.mozilla.com >> /mnt/dlibre/vfs/squashfs-root/etc/hosts" shell
now "echo 127.0.0.1 en_us.phish-error.mozilla.com >> /mnt/dlibre/vfs/squashfs-root/etc/hosts" shell
now "echo 127.0.0.1 en.phish-report.mozilla.com >> /mnt/dlibre/vfs/squashfs-root/etc/hosts" shell
now "echo 127.0.0.1 en_us.phish-report.mozilla.com >> /mnt/dlibre/vfs/squashfs-root/etc/hosts" shell
now "echo 127.0.0.1 self-repair.mozilla.org >> /mnt/dlibre/vfs/squashfs-root/etc/hosts" shell
now "echo 127.0.0.1 search.services.mozilla.com >> /mnt/dlibre/vfs/squashfs-root/etc/hosts" shell
now "echo 127.0.0.1 location.services.mozilla.com >> /mnt/dlibre/vfs/squashfs-root/etc/hosts" shell
now "echo 127.0.0.1 detectportal.firefox.com >> /mnt/dlibre/vfs/squashfs-root/etc/hosts" shell
now "echo 127.0.0.1 fhr.cdn.mozilla.net >> /mnt/dlibre/vfs/squashfs-root/etc/hosts" shell
now "echo 127.0.0.1 fhr.data.mozilla.com >> /mnt/dlibre/vfs/squashfs-root/etc/hosts" shell
now "echo 127.0.0.1 code.cdn.mozilla.net >> /mnt/dlibre/vfs/squashfs-root/etc/hosts" shell
now "echo 127.0.0.1 push.services.mozilla.com >> /mnt/dlibre/vfs/squashfs-root/etc/hosts" shell
now "echo 127.0.0.1 telemetry-experiment.cdn.mozilla.net >> /mnt/dlibre/vfs/squashfs-root/etc/hosts" shell
now "echo 127.0.0.1 blocklist.addons.mozilla.org >> /mnt/dlibre/vfs/squashfs-root/etc/hosts" shell
now "echo 127.0.0.1 services.addons.mozilla.org >> /mnt/dlibre/vfs/squashfs-root/etc/hosts" shell
now "echo 127.0.0.1 versioncheck-bg.addons.mozilla.org >> /mnt/dlibre/vfs/squashfs-root/etc/hosts" shell
now "echo 127.0.0.1 versioncheck.addons.mozilla.org >> /mnt/dlibre/vfs/squashfs-root/etc/hosts" shell
now "echo 127.0.0.1 api.accounts.firefox.com >> /mnt/dlibre/vfs/squashfs-root/etc/hosts" shell
now "echo 127.0.0.1 accounts.firefox.com >> /mnt/dlibre/vfs/squashfs-root/etc/hosts" shell
now "echo 127.0.0.1 oauth.accounts.firefox.com >> /mnt/dlibre/vfs/squashfs-root/etc/hosts" shell
now "echo 127.0.0.1 profile.accounts.firefox.com >> /mnt/dlibre/vfs/squashfs-root/etc/hosts" shell
now "echo 127.0.0.1 token.services.mozilla.com >> /mnt/dlibre/vfs/squashfs-root/etc/hosts" shell
now "echo 127.0.0.1 loop.services.mozilla.com >> /mnt/dlibre/vfs/squashfs-root/etc/hosts" shell
now "echo 127.0.0.1 data.mozilla.com >> /mnt/dlibre/vfs/squashfs-root/etc/hosts" shell
now "echo 127.0.0.1 setup.services.mozilla.com >> /mnt/dlibre/vfs/squashfs-root/etc/hosts" shell
now "echo 127.0.0.1 auth.services.mozilla.com >> /mnt/dlibre/vfs/squashfs-root/etc/hosts" shell
now "echo 127.0.0.1 services.mozilla.com >> /mnt/dlibre/vfs/squashfs-root/etc/hosts" shell
now "echo 127.0.0.1 activations.cdn.mozilla.net >> /mnt/dlibre/vfs/squashfs-root/etc/hosts" shell
now "echo 127.0.0.1 mozsocial.cliqz.com >> /mnt/dlibre/vfs/squashfs-root/etc/hosts" shell
now "echo 127.0.0.1 incoming.telemetry.mozilla.org >> /mnt/dlibre/vfs/squashfs-root/etc/hosts" shell
now "echo >> /mnt/dlibre/vfs/squashfs-root/etc/hosts" shell
now "mkdir /mnt/dlibre/vfs/squashfs-root/etc/rc.d" shell
#now "cp /mnt/dlibre/unsq/squashfs-root/etc/rc.d/PUPSTATE /mnt/dlibre/vfs/squashfs-root/etc/rc.d/" shell
now "mkdir /mnt/dlibre/vfs/squashfs-root/etc/rc.d" shell
now "mkdir /mnt/dlibre/vfs/squashfs-root/etc/xdg/menus/" shell
now "echo -n >> /mnt/dlibre/vfs/squashfs-root/etc/xdg/menus/hierarchy" shell
now "sed -i 's/# FocusRequestFlashTime=0/FocusRequestFlashTime=1/g' /mnt/dlibre/vfs/squashfs-root/usr/share/icewm/preferences" shell
now "sed -i 's/# TaskBarAtTop=0/TaskBarAtTop=1/g' /mnt/dlibre/vfs/squashfs-root/usr/share/icewm/preferences" shell
now "sed -i 's/# TaskBarShowClock=1/TaskBarShowClock=0/g' /mnt/dlibre/vfs/squashfs-root/usr/share/icewm/preferences" shell
now "sed -i 's/# TaskBarShowAPMStatus=0/TaskBarShowAPMStatus=1/g' /mnt/dlibre/vfs/squashfs-root/usr/share/icewm/preferences" shell
now "echo 'mkdir /mnt/hda1' >> /mnt/dlibre/vfs/squashfs-root/etc/rc.local" shell
now "echo 'mkdir /mnt/hda2' >> /mnt/dlibre/vfs/squashfs-root/etc/rc.local" shell
now "echo 'mkdir /mnt/hdb1' >> /mnt/dlibre/vfs/squashfs-root/etc/rc.local" shell
now "echo 'mkdir /mnt/hdb2' >> /mnt/dlibre/vfs/squashfs-root/etc/rc.local" shell
now "echo 'mount -r /dev/sda1 /mnt/hda1' >> /mnt/dlibre/vfs/squashfs-root/etc/rc.local" shell
now "echo 'mount -r /dev/sda2 /mnt/hda2' >> /mnt/dlibre/vfs/squashfs-root/etc/rc.local" shell
now "echo 'mount -r /dev/sdb1 /mnt/hdb1' >> /mnt/dlibre/vfs/squashfs-root/etc/rc.local" shell
now "echo 'mount -r /dev/sdb2 /mnt/hdb2' >> /mnt/dlibre/vfs/squashfs-root/etc/rc.local" shell
now "echo 'rm /usr/share/icewm/themes/default/default.png' >> /mnt/dlibre/vfs/squashfs-root/root/wminstall" shell
now "echo 'rm /usr/share/icewm/taskbar/*pm' >> /mnt/dlibre/vfs/squashfs-root/root/wminstall" shell
now "echo 'cp /usr/share/icewm.xpm /usr/share/icewm/taskbar' >> /mnt/dlibre/vfs/squashfs-root/root/wminstall" shell
now "echo 'rm -rf /usr/bin/lxqt-session /usr/share/void-artwork' >> /mnt/dlibre/vfs/squashfs-root/root/wminstall" shell
now "echo 'cp /usr/bin/openbox-session /usr/bin/lxqt-session' >> /mnt/dlibre/vfs/squashfs-root/root/wminstall" shell
now "echo 'cp /usr/bin/icewm-session /usr/bin/lxqt-session' >> /mnt/dlibre/vfs/squashfs-root/root/wminstall" shell
now "echo 'cp /usr/share/icewm/preferences /usr/share/icewm/pref' >> /mnt/dlibre/vfs/squashfs-root/root/wminstall" shell
now "echo 'cp /usr/bin/qter* /usr/bin/xterm' >> /mnt/dlibre/vfs/squashfs-root/root/wminstall" shell
now "echo 'echo DesktopBackgroundColor=000000 >> /usr/share/icewm/themes/default/default.theme' >> /mnt/dlibre/vfs/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/dlibre/vfs/squashfs-root/root/wminstall"
now quoted shell
now "echo '/root/desktops &' >> /mnt/dlibre/vfs/squashfs-root/etc/rc.local" shell
now "echo '/root/welcomes &' >> /mnt/dlibre/vfs/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/dlibre/vfs/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/dlibre/vfs/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/dlibre/vfs/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/dlibre/vfs/squashfs-root/etc/rc.local" shell
now "sync" shell
now "/mnt/dlibre/primaryfs" chdir
now "umount /mnt/dlibre/vfs/squashfs-root/ ; echo copying" shell
#now "echo copying ; cp /mnt/dlibre/primaryfs/squashfs-root/LiveOS/ext3fs.img /mnt/dlibre/" shell
#now "mount /mnt/dlibre/primaryfs/squashfs-root/LiveOS/ext3fs.img /mnt/dlibre/vfs/squashfs-root/" shell
fig
now "sed -i 's/# FocusRequestFlashTime=0/FocusRequestFlashTime=1/g' /mnt/dlibre/primaryfs/squashfs-root/usr/share/icewm/preferences" shell
now "sed -i 's/# TaskBarAtTop=0/TaskBarAtTop=1/g' /mnt/dlibre/primaryfs/squashfs-root/usr/share/icewm/preferences" shell
now "sed -i 's/# TaskBarShowClock=1/TaskBarShowClock=0/g' /mnt/dlibre/primaryfs/squashfs-root/usr/share/icewm/preferences" shell
now "sed -i 's/# TaskBarShowAPMStatus=0/TaskBarShowAPMStatus=1/g' /mnt/dlibre/primaryfs/squashfs-root/usr/share/icewm/preferences" shell
now "cp /mnt/dlibre/primaryfs/squashfs-root/usr/bin/icewm-session /mnt/dlibre/primaryfs/squashfs-root/usr/bin/mate-session" shell
#now "cp /mnt/dlibre/primaryfs/squashfs-root/usr/bin/icewm-session /mnt/dlibre/primaryfs/squashfs-root/usr/bin/x-session-manager" shell
now "cp /mnt/dlibre/primaryfs/squashfs-root/usr/share/icewm.xpm /mnt/dlibre/primaryfs/squashfs-root/usr/share/icewm/taskbar/icewm.xpm" shell
now "cp /mnt/dlibre/fig46.py /mnt/dlibre/primaryfs/squashfs-root/usr/bin" shell
now "cp /mnt/dlibre/alex23.py /mnt/dlibre/primaryfs/squashfs-root/usr/bin" shell
change = changeforwhom profiles "figosdev-more"
iftrue change
#now "mkdir -p /mnt/dlibre/primaryfs/squashfs-root/root/.config/pcmanfm/default/" shell
#now "mkdir -p /mnt/dlibre/primaryfs/squashfs-root/root/.config/libfm/" shell
###now "mkdir -p /mnt/dlibre/unsq/squashfs-root/root/.config/pcmanfm/default/" shell
###now "mkdir -p /mnt/dlibre/unsq/squashfs-root/root/.config/libfm/" shell
df "/mnt/dlibre/primaryfs/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/dlibre/primaryfs/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
rep = "[ " ; prints ; "created root desktop files but didnt add to corepup" colortext 10 prints colortext 7 " ]" print
fig
now "/mnt/dlibre/" chdir
change = changeforwhom profiles "figosdev-more"
iftrue change
df "/mnt/dlibre/primaryfs/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/dlibre/primaryfs/squashfs-root/home/anon/.config/lxqt/panel.conf"
now fixpings 1 isoname "position=Bottom" "position=Top" "/mnt/dlibre/primaryfs/squashfs-root/home/anon/.config/lxqt/panel.conf"
df "/mnt/dlibre/primaryfs/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/dlibre/unsq/squashfs-root/root/.config/libfm/libfm.conf"
#now df open "w"
#now text2 fprint df
#now df close
#now "/mnt/dlibre/unsq/squashfs-root/bin/baseping" open "w"
text "exit 0"
#now text fprint "/mnt/dlibre/unsq/squashfs-root/bin/baseping"
#now "/mnt/dlibre/unsq/squashfs-root/bin/baseping" close
#now "chmod +x /mnt/dlibre/unsq/squashfs-root/bin/baseping" shell
#now "/mnt/dlibre/unsq/squashfs-root/bin/baseping6" open "w"
#text "exit 0"
#now text fprint "/mnt/dlibre/unsq/squashfs-root/bin/baseping6"
#now "/mnt/dlibre/unsq/squashfs-root/bin/baseping6" close
#now "chmod +x /mnt/dlibre/unsq/squashfs-root/bin/baseping6" shell
rep = "[ " ; prints ; "created welcome shell and configured pcmanfm, didnt add" colortext 10 prints colortext 7 " ]" print
fig
change = changeforwhom profiles "figosdev-more"
iftrue change
now "mkdir /mnt/dlibre/primaryfs/squashfs-root/etc/rc.d" shell
now "mkdir /mnt/dlibre/primaryfs/squashfs-root/etc/xdg/menus/" shell
now "echo -n >> /mnt/dlibre/primaryfs/squashfs-root/etc/xdg/menus/hierarchy" shell
now "sed -i 's/# FocusRequestFlashTime=0/FocusRequestFlashTime=1/g' /mnt/dlibre/primaryfs/squashfs-root/usr/share/icewm/preferences" shell
now "sed -i 's/# TaskBarAtTop=0/TaskBarAtTop=1/g' /mnt/dlibre/primaryfs/squashfs-root/usr/share/icewm/preferences" shell
now "sed -i 's/# TaskBarShowClock=1/TaskBarShowClock=0/g' /mnt/dlibre/primaryfs/squashfs-root/usr/share/icewm/preferences" shell
now "sed -i 's/# TaskBarShowAPMStatus=0/TaskBarShowAPMStatus=1/g' /mnt/dlibre/primaryfs/squashfs-root/usr/share/icewm/preferences" shell
rep = "[ " ; prints ; "tried to change icewm config" colortext 10 prints colortext 7 " ]" print
fig
change = changeforwhom profiles "figosdev-more"
iftrue change
#now "echo '#!/bin/sh -e' > /mnt/dlibre/primaryfs/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/dlibre/primaryfs/etc/rc.local" shell
now "echo 'rm /var/lib/dbus/machine-id' >> /mnt/dlibre/primaryfs/squashfs-root/etc/rc.local" shell
now "echo '/root/desktops &' >> /mnt/dlibre/primaryfs/squashfs-root/etc/rc.local" shell
now "echo '/root/welcomes &' >> /mnt/dlibre/primaryfs/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/dlibre/primaryfs/squashfs-root/etc/rc.local" shell
now "echo 'exit 0' >> /mnt/dlibre/primaryfs/squashfs-root/etc/rc.local" shell
#now "mkdir /mnt/dlibre/primaryfs/squashfs-root/home/user/.icewm" shell
#now "echo 'sudo pcmanfm --desktop &' > /mnt/dlibre/primaryfs/squashfs-root/home/user/.icewm/startup" shell
#now fixpings 0 isoname "# invoke global X" "/usr/bin/pcmanfm --desktop & # # invoke global X" "/mnt/dlibre/primaryfs/squashfs-root/home/user/.icewm/startup"
rep = "[ " ; prints ; "more mkfigos features" colortext 10 prints colortext 7 " ]" print
fig
change = changeforwhom profiles "figosdev-more"
iftrue change
now "mkdir /mnt/dlibre/primaryfs/squashfs-root/Desktop" shell
rep = "[ " ; prints ; "created folder in wrong place" colortext 10 prints colortext 7 " ]" print
fig
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
change = changeforwhom profiles "figosdev-more"
iftrue change
now ldesk "/mnt/dlibre/primaryfs/squashfs-root/Desktop/conn.desktop" "Connect" "network setup" "/usr/bin/wicd-gtk" "/usr/share/pixmaps/connect48.png" "false"
now ldesk "/mnt/dlibre/primaryfs/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/dlibre/primaryfs/squashfs-root/Desktop/draw.desktop" "Draw" "vector editor" "/usr/local/bin/defaultdraw" "/usr/share/pixmaps/paint48.png" "false"
now ldesk "/mnt/dlibre/primaryfs/squashfs-root/Desktop/help.desktop" "Help" "help files" "/usr/sbin/figoshelp" "/usr/share/pixmaps/help48.png" "false"
#now ldesk "/mnt/dlibre/primaryfs/squashfs-root/Desktop/inst.desktop" "Install" "installer" "/usr/sbin/dotpup" "/usr/share/pixmaps/pet48.png" "false"
now ldesk "/mnt/dlibre/primaryfs/squashfs-root/Desktop/edit.desktop" "Leafpad" "text editor" "/usr/bin/leafpad" "/usr/share/pixmaps/edit48.png" "false"
#now ldesk "/mnt/dlibre/primaryfs/squashfs-root/Desktop/dmnt.desktop" "Mount" "connect drives" "/usr/sbin/pmount" "/usr/share/pixmaps/drive48.png" "false"
#now ldesk "/mnt/dlibre/primaryfs/squashfs-root/Desktop/osmo.desktop" "Plan" "calendar" "/usr/local/bin/defaultcalendar" "/usr/share/pixmaps/date48.png" "false"
#now ldesk "/mnt/dlibre/primaryfs/squashfs-root/Desktop/setp.desktop" "Setup" "setup wizard" "/usr/sbin/wizardwizard" "/usr/share/pixmaps/configuration48.png" "false"
rep = "[ " ; prints ; "changed desktops icons" colortext 10 prints colortext 7 " ]" print
fig
change = changeforwhom profiles "figosdev"
iftrue change
# if you have source for mcorepup in /mnt/dlibre 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/dlibre/" plus writefilename plus ".fig /mnt/dlibre/newiso 2> /dev/null" ; shell
rep = "[ " ; prints ; "if you have source for mcorepup in /mnt/dlibre, the iso has it too" colortext 10 prints colortext 7 " ]" print
fig
change = changeforwhom profiles "figosdev-dontuse"
iftrue change
now "rm -rf /mnt/dlibre/primaryfs/squashfs-root/etc/systemd/ /mnt/dlibre/primaryfs/squashfs-root/lib/systemd/system/*.service /mnt/dlibre/primaryfs/squashfs-root/etc/os-release /mnt/dlibre/primaryfs/squashfs-root/usr/lib/os-release" shell
rep = "[ " ; prints ; "redix is designed to replace posix, mkfigos is designed to help you automate redix alternatives" colortext 10 prints colortext 7 " ]" print
fig
change = changeforwhom profiles "figosdev"
iftrue change
now = tczpreps "fig46" "/usr/local/bin"
now = "cp /mnt/dlibre/alex23.py /mnt/dlibre/tcz/alex23/usr/local/bin" ; shell
now = tczbuild "fig46"
now = tczpreps "alex23" "/usr/local/bin"
now = "cp /mnt/dlibre/alex23.py /mnt/dlibre/tcz/alex23/usr/local/bin" ; shell
now = tczbuild "alex23"
rep = "[ " ; prints ; "created tcz packages for fig translator 4.6 and alex line executive 2.3" colortext 10 prints colortext 7 " ]" print
fig
change = changeforoption profiles "mcorepup"
iftrue change
versions = split proginf "," ; mid 1 1 ; split versions " " ; mid 2 1 ; val
chval = change ; val
chtrack = ""
for chver chval versions 0.1
chv = chver ; str
now = chtrack plus chv plus " " ; swap now chtrack
ifequal chver 0.1
now = tczpreps "mcorepup01" "/usr/local/bin"
now = "wget -O- 'http://murga-linux.com/puppy/viewtopic.php?mode=attach&id=117570' > /mnt/dlibre/tcz/mcorepup01/usr/local/bin/mcorepup01.fig" ; shell
now = tczbuild "mcorepup01"
fig
ifequal chver 0.2
now = tczpreps "mcorepup02" "/usr/local/bin"
now = "wget -O- 'http://murga-linux.com/puppy/viewtopic.php?mode=attach&id=117594' > /mnt/dlibre/tcz/mcorepup02/usr/local/bin/mcorepup02.fig" ; shell
now = tczbuild "mcorepup02"
fig
ifequal chver 0.3
now = tczpreps "mcorepup03" "/usr/local/bin"
now = "wget -O- 'http://murga-linux.com/puppy/viewtopic.php?mode=attach&id=117732' > /mnt/dlibre/tcz/mcorepup03/usr/local/bin/mcorepup03.fig" ; shell
now = tczbuild "mcorepup03"
fig
ifequal chver 0.4
now = tczpreps "mcorepup04" "/usr/local/bin"
now = "wget -O- 'http://murga-linux.com/puppy/viewtopic.php?mode=attach&id=117839' > /mnt/dlibre/tcz/mcorepup04/usr/local/bin/mcorepup04.fig" ; shell
now = tczbuild "mcorepup04"
fig
ifequal chver versions
pname = "mcorepup" plus chv ; split pname "." ; join pname ""
now = tczpreps pname "/usr/local/bin"
now = "cp /mnt/dlibre/" plus pname plus ".fig /mnt/dlibre/tcz/" plus pname plus "/usr/local/bin 2> /dev/null" ; shell
now = tczbuild pname
fig
next
rep = "[ " ; prints ; "created tcz packages for the following versions of mcorepup: " plus chtrack colortext 10 prints colortext 7 "]" print
fig
change = changeforwhom profiles "wanderer"
iftrue change
now = "ls /mnt/dlibre/newiso/cde/optional/*.tcz | sort -f | tr '/' '\n' | grep tcz > /mnt/dlibre/newiso/cde/xbase.lst" ; shell
now = "ls /mnt/dlibre/newiso/cde/optional/*.tcz | sort -f | tr '/' '\n' | grep tcz > /mnt/dlibre/newiso/cde/onboot.lst" ; shell
rep = "[ " ; prints ; "updated xbase.lst and onboot.lst" colortext 10 prints colortext 7 " ]" print
fig
change = changeforwhom sourcedistro srcdist
iftrue change
now "/mnt/dlibre/primaryfs/squashfs-root" chdir
ifequal srcdist "trisquel8"
iftrue fastcomp
now "mksquashfs . /mnt/dlibre/newiso/casper/filesystem.squashfs -noappend ; ###cp /mnt/dlibre/newfs/new.sfs /mnt/dlibre/newiso/puppy_librepup_6.0.2.2.sfs" shell
else
now "mksquashfs . /mnt/dlibre/newiso/casper/filesystem.squashfs -noappend -comp xz -b 512K ; cp /mnt/dlibre/newfs/new.sfs /mnt/dlibre/newiso/puppy_librepup_6.0.2.2.sfs" shell
fig
fig
ifequal srcdist "debianliveinst95"
iftrue fastcomp
now "mksquashfs . /mnt/dlibre/newiso/live/filesystem.squashfs -noappend ; ###cp /mnt/dlibre/newfs/new.sfs /mnt/dlibre/newiso/puppy_librepup_6.0.2.2.sfs" shell
else
now "mksquashfs . /mnt/dlibre/newiso/live/filesystem.squashfs -noappend -comp xz -b 512K ; cp /mnt/dlibre/newfs/new.sfs /mnt/dlibre/newiso/puppy_librepup_6.0.2.2.sfs" shell
fig
fig
ifequal srcdist "voidlxqtlive201710"
#now "umount /mnt/dlibre/vfs/squashfs-root/ ; echo copying" shell
#now "cp /mnt/dlibre/ext3fs.img /mnt/dlibre/primaryfs/squashfs-root/LiveOS/" shell
iftrue fastcomp
now "mksquashfs . /mnt/dlibre/newiso/LiveOS/squashfs.img -noappend" shell
else
now "mksquashfs . /mnt/dlibre/newiso/LiveOS/squashfs.img -noappend -comp xz -b 512K" shell
fig
now "/mnt/dlibre/newiso" chdir
now "cp /mnt/dlibre/logo.16 boot/isolinux/splash.png" shell
fig
now "/mnt/dlibre/primaryfs/squashfs-root" chdir
now "echo 'mkdir /mnt/hda1' >> /mnt/dlibre/primaryfs/squashfs-root/etc/rc.local" shell
now "echo 'mkdir /mnt/hda2' >> /mnt/dlibre/primaryfs/squashfs-root/etc/rc.local" shell
now "echo 'mkdir /mnt/hdb1' >> /mnt/dlibre/primaryfs/squashfs-root/etc/rc.local" shell
now "echo 'mkdir /mnt/hdb2' >> /mnt/dlibre/primaryfs/squashfs-root/etc/rc.local" shell
now "echo 'mount -r /dev/sda1 /mnt/hda1' >> /mnt/dlibre/primaryfs/squashfs-root/etc/rc.local" shell
now "echo 'mount -r /dev/sda2 /mnt/hda2' >> /mnt/dlibre/primaryfs/squashfs-root/etc/rc.local" shell
now "echo 'mount -r /dev/sdb1 /mnt/hdb1' >> /mnt/dlibre/primaryfs/squashfs-root/etc/rc.local" shell
now "echo 'mount -r /dev/sdb2 /mnt/hdb2' >> /mnt/dlibre/primaryfs/squashfs-root/etc/rc.local" shell
now "echo 'rm /usr/share/icewm/themes/default/default.png' >> /mnt/dlibre/primaryfs/squashfs-root/root/wminstall" shell
now "echo 'rm /usr/share/icewm/taskbar/*pm' >> /mnt/dlibre/primaryfs/squashfs-root/root/wminstall" shell
now "echo 'cp /usr/share/icewm.xpm /usr/share/icewm/taskbar' >> /mnt/dlibre/primaryfs/squashfs-root/root/wminstall" shell
now "echo 'cp /usr/bin/icewm-session /usr/bin/lxqt-session' >> /mnt/dlibre/primaryfs/squashfs-root/root/wminstall" shell
now "echo 'cp /usr/share/icewm/preferences /usr/share/icewm/pref' >> /mnt/dlibre/primaryfs/squashfs-root/root/wminstall" shell
now "echo 'cp /usr/bin/qter* /usr/bin/xterm' >> /mnt/dlibre/primaryfs/squashfs-root/root/wminstall" shell
now "echo 'echo DesktopBackgroundColor=000000 >> /usr/share/icewm/themes/default/default.theme' >> /mnt/dlibre/primaryfs/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/dlibre/primaryfs/squashfs-root/root/wminstall"
now quoted shell
now "echo '/root/desktops &' >> /mnt/dlibre/primaryfs/squashfs-root/etc/rc.local" shell
now "echo '/root/welcomes &' >> /mnt/dlibre/primaryfs/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/dlibre/primaryfs/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/dlibre/primaryfs/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/dlibre/primaryfs/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/dlibre/primaryfs/squashfs-root/etc/rc.local" shell
#now "/mnt/dlibre/primaryfs/squashfs-root" chdir
now "/mnt/dlibre/primaryfs" chdir
#rep = "[ " ; prints ; "created part of another distro within this one, but not really, not this time" colortext 10 prints colortext 7 " ]" print
fig
#iftrue fastcomp
# now "mksquashfs . /mnt/dlibre/newiso/LiveOS/squashfs.img -noappend" shell
# else
# now "mksquashfs . /mnt/dlibre/newiso/LiveOS/squashfs.img -noappend -comp xz -b 512K" shell
# fig
# rep = "[ " ; prints ; "created part of another distro within this one, but not really, not this time" colortext 10 prints colortext 7 " ]" print
now "/mnt/dlibre/newiso" chdir
change = changeforwhom profiles "libre"
iftrue change
now = "rm /mnt/dlibre/newiso/cde/optional/firmware-*" ; shell
rep = "[ " ; prints ; "removed those pesky non-free firmware files, if it removed floss ones please report on forum" colortext 10 prints colortext 7 " ]" print
fig
rep = "[ " ; prints ; "now trying to create bootable iso. what size are you expecting?" colortext 10 prints colortext 7 " ]" print
# this part mainly changes when moving from one distro to another. it is already tailored to mcorepup
# now "cp /mnt/dlibre/logo.16 boot/isolinux/splash.png" shell
# now "cp /mnt/dlibre/mountprimary/LiveOS/squashfs.img LiveOS" shell
now "cp /mnt/dlibre/mkdlibre01.fig /mnt/dlibre/newiso/" shell
ifequal srcdist "voidlxqtlive201710"
#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/dlibre/" plus isoname plus ".iso /mnt/dlibre/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/dlibre/" plus isoname plus "-" plus srcdist plus ".iso /mnt/dlibre/newiso/" right 90 ; print
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/dlibre/" plus isoname plus "-" plus srcdist plus ".iso /mnt/dlibre/newiso/" shell
#now "isohybrid /mnt/dlibre/" plus isoname plus ".iso" shell
else
now "genisoimage -b isolinux/isolinux.bin -c isolinux/boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table -r -J -l -V VOID_LIVE -o /mnt/dlibre/" plus isoname plus "-" plus srcdist plus ".iso /mnt/dlibre/newiso/" right 90 ; print
now "genisoimage -b isolinux/isolinux.bin -c isolinux/boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table -r -J -l -V VOID_LIVE -o /mnt/dlibre/" plus isoname plus "-" plus srcdist plus ".iso /mnt/dlibre/newiso/" shell
fig
#now "xorriso -as mkisofs -r -J -joliet-long -l -cache-inodes -isohybrid-mbr isolinux/isolinux.bin -partition_offset 16 -volid DISTROLIBRE -A 'free media os' -b isolinux/isolinux.bin -c isolinux/boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table -o /mnt/dlibre/" plus isoname plus ".iso /mnt/dlibre/newiso/" right 90 ; print
#now "xorriso -as mkisofs -r -J -joliet-long -l -cache-inodes -isohybrid-mbr isolinux/isolinux.bin -partition_offset 16 -volid DISTROLIBRE -A 'free media os' -b isolinux/isolinux.bin -c isolinux/boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table -o /mnt/dlibre/" plus isoname plus ".iso /mnt/dlibre/newiso/" shell
#now "mkisofs -b isolinux/isolinux.bin -c isolinux/boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table -joliet-long -R -l -V Corepup-7 -o /mnt/dlibre/" plus isoname plus ".iso /mnt/dlibre/newiso/" ; right 90 ; print
#now "mkisofs -b isolinux/isolinux.bin -c isolinux/boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table -joliet-long -R -l -V Corepup-7 -o /mnt/dlibre/" plus isoname plus ".iso /mnt/dlibre/newiso/" ; shell
findhybrid = "cat $(which isohybrid) /dev/null | wc -m" ; arrshell ; join findhybrid "" ; int
now "isohybrid /mnt/dlibre/" plus isoname plus "-" plus srcdist plus ".iso" shell
now = "[ " ; prints ; colortext 10 ; "ls -lh /mnt/dlibre/" plus isoname plus "-" plus srcdist plus ".iso" ; arrshell ; join now "" ; prints
now = colortext 7 ; " ]" ; print
iftrue findhybrid
rep = "[ " ; prints ; "ran isohybrid so users can dd to usb" colortext 10 prints colortext 7 " ]" print
fig
```
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