mkfigos29.fig 62 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163
  1. #### license: creative commons cc0 1.0 (public domain)
  2. #### http://creativecommons.org/publicdomain/zero/1.0/
  3. proginf "mkfigos 2.9, jun 2018 mn" print
  4. # you want fastcomp to be 0
  5. # (removing the 1 works as well as putting a 0 after.)
  6. # set to 1 when trying the script out, will do less compression of sfs
  7. fastcomp 0
  8. # ===========================================================
  9. # you will need python 2, and fig 2.x or 4.x to run mkfigos.
  10. # you can download fig 4.6 here:
  11. # https://notabug.org/figosdev/figos/raw/master/fig46.py
  12. # ===========================================================
  13. isov split proginf "," mid 1 1 split isov " " mid 2 1
  14. isoname "figos" plus isov
  15. function addquoted mainv toquote
  16. q 34 chr
  17. now mainv plus " " plus q plus toquote plus q return now
  18. fig
  19. function urf p
  20. # filename from url
  21. # ... return whats to the right of the rightmost "/" (or entire string if "/" not found)
  22. r p reverse instr r "/" minus 1
  23. ifmore r 0
  24. now p right r return now
  25. else
  26. now p return now
  27. fig
  28. fig
  29. function download iso
  30. now iso
  31. now urf iso
  32. u urf iso
  33. ck "ls" addquoted ck u plus " | wc -l" arrshell join ck " " int
  34. ifequal ck 0
  35. now "wget" addquoted now iso shell
  36. fig
  37. fig
  38. pwd "pwd" arrshell join pwd ""
  39. #refractaurl "https://archive.org/download/Refracta_Linux/refracta8.3_xfce_i386-20170304_2347.iso"
  40. refractaurl "https://archive.org/download/VoidLinux/void-live-i686-20171007-lxqt.iso"
  41. urfrefractaurl urf refractaurl
  42. now download refractaurl
  43. fpath pwd plus "/" plus urfrefractaurl
  44. now "mkdir /mnt/mkrefpup" shell
  45. now "mkdir /mnt/mkrefpup/newiso" shell
  46. now "mkdir /mnt/mkrefpup/fs" shell
  47. ###now "mkdir /mnt/mkrefpup/unsq" shell
  48. now "mkdir /mnt/mkrefpup/refracta" shell
  49. now "mkdir /mnt/mkrefpup/refractafs" shell
  50. nowplus "cd /mnt/mkrefpup ; if [ -e logo.16 ] ; then echo ; else wget -O- 'https://notabug.org/figosdev/figos/raw/master/el3ZRly.png' > logo.16 ; "
  51. 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
  52. q 34 chr
  53. now "mount " plus q plus pwd plus "/" plus urfrefractaurl plus q plus " /mnt/mkrefpup/refracta -o loop" shell
  54. now "mkdir /mnt/mkrefpup/newiso/boot" shell
  55. now "mkdir /mnt/mkrefpup/newiso/boot/isolinux" shell
  56. now "cp -r /mnt/mkrefpup/refracta/boot/* /mnt/mkrefpup/newiso/boot/" shell
  57. #now "cp /mnt/mkrefpup/refracta/boot/isolinux/* /mnt/mkrefpup/newiso/boot/isolinux" shell
  58. #now "rm /mnt/mkrefpup/newiso/puppy_librepup_6.0.2.2.sfs /mnt/mkrefpup/newiso/zdrv_librepup_6.0.2.2.sfs" shell
  59. #now "cp /mnt/mkrefpup/refracta/live/vmlinuz /mnt/mkrefpup/newiso" shell
  60. # now "cp /mnt/mkrefpup/refracta/live/initrd.img /mnt/mkrefpup/newiso/initrd.gz" shell
  61. now "mkdir /mnt/mkrefpup/newiso/LiveOS" shell
  62. now "mkdir /mnt/mkrefpup/newiso/boot" shell
  63. now "mkdir /mnt/mkrefpup/newiso/boot/isolinux" shell
  64. now "cp /mnt/mkrefpup/refracta/boot/vmlinuz /mnt/mkrefpup/newiso/boot/" shell
  65. now "cp /mnt/mkrefpup/refracta/boot/initrd /mnt/mkrefpup/newiso/boot/" shell
  66. # now "cp /mnt/mkrefpup/refracta/live/filesystem.squashfs /mnt/mkrefpup/newiso/live" shell
  67. function fixpings force isoname fromt tot fname
  68. try
  69. fc arropen fname
  70. ck join fc " " instr ck "auto-edited by mk"
  71. iftrue force
  72. ck 0
  73. fig
  74. iftrue ck
  75. pass
  76. else
  77. now fname open "w"
  78. forin t fc
  79. text split t fromt join text tot
  80. now text fprint fname
  81. next
  82. now " # auto-edited by mk" plus isoname fprint fname
  83. now fname close
  84. q 34 chr
  85. now "chmod +x " plus q plus fname plus q shell
  86. fig
  87. except
  88. pass
  89. resume
  90. fig
  91. now fixpings 0 isoname "VSHIFT 2" "VSHIFT 14" "/mnt/mkrefpup/newiso/boot/isolinux/isolinux.cfg"
  92. now fixpings 0 isoname "Italiano" "it_IT locale" "/mnt/mkrefpup/newiso/boot/isolinux/isolinux.cfg"
  93. now fixpings 1 isoname "Void Linux" "Fig OS" "/mnt/mkrefpup/newiso/boot/isolinux/isolinux.cfg"
  94. #now "cat /mnt/mkrefpup/iso/isolinux.cfg | head -9 | sed 's/default puppy/default live/g' > /mnt/mkrefpup/newiso/isolinux.cfg" shell
  95. #now "cat /mnt/mkrefpup/refracta/isolinux/live.cfg > /mnt/mkrefpup/newiso/isolinux.cfg" shell
  96. now "/mnt/mkrefpup/refractafs" chdir
  97. now "unsquashfs /mnt/mkrefpup/refracta/LiveOS/squashfs.img" shell
  98. now "mkdir /mnt/mkrefpup/vrefractafs/" shell
  99. now "mkdir /mnt/mkrefpup/vrefractafs/squashfs-root/" shell
  100. now "echo copying #; cp /mnt/mkrefpup/refractafs/squashfs-root/LiveOS/ext3fs.img /mnt/mkrefpup/" shell
  101. now "mount /mnt/mkrefpup/refractafs/squashfs-root/LiveOS/ext3fs.img /mnt/mkrefpup/vrefractafs/squashfs-root/" shell
  102. now "echo '#!/bin/bash' > /mnt/mkrefpup/vrefractafs/squashfs-root/usr/sbin/figoshelp" shell
  103. quot 34 chr
  104. bs 92 chr
  105. now "echo 'su $(cat /etc/passwd | grep 1000:1000 | tr : " plus quot plus bs plus bs plus "n" plus quot plus " | head -1) -c " plus quot plus "x-www-browser https://sourceforge.net/u/figosdev/fig/figos/" plus quot plus "' >> /mnt/mkrefpup/vrefractafs/squashfs-root/usr/sbin/figoshelp" shell
  106. now "chmod +x /mnt/mkrefpup/vrefractafs/squashfs-root/usr/sbin/figoshelp" shell
  107. now "mkdir /mnt/mkrefpup/vrefractafs/squashfs-root/usr/share/doc/puppy" shell
  108. now "rm ../vrefractafs/squashfs-root/usr/share/applications/gimp.desktop" shell
  109. now "rm -rf ../vrefractafs/squashfs-root/usr/bin/gimp*" shell
  110. now "rm -rf ../vrefractafs/squashfs-root/etc/gimp" shell
  111. now "rm -rf ../vrefractafs/squashfs-root/usr/lib/gimp" shell
  112. now "rm -rf ../vrefractafs/squashfs-root/usr/share/gimp" shell
  113. now "rm -rf ../vrefractafs/squashfs-root/usr/share/doc/gimp" shell
  114. now "rm -rf ../vrefractafs/squashfs-root/usr/share/doc/gimp-data" shell
  115. now "rm -rf ../vrefractafs/squashfs-root/usr/share/doc/libgimp2.0" shell
  116. now "mkdir /mnt/mkrefpup/vrefractafs/squashfs-root/usr/share/doc/figueira 2> /dev/null" shell
  117. now "rm /mnt/mkrefpup/vrefractafs/squashfs-root/usr/bin/fig29.py" shell
  118. now "cp /mnt/mkrefpup/fig46.py /mnt/mkrefpup/vrefractafs/squashfs-root/usr/bin" shell
  119. now "cp /mnt/mkrefpup/figu29.py /mnt/mkrefpup/vrefractafs/squashfs-root/usr/bin" shell
  120. now "cp /mnt/mkrefpup/alex23.py /mnt/mkrefpup/vrefractafs/squashfs-root/usr/bin" shell
  121. now "chmod +x /mnt/mkrefpup/vrefractafs/squashfs-root/usr/bin/fig46.py" shell
  122. now "chmod +x /mnt/mkrefpup/vrefractafs/squashfs-root/usr/bin/figu29.py" shell
  123. now "mkdir /mnt/mkrefpup/refractafs/squashfs-root/usr/" shell
  124. now "mkdir /mnt/mkrefpup/refractafs/squashfs-root/usr/bin" shell
  125. now "mkdir /mnt/mkrefpup/refractafs/squashfs-root/usr/share" shell
  126. now "mkdir /mnt/mkrefpup/refractafs/squashfs-root/usr/local" shell
  127. now "mkdir /mnt/mkrefpup/refractafs/squashfs-root/usr/local/bin" shell
  128. now "rm /mnt/mkrefpup/vrefractafs/squashfs-root/etc/os-release" shell
  129. now "rm /mnt/mkrefpup/vrefractafs/squashfs-root/usr/share/lxqt/themes/frost/lxqt*.png" shell
  130. #now "chroot /mnt/mkrefpup/vrefractafs/squashfs-root/" shell
  131. now "echo 'echo >/usr/share/lxqt/graphics/helix.svg' >> /mnt/mkrefpup/vrefractafs/squashfs-root/etc/rc.local" shell
  132. now "echo '/root/updatefirstrun 2> /dev/null' >> /mnt/mkrefpup/vrefractafs/squashfs-root/etc/rc.local" shell
  133. now "echo '/root/pythoninstall' >> /mnt/mkrefpup/vrefractafs/squashfs-root/etc/rc.local" shell
  134. now "echo '/root/wminstall' >> /mnt/mkrefpup/vrefractafs/squashfs-root/etc/rc.local" shell
  135. now "echo '/root/curlinstall' >> /mnt/mkrefpup/vrefractafs/squashfs-root/etc/rc.local" shell
  136. now "echo '/root/installother' >> /mnt/mkrefpup/vrefractafs/squashfs-root/etc/rc.local" shell
  137. quot 34 chr
  138. now "/bin/echo -e '#!/bin/bash\np=$(which python 2> /dev/null | wc -l) ; if [[ " plus quot plus "$p" plus quot plus " == " plus quot plus "0" plus quot plus " ]] ; then xbps-install --repository /var/cache/xbps -yS python ; fi' > /mnt/mkrefpup/vrefractafs/squashfs-root/root/pythoninstall ; chmod +x /mnt/mkrefpup/vrefractafs/squashfs-root/root/pythoninstall" shell
  139. now "/bin/echo -e '#!/bin/bash\np=$(which icewm 2> /dev/null | wc -l) ; if [[ " plus quot plus "$p" plus quot plus " == " plus quot plus "0" plus quot plus " ]] ; then xbps-install --repository /var/cache/xbps -yS icewm ; ' > /mnt/mkrefpup/vrefractafs/squashfs-root/root/wminstall ; chmod +x /mnt/mkrefpup/vrefractafs/squashfs-root/root/wminstall" shell
  140. now "/bin/echo -e '#!/bin/bash\np=$(which curl 2> /dev/null | wc -l) ; if [[ " plus quot plus "$p" plus quot plus " == " plus quot plus "0" plus quot plus " ]] ; then xbps-install --repository /var/cache/xbps -yS curl wget ; fi' > /mnt/mkrefpup/vrefractafs/squashfs-root/root/curlinstall ; chmod +x /mnt/mkrefpup/vrefractafs/squashfs-root/root/curlinstall" shell
  141. 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 ; fi' > /mnt/mkrefpup/vrefractafs/squashfs-root/root/installother ; chmod +x /mnt/mkrefpup/vrefractafs/squashfs-root/root/installother" shell
  142. now "/bin/echo -e '#!/bin/bash\nxbps-rindex -a /var/cache/xbps/*.xbps ; rm /root/updatefirstrun' > /mnt/mkrefpup/vrefractafs/squashfs-root/root/updatefirstrun ; chmod +x /mnt/mkrefpup/vrefractafs/squashfs-root/root/updatefirstrun" shell
  143. now "/mnt/mkrefpup/" chdir
  144. now "wget 'https://repo.voidlinux.eu/current/gdbm-1.14.1_1.i686.xbps'" shell
  145. now "wget 'https://repo.voidlinux.eu/current/gdbm-1.14.1_1.i686.xbps.sig'" shell
  146. now "wget 'https://repo.voidlinux.eu/current/libcrypto43-2.7.3_1.i686.xbps'" shell
  147. now "wget 'https://repo.voidlinux.eu/current/libcrypto43-2.7.3_1.i686.xbps.sig'" shell
  148. now "wget 'https://repo.voidlinux.eu/current/libssl45-2.7.3_1.i686.xbps'" shell
  149. now "wget 'https://repo.voidlinux.eu/current/libssl45-2.7.3_1.i686.xbps.sig'" shell
  150. now "wget 'https://repo.voidlinux.eu/current/python-2.7.15_1.i686.xbps'" shell
  151. now "wget 'https://repo.voidlinux.eu/current/python-2.7.15_1.i686.xbps.sig'" shell
  152. now "wget 'https://repo.voidlinux.eu/current/wget-1.19.5_1.i686.xbps'" shell
  153. now "wget 'https://repo.voidlinux.eu/current/wget-1.19.5_1.i686.xbps.sig'" shell
  154. now "wget 'https://repo.voidlinux.eu/current/curl-7.60.0_1.i686.xbps'" shell
  155. now "wget 'https://repo.voidlinux.eu/current/curl-7.60.0_1.i686.xbps.sig'" shell
  156. now "wget 'https://repo.voidlinux.eu/current/gdk-pixbuf-xlib-2.36.12_1.i686.xbps'" shell
  157. now "wget 'https://repo.voidlinux.eu/current/gdk-pixbuf-xlib-2.36.12_1.i686.xbps.sig'" shell
  158. now "wget 'https://repo.voidlinux.eu/current/icewm-1.4.2_1.i686.xbps'" shell
  159. now "wget 'https://repo.voidlinux.eu/current/icewm-1.4.2_1.i686.xbps.sig'" shell
  160. now "wget 'https://repo.voidlinux.eu/current/jansson-2.11_1.i686.xbps'" shell
  161. now "wget 'https://repo.voidlinux.eu/current/jansson-2.11_1.i686.xbps.sig'" shell
  162. now "wget 'https://repo.voidlinux.eu/current/libcurl-7.60.0_1.i686.xbps'" shell
  163. now "wget 'https://repo.voidlinux.eu/current/libcurl-7.60.0_1.i686.xbps.sig'" shell
  164. now "wget 'https://repo.voidlinux.eu/current/nghttp2-1.32.0_1.i686.xbps'" shell
  165. now "wget 'https://repo.voidlinux.eu/current/nghttp2-1.32.0_1.i686.xbps.sig'" shell
  166. now "wget 'https://repo.voidlinux.eu/current/alsa-tools-1.1.6_1.i686.xbps.sig'" shell
  167. now "wget 'https://repo.voidlinux.eu/current/alsa-utils-1.1.6_1.i686.xbps.sig'" shell
  168. now "wget 'https://repo.voidlinux.eu/current/var/cache/xbps/binutils-2.29.1_3.i686.xbps.sig'" shell
  169. now "wget 'https://repo.voidlinux.eu/current/fltk-1.3.4_1.i686.xbps.sig'" shell
  170. now "wget 'https://repo.voidlinux.eu/current/gdmap-0.8.1_2.i686.xbps.sig'" shell
  171. now "wget 'https://repo.voidlinux.eu/current/ghostscript-9.23_3.i686.xbps.sig'" shell
  172. now "wget 'https://repo.voidlinux.eu/current/gsfonts-8.11_4.noarch.xbps.sig'" shell
  173. now "wget 'https://repo.voidlinux.eu/current/hdparm-9.56_1.i686.xbps.sig'" shell
  174. now "wget 'https://repo.voidlinux.eu/current/hsetroot-1.0.2_7.i686.xbps.sig'" shell
  175. now "wget 'https://repo.voidlinux.eu/current/i3lock-2.10_1.i686.xbps.sig'" shell
  176. now "wget 'https://repo.voidlinux.eu/current/leafpad-0.8.18.1_3.i686.xbps.sig'" shell
  177. now "wget 'https://repo.voidlinux.eu/current/lesstif-0.95.2_5.i686.xbps.sig'" shell
  178. now "wget 'https://repo.voidlinux.eu/current/libXfontcache-1.0.5_2.i686.xbps.sig'" shell
  179. now "wget 'https://repo.voidlinux.eu/current/libXp-1.0.3_2.i686.xbps.sig'" shell
  180. now "wget 'https://repo.voidlinux.eu/current/libXxf86misc-1.0.3_2.i686.xbps.sig'" shell
  181. now "wget 'https://repo.voidlinux.eu/current/libev-4.24_1.i686.xbps.sig'" shell
  182. now "wget 'https://repo.voidlinux.eu/current/libglade-2.6.4_12.i686.xbps.sig'" shell
  183. now "wget 'https://repo.voidlinux.eu/current/libgs-9.23_3.i686.xbps.sig'" shell
  184. now "wget 'https://repo.voidlinux.eu/current/libijs-9.23_3.i686.xbps.sig'" shell
  185. now "wget 'https://repo.voidlinux.eu/current/libjbig2dec-0.14_1.i686.xbps.sig'" shell
  186. now "wget 'https://repo.voidlinux.eu/current/liblz4-1.8.2_2.i686.xbps.sig'" shell
  187. now "wget 'https://repo.voidlinux.eu/current/liblzma-5.2.4_1.i686.xbps.sig'" shell
  188. now "wget 'https://repo.voidlinux.eu/current/libopenjpeg-1.5.2_1.i686.xbps.sig'" shell
  189. now "wget 'https://repo.voidlinux.eu/current/libopenjpeg2-2.3.0_1.i686.xbps.sig'" shell
  190. now "wget 'https://repo.voidlinux.eu/current/libpaper-1.1.24+nmu5_1.i686.xbps.sig'" shell
  191. now "wget 'https://repo.voidlinux.eu/current/lsof-4.91_1.i686.xbps.sig'" shell
  192. now "wget 'https://repo.voidlinux.eu/current/mtpaint-3.49.13_1.i686.xbps.sig'" shell
  193. now "wget 'https://repo.voidlinux.eu/current/nano-2.9.7_1.i686.xbps.sig'" shell
  194. now "wget 'https://repo.voidlinux.eu/current/ncdu-1.13_1.i686.xbps.sig'" shell
  195. now "wget 'https://repo.voidlinux.eu/current/psutils-p17_4.i686.xbps.sig'" shell
  196. now "wget 'https://repo.voidlinux.eu/current/pygtk-2.24.0_13.i686.xbps.sig'" shell
  197. now "wget 'https://repo.voidlinux.eu/current/python-alsa-1.1.6_1.i686.xbps.sig'" shell
  198. now "wget 'https://repo.voidlinux.eu/current/python-cairo-1.17.0_1.i686.xbps.sig'" shell
  199. now "wget 'https://repo.voidlinux.eu/current/python-gobject2-2.28.7_1.i686.xbps.sig'" shell
  200. now "wget 'https://repo.voidlinux.eu/current/smartmontools-6.6_1.i686.xbps.sig'" shell
  201. now "wget 'https://repo.voidlinux.eu/current/squashfs-tools-4.3_6.i686.xbps.sig'" shell
  202. now "wget 'https://repo.voidlinux.eu/current/syslinux-6.03_4.i686.xbps.sig'" shell
  203. now "wget 'https://repo.voidlinux.eu/current/xmlcatmgr-2.2_3.i686.xbps.sig'" shell
  204. now "wget 'https://repo.voidlinux.eu/current/xorriso-1.4.9_1.i686.xbps.sig'" shell
  205. now "wget 'https://repo.voidlinux.eu/current/xpdf-3.04_1.i686.xbps.sig'" shell
  206. now "wget 'https://repo.voidlinux.eu/current/xrandr-1.5.0_1.i686.xbps.sig'" shell
  207. now "wget 'https://repo.voidlinux.eu/current/xset-1.2.4_1.i686.xbps.sig'" shell
  208. now "wget 'https://repo.voidlinux.eu/current/xz-5.2.4_1.i686.xbps.sig'" shell
  209. now "wget 'https://repo.voidlinux.eu/current/alsa-tools-1.1.6_1.i686.xbps'" shell
  210. now "wget 'https://repo.voidlinux.eu/current/alsa-utils-1.1.6_1.i686.xbps'" shell
  211. now "wget 'https://repo.voidlinux.eu/current/var/cache/xbps/binutils-2.29.1_3.i686.xbps'" shell
  212. now "wget 'https://repo.voidlinux.eu/current/fltk-1.3.4_1.i686.xbps'" shell
  213. now "wget 'https://repo.voidlinux.eu/current/gdmap-0.8.1_2.i686.xbps'" shell
  214. now "wget 'https://repo.voidlinux.eu/current/ghostscript-9.23_3.i686.xbps'" shell
  215. now "wget 'https://repo.voidlinux.eu/current/gsfonts-8.11_4.noarch.xbps'" shell
  216. now "wget 'https://repo.voidlinux.eu/current/hdparm-9.56_1.i686.xbps'" shell
  217. now "wget 'https://repo.voidlinux.eu/current/hsetroot-1.0.2_7.i686.xbps'" shell
  218. now "wget 'https://repo.voidlinux.eu/current/i3lock-2.10_1.i686.xbps'" shell
  219. now "wget 'https://repo.voidlinux.eu/current/leafpad-0.8.18.1_3.i686.xbps'" shell
  220. now "wget 'https://repo.voidlinux.eu/current/lesstif-0.95.2_5.i686.xbps'" shell
  221. now "wget 'https://repo.voidlinux.eu/current/libXfontcache-1.0.5_2.i686.xbps'" shell
  222. now "wget 'https://repo.voidlinux.eu/current/libXp-1.0.3_2.i686.xbps'" shell
  223. now "wget 'https://repo.voidlinux.eu/current/libXxf86misc-1.0.3_2.i686.xbps'" shell
  224. now "wget 'https://repo.voidlinux.eu/current/libev-4.24_1.i686.xbps'" shell
  225. now "wget 'https://repo.voidlinux.eu/current/libglade-2.6.4_12.i686.xbps'" shell
  226. now "wget 'https://repo.voidlinux.eu/current/libgs-9.23_3.i686.xbps'" shell
  227. now "wget 'https://repo.voidlinux.eu/current/libijs-9.23_3.i686.xbps'" shell
  228. now "wget 'https://repo.voidlinux.eu/current/libjbig2dec-0.14_1.i686.xbps'" shell
  229. now "wget 'https://repo.voidlinux.eu/current/liblz4-1.8.2_2.i686.xbps'" shell
  230. now "wget 'https://repo.voidlinux.eu/current/liblzma-5.2.4_1.i686.xbps'" shell
  231. now "wget 'https://repo.voidlinux.eu/current/libopenjpeg-1.5.2_1.i686.xbps'" shell
  232. now "wget 'https://repo.voidlinux.eu/current/libopenjpeg2-2.3.0_1.i686.xbps'" shell
  233. now "wget 'https://repo.voidlinux.eu/current/libpaper-1.1.24+nmu5_1.i686.xbps'" shell
  234. now "wget 'https://repo.voidlinux.eu/current/lsof-4.91_1.i686.xbps'" shell
  235. now "wget 'https://repo.voidlinux.eu/current/mtpaint-3.49.13_1.i686.xbps'" shell
  236. now "wget 'https://repo.voidlinux.eu/current/nano-2.9.7_1.i686.xbps'" shell
  237. now "wget 'https://repo.voidlinux.eu/current/ncdu-1.13_1.i686.xbps'" shell
  238. now "wget 'https://repo.voidlinux.eu/current/psutils-p17_4.i686.xbps'" shell
  239. now "wget 'https://repo.voidlinux.eu/current/pygtk-2.24.0_13.i686.xbps'" shell
  240. now "wget 'https://repo.voidlinux.eu/current/python-alsa-1.1.6_1.i686.xbps'" shell
  241. now "wget 'https://repo.voidlinux.eu/current/python-cairo-1.17.0_1.i686.xbps'" shell
  242. now "wget 'https://repo.voidlinux.eu/current/python-gobject2-2.28.7_1.i686.xbps'" shell
  243. now "wget 'https://repo.voidlinux.eu/current/smartmontools-6.6_1.i686.xbps'" shell
  244. now "wget 'https://repo.voidlinux.eu/current/squashfs-tools-4.3_6.i686.xbps'" shell
  245. now "wget 'https://repo.voidlinux.eu/current/syslinux-6.03_4.i686.xbps'" shell
  246. now "wget 'https://repo.voidlinux.eu/current/xmlcatmgr-2.2_3.i686.xbps'" shell
  247. now "wget 'https://repo.voidlinux.eu/current/xorriso-1.4.9_1.i686.xbps'" shell
  248. now "wget 'https://repo.voidlinux.eu/current/xpdf-3.04_1.i686.xbps'" shell
  249. now "wget 'https://repo.voidlinux.eu/current/xrandr-1.5.0_1.i686.xbps'" shell
  250. now "wget 'https://repo.voidlinux.eu/current/xset-1.2.4_1.i686.xbps'" shell
  251. now "wget 'https://repo.voidlinux.eu/current/xz-5.2.4_1.i686.xbps'" shell
  252. now "wget 'http://http.us.debian.org/debian/pool/main/d/dpkg/dpkg_1.18.24_i386.deb'" shell
  253. now "ar x dpkg_1.18.24_i386.deb" shell
  254. now "tar -xvf data.tar.xz ./usr/bin/dpkg-deb ; cp ./usr/bin/dpkg-deb /mnt/mkrefpup" shell
  255. now "cp dpkg-deb /mnt/mkrefpup/vrefractafs/squashfs-root/usr/bin" shell
  256. now "cp *.xbps *.xbps.sig /mnt/mkrefpup/vrefractafs/squashfs-root/var/cache/xbps" shell
  257. now "/mnt/mkrefpup/refractafs" chdir
  258. now "cp /mnt/mkrefpup/figuchsh.odt /mnt/mkrefpup/vrefractafs/squashfs-root/usr/share/doc/figueira" shell
  259. now "cp /mnt/mkrefpup/figuchsh.pdf /mnt/mkrefpup/vrefractafs/squashfs-root/usr/share/doc/figueira" shell
  260. now "ln -s /root/.bash_history /mnt/mkrefpup/vrefractafs/squashfs-root/.bash_history" shell
  261. now pwd chdir
  262. insticewm "ls /mnt/mkrefpup/vrefractafs/squashfs-root/usr/bin/icewm | wc -l 2> /dev/null" arrshell mid 1 1 int
  263. ifequal insticewm 0
  264. now "mkdir -p /mnt/mkrefpup/vrefractafs/squashfs-root/usr/share/pixmaps" shell
  265. now "wget -O- https://web.archive.org/web/20180409203435/https://openclipart.org/image/48px/svg_to_png/25428/Network.png > /mnt/mkrefpup/vrefractafs/squashfs-root/usr/share/pixmaps/connect48.png" shell
  266. now "wget -O- https://web.archive.org/web/20180409203311/https://openclipart.org/image/48px/svg_to_png/212874/RootTerminal.png > /mnt/mkrefpup/vrefractafs/squashfs-root/usr/share/pixmaps/console48.png" shell
  267. now "wget -O- https://web.archive.org/web/20180409203255/https://openclipart.org/image/48px/svg_to_png/285844/Help-content.png > /mnt/mkrefpup/vrefractafs/squashfs-root/usr/share/pixmaps/help48.png" shell
  268. now "wget -O- https://web.archive.org/web/20180409203213/https://openclipart.org/image/48px/svg_to_png/65101/leafpad3.png/ > /mnt/mkrefpup/vrefractafs/squashfs-root/usr/share/pixmaps/edit48.png" shell
  269. now "wget https://notabug.org/figosdev/figos/raw/master/arrlen.fig" shell
  270. now "wget https://notabug.org/figosdev/figos/raw/master/arrname.fig" shell
  271. now "wget https://notabug.org/figosdev/figos/raw/master/dircmp.fig" shell
  272. now "wget http://http.us.debian.org/debian/pool/main/h/hashdeep/hashdeep_4.4-4_i386.deb" shell
  273. now "wget http://http.us.debian.org/debian/pool/main/h/hashdeep/md5deep_4.4-4_all.deb" shell
  274. # commented out as dirty cow should be fixed by this refracta version
  275. # try to fix dirty cow without chroot and new initrd
  276. # now "dpkg-deb -x /mnt/mkrefpup/linux-image-3.16.0-4-686-pae_3.16.36-1+deb8u2_i386.deb /mnt/mkrefpup/vrefractafs/squashfs-root/" shell
  277. # gtklp_1.3.1-0.1+b1_i386.deb #
  278. # libfm-data_1.2.5-1_all.deb #
  279. # libfm-extra4_1.2.5-1_i386.deb #
  280. # libfm-gtk-data_1.2.5-1_all.deb #
  281. # libmenu-cache-bin_1.0.2-3_i386.deb #
  282. # lxmenu-data_0.1.5-2_all.deb
  283. #now "dpkg-deb -x icewm_1.3.8+mod+20161220-1_i386.deb /mnt/mkrefpup/vrefractafs/squashfs-root" shell
  284. #now "dpkg-deb -x hsetroot_1.0.2-5+b1_i386.deb /mnt/mkrefpup/vrefractafs/squashfs-root" shell
  285. #now "dpkg-deb -x leafpad_0.8.18.1-5_i386.deb /mnt/mkrefpup/vrefractafs/squashfs-root" shell
  286. #now "dpkg-deb -x ncdu_1.12-1+b1_i386.deb /mnt/mkrefpup/vrefractafs/squashfs-root" shell
  287. #now "dpkg-deb -x vlock_2.2.2-8_i386.deb /mnt/mkrefpup/vrefractafs/squashfs-root" shell
  288. fig
  289. now "/mnt/mkrefpup/refractafs" chdir
  290. now "rm /mnt/mkrefpup/vrefractafs/squashfs-root/usr/share/icewm/themes/default/default.png" shell
  291. now "cp arrlen.fig arrname.fig dircmp.fig /mnt/mkrefpup/vrefractafs/squashfs-root/usr/bin" shell
  292. now "mkdir -p /mnt/mkrefpup/vrefractafs/squashfs-root/var/cache/apt/archives" shell
  293. #now "cp libglib2.0-0_2.42.1-1+b1_i386.deb /mnt/mkrefpup/vrefractafs/squashfs-root/var/cache/apt/archives" shell
  294. #now "dpkg-deb -x iceweasel_45.4.0esr-1~deb8u2_all.deb /mnt/mkrefpup/vrefractafs/squashfs-root" shell
  295. #now "dpkg-deb -x firefox-esr_45.4.0esr-1~deb8u2_i386.deb /mnt/mkrefpup/vrefractafs/squashfs-root" shell
  296. #now "dpkg-deb -x libssl1.0.0_1.0.1t-1+deb8u5_i386.deb /mnt/mkrefpup/vrefractafs/squashfs-root" shell
  297. #now "rm -rf /mnt/mkrefpup/vrefractafs/squashfs-root/etc/systemd" shell
  298. #now "rm -rf /mnt/mkrefpup/vrefractafs/squashfs-root/var/lib/systemd" shell
  299. #now "rm /mnt/mkrefpup/vrefractafs/squashfs-root/usr/bin/dbus-daemon" shell
  300. #now "rm /mnt/mkrefpup/vrefractafs/squashfs-root/usr/bin/dbus-launch" shell
  301. # (udisks) # now "rm /mnt/mkrefpup/vrefractafs/squashfs-root/etc/avahi/services/*.service" shell
  302. now "nrm /mnt/mkrefpup/refractafs/squashfs-root/etc/systemd/system/bluetooth.target.wants/*.service" shell
  303. now "nrm /mnt/mkrefpup/refractafs/squashfs-root/etc/systemd/system/sysinit.target.wants/*.service" shell
  304. now "nrm /mnt/mkrefpup/refractafs/squashfs-root/lib/systemd/system/halt.target.wants/*.service" shell
  305. now "nrm /mnt/mkrefpup/refractafs/squashfs-root/lib/systemd/system/poweroff.target.wants/*.service" shell
  306. now "nrm /mnt/mkrefpup/refractafs/squashfs-root/lib/systemd/system/reboot.target.wants/*.service" shell
  307. now "nrm /mnt/mkrefpup/refractafs/squashfs-root/lib/systemd/system/shutdown.target.wants/*.service" shell
  308. now "nrm /mnt/mkrefpup/refractafs/squashfs-root/usr/share/man/man8/*.service" shell
  309. now "nrm /mnt/mkrefpup/refractafs/squashfs-root/var/lib/systemd/deb-systemd-helper-enabled/bluetooth.target.wants/*.service" shell
  310. now "nrm /mnt/mkrefpup/refractafs/squashfs-root/var/lib/systemd/deb-systemd-helper-enabled/sysinit.target.wants/*.service" shell
  311. now "nrm /mnt/mkrefpup/refractafs/squashfs-root/etc/systemd/system/local-fs.target.wants/*.service" shell
  312. now "nrm /mnt/mkrefpup/refractafs/squashfs-root/var/lib/systemd/deb-systemd-helper-enabled/local-fs.target.wants/*.service" shell
  313. now "nrm /mnt/mkrefpup/refractafs/squashfs-root/lib/systemd/system/basic.target.wants/*.service" shell
  314. now "nrm /mnt/mkrefpup/refractafs/squashfs-root/lib/systemd/system/sysinit.target.wants/*.service" shell
  315. now "nrm /mnt/mkrefpup/refractafs/squashfs-root/etc/systemd/system/*.service" shell
  316. now "nrm /mnt/mkrefpup/refractafs/squashfs-root/etc/systemd/system/multi-user.target.wants/*.service" shell
  317. now "nrm /mnt/mkrefpup/refractafs/squashfs-root/var/lib/systemd/deb-systemd-helper-enabled/multi-user.target.wants/*.service" shell
  318. now "nrm /mnt/mkrefpup/refractafs/squashfs-root/usr/share/dbus-1/services/*.service*" shell
  319. now "nrm /mnt/mkrefpup/refractafs/squashfs-root/var/lib/systemd/deb-systemd-helper-enabled/*.service*" shell
  320. now "nrm /mnt/mkrefpup/refractafs/squashfs-root/usr/share/dbus-1/system-services/*.service*" shell
  321. now "nrm /mnt/mkrefpup/refractafs/squashfs-root/lib/systemd/system/*.service*" shell
  322. now "nrm /mnt/mkrefpup/refractafs/squashfs-root/root/deb/lib/systemd/system/*.service*" shell
  323. # keep /lib/systemd/system/udisks.service
  324. #now "rm -rf /mnt/mkrefpup/refractafs/squashfs-root/lib/systemd/system/[abcdefghijklmnopqrstvwxyz]*" shell
  325. #now "rm /mnt/mkrefpup/refractafs/squashfs-root/etc/alternatives/x-session-manager" shell
  326. #now "ln -s /usr/bin/icewm-session /mnt/mkrefpup/vrefractafs/squashfs-root/etc/alternatives/x-session-manager" shell
  327. #now "rm /mnt/mkrefpup/vrefractafs/squashfs-root/etc/alternatives/x-window-manager" shell
  328. #now "ln -s /usr/bin/icewm /mnt/mkrefpup/vrefractafs/squashfs-root/etc/alternatives/x-window-manager" shell
  329. #now fixpings 0 isoname "/usr/bin/startxfce4" "/usr/bin/icewm-session" "/mnt/mkrefpup/vrefractafs/squashfs-root/etc/lxdm/lxdm.conf"
  330. #now fixpings 0 isoname "__Default__" "IceWM" "/mnt/mkrefpup/vrefractafs/squashfs-root/var/lib/lxdm/lxdm.conf"
  331. ###now "cp /mnt/mkrefpup/unsq/squashfs-root/usr/local/PupClockset/icons/blank1.png /mnt/mkrefpup/vrefractafs/squashfs-root/usr/share/backgrounds/default.png" shell
  332. #now "ln -s /root/.config /mnt/mkrefpup/vrefractafs/squashfs-root/.config" shell
  333. # puppy to refracta
  334. #now "cat /mnt/mkrefpup/unsq/squashfs-root/usr/share/backgrounds/default.png > /mnt/mkrefpup/vrefractafs/squashfs-root/usr/share/backgrounds/xfce" shell
  335. #now "mkdir /mnt/mkrefpup/vrefractafs/squashfs-root/usr/local/apps" shell
  336. #now "cp -r /mnt/mkrefpup/unsq/squashfs-root/usr/local/apps/ROX-Filer /mnt/mkrefpup/vrefractafs/squashfs-root/usr/local/apps" shell
  337. #now "cp /mnt/mkrefpup/unsq/squashfs-root/usr/local/bin/rox /mnt/mkrefpup/vrefractafs/squashfs-root/usr/local/apps" shell
  338. #now "mkdir /mnt/mkrefpup/vrefractafs/squashfs-root/usr/local/lib" shell
  339. q 34 chr
  340. #now "sed -i 's/DesktopBackgroundColor=" plus q plus "rgb:50\/50\/78" plus q plus "/DesktopBackgroundColor=" plus q plus "rgb:00\/00\/00" plus q plus "/g' /mnt/mkrefpup/vrefractafs/squashfs-root/usr/share/icewm/themes/icedesert/default.theme" shell
  341. #now "sed -i 's/xterm/xterm -fn 10x20/g' /mnt/mkrefpup/vrefractafs/squashfs-root/usr/share/icewm/keys" shell
  342. #now "sed -i 's/^PermitRootLogin without-password/PermitRootLogin no/g' /mnt/mkrefpup/vrefractafs/squashfs-root/etc/ssh/sshd_config" shell
  343. now "cd /mnt/mkrefpup/vrefractafs/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
  344. now "cd /mnt/mkrefpup/vrefractafs/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
  345. now "cd /mnt/mkrefpup/vrefractafs/squashfs-root/usr/share/locale/ ; rm -rf dv dz el en@boldquot " shell
  346. now "cd /mnt/mkrefpup/vrefractafs/squashfs-root/usr/share/locale/ ; rm -rf en@piglatin en@quot en@shaw eo et et_EE fa fa_IR fi fi_FI" shell
  347. now "cd /mnt/mkrefpup/vrefractafs/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
  348. now "cd /mnt/mkrefpup/vrefractafs/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
  349. now "cd /mnt/mkrefpup/vrefractafs/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
  350. now "cd /mnt/mkrefpup/vrefractafs/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
  351. now "cd /mnt/mkrefpup/vrefractafs/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
  352. now "cd /mnt/mkrefpup/vrefractafs/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
  353. now "cd /mnt/mkrefpup/vrefractafs/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
  354. now "cd /mnt/mkrefpup/vrefractafs/squashfs-root/usr/share/icons/ ; rm -rf mate" shell
  355. now "cd /mnt/mkrefpup/vrefractafs/squashfs-root/usr/share/icons/ ; rm -rf Adwaita" shell
  356. now "cd /mnt/mkrefpup/vrefractafs/squashfs-root/usr/share/icons/ ; rm -rf breeze*" shell
  357. now "/mnt/mkrefpup/vrefractafs/squashfs-root/usr/bin/" chdir
  358. 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
  359. # fig now catches a reference in this example, this line fixes the error
  360. now fixpings 0 isoname "abs :" "" "/mnt/mkrefpup/vrefractafs/squashfs-root/usr/share/doc/fig/examples/asciimint.fig"
  361. # now "cd fig ; dpkg-deb -x fig29-31_1.0.deb /mnt/mkrefpup/vrefractafs/squashfs-root" shell # fig is already in refracta rc1 :)
  362. now "echo 'export LANG=en_US.UTF-8' >> /mnt/mkrefpup/vrefractafs/squashfs-root/root/.bashrc" shell
  363. now "echo '#export LANG=en_US.UTF-8' >> /mnt/mkrefpup/vrefractafs/squashfs-root/user/.bashrc" shell
  364. now "/bin/echo -e '#!/bin/bash\nyad --text-info --editable --wrap --fontname=monospace --show-uri --maximized --listen' > /mnt/mkrefpup/vrefractafs/squashfs-root/usr/bin/yadless ; chmod +x /mnt/mkrefpup/vrefractafs/squashfs-root/usr/bin/yadless" shell
  365. now "/bin/echo -e '#!/bin/bash\npython -m SimpleHTTPServer' > /mnt/mkrefpup/vrefractafs/squashfs-root/usr/bin/pserver ; chmod +x /mnt/mkrefpup/vrefractafs/squashfs-root/usr/bin/pserver" shell
  366. function overloadclihelp folder
  367. clihelp
  368. python
  369. clihelp = """#!/usr/bin/env bash
  370. #### license: creative commons cc0 1.0 (public domain)
  371. #### http://creativecommons.org/publicdomain/zero/1.0/
  372. proginf="cli help overloading 0.2"
  373. if [[ "$1" == "" ]]
  374. then echo
  375. function pq()
  376. {
  377. echo -e "$q" | tr '(' '^' | sed "s/\ \@/\x1b\[1\;37m\ \@/g" | sed "s/\@\ /\@\ \x1b\[0\;37m/g" | sed "s/\@\^/\@\x1b\[0\;37m\^/g" | tr '^' '('
  378. }
  379. q=' \x1b[1;33mfig os command line help\x1b[0m ' ; pq
  380. q=' ' ; pq
  381. echo -e " \x1b[1;33mhelp usual \x1b[0m standard bash help command"
  382. echo -e " \x1b[1;33mhelp network \x1b[0m help with network commands"
  383. echo -e " \x1b[1;33mhelp files \x1b[0m help with file commands"
  384. echo -e " \x1b[1;33mhelp config \x1b[0m help with some puppy settings"
  385. echo -e " \x1b[1;33mhelp misc \x1b[0m commands to reboot, stop beeping, etc."
  386. echo -e " \x1b[1;33mhelp coding \x1b[0m quick help for coding"
  387. echo -e " \x1b[1;33mhelp alias \x1b[0m aliases to customize bash"
  388. echo
  389. else
  390. if [[ "$1" == "usual" ]]
  391. then bash -c 'help'
  392. fi
  393. if [[ "$1" == "network" ]]
  394. then echo -e "help with network commands" \\\\n
  395. echo -e \\\\nto connect to available network interfaces: '(use one)'\\\\n
  396. for p in $(ip link | cut -d " " -f 2 | tr -d ':') ;
  397. do if [[ "$p" != "lo" ]] ; then echo dhclient $p ;
  398. fi ; done ;
  399. echo -e \\\\n \\\\nto find available network interfaces: \\\\n \\\\nip link \| 'cut -d " " -f 2 | tr -d' \\':\\' \\\\n
  400. fi
  401. if [[ "$1" == "files" ]]
  402. then echo "help with file commands"
  403. fi
  404. if [[ "$1" == "config" ]]
  405. then echo "help with some puppy settings"
  406. fi
  407. if [[ "$1" == "misc" ]]
  408. then echo "commands to reboot, stop beeping, etc."
  409. fi
  410. if [[ "$1" == "coding" ]]
  411. then echo "quick help for coding"
  412. fi
  413. if [[ "$1" == "alias" ]]
  414. then echo "aliases to customize bash"
  415. fi
  416. fi
  417. """
  418. fig
  419. now folder plus "/usr/local/bin" chdir
  420. now "help" open "w"
  421. now clihelp fprint "help"
  422. now "help" close
  423. now "chmod +x ./help" shell
  424. now folder chdir
  425. q 34 chr
  426. bs 92 chr plus q
  427. q bs
  428. usualhelp "cat root/.bashrc | grep usualhelp | wc -l" arrshell mid 1 1 int
  429. ifequal usualhelp 0
  430. now "echo alias usualhelp=" plus q plus "bash -c 'help'" plus q plus " >> root/.bashrc" shell
  431. now "echo alias help=" plus q plus "/usr/local/bin/help" plus q plus " >> root/.bashrc" shell
  432. fig
  433. fig
  434. now "/mnt/mkrefpup/vrefractafs/squashfs-root" overloadclihelp now
  435. quot 34 chr
  436. ###now "echo #PS1='\[\e]2;\w\a\e[32m\]$USER:\w\\$ \[\e[0m\]'# >> /mnt/mkrefpup/unsq/squashfs-root/root/.bashrc" split now "'" join now quot split now "#" join now "'" shell
  437. now "cp /mnt/mkrefpup/vrefractafs/squashfs-root/usr/share/icewm/taskbar/icewm.orig.xpm /mnt/mkrefpup/vrefractafs/squashfs-root/usr/share/icewm/taskbar/icewm.xpm" shell
  438. now "mkdir -p /mnt/mkrefpup/vrefractafs/squashfs-root/usr/share/icewm/taskbar" shell
  439. now "/mnt/mkrefpup/vrefractafs/squashfs-root/usr/share/icewm.xpm" open "w"
  440. icewmicon
  441. python
  442. icewmicon = """/* XPM */
  443. static char *icewm_xpm[] = {
  444. "48 20 4 1",
  445. " c None",
  446. "1 c #009A00",
  447. "2 c #000000",
  448. "3 c #000000",
  449. " ",
  450. " ",
  451. " 33333 ",
  452. " 311113 ",
  453. " 3111113 ",
  454. " 311111133 ",
  455. " 22222222222222222222222222222223111111113 ",
  456. " 311111111111111111111111111111111111111113 ",
  457. " 311111111111111111111111111111111111111113 ",
  458. " 311111111111111111111111111111111111111113 ",
  459. " 311111111111111111111111111111111111111113 ",
  460. " 311111111111111111111111111111111111111113 ",
  461. " 22222222222222222222222222222222111111113 ",
  462. " 311111113 ",
  463. " 31111133 ",
  464. " 311113 ",
  465. " 33333 ",
  466. " ",
  467. " ",
  468. " "
  469. };
  470. """
  471. fig
  472. now icewmicon fprint "/mnt/mkrefpup/vrefractafs/squashfs-root/usr/share/icewm.xpm"
  473. now "/mnt/mkrefpup/vrefractafs/squashfs-root/usr/share/icewm.xpm" close
  474. now "mkdir -p /mnt/mkrefpup/vrefractafs/squashfs-root/root/.config/pcmanfm/default/" shell
  475. now "mkdir -p /mnt/mkrefpup/vrefractafs/squashfs-root/root/.config/libfm/" shell
  476. ###now "mkdir -p /mnt/mkrefpup/unsq/squashfs-root/root/.config/pcmanfm/default/" shell
  477. ###now "mkdir -p /mnt/mkrefpup/unsq/squashfs-root/root/.config/libfm/" shell
  478. df "/mnt/mkrefpup/vrefractafs/squashfs-root/root/welcome.fig"
  479. now df open "w"
  480. text0 ""
  481. python
  482. text0 = """proginf = "fig os welcome 0.1, oct 2016 mn"
  483. now "" print
  484. ckremote "pgrep sshd | wc -l" arrshell mid 1 1 int
  485. iftrue ckremote
  486. now "" print
  487. now " you have sshd enabled... to prevent remote logins," colortext 12 print "" print
  488. now " it is recommended you turn it off by typing: " prints
  489. now "remote off" colortext 14 print colortext 7 "" print print
  490. `fig
  491. trythatfirst 0
  492. while
  493. qu 0
  494. rc 0
  495. ifequal trythatfirst 1
  496. now " " times 11 prints "you can get help simply by typing: " colortext 7 prints
  497. now "help" colortext 14 print colortext 7 "" print print
  498. trythatfirst 2
  499. else
  500. ifequal trythatfirst 0
  501. trythatfirst 1
  502. `fig
  503. `fig
  504. try
  505. p "type here: " colortext 10 prints colortext 7 "" prints "bash -c 'read -e t ; echo $t'" arrshell mid 1 1
  506. plen p len
  507. iftrue plen
  508. first p asc
  509. else
  510. first 0
  511. `fig
  512. now p ltrim rtrim lcase
  513. ckcmd " " plus now plus " "
  514. ckcmdremote instr ckcmd " remote "
  515. ckcmdoff instr ckcmd " off " times ckcmdremote
  516. iftrue ckcmdoff
  517. rc 1
  518. now " " times 11 prints "service ssh stop" shell "" print
  519. `fig
  520. ifequal now "help"
  521. rc 1
  522. trythatfirst 2 ## disable function that tells you about the help command
  523. now " " times 11 prints "valid commands are:" colortext 3 print "" print
  524. now " " times 11 prints " help" colortext 14 prints ": to get help" colortext 7 print
  525. now " " times 11 prints "remote off" colortext 14 prints ": to turn off remote login" colortext 7 print
  526. now " " times 11 prints " sh" colortext 14 prints ": if you know bash" colortext 7 print
  527. now " " times 11 prints " exit" colortext 14 prints ": (or quit or q) to quit welcome program " colortext 7 print
  528. now "" colortext 7 print
  529. `fig
  530. ifequal now "sh"
  531. rc 1
  532. qu 1
  533. now " " times 11 prints "running bash... welcome program will quit on exit:" colortext 3 print "" print
  534. now "cd /root ; bash --rcfile /root/.bashrc" shell
  535. `fig
  536. ifequal now "exit"
  537. rc 1
  538. qu 1
  539. `fig
  540. ifequal now "quit"
  541. rc 1
  542. qu 1
  543. `fig
  544. ifequal now "q"
  545. rc 1
  546. qu 1
  547. `fig
  548. except
  549. qu 1
  550. resume
  551. iftrue qu
  552. now "" print system
  553. `fig
  554. ifequal rc 0
  555. now " " times 11 prints colortext 3 "unrecognized command (no problem)" prints colortext 7 "" print print
  556. wend
  557. """
  558. fig
  559. now split text0 "`" join now "" swap now text0
  560. now text0 fprint df
  561. now df close
  562. now "fig29.py " plus df plus " 2> /dev/null" shell
  563. now "fig29 " plus df plus " 2> /dev/null" shell
  564. df "/mnt/mkrefpup/vrefractafs/squashfs-root/root/desktops"
  565. now df open "w"
  566. text0 ""
  567. python
  568. text0 = """#!/bin/bash
  569. while [[ 1 ]]
  570. do p=$(pgrep pcmanfm | wc -l)
  571. if [[ "$p" -lt "1" ]]
  572. then export XAUTHORITY=$(find /home | grep "\.Xauthority" | tail -1) pcmanfm
  573. export DISPLAY=:0.0
  574. d=$(pwd)
  575. while [[ 1 ]] ; do sleep .2 ; p=$(pgrep icewm | wc -l) ; if [[ "$p" -gt "1" ]] ; then break ; fi ; done
  576. cd /root
  577. pcmanfm-qt --desktop 2> /dev/null &
  578. cd $d
  579. export XAUTHORITY=
  580. fi
  581. sleep 2
  582. done
  583. """
  584. fig
  585. now text0 fprint df
  586. now df close
  587. now "chmod +x " plus df shell
  588. now "/mnt/mkrefpup/" chdir
  589. df "/mnt/mkrefpup/vrefractafs/squashfs-root/root/welcomes"
  590. now df open "w"
  591. text0 ""
  592. python
  593. text0 = """#!/bin/bash
  594. while [[ 1 ]]
  595. do while [[ 1 ]] ; do sleep .2 ; p=$(pgrep icewm | wc -l) ; if [[ "$p" -gt "1" ]] ; then break ; fi ; done
  596. while [[ 1 ]] ; do sleep .2 ; p=$(pgrep pcmanfm | wc -l) ; if [[ "$p" -gt "0" ]] ; then break ; fi ; done
  597. w=$(pgrep python | wc -l)
  598. if [[ "$w" -lt "1" ]]
  599. then export XAUTHORITY=$(find /home | grep "\.Xauthority" | tail -1) xterm
  600. export DISPLAY=:0.0
  601. sleep 1.75
  602. xterm -fn 10x20 -geometry 800x240 -e bash --rcfile /root/.bashrc -c 'cd /root ; python /root/welcome.fig.py'
  603. export XAUTHORITY=
  604. kill $(pgrep welcomes)
  605. fi
  606. sleep 2
  607. done
  608. """
  609. fig
  610. now text0 fprint df
  611. now df close
  612. now "chmod +x " plus df shell
  613. nl 10 chr
  614. icofx "ownIcon=true" plus nl plus "type=mainmenu"
  615. now fixpings 1 isoname "type=mainmenu" icofx "/mnt/mkrefpup/vrefractafs/squashfs-root/home/anon/.config/lxqt/panel.conf"
  616. now fixpings 1 isoname "position=Bottom" "position=Top" "/mnt/mkrefpup/vrefractafs/squashfs-root/home/anon/.config/lxqt/panel.conf"
  617. df "/mnt/mkrefpup/vrefractafs/squashfs-root/root/.config/pcmanfm/default/pcmanfm.conf"
  618. now df open "w"
  619. text0 ""
  620. python
  621. text0 = """[config]
  622. bm_open_method=0
  623. [volume]
  624. mount_on_startup=0
  625. mount_removable=0
  626. autorun=1
  627. [ui]
  628. always_show_tabs=0
  629. max_tab_chars=32
  630. win_width=640
  631. win_height=480
  632. splitter_pos=150
  633. media_in_new_tab=0
  634. desktop_folder_new_win=0
  635. change_tab_on_drop=1
  636. close_on_unmount=1
  637. focus_previous=0
  638. side_pane_mode=places
  639. view_mode=icon
  640. show_hidden=0
  641. sort=name;ascending;
  642. toolbar=newtab;navigation;home;
  643. show_statusbar=1
  644. pathbar_mode_buttons=0
  645. """
  646. fig
  647. now text0 fprint df
  648. now df close
  649. df "/mnt/mkrefpup/vrefractafs/squashfs-root/root/.config/pcmanfm/default/desktop-items-0.conf"
  650. now df open "w"
  651. text1 ""
  652. python
  653. text1 = """[*]
  654. wallpaper_mode=crop
  655. wallpaper_common=1
  656. wallpaper=/usr/share/backgrounds/default.png
  657. desktop_bg=#000000
  658. desktop_fg=#ffffff
  659. desktop_shadow=#000000
  660. desktop_font=Sans 12
  661. show_wm_menu=1
  662. sort=mtime;ascending;
  663. show_documents=0
  664. show_trash=0
  665. show_mounts=1
  666. """
  667. fig
  668. now text1 fprint df
  669. now df close
  670. df "/mnt/mkrefpup/vrefractafs/squashfs-root/root/.config/libfm/libfm.conf"
  671. now df open "w"
  672. text2 ""
  673. python
  674. text2 = """# Configuration file for the libfm version 1.2.3.
  675. # Autogenerated file, don't edit, your changes will be overwritten.
  676. [config]
  677. single_click=1
  678. use_trash=1
  679. confirm_del=1
  680. confirm_trash=1
  681. advanced_mode=0
  682. si_unit=0
  683. force_startup_notify=1
  684. backup_as_hidden=1
  685. no_usb_trash=1
  686. no_child_non_expandable=0
  687. show_full_names=0
  688. only_user_templates=0
  689. template_run_app=0
  690. template_type_once=0
  691. auto_selection_delay=600
  692. drop_default_action=auto
  693. defer_content_test=0
  694. quick_exec=0
  695. show_internal_volumes=0
  696. terminal=xterm
  697. thumbnail_local=0
  698. thumbnail_max=2048
  699. smart_desktop_autodrop=1
  700. [ui]
  701. big_icon_size=48
  702. small_icon_size=16
  703. pane_icon_size=16
  704. thumbnail_size=128
  705. show_thumbnail=0
  706. shadow_hidden=0
  707. [places]
  708. places_home=1
  709. places_desktop=1
  710. places_root=0
  711. places_computer=1
  712. places_trash=1
  713. places_applications=1
  714. places_network=0
  715. places_unmounted=1
  716. """
  717. fig
  718. now text2 fprint df
  719. now df close
  720. ###df "/mnt/mkrefpup/unsq/squashfs-root/root/.config/libfm/libfm.conf"
  721. #now df open "w"
  722. #now text2 fprint df
  723. #now df close
  724. # fig os is an educational os designed for teaching people about computers.
  725. # editing /etc/hosts is a valuable skill, and knowing it exists is a useful piece of knowledge.
  726. # it is (in this authors opinion) better to edit mkfigos and run it than to download the iso.
  727. # then you can customize mkfigos all you like; for instance, removing the following lines.
  728. # you can also remove them if you install fig os, then edit the /etc/hosts file.
  729. now "echo >> /mnt/mkrefpup/vrefractafs/squashfs-root/etc/hosts" shell
  730. now "echo # a few lines drawn in the sand-- delete any of the following entries you want: >> /mnt/mkrefpup/vrefractafs/squashfs-root/etc/hosts" shell
  731. now "echo 127.0.0.1 icanhazip.com >> /mnt/mkrefpup/vrefractafs/squashfs-root/etc/hosts" shell
  732. now "echo 127.0.0.1 hello.firefox.com >> /mnt/mkrefpup/vrefractafs/squashfs-root/etc/hosts" shell
  733. now "echo 127.0.0.1 input.mozilla.org >> /mnt/mkrefpup/vrefractafs/squashfs-root/etc/hosts" shell
  734. now "echo #127.0.0.1 support.mozilla.org >> /mnt/mkrefpup/vrefractafs/squashfs-root/etc/hosts" shell
  735. now "echo 127.0.0.1 aus5.mozilla.org >> /mnt/mkrefpup/vrefractafs/squashfs-root/etc/hosts" shell
  736. now "echo 127.0.0.1 crash-stats.mozilla.com >> /mnt/mkrefpup/vrefractafs/squashfs-root/etc/hosts" shell
  737. now "echo 127.0.0.1 snippets.cdn.mozilla.net >> /mnt/mkrefpup/vrefractafs/squashfs-root/etc/hosts" shell
  738. now "echo 127.0.0.1 marketplace.firefox.com >> /mnt/mkrefpup/vrefractafs/squashfs-root/etc/hosts" shell
  739. now "echo 127.0.0.1 tiles.services.mozilla.com >> /mnt/mkrefpup/vrefractafs/squashfs-root/etc/hosts" shell
  740. now "echo 127.0.0.1 api.getpocket.com >> /mnt/mkrefpup/vrefractafs/squashfs-root/etc/hosts" shell
  741. now "echo 127.0.0.1 sb-ssl.google.com >> /mnt/mkrefpup/vrefractafs/squashfs-root/etc/hosts" shell
  742. now "echo 127.0.0.1 safebrowsing.google.com >> /mnt/mkrefpup/vrefractafs/squashfs-root/etc/hosts" shell
  743. now "echo 127.0.0.1 shavar.services.mozilla.com >> /mnt/mkrefpup/vrefractafs/squashfs-root/etc/hosts" shell
  744. now "echo 127.0.0.1 en.malware-error.mozilla.com >> /mnt/mkrefpup/vrefractafs/squashfs-root/etc/hosts" shell
  745. now "echo 127.0.0.1 en_us.malware-error.mozilla.com >> /mnt/mkrefpup/vrefractafs/squashfs-root/etc/hosts" shell
  746. now "echo 127.0.0.1 en.phish-error.mozilla.com >> /mnt/mkrefpup/vrefractafs/squashfs-root/etc/hosts" shell
  747. now "echo 127.0.0.1 en_us.phish-error.mozilla.com >> /mnt/mkrefpup/vrefractafs/squashfs-root/etc/hosts" shell
  748. now "echo 127.0.0.1 en.phish-report.mozilla.com >> /mnt/mkrefpup/vrefractafs/squashfs-root/etc/hosts" shell
  749. now "echo 127.0.0.1 en_us.phish-report.mozilla.com >> /mnt/mkrefpup/vrefractafs/squashfs-root/etc/hosts" shell
  750. now "echo 127.0.0.1 self-repair.mozilla.org >> /mnt/mkrefpup/vrefractafs/squashfs-root/etc/hosts" shell
  751. now "echo 127.0.0.1 search.services.mozilla.com >> /mnt/mkrefpup/vrefractafs/squashfs-root/etc/hosts" shell
  752. now "echo 127.0.0.1 location.services.mozilla.com >> /mnt/mkrefpup/vrefractafs/squashfs-root/etc/hosts" shell
  753. now "echo 127.0.0.1 detectportal.firefox.com >> /mnt/mkrefpup/vrefractafs/squashfs-root/etc/hosts" shell
  754. now "echo 127.0.0.1 fhr.cdn.mozilla.net >> /mnt/mkrefpup/vrefractafs/squashfs-root/etc/hosts" shell
  755. now "echo 127.0.0.1 fhr.data.mozilla.com >> /mnt/mkrefpup/vrefractafs/squashfs-root/etc/hosts" shell
  756. now "echo 127.0.0.1 code.cdn.mozilla.net >> /mnt/mkrefpup/vrefractafs/squashfs-root/etc/hosts" shell
  757. now "echo 127.0.0.1 push.services.mozilla.com >> /mnt/mkrefpup/vrefractafs/squashfs-root/etc/hosts" shell
  758. now "echo 127.0.0.1 telemetry-experiment.cdn.mozilla.net >> /mnt/mkrefpup/vrefractafs/squashfs-root/etc/hosts" shell
  759. now "echo 127.0.0.1 blocklist.addons.mozilla.org >> /mnt/mkrefpup/vrefractafs/squashfs-root/etc/hosts" shell
  760. now "echo 127.0.0.1 services.addons.mozilla.org >> /mnt/mkrefpup/vrefractafs/squashfs-root/etc/hosts" shell
  761. now "echo 127.0.0.1 versioncheck-bg.addons.mozilla.org >> /mnt/mkrefpup/vrefractafs/squashfs-root/etc/hosts" shell
  762. now "echo 127.0.0.1 versioncheck.addons.mozilla.org >> /mnt/mkrefpup/vrefractafs/squashfs-root/etc/hosts" shell
  763. now "echo 127.0.0.1 api.accounts.firefox.com >> /mnt/mkrefpup/vrefractafs/squashfs-root/etc/hosts" shell
  764. now "echo 127.0.0.1 accounts.firefox.com >> /mnt/mkrefpup/vrefractafs/squashfs-root/etc/hosts" shell
  765. now "echo 127.0.0.1 oauth.accounts.firefox.com >> /mnt/mkrefpup/vrefractafs/squashfs-root/etc/hosts" shell
  766. now "echo 127.0.0.1 profile.accounts.firefox.com >> /mnt/mkrefpup/vrefractafs/squashfs-root/etc/hosts" shell
  767. now "echo 127.0.0.1 token.services.mozilla.com >> /mnt/mkrefpup/vrefractafs/squashfs-root/etc/hosts" shell
  768. now "echo 127.0.0.1 loop.services.mozilla.com >> /mnt/mkrefpup/vrefractafs/squashfs-root/etc/hosts" shell
  769. now "echo 127.0.0.1 data.mozilla.com >> /mnt/mkrefpup/vrefractafs/squashfs-root/etc/hosts" shell
  770. now "echo 127.0.0.1 setup.services.mozilla.com >> /mnt/mkrefpup/vrefractafs/squashfs-root/etc/hosts" shell
  771. now "echo 127.0.0.1 auth.services.mozilla.com >> /mnt/mkrefpup/vrefractafs/squashfs-root/etc/hosts" shell
  772. now "echo 127.0.0.1 services.mozilla.com >> /mnt/mkrefpup/vrefractafs/squashfs-root/etc/hosts" shell
  773. now "echo 127.0.0.1 activations.cdn.mozilla.net >> /mnt/mkrefpup/vrefractafs/squashfs-root/etc/hosts" shell
  774. now "echo 127.0.0.1 mozsocial.cliqz.com >> /mnt/mkrefpup/vrefractafs/squashfs-root/etc/hosts" shell
  775. now "echo 127.0.0.1 incoming.telemetry.mozilla.org >> /mnt/mkrefpup/vrefractafs/squashfs-root/etc/hosts" shell
  776. now "echo >> /mnt/mkrefpup/vrefractafs/squashfs-root/etc/hosts" shell
  777. #now "/mnt/mkrefpup/unsq/squashfs-root/bin/baseping" open "w"
  778. text "exit 0"
  779. #now text fprint "/mnt/mkrefpup/unsq/squashfs-root/bin/baseping"
  780. #now "/mnt/mkrefpup/unsq/squashfs-root/bin/baseping" close
  781. #now "chmod +x /mnt/mkrefpup/unsq/squashfs-root/bin/baseping" shell
  782. #now "/mnt/mkrefpup/unsq/squashfs-root/bin/baseping6" open "w"
  783. #text "exit 0"
  784. #now text fprint "/mnt/mkrefpup/unsq/squashfs-root/bin/baseping6"
  785. #now "/mnt/mkrefpup/unsq/squashfs-root/bin/baseping6" close
  786. #now "chmod +x /mnt/mkrefpup/unsq/squashfs-root/bin/baseping6" shell
  787. now "mkdir /mnt/mkrefpup/vrefractafs/squashfs-root/etc/rc.d" shell
  788. #now "cp /mnt/mkrefpup/unsq/squashfs-root/etc/rc.d/PUPSTATE /mnt/mkrefpup/vrefractafs/squashfs-root/etc/rc.d/" shell
  789. now "mkdir /mnt/mkrefpup/vrefractafs/squashfs-root/etc/xdg/menus/" shell
  790. now "echo -n >> /mnt/mkrefpup/vrefractafs/squashfs-root/etc/xdg/menus/hierarchy" shell
  791. now "sed -i 's/# FocusRequestFlashTime=0/FocusRequestFlashTime=1/g' /mnt/mkrefpup/vrefractafs/squashfs-root/usr/share/icewm/preferences" shell
  792. now "sed -i 's/# TaskBarAtTop=0/TaskBarAtTop=1/g' /mnt/mkrefpup/vrefractafs/squashfs-root/usr/share/icewm/preferences" shell
  793. now "sed -i 's/# TaskBarShowClock=1/TaskBarShowClock=0/g' /mnt/mkrefpup/vrefractafs/squashfs-root/usr/share/icewm/preferences" shell
  794. now "sed -i 's/# TaskBarShowAPMStatus=0/TaskBarShowAPMStatus=1/g' /mnt/mkrefpup/vrefractafs/squashfs-root/usr/share/icewm/preferences" shell
  795. ifequal 1 0
  796. #now "echo '#!/bin/sh -e' > /mnt/mkrefpup/vrefractafs/squashfs-root/etc/rc.local" shell
  797. now "echo 'chmod +x /etc/menu-methods/icewm-common ; /usr/bin/update-menus --menumethod=/etc/menu-methods/icewm-common' >> /mnt/mkrefpup/vrefractafs/squashfs-root/etc/rc.local" shell
  798. now "echo 'rm /var/lib/dbus/machine-id' >> /mnt/mkrefpup/vrefractafs/squashfs-root/etc/rc.local" shell
  799. now "echo '/root/desktops &' >> /mnt/mkrefpup/vrefractafs/squashfs-root/etc/rc.local" shell
  800. now "echo '/root/welcomes &' >> /mnt/mkrefpup/vrefractafs/squashfs-root/etc/rc.local" shell
  801. ### now "echo 'dpkg -i /var/cache/apt/archives/libglib2.0-0_2.42.1-1+b1_i386.deb' >> /mnt/mkrefpup/vrefractafs/squashfs-root/etc/rc.local" shell
  802. now "echo 'exit 0' >> /mnt/mkrefpup/vrefractafs/squashfs-root/etc/rc.local" shell
  803. fig
  804. #now "mkdir /mnt/mkrefpup/vrefractafs/squashfs-root/home/user/.icewm" shell
  805. #now "echo 'sudo pcmanfm --desktop &' > /mnt/mkrefpup/vrefractafs/squashfs-root/home/user/.icewm/startup" shell
  806. #now fixpings 0 isoname "# invoke global X" "/usr/bin/pcmanfm --desktop & # # invoke global X" "/mnt/mkrefpup/vrefractafs/squashfs-root/home/user/.icewm/startup"
  807. now "mkdir /mnt/mkrefpup/vrefractafs/squashfs-root/Desktop" shell
  808. function ldesk df n cmt ex ico term
  809. now df open "w"
  810. now "[Desktop Entry]" fprint df
  811. # now "Keywords=editor" fprint df
  812. now "Name=" plus n fprint df
  813. now "Comment=" plus cmt fprint df
  814. now "Exec=" plus ex fprint df
  815. now "Icon=" plus ico fprint df
  816. now "Terminal=" plus term fprint df
  817. now "Type=Application" fprint df
  818. now df close
  819. fig
  820. ifequal 1 0
  821. now ldesk "/mnt/mkrefpup/vrefractafs/squashfs-root/Desktop/conn.desktop" "Connect" "network setup" "/usr/bin/wicd-gtk" "/usr/share/pixmaps/connect48.png" "false"
  822. now ldesk "/mnt/mkrefpup/vrefractafs/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"
  823. #now ldesk "/mnt/mkrefpup/vrefractafs/squashfs-root/Desktop/draw.desktop" "Draw" "vector editor" "/usr/local/bin/defaultdraw" "/usr/share/pixmaps/paint48.png" "false"
  824. now ldesk "/mnt/mkrefpup/vrefractafs/squashfs-root/Desktop/help.desktop" "Help" "help files" "/usr/sbin/figoshelp" "/usr/share/pixmaps/help48.png" "false"
  825. #now ldesk "/mnt/mkrefpup/vrefractafs/squashfs-root/Desktop/inst.desktop" "Install" "installer" "/usr/sbin/dotpup" "/usr/share/pixmaps/pet48.png" "false"
  826. now ldesk "/mnt/mkrefpup/vrefractafs/squashfs-root/Desktop/edit.desktop" "Leafpad" "text editor" "/usr/bin/leafpad" "/usr/share/pixmaps/edit48.png" "false"
  827. #now ldesk "/mnt/mkrefpup/vrefractafs/squashfs-root/Desktop/dmnt.desktop" "Mount" "connect drives" "/usr/sbin/pmount" "/usr/share/pixmaps/drive48.png" "false"
  828. #now ldesk "/mnt/mkrefpup/vrefractafs/squashfs-root/Desktop/osmo.desktop" "Plan" "calendar" "/usr/local/bin/defaultcalendar" "/usr/share/pixmaps/date48.png" "false"
  829. #now ldesk "/mnt/mkrefpup/vrefractafs/squashfs-root/Desktop/setp.desktop" "Setup" "setup wizard" "/usr/sbin/wizardwizard" "/usr/share/pixmaps/configuration48.png" "false"
  830. fig
  831. ## copy all files to puppy except ones already there
  832. #cwrfdir "find /mnt/mkrefpup/vrefractafs/squashfs-root/ -type d" arrshell
  833. #cwrf "find /mnt/mkrefpup/vrefractafs/squashfs-root/" arrshell
  834. #cwpp "find /mnt/mkrefpup/unsq/squashfs-root/" arrshell
  835. #cc 0
  836. #q 34 chr
  837. #now "creating extra folders for puppy mode..." print
  838. #forin p cwrfdir
  839. #f split p "/mnt/mkrefpup/vrefractafs/squashfs-root/" join f "/mnt/mkrefpup/unsq/squashfs-root/" #print
  840. #ifequal f ""
  841. #pass
  842. #else
  843. #ckref "mkdir -p " plus q plus f plus q shell
  844. #fig
  845. #next
  846. #now "copy all refracta files to puppy that are not blacklisted..." print
  847. #forin p cwrf
  848. #f split p "/mnt/mkrefpup/vrefractafs/squashfs-root/" join f "" #print
  849. #ckpup "/mnt/mkrefpup/unsq/squashfs-root/" plus f
  850. #blacklist 0
  851. #listitems split "/var/cache/man/ .desktop /aspell/en_GB /aspell/en_CA /sane/ /winff /boot/System.map /usr/lib/i386-linux-gnu/directfb /gbm/ thunar xapian nroff /lib/apt/methods/ /boot/vmlinuz /boot/grub /mlocate/ gnu/libLLVM gnu/4.8/ gnu/4.9/ /boot/initrd /usr/share/doc/gcc samba avahi systemd /usr/share/themes/ /usr/share/fonts/ irefox ozilla gnumeric preadsheet saver /cups syslinux abiword /dri/ dbus python-apt apti gimp xfce /usr/src/ /usr/include /var/lib/dpkg /locale /usr/share/icons/ /usr/share/man/ /usr/share/doc/ /auth /Authen utostart /backends /backgrounds /base /base-passwd /bash /busybox /char/ /chardet /chardet-2.3.0.egg-info /charmaps /charsets /codepage /codepages /console /Console /console-common /console-data /consolefonts /consolekit /ConsoleKit /console-setup /console-setup-linux /consoletrans /dbus/ /.dbus/ /DBus/ /dbus-1/ /dbus-1.0/ /dbus-x11/ /dev/ /gconf/ /.gconf /GConf /gconf2 /gconf2-common /gconf-service /gconf.xml.defaults /gconf.xml.mandatory /gconv /gcr-3 /hal/ /hald/ /imlib2 /immodules /impl /include /include-fixed /init/ /Init/ /init-bottom init.d/ /init-functions.d/ /init-premount/ /initramfs/ /initramfs-tools/ /initrd/ /initrd_strings/ /lightdm/ /lightdm.conf.d/ /lightdm-gtk-greeter/ /lighttpd/ /mime/ /MIME/ /mime-info/ /mime-support/ /mimetypes/ /MIME-types/ /modprobe.d/ /module/ /Module/ /module.d/ /modules/ /modules.d/ /modules-load.d/ /modules-Q16/ ping /rc/ /rc0.d/ /rc1.d/ /rc2.d/ /rc3.d/ /rc4.d/ /rc5/ /rc5.d/ /rc6/ /rc6.d/ /rc_binomial_heap_/ /rcc/ /rc.d/ /rcS.d/ /rcu/ /rd/ /rdc/ /rdf/ /rdma/ /rds/ /re/ /read/ /read-edid/ /sysfs/ /sysinit.target.wants/ /syslinux/ /SYSLINUX/ /syslinux-common/ /syslinux-utils/ /Syslog/ /sysrq/ /system/ /systemd/ /system.d/ /systems/ /system-services/ /system-shutdown/ /system-tools-backends/ /system-tools-backends-2.0/ /SystemV/ /sysv/ /SysV/ /sysvinit/ /sysvinit-core/ /sysvinit-utils/ /sysvipc/ /sysv-rc/ /sysv-rc-conf/ /sz/ /Term/ /termcap-0.0/ /termcap-2.90/ /terminal/ /terminfo/ /test/ /Test/ /testdisk/ /Tester/ /testing/ /tests/ /test-summaries/ /text/ /Text/ /text-base/ /tzdata/ /udev/ /VBox/ /vboxguest/ /vboxguest-5.0.14/ /VBoxGuestAdditions/ /VBoxGuestAdditions-5.0.14/ /vboxsf/ /vboxvideo/ /X11/ /x11-apps/ /x11-common/ /x11perfcomp/ x11 /x11r6/ /x11-session-utils/ /x11-utils/ /x11vnc/ /x11vnc-data/ /x11-xfs-utils/ /x11-xkb-utils/ /x11-xserver-utils/ /xorg/ /xorg.conf.d/ /xorg-docs-core/ /xserver" " "
  852. #forin nos listitems
  853. #cklist instr ckpup nos
  854. #iftrue cklist
  855. # blacklist 1
  856. # fig
  857. #next
  858. #ck instr cwpp ckpup plus blacklist
  859. #iftrue ck
  860. # now f
  861. # else
  862. # addcc cc plus 1 swap addcc cc
  863. # ckref " cp " plus q plus "/mnt/mkrefpup/vrefractafs/squashfs-root/" plus f plus q plus " " plus q plus ckpup plus q print shell
  864. # fig
  865. #next
  866. #cb
  867. #python
  868. # cb="""
  869. #etc/pam.d/common-password
  870. #etc/pam.d/common-passwd
  871. #
  872. #`usr/bin/resize
  873. #"""
  874. # fig
  875. #
  876. #cb ""
  877. #
  878. #lf 10 chr
  879. #q 34 chr
  880. #copybin split cb lf
  881. #forin cb copybin
  882. # f cb ltrim rtrim
  883. # ifequal f ""
  884. # pass
  885. # else
  886. # top f asc
  887. # ifequal top 96
  888. # pass
  889. # else
  890. # now "cp " plus q plus "/mnt/mkrefpup/vrefractafs/squashfs-root/" plus f plus q plus " " plus q plus "/mnt/mkrefpup/unsq/squashfs-root/" plus f #plus q print ###shell
  891. # fig
  892. # fig
  893. # next
  894. # if you have mkfigos in /mnt/mkrefpup it will copy it into figos iso / refracta sfs
  895. now "cp /mnt/mkrefpup/mk" plus isoname split now ".iso" join now "" split now "." join now "" plus ".fig /mnt/mkrefpup/vrefractafs/squashfs-root/usr/share 2> /dev/null" shell
  896. now "cp /mnt/mkrefpup/mk" plus isoname split now ".iso" join now "" split now "." join now "" plus ".fig /mnt/mkrefpup/newiso 2> /dev/null" shell
  897. #now "rm -rf /mnt/mkrefpup/vrefractafs/squashfs-root/etc/systemd/ /mnt/mkrefpup/vrefractafs/squashfs-root/lib/systemd/system/*.service /mnt/mkrefpup/vrefractafs/squashfs-root/etc/os-release /mnt/mkrefpup/vrefractafs/squashfs-root/usr/lib/os-release" shell
  898. ###now "/mnt/mkrefpup/unsq/squashfs-root" chdir
  899. #iftrue fastcomp
  900. # now "mksquashfs . /mnt/mkrefpup/newfs/new.sfs -noappend ; ###cp /mnt/mkrefpup/newfs/new.sfs /mnt/mkrefpup/newiso/puppy_librepup_6.0.2.2.sfs" shell
  901. #else
  902. # now "mksquashfs . /mnt/mkrefpup/newfs/new.sfs -noappend -comp xz -b 512K ; cp /mnt/mkrefpup/newfs/new.sfs /mnt/mkrefpup/newiso/puppy_librepup_6.0.2.2.sfs" shell
  903. # fig
  904. now "echo 'mkdir /mnt/hda1' >> /mnt/mkrefpup/vrefractafs/squashfs-root/etc/rc.local" shell
  905. now "echo 'mkdir /mnt/hda2' >> /mnt/mkrefpup/vrefractafs/squashfs-root/etc/rc.local" shell
  906. now "echo 'mkdir /mnt/hdb1' >> /mnt/mkrefpup/vrefractafs/squashfs-root/etc/rc.local" shell
  907. now "echo 'mkdir /mnt/hdb2' >> /mnt/mkrefpup/vrefractafs/squashfs-root/etc/rc.local" shell
  908. now "echo 'mount -r /dev/sda1 /mnt/hda1' >> /mnt/mkrefpup/vrefractafs/squashfs-root/etc/rc.local" shell
  909. now "echo 'mount -r /dev/sda2 /mnt/hda2' >> /mnt/mkrefpup/vrefractafs/squashfs-root/etc/rc.local" shell
  910. now "echo 'mount -r /dev/sdb1 /mnt/hdb1' >> /mnt/mkrefpup/vrefractafs/squashfs-root/etc/rc.local" shell
  911. now "echo 'mount -r /dev/sdb2 /mnt/hdb2' >> /mnt/mkrefpup/vrefractafs/squashfs-root/etc/rc.local" shell
  912. now "echo 'rm /usr/share/icewm/themes/default/default.png' >> /mnt/mkrefpup/vrefractafs/squashfs-root/root/wminstall" shell
  913. now "echo 'rm /usr/share/icewm/taskbar/*pm' >> /mnt/mkrefpup/vrefractafs/squashfs-root/root/wminstall" shell
  914. now "echo 'cp /usr/share/icewm.xpm /usr/share/icewm/taskbar' >> /mnt/mkrefpup/vrefractafs/squashfs-root/root/wminstall" shell
  915. now "echo 'cp /usr/bin/icewm-session /usr/bin/lxqt-session' >> /mnt/mkrefpup/vrefractafs/squashfs-root/root/wminstall" shell
  916. now "echo 'cp /usr/share/icewm/preferences /usr/share/icewm/pref' >> /mnt/mkrefpup/vrefractafs/squashfs-root/root/wminstall" shell
  917. now "echo 'cp /usr/bin/qter* /usr/bin/xterm' >> /mnt/mkrefpup/vrefractafs/squashfs-root/root/wminstall" shell
  918. now "echo 'echo DesktopBackgroundColor=000000 >> /usr/share/icewm/themes/default/default.theme' >> /mnt/mkrefpup/vrefractafs/squashfs-root/root/wminstall" shell
  919. quot 34 chr
  920. quoted = "echo 'cat /usr/share/icewm/pref | alex23.py --replace " plus quot plus "# TaskBarShowClock=1" plus quot plus " "
  921. quoted2 = quoted plus quot plus "TaskBarShowClock=0" plus quot plus " | alex23.py --replace " plus quot plus "# TaskBarAtTop=0" plus quot plus " "
  922. quoted3 = quoted2 plus quot plus "TaskBarAtTop=1" plus quot plus " | alex23.py --replace " plus quot plus "# TaskBarShowWindowListMenu=1" plus quot
  923. quoted = quoted3 plus " " plus quot plus "TaskBarShowWindowListMenu=0" plus quot plus " > /usr/share/icewm/preferences ; fi' >> /mnt/mkrefpup/vrefractafs/squashfs-root/root/wminstall"
  924. now quoted shell
  925. now "echo '/root/desktops &' >> /mnt/mkrefpup/vrefractafs/squashfs-root/etc/rc.local" shell
  926. now "echo '/root/welcomes &' >> /mnt/mkrefpup/vrefractafs/squashfs-root/etc/rc.local" shell
  927. now "echo 'p=$(cat /mnt/hda1/etc/.figos-local 2> /dev/null) ; if [ " plus quot plus "$p" plus quot plus " -eq " plus quot plus "1" plus quot plus " ] ; then umount /mnt/hda2 /mnt/hdb1 /mnt/hdb2 2> /dev/null ; /mnt/hda1/etc/rc.local ; else umount /mnt/hda1 2> /dev/null ; fi' >> /mnt/mkrefpup/vrefractafs/squashfs-root/etc/rc.local" shell
  928. now "echo 'p=$(cat /mnt/hda2/etc/.figos-local 2> /dev/null) ; if [ " plus quot plus "$p" plus quot plus " -eq " plus quot plus "1" plus quot plus " ] ; then umount /mnt/hdb1 /mnt/hdb2 2> /dev/null ; /mnt/hda2/etc/rc.local ; else umount /mnt/hda2 2> /dev/null ; fi' >> /mnt/mkrefpup/vrefractafs/squashfs-root/etc/rc.local" shell
  929. now "echo 'p=$(cat /mnt/hdb1/etc/.figos-local 2> /dev/null) ; if [ " plus quot plus "$p" plus quot plus " -eq " plus quot plus "1" plus quot plus " ] ; then umount /mnt/hdb2 2> /dev/null ; /mnt/hdb1/etc/rc.local ; else umount /mnt/hdb1 2> /dev/null ; fi' >> /mnt/mkrefpup/vrefractafs/squashfs-root/etc/rc.local" shell
  930. now "echo 'p=$(cat /mnt/hdb2/etc/.figos-local 2> /dev/null) ; if [ " plus quot plus "$p" plus quot plus " -eq " plus quot plus "1" plus quot plus " ] ; then /mnt/hdb2/etc/rc.local ; else umount /mnt/hdb2 2> /dev/null ; fi' >> /mnt/mkrefpup/vrefractafs/squashfs-root/etc/rc.local" shell
  931. now "umount /mnt/mkrefpup/vrefractafs/squashfs-root/ ; echo copying" shell
  932. #now "echo copying ; cp /mnt/mkrefpup/refractafs/squashfs-root/LiveOS/ext3fs.img /mnt/mkrefpup/" shell
  933. #now "mount /mnt/mkrefpup/refractafs/squashfs-root/LiveOS/ext3fs.img /mnt/mkrefpup/vrefractafs/squashfs-root/" shell
  934. now "/mnt/mkrefpup/refractafs/squashfs-root" chdir
  935. #now "umount /mnt/mkrefpup/vrefractafs/squashfs-root/ ; echo copying" shell
  936. #now "cp /mnt/mkrefpup/ext3fs.img /mnt/mkrefpup/refractafs/squashfs-root/LiveOS/" shell
  937. iftrue fastcomp
  938. now "mksquashfs . /mnt/mkrefpup/newiso/LiveOS/squashfs.img -noappend" shell
  939. else
  940. now "mksquashfs . /mnt/mkrefpup/newiso/LiveOS/squashfs.img -noappend -comp xz -b 512K" shell
  941. fig
  942. now "/mnt/mkrefpup/newiso" chdir
  943. now "cp /mnt/mkrefpup/logo.16 boot/isolinux/splash.png" shell
  944. #now "cp /mnt/mkrefpup/refracta/LiveOS/squashfs.img LiveOS" shell
  945. # 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/mkrefpup/" plus isoname plus ".iso /mnt/mkrefpup/newiso/" shell
  946. 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/mkrefpup/figos2.9.iso /mnt/mkrefpup/newiso/" shell
  947. now "isohybrid /mnt/mkrefpup/" plus isoname plus ".iso" shell