mkdlibre02.fig 121 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399
  1. #### license: creative commons cc0 1.0 (public domain)
  2. #### http://creativecommons.org/publicdomain/zero/1.0/
  3. proginf = "mkdlibre 0.2, oct 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 mkdlibre.
  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. sourcedistro = "trisquel8 debianliveinst95 voidlxqtlive201710 devuanascii200live refracta9beta devuanascii200live"
  13. # mcorepup-0.3 means "create tcz packages for current version of this remaster tool, and for previous versions, back to 0.3"
  14. # the default is currently not to create mcorepup packages.
  15. # to avoid ambiguity: "tcz packages" are packages for tinycore or corepup.
  16. # "mcorepup packages" are packages containing the mcorepup tool.
  17. # non-standard extras
  18. # profiles = "wanderer wanderer-minimal wanderer-core figosdev figosdev-more libre mcorepup-3"
  19. # standard corepup 6: (unused since mcorepup 0.1, please report results if you try it)
  20. profiles = "wanderer"
  21. # standard corepup 7:
  22. profiles = "wanderer wanderer-minimal"
  23. # standard corepup 8:
  24. profiles = "wanderer wanderer-minimal wanderer-core"
  25. srcdist = split sourcedistro " " right 1 mid 1 1
  26. # the default profiles line is closer to the standard:
  27. # this is the one that counts when you run mcorepup
  28. profiles = "freemos"
  29. # you want fastcomp to be 0
  30. # (removing the 1 works as well as putting a 0 after.)
  31. # set to 1 when trying the script out, will do less compression of sfs
  32. fastcomp 1
  33. ifequal srcdist "trisquel8"
  34. primaryurl = "http://mirror.fsf.org/trisquel-images/trisquel_8.0_i686.iso"
  35. # sha256 ff7fd63be01093f5da234534db107b22f84a00e7ac63732cbb73340e17e2c3da
  36. fig
  37. ifequal srcdist "debianliveinst95"
  38. primaryurl = "https://cdimage.debian.org/debian-cd/current-live/i386/iso-hybrid/debian-live-9.5.0-i386-xfce.iso"
  39. # sha256 8eb8df468ae58d0d5abb31cf2ffa1efbdcfb3d36d7d152b146f7ca4989c7c00c
  40. fig
  41. ifequal srcdist "voidlxqtlive201710"
  42. primaryurl = "https://archive.org/download/VoidLinux/void-live-i686-20171007-lxqt.iso"
  43. # sha256 bfce0a7f4c82b6fb6a89d3ba1d96df6ca3041bef38612059e7da46fed37ed189
  44. fig
  45. ifequal srcdist "devuanascii200live"
  46. primaryurl = "https://archive.org/download/Devuan_Linux/devuan_ascii_2.0.0_i386_desktop-live.iso"
  47. # sha256 8f535c235897303a5d55266858ffe9fe6c4d3e830f609c77c406f6e4aed0befa
  48. fig
  49. ifequal srcdist "refracta9beta"
  50. primaryurl = "https://archive.org/download/Refracta_Linux/refracta9_xfce_i386_beta2-20180417_1339.iso"
  51. # sha256 488b4d83be5b1d55b9e4115dfdce68c15ccc3711ea8710f11d72c724333d2ac5
  52. fig
  53. # to add functionality for a contributor or feature, use this conditional around their code:
  54. # change = changeforwhom profiles "contributorname"
  55. # iftrue change
  56. # # put code for that contributor here
  57. # # it will only run if mcorepup is run with their name included in profiles
  58. # fig
  59. cksrc srcdist rtrim
  60. ifequal cksrc ""
  61. now = "no source distro selected by sourcedistro variable, exiting" print
  62. fig
  63. isoname "dlibre" plus isov
  64. function changeforwhom (profiles whom)
  65. now = profiles ; lcase ; split now " " ; instr now whom ; return now
  66. fig
  67. function changeforoption (profiles whom)
  68. p = profiles ; lcase ; split p " "
  69. find = whom plus "-" ; lcase
  70. forin t p
  71. now = instr t whom
  72. ifequal now 1
  73. profilelen = find ; len
  74. r = t ; len ; minus profilelen
  75. opt = t ; right r ; return opt
  76. fig
  77. next
  78. now return ""
  79. fig
  80. function tczpreps (pkg addpath)
  81. now = "mkdir -p /mnt/dlibre/tcz" ; shell
  82. now = "mkdir -p /mnt/dlibre/tcz/" plus pkg plus addpath ; shell
  83. fig
  84. function (tczbuild pkg)
  85. now = "mksquashfs /mnt/dlibre/tcz/" plus pkg plus " " plus "/mnt/dlibre/newiso/cde/optional/" plus pkg plus ".tcz -noappend" ; shell
  86. now = "md5sum /mnt/dlibre/newiso/cde/optional/" plus pkg plus ".tcz > /mnt/dlibre/newiso/cde/optional/" plus pkg plus ".tcz.md5.txt" ; shell
  87. fig
  88. function addquoted mainv toquote
  89. q 34 chr
  90. now mainv plus " " plus q plus toquote plus q return now
  91. fig
  92. function urf (p)
  93. # filename from url
  94. # ... return whats to the right of the rightmost "/" (or entire string if "/" not found)
  95. r p reverse instr r "/" minus 1
  96. ifmore r 0
  97. now p right r return now
  98. else
  99. now p return now
  100. fig
  101. fig
  102. function download (iso)
  103. now = iso
  104. now = urf iso
  105. u = urf iso
  106. ck = "ls" addquoted ck u plus " | wc -l" arrshell join ck " " int
  107. ifequal ck 0
  108. now "wget" addquoted now iso plus " 2> /dev/null" shell
  109. ck = "ls" addquoted ck u plus " | wc -l" arrshell join ck " " int print
  110. else
  111. now u colortext 15 plus " already exists, not downloading" prints colortext 7 "" print
  112. fig
  113. fig
  114. function gettcz (major pkg)
  115. base = "http://tinycorelinux.net/"
  116. pkgurl = base plus major plus "/x86/tcz/" plus pkg plus ".tcz" ; download pkgurl
  117. txturl = base plus major plus "/x86/tcz/" plus pkg plus ".tcz.md5.txt" ; download txturl
  118. depurl = base plus major plus "/x86/tcz/" plus pkg plus ".tcz.dep" ; download depurl
  119. fig
  120. function copytcz (major pkg topath)
  121. base = "cp '/mnt/dlibre/"
  122. pkgurl = base plus pkg plus ".tcz' " plus topath ; shell
  123. txturl = base plus pkg plus ".tcz.md5.txt' " plus topath ; shell
  124. depurl = base plus pkg plus ".tcz.dep' " plus topath ; shell
  125. fig
  126. function rmtcz (major pkg)
  127. base = "rm "
  128. pkgurl = base plus pkg plus ".tcz" ; shell
  129. txturl = base plus pkg plus ".tcz.md5.txt 2> /dev/null" ; shell
  130. depurl = base plus pkg plus ".tcz.dep 2> /dev/null" ; shell
  131. fig
  132. function addpackages (pkgtype major pkgs)
  133. addpkg = split pkgs " "
  134. forin packages addpkg
  135. now = gettcz major packages
  136. next
  137. fig
  138. function copypackages (pkgtype major pkgs topath)
  139. addpkg = split pkgs " "
  140. forin packages addpkg
  141. now = copytcz major packages topath
  142. next
  143. fig
  144. function rmpackages (pkgtype major pkgs)
  145. rmpkg = split pkgs " "
  146. forin packages rmpkg
  147. now = rmtcz major packages
  148. next
  149. fig
  150. pwd "pwd" arrshell join pwd ""
  151. # setup and some old stuff from mkfigos that wont go in the build by default
  152. urfprimaryurl = urf primaryurl
  153. now download primaryurl
  154. fpath pwd plus "/" plus urfprimaryurl
  155. now "mkdir /mnt/dlibre" shell
  156. now "mkdir /mnt/dlibre/newiso" shell
  157. #now "mkdir /mnt/dlibre/fs" shell
  158. now "mkdir /mnt/dlibre/mountprimary" shell
  159. now "mkdir /mnt/dlibre/primaryfs" shell
  160. nowplus "cd /mnt/dlibre ; if [ -e fig46.py ] ; then echo ; else wget -O- 'https://notabug.org/figosdev/figos/raw/master/el3ZRly.png' > logo.16 ; "
  161. 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
  162. q 34 chr
  163. now "mount " plus q plus pwd plus "/" plus urfprimaryurl plus q plus " /mnt/dlibre/mountprimary -o loop" shell
  164. ifequal srcdist "trisquel8"
  165. now "mkdir /mnt/dlibre/newiso/dists" shell
  166. now "mkdir /mnt/dlibre/newiso/.disk" shell
  167. now "mkdir /mnt/dlibre/newiso/preseed" shell
  168. now "mkdir /mnt/dlibre/newiso/casper" shell
  169. now "mkdir /mnt/dlibre/newiso/isolinux" shell
  170. now "cp -r /mnt/dlibre/mountprimary/dists/* /mnt/dlibre/newiso/dists/" shell
  171. now "cp -r /mnt/dlibre/mountprimary/.disk/* /mnt/dlibre/newiso/.disk/" shell
  172. now "cp -r /mnt/dlibre/mountprimary/preseed/* /mnt/dlibre/newiso/preseed/" shell
  173. now "cp -r /mnt/dlibre/mountprimary/casper/initrd* /mnt/dlibre/mountprimary/casper/vmlinuz* /mnt/dlibre/newiso/casper/" shell
  174. now "cp /mnt/dlibre/mountprimary/isolinux/* /mnt/dlibre/newiso/isolinux" shell
  175. fig
  176. ifequal srcdist "debianliveinst95"
  177. now "mkdir /mnt/dlibre/newiso/dists" shell
  178. now "mkdir /mnt/dlibre/newiso/.disk" shell
  179. now "mkdir /mnt/dlibre/newiso/preseed" shell
  180. now "mkdir /mnt/dlibre/newiso/live" shell
  181. now "mkdir /mnt/dlibre/newiso/isolinux" shell
  182. now "cp -r /mnt/dlibre/mountprimary/dists/* /mnt/dlibre/newiso/dists/" shell
  183. now "cp -r /mnt/dlibre/mountprimary/.disk/* /mnt/dlibre/newiso/.disk/" shell
  184. now "cp -r /mnt/dlibre/mountprimary/preseed/* /mnt/dlibre/newiso/preseed/" shell
  185. now "cp -r /mnt/dlibre/mountprimary/live/initrd* /mnt/dlibre/mountprimary/live/vmlinuz* /mnt/dlibre/newiso/live/" shell
  186. now "cp /mnt/dlibre/mountprimary/isolinux/* /mnt/dlibre/newiso/isolinux" shell
  187. fig
  188. ifequal srcdist "voidlxqtlive201710"
  189. now "mkdir /mnt/dlibre/newiso/boot" shell
  190. now "mkdir /mnt/dlibre/newiso/boot/isolinux" shell
  191. now "cp -r /mnt/dlibre/mountprimary/boot/* /mnt/dlibre/newiso/boot/" shell
  192. now
  193. now "mkdir /mnt/dlibre/newiso/LiveOS" shell
  194. now "mkdir /mnt/dlibre/newiso/boot" shell
  195. now "mkdir /mnt/dlibre/newiso/boot/isolinux" shell
  196. now
  197. now "cp /mnt/dlibre/mountprimary/boot/vmlinuz /mnt/dlibre/newiso/boot/" shell
  198. now "cp /mnt/dlibre/mountprimary/boot/initrd /mnt/dlibre/newiso/boot/" shell
  199. fig
  200. ifequal srcdist "devuanascii200live"
  201. now "mkdir /mnt/dlibre/newiso/dists" shell
  202. now "mkdir /mnt/dlibre/newiso/.disk" shell
  203. now "mkdir /mnt/dlibre/newiso/preseed" shell
  204. now "mkdir /mnt/dlibre/newiso/live" shell
  205. now "mkdir /mnt/dlibre/newiso/isolinux" shell
  206. now "cp -r /mnt/dlibre/mountprimary/dists/* /mnt/dlibre/newiso/dists/" shell
  207. now "cp -r /mnt/dlibre/mountprimary/.disk/* /mnt/dlibre/newiso/.disk/" shell
  208. now "cp -r /mnt/dlibre/mountprimary/preseed/* /mnt/dlibre/newiso/preseed/" shell
  209. # we change initrd now "cp -r /mnt/dlibre/mountprimary/live/initrd* /mnt/dlibre/mountprimary/live/vmlinuz* /mnt/dlibre/newiso/live/" shell
  210. now "cp -r /mnt/dlibre/mountprimary/live/vmlinuz* /mnt/dlibre/newiso/live/" shell
  211. now "cp /mnt/dlibre/mountprimary/isolinux/* /mnt/dlibre/newiso/isolinux" shell
  212. fig
  213. ifequal srcdist "refracta9beta"
  214. now "mkdir /mnt/dlibre/newiso/dists" shell
  215. now "mkdir /mnt/dlibre/newiso/.disk" shell
  216. now "mkdir /mnt/dlibre/newiso/preseed" shell
  217. now "mkdir /mnt/dlibre/newiso/live" shell
  218. now "mkdir /mnt/dlibre/newiso/isolinux" shell
  219. now "cp -r /mnt/dlibre/mountprimary/dists/* /mnt/dlibre/newiso/dists/" shell
  220. now "cp -r /mnt/dlibre/mountprimary/.disk/* /mnt/dlibre/newiso/.disk/" shell
  221. now "cp -r /mnt/dlibre/mountprimary/preseed/* /mnt/dlibre/newiso/preseed/" shell
  222. now "cp -r /mnt/dlibre/mountprimary/live/initrd* /mnt/dlibre/mountprimary/live/vmlinuz* /mnt/dlibre/newiso/live/" shell
  223. now "cp /mnt/dlibre/mountprimary/isolinux/* /mnt/dlibre/newiso/isolinux" shell
  224. fig
  225. change = changeforwhom profiles "wanderer-core"
  226. iftrue change
  227. now "rm /mnt/dlibre/newiso/isolinux/f1 /mnt/dlibre/newiso/isolinux/menu.c32" ; shell
  228. rep = "[ " ; prints ; "removed f1 and menu.c32 for core (corepup-8 standard)" colortext 10 prints colortext 7 " ]" print
  229. fig
  230. #now = "mkdir -p /mnt/dlibre/newiso/cde/optional 2> /dev/null" ; shell
  231. #now = "/mnt/dlibre/newiso/cde/optional" ; chdir
  232. change = changeforwhom profiles "wanderer"
  233. iftrue change
  234. now = "/mnt/dlibre" ; chdir
  235. now = addpackages "tcz" "9.x" "glib1 gtk1 leafpad emelfm dillo"
  236. now = copypackages "tcz" "9.x" "glib1 gtk1 leafpad emelfm dillo" "/mnt/dlibre/newiso/cde/optional"
  237. now = "/mnt/dlibre/newiso/cde/optional" ; chdir
  238. # sha256 47e738d43a97397f731c741d55755be57119a114475031f627877e5646fb36cf
  239. now = "wget -O- https://ptpb.pw/0fdv > /mnt/dlibre/newiso/cde/optional/corepup.tcz" ; shell
  240. rep = "[ " ; prints ; "added glib1 gtk1 leafpad emelfm dillo" colortext 10 prints colortext 7 " ]" print
  241. fig
  242. change = changeforwhom profiles "wanderer-minimal"
  243. iftrue change
  244. now = rmpackages "tcz" "" "firmware-ipw2100 firmware-ipw2200 fltk-1.1.10 firmware_iwlwifi-7260 glib1"
  245. now = rmpackages "tcz" "" "gtk1 glib2 gdk-pixbuf2 gtk2 libxml2 expat2 firmware-broadcom_bnx2 perl5 libEGL"
  246. now = rmpackages "tcz" "" "libGL libFS libXxf86dga libXinerama liblzma ttf-bitstream-vera Xorg-7.7-lib"
  247. now = rmpackages "tcz" "" "udev-lib libXvmc leafpad libxshmfence libglade flwm_topside firmware-myri10ge"
  248. now = rmpackages "tcz" "" "libXdamage firmware-vxge libxkbfile readline firmware wl-modules-3.16.6-tinycore"
  249. now = rmpackages "tcz" "" "ndiswrapper-modules-3.16.6-tinycore wireless-3.16.6-tinycore firmware-zd1211"
  250. now = rmpackages "tcz" "" "libXcomposite libtiff firmware-openfwwf fontconfig librsvg libpci"
  251. now = rmpackages "tcz" "" "fribidi libffi wifi firmware-iwlwifi atk tc-install libnl openssl emelfm libdrm"
  252. now = rmpackages "tcz" "" "firmware-ueagle-atm libXxf86vm icewm jwm flwm pixman firmware-netxen"
  253. now = rmpackages "tcz" "" "gamin firmware-radeon libstartup-notification libcroco pango dillo cairo"
  254. now = rmpackages "tcz" "" "advcomp tar ndiswrapper ezremaster b43-fwcutter libXcursor firmware-libertas"
  255. now = rmpackages "tcz" "" "libXres ncurses libXfixes pci-utils mkisofs-tools wireless_tools"
  256. now = rmpackages "tcz" "" "dosfstools firmware-atheros kmaps libXss libpciaccess libXft wpa_supplicant"
  257. now = rmpackages "tcz" "" "libXtst libXv libXaw iw libiw firmware-iwimax libdmx hackedbox openbox"
  258. now = rmpackages "tcz" "" "fluxbox syslinux firmware-broadcom_bcm43xx firmware-ti-connectivity harfbuzz"
  259. now = "rm ../wififirmware.instlist libX11.tcz.dep imlib2.tcz.dep " ; shell
  260. now = "rm ../wifi.instlist fltk-1.3.tcz.dep libxcb.tcz.dep " ; shell
  261. now = "rm ../installer.instlist libXi.tcz.dep libXpm.tcz.dep " ; shell
  262. now = "rm ../ndiswrapper.instlist imlib2-bin.tcz.dep wbar.tcz.dep " ; shell
  263. now = "rm ../remaster.instlist libXrandr.tcz.dep libXrender.tcz.dep " ; shell
  264. now = "rm ../kmaps.instlist Xlibs.tcz.dep Xprogs.tcz.dep " ; shell
  265. now = "rm ../xfbase.lst libXt.tcz.dep libXfont.tcz.dep " ; shell
  266. now = "rm ../xibase.lst libXext.tcz.dep libXmu.tcz.dep " ; shell
  267. now = "rm ../xwbase.lst " ; shell
  268. rep = "[ " ; prints ; "changed to convert corepup to corepup minimal (corepup-7 standard)" colortext 10 prints colortext 7 " ]" print
  269. fig
  270. change = changeforwhom profiles "wanderer"
  271. iftrue change
  272. now = "echo aterm.tcz > ../copy2fs.lst ; echo fltk-1.3.tcz >> ../copy2fs.lst" ; shell
  273. now = "echo corepup-jwm.tcz >> ../copy2fs.lst ; echo freetype.tcz >> ../copy2fs.lst" ; shell
  274. now = "echo imlib2-bin.tcz >> ../copy2fs.lst ; echo imlib2.tcz >> ../copy2fs.lst" ; shell
  275. now = "echo libfontenc.tcz >> ../copy2fs.lst ; echo libICE.tcz >> ../copy2fs.lst" ; shell
  276. now = "echo libjpeg-turbo.tcz >> ../copy2fs.lst ; echo libpng.tcz >> ../copy2fs.lst" ; shell
  277. now = "echo libSM.tcz >> ../copy2fs.lst ; echo libX11.tcz >> ../copy2fs.lst" ; shell
  278. now = "echo libXau.tcz >> ../copy2fs.lst ; echo libxcb.tcz >> ../copy2fs.lst" ; shell
  279. now = "echo libXdmcp.tcz >> ../copy2fs.lst ; echo libXext.tcz >> ../copy2fs.lst" ; shell
  280. now = "echo libXfont.tcz >> ../copy2fs.lst ; echo libXi.tcz >> ../copy2fs.lst" ; shell
  281. now = "echo libXmu.tcz >> ../copy2fs.lst ; echo libXpm.tcz >> ../copy2fs.lst" ; shell
  282. now = "echo libXrandr.tcz >> ../copy2fs.lst ; echo libXrender.tcz >> ../copy2fs.lst" ; shell
  283. now = "echo libXt.tcz >> ../copy2fs.lst ; echo wbar.tcz >> ../copy2fs.lst" ; shell
  284. now = "echo Xlibs.tcz >> ../copy2fs.lst ; echo Xprogs.tcz >> ../copy2fs.lst" ; shell
  285. now = "echo Xvesa.tcz >> ../copy2fs.lst " ; shell
  286. rep = "[ " ; prints ; "added copy2fs edits for corepup standard (all versions so far)" colortext 10 prints colortext 7 " ]" print
  287. fig
  288. change = changeforwhom profiles "wanderer-core"
  289. iftrue change
  290. now "cd .. ; rm xbase.lst copy2fs.lst onboot.lst" ; shell
  291. 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
  292. now "rm Xvesa.tcz.md5.txt libxcb.tcz.md5.txt libfontenc.tcz.md5.txt freetype.tcz.md5.txt libpng.tcz.md5.txt" ; shell
  293. 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
  294. now "rm libXdmcp.tcz.md5.txt wbar.tcz.md5.txt libXrandr.tcz.md5.txt libXrender.tcz.md5.txt Xlibs.tcz.md5.txt" ; shell
  295. now "rm Xprogs.tcz.md5.txt libXt.tcz.md5.txt libXfont.tcz.md5.txt libXext.tcz.md5.txt libXau.tcz.md5.txt" ; shell
  296. now "rm libXmu.tcz.md5.txt libX11.tcz imlib2.tcz fltk-1.3.tcz libICE.tcz" ; shell
  297. now "rm libSM.tcz Xvesa.tcz libxcb.tcz libfontenc.tcz freetype.tcz" ; shell
  298. now "rm libpng.tcz libXi.tcz libXpm.tcz aterm.tcz imlib2-bin.tcz" ; shell
  299. now "rm libjpeg-turbo.tcz libXdmcp.tcz corepup.tcz wbar.tcz libXrandr.tcz" ; shell
  300. now "rm libXrender.tcz Xlibs.tcz Xprogs.tcz libXt.tcz libXfont.tcz" ; shell
  301. now "rm libXext.tcz libXau.tcz libXmu.tcz" ; shell
  302. rep = "[ " ; prints ; "removed over 40 packages, for core standard (corepup-8 standard)" colortext 10 prints colortext 7 " ]" print
  303. fig
  304. change = changeforwhom profiles "wanderer-core"
  305. iftrue change
  306. nl 10 chr
  307. filetext = arrcurl "http://murga-linux.com/puppy/viewtopic.php?mode=attach&id=117709"
  308. openname = "/mnt/dlibre/newiso/isolinux/f2" ; open "w"
  309. now = join filetext nl ; fprint openname
  310. now = openname ; close
  311. filetext = arrcurl "http://murga-linux.com/puppy/viewtopic.php?mode=attach&id=117710"
  312. openname = "/mnt/dlibre/newiso/isolinux/f3" ; open "w"
  313. now = join filetext nl ; fprint openname
  314. now = openname ; close
  315. filetext = arrcurl "http://murga-linux.com/puppy/viewtopic.php?mode=attach&id=117711"
  316. openname = "/mnt/dlibre/newiso/isolinux/f4" ; open "w"
  317. now = join filetext nl ; fprint openname
  318. now = openname ; close
  319. filetext = arrcurl "http://murga-linux.com/puppy/viewtopic.php?mode=attach&id=117712"
  320. openname = "/mnt/dlibre/newiso/isolinux/boot.msg" ; open "w"
  321. now = join filetext nl ; fprint openname
  322. now = openname ; close
  323. rep = "[ " ; prints ; "boot edits made for corepup-8 standard" colortext 10 prints colortext 7 " ]" print
  324. fig
  325. change = changeforwhom profiles "figosdev"
  326. iftrue change
  327. now = "/mnt/dlibre" ; chdir
  328. now = addpackages "tcz" "9.x" "syslinux"
  329. # add python 2
  330. now = addpackages "tcz" "9.x" "python libffi ncurses readline gdbm openssl bzip2-lib sqlite3"
  331. # add curl
  332. now = addpackages "tcz" "9.x" "libgpg-error libgcrypt libssh2 libidn curl"
  333. now = copypackages "tcz" "9.x" "syslinux" "/mnt/dlibre/newiso/cde/optional"
  334. # add python 2
  335. now = copypackages "tcz" "9.x" "python libffi ncurses readline gdbm openssl bzip2-lib sqlite3" "/mnt/dlibre/newiso/cde/optional"
  336. # add curl
  337. now = copypackages "tcz" "9.x" "libgpg-error libgcrypt libssh2 libidn curl" "/mnt/dlibre/newiso/cde/optional"
  338. now = "/mnt/dlibre/newiso/cde/optional" ; chdir
  339. # add qemu-x86 (requires curl)
  340. # now = addpackages "tcz" "9.x" "qemu-x86 libcap-ng gamin glib2 qemu-common pixman udev-lib libusb libasound libmad SDL"
  341. rep = "[ " ; prints ; "added python and syslinux per figosdev" colortext 10 prints colortext 7 " ]" print
  342. fig
  343. now = "/mnt/dlibre" ; chdir
  344. change = changeforwhom profiles "figosdev-more"
  345. iftrue change
  346. now "mkdir /mnt/dlibre/newiso/LiveOS" shell
  347. rep = "[ " ; prints ; "creating directory that goes with some other distro" colortext 10 prints colortext 7 " ]" print
  348. fig
  349. now "cp /mnt/dlibre/mountprimary/casper/vmlinuz /mnt/dlibre/newiso/casper/" shell
  350. now "cp /mnt/dlibre/mountprimary/casper/initrd /mnt/dlibre/newiso/casper/" shell
  351. # now "cp /mnt/dlibre/mountprimary/live/filesystem.squashfs /mnt/dlibre/newiso/live" shell
  352. function fixpings force isoname fromt tot fname
  353. try
  354. fc arropen fname
  355. ck join fc " " instr ck "auto-edited by mk"
  356. iftrue force
  357. ck 0
  358. fig
  359. iftrue ck
  360. pass
  361. else
  362. now fname open "w"
  363. forin t fc
  364. text split t fromt join text tot
  365. now text fprint fname
  366. next
  367. now " # auto-edited by mk" plus isoname fprint fname
  368. now fname close
  369. q 34 chr
  370. now "chmod +x " plus q plus fname plus q shell
  371. fig
  372. except
  373. pass
  374. resume
  375. fig
  376. ifequal srcdist "voidlxqtlive201710"
  377. now fixpings 0 isoname "VSHIFT 2" "VSHIFT 14" "/mnt/dlibre/newiso/boot/isolinux/isolinux.cfg"
  378. now fixpings 0 isoname "Italiano" "it_IT locale" "/mnt/dlibre/newiso/boot/isolinux/isolinux.cfg"
  379. now fixpings 1 isoname "Void Linux" "Fig OS" "/mnt/dlibre/newiso/boot/isolinux/isolinux.cfg"
  380. now "/mnt/dlibre/primaryfs" chdir
  381. now "unsquashfs -p 1 /mnt/dlibre/mountprimary/LiveOS/squashfs.img" shell
  382. now "mkdir /mnt/dlibre/vfs/" shell
  383. now "mkdir /mnt/dlibre/vfs/squashfs-root/" shell
  384. now "echo copying #; cp /mnt/dlibre/primaryfs/squashfs-root/LiveOS/ext3fs.img /mnt/dlibre/"
  385. now "mount /mnt/dlibre/primaryfs/squashfs-root/LiveOS/ext3fs.img /mnt/dlibre/vfs/squashfs-root/" shell
  386. now "echo '#!/bin/bash' > /mnt/dlibre/vfs/squashfs-root/usr/sbin/figoshelp" shell
  387. quot 34 chr
  388. bs 92 chr
  389. 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
  390. now "chmod +x /mnt/dlibre/vfs/squashfs-root/usr/sbin/figoshelp" shell
  391. now "mkdir /mnt/dlibre/vfs/squashfs-root/usr/share/doc/puppy" shell
  392. now "rm ../vfs/squashfs-root/usr/share/applications/gimp.desktop" shell
  393. now "rm -rf ../vfs/squashfs-root/usr/bin/gimp*" shell
  394. now "rm -rf ../vfs/squashfs-root/etc/gimp" shell
  395. now "rm -rf ../vfs/squashfs-root/usr/lib/gimp" shell
  396. now "rm -rf ../vfs/squashfs-root/usr/share/gimp" shell
  397. now "rm -rf ../vfs/squashfs-root/usr/share/doc/gimp" shell
  398. now "rm -rf ../vfs/squashfs-root/usr/share/doc/gimp-data" shell
  399. now "rm -rf ../vfs/squashfs-root/usr/share/doc/libgimp2.0" shell
  400. now "mkdir /mnt/dlibre/vfs/squashfs-root/usr/share/doc/figueira 2> /dev/null" shell
  401. now "rm /mnt/dlibre/vfs/squashfs-root/usr/bin/fig29.py" shell
  402. now "cp /mnt/dlibre/fig46.py /mnt/dlibre/vfs/squashfs-root/usr/bin" shell
  403. now "cp /mnt/dlibre/figu29.py /mnt/dlibre/vfs/squashfs-root/usr/bin" shell
  404. now "cp /mnt/dlibre/alex23.py /mnt/dlibre/vfs/squashfs-root/usr/bin" shell
  405. now "chmod +x /mnt/dlibre/vfs/squashfs-root/usr/bin/fig46.py" shell
  406. now "chmod +x /mnt/dlibre/vfs/squashfs-root/usr/bin/figu29.py" shell
  407. now "mkdir /mnt/dlibre/primaryfs/squashfs-root/usr/" shell
  408. now "mkdir /mnt/dlibre/primaryfs/squashfs-root/usr/bin" shell
  409. now "mkdir /mnt/dlibre/primaryfs/squashfs-root/usr/share" shell
  410. now "mkdir /mnt/dlibre/primaryfs/squashfs-root/usr/local" shell
  411. now "mkdir /mnt/dlibre/primaryfs/squashfs-root/usr/local/bin" shell
  412. now "rm /mnt/dlibre/vfs/squashfs-root/etc/os-release" shell
  413. now "rm /mnt/dlibre/vfs/squashfs-root/usr/share/lxqt/themes/frost/lxqt*.png" shell
  414. now "echo 'echo >/usr/share/lxqt/graphics/helix.svg' >> /mnt/dlibre/vfs/squashfs-root/etc/rc.local" shell
  415. now "echo '/root/updatefirstrun 2> /dev/null' >> /mnt/dlibre/vfs/squashfs-root/etc/rc.local" shell
  416. now "echo '/root/pythoninstall' >> /mnt/dlibre/vfs/squashfs-root/etc/rc.local" shell
  417. now "echo '/root/wminstall' >> /mnt/dlibre/vfs/squashfs-root/etc/rc.local" shell
  418. now "echo '/root/curlinstall' >> /mnt/dlibre/vfs/squashfs-root/etc/rc.local" shell
  419. now "echo '/root/installother' >> /mnt/dlibre/vfs/squashfs-root/etc/rc.local" shell
  420. quot 34 chr
  421. 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
  422. 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
  423. 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
  424. 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
  425. quot 34 chr
  426. now "echo 'cp /var/cache/?bps/*bps* /mnt/hda1/root/' >> /mnt/dlibre/vfs/squashfs-root/root/.bash_history" shell
  427. 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
  428. now "echo 'xbps-install --repository /var/cache/xbps -yS binutils' >> /mnt/dlibre/vfs/squashfs-root/root/.bash_history" shell
  429. now "echo 'xrandr --output LVDS --off' >> /mnt/dlibre/vfs/squashfs-root/root/.bash_history" shell
  430. now "echo 'gdmap -f /mnt/hda1 &' >> /mnt/dlibre/vfs/squashfs-root/root/.bash_history" shell
  431. 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
  432. fig
  433. #now "cat /mnt/dlibre/iso/isolinux.cfg | head -9 | sed 's/default puppy/default live/g' > /mnt/dlibre/newiso/isolinux.cfg" shell
  434. #now "cat /mnt/dlibre/v/isolinux/live.cfg > /mnt/dlibre/newiso/isolinux.cfg" shell
  435. now "mkdir /mnt/dlibre/primaryfs/" shell
  436. now "/mnt/dlibre/primaryfs" chdir
  437. ifequal srcdist "trisquel8"
  438. now "unsquashfs -p 1 /mnt/dlibre/mountprimary/casper/filesystem.squashfs" shell
  439. #### if you dont use -p 1 its a little too unstable sometimes
  440. fig
  441. ifequal srcdist "debianliveinst95"
  442. now "unsquashfs -p 1 /mnt/dlibre/mountprimary/live/filesystem.squashfs" shell
  443. fig
  444. ifequal srcdist "devuanascii200live"
  445. now "unsquashfs -p 1 /mnt/dlibre/mountprimary/live/filesystem.squashfs" shell
  446. now "rm -rf /mnt/dlibre/primaryfs/squashfs-root/firmware/" shell
  447. fig
  448. ifequal srcdist "refracta9beta"
  449. now "unsquashfs -p 1 /mnt/dlibre/mountprimary/live/filesystem.squashfs" shell
  450. now "rm -rf /mnt/dlibre/primaryfs/squashfs-root/home/user/wireless_firmware" shell
  451. fig
  452. change = changeforwhom "trisquel8 debianliveinst95 devuanascii200live refracta9beta" srcdist
  453. iftrue change
  454. rep = "[ " ; prints ; "removing bloat in locales, icons, extra help files" colortext 10 prints colortext 7 " ]" print
  455. now "rm -rf /mnt/dlibre/primaryfs/squashfs-root/usr/share/gimp" shell
  456. now "rm -rf /mnt/dlibre/primaryfs/squashfs-root/usr/lib/gimp" shell
  457. now "rm -rf /mnt/dlibre/primaryfs/squashfs-root/var/lib/dpkg/info/gimp*" shell
  458. now "rm -rf /mnt/dlibre/primaryfs/squashfs-root/var/lib/dpkg/info/libgimp*" shell
  459. now "rm -rf /mnt/dlibre/primaryfs/squashfs-root/usr/bin/gimp*" shell
  460. now "rm -rf /mnt/dlibre/primaryfs/squashfs-root/etc/gimp" shell
  461. now "rm -rf /mnt/dlibre/primaryfs/squashfs-root/var/lib/doc-base/documents/gimp*" shell
  462. now "rm -rf /mnt/dlibre/primaryfs/squashfs-root/usr/lib/libgimp*" shell
  463. now "rm -rf /mnt/dlibre/primaryfs/squashfs-root/usr/lib/libreoffice" shell
  464. now "rm -rf /mnt/dlibre/primaryfs/squashfs-root/usr/share/libreoffice" shell
  465. now "rm -rf /mnt/dlibre/primaryfs/squashfs-root/usr/lib/icedove*" shell
  466. now "rm -rf /mnt/dlibre/primaryfs/squashfs-root/usr/share/backgrounds" shell
  467. now "rm -rf /mnt/dlibre/primaryfs/squashfs-root/usr/share/mythes" shell
  468. now "rm -rf /mnt/dlibre/primaryfs/squashfs-root/usr/share/hplip" shell
  469. now "rm -rf /mnt/dlibre/primaryfs/squashfs-root/usr/share/gutenprint" shell
  470. now "rm -rf /mnt/dlibre/primaryfs/squashfs-root/usr/lib/cups*" shell
  471. now "rm -rf /mnt/dlibre/primaryfs/squashfs-root/usr/share/mate*" shell
  472. now "rm -rf /mnt/dlibre/primaryfs/squashfs-root/usr/share/app-install" ; shell
  473. now "rm -rf /mnt/dlibre/primaryfs/squashfs-root/usr/share/locale/de" ; shell
  474. now "rm -rf /mnt/dlibre/primaryfs/squashfs-root/usr/share/locale/ru" ; shell
  475. now "rm -rf /mnt/dlibre/primaryfs/squashfs-root/usr/share/locale/el" ; shell
  476. now "rm -rf /mnt/dlibre/primaryfs/squashfs-root/usr/share/locale/pl" ; shell
  477. now "rm -rf /mnt/dlibre/primaryfs/squashfs-root/usr/share/locale/nl" ; shell
  478. now "rm -rf /mnt/dlibre/primaryfs/squashfs-root/usr/share/locale/ja" ; shell
  479. now "rm -rf /mnt/dlibre/primaryfs/squashfs-root/usr/share/locale/mr" ; shell
  480. now "rm -rf /mnt/dlibre/primaryfs/squashfs-root/usr/share/locale/da" ; shell
  481. now "rm -rf /mnt/dlibre/primaryfs/squashfs-root/usr/share/locale/sr" ; shell
  482. now "rm -rf /mnt/dlibre/primaryfs/squashfs-root/usr/share/locale/gl" ; shell
  483. now "rm -rf /mnt/dlibre/primaryfs/squashfs-root/usr/share/locale/hu" ; shell
  484. now "rm -rf /mnt/dlibre/primaryfs/squashfs-root/usr/share/locale/vi" ; shell
  485. now "rm -rf /mnt/dlibre/primaryfs/squashfs-root/usr/share/locale/cs" ; shell
  486. now "rm -rf /mnt/dlibre/primaryfs/squashfs-root/usr/share/locale/tr" ; shell
  487. now "rm -rf /mnt/dlibre/primaryfs/squashfs-root/usr/share/locale/kn" ; shell
  488. now "rm -rf /mnt/dlibre/primaryfs/squashfs-root/usr/share/locale/sv" ; shell
  489. now "rm -rf /mnt/dlibre/primaryfs/squashfs-root/usr/share/locale/gu" ; shell
  490. now "rm -rf /mnt/dlibre/primaryfs/squashfs-root/usr/share/locale/zh*" ; shell
  491. now "rm -rf /mnt/dlibre/primaryfs/squashfs-root/usr/share/locale/ca" ; shell
  492. now "rm -rf /mnt/dlibre/primaryfs/squashfs-root/usr/share/locale/pa" ; shell
  493. now "rm -rf /mnt/dlibre/primaryfs/squashfs-root/usr/share/locale/sl" ; shell
  494. now "rm -rf /mnt/dlibre/primaryfs/squashfs-root/usr/share/locale/sk" ; shell
  495. now "rm -rf /mnt/dlibre/primaryfs/squashfs-root/usr/share/locale/ml" ; shell
  496. now "rm -rf /mnt/dlibre/primaryfs/squashfs-root/usr/share/locale/ko" ; shell
  497. now "rm -rf /mnt/dlibre/primaryfs/squashfs-root/usr/share/locale/bn" ; shell
  498. now "rm -rf /mnt/dlibre/primaryfs/squashfs-root/usr/share/locale-langpack/de" ; shell
  499. now "rm -rf /mnt/dlibre/primaryfs/squashfs-root/usr/share/locale-langpack/ru" ; shell
  500. now "rm -rf /mnt/dlibre/primaryfs/squashfs-root/usr/share/locale-langpack/el" ; shell
  501. now "rm -rf /mnt/dlibre/primaryfs/squashfs-root/usr/share/locale-langpack/pl" ; shell
  502. now "rm -rf /mnt/dlibre/primaryfs/squashfs-root/usr/share/locale-langpack/nl" ; shell
  503. now "rm -rf /mnt/dlibre/primaryfs/squashfs-root/usr/share/locale-langpack/ja" ; shell
  504. now "rm -rf /mnt/dlibre/primaryfs/squashfs-root/usr/share/locale-langpack/mr" ; shell
  505. now "rm -rf /mnt/dlibre/primaryfs/squashfs-root/usr/share/locale-langpack/da" ; shell
  506. now "rm -rf /mnt/dlibre/primaryfs/squashfs-root/usr/share/locale-langpack/sr" ; shell
  507. now "rm -rf /mnt/dlibre/primaryfs/squashfs-root/usr/share/locale-langpack/gl" ; shell
  508. now "rm -rf /mnt/dlibre/primaryfs/squashfs-root/usr/share/locale-langpack/hu" ; shell
  509. now "rm -rf /mnt/dlibre/primaryfs/squashfs-root/usr/share/locale-langpack/vi" ; shell
  510. now "rm -rf /mnt/dlibre/primaryfs/squashfs-root/usr/share/locale-langpack/cs" ; shell
  511. now "rm -rf /mnt/dlibre/primaryfs/squashfs-root/usr/share/locale-langpack/tr" ; shell
  512. now "rm -rf /mnt/dlibre/primaryfs/squashfs-root/usr/share/locale-langpack/kn" ; shell
  513. now "rm -rf /mnt/dlibre/primaryfs/squashfs-root/usr/share/locale-langpack/sv" ; shell
  514. now "rm -rf /mnt/dlibre/primaryfs/squashfs-root/usr/share/locale-langpack/gu" ; shell
  515. now "rm -rf /mnt/dlibre/primaryfs/squashfs-root/usr/share/locale-langpack/zh*" ; shell
  516. now "rm -rf /mnt/dlibre/primaryfs/squashfs-root/usr/share/locale-langpack/ca" ; shell
  517. now "rm -rf /mnt/dlibre/primaryfs/squashfs-root/usr/share/locale-langpack/pa" ; shell
  518. now "rm -rf /mnt/dlibre/primaryfs/squashfs-root/usr/share/locale-langpack/sl" ; shell
  519. now "rm -rf /mnt/dlibre/primaryfs/squashfs-root/usr/share/locale-langpack/sk" ; shell
  520. now "rm -rf /mnt/dlibre/primaryfs/squashfs-root/usr/share/locale-langpack/ml" ; shell
  521. now "rm -rf /mnt/dlibre/primaryfs/squashfs-root/usr/share/locale-langpack/ko" ; shell
  522. now "rm -rf /mnt/dlibre/primaryfs/squashfs-root/usr/share/locale-langpack/bn" ; shell
  523. now "rm -rf /mnt/dlibre/primaryfs/squashfs-root/usr/share/gnome/help-langpack" ; shell
  524. now "rm -rf /mnt/dlibre/primaryfs/squashfs-root/usr/share/gnome/help/" ; shell
  525. now "rm -rf /mnt/dlibre/primaryfs/squashfs-root/usr/share/help-langpack/" ; shell
  526. now "rm -rf /mnt/dlibre/primaryfs/squashfs-root/usr/share/help" ; shell
  527. now "rm -rf /mnt/dlibre/primaryfs/squashfs-root/usr/share/icons" ; shell
  528. now "rm -rf /mnt/dlibre/primaryfs/squashfs-root/usr/share/doc/language-pack-gnome*" ; shell
  529. fig
  530. #### im not against this locale stuff. but its getting to take up such a huge percentage of
  531. #### the dvd, there should definitely be a straightforward way to get just your language
  532. ######################################################################
  533. #### the missing manual page:
  534. #### 1. mkdlibres automation doesnt include installation.
  535. #### you might want binutils for ar, you want syslinux for
  536. #### isohybrid, you want either genisoimage or xorriso or mkisofs,
  537. #### you want squashfs-utils and python 2 and fig (2.9 or 4.x.)
  538. #### 2. youll need to run mkdlibre as root, from /mnt/dlibre
  539. #### 3. to clean the primaryfs folder: rm -rf primaryfs
  540. #### doing this is most likely necessary each time you change the
  541. #### setting for sourcedistro. if primaryfs has files in it, the
  542. #### live filesystem will not unsquash to the folder. for tinkering
  543. #### this is alright, youll want to clean it at least once per use.
  544. #### 4. when i make changes to mkdlibre i do this:
  545. #### cd /mnt/dlibre ; umount mountprimary vfs/squashfs-root ;
  546. #### rm -rf vfs/ mountprimary newiso/ ; rm mkdlibre01.fig.py ;
  547. #### fig46.py mkdlibre01.fig ; ./mkdlibre01.fig.py #
  548. #### (youll want to change 01 to the proper version number)
  549. #### source distros are the bulk of what the output is produced from:
  550. #### sourcedistro = "trisquel8"
  551. #### mkdlibre02 removes systemd from trisquel 8.0 and any packages
  552. #### that depend on it, reduces the 2.5g iso to =< 1.3, and replaces
  553. #### mate with icewm.
  554. #### when it boots, sudo bash to become root and startx
  555. #### sourcedistro = "trisquel8 debianliveinst95"
  556. #### mkdlibre02 removes systemd from debian live installer 9.5 and any
  557. #### packages that depend on it, reduces the 1.9g iso to 1.6, and
  558. #### adds mtpaint and leafpad.
  559. #### when it boots, login as "root" with password "toor" and startx
  560. #### sourcedistro = "trisquel8 debianliveinst95 voidlxqtlive201710"
  561. #### mkdlibre02 incorporates fig os 3.0 and void is already free of
  562. #### systemd. mkdlibre changes the default window manager to openbox
  563. #### as installing icewm fails for the moment-- it also fails in the
  564. #### most recent version of mkfigos, which this part of mkdlibre is
  565. #### based on. in the future, mkdlibre is likely to rely less on the
  566. #### void linux repos, which change unpredictably and too often.
  567. #### sourcedistro = "devuanascii200live"
  568. #### removes devuans firmware from /firmware, chroots and removes from
  569. #### the installation, which changes initrd, copies new initrd to cd.
  570. #### sourcedistro = "refracta9beta"
  571. #### refracta includes non-free firmware in a folder, which mkdlibre
  572. #### removes.
  573. ######################################################################
  574. change = changeforwhom "trisquel8 debianliveinst95 devuanascii200live refracta9beta" srcdist
  575. iftrue change
  576. dpath "/mnt/dlibre/primaryfs/squashfs-root/var/cache/apt" chdir
  577. fig
  578. ifequal srcdist "trisquel8"
  579. now download "http://archive.trisquel.info/trisquel/pool/main/u/upstart/upstart-sysv_1.13.2-0ubuntu21.1_i386.deb"
  580. fig
  581. ifequal srcdist "debianliveinst95"
  582. now download "http://deb.debian.org/debian/pool/main/liba/libart-lgpl/libart-2.0-2_2.3.21-2_i386.deb"
  583. now download "http://deb.debian.org/debian/pool/main/a/audiofile/libaudiofile1_0.3.6-4_i386.deb"
  584. now download "http://deb.debian.org/debian/pool/main/e/esound/esound-common_0.2.41-11_all.deb"
  585. now download "http://deb.debian.org/debian/pool/main/e/esound/libesd0_0.2.41-11_i386.deb"
  586. now download "http://deb.debian.org/debian/pool/main/libg/libglade2/libglade2-0_2.6.4-2_i386.deb"
  587. now download "http://deb.debian.org/debian/pool/main/a/aptitude/aptitude-common_0.8.7-1_all.deb"
  588. now download "http://deb.debian.org/debian/pool/main/c/cwidget/libcwidget3v5_0.5.17-4+b1_i386.deb"
  589. now download "http://deb.debian.org/debian/pool/main/a/aptitude/aptitude_0.8.7-1_i386.deb"
  590. now download "http://deb.debian.org/debian/pool/main/c/curl/libcurl3_7.52.1-5+deb9u6_i386.deb"
  591. now download "http://deb.debian.org/debian/pool/main/c/curl/curl_7.52.1-5+deb9u6_i386.deb"
  592. now download "http://deb.debian.org/debian/pool/main/g/gconf/gconf2_3.2.6-4+b1_i386.deb"
  593. now download "http://deb.debian.org/debian/pool/main/g/gnome-mime-data/gnome-mime-data_2.18.0-1_all.deb"
  594. now download "http://deb.debian.org/debian/pool/main/g/gtklp/gtklp_1.3.1-0.1+b1_i386.deb"
  595. now download "http://deb.debian.org/debian/pool/main/i/icewm/icewm-common_1.3.8+mod+20161220-1_i386.deb"
  596. now download "http://deb.debian.org/debian/pool/main/i/icewm/icewm_1.3.8+mod+20161220-1_i386.deb"
  597. now download "http://deb.debian.org/debian/pool/main/l/leafpad/leafpad_0.8.18.1-5_i386.deb"
  598. now download "http://deb.debian.org/debian/pool/main/libb/libbonobo/libbonobo2-common_2.32.1-3_all.deb"
  599. now download "http://deb.debian.org/debian/pool/main/o/orbit2/liborbit-2-0_2.14.19-2+b1_i386.deb"
  600. now download "http://deb.debian.org/debian/pool/main/libb/libbonobo/libbonobo2-0_2.32.1-3+b1_i386.deb"
  601. now download "http://deb.debian.org/debian/pool/main/g/gnome-vfs/libgnomevfs2-common_2.24.4-6.1_all.deb"
  602. now download "http://deb.debian.org/debian/pool/main/g/gnome-vfs/libgnomevfs2-0_2.24.4-6.1+b2_i386.deb"
  603. now download "http://deb.debian.org/debian/pool/main/libg/libgnome/libgnome2-common_2.32.1-5_all.deb"
  604. now download "http://deb.debian.org/debian/pool/main/libg/libgnome/libgnome-2-0_2.32.1-5+b1_i386.deb"
  605. now download "http://deb.debian.org/debian/pool/main/libg/libgnomecanvas/libgnomecanvas2-common_2.30.3-3_all.deb"
  606. now download "http://deb.debian.org/debian/pool/main/libg/libgnomecanvas/libgnomecanvas2-0_2.30.3-3_i386.deb"
  607. now download "http://deb.debian.org/debian/pool/main/libb/libbonoboui/libbonoboui2-common_2.24.5-4_all.deb"
  608. now download "http://deb.debian.org/debian/pool/main/libb/libbonoboui/libbonoboui2-0_2.24.5-4_i386.deb"
  609. now download "http://deb.debian.org/debian/pool/main/libc/libcgi-pm-perl/libcgi-pm-perl_4.35-1_all.deb"
  610. now download "http://deb.debian.org/debian/pool/main/libf/libfcgi-perl/libfcgi-perl_0.78-2_i386.deb"
  611. now download "http://deb.debian.org/debian/pool/main/libc/libcgi-fast-perl/libcgi-fast-perl_2.12-1_all.deb"
  612. now download "http://deb.debian.org/debian/pool/main/libs/libsub-name-perl/libsub-name-perl_0.21-1_i386.deb"
  613. now download "http://deb.debian.org/debian/pool/main/libc/libclass-accessor-perl/libclass-accessor-perl_0.34-1_all.deb"
  614. now download "http://deb.debian.org/debian/pool/main/libg/libgnomeui/libgnomeui-common_2.24.5-3.1_all.deb"
  615. now download "http://deb.debian.org/debian/pool/main/libg/libgnomeui/libgnomeui-0_2.24.5-3.1_i386.deb"
  616. now download "http://deb.debian.org/debian/pool/main/g/gnome-vfs/libgnomevfs2-extra_2.24.4-6.1+b2_i386.deb"
  617. now download "http://deb.debian.org/debian/pool/main/libi/libio-string-perl/libio-string-perl_1.08-3_all.deb"
  618. now download "http://deb.debian.org/debian/pool/main/libj/libjpeg-turbo/libturbojpeg0_1.5.1-2_i386.deb"
  619. now download "http://deb.debian.org/debian/pool/main/libj/libjpeg-turbo/libjpeg-turbo-progs_1.5.1-2_i386.deb"
  620. now download "http://deb.debian.org/debian/pool/main/libp/libparse-debianchangelog-perl/libparse-debianchangelog-perl_1.2.0-12_all.deb"
  621. now download "http://deb.debian.org/debian/pool/main/m/menu/menu_2.1.47+b1_i386.deb"
  622. now download "http://deb.debian.org/debian/pool/main/m/mtpaint/mtpaint_3.40-3_i386.deb"
  623. now download "http://deb.debian.org/debian/pool/main/x/xscreensaver/xscreensaver-data_5.36-1_i386.deb"
  624. now download "http://deb.debian.org/debian/pool/main/x/xscreensaver/xscreensaver_5.36-1_i386.deb"
  625. fig
  626. ifequal srcdist "debianliveinst95"
  627. now download "http://http.us.debian.org/debian/pool/main/i/insserv/insserv_1.14.0-5.4+b1_i386.deb"
  628. now download "http://http.us.debian.org/debian/pool/main/s/startpar/startpar_0.59-3.1_i386.deb"
  629. now download "http://http.us.debian.org/debian/pool/main/s/sysvinit/sysv-rc_2.88dsf-59.9_all.deb"
  630. now download "http://http.us.debian.org/debian/pool/main/s/sysvinit/initscripts_2.88dsf-59.9_i386.deb"
  631. now download "http://http.us.debian.org/debian/pool/main/s/sysvinit/sysvinit-core_2.88dsf-59.9_i386.deb"
  632. now download "http://http.us.debian.org/debian/pool/main/p/psmisc/psmisc_22.21-2.1+b2_i386.deb"
  633. fig
  634. # add icewm
  635. change = changeforwhom "trisquel8 debianliveinst95 devuanascii200live refracta9beta" srcdist
  636. iftrue change
  637. dpath "/mnt/dlibre/primaryfs/squashfs-root/var/cache/apt/archives" chdir
  638. fig
  639. ifequal srcdist "trisquel8"
  640. now download "http://archive.trisquel.info/trisquel/pool/main/liba/libart-lgpl/libart-2.0-2_2.3.21-2_i386.deb"
  641. now download "http://archive.trisquel.info/trisquel/pool/main/libb/libbonobo/libbonobo2-common_2.32.1-3_all.deb"
  642. now download "http://archive.trisquel.info/trisquel/pool/main/o/orbit2/liborbit-2-0_2.14.19-1build1_i386.deb"
  643. now download "http://archive.trisquel.info/trisquel/pool/main/libb/libbonobo/libbonobo2-0_2.32.1-3_i386.deb"
  644. now download "http://archive.trisquel.info/trisquel/pool/main/a/audiofile/libaudiofile1_0.3.6-2ubuntu0.16.04.1_i386.deb"
  645. now download "http://archive.trisquel.info/trisquel/pool/main/e/esound/esound-common_0.2.41-11_all.deb"
  646. now download "http://archive.trisquel.info/trisquel/pool/main/e/esound/libesd0_0.2.41-11_i386.deb"
  647. now download "http://archive.trisquel.info/trisquel/pool/main/libg/libgnomecanvas/libgnomecanvas2-common_2.30.3-2_all.deb"
  648. now download "http://archive.trisquel.info/trisquel/pool/main/libg/libgnomecanvas/libgnomecanvas2-0_2.30.3-2_i386.deb"
  649. now download "http://archive.trisquel.info/trisquel/pool/main/i/icewm/icewm-common_1.3.8+githubmod+20150914+fa3fdef-2_i386.deb"
  650. now download "http://archive.trisquel.info/trisquel/pool/main/i/icewm/icewm_1.3.8+githubmod+20150914+fa3fdef-2_i386.deb"
  651. now download "http://archive.trisquel.info/trisquel/pool/main/libg/libgnome/libgnome2-common_2.32.1-5ubuntu1_all.deb"
  652. now download "http://archive.trisquel.info/trisquel/pool/main/libg/libgnome/libgnome-2-0_2.32.1-5ubuntu1_i386.deb"
  653. now download "http://archive.trisquel.info/trisquel/pool/main/libg/libgnome/libgnome2-bin_2.32.1-5ubuntu1_i386.deb"
  654. now download "http://archive.trisquel.info/trisquel/pool/main/libg/libgnome/libgnome2-0_2.32.1-5ubuntu1_i386.deb"
  655. now download "http://archive.trisquel.info/trisquel/pool/main/libb/libbonoboui/libbonoboui2-common_2.24.5-3ubuntu1_all.deb"
  656. now download "http://archive.trisquel.info/trisquel/pool/main/libb/libbonoboui/libbonoboui2-0_2.24.5-3ubuntu1_i386.deb"
  657. now download "http://archive.trisquel.info/trisquel/pool/main/libg/libgnomeui/libgnomeui-common_2.24.5-3.1_all.deb"
  658. now download "http://archive.trisquel.info/trisquel/pool/main/libg/libgnomeui/libgnomeui-0_2.24.5-3.1_i386.deb"
  659. now download "http://archive.trisquel.info/trisquel/pool/main/libj/libjpeg9/libjpeg9_9b-1ubuntu1_i386.deb"
  660. now download "http://archive.trisquel.info/trisquel/pool/main/libj/libjpeg9/libjpeg-progs_9b-1ubuntu1_i386.deb"
  661. now download "http://archive.trisquel.info/trisquel/pool/main/m/menu/menu_2.1.47ubuntu1_i386.deb"
  662. now download "http://archive.trisquel.info/trisquel/pool/main/x/xscreensaver/xscreensaver-data_5.34-2ubuntu1_i386.deb"
  663. now download "http://archive.trisquel.info/trisquel/pool/main/x/xscreensaver/xscreensaver_5.34-2ubuntu1_i386.deb"
  664. fig
  665. dpath "/mnt/dlibre" chdir
  666. q 34 chr
  667. ifequal srcdist "trisquel8"
  668. dpath "rm /var/cache/apt/archives/upstart-sysv_1.13.2-0ubuntu21.1_i386.deb" shell
  669. dpath "chroot primaryfs/squashfs-root/ /bin/bash -c 'dpkg -i /var/cache/apt/archives/*.deb'" shell
  670. 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
  671. 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
  672. 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
  673. 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
  674. 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
  675. dpath "chroot primaryfs/squashfs-root/ /bin/bash -c 'dpkg -r caja gvfs gvfs-daemons hplip pulseaudio ubiquity-frontend-gtk ubiquity'" shell
  676. 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
  677. dpath "chroot primaryfs/squashfs-root/ /bin/bash -c 'dpkg -r systemd-sysv'" shell
  678. dpath "chroot primaryfs/squashfs-root/ /bin/bash -c 'dpkg -i /var/cache/apt/upstart-sysv_1.13.2-0ubuntu21.1_i386.deb'" shell
  679. dpath "rm /mnt/dlibre/primaryfs/squashfs-root/lib/systemd/systemd" shell
  680. fig
  681. ifequal srcdist "debianliveinst95"
  682. 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
  683. 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
  684. dpath "chroot primaryfs/squashfs-root/ /bin/bash -c 'echo -e " plus q plus "toor\ntoor" plus q plus " | passwd root -q'" shell
  685. dpath "rm /mnt/dlibre/primaryfs/squashfs-root/lib/systemd/systemd" shell
  686. fig
  687. ifequal srcdist "debianliveinst95"
  688. 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"
  689. 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
  690. 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
  691. 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
  692. 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
  693. 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
  694. 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
  695. 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
  696. 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
  697. 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
  698. now = installdeb plus " " plus "libclass-accessor-perl_0.34-1_all.deb libgnomeui-common_2.24.5-3.1_all.deb" swap now installdeb
  699. 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
  700. 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
  701. 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
  702. fig
  703. ifequal srcdist "debianliveinst95"
  704. 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
  705. 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
  706. dpath "chroot primaryfs/squashfs-root/ /bin/bash -c 'echo -e " plus q plus "toor\ntoor" plus q plus " | passwd root -q'" shell
  707. dpath "rm /mnt/dlibre/primaryfs/squashfs-root/lib/systemd/systemd" shell
  708. fig
  709. ifequal srcdist "devuanascii200live"
  710. # the release notes in devuan 2.0.0 say "Here is the full list of non-free wireless firmware packages installed" but the list does not include firmware-amd-graphics-- the remove firmware script however, does
  711. now = "chroot primaryfs/squashfs-root/ /bin/bash -c 'apt-get --purge --yes remove firmware-amd-graphics firmware-atheros firmware-bnx2 firmware-bnx2x firmware-brcm80211 firmware-intelwimax firmware-iwlwifi firmware-libertas firmware-linux-nonfree firmware-myricom firmware-netxen firmware-qlogic firmware-realtek firmware-ti-connectivity firmware-zd1211'" shell
  712. now = "chroot primaryfs/squashfs-root/ /bin/bash -c 'apt-get autoremove --yes'" shell
  713. now = "rm /mnt/dlibre/primaryfs/squashfs-root/usr/local/bin/remove-non-free-firmware" shell
  714. now = "cp /mnt/dlibre/primaryfs/squashfs-root/boot/initrd.img* /mnt/dlibre/newiso/live/initrd.img" shell
  715. fig
  716. change = changeforwhom profiles "figosdev-more"
  717. iftrue change
  718. now "echo '#!/bin/bash' > /mnt/dlibre/primaryfs/squashfs-root/usr/sbin/figoshelp" shell
  719. quot 34 chr
  720. bs 92 chr
  721. 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
  722. now "chmod +x /mnt/dlibre/primaryfs/squashfs-root/usr/sbin/figoshelp" shell
  723. now "mkdir /mnt/dlibre/primaryfs/squashfs-root/usr/share/doc/puppy" shell
  724. now "mkdir /mnt/dlibre/primaryfs/squashfs-root/usr/share/doc/figueira 2> /dev/null" shell
  725. now "rm /mnt/dlibre/primaryfs/squashfs-root/usr/bin/fig29.py" shell
  726. now "cp /mnt/dlibre/fig46.py /mnt/dlibre/primaryfs/squashfs-root/usr/bin" shell
  727. now "cp /mnt/dlibre/figu29.py /mnt/dlibre/primaryfs/squashfs-root/usr/bin" shell
  728. now "cp /mnt/dlibre/alex23.py /mnt/dlibre/primaryfs/squashfs-root/usr/bin" shell
  729. now "chmod +x /mnt/dlibre/primaryfs/squashfs-root/usr/bin/fig46.py" shell
  730. now "chmod +x /mnt/dlibre/primaryfs/squashfs-root/usr/bin/figu29.py" shell
  731. now "mkdir /mnt/dlibre/primaryfs/squashfs-root/usr/" shell
  732. now "mkdir /mnt/dlibre/primaryfs/squashfs-root/usr/bin" shell
  733. now "mkdir /mnt/dlibre/primaryfs/squashfs-root/usr/share" shell
  734. now "mkdir /mnt/dlibre/primaryfs/squashfs-root/usr/local" shell
  735. now "mkdir /mnt/dlibre/primaryfs/squashfs-root/usr/local/bin" shell
  736. rep = "[ " ; prints ; "copying files and folders related to mkfigos" colortext 10 prints colortext 7 " ]" print
  737. fig
  738. change = changeforwhom profiles "figosdev-more"
  739. iftrue change
  740. now "rm /mnt/dlibre/primaryfs/squashfs-root/etc/os-release" shell
  741. #now "chroot /mnt/dlibre/primaryfs/squashfs-root/" shell
  742. now "echo 'echo >/usr/share/lxqt/graphics/helix.svg' >> /mnt/dlibre/primaryfs/squashfs-root/etc/rc.local" shell
  743. now "echo '/root/updatefirstrun 2> /dev/null' >> /mnt/dlibre/primaryfs/squashfs-root/etc/rc.local" shell
  744. now "echo '/root/pythoninstall' >> /mnt/dlibre/primaryfs/squashfs-root/etc/rc.local" shell
  745. now "echo '/root/wminstall' >> /mnt/dlibre/primaryfs/squashfs-root/etc/rc.local" shell
  746. now "echo '/root/curlinstall' >> /mnt/dlibre/primaryfs/squashfs-root/etc/rc.local" shell
  747. now "echo '/root/installother' >> /mnt/dlibre/primaryfs/squashfs-root/etc/rc.local" shell
  748. quot 34 chr
  749. #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
  750. #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
  751. #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
  752. #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
  753. #now "echo 'cp /var/cache/?bps/*bps* /mnt/hda1/root/' >> /mnt/dlibre/primaryfs/squashfs-root/root/.bash_history" shell
  754. #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
  755. #now "echo 'xbps-install --repository /var/cache/xbps -yS binutils' >> /mnt/dlibre/primaryfs/squashfs-root/root/.bash_history" shell
  756. #now "echo 'xrandr --output LVDS --off' >> /mnt/dlibre/primaryfs/squashfs-root/root/.bash_history" shell
  757. #now "echo 'gdmap -f /mnt/hda1 &' >> /mnt/dlibre/primaryfs/squashfs-root/root/.bash_history" shell
  758. #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
  759. rep = "[ " ; prints ; "trying to modify files that probably arent in this distro" colortext 10 prints colortext 7 " ]" print
  760. fig
  761. now "/mnt/dlibre/" chdir
  762. function vpaupdate
  763. nl 10 chr
  764. nla nl plus "</a>"
  765. now "loading repos" print
  766. repos arrcurl "https://repo.voidlinux.eu/current/" join repos "" split repos "</a>" join repos nla split repos ">" join repos nl split repos nl
  767. now "vpa.r" open "w"
  768. forin p repos
  769. grep instr p ".i686.xbps"
  770. filt instr p "<"
  771. iftrue grep
  772. ifequal filt 0
  773. now p fprint "vpa.r"
  774. fig
  775. fig
  776. next
  777. now "vpa.r" close
  778. fig
  779. function vpasearch repos p
  780. nl 10 chr
  781. now "searching repos for: " prints colortext 15
  782. now p prints colortext 7 "" print print
  783. forin s repos
  784. grep instr s p
  785. filt instr s ".xbps.sig"
  786. iftrue grep
  787. ifequal filt 0
  788. now s print
  789. fig
  790. fig
  791. next
  792. fig
  793. function vpadownload repos p
  794. nl 10 chr
  795. nlt 9 chr plus nl reverse
  796. tabbed repos join tabbed nlt split tabbed nl
  797. now "downloading: " prints colortext 15
  798. plen p len minus 1
  799. now p left plen prints colortext 7 "" print print
  800. forin num "0123456789"
  801. pnum p plus num
  802. forin d tabbed
  803. grep instr d pnum
  804. filt instr d ".xbps.sig"
  805. iftrue grep
  806. ifequal filt 0
  807. tab 9 chr
  808. pname split d tab join d "" ltrim
  809. url "https://repo.voidlinux.eu/current/" plus pname
  810. try
  811. now "downloading: " plus url plus " " plus url plus ".sig" print
  812. now "rm " plus pname plus " " plus pname plus ".sig" plus " 2> /dev/null" shell
  813. now "wget " plus url shell
  814. now "wget " plus url plus ".sig" shell
  815. except
  816. pass
  817. resume
  818. fig
  819. fig
  820. next
  821. next
  822. fig
  823. function vpa vpacmd
  824. searchfor ""
  825. downloadname ""
  826. while
  827. findp vpacmd instr findp "search"
  828. iftrue findp
  829. try
  830. p vpacmd mid findp 2 arr mid 2 1
  831. plen p len
  832. ifequal plen 0
  833. now divby 0
  834. fig
  835. except
  836. now "to search, enter part of a package name after the search command: " prints
  837. now colortext 15 "vpa search python" prints colortext 7 "" print
  838. resume
  839. iftrue p
  840. searchfor p
  841. fig
  842. break
  843. fig
  844. findp vpacmd instr findp "download"
  845. iftrue findp
  846. try
  847. p vpacmd mid findp 2 arr mid 2 1
  848. plen p len
  849. ifequal plen 0
  850. now divby 0
  851. fig
  852. except
  853. now "to download a package, enter the package name after the search command: " prints
  854. now colortext 15 "vpa download leafpad" prints colortext 7 "" print
  855. resume
  856. iftrue p
  857. tab 9 chr
  858. downloadname tab plus p plus "-"
  859. fig
  860. break
  861. fig
  862. upd vpacmd instr upd "update"
  863. iftrue upd
  864. now vpaupdate
  865. break
  866. fig
  867. break
  868. wend
  869. try
  870. repos arropen "vpa.r"
  871. except
  872. repos "" arr
  873. resume
  874. count repos len divby 2 int
  875. ifmore count 1
  876. now count prints " packages" print
  877. else
  878. now "no packages in vpa list; running " prints colortext 15 "vpa update" prints colortext 7 "" print vpaupdate
  879. fig
  880. iftrue searchfor
  881. now vpasearch repos searchfor
  882. fig
  883. iftrue downloadname
  884. now vpadownload repos downloadname
  885. fig
  886. fig
  887. ifequal srcdist "voidlxqtlive201710"
  888. now "download gdbm" split now " " vpa now
  889. now "download libcrypto43" split now " " vpa now
  890. now "download libssl45" split now " " vpa now
  891. now "download python" split now " " vpa now
  892. now "download wget" split now " " vpa now
  893. now "download curl" split now " " vpa now
  894. now "download gdk-pixbuf-xlib" split now " " vpa now
  895. now "download icewm" split now " " vpa now
  896. now "download jansson" split now " " vpa now
  897. now "download libcurl" split now " " vpa now
  898. now "download nghttp2" split now " " vpa now
  899. now "download libXpm" split now " " vpa now
  900. now "download fribidi" split now " " vpa now
  901. now "download fluxbox" split now " " vpa now
  902. now "download alsa-tools" split now " " vpa now
  903. now "download alsa-utils" split now " " vpa now
  904. now "download binutils" split now " " vpa now
  905. now "download fltk" split now " " vpa now
  906. now "download gdmap" split now " " vpa now
  907. now "download ghostscript" split now " " vpa now
  908. now "download gsfonts" split now " " vpa now
  909. now "download hdparm" split now " " vpa now
  910. now "download hsetroot" split now " " vpa now
  911. now "download i3lock" split now " " vpa now
  912. now "download leafpad" split now " " vpa now
  913. now "download lesstif" split now " " vpa now
  914. now "download libXfontcache" split now " " vpa now
  915. now "download libXp" split now " " vpa now
  916. now "download libXxf86misc" split now " " vpa now
  917. now "download libev" split now " " vpa now
  918. now "download libglade" split now " " vpa now
  919. now "download libgs" split now " " vpa now
  920. now "download libijs" split now " " vpa now
  921. now "download libjbig2dec" split now " " vpa now
  922. now "download liblz4" split now " " vpa now
  923. now "download liblzma" split now " " vpa now
  924. now "download libopenjpeg" split now " " vpa now
  925. now "download libopenjpeg2" split now " " vpa now
  926. now "download libpaper" split now " " vpa now
  927. now "download lsof" split now " " vpa now
  928. now "download mtpaint" split now " " vpa now
  929. now "download nano" split now " " vpa now
  930. now "download ncdu" split now " " vpa now
  931. now "download psutils" split now " " vpa now
  932. now "download pygtk" split now " " vpa now
  933. now "download python-alsa" split now " " vpa now
  934. now "download python-cairo" split now " " vpa now
  935. now "download python-gobject2" split now " " vpa now
  936. now "download smartmontools" split now " " vpa now
  937. now "download squashfs-tools" split now " " vpa now
  938. now "download syslinux" split now " " vpa now
  939. now "download xmlcatmgr" split now " " vpa now
  940. now "download xorriso" split now " " vpa now
  941. now "download xpdf" split now " " vpa now
  942. now "download xrandr" split now " " vpa now
  943. now "download xset" split now " " vpa now
  944. now "download xz" split now " " vpa now
  945. now "download yad" split now " " vpa now
  946. now "wget 'https://repo.voidlinux.eu/current/psutils-p17_4.i686.xbps.sig'" shell
  947. now "wget 'https://repo.voidlinux.eu/current/psutils-p17_4.i686.xbps'" shell
  948. now "wget 'https://repo.voidlinux.eu/current/gsfonts-8.11_4.noarch.xbps.sig'" shell
  949. now "wget 'https://repo.voidlinux.eu/current/gsfonts-8.11_4.noarch.xbps'" shell
  950. fig
  951. now "/mnt/dlibre/" chdir
  952. ifequal srcdist "voidlxqtlive201710"
  953. now "/mnt/dlibre/" chdir
  954. now "wget 'http://http.us.debian.org/debian/pool/main/d/dpkg/dpkg_1.19.2_i386.deb'" shell
  955. now "ar x dpkg_1.19.2_i386.deb" shell
  956. now "tar -xvf data.tar.xz ./usr/bin/dpkg-deb ; cp ./usr/bin/dpkg-deb /mnt/dlibre" shell
  957. now "cp dpkg-deb /mnt/dlibre/vfs/squashfs-root/usr/bin" shell
  958. now "cp *.xbps *.xbps.sig /mnt/dlibre/vfs/squashfs-root/var/cache/xbps" shell
  959. now "/mnt/dlibre/primaryfs" chdir
  960. now "cp /mnt/dlibre/figuchsh.odt /mnt/dlibre/vfs/squashfs-root/usr/share/doc/figueira" shell
  961. now "cp /mnt/dlibre/figuchsh.pdf /mnt/dlibre/vfs/squashfs-root/usr/share/doc/figueira" shell
  962. now "ln -s /root/.bash_history /mnt/dlibre/vfs/squashfs-root/.bash_history" shell
  963. now pwd chdir
  964. insticewm "ls /mnt/dlibre/vfs/squashfs-root/usr/bin/icewm | wc -l 2> /dev/null" arrshell mid 1 1 int
  965. ifequal insticewm 0
  966. now "mkdir -p /mnt/dlibre/vfs/squashfs-root/usr/share/pixmaps" shell
  967. 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
  968. 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
  969. 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
  970. 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
  971. now "wget https://notabug.org/figosdev/figos/raw/master/arrlen.fig" shell
  972. now "wget https://notabug.org/figosdev/figos/raw/master/arrname.fig" shell
  973. now "wget https://notabug.org/figosdev/figos/raw/master/dircmp.fig" shell
  974. now "wget http://http.us.debian.org/debian/pool/main/h/hashdeep/hashdeep_4.4-4_i386.deb" shell
  975. now "wget http://http.us.debian.org/debian/pool/main/h/hashdeep/md5deep_4.4-4_all.deb" shell
  976. fig
  977. now "/mnt/dlibre/primaryfs" chdir
  978. now "rm /mnt/dlibre/vfs/squashfs-root/usr/share/icewm/themes/default/default.png" shell
  979. now "cp arrlen.fig arrname.fig dircmp.fig /mnt/dlibre/vfs/squashfs-root/usr/bin" shell
  980. now "mkdir -p /mnt/dlibre/vfs/squashfs-root/var/cache/apt/archives" shell
  981. #now "cp libglib2.0-0_2.42.1-1+b1_i386.deb /mnt/dlibre/vfs/squashfs-root/var/cache/apt/archives" shell
  982. #now "dpkg-deb -x iceweasel_45.4.0esr-1~deb8u2_all.deb /mnt/dlibre/vfs/squashfs-root" shell
  983. #now "dpkg-deb -x firefox-esr_45.4.0esr-1~deb8u2_i386.deb /mnt/dlibre/vfs/squashfs-root" shell
  984. #now "dpkg-deb -x libssl1.0.0_1.0.1t-1+deb8u5_i386.deb /mnt/dlibre/vfs/squashfs-root" shell
  985. #now "rm -rf /mnt/dlibre/vfs/squashfs-root/etc/systemd" shell
  986. #now "rm -rf /mnt/dlibre/vfs/squashfs-root/var/lib/systemd" shell
  987. #now "rm /mnt/dlibre/vfs/squashfs-root/usr/bin/dbus-daemon" shell
  988. #now "rm /mnt/dlibre/vfs/squashfs-root/usr/bin/dbus-launch" shell
  989. q 34 chr
  990. 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
  991. 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
  992. now "cd /mnt/dlibre/vfs/squashfs-root/usr/share/locale/ ; rm -rf dv dz el en@boldquot " shell
  993. 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
  994. 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
  995. 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
  996. 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
  997. 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
  998. 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
  999. 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
  1000. 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
  1001. now "cd /mnt/dlibre/vfs/squashfs-root/usr/share/icons/ ; rm -rf mate" shell
  1002. now "cd /mnt/dlibre/vfs/squashfs-root/usr/share/icons/ ; rm -rf Adwaita" shell
  1003. now "cd /mnt/dlibre/vfs/squashfs-root/usr/share/icons/ ; rm -rf breeze*" shell
  1004. now "/mnt/dlibre/vfs/squashfs-root/usr/bin/" chdir
  1005. 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
  1006. now "cd fig ; dpkg-deb -x fig29-31_1.0.deb /mnt/dlibre/vfs/squashfs-root" shell
  1007. # fig now catches a reference in this example, this line fixes the error
  1008. now fixpings 0 isoname "abs :" "" "/mnt/dlibre/vfs/squashfs-root/usr/share/doc/fig/examples/asciimint.fig"
  1009. now "echo 'export LANG=en_US.UTF-8' >> /mnt/dlibre/vfs/squashfs-root/root/.bashrc" shell
  1010. now "echo '#export LANG=en_US.UTF-8' >> /mnt/dlibre/vfs/squashfs-root/user/.bashrc" shell
  1011. 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
  1012. 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
  1013. fig
  1014. now "mkdir /mnt/dlibre/core" shell
  1015. change = changeforwhom profiles "wanderer-no-core-yet-do-not-use" # only change /boot/core.gz
  1016. iftrue change
  1017. ifequal "this way of remastering" "likely to work very soon"
  1018. now = "cd /mnt/dlibre/core ; zcat /mnt/dlibre/mountprimary/boot/core.gz | cpio -i -H newc -d" ; shell
  1019. now = "/mnt/dlibre/core/etc/init.d" ; chdir
  1020. # /etc/init.d/tc-config
  1021. # sha256 6a0a630b07761352d0844ea808778ddabb12189dfdbcb366f6aa4c8048bb564c
  1022. ck = "rm tc-config ; ls tc-config | wc -l" ; arrshell ; join ck " " ; int
  1023. ifequal ck 0
  1024. now = "wget -O- https://ptpb.pw/3Jyz > tc-config" ; shell
  1025. else
  1026. now = "tc-config" ; colortext 15 ; plus " already exists, not downloading" ; prints ; colortext 7 ; "" ; print
  1027. fig
  1028. now "/mnt/dlibre/core/" ; chdir
  1029. # sha256 98089ba431651a1c1d23fa8694382b792c7187a11765eab2873943059abc1a0d
  1030. ck = "ls /mnt/dlibre/core/mkcore.sh | wc -l" ; arrshell ; join ck " " ; int
  1031. ifequal ck 0
  1032. now = "wget -O- https://ptpb.pw/_1zo > mkcore.sh" ; shell
  1033. else
  1034. now = "" ; colortext 15 ; plus "already exists, not downloading" ; prints ; colortext 7 ; "" ; print
  1035. fig
  1036. fig
  1037. now "/mnt/dlibre/" ; chdir
  1038. now = "wget -O- https://ptpb.pw/KwSz > /mnt/dlibre/newiso/boot/isolinux/isolinux.cfg " ; shell
  1039. rep = "[ " ; prints ; "added core.gz" colortext 10 prints colortext 7 " ]" print
  1040. fig
  1041. change = changeforwhom profiles "wanderer-core"
  1042. iftrue change
  1043. nl 10 chr
  1044. filetext = ""
  1045. python
  1046. filetext = """
  1047. display boot.msg
  1048. default microcore
  1049. label microcore
  1050. kernel /boot/vmlinuz
  1051. initrd /boot/tinycore.gz
  1052. append loglevel=3
  1053. label mc
  1054. kernel /boot/vmlinuz
  1055. append initrd=/boot/tinycore.gz loglevel=3
  1056. implicit 0
  1057. prompt 1
  1058. timeout 300
  1059. F1 boot.msg
  1060. F2 f2
  1061. F3 f3
  1062. F4 f4
  1063. """
  1064. fig
  1065. openname = "/mnt/dlibre/newiso/boot/isolinux/isolinux.cfg" ; open "w"
  1066. now = filetext ; fprint openname
  1067. now = openname ; close
  1068. rep = "[ " ; prints ; "changed boot files for corepup-8 standard" colortext 10 prints colortext 7 " ]" print
  1069. fig
  1070. #now "download gdbm" split now " " vpa now
  1071. now "/mnt/dlibre/" chdir
  1072. #now "wget 'http://http.us.debian.org/debian/pool/main/d/dpkg/dpkg_1.19.2_i386.deb'" shell
  1073. now "ar x dpkg_1.19.2_i386.deb" shell
  1074. now "tar -xvf data.tar.xz ./usr/bin/dpkg-deb ; cp ./usr/bin/dpkg-deb /mnt/dlibre" shell
  1075. rep = "[ " ; prints ; "retrieved dpkg-deb" colortext 10 prints colortext 7 " ]" print
  1076. now "/mnt/dlibre/primaryfs" chdir
  1077. change = changeforwhom profiles "figosdev-more"
  1078. iftrue change
  1079. now "ln -s /root/.bash_history /mnt/dlibre/primaryfs/squashfs-root/.bash_history" shell
  1080. now pwd chdir
  1081. insticewm "ls /mnt/dlibre/primaryfs/squashfs-root/usr/bin/icewm | wc -l 2> /dev/null" arrshell mid 1 1 int
  1082. ifequal insticewm 0
  1083. now "mkdir -p /mnt/dlibre/primaryfs/squashfs-root/usr/share/pixmaps" shell
  1084. 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
  1085. 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
  1086. 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
  1087. 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
  1088. now "wget https://notabug.org/figosdev/figos/raw/master/arrlen.fig" shell
  1089. now "wget https://notabug.org/figosdev/figos/raw/master/arrname.fig" shell
  1090. now "wget https://notabug.org/figosdev/figos/raw/master/dircmp.fig" shell
  1091. fig
  1092. rep = "[ " ; prints ; "downloaded mkfigos icons and extra utils" colortext 10 prints colortext 7 " ]" print
  1093. fig
  1094. now "/mnt/dlibre/primaryfs" chdir
  1095. change = changeforwhom profiles "figosdev-more"
  1096. iftrue change
  1097. now "rm /mnt/dlibre/primaryfs/squashfs-root/usr/share/icewm/themes/default/default.png" shell
  1098. now "cp arrlen.fig arrname.fig dircmp.fig /mnt/dlibre/primaryfs/squashfs-root/usr/bin" shell
  1099. now "mkdir -p /mnt/dlibre/primaryfs/squashfs-root/var/cache/apt/archives" shell
  1100. #now "cp libglib2.0-0_2.42.1-1+b1_i386.deb /mnt/dlibre/primaryfs/squashfs-root/var/cache/apt/archives" shell
  1101. #now "dpkg-deb -x iceweasel_45.4.0esr-1~deb8u2_all.deb /mnt/dlibre/primaryfs/squashfs-root" shell
  1102. #now "dpkg-deb -x firefox-esr_45.4.0esr-1~deb8u2_i386.deb /mnt/dlibre/primaryfs/squashfs-root" shell
  1103. #now "dpkg-deb -x libssl1.0.0_1.0.1t-1+deb8u5_i386.deb /mnt/dlibre/primaryfs/squashfs-root" shell
  1104. #now "rm -rf /mnt/dlibre/primaryfs/squashfs-root/etc/systemd" shell
  1105. #now "rm -rf /mnt/dlibre/primaryfs/squashfs-root/var/lib/systemd" shell
  1106. #now "rm /mnt/dlibre/primaryfs/squashfs-root/usr/bin/dbus-daemon" shell
  1107. #now "rm /mnt/dlibre/primaryfs/squashfs-root/usr/bin/dbus-launch" shell
  1108. rep = "[ " ; prints ; "ran stuff that isnt ported to this distro as of yet" colortext 10 prints colortext 7 " ]" print
  1109. fig
  1110. change = changeforwhom profiles "figosdev-more"
  1111. iftrue change
  1112. q 34 chr
  1113. #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
  1114. #now "sed -i 's/xterm/xterm -fn 10x20/g' /mnt/dlibre/primaryfs/squashfs-root/usr/share/icewm/keys" shell
  1115. #now "sed -i 's/^PermitRootLogin without-password/PermitRootLogin no/g' /mnt/dlibre/primaryfs/squashfs-root/etc/ssh/sshd_config" shell
  1116. #now "/mnt/dlibre/primaryfs/squashfs-root/usr/bin/" chdir
  1117. #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
  1118. #now "cd fig ; dpkg-deb -x fig29-31_1.0.deb /mnt/dlibre/primaryfs/squashfs-root" shell
  1119. # fig now catches a reference in this example, this line fixes the error
  1120. #now fixpings 0 isoname "abs :" "" "/mnt/dlibre/primaryfs/squashfs-root/usr/share/doc/fig/examples/asciimint.fig"
  1121. #now "echo 'export LANG=en_US.UTF-8' >> /mnt/dlibre/primaryfs/squashfs-root/root/.bashrc" shell
  1122. #now "echo '#export LANG=en_US.UTF-8' >> /mnt/dlibre/primaryfs/squashfs-root/user/.bashrc" shell
  1123. #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
  1124. #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
  1125. rep = "[ " ; prints ; "would have run this stuff if it wasnt mostly commented out" colortext 10 prints colortext 7 " ]" print
  1126. fig
  1127. function overloadclihelp folder
  1128. clihelp
  1129. python
  1130. clihelp = """#!/usr/bin/env bash
  1131. #### license: creative commons cc0 1.0 (public domain)
  1132. #### http://creativecommons.org/publicdomain/zero/1.0/
  1133. proginf="cli help overloading 0.2"
  1134. if [[ "$1" == "" ]]
  1135. then echo
  1136. function pq()
  1137. {
  1138. echo -e "$q" | tr '(' '^' | sed "s/\ \@/\x1b\[1\;37m\ \@/g" | sed "s/\@\ /\@\ \x1b\[0\;37m/g" | sed "s/\@\^/\@\x1b\[0\;37m\^/g" | tr '^' '('
  1139. }
  1140. q=' \x1b[1;33mfig os command line help\x1b[0m ' ; pq
  1141. q=' ' ; pq
  1142. echo -e " \x1b[1;33mhelp usual \x1b[0m standard bash help command"
  1143. echo -e " \x1b[1;33mhelp network \x1b[0m help with network commands"
  1144. echo -e " \x1b[1;33mhelp files \x1b[0m help with file commands"
  1145. echo -e " \x1b[1;33mhelp config \x1b[0m help with some puppy settings"
  1146. echo -e " \x1b[1;33mhelp misc \x1b[0m commands to reboot, stop beeping, etc."
  1147. echo -e " \x1b[1;33mhelp coding \x1b[0m quick help for coding"
  1148. echo -e " \x1b[1;33mhelp alias \x1b[0m aliases to customize bash"
  1149. echo
  1150. else
  1151. if [[ "$1" == "usual" ]]
  1152. then bash -c 'help'
  1153. fi
  1154. if [[ "$1" == "network" ]]
  1155. then echo -e "help with network commands" \\\\n
  1156. echo -e \\\\nto connect to available network interfaces: '(use one)'\\\\n
  1157. for p in $(ip link | cut -d " " -f 2 | tr -d ':') ;
  1158. do if [[ "$p" != "lo" ]] ; then echo dhclient $p ;
  1159. fi ; done ;
  1160. echo -e \\\\n \\\\nto find available network interfaces: \\\\n \\\\nip link \| 'cut -d " " -f 2 | tr -d' \\':\\' \\\\n
  1161. fi
  1162. if [[ "$1" == "files" ]]
  1163. then echo "help with file commands"
  1164. fi
  1165. if [[ "$1" == "config" ]]
  1166. then echo "help with some puppy settings"
  1167. fi
  1168. if [[ "$1" == "misc" ]]
  1169. then echo "commands to reboot, stop beeping, etc."
  1170. fi
  1171. if [[ "$1" == "coding" ]]
  1172. then echo "quick help for coding"
  1173. fi
  1174. if [[ "$1" == "alias" ]]
  1175. then echo "aliases to customize bash"
  1176. fi
  1177. fi
  1178. """
  1179. fig
  1180. now folder plus "/usr/local/bin" chdir
  1181. now "help" open "w"
  1182. now clihelp fprint "help"
  1183. now "help" close
  1184. now "chmod +x ./help" shell
  1185. now folder chdir
  1186. q 34 chr
  1187. bs 92 chr plus q
  1188. q bs
  1189. usualhelp "cat root/.bashrc | grep usualhelp | wc -l" arrshell mid 1 1 int
  1190. ifequal usualhelp 0
  1191. now "echo alias usualhelp=" plus q plus "bash -c 'help'" plus q plus " >> root/.bashrc" shell
  1192. now "echo alias help=" plus q plus "/usr/local/bin/help" plus q plus " >> root/.bashrc" shell
  1193. fig
  1194. fig
  1195. change = changeforwhom profiles "figosdev-more"
  1196. iftrue change
  1197. now "/mnt/dlibre/primaryfs/squashfs-root" overloadclihelp now
  1198. rep = "[ " ; prints ; "tried to overload help system (needs to be a tcz first)" colortext 10 prints colortext 7 " ]" print
  1199. fig
  1200. ifequal srcdist "voidlxqtlive201710"
  1201. now "/mnt/dlibre/vfs/squashfs-root" overloadclihelp now
  1202. fig
  1203. quot 34 chr
  1204. ###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
  1205. #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
  1206. #now "mkdir -p /mnt/dlibre/primaryfs/squashfs-root/usr/share/icewm/taskbar" shell
  1207. now "/mnt/dlibre/primaryfs/squashfs-root/usr/share/icewm.xpm" open "w"
  1208. icewmicon
  1209. python
  1210. icewmicon = """/* XPM */
  1211. static char *icewm_xpm[] = {
  1212. "48 20 4 1",
  1213. " c None",
  1214. "1 c #009A00",
  1215. "2 c #000000",
  1216. "3 c #000000",
  1217. " ",
  1218. " ",
  1219. " 33333 ",
  1220. " 311113 ",
  1221. " 3111113 ",
  1222. " 311111133 ",
  1223. " 22222222222222222222222222222223111111113 ",
  1224. " 311111111111111111111111111111111111111113 ",
  1225. " 311111111111111111111111111111111111111113 ",
  1226. " 311111111111111111111111111111111111111113 ",
  1227. " 311111111111111111111111111111111111111113 ",
  1228. " 311111111111111111111111111111111111111113 ",
  1229. " 22222222222222222222222222222222111111113 ",
  1230. " 311111113 ",
  1231. " 31111133 ",
  1232. " 311113 ",
  1233. " 33333 ",
  1234. " ",
  1235. " ",
  1236. " "
  1237. };
  1238. """
  1239. fig
  1240. now icewmicon fprint "/mnt/dlibre/primaryfs/squashfs-root/usr/share/icewm.xpm"
  1241. now "/mnt/dlibre/primaryfs/squashfs-root/usr/share/icewm.xpm" close
  1242. ifequal srcdist "voidlxqtlive201710"
  1243. 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
  1244. now "mkdir -p /mnt/dlibre/vfs/squashfs-root/usr/share/icewm/taskbar" shell
  1245. now "/mnt/dlibre/vfs/squashfs-root/usr/share/icewm.xpm" open "w"
  1246. icewmicon
  1247. python
  1248. icewmicon = """/* XPM */
  1249. static char *icewm_xpm[] = {
  1250. "48 20 4 1",
  1251. " c None",
  1252. "1 c #009A00",
  1253. "2 c #000000",
  1254. "3 c #000000",
  1255. " ",
  1256. " ",
  1257. " 33333 ",
  1258. " 311113 ",
  1259. " 3111113 ",
  1260. " 311111133 ",
  1261. " 22222222222222222222222222222223111111113 ",
  1262. " 311111111111111111111111111111111111111113 ",
  1263. " 311111111111111111111111111111111111111113 ",
  1264. " 311111111111111111111111111111111111111113 ",
  1265. " 311111111111111111111111111111111111111113 ",
  1266. " 311111111111111111111111111111111111111113 ",
  1267. " 22222222222222222222222222222222111111113 ",
  1268. " 311111113 ",
  1269. " 31111133 ",
  1270. " 311113 ",
  1271. " 33333 ",
  1272. " ",
  1273. " ",
  1274. " "
  1275. };
  1276. """
  1277. fig
  1278. now icewmicon fprint "/mnt/dlibre/vfs/squashfs-root/usr/share/icewm.xpm"
  1279. now "/mnt/dlibre/vfs/squashfs-root/usr/share/icewm.xpm" close
  1280. now "mkdir -p /mnt/dlibre/vfs/squashfs-root/root/.config/pcmanfm/default/" shell
  1281. now "mkdir -p /mnt/dlibre/vfs/squashfs-root/root/.config/libfm/" shell
  1282. nl 10 chr
  1283. icofx "ownIcon=true" plus nl plus "type=mainmenu"
  1284. now fixpings 1 isoname "type=mainmenu" icofx "/mnt/dlibre/vfs/squashfs-root/home/anon/.config/lxqt/panel.conf"
  1285. now fixpings 1 isoname "position=Bottom" "position=Top" "/mnt/dlibre/vfs/squashfs-root/home/anon/.config/lxqt/panel.conf"
  1286. df "/mnt/dlibre/vfs/squashfs-root/root/.config/pcmanfm/default/pcmanfm.conf"
  1287. now df open "w"
  1288. text0 ""
  1289. python
  1290. text0 = """[config]
  1291. bm_open_method=0
  1292. [volume]
  1293. mount_on_startup=0
  1294. mount_removable=0
  1295. autorun=1
  1296. [ui]
  1297. always_show_tabs=0
  1298. max_tab_chars=32
  1299. win_width=640
  1300. win_height=480
  1301. splitter_pos=150
  1302. media_in_new_tab=0
  1303. desktop_folder_new_win=0
  1304. change_tab_on_drop=1
  1305. close_on_unmount=1
  1306. focus_previous=0
  1307. side_pane_mode=places
  1308. view_mode=icon
  1309. show_hidden=0
  1310. sort=name;ascending;
  1311. toolbar=newtab;navigation;home;
  1312. show_statusbar=1
  1313. pathbar_mode_buttons=0
  1314. """
  1315. fig
  1316. now text0 fprint df
  1317. now df close
  1318. df "/mnt/dlibre/vfs/squashfs-root/root/.config/pcmanfm/default/desktop-items-0.conf"
  1319. now df open "w"
  1320. text1 ""
  1321. python
  1322. text1 = """[*]
  1323. wallpaper_mode=crop
  1324. wallpaper_common=1
  1325. wallpaper=/usr/share/backgrounds/default.png
  1326. desktop_bg=#000000
  1327. desktop_fg=#ffffff
  1328. desktop_shadow=#000000
  1329. desktop_font=Sans 12
  1330. show_wm_menu=1
  1331. sort=mtime;ascending;
  1332. show_documents=0
  1333. show_trash=0
  1334. show_mounts=1
  1335. """
  1336. fig
  1337. now text1 fprint df
  1338. now df close
  1339. df "/mnt/dlibre/vfs/squashfs-root/root/.config/libfm/libfm.conf"
  1340. now df open "w"
  1341. text2 ""
  1342. python
  1343. text2 = """# Configuration file for the libfm version 1.2.3.
  1344. # Autogenerated file, don't edit, your changes will be overwritten.
  1345. [config]
  1346. single_click=1
  1347. use_trash=1
  1348. confirm_del=1
  1349. confirm_trash=1
  1350. advanced_mode=0
  1351. si_unit=0
  1352. force_startup_notify=1
  1353. backup_as_hidden=1
  1354. no_usb_trash=1
  1355. no_child_non_expandable=0
  1356. show_full_names=0
  1357. only_user_templates=0
  1358. template_run_app=0
  1359. template_type_once=0
  1360. auto_selection_delay=600
  1361. drop_default_action=auto
  1362. defer_content_test=0
  1363. quick_exec=0
  1364. show_internal_volumes=0
  1365. terminal=xterm
  1366. thumbnail_local=0
  1367. thumbnail_max=2048
  1368. smart_desktop_autodrop=1
  1369. [ui]
  1370. big_icon_size=48
  1371. small_icon_size=16
  1372. pane_icon_size=16
  1373. thumbnail_size=128
  1374. show_thumbnail=0
  1375. shadow_hidden=0
  1376. [places]
  1377. places_home=1
  1378. places_desktop=1
  1379. places_root=0
  1380. places_computer=1
  1381. places_trash=1
  1382. places_applications=1
  1383. places_network=0
  1384. places_unmounted=1
  1385. """
  1386. fig
  1387. now text2 fprint df
  1388. now df close
  1389. # fig os is an educational os designed for teaching people about computers.
  1390. # editing /etc/hosts is a valuable skill, and knowing it exists is a useful piece of knowledge.
  1391. # it is (in this authors opinion) better to edit mkfigos and run it than to download the iso.
  1392. # then you can customize mkfigos all you like; for instance, removing the following lines.
  1393. # you can also remove them if you install fig os, then edit the /etc/hosts file.
  1394. now "echo >> /mnt/dlibre/vfs/squashfs-root/etc/hosts" shell
  1395. 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
  1396. now "echo 127.0.0.1 icanhazip.com >> /mnt/dlibre/vfs/squashfs-root/etc/hosts" shell
  1397. now "echo 127.0.0.1 hello.firefox.com >> /mnt/dlibre/vfs/squashfs-root/etc/hosts" shell
  1398. now "echo 127.0.0.1 input.mozilla.org >> /mnt/dlibre/vfs/squashfs-root/etc/hosts" shell
  1399. now "echo #127.0.0.1 support.mozilla.org >> /mnt/dlibre/vfs/squashfs-root/etc/hosts" shell
  1400. now "echo 127.0.0.1 aus5.mozilla.org >> /mnt/dlibre/vfs/squashfs-root/etc/hosts" shell
  1401. now "echo 127.0.0.1 crash-stats.mozilla.com >> /mnt/dlibre/vfs/squashfs-root/etc/hosts" shell
  1402. now "echo 127.0.0.1 snippets.cdn.mozilla.net >> /mnt/dlibre/vfs/squashfs-root/etc/hosts" shell
  1403. now "echo 127.0.0.1 marketplace.firefox.com >> /mnt/dlibre/vfs/squashfs-root/etc/hosts" shell
  1404. now "echo 127.0.0.1 tiles.services.mozilla.com >> /mnt/dlibre/vfs/squashfs-root/etc/hosts" shell
  1405. now "echo 127.0.0.1 api.getpocket.com >> /mnt/dlibre/vfs/squashfs-root/etc/hosts" shell
  1406. now "echo 127.0.0.1 sb-ssl.google.com >> /mnt/dlibre/vfs/squashfs-root/etc/hosts" shell
  1407. now "echo 127.0.0.1 safebrowsing.google.com >> /mnt/dlibre/vfs/squashfs-root/etc/hosts" shell
  1408. now "echo 127.0.0.1 shavar.services.mozilla.com >> /mnt/dlibre/vfs/squashfs-root/etc/hosts" shell
  1409. now "echo 127.0.0.1 en.malware-error.mozilla.com >> /mnt/dlibre/vfs/squashfs-root/etc/hosts" shell
  1410. now "echo 127.0.0.1 en_us.malware-error.mozilla.com >> /mnt/dlibre/vfs/squashfs-root/etc/hosts" shell
  1411. now "echo 127.0.0.1 en.phish-error.mozilla.com >> /mnt/dlibre/vfs/squashfs-root/etc/hosts" shell
  1412. now "echo 127.0.0.1 en_us.phish-error.mozilla.com >> /mnt/dlibre/vfs/squashfs-root/etc/hosts" shell
  1413. now "echo 127.0.0.1 en.phish-report.mozilla.com >> /mnt/dlibre/vfs/squashfs-root/etc/hosts" shell
  1414. now "echo 127.0.0.1 en_us.phish-report.mozilla.com >> /mnt/dlibre/vfs/squashfs-root/etc/hosts" shell
  1415. now "echo 127.0.0.1 self-repair.mozilla.org >> /mnt/dlibre/vfs/squashfs-root/etc/hosts" shell
  1416. now "echo 127.0.0.1 search.services.mozilla.com >> /mnt/dlibre/vfs/squashfs-root/etc/hosts" shell
  1417. now "echo 127.0.0.1 location.services.mozilla.com >> /mnt/dlibre/vfs/squashfs-root/etc/hosts" shell
  1418. now "echo 127.0.0.1 detectportal.firefox.com >> /mnt/dlibre/vfs/squashfs-root/etc/hosts" shell
  1419. now "echo 127.0.0.1 fhr.cdn.mozilla.net >> /mnt/dlibre/vfs/squashfs-root/etc/hosts" shell
  1420. now "echo 127.0.0.1 fhr.data.mozilla.com >> /mnt/dlibre/vfs/squashfs-root/etc/hosts" shell
  1421. now "echo 127.0.0.1 code.cdn.mozilla.net >> /mnt/dlibre/vfs/squashfs-root/etc/hosts" shell
  1422. now "echo 127.0.0.1 push.services.mozilla.com >> /mnt/dlibre/vfs/squashfs-root/etc/hosts" shell
  1423. now "echo 127.0.0.1 telemetry-experiment.cdn.mozilla.net >> /mnt/dlibre/vfs/squashfs-root/etc/hosts" shell
  1424. now "echo 127.0.0.1 blocklist.addons.mozilla.org >> /mnt/dlibre/vfs/squashfs-root/etc/hosts" shell
  1425. now "echo 127.0.0.1 services.addons.mozilla.org >> /mnt/dlibre/vfs/squashfs-root/etc/hosts" shell
  1426. now "echo 127.0.0.1 versioncheck-bg.addons.mozilla.org >> /mnt/dlibre/vfs/squashfs-root/etc/hosts" shell
  1427. now "echo 127.0.0.1 versioncheck.addons.mozilla.org >> /mnt/dlibre/vfs/squashfs-root/etc/hosts" shell
  1428. now "echo 127.0.0.1 api.accounts.firefox.com >> /mnt/dlibre/vfs/squashfs-root/etc/hosts" shell
  1429. now "echo 127.0.0.1 accounts.firefox.com >> /mnt/dlibre/vfs/squashfs-root/etc/hosts" shell
  1430. now "echo 127.0.0.1 oauth.accounts.firefox.com >> /mnt/dlibre/vfs/squashfs-root/etc/hosts" shell
  1431. now "echo 127.0.0.1 profile.accounts.firefox.com >> /mnt/dlibre/vfs/squashfs-root/etc/hosts" shell
  1432. now "echo 127.0.0.1 token.services.mozilla.com >> /mnt/dlibre/vfs/squashfs-root/etc/hosts" shell
  1433. now "echo 127.0.0.1 loop.services.mozilla.com >> /mnt/dlibre/vfs/squashfs-root/etc/hosts" shell
  1434. now "echo 127.0.0.1 data.mozilla.com >> /mnt/dlibre/vfs/squashfs-root/etc/hosts" shell
  1435. now "echo 127.0.0.1 setup.services.mozilla.com >> /mnt/dlibre/vfs/squashfs-root/etc/hosts" shell
  1436. now "echo 127.0.0.1 auth.services.mozilla.com >> /mnt/dlibre/vfs/squashfs-root/etc/hosts" shell
  1437. now "echo 127.0.0.1 services.mozilla.com >> /mnt/dlibre/vfs/squashfs-root/etc/hosts" shell
  1438. now "echo 127.0.0.1 activations.cdn.mozilla.net >> /mnt/dlibre/vfs/squashfs-root/etc/hosts" shell
  1439. now "echo 127.0.0.1 mozsocial.cliqz.com >> /mnt/dlibre/vfs/squashfs-root/etc/hosts" shell
  1440. now "echo 127.0.0.1 incoming.telemetry.mozilla.org >> /mnt/dlibre/vfs/squashfs-root/etc/hosts" shell
  1441. now "echo >> /mnt/dlibre/vfs/squashfs-root/etc/hosts" shell
  1442. now "mkdir /mnt/dlibre/vfs/squashfs-root/etc/rc.d" shell
  1443. #now "cp /mnt/dlibre/unsq/squashfs-root/etc/rc.d/PUPSTATE /mnt/dlibre/vfs/squashfs-root/etc/rc.d/" shell
  1444. now "mkdir /mnt/dlibre/vfs/squashfs-root/etc/rc.d" shell
  1445. now "mkdir /mnt/dlibre/vfs/squashfs-root/etc/xdg/menus/" shell
  1446. now "echo -n >> /mnt/dlibre/vfs/squashfs-root/etc/xdg/menus/hierarchy" shell
  1447. now "sed -i 's/# FocusRequestFlashTime=0/FocusRequestFlashTime=1/g' /mnt/dlibre/vfs/squashfs-root/usr/share/icewm/preferences" shell
  1448. now "sed -i 's/# TaskBarAtTop=0/TaskBarAtTop=1/g' /mnt/dlibre/vfs/squashfs-root/usr/share/icewm/preferences" shell
  1449. now "sed -i 's/# TaskBarShowClock=1/TaskBarShowClock=0/g' /mnt/dlibre/vfs/squashfs-root/usr/share/icewm/preferences" shell
  1450. now "sed -i 's/# TaskBarShowAPMStatus=0/TaskBarShowAPMStatus=1/g' /mnt/dlibre/vfs/squashfs-root/usr/share/icewm/preferences" shell
  1451. now "echo 'mkdir /mnt/hda1' >> /mnt/dlibre/vfs/squashfs-root/etc/rc.local" shell
  1452. now "echo 'mkdir /mnt/hda2' >> /mnt/dlibre/vfs/squashfs-root/etc/rc.local" shell
  1453. now "echo 'mkdir /mnt/hdb1' >> /mnt/dlibre/vfs/squashfs-root/etc/rc.local" shell
  1454. now "echo 'mkdir /mnt/hdb2' >> /mnt/dlibre/vfs/squashfs-root/etc/rc.local" shell
  1455. now "echo 'mount -r /dev/sda1 /mnt/hda1' >> /mnt/dlibre/vfs/squashfs-root/etc/rc.local" shell
  1456. now "echo 'mount -r /dev/sda2 /mnt/hda2' >> /mnt/dlibre/vfs/squashfs-root/etc/rc.local" shell
  1457. now "echo 'mount -r /dev/sdb1 /mnt/hdb1' >> /mnt/dlibre/vfs/squashfs-root/etc/rc.local" shell
  1458. now "echo 'mount -r /dev/sdb2 /mnt/hdb2' >> /mnt/dlibre/vfs/squashfs-root/etc/rc.local" shell
  1459. now "echo 'rm /usr/share/icewm/themes/default/default.png' >> /mnt/dlibre/vfs/squashfs-root/root/wminstall" shell
  1460. now "echo 'rm /usr/share/icewm/taskbar/*pm' >> /mnt/dlibre/vfs/squashfs-root/root/wminstall" shell
  1461. now "echo 'cp /usr/share/icewm.xpm /usr/share/icewm/taskbar' >> /mnt/dlibre/vfs/squashfs-root/root/wminstall" shell
  1462. now "echo 'rm -rf /usr/bin/lxqt-session /usr/share/void-artwork' >> /mnt/dlibre/vfs/squashfs-root/root/wminstall" shell
  1463. now "echo 'cp /usr/bin/openbox-session /usr/bin/lxqt-session' >> /mnt/dlibre/vfs/squashfs-root/root/wminstall" shell
  1464. now "echo 'cp /usr/bin/icewm-session /usr/bin/lxqt-session' >> /mnt/dlibre/vfs/squashfs-root/root/wminstall" shell
  1465. now "echo 'cp /usr/share/icewm/preferences /usr/share/icewm/pref' >> /mnt/dlibre/vfs/squashfs-root/root/wminstall" shell
  1466. now "echo 'cp /usr/bin/qter* /usr/bin/xterm' >> /mnt/dlibre/vfs/squashfs-root/root/wminstall" shell
  1467. now "echo 'echo DesktopBackgroundColor=000000 >> /usr/share/icewm/themes/default/default.theme' >> /mnt/dlibre/vfs/squashfs-root/root/wminstall" shell
  1468. quot 34 chr
  1469. quoted = "echo 'cat /usr/share/icewm/pref | alex23.py --replace " plus quot plus "# TaskBarShowClock=1" plus quot plus " "
  1470. quoted2 = quoted plus quot plus "TaskBarShowClock=0" plus quot plus " | alex23.py --replace " plus quot plus "# TaskBarAtTop=0" plus quot plus " "
  1471. quoted3 = quoted2 plus quot plus "TaskBarAtTop=1" plus quot plus " | alex23.py --replace " plus quot plus "# TaskBarShowWindowListMenu=1" plus quot
  1472. quoted = quoted3 plus " " plus quot plus "TaskBarShowWindowListMenu=0" plus quot plus " > /usr/share/icewm/preferences ; fi' >> /mnt/dlibre/vfs/squashfs-root/root/wminstall"
  1473. now quoted shell
  1474. now "echo '/root/desktops &' >> /mnt/dlibre/vfs/squashfs-root/etc/rc.local" shell
  1475. now "echo '/root/welcomes &' >> /mnt/dlibre/vfs/squashfs-root/etc/rc.local" shell
  1476. 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
  1477. 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
  1478. 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
  1479. 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
  1480. now "sync" shell
  1481. now "/mnt/dlibre/primaryfs" chdir
  1482. now "umount /mnt/dlibre/vfs/squashfs-root/ ; echo copying" shell
  1483. #now "echo copying ; cp /mnt/dlibre/primaryfs/squashfs-root/LiveOS/ext3fs.img /mnt/dlibre/" shell
  1484. #now "mount /mnt/dlibre/primaryfs/squashfs-root/LiveOS/ext3fs.img /mnt/dlibre/vfs/squashfs-root/" shell
  1485. fig
  1486. now "sed -i 's/# FocusRequestFlashTime=0/FocusRequestFlashTime=1/g' /mnt/dlibre/primaryfs/squashfs-root/usr/share/icewm/preferences" shell
  1487. now "sed -i 's/# TaskBarAtTop=0/TaskBarAtTop=1/g' /mnt/dlibre/primaryfs/squashfs-root/usr/share/icewm/preferences" shell
  1488. now "sed -i 's/# TaskBarShowClock=1/TaskBarShowClock=0/g' /mnt/dlibre/primaryfs/squashfs-root/usr/share/icewm/preferences" shell
  1489. now "sed -i 's/# TaskBarShowAPMStatus=0/TaskBarShowAPMStatus=1/g' /mnt/dlibre/primaryfs/squashfs-root/usr/share/icewm/preferences" shell
  1490. now "cp /mnt/dlibre/primaryfs/squashfs-root/usr/bin/icewm-session /mnt/dlibre/primaryfs/squashfs-root/usr/bin/mate-session" shell
  1491. #now "cp /mnt/dlibre/primaryfs/squashfs-root/usr/bin/icewm-session /mnt/dlibre/primaryfs/squashfs-root/usr/bin/x-session-manager" shell
  1492. now "cp /mnt/dlibre/primaryfs/squashfs-root/usr/share/icewm.xpm /mnt/dlibre/primaryfs/squashfs-root/usr/share/icewm/taskbar/icewm.xpm" shell
  1493. now "cp /mnt/dlibre/fig46.py /mnt/dlibre/primaryfs/squashfs-root/usr/bin" shell
  1494. now "cp /mnt/dlibre/alex23.py /mnt/dlibre/primaryfs/squashfs-root/usr/bin" shell
  1495. change = changeforwhom profiles "figosdev-more"
  1496. iftrue change
  1497. #now "mkdir -p /mnt/dlibre/primaryfs/squashfs-root/root/.config/pcmanfm/default/" shell
  1498. #now "mkdir -p /mnt/dlibre/primaryfs/squashfs-root/root/.config/libfm/" shell
  1499. ###now "mkdir -p /mnt/dlibre/unsq/squashfs-root/root/.config/pcmanfm/default/" shell
  1500. ###now "mkdir -p /mnt/dlibre/unsq/squashfs-root/root/.config/libfm/" shell
  1501. df "/mnt/dlibre/primaryfs/squashfs-root/root/welcome.fig"
  1502. #now df open "w"
  1503. text0 ""
  1504. python
  1505. text0 = """proginf = "fig os welcome 0.1, oct 2016 mn"
  1506. now "" print
  1507. ckremote "pgrep sshd | wc -l" arrshell mid 1 1 int
  1508. iftrue ckremote
  1509. now "" print
  1510. now " you have sshd enabled... to prevent remote logins," colortext 12 print "" print
  1511. now " it is recommended you turn it off by typing: " prints
  1512. now "remote off" colortext 14 print colortext 7 "" print print
  1513. `fig
  1514. trythatfirst 0
  1515. while
  1516. qu 0
  1517. rc 0
  1518. ifequal trythatfirst 1
  1519. now " " times 11 prints "you can get help simply by typing: " colortext 7 prints
  1520. now "help" colortext 14 print colortext 7 "" print print
  1521. trythatfirst 2
  1522. else
  1523. ifequal trythatfirst 0
  1524. trythatfirst 1
  1525. `fig
  1526. `fig
  1527. try
  1528. p "type here: " colortext 10 prints colortext 7 "" prints "bash -c 'read -e t ; echo $t'" arrshell mid 1 1
  1529. plen p len
  1530. iftrue plen
  1531. first p asc
  1532. else
  1533. first 0
  1534. `fig
  1535. now p ltrim rtrim lcase
  1536. ckcmd " " plus now plus " "
  1537. ckcmdremote instr ckcmd " remote "
  1538. ckcmdoff instr ckcmd " off " times ckcmdremote
  1539. iftrue ckcmdoff
  1540. rc 1
  1541. now " " times 11 prints "service ssh stop" shell "" print
  1542. `fig
  1543. ifequal now "help"
  1544. rc 1
  1545. trythatfirst 2 ## disable function that tells you about the help command
  1546. now " " times 11 prints "valid commands are:" colortext 3 print "" print
  1547. now " " times 11 prints " help" colortext 14 prints ": to get help" colortext 7 print
  1548. now " " times 11 prints "remote off" colortext 14 prints ": to turn off remote login" colortext 7 print
  1549. now " " times 11 prints " sh" colortext 14 prints ": if you know bash" colortext 7 print
  1550. now " " times 11 prints " exit" colortext 14 prints ": (or quit or q) to quit welcome program " colortext 7 print
  1551. now "" colortext 7 print
  1552. `fig
  1553. ifequal now "sh"
  1554. rc 1
  1555. qu 1
  1556. now " " times 11 prints "running bash... welcome program will quit on exit:" colortext 3 print "" print
  1557. now "cd /root ; bash --rcfile /root/.bashrc" shell
  1558. `fig
  1559. ifequal now "exit"
  1560. rc 1
  1561. qu 1
  1562. `fig
  1563. ifequal now "quit"
  1564. rc 1
  1565. qu 1
  1566. `fig
  1567. ifequal now "q"
  1568. rc 1
  1569. qu 1
  1570. `fig
  1571. except
  1572. qu 1
  1573. resume
  1574. iftrue qu
  1575. now "" print system
  1576. `fig
  1577. ifequal rc 0
  1578. now " " times 11 prints colortext 3 "unrecognized command (no problem)" prints colortext 7 "" print print
  1579. wend
  1580. """
  1581. fig
  1582. now split text0 "`" join now "" swap now text0
  1583. #now text0 fprint df
  1584. #now df close
  1585. now "fig29.py " plus df plus " 2> /dev/null" shell
  1586. now "fig29 " plus df plus " 2> /dev/null" shell
  1587. df "/mnt/dlibre/primaryfs/squashfs-root/root/desktops"
  1588. #now df open "w"
  1589. text0 ""
  1590. python
  1591. text0 = """#!/bin/bash
  1592. while [[ 1 ]]
  1593. do p=$(pgrep pcmanfm | wc -l)
  1594. if [[ "$p" -lt "1" ]]
  1595. then export XAUTHORITY=$(find /home | grep "\.Xauthority" | tail -1) pcmanfm
  1596. export DISPLAY=:0.0
  1597. d=$(pwd)
  1598. while [[ 1 ]] ; do sleep .2 ; p=$(pgrep icewm | wc -l) ; if [[ "$p" -gt "1" ]] ; then break ; fi ; done
  1599. cd /root
  1600. pcmanfm-qt --desktop 2> /dev/null &
  1601. cd $d
  1602. export XAUTHORITY=
  1603. fi
  1604. sleep 2
  1605. done
  1606. """
  1607. fig
  1608. #now text0 fprint df
  1609. #now df close
  1610. now "chmod +x " plus df shell
  1611. rep = "[ " ; prints ; "created root desktop files but didnt add to corepup" colortext 10 prints colortext 7 " ]" print
  1612. fig
  1613. now "/mnt/dlibre/" chdir
  1614. change = changeforwhom profiles "figosdev-more"
  1615. iftrue change
  1616. df "/mnt/dlibre/primaryfs/squashfs-root/root/welcomes"
  1617. #now df open "w"
  1618. text0 ""
  1619. python
  1620. text0 = """#!/bin/bash
  1621. while [[ 1 ]]
  1622. do while [[ 1 ]] ; do sleep .2 ; p=$(pgrep icewm | wc -l) ; if [[ "$p" -gt "1" ]] ; then break ; fi ; done
  1623. while [[ 1 ]] ; do sleep .2 ; p=$(pgrep pcmanfm | wc -l) ; if [[ "$p" -gt "0" ]] ; then break ; fi ; done
  1624. w=$(pgrep python | wc -l)
  1625. if [[ "$w" -lt "1" ]]
  1626. then export XAUTHORITY=$(find /home | grep "\.Xauthority" | tail -1) xterm
  1627. export DISPLAY=:0.0
  1628. sleep 1.75
  1629. xterm -fn 10x20 -geometry 800x240 -e bash --rcfile /root/.bashrc -c 'cd /root ; python /root/welcome.fig.py'
  1630. export XAUTHORITY=
  1631. kill $(pgrep welcomes)
  1632. fi
  1633. sleep 2
  1634. done
  1635. """
  1636. fig
  1637. #now text0 fprint df
  1638. #now df close
  1639. now "chmod +x " plus df shell
  1640. nl 10 chr
  1641. icofx "ownIcon=true" plus nl plus "type=mainmenu"
  1642. now fixpings 1 isoname "type=mainmenu" icofx "/mnt/dlibre/primaryfs/squashfs-root/home/anon/.config/lxqt/panel.conf"
  1643. now fixpings 1 isoname "position=Bottom" "position=Top" "/mnt/dlibre/primaryfs/squashfs-root/home/anon/.config/lxqt/panel.conf"
  1644. df "/mnt/dlibre/primaryfs/squashfs-root/root/.config/pcmanfm/default/pcmanfm.conf"
  1645. #now df open "w"
  1646. text0 ""
  1647. python
  1648. text0 = """[config]
  1649. bm_open_method=0
  1650. [volume]
  1651. mount_on_startup=0
  1652. mount_removable=0
  1653. autorun=1
  1654. [ui]
  1655. always_show_tabs=0
  1656. max_tab_chars=32
  1657. win_width=640
  1658. win_height=480
  1659. splitter_pos=150
  1660. media_in_new_tab=0
  1661. desktop_folder_new_win=0
  1662. change_tab_on_drop=1
  1663. close_on_unmount=1
  1664. focus_previous=0
  1665. side_pane_mode=places
  1666. view_mode=icon
  1667. show_hidden=0
  1668. sort=name;ascending;
  1669. toolbar=newtab;navigation;home;
  1670. show_statusbar=1
  1671. pathbar_mode_buttons=0
  1672. """
  1673. fig
  1674. #now text0 fprint df
  1675. #now df close
  1676. ###df "/mnt/dlibre/unsq/squashfs-root/root/.config/libfm/libfm.conf"
  1677. #now df open "w"
  1678. #now text2 fprint df
  1679. #now df close
  1680. #now "/mnt/dlibre/unsq/squashfs-root/bin/baseping" open "w"
  1681. text "exit 0"
  1682. #now text fprint "/mnt/dlibre/unsq/squashfs-root/bin/baseping"
  1683. #now "/mnt/dlibre/unsq/squashfs-root/bin/baseping" close
  1684. #now "chmod +x /mnt/dlibre/unsq/squashfs-root/bin/baseping" shell
  1685. #now "/mnt/dlibre/unsq/squashfs-root/bin/baseping6" open "w"
  1686. #text "exit 0"
  1687. #now text fprint "/mnt/dlibre/unsq/squashfs-root/bin/baseping6"
  1688. #now "/mnt/dlibre/unsq/squashfs-root/bin/baseping6" close
  1689. #now "chmod +x /mnt/dlibre/unsq/squashfs-root/bin/baseping6" shell
  1690. rep = "[ " ; prints ; "created welcome shell and configured pcmanfm, didnt add" colortext 10 prints colortext 7 " ]" print
  1691. fig
  1692. change = changeforwhom profiles "figosdev-more"
  1693. iftrue change
  1694. now "mkdir /mnt/dlibre/primaryfs/squashfs-root/etc/rc.d" shell
  1695. now "mkdir /mnt/dlibre/primaryfs/squashfs-root/etc/xdg/menus/" shell
  1696. now "echo -n >> /mnt/dlibre/primaryfs/squashfs-root/etc/xdg/menus/hierarchy" shell
  1697. now "sed -i 's/# FocusRequestFlashTime=0/FocusRequestFlashTime=1/g' /mnt/dlibre/primaryfs/squashfs-root/usr/share/icewm/preferences" shell
  1698. now "sed -i 's/# TaskBarAtTop=0/TaskBarAtTop=1/g' /mnt/dlibre/primaryfs/squashfs-root/usr/share/icewm/preferences" shell
  1699. now "sed -i 's/# TaskBarShowClock=1/TaskBarShowClock=0/g' /mnt/dlibre/primaryfs/squashfs-root/usr/share/icewm/preferences" shell
  1700. now "sed -i 's/# TaskBarShowAPMStatus=0/TaskBarShowAPMStatus=1/g' /mnt/dlibre/primaryfs/squashfs-root/usr/share/icewm/preferences" shell
  1701. rep = "[ " ; prints ; "tried to change icewm config" colortext 10 prints colortext 7 " ]" print
  1702. fig
  1703. change = changeforwhom profiles "figosdev-more"
  1704. iftrue change
  1705. #now "echo '#!/bin/sh -e' > /mnt/dlibre/primaryfs/squashfs-root/etc/rc.local" shell
  1706. 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
  1707. now "echo 'rm /var/lib/dbus/machine-id' >> /mnt/dlibre/primaryfs/squashfs-root/etc/rc.local" shell
  1708. now "echo '/root/desktops &' >> /mnt/dlibre/primaryfs/squashfs-root/etc/rc.local" shell
  1709. now "echo '/root/welcomes &' >> /mnt/dlibre/primaryfs/squashfs-root/etc/rc.local" shell
  1710. ### 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
  1711. now "echo 'exit 0' >> /mnt/dlibre/primaryfs/squashfs-root/etc/rc.local" shell
  1712. #now "mkdir /mnt/dlibre/primaryfs/squashfs-root/home/user/.icewm" shell
  1713. #now "echo 'sudo pcmanfm --desktop &' > /mnt/dlibre/primaryfs/squashfs-root/home/user/.icewm/startup" shell
  1714. #now fixpings 0 isoname "# invoke global X" "/usr/bin/pcmanfm --desktop & # # invoke global X" "/mnt/dlibre/primaryfs/squashfs-root/home/user/.icewm/startup"
  1715. rep = "[ " ; prints ; "more mkfigos features" colortext 10 prints colortext 7 " ]" print
  1716. fig
  1717. change = changeforwhom profiles "figosdev-more"
  1718. iftrue change
  1719. now "mkdir /mnt/dlibre/primaryfs/squashfs-root/Desktop" shell
  1720. rep = "[ " ; prints ; "created folder in wrong place" colortext 10 prints colortext 7 " ]" print
  1721. fig
  1722. function ldesk df n cmt ex ico term
  1723. now df open "w"
  1724. now "[Desktop Entry]" fprint df
  1725. # now "Keywords=editor" fprint df
  1726. now "Name=" plus n fprint df
  1727. now "Comment=" plus cmt fprint df
  1728. now "Exec=" plus ex fprint df
  1729. now "Icon=" plus ico fprint df
  1730. now "Terminal=" plus term fprint df
  1731. now "Type=Application" fprint df
  1732. now df close
  1733. fig
  1734. change = changeforwhom profiles "figosdev-more"
  1735. iftrue change
  1736. now ldesk "/mnt/dlibre/primaryfs/squashfs-root/Desktop/conn.desktop" "Connect" "network setup" "/usr/bin/wicd-gtk" "/usr/share/pixmaps/connect48.png" "false"
  1737. 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"
  1738. #now ldesk "/mnt/dlibre/primaryfs/squashfs-root/Desktop/draw.desktop" "Draw" "vector editor" "/usr/local/bin/defaultdraw" "/usr/share/pixmaps/paint48.png" "false"
  1739. now ldesk "/mnt/dlibre/primaryfs/squashfs-root/Desktop/help.desktop" "Help" "help files" "/usr/sbin/figoshelp" "/usr/share/pixmaps/help48.png" "false"
  1740. #now ldesk "/mnt/dlibre/primaryfs/squashfs-root/Desktop/inst.desktop" "Install" "installer" "/usr/sbin/dotpup" "/usr/share/pixmaps/pet48.png" "false"
  1741. now ldesk "/mnt/dlibre/primaryfs/squashfs-root/Desktop/edit.desktop" "Leafpad" "text editor" "/usr/bin/leafpad" "/usr/share/pixmaps/edit48.png" "false"
  1742. #now ldesk "/mnt/dlibre/primaryfs/squashfs-root/Desktop/dmnt.desktop" "Mount" "connect drives" "/usr/sbin/pmount" "/usr/share/pixmaps/drive48.png" "false"
  1743. #now ldesk "/mnt/dlibre/primaryfs/squashfs-root/Desktop/osmo.desktop" "Plan" "calendar" "/usr/local/bin/defaultcalendar" "/usr/share/pixmaps/date48.png" "false"
  1744. #now ldesk "/mnt/dlibre/primaryfs/squashfs-root/Desktop/setp.desktop" "Setup" "setup wizard" "/usr/sbin/wizardwizard" "/usr/share/pixmaps/configuration48.png" "false"
  1745. rep = "[ " ; prints ; "changed desktops icons" colortext 10 prints colortext 7 " ]" print
  1746. fig
  1747. change = changeforwhom profiles "figosdev"
  1748. iftrue change
  1749. # if you have source for mcorepup in /mnt/dlibre it will copy it into iso
  1750. writefilename = split proginf "," ; mid 1 1 ; split writefilename " " ; mid 1 2 ; join writefilename "" ; split writefilename "." ; join writefilename ""
  1751. now = "cp /mnt/dlibre/" plus writefilename plus ".fig /mnt/dlibre/newiso 2> /dev/null" ; shell
  1752. rep = "[ " ; prints ; "if you have source for mcorepup in /mnt/dlibre, the iso has it too" colortext 10 prints colortext 7 " ]" print
  1753. fig
  1754. change = changeforwhom profiles "figosdev-dontuse"
  1755. iftrue change
  1756. 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
  1757. rep = "[ " ; prints ; "redix is designed to replace posix, mkfigos is designed to help you automate redix alternatives" colortext 10 prints colortext 7 " ]" print
  1758. fig
  1759. change = changeforwhom profiles "figosdev"
  1760. iftrue change
  1761. now = tczpreps "fig46" "/usr/local/bin"
  1762. now = "cp /mnt/dlibre/alex23.py /mnt/dlibre/tcz/alex23/usr/local/bin" ; shell
  1763. now = tczbuild "fig46"
  1764. now = tczpreps "alex23" "/usr/local/bin"
  1765. now = "cp /mnt/dlibre/alex23.py /mnt/dlibre/tcz/alex23/usr/local/bin" ; shell
  1766. now = tczbuild "alex23"
  1767. rep = "[ " ; prints ; "created tcz packages for fig translator 4.6 and alex line executive 2.3" colortext 10 prints colortext 7 " ]" print
  1768. fig
  1769. change = changeforoption profiles "mcorepup"
  1770. iftrue change
  1771. versions = split proginf "," ; mid 1 1 ; split versions " " ; mid 2 1 ; val
  1772. chval = change ; val
  1773. chtrack = ""
  1774. for chver chval versions 0.1
  1775. chv = chver ; str
  1776. now = chtrack plus chv plus " " ; swap now chtrack
  1777. ifequal chver 0.1
  1778. now = tczpreps "mcorepup01" "/usr/local/bin"
  1779. now = "wget -O- 'http://murga-linux.com/puppy/viewtopic.php?mode=attach&id=117570' > /mnt/dlibre/tcz/mcorepup01/usr/local/bin/mcorepup01.fig" ; shell
  1780. now = tczbuild "mcorepup01"
  1781. fig
  1782. ifequal chver 0.2
  1783. now = tczpreps "mcorepup02" "/usr/local/bin"
  1784. now = "wget -O- 'http://murga-linux.com/puppy/viewtopic.php?mode=attach&id=117594' > /mnt/dlibre/tcz/mcorepup02/usr/local/bin/mcorepup02.fig" ; shell
  1785. now = tczbuild "mcorepup02"
  1786. fig
  1787. ifequal chver 0.3
  1788. now = tczpreps "mcorepup03" "/usr/local/bin"
  1789. now = "wget -O- 'http://murga-linux.com/puppy/viewtopic.php?mode=attach&id=117732' > /mnt/dlibre/tcz/mcorepup03/usr/local/bin/mcorepup03.fig" ; shell
  1790. now = tczbuild "mcorepup03"
  1791. fig
  1792. ifequal chver 0.4
  1793. now = tczpreps "mcorepup04" "/usr/local/bin"
  1794. now = "wget -O- 'http://murga-linux.com/puppy/viewtopic.php?mode=attach&id=117839' > /mnt/dlibre/tcz/mcorepup04/usr/local/bin/mcorepup04.fig" ; shell
  1795. now = tczbuild "mcorepup04"
  1796. fig
  1797. ifequal chver versions
  1798. pname = "mcorepup" plus chv ; split pname "." ; join pname ""
  1799. now = tczpreps pname "/usr/local/bin"
  1800. now = "cp /mnt/dlibre/" plus pname plus ".fig /mnt/dlibre/tcz/" plus pname plus "/usr/local/bin 2> /dev/null" ; shell
  1801. now = tczbuild pname
  1802. fig
  1803. next
  1804. rep = "[ " ; prints ; "created tcz packages for the following versions of mcorepup: " plus chtrack colortext 10 prints colortext 7 "]" print
  1805. fig
  1806. change = changeforwhom profiles "wanderer"
  1807. iftrue change
  1808. now = "ls /mnt/dlibre/newiso/cde/optional/*.tcz | sort -f | tr '/' '\n' | grep tcz > /mnt/dlibre/newiso/cde/xbase.lst" ; shell
  1809. now = "ls /mnt/dlibre/newiso/cde/optional/*.tcz | sort -f | tr '/' '\n' | grep tcz > /mnt/dlibre/newiso/cde/onboot.lst" ; shell
  1810. rep = "[ " ; prints ; "updated xbase.lst and onboot.lst" colortext 10 prints colortext 7 " ]" print
  1811. fig
  1812. change = changeforwhom sourcedistro srcdist
  1813. iftrue change
  1814. now "/mnt/dlibre/primaryfs/squashfs-root" chdir
  1815. ifequal srcdist "trisquel8"
  1816. iftrue fastcomp
  1817. 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
  1818. else
  1819. 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
  1820. fig
  1821. fig
  1822. ifequal srcdist "devuanascii200live"
  1823. iftrue fastcomp
  1824. 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
  1825. else
  1826. 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
  1827. fig
  1828. fig
  1829. ifequal srcdist "refracta9beta"
  1830. iftrue fastcomp
  1831. 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
  1832. else
  1833. 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
  1834. fig
  1835. fig
  1836. ifequal srcdist "debianliveinst95"
  1837. iftrue fastcomp
  1838. 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
  1839. else
  1840. 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
  1841. fig
  1842. fig
  1843. ifequal srcdist "voidlxqtlive201710"
  1844. #now "umount /mnt/dlibre/vfs/squashfs-root/ ; echo copying" shell
  1845. #now "cp /mnt/dlibre/ext3fs.img /mnt/dlibre/primaryfs/squashfs-root/LiveOS/" shell
  1846. iftrue fastcomp
  1847. now "mksquashfs . /mnt/dlibre/newiso/LiveOS/squashfs.img -noappend" shell
  1848. else
  1849. now "mksquashfs . /mnt/dlibre/newiso/LiveOS/squashfs.img -noappend -comp xz -b 512K" shell
  1850. fig
  1851. now "/mnt/dlibre/newiso" chdir
  1852. now "cp /mnt/dlibre/logo.16 boot/isolinux/splash.png" shell
  1853. fig
  1854. now "/mnt/dlibre/primaryfs/squashfs-root" chdir
  1855. now "echo 'mkdir /mnt/hda1' >> /mnt/dlibre/primaryfs/squashfs-root/etc/rc.local" shell
  1856. now "echo 'mkdir /mnt/hda2' >> /mnt/dlibre/primaryfs/squashfs-root/etc/rc.local" shell
  1857. now "echo 'mkdir /mnt/hdb1' >> /mnt/dlibre/primaryfs/squashfs-root/etc/rc.local" shell
  1858. now "echo 'mkdir /mnt/hdb2' >> /mnt/dlibre/primaryfs/squashfs-root/etc/rc.local" shell
  1859. now "echo 'mount -r /dev/sda1 /mnt/hda1' >> /mnt/dlibre/primaryfs/squashfs-root/etc/rc.local" shell
  1860. now "echo 'mount -r /dev/sda2 /mnt/hda2' >> /mnt/dlibre/primaryfs/squashfs-root/etc/rc.local" shell
  1861. now "echo 'mount -r /dev/sdb1 /mnt/hdb1' >> /mnt/dlibre/primaryfs/squashfs-root/etc/rc.local" shell
  1862. now "echo 'mount -r /dev/sdb2 /mnt/hdb2' >> /mnt/dlibre/primaryfs/squashfs-root/etc/rc.local" shell
  1863. now "echo 'rm /usr/share/icewm/themes/default/default.png' >> /mnt/dlibre/primaryfs/squashfs-root/root/wminstall" shell
  1864. now "echo 'rm /usr/share/icewm/taskbar/*pm' >> /mnt/dlibre/primaryfs/squashfs-root/root/wminstall" shell
  1865. now "echo 'cp /usr/share/icewm.xpm /usr/share/icewm/taskbar' >> /mnt/dlibre/primaryfs/squashfs-root/root/wminstall" shell
  1866. now "echo 'cp /usr/bin/icewm-session /usr/bin/lxqt-session' >> /mnt/dlibre/primaryfs/squashfs-root/root/wminstall" shell
  1867. now "echo 'cp /usr/share/icewm/preferences /usr/share/icewm/pref' >> /mnt/dlibre/primaryfs/squashfs-root/root/wminstall" shell
  1868. now "echo 'cp /usr/bin/qter* /usr/bin/xterm' >> /mnt/dlibre/primaryfs/squashfs-root/root/wminstall" shell
  1869. now "echo 'echo DesktopBackgroundColor=000000 >> /usr/share/icewm/themes/default/default.theme' >> /mnt/dlibre/primaryfs/squashfs-root/root/wminstall" shell
  1870. quot 34 chr
  1871. quoted = "echo 'cat /usr/share/icewm/pref | alex23.py --replace " plus quot plus "# TaskBarShowClock=1" plus quot plus " "
  1872. quoted2 = quoted plus quot plus "TaskBarShowClock=0" plus quot plus " | alex23.py --replace " plus quot plus "# TaskBarAtTop=0" plus quot plus " "
  1873. quoted3 = quoted2 plus quot plus "TaskBarAtTop=1" plus quot plus " | alex23.py --replace " plus quot plus "# TaskBarShowWindowListMenu=1" plus quot
  1874. quoted = quoted3 plus " " plus quot plus "TaskBarShowWindowListMenu=0" plus quot plus " > /usr/share/icewm/preferences ; fi' >> /mnt/dlibre/primaryfs/squashfs-root/root/wminstall"
  1875. now quoted shell
  1876. now "echo '/root/desktops &' >> /mnt/dlibre/primaryfs/squashfs-root/etc/rc.local" shell
  1877. now "echo '/root/welcomes &' >> /mnt/dlibre/primaryfs/squashfs-root/etc/rc.local" shell
  1878. 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
  1879. 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
  1880. 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
  1881. 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
  1882. #now "/mnt/dlibre/primaryfs/squashfs-root" chdir
  1883. now "/mnt/dlibre/primaryfs" chdir
  1884. #rep = "[ " ; prints ; "created part of another distro within this one, but not really, not this time" colortext 10 prints colortext 7 " ]" print
  1885. fig
  1886. #iftrue fastcomp
  1887. # now "mksquashfs . /mnt/dlibre/newiso/LiveOS/squashfs.img -noappend" shell
  1888. # else
  1889. # now "mksquashfs . /mnt/dlibre/newiso/LiveOS/squashfs.img -noappend -comp xz -b 512K" shell
  1890. # fig
  1891. # rep = "[ " ; prints ; "created part of another distro within this one, but not really, not this time" colortext 10 prints colortext 7 " ]" print
  1892. now "/mnt/dlibre/newiso" chdir
  1893. change = changeforwhom profiles "libre"
  1894. iftrue change
  1895. now = "rm /mnt/dlibre/newiso/cde/optional/firmware-*" ; shell
  1896. rep = "[ " ; prints ; "removed those pesky non-free firmware files, if it removed floss ones please report on forum" colortext 10 prints colortext 7 " ]" print
  1897. fig
  1898. rep = "[ " ; prints ; "now trying to create bootable iso. what size are you expecting?" colortext 10 prints colortext 7 " ]" print
  1899. # this part mainly changes when moving from one distro to another. it is already tailored to mcorepup
  1900. # now "cp /mnt/dlibre/logo.16 boot/isolinux/splash.png" shell
  1901. # now "cp /mnt/dlibre/mountprimary/LiveOS/squashfs.img LiveOS" shell
  1902. now "cp /mnt/dlibre/mkdlibre01.fig /mnt/dlibre/newiso/" shell
  1903. ifequal srcdist "voidlxqtlive201710"
  1904. #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
  1905. 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
  1906. 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
  1907. #now "isohybrid /mnt/dlibre/" plus isoname plus ".iso" shell
  1908. else
  1909. now "genisoimage -b isolinux/isolinux.bin -c isolinux/boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table -r -J -l -V DISTRO_LIBRE -o /mnt/dlibre/" plus isoname plus "-" plus srcdist plus ".iso /mnt/dlibre/newiso/" right 90 ; print
  1910. now "genisoimage -b isolinux/isolinux.bin -c isolinux/boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table -r -J -l -V DISTRO_LIBRE -o /mnt/dlibre/" plus isoname plus "-" plus srcdist plus ".iso /mnt/dlibre/newiso/" shell
  1911. fig
  1912. #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
  1913. #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
  1914. #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
  1915. #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
  1916. findhybrid = "cat $(which isohybrid) /dev/null | wc -m" ; arrshell ; join findhybrid "" ; int
  1917. now "isohybrid /mnt/dlibre/" plus isoname plus "-" plus srcdist plus ".iso" shell
  1918. now = "[ " ; prints ; colortext 10 ; "ls -lh /mnt/dlibre/" plus isoname plus "-" plus srcdist plus ".iso" ; arrshell ; join now "" ; prints
  1919. now = colortext 7 ; " ]" ; print
  1920. iftrue findhybrid
  1921. rep = "[ " ; prints ; "ran isohybrid so users can dd to usb" colortext 10 prints colortext 7 " ]" print
  1922. fig