mkfreemos01.fig 78 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528
  1. #### license: creative commons cc0 1.0 (public domain)
  2. #### http://creativecommons.org/publicdomain/zero/1.0/
  3. proginf = "mkfreemos 0.1, sep 2018 mn" ; print
  4. isov = split proginf "," mid 1 1 ; split isov " " mid 2 1
  5. # ===========================================================
  6. # you will need python 2, and fig 2.x or 4.x to run mkfreemos.
  7. # you can download fig 4.6 here:
  8. # https://notabug.org/figosdev/figos/raw/master/fig46.py
  9. # ===========================================================
  10. # this is a python-based language ; it does not require indentation
  11. # only inline python code needs indenting
  12. # mcorepup-0.3 means "create tcz packages for current version of this remaster tool, and for previous versions, back to 0.3"
  13. # the default is currently not to create mcorepup packages.
  14. # to avoid ambiguity: "tcz packages" are packages for tinycore or corepup.
  15. # "mcorepup packages" are packages containing the mcorepup tool.
  16. # non-standard extras
  17. profiles = "wanderer wanderer-minimal wanderer-core figosdev figosdev-more libre mcorepup-3"
  18. # standard corepup 6: (unused since mcorepup 0.1, please report results if you try it)
  19. profiles = "wanderer"
  20. # standard corepup 7:
  21. profiles = "wanderer wanderer-minimal"
  22. # standard corepup 8:
  23. profiles = "wanderer wanderer-minimal wanderer-core"
  24. # the default profiles line is closer to the standard:
  25. # this is the one that counts when you run mcorepup
  26. profiles = "freemos"
  27. coreplusurl = "http://mirror.fsf.org/trisquel-images/trisquel_8.0_i686.iso"
  28. # sha256 ff7fd63be01093f5da234534db107b22f84a00e7ac63732cbb73340e17e2c3da
  29. # to add functionality for a contributor, use this conditional around their code:
  30. # change = changeforwhom profiles "contributorname"
  31. # iftrue change
  32. # # put code for that contributor here
  33. # # it will only run if mcorepup is run with their name included in profiles
  34. # fig
  35. # you want fastcomp to be 0
  36. # (removing the 1 works as well as putting a 0 after.)
  37. # set to 1 when trying the script out, will do less compression of sfs
  38. fastcomp 1
  39. isoname "freemediaos" plus isov
  40. function changeforwhom (profiles whom)
  41. now = profiles ; lcase ; split now " " ; instr now whom ; return now
  42. fig
  43. function changeforoption (profiles whom)
  44. p = profiles ; lcase ; split p " "
  45. find = whom plus "-" ; lcase
  46. forin t p
  47. now = instr t whom
  48. ifequal now 1
  49. profilelen = find ; len
  50. r = t ; len ; minus profilelen
  51. opt = t ; right r ; return opt
  52. fig
  53. next
  54. now return ""
  55. fig
  56. function tczpreps (pkg addpath)
  57. now = "mkdir -p /mnt/mkrefpup/tcz" ; shell
  58. now = "mkdir -p /mnt/mkrefpup/tcz/" plus pkg plus addpath ; shell
  59. fig
  60. function (tczbuild pkg)
  61. now = "mksquashfs /mnt/mkrefpup/tcz/" plus pkg plus " " plus "/mnt/mkrefpup/newiso/cde/optional/" plus pkg plus ".tcz -noappend" ; shell
  62. now = "md5sum /mnt/mkrefpup/newiso/cde/optional/" plus pkg plus ".tcz > /mnt/mkrefpup/newiso/cde/optional/" plus pkg plus ".tcz.md5.txt" ; shell
  63. fig
  64. function addquoted mainv toquote
  65. q 34 chr
  66. now mainv plus " " plus q plus toquote plus q return now
  67. fig
  68. function urf (p)
  69. # filename from url
  70. # ... return whats to the right of the rightmost "/" (or entire string if "/" not found)
  71. r p reverse instr r "/" minus 1
  72. ifmore r 0
  73. now p right r return now
  74. else
  75. now p return now
  76. fig
  77. fig
  78. function download (iso)
  79. now = iso
  80. now = urf iso
  81. u = urf iso
  82. ck = "ls" addquoted ck u plus " | wc -l" arrshell join ck " " int
  83. ifequal ck 0
  84. now "wget" addquoted now iso plus " 2> /dev/null" shell
  85. ck = "ls" addquoted ck u plus " | wc -l" arrshell join ck " " int print
  86. else
  87. now u colortext 15 plus " already exists, not downloading" prints colortext 7 "" print
  88. fig
  89. fig
  90. function gettcz (major pkg)
  91. base = "http://tinycorelinux.net/"
  92. pkgurl = base plus major plus "/x86/tcz/" plus pkg plus ".tcz" ; download pkgurl
  93. txturl = base plus major plus "/x86/tcz/" plus pkg plus ".tcz.md5.txt" ; download txturl
  94. depurl = base plus major plus "/x86/tcz/" plus pkg plus ".tcz.dep" ; download depurl
  95. fig
  96. function copytcz (major pkg topath)
  97. base = "cp '/mnt/mkrefpup/"
  98. pkgurl = base plus pkg plus ".tcz' " plus topath ; shell
  99. txturl = base plus pkg plus ".tcz.md5.txt' " plus topath ; shell
  100. depurl = base plus pkg plus ".tcz.dep' " plus topath ; shell
  101. fig
  102. function rmtcz (major pkg)
  103. base = "rm "
  104. pkgurl = base plus pkg plus ".tcz" ; shell
  105. txturl = base plus pkg plus ".tcz.md5.txt 2> /dev/null" ; shell
  106. depurl = base plus pkg plus ".tcz.dep 2> /dev/null" ; shell
  107. fig
  108. function addpackages (pkgtype major pkgs)
  109. addpkg = split pkgs " "
  110. forin packages addpkg
  111. now = gettcz major packages
  112. next
  113. fig
  114. function copypackages (pkgtype major pkgs topath)
  115. addpkg = split pkgs " "
  116. forin packages addpkg
  117. now = copytcz major packages topath
  118. next
  119. fig
  120. function rmpackages (pkgtype major pkgs)
  121. rmpkg = split pkgs " "
  122. forin packages rmpkg
  123. now = rmtcz major packages
  124. next
  125. fig
  126. pwd "pwd" arrshell join pwd ""
  127. # setup and some old stuff from mkfigos that wont go in the build by default
  128. urfcoreplusurl = urf coreplusurl
  129. now download coreplusurl
  130. fpath pwd plus "/" plus urfcoreplusurl
  131. now "mkdir /mnt/mkrefpup" shell
  132. now "mkdir /mnt/mkrefpup/newiso" shell
  133. now "mkdir /mnt/mkrefpup/fs" shell
  134. now "mkdir /mnt/mkrefpup/coreplus" shell
  135. now "mkdir /mnt/mkrefpup/coreplusfs" shell
  136. nowplus "cd /mnt/mkrefpup ; if [ -e fig46.py ] ; then echo ; else wget -O- 'https://notabug.org/figosdev/figos/raw/master/el3ZRly.png' > logo.16 ; "
  137. now nowplus plus "wget 'https://notabug.org/figosdev/figos/raw/master/fig46.py' ; wget 'https://notabug.org/figosdev/figos/raw/master/alex23.py' ; chmod +x fig*.py alex*.py ; fi" shell
  138. q 34 chr
  139. now "mount " plus q plus pwd plus "/" plus urfcoreplusurl plus q plus " /mnt/mkrefpup/coreplus -o loop" shell
  140. now "mkdir /mnt/mkrefpup/newiso/dists" shell
  141. now "mkdir /mnt/mkrefpup/newiso/.disk" shell
  142. now "mkdir /mnt/mkrefpup/newiso/preseed" shell
  143. now "mkdir /mnt/mkrefpup/newiso/casper" shell
  144. now "mkdir /mnt/mkrefpup/newiso/isolinux" shell
  145. now "cp -r /mnt/mkrefpup/coreplus/dists/* /mnt/mkrefpup/newiso/dists/" shell
  146. now "cp -r /mnt/mkrefpup/coreplus/.disk/* /mnt/mkrefpup/newiso/.disk/" shell
  147. now "cp -r /mnt/mkrefpup/coreplus/preseed/* /mnt/mkrefpup/newiso/preseed/" shell
  148. now "cp -r /mnt/mkrefpup/coreplus/casper/initrd* /mnt/mkrefpup/coreplus/casper/vmlinuz* /mnt/mkrefpup/newiso/casper/" shell
  149. now "cp /mnt/mkrefpup/coreplus/isolinux/* /mnt/mkrefpup/newiso/isolinux" shell
  150. # most of the changes are made from here, most of the changes are optional and controlled by the profiles line
  151. change = changeforwhom profiles "wanderer-core"
  152. iftrue change
  153. now "rm /mnt/mkrefpup/newiso/isolinux/f1 /mnt/mkrefpup/newiso/isolinux/menu.c32" ; shell
  154. rep = "[ " ; prints ; "removed f1 and menu.c32 for core (corepup-8 standard)" colortext 10 prints colortext 7 " ]" print
  155. fig
  156. #now = "mkdir -p /mnt/mkrefpup/newiso/cde/optional 2> /dev/null" ; shell
  157. #now = "/mnt/mkrefpup/newiso/cde/optional" ; chdir
  158. change = changeforwhom profiles "wanderer"
  159. iftrue change
  160. now = "/mnt/mkrefpup" ; chdir
  161. now = addpackages "tcz" "9.x" "glib1 gtk1 leafpad emelfm dillo"
  162. now = copypackages "tcz" "9.x" "glib1 gtk1 leafpad emelfm dillo" "/mnt/mkrefpup/newiso/cde/optional"
  163. now = "/mnt/mkrefpup/newiso/cde/optional" ; chdir
  164. # sha256 47e738d43a97397f731c741d55755be57119a114475031f627877e5646fb36cf
  165. now = "wget -O- https://ptpb.pw/0fdv > /mnt/mkrefpup/newiso/cde/optional/corepup.tcz" ; shell
  166. rep = "[ " ; prints ; "added glib1 gtk1 leafpad emelfm dillo" colortext 10 prints colortext 7 " ]" print
  167. fig
  168. change = changeforwhom profiles "wanderer-minimal"
  169. iftrue change
  170. now = rmpackages "tcz" "" "firmware-ipw2100 firmware-ipw2200 fltk-1.1.10 firmware_iwlwifi-7260 glib1"
  171. now = rmpackages "tcz" "" "gtk1 glib2 gdk-pixbuf2 gtk2 libxml2 expat2 firmware-broadcom_bnx2 perl5 libEGL"
  172. now = rmpackages "tcz" "" "libGL libFS libXxf86dga libXinerama liblzma ttf-bitstream-vera Xorg-7.7-lib"
  173. now = rmpackages "tcz" "" "udev-lib libXvmc leafpad libxshmfence libglade flwm_topside firmware-myri10ge"
  174. now = rmpackages "tcz" "" "libXdamage firmware-vxge libxkbfile readline firmware wl-modules-3.16.6-tinycore"
  175. now = rmpackages "tcz" "" "ndiswrapper-modules-3.16.6-tinycore wireless-3.16.6-tinycore firmware-zd1211"
  176. now = rmpackages "tcz" "" "libXcomposite libtiff firmware-openfwwf fontconfig librsvg libpci"
  177. now = rmpackages "tcz" "" "fribidi libffi wifi firmware-iwlwifi atk tc-install libnl openssl emelfm libdrm"
  178. now = rmpackages "tcz" "" "firmware-ueagle-atm libXxf86vm icewm jwm flwm pixman firmware-netxen"
  179. now = rmpackages "tcz" "" "gamin firmware-radeon libstartup-notification libcroco pango dillo cairo"
  180. now = rmpackages "tcz" "" "advcomp tar ndiswrapper ezremaster b43-fwcutter libXcursor firmware-libertas"
  181. now = rmpackages "tcz" "" "libXres ncurses libXfixes pci-utils mkisofs-tools wireless_tools"
  182. now = rmpackages "tcz" "" "dosfstools firmware-atheros kmaps libXss libpciaccess libXft wpa_supplicant"
  183. now = rmpackages "tcz" "" "libXtst libXv libXaw iw libiw firmware-iwimax libdmx hackedbox openbox"
  184. now = rmpackages "tcz" "" "fluxbox syslinux firmware-broadcom_bcm43xx firmware-ti-connectivity harfbuzz"
  185. now = "rm ../wififirmware.instlist libX11.tcz.dep imlib2.tcz.dep " ; shell
  186. now = "rm ../wifi.instlist fltk-1.3.tcz.dep libxcb.tcz.dep " ; shell
  187. now = "rm ../installer.instlist libXi.tcz.dep libXpm.tcz.dep " ; shell
  188. now = "rm ../ndiswrapper.instlist imlib2-bin.tcz.dep wbar.tcz.dep " ; shell
  189. now = "rm ../remaster.instlist libXrandr.tcz.dep libXrender.tcz.dep " ; shell
  190. now = "rm ../kmaps.instlist Xlibs.tcz.dep Xprogs.tcz.dep " ; shell
  191. now = "rm ../xfbase.lst libXt.tcz.dep libXfont.tcz.dep " ; shell
  192. now = "rm ../xibase.lst libXext.tcz.dep libXmu.tcz.dep " ; shell
  193. now = "rm ../xwbase.lst " ; shell
  194. rep = "[ " ; prints ; "changed to convert corepup to corepup minimal (corepup-7 standard)" colortext 10 prints colortext 7 " ]" print
  195. fig
  196. change = changeforwhom profiles "wanderer"
  197. iftrue change
  198. now = "echo aterm.tcz > ../copy2fs.lst ; echo fltk-1.3.tcz >> ../copy2fs.lst" ; shell
  199. now = "echo corepup-jwm.tcz >> ../copy2fs.lst ; echo freetype.tcz >> ../copy2fs.lst" ; shell
  200. now = "echo imlib2-bin.tcz >> ../copy2fs.lst ; echo imlib2.tcz >> ../copy2fs.lst" ; shell
  201. now = "echo libfontenc.tcz >> ../copy2fs.lst ; echo libICE.tcz >> ../copy2fs.lst" ; shell
  202. now = "echo libjpeg-turbo.tcz >> ../copy2fs.lst ; echo libpng.tcz >> ../copy2fs.lst" ; shell
  203. now = "echo libSM.tcz >> ../copy2fs.lst ; echo libX11.tcz >> ../copy2fs.lst" ; shell
  204. now = "echo libXau.tcz >> ../copy2fs.lst ; echo libxcb.tcz >> ../copy2fs.lst" ; shell
  205. now = "echo libXdmcp.tcz >> ../copy2fs.lst ; echo libXext.tcz >> ../copy2fs.lst" ; shell
  206. now = "echo libXfont.tcz >> ../copy2fs.lst ; echo libXi.tcz >> ../copy2fs.lst" ; shell
  207. now = "echo libXmu.tcz >> ../copy2fs.lst ; echo libXpm.tcz >> ../copy2fs.lst" ; shell
  208. now = "echo libXrandr.tcz >> ../copy2fs.lst ; echo libXrender.tcz >> ../copy2fs.lst" ; shell
  209. now = "echo libXt.tcz >> ../copy2fs.lst ; echo wbar.tcz >> ../copy2fs.lst" ; shell
  210. now = "echo Xlibs.tcz >> ../copy2fs.lst ; echo Xprogs.tcz >> ../copy2fs.lst" ; shell
  211. now = "echo Xvesa.tcz >> ../copy2fs.lst " ; shell
  212. rep = "[ " ; prints ; "added copy2fs edits for corepup standard (all versions so far)" colortext 10 prints colortext 7 " ]" print
  213. fig
  214. change = changeforwhom profiles "wanderer-core"
  215. iftrue change
  216. now "cd .. ; rm xbase.lst copy2fs.lst onboot.lst" ; shell
  217. 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
  218. now "rm Xvesa.tcz.md5.txt libxcb.tcz.md5.txt libfontenc.tcz.md5.txt freetype.tcz.md5.txt libpng.tcz.md5.txt" ; shell
  219. 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
  220. now "rm libXdmcp.tcz.md5.txt wbar.tcz.md5.txt libXrandr.tcz.md5.txt libXrender.tcz.md5.txt Xlibs.tcz.md5.txt" ; shell
  221. now "rm Xprogs.tcz.md5.txt libXt.tcz.md5.txt libXfont.tcz.md5.txt libXext.tcz.md5.txt libXau.tcz.md5.txt" ; shell
  222. now "rm libXmu.tcz.md5.txt libX11.tcz imlib2.tcz fltk-1.3.tcz libICE.tcz" ; shell
  223. now "rm libSM.tcz Xvesa.tcz libxcb.tcz libfontenc.tcz freetype.tcz" ; shell
  224. now "rm libpng.tcz libXi.tcz libXpm.tcz aterm.tcz imlib2-bin.tcz" ; shell
  225. now "rm libjpeg-turbo.tcz libXdmcp.tcz corepup.tcz wbar.tcz libXrandr.tcz" ; shell
  226. now "rm libXrender.tcz Xlibs.tcz Xprogs.tcz libXt.tcz libXfont.tcz" ; shell
  227. now "rm libXext.tcz libXau.tcz libXmu.tcz" ; shell
  228. rep = "[ " ; prints ; "removed over 40 packages, for core standard (corepup-8 standard)" colortext 10 prints colortext 7 " ]" print
  229. fig
  230. change = changeforwhom profiles "wanderer-core"
  231. iftrue change
  232. nl 10 chr
  233. filetext = arrcurl "http://murga-linux.com/puppy/viewtopic.php?mode=attach&id=117709"
  234. openname = "/mnt/mkrefpup/newiso/isolinux/f2" ; open "w"
  235. now = join filetext nl ; fprint openname
  236. now = openname ; close
  237. filetext = arrcurl "http://murga-linux.com/puppy/viewtopic.php?mode=attach&id=117710"
  238. openname = "/mnt/mkrefpup/newiso/isolinux/f3" ; open "w"
  239. now = join filetext nl ; fprint openname
  240. now = openname ; close
  241. filetext = arrcurl "http://murga-linux.com/puppy/viewtopic.php?mode=attach&id=117711"
  242. openname = "/mnt/mkrefpup/newiso/isolinux/f4" ; open "w"
  243. now = join filetext nl ; fprint openname
  244. now = openname ; close
  245. filetext = arrcurl "http://murga-linux.com/puppy/viewtopic.php?mode=attach&id=117712"
  246. openname = "/mnt/mkrefpup/newiso/isolinux/boot.msg" ; open "w"
  247. now = join filetext nl ; fprint openname
  248. now = openname ; close
  249. rep = "[ " ; prints ; "boot edits made for corepup-8 standard" colortext 10 prints colortext 7 " ]" print
  250. fig
  251. change = changeforwhom profiles "figosdev"
  252. iftrue change
  253. now = "/mnt/mkrefpup" ; chdir
  254. now = addpackages "tcz" "9.x" "syslinux"
  255. # add python 2
  256. now = addpackages "tcz" "9.x" "python libffi ncurses readline gdbm openssl bzip2-lib sqlite3"
  257. # add curl
  258. now = addpackages "tcz" "9.x" "libgpg-error libgcrypt libssh2 libidn curl"
  259. now = copypackages "tcz" "9.x" "syslinux" "/mnt/mkrefpup/newiso/cde/optional"
  260. # add python 2
  261. now = copypackages "tcz" "9.x" "python libffi ncurses readline gdbm openssl bzip2-lib sqlite3" "/mnt/mkrefpup/newiso/cde/optional"
  262. # add curl
  263. now = copypackages "tcz" "9.x" "libgpg-error libgcrypt libssh2 libidn curl" "/mnt/mkrefpup/newiso/cde/optional"
  264. now = "/mnt/mkrefpup/newiso/cde/optional" ; chdir
  265. # add qemu-x86 (requires curl)
  266. # now = addpackages "tcz" "9.x" "qemu-x86 libcap-ng gamin glib2 qemu-common pixman udev-lib libusb libasound libmad SDL"
  267. rep = "[ " ; prints ; "added python and syslinux per figosdev" colortext 10 prints colortext 7 " ]" print
  268. fig
  269. now = "/mnt/mkrefpup" ; chdir
  270. change = changeforwhom profiles "figosdev-more"
  271. iftrue change
  272. #now "cp /mnt/mkrefpup/coreplus/live/vmlinuz /mnt/mkrefpup/newiso" shell
  273. # now "cp /mnt/mkrefpup/coreplus/live/initrd.img /mnt/mkrefpup/newiso/initrd.gz" shell
  274. now "mkdir /mnt/mkrefpup/newiso/LiveOS" shell
  275. rep = "[ " ; prints ; "creating directory that goes with some other distro" colortext 10 prints colortext 7 " ]" print
  276. fig
  277. now "cp /mnt/mkrefpup/coreplus/casper/vmlinuz /mnt/mkrefpup/newiso/casper/" shell
  278. now "cp /mnt/mkrefpup/coreplus/casper/initrd /mnt/mkrefpup/newiso/casper/" shell
  279. # now "cp /mnt/mkrefpup/coreplus/live/filesystem.squashfs /mnt/mkrefpup/newiso/live" shell
  280. function fixpings force isoname fromt tot fname
  281. try
  282. fc arropen fname
  283. ck join fc " " instr ck "auto-edited by mk"
  284. iftrue force
  285. ck 0
  286. fig
  287. iftrue ck
  288. pass
  289. else
  290. now fname open "w"
  291. forin t fc
  292. text split t fromt join text tot
  293. now text fprint fname
  294. next
  295. now " # auto-edited by mk" plus isoname fprint fname
  296. now fname close
  297. q 34 chr
  298. now "chmod +x " plus q plus fname plus q shell
  299. fig
  300. except
  301. pass
  302. resume
  303. fig
  304. #now fixpings 0 isoname "VSHIFT 2" "VSHIFT 14" "/mnt/mkrefpup/newiso/isolinux/isolinux.cfg"
  305. #now fixpings 0 isoname "Italiano" "it_IT locale" "/mnt/mkrefpup/newiso/isolinux/isolinux.cfg"
  306. #now fixpings 1 isoname "Void Linux" "Fig OS" "/mnt/mkrefpup/newiso/isolinux/isolinux.cfg"
  307. #now "cat /mnt/mkrefpup/iso/isolinux.cfg | head -9 | sed 's/default puppy/default live/g' > /mnt/mkrefpup/newiso/isolinux.cfg" shell
  308. #now "cat /mnt/mkrefpup/coreplus/isolinux/live.cfg > /mnt/mkrefpup/newiso/isolinux.cfg" shell
  309. now "mkdir /mnt/mkrefpup/coreplusfs/" shell
  310. now "/mnt/mkrefpup/coreplusfs" chdir
  311. now "unsquashfs -p 1 /mnt/mkrefpup/coreplus/casper/filesystem.squashfs" shell
  312. now "rm -rf /mnt/mkrefpup/coreplusfs/squashfs-root/usr/share/gimp" shell
  313. now "rm -rf /mnt/mkrefpup/coreplusfs/squashfs-root/usr/lib/gimp" shell
  314. now "rm -rf /mnt/mkrefpup/coreplusfs/squashfs-root/var/lib/dpkg/info/gimp*" shell
  315. now "rm -rf /mnt/mkrefpup/coreplusfs/squashfs-root/var/lib/dpkg/info/libgimp*" shell
  316. now "rm -rf /mnt/mkrefpup/coreplusfs/squashfs-root/usr/bin/gimp*" shell
  317. now "rm -rf /mnt/mkrefpup/coreplusfs/squashfs-root/etc/gimp" shell
  318. now "rm -rf /mnt/mkrefpup/coreplusfs/squashfs-root/var/lib/doc-base/documents/gimp*" shell
  319. now "rm -rf /mnt/mkrefpup/coreplusfs/squashfs-root/usr/lib/libgimp*" shell
  320. now "rm -rf /mnt/mkrefpup/coreplusfs/squashfs-root/usr/lib/libreoffice" shell
  321. now "rm -rf /mnt/mkrefpup/coreplusfs/squashfs-root/usr/share/libreoffice" shell
  322. now "rm -rf /mnt/mkrefpup/coreplusfs/squashfs-root/usr/lib/icedove*" shell
  323. now "rm -rf /mnt/mkrefpup/coreplusfs/squashfs-root/usr/share/backgrounds" shell
  324. now "rm -rf /mnt/mkrefpup/coreplusfs/squashfs-root/usr/share/mythes" shell
  325. now "rm -rf /mnt/mkrefpup/coreplusfs/squashfs-root/usr/share/hplip" shell
  326. now "rm -rf /mnt/mkrefpup/coreplusfs/squashfs-root/usr/share/gutenprint" shell
  327. now "rm -rf /mnt/mkrefpup/coreplusfs/squashfs-root/usr/lib/cups*" shell
  328. now "rm -rf /mnt/mkrefpup/coreplusfs/squashfs-root/usr/share/mate*" shell
  329. #apt-xapian
  330. now "rm -rf /mnt/mkrefpup/coreplusfs/squashfs-root/usr/share/app-install" ; shell
  331. now "rm -rf /mnt/mkrefpup/coreplusfs/squashfs-root/usr/share/locale/de" ; shell
  332. now "rm -rf /mnt/mkrefpup/coreplusfs/squashfs-root/usr/share/locale/ru" ; shell
  333. now "rm -rf /mnt/mkrefpup/coreplusfs/squashfs-root/usr/share/locale/el" ; shell
  334. now "rm -rf /mnt/mkrefpup/coreplusfs/squashfs-root/usr/share/locale/pl" ; shell
  335. now "rm -rf /mnt/mkrefpup/coreplusfs/squashfs-root/usr/share/locale/nl" ; shell
  336. now "rm -rf /mnt/mkrefpup/coreplusfs/squashfs-root/usr/share/locale/ja" ; shell
  337. now "rm -rf /mnt/mkrefpup/coreplusfs/squashfs-root/usr/share/locale/mr" ; shell
  338. now "rm -rf /mnt/mkrefpup/coreplusfs/squashfs-root/usr/share/locale/da" ; shell
  339. now "rm -rf /mnt/mkrefpup/coreplusfs/squashfs-root/usr/share/locale/sr" ; shell
  340. now "rm -rf /mnt/mkrefpup/coreplusfs/squashfs-root/usr/share/locale/gl" ; shell
  341. now "rm -rf /mnt/mkrefpup/coreplusfs/squashfs-root/usr/share/locale/hu" ; shell
  342. now "rm -rf /mnt/mkrefpup/coreplusfs/squashfs-root/usr/share/locale/vi" ; shell
  343. now "rm -rf /mnt/mkrefpup/coreplusfs/squashfs-root/usr/share/locale/cs" ; shell
  344. now "rm -rf /mnt/mkrefpup/coreplusfs/squashfs-root/usr/share/locale/tr" ; shell
  345. now "rm -rf /mnt/mkrefpup/coreplusfs/squashfs-root/usr/share/locale/kn" ; shell
  346. now "rm -rf /mnt/mkrefpup/coreplusfs/squashfs-root/usr/share/locale/sv" ; shell
  347. now "rm -rf /mnt/mkrefpup/coreplusfs/squashfs-root/usr/share/locale/gu" ; shell
  348. now "rm -rf /mnt/mkrefpup/coreplusfs/squashfs-root/usr/share/locale/zh*" ; shell
  349. now "rm -rf /mnt/mkrefpup/coreplusfs/squashfs-root/usr/share/locale/ca" ; shell
  350. now "rm -rf /mnt/mkrefpup/coreplusfs/squashfs-root/usr/share/locale/pa" ; shell
  351. now "rm -rf /mnt/mkrefpup/coreplusfs/squashfs-root/usr/share/locale/sl" ; shell
  352. now "rm -rf /mnt/mkrefpup/coreplusfs/squashfs-root/usr/share/locale/sk" ; shell
  353. now "rm -rf /mnt/mkrefpup/coreplusfs/squashfs-root/usr/share/locale/ml" ; shell
  354. now "rm -rf /mnt/mkrefpup/coreplusfs/squashfs-root/usr/share/locale/ko" ; shell
  355. now "rm -rf /mnt/mkrefpup/coreplusfs/squashfs-root/usr/share/locale/bn" ; shell
  356. now "rm -rf /mnt/mkrefpup/coreplusfs/squashfs-root/usr/share/locale-langpack/de" ; shell
  357. now "rm -rf /mnt/mkrefpup/coreplusfs/squashfs-root/usr/share/locale-langpack/ru" ; shell
  358. now "rm -rf /mnt/mkrefpup/coreplusfs/squashfs-root/usr/share/locale-langpack/el" ; shell
  359. now "rm -rf /mnt/mkrefpup/coreplusfs/squashfs-root/usr/share/locale-langpack/pl" ; shell
  360. now "rm -rf /mnt/mkrefpup/coreplusfs/squashfs-root/usr/share/locale-langpack/nl" ; shell
  361. now "rm -rf /mnt/mkrefpup/coreplusfs/squashfs-root/usr/share/locale-langpack/ja" ; shell
  362. now "rm -rf /mnt/mkrefpup/coreplusfs/squashfs-root/usr/share/locale-langpack/mr" ; shell
  363. now "rm -rf /mnt/mkrefpup/coreplusfs/squashfs-root/usr/share/locale-langpack/da" ; shell
  364. now "rm -rf /mnt/mkrefpup/coreplusfs/squashfs-root/usr/share/locale-langpack/sr" ; shell
  365. now "rm -rf /mnt/mkrefpup/coreplusfs/squashfs-root/usr/share/locale-langpack/gl" ; shell
  366. now "rm -rf /mnt/mkrefpup/coreplusfs/squashfs-root/usr/share/locale-langpack/hu" ; shell
  367. now "rm -rf /mnt/mkrefpup/coreplusfs/squashfs-root/usr/share/locale-langpack/vi" ; shell
  368. now "rm -rf /mnt/mkrefpup/coreplusfs/squashfs-root/usr/share/locale-langpack/cs" ; shell
  369. now "rm -rf /mnt/mkrefpup/coreplusfs/squashfs-root/usr/share/locale-langpack/tr" ; shell
  370. now "rm -rf /mnt/mkrefpup/coreplusfs/squashfs-root/usr/share/locale-langpack/kn" ; shell
  371. now "rm -rf /mnt/mkrefpup/coreplusfs/squashfs-root/usr/share/locale-langpack/sv" ; shell
  372. now "rm -rf /mnt/mkrefpup/coreplusfs/squashfs-root/usr/share/locale-langpack/gu" ; shell
  373. now "rm -rf /mnt/mkrefpup/coreplusfs/squashfs-root/usr/share/locale-langpack/zh*" ; shell
  374. now "rm -rf /mnt/mkrefpup/coreplusfs/squashfs-root/usr/share/locale-langpack/ca" ; shell
  375. now "rm -rf /mnt/mkrefpup/coreplusfs/squashfs-root/usr/share/locale-langpack/pa" ; shell
  376. now "rm -rf /mnt/mkrefpup/coreplusfs/squashfs-root/usr/share/locale-langpack/sl" ; shell
  377. now "rm -rf /mnt/mkrefpup/coreplusfs/squashfs-root/usr/share/locale-langpack/sk" ; shell
  378. now "rm -rf /mnt/mkrefpup/coreplusfs/squashfs-root/usr/share/locale-langpack/ml" ; shell
  379. now "rm -rf /mnt/mkrefpup/coreplusfs/squashfs-root/usr/share/locale-langpack/ko" ; shell
  380. now "rm -rf /mnt/mkrefpup/coreplusfs/squashfs-root/usr/share/locale-langpack/bn" ; shell
  381. now "rm -rf /mnt/mkrefpup/coreplusfs/squashfs-root/usr/share/help-langpack/bn" ; shell
  382. now "rm -rf /mnt/mkrefpup/coreplusfs/squashfs-root/usr/share/gnome/help-langpack" ; shell
  383. now "rm -rf /mnt/mkrefpup/coreplusfs/squashfs-root/usr/share/gnome/help/" ; shell
  384. now "rm -rf /mnt/mkrefpup/coreplusfs/squashfs-root/usr/share/help-langpack/ca/gnome-sudoku/figures" ; shell
  385. now "rm -rf /mnt/mkrefpup/coreplusfs/squashfs-root/usr/share/help-langpack/cs/gnome-sudoku/figures" ; shell
  386. now "rm -rf /mnt/mkrefpup/coreplusfs/squashfs-root/usr/share/help-langpack/cs/xchat-gnome/figures" ; shell
  387. now "rm -rf /mnt/mkrefpup/coreplusfs/squashfs-root/usr/share/help-langpack/de/gnome-mahjongg/figures" ; shell
  388. now "rm -rf /mnt/mkrefpup/coreplusfs/squashfs-root/usr/share/help-langpack/de/gnome-system-log/figures" ; shell
  389. now "rm -rf /mnt/mkrefpup/coreplusfs/squashfs-root/usr/share/help-langpack/el/gnome-mahjongg/figures" ; shell
  390. now "rm -rf /mnt/mkrefpup/coreplusfs/squashfs-root/usr/share/help-langpack/el/gnome-sudoku/figures" ; shell
  391. now "rm -rf /mnt/mkrefpup/coreplusfs/squashfs-root/usr/share/help-langpack/el/gnome-system-log/figures" ; shell
  392. now "rm -rf /mnt/mkrefpup/coreplusfs/squashfs-root/usr/share/help-langpack/es/gnome-sudoku/figures" ; shell
  393. now "rm -rf /mnt/mkrefpup/coreplusfs/squashfs-root/usr/share/help-langpack/eu/gnome-sudoku/figures" ; shell
  394. now "rm -rf /mnt/mkrefpup/coreplusfs/squashfs-root/usr/share/help-langpack/fr/gnome-mahjongg/figures" ; shell
  395. now "rm -rf /mnt/mkrefpup/coreplusfs/squashfs-root/usr/share/help-langpack/fr/gnome-system-log/figures" ; shell
  396. now "rm -rf /mnt/mkrefpup/coreplusfs/squashfs-root/usr/share/help-langpack/fr/xchat-gnome/figures" ; shell
  397. now "rm -rf /mnt/mkrefpup/coreplusfs/squashfs-root/usr/share/help-langpack/hu/gnome-mahjongg/figures" ; shell
  398. now "rm -rf /mnt/mkrefpup/coreplusfs/squashfs-root/usr/share/help-langpack/it/gnome-sudoku/figures" ; shell
  399. now "rm -rf /mnt/mkrefpup/coreplusfs/squashfs-root/usr/share/help-langpack/it/xchat-gnome/figures" ; shell
  400. now "rm -rf /mnt/mkrefpup/coreplusfs/squashfs-root/usr/share/help-langpack/pt_BR/gnome-sudoku/figures" ; shell
  401. now "rm -rf /mnt/mkrefpup/coreplusfs/squashfs-root/usr/share/help-langpack/pt_BR/gnome-system-log/figures" ; shell
  402. now "rm -rf /mnt/mkrefpup/coreplusfs/squashfs-root/usr/share/help-langpack/sr/gnome-sudoku/figures" ; shell
  403. now "rm -rf /mnt/mkrefpup/coreplusfs/squashfs-root/usr/share/help-langpack/sv/gnome-sudoku/figures" ; shell
  404. now "rm -rf /mnt/mkrefpup/coreplusfs/squashfs-root/usr/share/help" ; shell
  405. now "rm -rf /mnt/mkrefpup/coreplusfs/squashfs-root/usr/share/icons" ; shell
  406. now "rm -rf /mnt/mkrefpup/coreplusfs/squashfs-root/usr/share/doc/language-pack-gnome*" ; shell
  407. now "rm -rf /mnt/mkrefpup/coreplusfs/squashfs-root/usr/share/help-langpack/ca/gnome-user-share" ; shell
  408. now "rm -rf /mnt/mkrefpup/coreplusfs/squashfs-root/usr/share/help-langpack/ca/xchat-gnome" ; shell
  409. now "rm -rf /mnt/mkrefpup/coreplusfs/squashfs-root/usr/share/help-langpack/cs/gnome-user-share" ; shell
  410. now "rm -rf /mnt/mkrefpup/coreplusfs/squashfs-root/usr/share/help-langpack/cs/xchat-gnome" ; shell
  411. now "rm -rf /mnt/mkrefpup/coreplusfs/squashfs-root/usr/share/help-langpack/da/xchat-gnome" ; shell
  412. now "rm -rf /mnt/mkrefpup/coreplusfs/squashfs-root/usr/share/help-langpack/de/gnome-user-share" ; shell
  413. now "rm -rf /mnt/mkrefpup/coreplusfs/squashfs-root/usr/share/help-langpack/de/xchat-gnome" ; shell
  414. now "rm -rf /mnt/mkrefpup/coreplusfs/squashfs-root/usr/share/help-langpack/el/gnome-user-share" ; shell
  415. now "rm -rf /mnt/mkrefpup/coreplusfs/squashfs-root/usr/share/help-langpack/en_GB/gnome-user-share" ; shell
  416. now "rm -rf /mnt/mkrefpup/coreplusfs/squashfs-root/usr/share/help-langpack/es/gnome-user-share" ; shell
  417. now "rm -rf /mnt/mkrefpup/coreplusfs/squashfs-root/usr/share/help-langpack/es/xchat-gnome" ; shell
  418. now "rm -rf /mnt/mkrefpup/coreplusfs/squashfs-root/usr/share/help-langpack/eu/gnome-user-share" ; shell
  419. now "rm -rf /mnt/mkrefpup/coreplusfs/squashfs-root/usr/share/help-langpack/fr/gnome-user-share" ; shell
  420. now "rm -rf /mnt/mkrefpup/coreplusfs/squashfs-root/usr/share/help-langpack/fr/xchat-gnome" ; shell
  421. now "rm -rf /mnt/mkrefpup/coreplusfs/squashfs-root/usr/share/help-langpack/gl/gnome-user-share" ; shell
  422. now "rm -rf /mnt/mkrefpup/coreplusfs/squashfs-root/usr/share/help-langpack/it/gnome-user-share" ; shell
  423. now "rm -rf /mnt/mkrefpup/coreplusfs/squashfs-root/usr/share/help-langpack/it/xchat-gnome" ; shell
  424. now "rm -rf /mnt/mkrefpup/coreplusfs/squashfs-root/usr/share/help-langpack/oc/xchat-gnome" ; shell
  425. now "rm -rf /mnt/mkrefpup/coreplusfs/squashfs-root/usr/share/help-langpack/pt_BR/gnome-user-share" ; shell
  426. now "rm -rf /mnt/mkrefpup/coreplusfs/squashfs-root/usr/share/help-langpack/pt_BR/xchat-gnome" ; shell
  427. now "rm -rf /mnt/mkrefpup/coreplusfs/squashfs-root/usr/share/help-langpack/ro/gnome-user-share" ; shell
  428. now "rm -rf /mnt/mkrefpup/coreplusfs/squashfs-root/usr/share/help-langpack/ru/gnome-user-share" ; shell
  429. now "rm -rf /mnt/mkrefpup/coreplusfs/squashfs-root/usr/share/help-langpack/sl/gnome-user-share" ; shell
  430. now "rm -rf /mnt/mkrefpup/coreplusfs/squashfs-root/usr/share/help-langpack/sl/xchat-gnome" ; shell
  431. now "rm -rf /mnt/mkrefpup/coreplusfs/squashfs-root/usr/share/help-langpack/sv/gnome-user-share" ; shell
  432. now "rm -rf /mnt/mkrefpup/coreplusfs/squashfs-root/usr/share/help-langpack/sv/xchat-gnome" ; shell
  433. now "rm -rf /mnt/mkrefpup/coreplusfs/squashfs-root/usr/share/help-langpack/th/xchat-gnome" ; shell
  434. now "rm -rf /mnt/mkrefpup/coreplusfs/squashfs-root/usr/share/help-langpack/zh_CN/gnome-user-share" ; shell
  435. now "rm -rf /mnt/mkrefpup/coreplusfs/squashfs-root/usr/share/help-langpack/zh_CN/xchat-gnome" ; shell
  436. now "rm -rf /mnt/mkrefpup/coreplusfs/squashfs-root/usr/share/help-langpack/ca/gnome-help" ; shell
  437. now "rm -rf /mnt/mkrefpup/coreplusfs/squashfs-root/usr/share/help-langpack/cs/gnome-help" ; shell
  438. now "rm -rf /mnt/mkrefpup/coreplusfs/squashfs-root/usr/share/help-langpack/de/gnome-help" ; shell
  439. now "rm -rf /mnt/mkrefpup/coreplusfs/squashfs-root/usr/share/help-langpack/el/gnome-help" ; shell
  440. now "rm -rf /mnt/mkrefpup/coreplusfs/squashfs-root/usr/share/help-langpack/es/gnome-help" ; shell
  441. now "rm -rf /mnt/mkrefpup/coreplusfs/squashfs-root/usr/share/help-langpack/fi/gnome-help" ; shell
  442. now "rm -rf /mnt/mkrefpup/coreplusfs/squashfs-root/usr/share/help-langpack/fr/gnome-help" ; shell
  443. now "rm -rf /mnt/mkrefpup/coreplusfs/squashfs-root/usr/share/help-langpack/gl/gnome-help" ; shell
  444. now "rm -rf /mnt/mkrefpup/coreplusfs/squashfs-root/usr/share/help-langpack/hi/gnome-help" ; shell
  445. now "rm -rf /mnt/mkrefpup/coreplusfs/squashfs-root/usr/share/help-langpack/hu/gnome-help" ; shell
  446. now "rm -rf /mnt/mkrefpup/coreplusfs/squashfs-root/usr/share/help-langpack/id/gnome-help" ; shell
  447. now "rm -rf /mnt/mkrefpup/coreplusfs/squashfs-root/usr/share/help-langpack/it/gnome-help" ; shell
  448. now "rm -rf /mnt/mkrefpup/coreplusfs/squashfs-root/usr/share/help-langpack/ja/gnome-help" ; shell
  449. now "rm -rf /mnt/mkrefpup/coreplusfs/squashfs-root/usr/share/help-langpack/lv/gnome-help" ; shell
  450. now "rm -rf /mnt/mkrefpup/coreplusfs/squashfs-root/usr/share/help-langpack/nl/gnome-help" ; shell
  451. now "rm -rf /mnt/mkrefpup/coreplusfs/squashfs-root/usr/share/help-langpack/pa/gnome-help" ; shell
  452. now "rm -rf /mnt/mkrefpup/coreplusfs/squashfs-root/usr/share/help-langpack/pt_BR/gnome-help" ; shell
  453. now "rm -rf /mnt/mkrefpup/coreplusfs/squashfs-root/usr/share/help-langpack/ru/gnome-help" ; shell
  454. now "rm -rf /mnt/mkrefpup/coreplusfs/squashfs-root/usr/share/help-langpack/sl/gnome-help" ; shell
  455. now "rm -rf /mnt/mkrefpup/coreplusfs/squashfs-root/usr/share/help-langpack/sr/gnome-help" ; shell
  456. now "rm -rf /mnt/mkrefpup/coreplusfs/squashfs-root/usr/share/help-langpack/sv/gnome-help" ; shell
  457. now "rm -rf /mnt/mkrefpup/coreplusfs/squashfs-root/usr/share/help-langpack/ta/gnome-help" ; shell
  458. now "rm -rf /mnt/mkrefpup/coreplusfs/squashfs-root/usr/share/help-langpack/vi/gnome-help" ; shell
  459. now "rm -rf /mnt/mkrefpup/coreplusfs/squashfs-root/usr/share/help-langpack/zh_CN/gnome-help" ; shell
  460. dpath "/mnt/mkrefpup/coreplusfs/squashfs-root/var/cache/apt" chdir
  461. now download "http://archive.trisquel.info/trisquel/pool/main/u/upstart/upstart-sysv_1.13.2-0ubuntu21.1_i386.deb"
  462. # add icewm
  463. dpath "/mnt/mkrefpup/coreplusfs/squashfs-root/var/cache/apt/archives" chdir
  464. now download "http://archive.trisquel.info/trisquel/pool/main/liba/libart-lgpl/libart-2.0-2_2.3.21-2_i386.deb"
  465. now download "http://archive.trisquel.info/trisquel/pool/main/libb/libbonobo/libbonobo2-common_2.32.1-3_all.deb"
  466. now download "http://archive.trisquel.info/trisquel/pool/main/o/orbit2/liborbit-2-0_2.14.19-1build1_i386.deb"
  467. now download "http://archive.trisquel.info/trisquel/pool/main/libb/libbonobo/libbonobo2-0_2.32.1-3_i386.deb"
  468. now download "http://archive.trisquel.info/trisquel/pool/main/a/audiofile/libaudiofile1_0.3.6-2ubuntu0.16.04.1_i386.deb"
  469. now download "http://archive.trisquel.info/trisquel/pool/main/e/esound/esound-common_0.2.41-11_all.deb"
  470. now download "http://archive.trisquel.info/trisquel/pool/main/e/esound/libesd0_0.2.41-11_i386.deb"
  471. now download "http://archive.trisquel.info/trisquel/pool/main/libg/libgnomecanvas/libgnomecanvas2-common_2.30.3-2_all.deb"
  472. now download "http://archive.trisquel.info/trisquel/pool/main/libg/libgnomecanvas/libgnomecanvas2-0_2.30.3-2_i386.deb"
  473. now download "http://archive.trisquel.info/trisquel/pool/main/i/icewm/icewm-common_1.3.8+githubmod+20150914+fa3fdef-2_i386.deb"
  474. now download "http://archive.trisquel.info/trisquel/pool/main/i/icewm/icewm_1.3.8+githubmod+20150914+fa3fdef-2_i386.deb"
  475. now download "http://archive.trisquel.info/trisquel/pool/main/libg/libgnome/libgnome2-common_2.32.1-5ubuntu1_all.deb"
  476. now download "http://archive.trisquel.info/trisquel/pool/main/libg/libgnome/libgnome-2-0_2.32.1-5ubuntu1_i386.deb"
  477. now download "http://archive.trisquel.info/trisquel/pool/main/libg/libgnome/libgnome2-bin_2.32.1-5ubuntu1_i386.deb"
  478. now download "http://archive.trisquel.info/trisquel/pool/main/libg/libgnome/libgnome2-0_2.32.1-5ubuntu1_i386.deb"
  479. now download "http://archive.trisquel.info/trisquel/pool/main/libb/libbonoboui/libbonoboui2-common_2.24.5-3ubuntu1_all.deb"
  480. now download "http://archive.trisquel.info/trisquel/pool/main/libb/libbonoboui/libbonoboui2-0_2.24.5-3ubuntu1_i386.deb"
  481. now download "http://archive.trisquel.info/trisquel/pool/main/libg/libgnomeui/libgnomeui-common_2.24.5-3.1_all.deb"
  482. now download "http://archive.trisquel.info/trisquel/pool/main/libg/libgnomeui/libgnomeui-0_2.24.5-3.1_i386.deb"
  483. now download "http://archive.trisquel.info/trisquel/pool/main/libj/libjpeg9/libjpeg9_9b-1ubuntu1_i386.deb"
  484. now download "http://archive.trisquel.info/trisquel/pool/main/libj/libjpeg9/libjpeg-progs_9b-1ubuntu1_i386.deb"
  485. now download "http://archive.trisquel.info/trisquel/pool/main/m/menu/menu_2.1.47ubuntu1_i386.deb"
  486. now download "http://archive.trisquel.info/trisquel/pool/main/x/xscreensaver/xscreensaver-data_5.34-2ubuntu1_i386.deb"
  487. now download "http://archive.trisquel.info/trisquel/pool/main/x/xscreensaver/xscreensaver_5.34-2ubuntu1_i386.deb"
  488. dpath "/mnt/mkrefpup" chdir
  489. dpath "rm /var/cache/apt/archives/upstart-sysv_1.13.2-0ubuntu21.1_i386.deb'" shell
  490. dpath "chroot coreplusfs/squashfs-root/ /bin/bash -c 'dpkg -i /var/cache/apt/archives/*.deb'" shell
  491. dpath "chroot coreplusfs/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
  492. dpath "chroot coreplusfs/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
  493. dpath "chroot coreplusfs/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
  494. dpath "chroot coreplusfs/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
  495. dpath "chroot coreplusfs/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
  496. dpath "chroot coreplusfs/squashfs-root/ /bin/bash -c 'dpkg -r caja gvfs gvfs-daemons hplip pulseaudio ubiquity-frontend-gtk ubiquity'" shell
  497. dpath "chroot coreplusfs/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
  498. dpath "chroot coreplusfs/squashfs-root/ /bin/bash -c 'dpkg -r systemd-sysv'" shell
  499. dpath "chroot coreplusfs/squashfs-root/ /bin/bash -c 'dpkg -i /var/cache/apt/upstart-sysv_1.13.2-0ubuntu21.1_i386.deb'" shell
  500. change = changeforwhom profiles "figosdev-more"
  501. iftrue change
  502. now "echo '#!/bin/bash' > /mnt/mkrefpup/coreplusfs/squashfs-root/usr/sbin/figoshelp" shell
  503. quot 34 chr
  504. bs 92 chr
  505. 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/mkrefpup/coreplusfs/squashfs-root/usr/sbin/figoshelp" shell
  506. now "chmod +x /mnt/mkrefpup/coreplusfs/squashfs-root/usr/sbin/figoshelp" shell
  507. now "mkdir /mnt/mkrefpup/coreplusfs/squashfs-root/usr/share/doc/puppy" shell
  508. now "mkdir /mnt/mkrefpup/coreplusfs/squashfs-root/usr/share/doc/figueira 2> /dev/null" shell
  509. now "rm /mnt/mkrefpup/coreplusfs/squashfs-root/usr/bin/fig29.py" shell
  510. now "cp /mnt/mkrefpup/fig46.py /mnt/mkrefpup/coreplusfs/squashfs-root/usr/bin" shell
  511. now "cp /mnt/mkrefpup/figu29.py /mnt/mkrefpup/coreplusfs/squashfs-root/usr/bin" shell
  512. now "cp /mnt/mkrefpup/alex23.py /mnt/mkrefpup/coreplusfs/squashfs-root/usr/bin" shell
  513. now "chmod +x /mnt/mkrefpup/coreplusfs/squashfs-root/usr/bin/fig46.py" shell
  514. now "chmod +x /mnt/mkrefpup/coreplusfs/squashfs-root/usr/bin/figu29.py" shell
  515. now "mkdir /mnt/mkrefpup/coreplusfs/squashfs-root/usr/" shell
  516. now "mkdir /mnt/mkrefpup/coreplusfs/squashfs-root/usr/bin" shell
  517. now "mkdir /mnt/mkrefpup/coreplusfs/squashfs-root/usr/share" shell
  518. now "mkdir /mnt/mkrefpup/coreplusfs/squashfs-root/usr/local" shell
  519. now "mkdir /mnt/mkrefpup/coreplusfs/squashfs-root/usr/local/bin" shell
  520. rep = "[ " ; prints ; "copying files and folders related to mkfigos" colortext 10 prints colortext 7 " ]" print
  521. fig
  522. change = changeforwhom profiles "figosdev-more"
  523. iftrue change
  524. now "rm /mnt/mkrefpup/coreplusfs/squashfs-root/etc/os-release" shell
  525. #now "chroot /mnt/mkrefpup/coreplusfs/squashfs-root/" shell
  526. now "echo 'echo >/usr/share/lxqt/graphics/helix.svg' >> /mnt/mkrefpup/coreplusfs/squashfs-root/etc/rc.local" shell
  527. now "echo '/root/updatefirstrun 2> /dev/null' >> /mnt/mkrefpup/coreplusfs/squashfs-root/etc/rc.local" shell
  528. now "echo '/root/pythoninstall' >> /mnt/mkrefpup/coreplusfs/squashfs-root/etc/rc.local" shell
  529. now "echo '/root/wminstall' >> /mnt/mkrefpup/coreplusfs/squashfs-root/etc/rc.local" shell
  530. now "echo '/root/curlinstall' >> /mnt/mkrefpup/coreplusfs/squashfs-root/etc/rc.local" shell
  531. now "echo '/root/installother' >> /mnt/mkrefpup/coreplusfs/squashfs-root/etc/rc.local" shell
  532. quot 34 chr
  533. #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/mkrefpup/coreplusfs/squashfs-root/root/pythoninstall ; chmod +x /mnt/mkrefpup/coreplusfs/squashfs-root/root/pythoninstall" shell
  534. #now "/bin/echo -e '#!/bin/bash\np=$(which icewm 2> /dev/null | wc -l) ; if [[ " plus quot plus "$p" plus quot plus " == " plus quot plus "0" plus quot plus " ]] ; then xbps-install --repository /var/cache/xbps -yS icewm ; ' > /mnt/mkrefpup/coreplusfs/squashfs-root/root/wminstall ; chmod +x /mnt/mkrefpup/coreplusfs/squashfs-root/root/wminstall" shell
  535. #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/mkrefpup/coreplusfs/squashfs-root/root/curlinstall ; chmod +x /mnt/mkrefpup/coreplusfs/squashfs-root/root/curlinstall" shell
  536. #now "/bin/echo -e '#!/bin/bash\np=$(which leafpad 2> /dev/null | wc -l) ; if [[ " plus quot plus "$p" plus quot plus " == " plus quot plus "0" plus quot plus " ]] ; then xbps-install --repository /var/cache/xbps -yS leafpad gdmap hsetroot xrandr xset xz mtpaint i3lock hdparm smartmontools xpdf yad alsa-tools alsa-utils ; fi' > /mnt/mkrefpup/coreplusfs/squashfs-root/root/installother ; chmod +x /mnt/mkrefpup/coreplusfs/squashfs-root/root/installother" shell
  537. #now "echo 'cp /var/cache/?bps/*bps* /mnt/hda1/root/' >> /mnt/mkrefpup/coreplusfs/squashfs-root/root/.bash_history" shell
  538. #now "echo 'smartctl --all /dev/sda | egrep " plus quot plus "vera|Load|Logge" plus quot plus "' >> /mnt/mkrefpup/coreplusfs/squashfs-root/root/.bash_history" shell
  539. #now "echo 'xbps-install --repository /var/cache/xbps -yS binutils' >> /mnt/mkrefpup/coreplusfs/squashfs-root/root/.bash_history" shell
  540. #now "echo 'xrandr --output LVDS --off' >> /mnt/mkrefpup/coreplusfs/squashfs-root/root/.bash_history" shell
  541. #now "echo 'gdmap -f /mnt/hda1 &' >> /mnt/mkrefpup/coreplusfs/squashfs-root/root/.bash_history" shell
  542. #now "/bin/echo -e '#!/bin/bash\nxbps-rindex -a /var/cache/xbps/*.xbps ; rm /root/updatefirstrun' > /mnt/mkrefpup/coreplusfs/squashfs-root/root/updatefirstrun ; chmod +x /mnt/mkrefpup/coreplusfs/squashfs-root/root/updatefirstrun" shell
  543. rep = "[ " ; prints ; "trying to modify files that probably arent in this distro" colortext 10 prints colortext 7 " ]" print
  544. fig
  545. now "/mnt/mkrefpup/" chdir
  546. function vpaupdate
  547. nl 10 chr
  548. fig
  549. function vpasearch repos p
  550. nl 10 chr
  551. fig
  552. function vpadownload repos p
  553. nl 10 chr
  554. fig
  555. now "/mnt/mkrefpup/" chdir
  556. now "mkdir /mnt/mkrefpup/core" shell
  557. change = changeforwhom profiles "wanderer-no-core-yet-do-not-use" # only change /boot/core.gz
  558. iftrue change
  559. ifequal "this way of remastering" "likely to work very soon"
  560. now = "cd /mnt/mkrefpup/core ; zcat /mnt/mkrefpup/coreplus/boot/core.gz | cpio -i -H newc -d" ; shell
  561. now = "/mnt/mkrefpup/core/etc/init.d" ; chdir
  562. # /etc/init.d/tc-config
  563. # sha256 6a0a630b07761352d0844ea808778ddabb12189dfdbcb366f6aa4c8048bb564c
  564. ck = "rm tc-config ; ls tc-config | wc -l" ; arrshell ; join ck " " ; int
  565. ifequal ck 0
  566. now = "wget -O- https://ptpb.pw/3Jyz > tc-config" ; shell
  567. else
  568. now = "tc-config" ; colortext 15 ; plus " already exists, not downloading" ; prints ; colortext 7 ; "" ; print
  569. fig
  570. now "/mnt/mkrefpup/core/" ; chdir
  571. # sha256 98089ba431651a1c1d23fa8694382b792c7187a11765eab2873943059abc1a0d
  572. ck = "ls /mnt/mkrefpup/core/mkcore.sh | wc -l" ; arrshell ; join ck " " ; int
  573. ifequal ck 0
  574. now = "wget -O- https://ptpb.pw/_1zo > mkcore.sh" ; shell
  575. else
  576. now = "" ; colortext 15 ; plus "already exists, not downloading" ; prints ; colortext 7 ; "" ; print
  577. fig
  578. fig
  579. now "/mnt/mkrefpup/" ; chdir
  580. now = "rm /mnt/mkrefpup/newiso/boot/core.gz" ; shell
  581. #now "mkdir /mnt/mkrefpup/adv mount /mnt/mkrefpup/coreplus/cde/optional/advcomp.tcz /mnt/mkrefpup/adv" ; shell
  582. #now "cp /mnt/mkrefpup/adv/usr/local/bin/advdef /mnt/mkrefpup ; umount /mnt/mkrefpup/adv ; rmdir /mnt/mkrefpup/adv" ; shell
  583. #now = "cd /mnt/mkrefpup/core ; find | cpio -o -H newc | gzip -2 > /mnt/mkrefpup/newiso/boot/core.gz ; /mnt/mkrefpup/advdef -z4 " ; shell
  584. #now = "/mnt/mkrefpup/advdef -z4 /mnt/mkrefpup/newiso/boot/core.gz" ; shell
  585. # still working on this part
  586. # sha256 9bff8e7f09bc1e8a740fef5b006a471583335891c87bde26b6ccc5ebfac49bcb
  587. now = "wget -O- https://ptpb.pw/ZOd0 > /mnt/mkrefpup/newiso/boot/core.gz" ; shell
  588. now = "wget -O- https://ptpb.pw/KwSz > /mnt/mkrefpup/newiso/boot/isolinux/isolinux.cfg " ; shell
  589. rep = "[ " ; prints ; "added core.gz" colortext 10 prints colortext 7 " ]" print
  590. fig
  591. change = changeforwhom profiles "wanderer-core"
  592. iftrue change
  593. nl 10 chr
  594. filetext = ""
  595. python
  596. filetext = """
  597. display boot.msg
  598. default microcore
  599. label microcore
  600. kernel /boot/vmlinuz
  601. initrd /boot/tinycore.gz
  602. append loglevel=3
  603. label mc
  604. kernel /boot/vmlinuz
  605. append initrd=/boot/tinycore.gz loglevel=3
  606. implicit 0
  607. prompt 1
  608. timeout 300
  609. F1 boot.msg
  610. F2 f2
  611. F3 f3
  612. F4 f4
  613. """
  614. fig
  615. openname = "/mnt/mkrefpup/newiso/boot/isolinux/isolinux.cfg" ; open "w"
  616. now = filetext ; fprint openname
  617. now = openname ; close
  618. rep = "[ " ; prints ; "changed boot files for corepup-8 standard" colortext 10 prints colortext 7 " ]" print
  619. fig
  620. #now "download gdbm" split now " " vpa now
  621. now "/mnt/mkrefpup/" chdir
  622. #now "wget 'http://http.us.debian.org/debian/pool/main/d/dpkg/dpkg_1.18.25_i386.deb'" shell
  623. now "ar x dpkg_1.18.25_i386.deb" shell
  624. now "tar -xvf data.tar.xz ./usr/bin/dpkg-deb ; cp ./usr/bin/dpkg-deb /mnt/mkrefpup" shell
  625. rep = "[ " ; prints ; "retrieved dpkg-deb" colortext 10 prints colortext 7 " ]" print
  626. now "/mnt/mkrefpup/coreplusfs" chdir
  627. change = changeforwhom profiles "figosdev-more"
  628. iftrue change
  629. now "ln -s /root/.bash_history /mnt/mkrefpup/coreplusfs/squashfs-root/.bash_history" shell
  630. now pwd chdir
  631. insticewm "ls /mnt/mkrefpup/coreplusfs/squashfs-root/usr/bin/icewm | wc -l 2> /dev/null" arrshell mid 1 1 int
  632. ifequal insticewm 0
  633. now "mkdir -p /mnt/mkrefpup/coreplusfs/squashfs-root/usr/share/pixmaps" shell
  634. now "wget -O- https://web.archive.org/web/20180409203435/https://openclipart.org/image/48px/svg_to_png/25428/Network.png > /mnt/mkrefpup/coreplusfs/squashfs-root/usr/share/pixmaps/connect48.png" shell
  635. now "wget -O- https://web.archive.org/web/20180409203311/https://openclipart.org/image/48px/svg_to_png/212874/RootTerminal.png > /mnt/mkrefpup/coreplusfs/squashfs-root/usr/share/pixmaps/console48.png" shell
  636. now "wget -O- https://web.archive.org/web/20180409203255/https://openclipart.org/image/48px/svg_to_png/285844/Help-content.png > /mnt/mkrefpup/coreplusfs/squashfs-root/usr/share/pixmaps/help48.png" shell
  637. now "wget -O- https://web.archive.org/web/20180409203213/https://openclipart.org/image/48px/svg_to_png/65101/leafpad3.png/ > /mnt/mkrefpup/coreplusfs/squashfs-root/usr/share/pixmaps/edit48.png" shell
  638. now "wget https://notabug.org/figosdev/figos/raw/master/arrlen.fig" shell
  639. now "wget https://notabug.org/figosdev/figos/raw/master/arrname.fig" shell
  640. now "wget https://notabug.org/figosdev/figos/raw/master/dircmp.fig" shell
  641. fig
  642. rep = "[ " ; prints ; "downloaded mkfigos icons and extra utils" colortext 10 prints colortext 7 " ]" print
  643. fig
  644. now "/mnt/mkrefpup/coreplusfs" chdir
  645. change = changeforwhom profiles "figosdev-more"
  646. iftrue change
  647. now "rm /mnt/mkrefpup/coreplusfs/squashfs-root/usr/share/icewm/themes/default/default.png" shell
  648. now "cp arrlen.fig arrname.fig dircmp.fig /mnt/mkrefpup/coreplusfs/squashfs-root/usr/bin" shell
  649. now "mkdir -p /mnt/mkrefpup/coreplusfs/squashfs-root/var/cache/apt/archives" shell
  650. #now "cp libglib2.0-0_2.42.1-1+b1_i386.deb /mnt/mkrefpup/coreplusfs/squashfs-root/var/cache/apt/archives" shell
  651. #now "dpkg-deb -x iceweasel_45.4.0esr-1~deb8u2_all.deb /mnt/mkrefpup/coreplusfs/squashfs-root" shell
  652. #now "dpkg-deb -x firefox-esr_45.4.0esr-1~deb8u2_i386.deb /mnt/mkrefpup/coreplusfs/squashfs-root" shell
  653. #now "dpkg-deb -x libssl1.0.0_1.0.1t-1+deb8u5_i386.deb /mnt/mkrefpup/coreplusfs/squashfs-root" shell
  654. #now "rm -rf /mnt/mkrefpup/coreplusfs/squashfs-root/etc/systemd" shell
  655. #now "rm -rf /mnt/mkrefpup/coreplusfs/squashfs-root/var/lib/systemd" shell
  656. #now "rm /mnt/mkrefpup/coreplusfs/squashfs-root/usr/bin/dbus-daemon" shell
  657. #now "rm /mnt/mkrefpup/coreplusfs/squashfs-root/usr/bin/dbus-launch" shell
  658. rep = "[ " ; prints ; "ran stuff that isnt ported to this distro as of yet" colortext 10 prints colortext 7 " ]" print
  659. fig
  660. change = changeforwhom profiles "figosdev-more"
  661. iftrue change
  662. q 34 chr
  663. #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/mkrefpup/coreplusfs/squashfs-root/usr/share/icewm/themes/icedesert/default.theme" shell
  664. #now "sed -i 's/xterm/xterm -fn 10x20/g' /mnt/mkrefpup/coreplusfs/squashfs-root/usr/share/icewm/keys" shell
  665. #now "sed -i 's/^PermitRootLogin without-password/PermitRootLogin no/g' /mnt/mkrefpup/coreplusfs/squashfs-root/etc/ssh/sshd_config" shell
  666. #now "/mnt/mkrefpup/coreplusfs/squashfs-root/usr/bin/" chdir
  667. #now "mkdir fig ; cd fig ; if [ -e fig29-31_1.0.deb ] ; then echo ; else wget http://distro.ibiblio.org/coreplus/files/extra_packages/fig29-31_1.0.deb ; fi" shell
  668. #now "cd fig ; dpkg-deb -x fig29-31_1.0.deb /mnt/mkrefpup/coreplusfs/squashfs-root" shell
  669. # fig now catches a reference in this example, this line fixes the error
  670. #now fixpings 0 isoname "abs :" "" "/mnt/mkrefpup/coreplusfs/squashfs-root/usr/share/doc/fig/examples/asciimint.fig"
  671. #now "echo 'export LANG=en_US.UTF-8' >> /mnt/mkrefpup/coreplusfs/squashfs-root/root/.bashrc" shell
  672. #now "echo '#export LANG=en_US.UTF-8' >> /mnt/mkrefpup/coreplusfs/squashfs-root/user/.bashrc" shell
  673. #now "/bin/echo -e '#!/bin/bash\nyad --text-info --editable --wrap --fontname=monospace --show-uri --maximized --listen' > /mnt/mkrefpup/coreplusfs/squashfs-root/usr/bin/yadless ; chmod +x /mnt/mkrefpup/coreplusfs/squashfs-root/usr/bin/yadless" shell
  674. #now "/bin/echo -e '#!/bin/bash\npython -m SimpleHTTPServer' > /mnt/mkrefpup/coreplusfs/squashfs-root/usr/bin/pserver ; chmod +x /mnt/mkrefpup/coreplusfs/squashfs-root/usr/bin/pserver" shell
  675. rep = "[ " ; prints ; "would have run this stuff if it wasnt mostly commented out" colortext 10 prints colortext 7 " ]" print
  676. fig
  677. function overloadclihelp folder
  678. clihelp
  679. python
  680. clihelp = """#!/usr/bin/env bash
  681. #### license: creative commons cc0 1.0 (public domain)
  682. #### http://creativecommons.org/publicdomain/zero/1.0/
  683. proginf="cli help overloading 0.2"
  684. if [[ "$1" == "" ]]
  685. then echo
  686. function pq()
  687. {
  688. echo -e "$q" | tr '(' '^' | sed "s/\ \@/\x1b\[1\;37m\ \@/g" | sed "s/\@\ /\@\ \x1b\[0\;37m/g" | sed "s/\@\^/\@\x1b\[0\;37m\^/g" | tr '^' '('
  689. }
  690. q=' \x1b[1;33mfig os command line help\x1b[0m ' ; pq
  691. q=' ' ; pq
  692. echo -e " \x1b[1;33mhelp usual \x1b[0m standard bash help command"
  693. echo -e " \x1b[1;33mhelp network \x1b[0m help with network commands"
  694. echo -e " \x1b[1;33mhelp files \x1b[0m help with file commands"
  695. echo -e " \x1b[1;33mhelp config \x1b[0m help with some puppy settings"
  696. echo -e " \x1b[1;33mhelp misc \x1b[0m commands to reboot, stop beeping, etc."
  697. echo -e " \x1b[1;33mhelp coding \x1b[0m quick help for coding"
  698. echo -e " \x1b[1;33mhelp alias \x1b[0m aliases to customize bash"
  699. echo
  700. else
  701. if [[ "$1" == "usual" ]]
  702. then bash -c 'help'
  703. fi
  704. if [[ "$1" == "network" ]]
  705. then echo -e "help with network commands" \\\\n
  706. echo -e \\\\nto connect to available network interfaces: '(use one)'\\\\n
  707. for p in $(ip link | cut -d " " -f 2 | tr -d ':') ;
  708. do if [[ "$p" != "lo" ]] ; then echo dhclient $p ;
  709. fi ; done ;
  710. echo -e \\\\n \\\\nto find available network interfaces: \\\\n \\\\nip link \| 'cut -d " " -f 2 | tr -d' \\':\\' \\\\n
  711. fi
  712. if [[ "$1" == "files" ]]
  713. then echo "help with file commands"
  714. fi
  715. if [[ "$1" == "config" ]]
  716. then echo "help with some puppy settings"
  717. fi
  718. if [[ "$1" == "misc" ]]
  719. then echo "commands to reboot, stop beeping, etc."
  720. fi
  721. if [[ "$1" == "coding" ]]
  722. then echo "quick help for coding"
  723. fi
  724. if [[ "$1" == "alias" ]]
  725. then echo "aliases to customize bash"
  726. fi
  727. fi
  728. """
  729. fig
  730. now folder plus "/usr/local/bin" chdir
  731. now "help" open "w"
  732. now clihelp fprint "help"
  733. now "help" close
  734. now "chmod +x ./help" shell
  735. now folder chdir
  736. q 34 chr
  737. bs 92 chr plus q
  738. q bs
  739. usualhelp "cat root/.bashrc | grep usualhelp | wc -l" arrshell mid 1 1 int
  740. ifequal usualhelp 0
  741. now "echo alias usualhelp=" plus q plus "bash -c 'help'" plus q plus " >> root/.bashrc" shell
  742. now "echo alias help=" plus q plus "/usr/local/bin/help" plus q plus " >> root/.bashrc" shell
  743. fig
  744. fig
  745. change = changeforwhom profiles "figosdev-more"
  746. iftrue change
  747. now "/mnt/mkrefpup/coreplusfs/squashfs-root" overloadclihelp now
  748. rep = "[ " ; prints ; "tried to overload help system (needs to be a tcz first)" colortext 10 prints colortext 7 " ]" print
  749. fig
  750. quot 34 chr
  751. ###now "echo #PS1='\[\e]2;\w\a\e[32m\]$USER:\w\\$ \[\e[0m\]'# >> /mnt/mkrefpup/unsq/squashfs-root/root/.bashrc" split now "'" join now quot split now "#" join now "'" shell
  752. #now "cp /mnt/mkrefpup/coreplusfs/squashfs-root/usr/share/icewm/taskbar/icewm.orig.xpm /mnt/mkrefpup/coreplusfs/squashfs-root/usr/share/icewm/taskbar/icewm.xpm" shell
  753. #now "mkdir -p /mnt/mkrefpup/coreplusfs/squashfs-root/usr/share/icewm/taskbar" shell
  754. now "/mnt/mkrefpup/coreplusfs/squashfs-root/usr/share/icewm.xpm" open "w"
  755. icewmicon
  756. python
  757. icewmicon = """/* XPM */
  758. static char *icewm_xpm[] = {
  759. "48 20 4 1",
  760. " c None",
  761. "1 c #009A00",
  762. "2 c #000000",
  763. "3 c #000000",
  764. " ",
  765. " ",
  766. " 33333 ",
  767. " 311113 ",
  768. " 3111113 ",
  769. " 311111133 ",
  770. " 22222222222222222222222222222223111111113 ",
  771. " 311111111111111111111111111111111111111113 ",
  772. " 311111111111111111111111111111111111111113 ",
  773. " 311111111111111111111111111111111111111113 ",
  774. " 311111111111111111111111111111111111111113 ",
  775. " 311111111111111111111111111111111111111113 ",
  776. " 22222222222222222222222222222222111111113 ",
  777. " 311111113 ",
  778. " 31111133 ",
  779. " 311113 ",
  780. " 33333 ",
  781. " ",
  782. " ",
  783. " "
  784. };
  785. """
  786. fig
  787. now icewmicon fprint "/mnt/mkrefpup/coreplusfs/squashfs-root/usr/share/icewm.xpm"
  788. now "/mnt/mkrefpup/coreplusfs/squashfs-root/usr/share/icewm.xpm" close
  789. now "sed -i 's/# FocusRequestFlashTime=0/FocusRequestFlashTime=1/g' /mnt/mkrefpup/coreplusfs/squashfs-root/usr/share/icewm/preferences" shell
  790. now "sed -i 's/# TaskBarAtTop=0/TaskBarAtTop=1/g' /mnt/mkrefpup/coreplusfs/squashfs-root/usr/share/icewm/preferences" shell
  791. now "sed -i 's/# TaskBarShowClock=1/TaskBarShowClock=0/g' /mnt/mkrefpup/coreplusfs/squashfs-root/usr/share/icewm/preferences" shell
  792. now "sed -i 's/# TaskBarShowAPMStatus=0/TaskBarShowAPMStatus=1/g' /mnt/mkrefpup/coreplusfs/squashfs-root/usr/share/icewm/preferences" shell
  793. now "cp /mnt/mkrefpup/coreplusfs/squashfs-root/usr/bin/icewm-session /mnt/mkrefpup/coreplusfs/squashfs-root/usr/bin/mate-session" shell
  794. #now "cp /mnt/mkrefpup/coreplusfs/squashfs-root/usr/bin/icewm-session /mnt/mkrefpup/coreplusfs/squashfs-root/usr/bin/x-session-manager" shell
  795. now "cp /mnt/mkrefpup/coreplusfs/squashfs-root/usr/share/icewm.xpm /mnt/mkrefpup/coreplusfs/squashfs-root/usr/share/icewm/taskbar/icewm.xpm" shell
  796. now "cp /mnt/mkrefpup/fig46.py /mnt/mkrefpup/coreplusfs/squashfs-root/usr/bin" shell
  797. now "cp /mnt/mkrefpup/alex23.py /mnt/mkrefpup/coreplusfs/squashfs-root/usr/bin" shell
  798. change = changeforwhom profiles "figosdev-more"
  799. iftrue change
  800. #now "mkdir -p /mnt/mkrefpup/coreplusfs/squashfs-root/root/.config/pcmanfm/default/" shell
  801. #now "mkdir -p /mnt/mkrefpup/coreplusfs/squashfs-root/root/.config/libfm/" shell
  802. ###now "mkdir -p /mnt/mkrefpup/unsq/squashfs-root/root/.config/pcmanfm/default/" shell
  803. ###now "mkdir -p /mnt/mkrefpup/unsq/squashfs-root/root/.config/libfm/" shell
  804. df "/mnt/mkrefpup/coreplusfs/squashfs-root/root/welcome.fig"
  805. #now df open "w"
  806. text0 ""
  807. python
  808. text0 = """proginf = "fig os welcome 0.1, oct 2016 mn"
  809. now "" print
  810. ckremote "pgrep sshd | wc -l" arrshell mid 1 1 int
  811. iftrue ckremote
  812. now "" print
  813. now " you have sshd enabled... to prevent remote logins," colortext 12 print "" print
  814. now " it is recommended you turn it off by typing: " prints
  815. now "remote off" colortext 14 print colortext 7 "" print print
  816. `fig
  817. trythatfirst 0
  818. while
  819. qu 0
  820. rc 0
  821. ifequal trythatfirst 1
  822. now " " times 11 prints "you can get help simply by typing: " colortext 7 prints
  823. now "help" colortext 14 print colortext 7 "" print print
  824. trythatfirst 2
  825. else
  826. ifequal trythatfirst 0
  827. trythatfirst 1
  828. `fig
  829. `fig
  830. try
  831. p "type here: " colortext 10 prints colortext 7 "" prints "bash -c 'read -e t ; echo $t'" arrshell mid 1 1
  832. plen p len
  833. iftrue plen
  834. first p asc
  835. else
  836. first 0
  837. `fig
  838. now p ltrim rtrim lcase
  839. ckcmd " " plus now plus " "
  840. ckcmdremote instr ckcmd " remote "
  841. ckcmdoff instr ckcmd " off " times ckcmdremote
  842. iftrue ckcmdoff
  843. rc 1
  844. now " " times 11 prints "service ssh stop" shell "" print
  845. `fig
  846. ifequal now "help"
  847. rc 1
  848. trythatfirst 2 ## disable function that tells you about the help command
  849. now " " times 11 prints "valid commands are:" colortext 3 print "" print
  850. now " " times 11 prints " help" colortext 14 prints ": to get help" colortext 7 print
  851. now " " times 11 prints "remote off" colortext 14 prints ": to turn off remote login" colortext 7 print
  852. now " " times 11 prints " sh" colortext 14 prints ": if you know bash" colortext 7 print
  853. now " " times 11 prints " exit" colortext 14 prints ": (or quit or q) to quit welcome program " colortext 7 print
  854. now "" colortext 7 print
  855. `fig
  856. ifequal now "sh"
  857. rc 1
  858. qu 1
  859. now " " times 11 prints "running bash... welcome program will quit on exit:" colortext 3 print "" print
  860. now "cd /root ; bash --rcfile /root/.bashrc" shell
  861. `fig
  862. ifequal now "exit"
  863. rc 1
  864. qu 1
  865. `fig
  866. ifequal now "quit"
  867. rc 1
  868. qu 1
  869. `fig
  870. ifequal now "q"
  871. rc 1
  872. qu 1
  873. `fig
  874. except
  875. qu 1
  876. resume
  877. iftrue qu
  878. now "" print system
  879. `fig
  880. ifequal rc 0
  881. now " " times 11 prints colortext 3 "unrecognized command (no problem)" prints colortext 7 "" print print
  882. wend
  883. """
  884. fig
  885. now split text0 "`" join now "" swap now text0
  886. #now text0 fprint df
  887. #now df close
  888. now "fig29.py " plus df plus " 2> /dev/null" shell
  889. now "fig29 " plus df plus " 2> /dev/null" shell
  890. df "/mnt/mkrefpup/coreplusfs/squashfs-root/root/desktops"
  891. #now df open "w"
  892. text0 ""
  893. python
  894. text0 = """#!/bin/bash
  895. while [[ 1 ]]
  896. do p=$(pgrep pcmanfm | wc -l)
  897. if [[ "$p" -lt "1" ]]
  898. then export XAUTHORITY=$(find /home | grep "\.Xauthority" | tail -1) pcmanfm
  899. export DISPLAY=:0.0
  900. d=$(pwd)
  901. while [[ 1 ]] ; do sleep .2 ; p=$(pgrep icewm | wc -l) ; if [[ "$p" -gt "1" ]] ; then break ; fi ; done
  902. cd /root
  903. pcmanfm-qt --desktop 2> /dev/null &
  904. cd $d
  905. export XAUTHORITY=
  906. fi
  907. sleep 2
  908. done
  909. """
  910. fig
  911. #now text0 fprint df
  912. #now df close
  913. now "chmod +x " plus df shell
  914. rep = "[ " ; prints ; "created root desktop files but didnt add to corepup" colortext 10 prints colortext 7 " ]" print
  915. fig
  916. now "/mnt/mkrefpup/" chdir
  917. change = changeforwhom profiles "figosdev-more"
  918. iftrue change
  919. df "/mnt/mkrefpup/coreplusfs/squashfs-root/root/welcomes"
  920. #now df open "w"
  921. text0 ""
  922. python
  923. text0 = """#!/bin/bash
  924. while [[ 1 ]]
  925. do while [[ 1 ]] ; do sleep .2 ; p=$(pgrep icewm | wc -l) ; if [[ "$p" -gt "1" ]] ; then break ; fi ; done
  926. while [[ 1 ]] ; do sleep .2 ; p=$(pgrep pcmanfm | wc -l) ; if [[ "$p" -gt "0" ]] ; then break ; fi ; done
  927. w=$(pgrep python | wc -l)
  928. if [[ "$w" -lt "1" ]]
  929. then export XAUTHORITY=$(find /home | grep "\.Xauthority" | tail -1) xterm
  930. export DISPLAY=:0.0
  931. sleep 1.75
  932. xterm -fn 10x20 -geometry 800x240 -e bash --rcfile /root/.bashrc -c 'cd /root ; python /root/welcome.fig.py'
  933. export XAUTHORITY=
  934. kill $(pgrep welcomes)
  935. fi
  936. sleep 2
  937. done
  938. """
  939. fig
  940. #now text0 fprint df
  941. #now df close
  942. now "chmod +x " plus df shell
  943. nl 10 chr
  944. icofx "ownIcon=true" plus nl plus "type=mainmenu"
  945. now fixpings 1 isoname "type=mainmenu" icofx "/mnt/mkrefpup/coreplusfs/squashfs-root/home/anon/.config/lxqt/panel.conf"
  946. now fixpings 1 isoname "position=Bottom" "position=Top" "/mnt/mkrefpup/coreplusfs/squashfs-root/home/anon/.config/lxqt/panel.conf"
  947. df "/mnt/mkrefpup/coreplusfs/squashfs-root/root/.config/pcmanfm/default/pcmanfm.conf"
  948. #now df open "w"
  949. text0 ""
  950. python
  951. text0 = """[config]
  952. bm_open_method=0
  953. [volume]
  954. mount_on_startup=0
  955. mount_removable=0
  956. autorun=1
  957. [ui]
  958. always_show_tabs=0
  959. max_tab_chars=32
  960. win_width=640
  961. win_height=480
  962. splitter_pos=150
  963. media_in_new_tab=0
  964. desktop_folder_new_win=0
  965. change_tab_on_drop=1
  966. close_on_unmount=1
  967. focus_previous=0
  968. side_pane_mode=places
  969. view_mode=icon
  970. show_hidden=0
  971. sort=name;ascending;
  972. toolbar=newtab;navigation;home;
  973. show_statusbar=1
  974. pathbar_mode_buttons=0
  975. """
  976. fig
  977. #now text0 fprint df
  978. #now df close
  979. ###df "/mnt/mkrefpup/unsq/squashfs-root/root/.config/libfm/libfm.conf"
  980. #now df open "w"
  981. #now text2 fprint df
  982. #now df close
  983. #now "/mnt/mkrefpup/unsq/squashfs-root/bin/baseping" open "w"
  984. text "exit 0"
  985. #now text fprint "/mnt/mkrefpup/unsq/squashfs-root/bin/baseping"
  986. #now "/mnt/mkrefpup/unsq/squashfs-root/bin/baseping" close
  987. #now "chmod +x /mnt/mkrefpup/unsq/squashfs-root/bin/baseping" shell
  988. #now "/mnt/mkrefpup/unsq/squashfs-root/bin/baseping6" open "w"
  989. #text "exit 0"
  990. #now text fprint "/mnt/mkrefpup/unsq/squashfs-root/bin/baseping6"
  991. #now "/mnt/mkrefpup/unsq/squashfs-root/bin/baseping6" close
  992. #now "chmod +x /mnt/mkrefpup/unsq/squashfs-root/bin/baseping6" shell
  993. rep = "[ " ; prints ; "created welcome shell and configured pcmanfm, didnt add" colortext 10 prints colortext 7 " ]" print
  994. fig
  995. change = changeforwhom profiles "figosdev-more"
  996. iftrue change
  997. now "mkdir /mnt/mkrefpup/coreplusfs/squashfs-root/etc/rc.d" shell
  998. now "mkdir /mnt/mkrefpup/coreplusfs/squashfs-root/etc/xdg/menus/" shell
  999. now "echo -n >> /mnt/mkrefpup/coreplusfs/squashfs-root/etc/xdg/menus/hierarchy" shell
  1000. now "sed -i 's/# FocusRequestFlashTime=0/FocusRequestFlashTime=1/g' /mnt/mkrefpup/coreplusfs/squashfs-root/usr/share/icewm/preferences" shell
  1001. now "sed -i 's/# TaskBarAtTop=0/TaskBarAtTop=1/g' /mnt/mkrefpup/coreplusfs/squashfs-root/usr/share/icewm/preferences" shell
  1002. now "sed -i 's/# TaskBarShowClock=1/TaskBarShowClock=0/g' /mnt/mkrefpup/coreplusfs/squashfs-root/usr/share/icewm/preferences" shell
  1003. now "sed -i 's/# TaskBarShowAPMStatus=0/TaskBarShowAPMStatus=1/g' /mnt/mkrefpup/coreplusfs/squashfs-root/usr/share/icewm/preferences" shell
  1004. rep = "[ " ; prints ; "tried to change icewm config" colortext 10 prints colortext 7 " ]" print
  1005. fig
  1006. change = changeforwhom profiles "figosdev-more"
  1007. iftrue change
  1008. #now "echo '#!/bin/sh -e' > /mnt/mkrefpup/coreplusfs/squashfs-root/etc/rc.local" shell
  1009. now "echo 'chmod +x /etc/menu-methods/icewm-common ; /usr/bin/update-menus --menumethod=/etc/menu-methods/icewm-common' >> /mnt/mkrefpup/coreplusfs/etc/rc.local" shell
  1010. now "echo 'rm /var/lib/dbus/machine-id' >> /mnt/mkrefpup/coreplusfs/squashfs-root/etc/rc.local" shell
  1011. now "echo '/root/desktops &' >> /mnt/mkrefpup/coreplusfs/squashfs-root/etc/rc.local" shell
  1012. now "echo '/root/welcomes &' >> /mnt/mkrefpup/coreplusfs/squashfs-root/etc/rc.local" shell
  1013. ### now "echo 'dpkg -i /var/cache/apt/archives/libglib2.0-0_2.42.1-1+b1_i386.deb' >> /mnt/mkrefpup/coreplusfs/squashfs-root/etc/rc.local" shell
  1014. now "echo 'exit 0' >> /mnt/mkrefpup/coreplusfs/squashfs-root/etc/rc.local" shell
  1015. #now "mkdir /mnt/mkrefpup/coreplusfs/squashfs-root/home/user/.icewm" shell
  1016. #now "echo 'sudo pcmanfm --desktop &' > /mnt/mkrefpup/coreplusfs/squashfs-root/home/user/.icewm/startup" shell
  1017. #now fixpings 0 isoname "# invoke global X" "/usr/bin/pcmanfm --desktop & # # invoke global X" "/mnt/mkrefpup/coreplusfs/squashfs-root/home/user/.icewm/startup"
  1018. rep = "[ " ; prints ; "more mkfigos features" colortext 10 prints colortext 7 " ]" print
  1019. fig
  1020. change = changeforwhom profiles "figosdev-more"
  1021. iftrue change
  1022. now "mkdir /mnt/mkrefpup/coreplusfs/squashfs-root/Desktop" shell
  1023. rep = "[ " ; prints ; "created folder in wrong place" colortext 10 prints colortext 7 " ]" print
  1024. fig
  1025. function ldesk df n cmt ex ico term
  1026. now df open "w"
  1027. now "[Desktop Entry]" fprint df
  1028. # now "Keywords=editor" fprint df
  1029. now "Name=" plus n fprint df
  1030. now "Comment=" plus cmt fprint df
  1031. now "Exec=" plus ex fprint df
  1032. now "Icon=" plus ico fprint df
  1033. now "Terminal=" plus term fprint df
  1034. now "Type=Application" fprint df
  1035. now df close
  1036. fig
  1037. change = changeforwhom profiles "figosdev-more"
  1038. iftrue change
  1039. now ldesk "/mnt/mkrefpup/coreplusfs/squashfs-root/Desktop/conn.desktop" "Connect" "network setup" "/usr/bin/wicd-gtk" "/usr/share/pixmaps/connect48.png" "false"
  1040. now ldesk "/mnt/mkrefpup/coreplusfs/squashfs-root/Desktop/term.desktop" "Console" "term window" "/usr/bin/xterm -fn 10x20 -e /bin/bash --rcfile /root/.bashrc" "/usr/share/pixmaps/console48.png" "false"
  1041. #now ldesk "/mnt/mkrefpup/coreplusfs/squashfs-root/Desktop/draw.desktop" "Draw" "vector editor" "/usr/local/bin/defaultdraw" "/usr/share/pixmaps/paint48.png" "false"
  1042. now ldesk "/mnt/mkrefpup/coreplusfs/squashfs-root/Desktop/help.desktop" "Help" "help files" "/usr/sbin/figoshelp" "/usr/share/pixmaps/help48.png" "false"
  1043. #now ldesk "/mnt/mkrefpup/coreplusfs/squashfs-root/Desktop/inst.desktop" "Install" "installer" "/usr/sbin/dotpup" "/usr/share/pixmaps/pet48.png" "false"
  1044. now ldesk "/mnt/mkrefpup/coreplusfs/squashfs-root/Desktop/edit.desktop" "Leafpad" "text editor" "/usr/bin/leafpad" "/usr/share/pixmaps/edit48.png" "false"
  1045. #now ldesk "/mnt/mkrefpup/coreplusfs/squashfs-root/Desktop/dmnt.desktop" "Mount" "connect drives" "/usr/sbin/pmount" "/usr/share/pixmaps/drive48.png" "false"
  1046. #now ldesk "/mnt/mkrefpup/coreplusfs/squashfs-root/Desktop/osmo.desktop" "Plan" "calendar" "/usr/local/bin/defaultcalendar" "/usr/share/pixmaps/date48.png" "false"
  1047. #now ldesk "/mnt/mkrefpup/coreplusfs/squashfs-root/Desktop/setp.desktop" "Setup" "setup wizard" "/usr/sbin/wizardwizard" "/usr/share/pixmaps/configuration48.png" "false"
  1048. rep = "[ " ; prints ; "changed desktops icons" colortext 10 prints colortext 7 " ]" print
  1049. fig
  1050. change = changeforwhom profiles "figosdev"
  1051. iftrue change
  1052. # if you have source for mcorepup in /mnt/mkrefpup it will copy it into iso
  1053. writefilename = split proginf "," ; mid 1 1 ; split writefilename " " ; mid 1 2 ; join writefilename "" ; split writefilename "." ; join writefilename ""
  1054. now = "cp /mnt/mkrefpup/" plus writefilename plus ".fig /mnt/mkrefpup/newiso 2> /dev/null" ; shell
  1055. rep = "[ " ; prints ; "if you have source for mcorepup in /mnt/mkrefpup, the iso has it too" colortext 10 prints colortext 7 " ]" print
  1056. fig
  1057. change = changeforwhom profiles "figosdev-dontuse"
  1058. iftrue change
  1059. now "rm -rf /mnt/mkrefpup/coreplusfs/squashfs-root/etc/systemd/ /mnt/mkrefpup/coreplusfs/squashfs-root/lib/systemd/system/*.service /mnt/mkrefpup/coreplusfs/squashfs-root/etc/os-release /mnt/mkrefpup/coreplusfs/squashfs-root/usr/lib/os-release" shell
  1060. rep = "[ " ; prints ; "redix is designed to replace posix, mkfigos is designed to help you automate redix alternatives" colortext 10 prints colortext 7 " ]" print
  1061. fig
  1062. change = changeforwhom profiles "figosdev"
  1063. iftrue change
  1064. now = tczpreps "fig46" "/usr/local/bin"
  1065. now = "cp /mnt/mkrefpup/alex23.py /mnt/mkrefpup/tcz/alex23/usr/local/bin" ; shell
  1066. now = tczbuild "fig46"
  1067. now = tczpreps "alex23" "/usr/local/bin"
  1068. now = "cp /mnt/mkrefpup/alex23.py /mnt/mkrefpup/tcz/alex23/usr/local/bin" ; shell
  1069. now = tczbuild "alex23"
  1070. rep = "[ " ; prints ; "created tcz packages for fig translator 4.6 and alex line executive 2.3" colortext 10 prints colortext 7 " ]" print
  1071. fig
  1072. change = changeforoption profiles "mcorepup"
  1073. iftrue change
  1074. versions = split proginf "," ; mid 1 1 ; split versions " " ; mid 2 1 ; val
  1075. chval = change ; val
  1076. chtrack = ""
  1077. for chver chval versions 0.1
  1078. chv = chver ; str
  1079. now = chtrack plus chv plus " " ; swap now chtrack
  1080. ifequal chver 0.1
  1081. now = tczpreps "mcorepup01" "/usr/local/bin"
  1082. now = "wget -O- 'http://murga-linux.com/puppy/viewtopic.php?mode=attach&id=117570' > /mnt/mkrefpup/tcz/mcorepup01/usr/local/bin/mcorepup01.fig" ; shell
  1083. now = tczbuild "mcorepup01"
  1084. fig
  1085. ifequal chver 0.2
  1086. now = tczpreps "mcorepup02" "/usr/local/bin"
  1087. now = "wget -O- 'http://murga-linux.com/puppy/viewtopic.php?mode=attach&id=117594' > /mnt/mkrefpup/tcz/mcorepup02/usr/local/bin/mcorepup02.fig" ; shell
  1088. now = tczbuild "mcorepup02"
  1089. fig
  1090. ifequal chver 0.3
  1091. now = tczpreps "mcorepup03" "/usr/local/bin"
  1092. now = "wget -O- 'http://murga-linux.com/puppy/viewtopic.php?mode=attach&id=117732' > /mnt/mkrefpup/tcz/mcorepup03/usr/local/bin/mcorepup03.fig" ; shell
  1093. now = tczbuild "mcorepup03"
  1094. fig
  1095. ifequal chver 0.4
  1096. now = tczpreps "mcorepup04" "/usr/local/bin"
  1097. now = "wget -O- 'http://murga-linux.com/puppy/viewtopic.php?mode=attach&id=117839' > /mnt/mkrefpup/tcz/mcorepup04/usr/local/bin/mcorepup04.fig" ; shell
  1098. now = tczbuild "mcorepup04"
  1099. fig
  1100. ifequal chver versions
  1101. pname = "mcorepup" plus chv ; split pname "." ; join pname ""
  1102. now = tczpreps pname "/usr/local/bin"
  1103. now = "cp /mnt/mkrefpup/" plus pname plus ".fig /mnt/mkrefpup/tcz/" plus pname plus "/usr/local/bin 2> /dev/null" ; shell
  1104. now = tczbuild pname
  1105. fig
  1106. next
  1107. rep = "[ " ; prints ; "created tcz packages for the following versions of mcorepup: " plus chtrack colortext 10 prints colortext 7 "]" print
  1108. fig
  1109. change = changeforwhom profiles "wanderer"
  1110. iftrue change
  1111. now = "ls /mnt/mkrefpup/newiso/cde/optional/*.tcz | sort -f | tr '/' '\n' | grep tcz > /mnt/mkrefpup/newiso/cde/xbase.lst" ; shell
  1112. now = "ls /mnt/mkrefpup/newiso/cde/optional/*.tcz | sort -f | tr '/' '\n' | grep tcz > /mnt/mkrefpup/newiso/cde/onboot.lst" ; shell
  1113. rep = "[ " ; prints ; "updated xbase.lst and onboot.lst" colortext 10 prints colortext 7 " ]" print
  1114. fig
  1115. change = changeforwhom profiles "freemos"
  1116. iftrue change
  1117. now "/mnt/mkrefpup/coreplusfs/squashfs-root" chdir
  1118. iftrue fastcomp
  1119. now "mksquashfs . /mnt/mkrefpup/newiso/casper/filesystem.squashfs -noappend ; ###cp /mnt/mkrefpup/newfs/new.sfs /mnt/mkrefpup/newiso/puppy_librepup_6.0.2.2.sfs" shell
  1120. else
  1121. now "mksquashfs . /mnt/mkrefpup/newiso/casper/filesystem.squashfs -noappend -comp xz -b 512K ; cp /mnt/mkrefpup/newfs/new.sfs /mnt/mkrefpup/newiso/puppy_librepup_6.0.2.2.sfs" shell
  1122. fig
  1123. now "echo 'mkdir /mnt/hda1' >> /mnt/mkrefpup/coreplusfs/squashfs-root/etc/rc.local" shell
  1124. now "echo 'mkdir /mnt/hda2' >> /mnt/mkrefpup/coreplusfs/squashfs-root/etc/rc.local" shell
  1125. now "echo 'mkdir /mnt/hdb1' >> /mnt/mkrefpup/coreplusfs/squashfs-root/etc/rc.local" shell
  1126. now "echo 'mkdir /mnt/hdb2' >> /mnt/mkrefpup/coreplusfs/squashfs-root/etc/rc.local" shell
  1127. now "echo 'mount -r /dev/sda1 /mnt/hda1' >> /mnt/mkrefpup/coreplusfs/squashfs-root/etc/rc.local" shell
  1128. now "echo 'mount -r /dev/sda2 /mnt/hda2' >> /mnt/mkrefpup/coreplusfs/squashfs-root/etc/rc.local" shell
  1129. now "echo 'mount -r /dev/sdb1 /mnt/hdb1' >> /mnt/mkrefpup/coreplusfs/squashfs-root/etc/rc.local" shell
  1130. now "echo 'mount -r /dev/sdb2 /mnt/hdb2' >> /mnt/mkrefpup/coreplusfs/squashfs-root/etc/rc.local" shell
  1131. now "echo 'rm /usr/share/icewm/themes/default/default.png' >> /mnt/mkrefpup/coreplusfs/squashfs-root/root/wminstall" shell
  1132. now "echo 'rm /usr/share/icewm/taskbar/*pm' >> /mnt/mkrefpup/coreplusfs/squashfs-root/root/wminstall" shell
  1133. now "echo 'cp /usr/share/icewm.xpm /usr/share/icewm/taskbar' >> /mnt/mkrefpup/coreplusfs/squashfs-root/root/wminstall" shell
  1134. now "echo 'cp /usr/bin/icewm-session /usr/bin/lxqt-session' >> /mnt/mkrefpup/coreplusfs/squashfs-root/root/wminstall" shell
  1135. now "echo 'cp /usr/share/icewm/preferences /usr/share/icewm/pref' >> /mnt/mkrefpup/coreplusfs/squashfs-root/root/wminstall" shell
  1136. now "echo 'cp /usr/bin/qter* /usr/bin/xterm' >> /mnt/mkrefpup/coreplusfs/squashfs-root/root/wminstall" shell
  1137. now "echo 'echo DesktopBackgroundColor=000000 >> /usr/share/icewm/themes/default/default.theme' >> /mnt/mkrefpup/coreplusfs/squashfs-root/root/wminstall" shell
  1138. quot 34 chr
  1139. quoted = "echo 'cat /usr/share/icewm/pref | alex23.py --replace " plus quot plus "# TaskBarShowClock=1" plus quot plus " "
  1140. quoted2 = quoted plus quot plus "TaskBarShowClock=0" plus quot plus " | alex23.py --replace " plus quot plus "# TaskBarAtTop=0" plus quot plus " "
  1141. quoted3 = quoted2 plus quot plus "TaskBarAtTop=1" plus quot plus " | alex23.py --replace " plus quot plus "# TaskBarShowWindowListMenu=1" plus quot
  1142. quoted = quoted3 plus " " plus quot plus "TaskBarShowWindowListMenu=0" plus quot plus " > /usr/share/icewm/preferences ; fi' >> /mnt/mkrefpup/coreplusfs/squashfs-root/root/wminstall"
  1143. now quoted shell
  1144. now "echo '/root/desktops &' >> /mnt/mkrefpup/coreplusfs/squashfs-root/etc/rc.local" shell
  1145. now "echo '/root/welcomes &' >> /mnt/mkrefpup/coreplusfs/squashfs-root/etc/rc.local" shell
  1146. 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/mkrefpup/coreplusfs/squashfs-root/etc/rc.local" shell
  1147. 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/mkrefpup/coreplusfs/squashfs-root/etc/rc.local" shell
  1148. 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/mkrefpup/coreplusfs/squashfs-root/etc/rc.local" shell
  1149. 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/mkrefpup/coreplusfs/squashfs-root/etc/rc.local" shell
  1150. #now "/mnt/mkrefpup/coreplusfs/squashfs-root" chdir
  1151. now "/mnt/mkrefpup/coreplusfs" chdir
  1152. rep = "[ " ; prints ; "created part of another distro within this one, but not really, not this time" colortext 10 prints colortext 7 " ]" print
  1153. fig
  1154. #iftrue fastcomp
  1155. # now "mksquashfs . /mnt/mkrefpup/newiso/LiveOS/squashfs.img -noappend" shell
  1156. # else
  1157. # now "mksquashfs . /mnt/mkrefpup/newiso/LiveOS/squashfs.img -noappend -comp xz -b 512K" shell
  1158. # fig
  1159. # rep = "[ " ; prints ; "created part of another distro within this one, but not really, not this time" colortext 10 prints colortext 7 " ]" print
  1160. now "/mnt/mkrefpup/newiso" chdir
  1161. change = changeforwhom profiles "libre"
  1162. iftrue change
  1163. now = "rm /mnt/mkrefpup/newiso/cde/optional/firmware-*" ; shell
  1164. rep = "[ " ; prints ; "removed those pesky non-free firmware files, if it removed floss ones please report on forum" colortext 10 prints colortext 7 " ]" print
  1165. fig
  1166. rep = "[ " ; prints ; "now trying to create bootable iso. what size are you expecting?" colortext 10 prints colortext 7 " ]" print
  1167. # this part mainly changes when moving from one distro to another. it is already tailored to mcorepup
  1168. # now "cp /mnt/mkrefpup/logo.16 boot/isolinux/splash.png" shell
  1169. # now "cp /mnt/mkrefpup/coreplus/LiveOS/squashfs.img LiveOS" shell
  1170. now "cp /mnt/mkrefpup//mkfreemos01.fig /mnt/mkrefpup/newiso/" shell
  1171. 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/mkrefpup/" plus isoname plus ".iso /mnt/mkrefpup/newiso/" right 90 ; print
  1172. 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/mkrefpup/" plus isoname plus ".iso /mnt/mkrefpup/newiso/" shell
  1173. #now "xorriso -as mkisofs -r -J -joliet-long -l -cache-inodes -isohybrid-mbr isolinux/isolinux.bin -partition_offset 16 -volid FREEMEDIAOS -A 'free media os' -b isolinux/isolinux.bin -c isolinux/boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table -o /mnt/mkrefpup/" plus isoname plus ".iso /mnt/mkrefpup/newiso/" right 90 ; print
  1174. #now "xorriso -as mkisofs -r -J -joliet-long -l -cache-inodes -isohybrid-mbr isolinux/isolinux.bin -partition_offset 16 -volid FREEMEDIAOS -A 'free media os' -b isolinux/isolinux.bin -c isolinux/boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table -o /mnt/mkrefpup/" plus isoname plus ".iso /mnt/mkrefpup/newiso/" shell
  1175. #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/mkrefpup/" plus isoname plus ".iso /mnt/mkrefpup/newiso/" ; right 90 ; print
  1176. #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/mkrefpup/" plus isoname plus ".iso /mnt/mkrefpup/newiso/" ; shell
  1177. findhybrid = "cat $(which isohybrid) /dev/null | wc -m" ; arrshell ; join findhybrid "" ; int
  1178. now "isohybrid /mnt/mkrefpup/" plus isoname plus ".iso" shell
  1179. now = "[ " ; prints ; colortext 10 ; "ls -lh /mnt/mkrefpup/" plus isoname plus ".iso" ; arrshell ; join now "" ; prints
  1180. now = colortext 7 ; " ]" ; print
  1181. iftrue findhybrid
  1182. rep = "[ " ; prints ; "ran isohybrid so users can dd to usb" colortext 10 prints colortext 7 " ]" print
  1183. fig