free software resistance

 the cost of computing freedom is eternal vigilance

### mkfigos31.fig.py *original date:* oct 2018 *originally posted:* oct 2024 mkfigos31.fig.py: ``` #!/usr/bin/env python2 # encoding: utf-8 # fig translator version: fig 4.6 import sys, os from sys import stdin, stdout from sys import argv as figargv try: from colorama import init init() except: pass # (only) windows users want colorama installed or ansi.sys enabled try: from sys import exit as quit except: pass from random import randint from time import sleep from os import chdir as figoch from os import popen as figpo from os import system as figsh from os import name as figosname figsysteme = 0 figfilehandles = {} figfilecounters = {} from sys import stdout def figlocate(x, l = "ignore", c = "ignore"): import sys if l == "ignore" and c == "ignore": pass # do nothing. want it to return an error? elif l < 1 and c != "ignore": sys.stdout.write("[" + str(c) + "G") # not ansi.sys compatible elif l != "ignore" and c == "ignore": sys.stdout.write("[" + str(l) + ";" + str(1) + "H") else: sys.stdout.write("[" + str(l) + ";" + str(c) + "H") import time def fignonz(p, n=None): if n==None: if p == 0: return 1 else: if p == 0: return n return p def fignot(p): if p: return 0 return -1 figbac = None figprsbac = None sub = None def fignone(p, figbac): if p == None: return figbac return p return -1 def stopgraphics(): global yourscreen global figraphics figraphics = 0 try: pygame.quit() except: pass def figcolortext(x, f): b = 0 if f == None: f = 0 if b == None: b = 0 n = "0" if f > 7: n = "1" f = f - 8 if f == 1: f = 4 ## switch ansi colours for qb colours elif f == 4: f = 1 ## 1 = blue not red, 4 = red not blue, etc. if f == 3: f = 6 elif f == 6: f = 3 if b > 7: b = b - 8 if b == 1: b = 4 elif b == 4: b = 1 if b == 3: b = 6 elif b == 6: b = 3 stdout.write("\x1b[" + n + ";" + str(30+f) + "m") return "\x1b[" + n + ";" + str(30+f) + ";" + str(40+b) + "m" def figcolourtext(x, f): b = 0 if f == None: f = 0 if b == None: b = 0 n = "0" if f > 7: n = "1" f = f - 8 if f == 1: f = 4 ## switch ansi colours for qb colours elif f == 4: f = 1 ## 1 = blue not red, 4 = red not blue, etc. if f == 3: f = 6 elif f == 6: f = 3 if b > 7: b = b - 8 if b == 1: b = 4 elif b == 4: b = 1 if b == 3: b = 6 elif b == 6: b = 3 stdout.write("\x1b[" + n + ";" + str(30+f) + "m") return "\x1b[" + n + ";" + str(30+f) + ";" + str(40+b) + "m" figcgapal = [(0, 0, 0), (0, 0, 170), (0, 170, 0), (0, 170, 170), (170, 0, 0), (170, 0, 170), (170, 85, 0), (170, 170, 170), (85, 85, 85), (85, 85, 255), (85, 255, 85), (85, 255, 255), (255, 85, 85), (255, 85, 255), (255, 255, 85), (255, 255, 255)] def figget(p, s): return s def fighighlight(x, b): f = None if f == None: f = 0 if b == None: b = 0 n = "0" if f > 7: n = "1" f = f - 8 if f == 1: f = 4 ## switch ansi colours for qb colours elif f == 4: f = 1 ## 1 = blue not red, 4 = red not blue, etc. if f == 3: f = 6 elif f == 6: f = 3 if b > 7: b = b - 8 if b == 1: b = 4 elif b == 4: b = 1 if b == 3: b = 6 elif b == 6: b = 3 stdout.write("\x1b[" + n + str(40+b) + "m") return "\x1b[" + n + str(40+b) + "m" def figinstr(x, p, e): try: return p.index(e) + 1 except: return 0 def figchdir(p): try: figoch(p) except: print "no such file or directory: " + str(p) figend(1) def figshell(p): global figsysteme try: figsysteme = figsh(p) except: print "error running shell command: " + chr(34) + str(p) + chr(34) figend(1) def figarrshell(c): global figsysteme try: figsysteme = 0 sh = figpo(c) ps = sh.read().replace(chr(13) + chr(10), chr(10)).replace(chr(13), chr(10)).split(chr(10)) figsysteme = sh.close() except: print "error running arrshell command: " + chr(34) + str(c) + chr(34) figend(1) return ps[:] def figsgn(p): p = float(p) if p > 0: return 1 if p < 0: return -1 return 0 def figstr(p): return str(p) def figprint(p): print p def figchr(p): if type(p) == str: if len(p) > 0: return p[0] return chr(p) def figprints(p): stdout.write(str(p)) sys.stdout.flush() def figleft(p, s): return p[:s] def figmid(p, s, x): arr = 0 if type(p) == list or type(p) == tuple: arr = 1 rt = p[s - 1: x + s - 1] if arr and len(rt) == 1: rt = rt[0] return rt def figright(p, s): return p[-s:] def figrandint(x, s, f): return randint(s, f) def figlcase(p): return p.lower() def figucase(p): return p.upper() def figint(p): return int(p) def figarrset(x, p, s): if type(s) == tuple: if len(s) == 1: fas = s[0] elif type(s) == list: if len(s) == 1: fas = s[0] else: fas = s x[p - 1] = s def figopen(x, s): import fileinput if s.lower() == "w": if (x) not in figfilehandles.keys(): figfilehandles[x] = open(x[:], s.lower()) elif s.lower() == "r": if (x) not in figfilehandles.keys(): figfilehandles[x] = fileinput.input(x[:]) figfilecounters[x] = 0 else: if (x) not in figfilehandles.keys(): figfilehandles[x] = open(x[:], s[:]) def figfprint(x, s): fon = figosname sep = chr(10) if fon == "nt": sep = chr(13) + chr(10) figfilehandles[s].write(str(x) + sep) def figflineinput(x, s): try: p = figfilehandles[s][figfilecounters[s]].replace(chr(13), "").replace(chr(10), "") figfilecounters[s] += 1 except: p = chr(10) return p def figclose(x): if (x) in figfilehandles.keys(): figfilehandles[x].close() del figfilehandles[x] try: del figfilecounters[x] except: pass def figcls(x): if figosname == "nt": cls = figsh("cls") else: stdout.write("") sys.stdout.flush() def figarropen(x, s): x = open(s).read().replace(chr(13) + chr(10), chr(10)).replace(chr(13), chr(10)).split(chr(10)) return x[:] def figarrcurl(x, s): from urllib import urlopen x = str(urlopen(s).read()) x = x.replace(chr(13) + chr(10), chr(10)).replace(chr(13), chr(10)).split(chr(10)) return x[:] def figarrstdin(x): ps = [] for p in stdin: ps += [p[:-1]] return ps[:] def figarrget(x, p, s): if 1: return p[s - 1] def figplus(p, s): if type(p) in (float, int): if type(s) in (float, int): p = p + s else: p = p + s # float(s) if you want it easier if p == float(int(p)): p = int(p) else: if type(p) == str: p = p + s # str(s) if you want it easier if type(p) == list: if type(s) == tuple: p = p + list(s) elif type(s) == list: p = p + s[:] else: p = p + [s] if type(p) == tuple: if type(s) == tuple: p = tuple(list(p) + list(s)) elif type(s) == list: p = tuple(list(p) + s[:]) else: p = tuple(list(p) + [s]) return p def figjoin(p, x, s): t = "" if len(x): t = str(x[0]) for c in range(len(x)): if c > 0: t += str(s) + str(x[c]) return t # s.join(x) def figarr(p): if type(p) in (float, int, str): p = [p] else: p = list(p) return p def figsplit(p, x, s): return x.split(s) def figval(n): n = float(n) if float(int(n)) == float(n): n = int(n) return n def figtimes(p, s): if type(p) in (float, int): p = p * s # float(s) if you want it easier if p == float(int(p)): p = int(p) else: if type(p) == list: p = p[:] * s # figval(s) else: p = p * s # figval(s) if you want it easer return p def figdivby(p, s): p = float(p) / s if p == float(int(p)): p = int(p) return p def figminus(p, s): return p - s def figtopwr(p, s): p = p ** s if p == float(int(p)): p = int(p) return p def figmod(p, s): return p % s def figcos(p): from math import cos p = cos(p) if p == float(int(p)): p = int(p) return p def figsin(p): from math import sin p = sin(p) if p == float(int(p)): p = int(p) return p def figsqr(p): from math import sqrt p = sqrt(p) if p == float(int(p)): p = int(p) return p def figltrim(p): return p.lstrip() def figlineinput(p): return raw_input() def figlen(p): return len(p) def figasc(p): return ord(p[0]) def figatn(p): from math import atan p = atan(p) if p == float(int(p)): p = int(p) return p def fighex(p): return hex(p) def figrtrim(p): return p.rstrip() def figstring(x, p, n): if type(n) == str: return n * p return chr(n) * p def figtimer(p): from time import strftime return int(strftime("%H"))*60*60+int(strftime("%M"))*60+int(strftime("%S")) def figtime(p): from time import strftime return strftime("%H:%M:%S") def figdate(p): from time import strftime return strftime("%m/%d/%Y") def figcommand(p): return figargv[1:] def figtan(p): from math import tan p = tan(p) if p == float(int(p)): p = int(p) return p def figoct(p): return oct(p) def figsleep(p, s): sleep(s) def figarrsort(p): p.sort() def figdisplay(x): global figraphics, figrupd figrupd = 0 if figraphics == 1: pygame.display.update() def figreverse(p): if type(p) == list: p.reverse() return p elif type(p) == str: p = map(str, p) p.reverse() p = "".join(p) return p def figarreverse(p): p.reverse() def figfunction(p, s): return p def figend(x): quit() def figif(p, s): return p def figthen(p, s): return p def figsystem(x): quit() #### http://creativecommons.org/publicdomain/zero/1.0/ figlist = 0 try: figlist = int(type(proginf) == list) except NameError: pass if not figlist: proginf = 0 proginf = "mkfigos 3.0, jul 2018 mn" figprint(proginf) # you want fastcomp to be 0 # (removing the 1 works as well as putting a 0 after.) # set to 1 when trying the script out, will do less compression of sfs figlist = 0 try: figlist = int(type(fastcomp) == list) except NameError: pass if not figlist: fastcomp = 0 fastcomp = 0 # =========================================================== # you will need python 2, and fig 2.x or 4.x to run mkfigos. # you can download fig 4.6 here: # https://notabug.org/figosdev/figos/raw/master/fig46.py # =========================================================== figlist = 0 try: figlist = int(type(isov) == list) except NameError: pass if not figlist: isov = 0 isov = figsplit(isov, proginf, ",") isov = figmid(isov, 1, 1) isov = figsplit(isov, isov, " ") isov = figmid(isov, 2, 1) figlist = 0 try: figlist = int(type(isoname) == list) except NameError: pass if not figlist: isoname = 0 isoname = "figos" isoname = figplus(isoname, isov) def addquoted(mainv, toquote): figlist = 0 try: figlist = int(type(q) == list) except NameError: pass if not figlist: q = 0 q = 34 q = figchr(q) figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = mainv now = figplus(now, " ") now = figplus(now, q) now = figplus(now, toquote) now = figplus(now, q) return now def urf(p): # filename from url # ... return whats to the right of the rightmost "/" (or entire string if "/" not found) figlist = 0 try: figlist = int(type(r) == list) except NameError: pass if not figlist: r = 0 r = p r = figreverse(r) r = figinstr(r, r, "/") r = figminus(r, 1) if r > 0: figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = p now = figright(now, r) return now else: figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = p return now def download(iso): figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = iso figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 figbac = now now = urf(iso) ; now = fignone(now, figbac) ; figlist = 0 try: figlist = int(type(u) == list) except NameError: pass if not figlist: u = 0 figbac = u u = urf(iso) ; u = fignone(u, figbac) ; figlist = 0 try: figlist = int(type(ck) == list) except NameError: pass if not figlist: ck = 0 ck = "ls" figbac = ck ck = addquoted(ck, u) ; ck = fignone(ck, figbac) ; ck = figplus(ck, " | wc -l") ck = figarrshell(ck) ck = figjoin(ck, ck, " ") ck = figint(ck) if ck == 0: figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "wget" figbac = now now = addquoted(now, iso) ; now = fignone(now, figbac) ; figshell(now) figlist = 0 try: figlist = int(type(pwd) == list) except NameError: pass if not figlist: pwd = 0 pwd = "pwd" pwd = figarrshell(pwd) pwd = figjoin(pwd, pwd, "") #refractaurl "https://archive.org/download/Refracta_Linux/refracta8.3_xfce_i386-20170304_2347.iso" figlist = 0 try: figlist = int(type(refractaurl) == list) except NameError: pass if not figlist: refractaurl = 0 refractaurl = "https://archive.org/download/VoidLinux/void-live-i686-20171007-lxqt.iso" figlist = 0 try: figlist = int(type(urfrefractaurl) == list) except NameError: pass if not figlist: urfrefractaurl = 0 figbac = urfrefractaurl urfrefractaurl = urf(refractaurl) ; urfrefractaurl = fignone(urfrefractaurl, figbac) ; figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 figbac = now now = download(refractaurl) ; now = fignone(now, figbac) ; figlist = 0 try: figlist = int(type(fpath) == list) except NameError: pass if not figlist: fpath = 0 fpath = pwd fpath = figplus(fpath, "/") fpath = figplus(fpath, urfrefractaurl) figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "mkdir /mnt/mkrefpup" figshell(now) figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "mkdir /mnt/mkrefpup/newiso" figshell(now) figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "mkdir /mnt/mkrefpup/fs" figshell(now) ###now "mkdir /mnt/mkrefpup/unsq" shell figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "mkdir /mnt/mkrefpup/refracta" figshell(now) figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "mkdir /mnt/mkrefpup/refractafs" figshell(now) figlist = 0 try: figlist = int(type(nowplus) == list) except NameError: pass if not figlist: nowplus = 0 nowplus = "cd /mnt/mkrefpup ; if [ -e logo.16 ] ; then echo ; else wget -O- 'https://notabug.org/figosdev/figos/raw/master/el3ZRly.png' > logo.16 ; " figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = nowplus now = figplus(now, "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") figshell(now) figlist = 0 try: figlist = int(type(q) == list) except NameError: pass if not figlist: q = 0 q = 34 q = figchr(q) figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "mount " now = figplus(now, q) now = figplus(now, pwd) now = figplus(now, "/") now = figplus(now, urfrefractaurl) now = figplus(now, q) now = figplus(now, " /mnt/mkrefpup/refracta -o loop") figshell(now) figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "mkdir /mnt/mkrefpup/newiso/boot" figshell(now) figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "mkdir /mnt/mkrefpup/newiso/boot/isolinux" figshell(now) figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "cp -r /mnt/mkrefpup/refracta/boot/* /mnt/mkrefpup/newiso/boot/" figshell(now) #now "cp /mnt/mkrefpup/refracta/boot/isolinux/* /mnt/mkrefpup/newiso/boot/isolinux" shell #now "rm /mnt/mkrefpup/newiso/puppy_librepup_6.0.2.2.sfs /mnt/mkrefpup/newiso/zdrv_librepup_6.0.2.2.sfs" shell #now "cp /mnt/mkrefpup/refracta/live/vmlinuz /mnt/mkrefpup/newiso" shell # now "cp /mnt/mkrefpup/refracta/live/initrd.img /mnt/mkrefpup/newiso/initrd.gz" shell figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "mkdir /mnt/mkrefpup/newiso/LiveOS" figshell(now) figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "mkdir /mnt/mkrefpup/newiso/boot" figshell(now) figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "mkdir /mnt/mkrefpup/newiso/boot/isolinux" figshell(now) figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "cp /mnt/mkrefpup/refracta/boot/vmlinuz /mnt/mkrefpup/newiso/boot/" figshell(now) figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "cp /mnt/mkrefpup/refracta/boot/initrd /mnt/mkrefpup/newiso/boot/" figshell(now) # now "cp /mnt/mkrefpup/refracta/live/filesystem.squashfs /mnt/mkrefpup/newiso/live" shell def fixpings(force, isoname, fromt, tot, fname): try: figlist = 0 try: figlist = int(type(fc) == list) except NameError: pass if not figlist: fc = 0 fc = figarropen(fc, fname) figlist = 0 try: figlist = int(type(ck) == list) except NameError: pass if not figlist: ck = 0 ck = figjoin(ck, fc, " ") ck = figinstr(ck, ck, "auto-edited by mk") if force: figlist = 0 try: figlist = int(type(ck) == list) except NameError: pass if not figlist: ck = 0 ck = 0 if ck: pass else: figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = fname figopen(now, "w") for t in fc: figlist = 0 try: figlist = int(type(text) == list) except NameError: pass if not figlist: text = 0 text = figsplit(text, t, fromt) text = figjoin(text, text, tot) figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = text figfprint(now, fname) figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = " # auto-edited by mk" now = figplus(now, isoname) figfprint(now, fname) figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = fname figclose(now) figlist = 0 try: figlist = int(type(q) == list) except NameError: pass if not figlist: q = 0 q = 34 q = figchr(q) figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "chmod +x " now = figplus(now, q) now = figplus(now, fname) now = figplus(now, q) figshell(now) except: pass figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 figbac = now now = fixpings(0, isoname, "VSHIFT 2", "VSHIFT 14", "/mnt/mkrefpup/newiso/boot/isolinux/isolinux.cfg") ; now = fignone(now, figbac) ; figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 figbac = now now = fixpings(0, isoname, "Italiano", "it_IT locale", "/mnt/mkrefpup/newiso/boot/isolinux/isolinux.cfg") ; now = fignone(now, figbac) ; figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 figbac = now now = fixpings(1, isoname, "Void Linux", "Fig OS", "/mnt/mkrefpup/newiso/boot/isolinux/isolinux.cfg") ; now = fignone(now, figbac) ; #now "cat /mnt/mkrefpup/iso/isolinux.cfg | head -9 | sed 's/default puppy/default live/g' > /mnt/mkrefpup/newiso/isolinux.cfg" shell #now "cat /mnt/mkrefpup/refracta/isolinux/live.cfg > /mnt/mkrefpup/newiso/isolinux.cfg" shell figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "/mnt/mkrefpup/refractafs" figchdir(now) figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "unsquashfs /mnt/mkrefpup/refracta/LiveOS/squashfs.img" figshell(now) figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "mkdir /mnt/mkrefpup/vrefractafs/" figshell(now) figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "mkdir /mnt/mkrefpup/vrefractafs/squashfs-root/" figshell(now) figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "echo copying #; cp /mnt/mkrefpup/refractafs/squashfs-root/LiveOS/ext3fs.img /mnt/mkrefpup/" figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "mount /mnt/mkrefpup/refractafs/squashfs-root/LiveOS/ext3fs.img /mnt/mkrefpup/vrefractafs/squashfs-root/" figshell(now) figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "rm /mnt/mkrefpup/vrefractafs/squashfs-root/usr/lib/libLLVM-4.0.so" figshell(now) figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "rm /mnt/mkrefpup/vrefractafs/squashfs-root/usr/lib/libLLVM-4.0.1.so" figshell(now) figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "echo '#!/bin/bash' > /mnt/mkrefpup/vrefractafs/squashfs-root/usr/sbin/figoshelp" figshell(now) figlist = 0 try: figlist = int(type(quot) == list) except NameError: pass if not figlist: quot = 0 quot = 34 quot = figchr(quot) figlist = 0 try: figlist = int(type(bs) == list) except NameError: pass if not figlist: bs = 0 bs = 92 bs = figchr(bs) figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "echo 'su $(cat /etc/passwd | grep 1000:1000 | tr : " now = figplus(now, quot) now = figplus(now, bs) now = figplus(now, bs) now = figplus(now, "n") now = figplus(now, quot) now = figplus(now, " | head -1) -c ") now = figplus(now, quot) now = figplus(now, "x-www-browser https://sourceforge.net/u/figosdev/fig/figos/") now = figplus(now, quot) now = figplus(now, "' >> /mnt/mkrefpup/vrefractafs/squashfs-root/usr/sbin/figoshelp") figshell(now) figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "chmod +x /mnt/mkrefpup/vrefractafs/squashfs-root/usr/sbin/figoshelp" figshell(now) figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "mkdir /mnt/mkrefpup/vrefractafs/squashfs-root/usr/share/doc/puppy" figshell(now) figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "rm ../vrefractafs/squashfs-root/usr/share/applications/gimp.desktop" figshell(now) figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "rm -rf ../vrefractafs/squashfs-root/usr/bin/gimp*" figshell(now) figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "rm -rf ../vrefractafs/squashfs-root/etc/gimp" figshell(now) figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "rm -rf ../vrefractafs/squashfs-root/usr/lib/gimp" figshell(now) figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "rm -rf ../vrefractafs/squashfs-root/usr/share/gimp" figshell(now) figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "rm -rf ../vrefractafs/squashfs-root/usr/share/doc/gimp" figshell(now) figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "rm -rf ../vrefractafs/squashfs-root/usr/share/doc/gimp-data" figshell(now) figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "rm -rf ../vrefractafs/squashfs-root/usr/share/doc/libgimp2.0" figshell(now) figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "mkdir /mnt/mkrefpup/vrefractafs/squashfs-root/usr/share/doc/figueira 2> /dev/null" figshell(now) figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "rm /mnt/mkrefpup/vrefractafs/squashfs-root/usr/bin/fig29.py" figshell(now) figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "cp /mnt/mkrefpup/fig46.py /mnt/mkrefpup/vrefractafs/squashfs-root/usr/bin" figshell(now) figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "cp /mnt/mkrefpup/figu29.py /mnt/mkrefpup/vrefractafs/squashfs-root/usr/bin" figshell(now) figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "cp /mnt/mkrefpup/alex23.py /mnt/mkrefpup/vrefractafs/squashfs-root/usr/bin" figshell(now) figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "chmod +x /mnt/mkrefpup/vrefractafs/squashfs-root/usr/bin/fig46.py" figshell(now) figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "chmod +x /mnt/mkrefpup/vrefractafs/squashfs-root/usr/bin/figu29.py" figshell(now) figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "mkdir /mnt/mkrefpup/refractafs/squashfs-root/usr/" figshell(now) figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "mkdir /mnt/mkrefpup/refractafs/squashfs-root/usr/bin" figshell(now) figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "mkdir /mnt/mkrefpup/refractafs/squashfs-root/usr/share" figshell(now) figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "mkdir /mnt/mkrefpup/refractafs/squashfs-root/usr/local" figshell(now) figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "mkdir /mnt/mkrefpup/refractafs/squashfs-root/usr/local/bin" figshell(now) figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "rm /mnt/mkrefpup/vrefractafs/squashfs-root/etc/os-release" figshell(now) figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "rm /mnt/mkrefpup/vrefractafs/squashfs-root/usr/share/lxqt/themes/frost/lxqt*.png" figshell(now) #now "chroot /mnt/mkrefpup/vrefractafs/squashfs-root/" shell figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "echo 'echo >/usr/share/lxqt/graphics/helix.svg' >> /mnt/mkrefpup/vrefractafs/squashfs-root/etc/rc.local" figshell(now) figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "echo '/root/updatefirstrun 2> /dev/null' >> /mnt/mkrefpup/vrefractafs/squashfs-root/etc/rc.local" figshell(now) figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "echo '/root/pythoninstall' >> /mnt/mkrefpup/vrefractafs/squashfs-root/etc/rc.local" figshell(now) figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "echo '/root/wminstall' >> /mnt/mkrefpup/vrefractafs/squashfs-root/etc/rc.local" figshell(now) figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "echo '/root/curlinstall' >> /mnt/mkrefpup/vrefractafs/squashfs-root/etc/rc.local" figshell(now) figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "echo '/root/installother' >> /mnt/mkrefpup/vrefractafs/squashfs-root/etc/rc.local" figshell(now) figlist = 0 try: figlist = int(type(quot) == list) except NameError: pass if not figlist: quot = 0 quot = 34 quot = figchr(quot) figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "/bin/echo -e '#!/bin/bash\np=$(which python 2> /dev/null | wc -l) ; if [[ " now = figplus(now, quot) now = figplus(now, "$p") now = figplus(now, quot) now = figplus(now, " == ") now = figplus(now, quot) now = figplus(now, "0") now = figplus(now, quot) now = figplus(now, " ]] ; 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") figshell(now) figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "/bin/echo -e '#!/bin/bash\np=$(which icewm 2> /dev/null | wc -l) ; if [[ " now = figplus(now, quot) now = figplus(now, "$p") now = figplus(now, quot) now = figplus(now, " == ") now = figplus(now, quot) now = figplus(now, "0") now = figplus(now, quot) now = figplus(now, " ]] ; 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") figshell(now) figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "/bin/echo -e '#!/bin/bash\np=$(which curl 2> /dev/null | wc -l) ; if [[ " now = figplus(now, quot) now = figplus(now, "$p") now = figplus(now, quot) now = figplus(now, " == ") now = figplus(now, quot) now = figplus(now, "0") now = figplus(now, quot) now = figplus(now, " ]] ; 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") figshell(now) figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "/bin/echo -e '#!/bin/bash\np=$(which leafpad 2> /dev/null | wc -l) ; if [[ " now = figplus(now, quot) now = figplus(now, "$p") now = figplus(now, quot) now = figplus(now, " == ") now = figplus(now, quot) now = figplus(now, "0") now = figplus(now, quot) now = figplus(now, " ]] ; then xbps-install --repository /var/cache/xbps -yS leafpad gdmap hsetroot xrandr xset xz mtpaint i3lock hdparm smartmontools xpdf alsa-tools alsa-utils fluxbox ; fi' > /mnt/mkrefpup/vrefractafs/squashfs-root/root/installother ; chmod +x /mnt/mkrefpup/vrefractafs/squashfs-root/root/installother") figshell(now) figlist = 0 try: figlist = int(type(quot) == list) except NameError: pass if not figlist: quot = 0 quot = 34 quot = figchr(quot) figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "echo 'cp /var/cache/?bps/*bps* /mnt/hda1/root/' >> /mnt/mkrefpup/vrefractafs/squashfs-root/root/.bash_history" figshell(now) figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "echo 'smartctl --all /dev/sda | egrep " now = figplus(now, quot) now = figplus(now, "vera|Load|Logge") now = figplus(now, quot) now = figplus(now, "' >> /mnt/mkrefpup/vrefractafs/squashfs-root/root/.bash_history") figshell(now) figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "echo 'xbps-install --repository /var/cache/xbps -yS binutils' >> /mnt/mkrefpup/vrefractafs/squashfs-root/root/.bash_history" figshell(now) figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "echo 'xrandr --output LVDS --off' >> /mnt/mkrefpup/vrefractafs/squashfs-root/root/.bash_history" figshell(now) figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "echo 'gdmap -f /mnt/hda1 &' >> /mnt/mkrefpup/vrefractafs/squashfs-root/root/.bash_history" figshell(now) figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 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" figshell(now) figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "/mnt/mkrefpup/" figchdir(now) def vpaupdate(): figlist = 0 try: figlist = int(type(nl) == list) except NameError: pass if not figlist: nl = 0 nl = 10 nl = figchr(nl) figlist = 0 try: figlist = int(type(nla) == list) except NameError: pass if not figlist: nla = 0 nla = nl nla = figplus(nla, "") figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "loading repos" figprint(now) figlist = 0 try: figlist = int(type(repos) == list) except NameError: pass if not figlist: repos = 0 repos = figarrcurl(repos, "https://repo.voidlinux.eu/current/") repos = figjoin(repos, repos, "") repos = figsplit(repos, repos, "") repos = figjoin(repos, repos, nla) repos = figsplit(repos, repos, ">") repos = figjoin(repos, repos, nl) repos = figsplit(repos, repos, nl) figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "vpa.r" figopen(now, "w") for p in repos: figlist = 0 try: figlist = int(type(grep) == list) except NameError: pass if not figlist: grep = 0 grep = figinstr(grep, p, ".i686.xbps") figlist = 0 try: figlist = int(type(filt) == list) except NameError: pass if not figlist: filt = 0 filt = figinstr(filt, p, "<") if grep: if filt == 0: figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = p figfprint(now, "vpa.r") figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "vpa.r" figclose(now) def vpasearch(repos, p): figlist = 0 try: figlist = int(type(nl) == list) except NameError: pass if not figlist: nl = 0 nl = 10 nl = figchr(nl) figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "searching repos for: " figprints(now) figcolortext(now, 15) figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = p figprints(now) figcolortext(now, 7) now = "" figprint(now) figprint(now) for s in repos: figlist = 0 try: figlist = int(type(grep) == list) except NameError: pass if not figlist: grep = 0 grep = figinstr(grep, s, p) figlist = 0 try: figlist = int(type(filt) == list) except NameError: pass if not figlist: filt = 0 filt = figinstr(filt, s, ".xbps.sig") if grep: if filt == 0: figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = s figprint(now) def vpadownload(repos, p): figlist = 0 try: figlist = int(type(nl) == list) except NameError: pass if not figlist: nl = 0 nl = 10 nl = figchr(nl) figlist = 0 try: figlist = int(type(nlt) == list) except NameError: pass if not figlist: nlt = 0 nlt = 9 nlt = figchr(nlt) nlt = figplus(nlt, nl) nlt = figreverse(nlt) figlist = 0 try: figlist = int(type(tabbed) == list) except NameError: pass if not figlist: tabbed = 0 tabbed = repos tabbed = figjoin(tabbed, tabbed, nlt) tabbed = figsplit(tabbed, tabbed, nl) figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "downloading: " figprints(now) figcolortext(now, 15) figlist = 0 try: figlist = int(type(plen) == list) except NameError: pass if not figlist: plen = 0 plen = p plen = figlen(plen) plen = figminus(plen, 1) figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = p now = figleft(now, plen) figprints(now) figcolortext(now, 7) now = "" figprint(now) figprint(now) for num in "0123456789": figlist = 0 try: figlist = int(type(pnum) == list) except NameError: pass if not figlist: pnum = 0 pnum = p pnum = figplus(pnum, num) for d in tabbed: figlist = 0 try: figlist = int(type(grep) == list) except NameError: pass if not figlist: grep = 0 grep = figinstr(grep, d, pnum) figlist = 0 try: figlist = int(type(filt) == list) except NameError: pass if not figlist: filt = 0 filt = figinstr(filt, d, ".xbps.sig") if grep: if filt == 0: figlist = 0 try: figlist = int(type(tab) == list) except NameError: pass if not figlist: tab = 0 tab = 9 tab = figchr(tab) figlist = 0 try: figlist = int(type(pname) == list) except NameError: pass if not figlist: pname = 0 pname = figsplit(pname, d, tab) pname = figjoin(pname, d, "") pname = figltrim(pname) figlist = 0 try: figlist = int(type(url) == list) except NameError: pass if not figlist: url = 0 url = "https://repo.voidlinux.eu/current/" url = figplus(url, pname) try: figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "downloading: " now = figplus(now, url) now = figplus(now, " ") now = figplus(now, url) now = figplus(now, ".sig") figprint(now) figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "rm " now = figplus(now, pname) now = figplus(now, " ") now = figplus(now, pname) now = figplus(now, ".sig") now = figplus(now, " 2> /dev/null") figshell(now) figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "wget " now = figplus(now, url) figshell(now) figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "wget " now = figplus(now, url) now = figplus(now, ".sig") figshell(now) except: pass def vpa(vpacmd): figlist = 0 try: figlist = int(type(searchfor) == list) except NameError: pass if not figlist: searchfor = 0 searchfor = "" figlist = 0 try: figlist = int(type(downloadname) == list) except NameError: pass if not figlist: downloadname = 0 downloadname = "" while 1: figlist = 0 try: figlist = int(type(findp) == list) except NameError: pass if not figlist: findp = 0 findp = vpacmd findp = figinstr(findp, findp, "search") if findp: try: figlist = 0 try: figlist = int(type(p) == list) except NameError: pass if not figlist: p = 0 p = vpacmd p = figmid(p, findp, 2) p = figarr(p) p = figmid(p, 2, 1) figlist = 0 try: figlist = int(type(plen) == list) except NameError: pass if not figlist: plen = 0 plen = p plen = figlen(plen) if plen == 0: figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = figdivby(now, 0) except: figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "to search, enter part of a package name after the search command: " figprints(now) figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 figcolortext(now, 15) now = "vpa search python" figprints(now) figcolortext(now, 7) now = "" figprint(now) if p: figlist = 0 try: figlist = int(type(searchfor) == list) except NameError: pass if not figlist: searchfor = 0 searchfor = p break figlist = 0 try: figlist = int(type(findp) == list) except NameError: pass if not figlist: findp = 0 findp = vpacmd findp = figinstr(findp, findp, "download") if findp: try: figlist = 0 try: figlist = int(type(p) == list) except NameError: pass if not figlist: p = 0 p = vpacmd p = figmid(p, findp, 2) p = figarr(p) p = figmid(p, 2, 1) figlist = 0 try: figlist = int(type(plen) == list) except NameError: pass if not figlist: plen = 0 plen = p plen = figlen(plen) if plen == 0: figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = figdivby(now, 0) except: figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "to download a package, enter the package name after the search command: " figprints(now) figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 figcolortext(now, 15) now = "vpa download leafpad" figprints(now) figcolortext(now, 7) now = "" figprint(now) if p: figlist = 0 try: figlist = int(type(tab) == list) except NameError: pass if not figlist: tab = 0 tab = 9 tab = figchr(tab) figlist = 0 try: figlist = int(type(downloadname) == list) except NameError: pass if not figlist: downloadname = 0 downloadname = tab downloadname = figplus(downloadname, p) downloadname = figplus(downloadname, "-") break figlist = 0 try: figlist = int(type(upd) == list) except NameError: pass if not figlist: upd = 0 upd = vpacmd upd = figinstr(upd, upd, "update") if upd: figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 figbac = now now = vpaupdate() now = fignone(now, figbac) break break try: figlist = 0 try: figlist = int(type(repos) == list) except NameError: pass if not figlist: repos = 0 repos = figarropen(repos, "vpa.r") except: figlist = 0 try: figlist = int(type(repos) == list) except NameError: pass if not figlist: repos = 0 repos = "" repos = figarr(repos) figlist = 0 try: figlist = int(type(count) == list) except NameError: pass if not figlist: count = 0 count = repos count = figlen(count) count = figdivby(count, 2) count = figint(count) if count > 1: figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = count figprints(now) now = " packages" figprint(now) else: figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "no packages in vpa list; running " figprints(now) figcolortext(now, 15) now = "vpa update" figprints(now) figcolortext(now, 7) now = "" figprint(now) figbac = now now = vpaupdate() now = fignone(now, figbac) if searchfor: figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 figbac = now now = vpasearch(repos, searchfor) ; now = fignone(now, figbac) ; if downloadname: figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 figbac = now now = vpadownload(repos, downloadname) ; now = fignone(now, figbac) ; figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "download gdbm" now = figsplit(now, now, " ") figbac = now now = vpa(now) ; now = fignone(now, figbac) ; figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "download libcrypto43" now = figsplit(now, now, " ") figbac = now now = vpa(now) ; now = fignone(now, figbac) ; figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "download libssl45" now = figsplit(now, now, " ") figbac = now now = vpa(now) ; now = fignone(now, figbac) ; figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "download python" now = figsplit(now, now, " ") figbac = now now = vpa(now) ; now = fignone(now, figbac) ; figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "download wget" now = figsplit(now, now, " ") figbac = now now = vpa(now) ; now = fignone(now, figbac) ; figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "download curl" now = figsplit(now, now, " ") figbac = now now = vpa(now) ; now = fignone(now, figbac) ; figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "download gdk-pixbuf-xlib" now = figsplit(now, now, " ") figbac = now now = vpa(now) ; now = fignone(now, figbac) ; figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "download icewm" now = figsplit(now, now, " ") figbac = now now = vpa(now) ; now = fignone(now, figbac) ; figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "download jansson" now = figsplit(now, now, " ") figbac = now now = vpa(now) ; now = fignone(now, figbac) ; figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "download libcurl" now = figsplit(now, now, " ") figbac = now now = vpa(now) ; now = fignone(now, figbac) ; figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "download nghttp2" now = figsplit(now, now, " ") figbac = now now = vpa(now) ; now = fignone(now, figbac) ; figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "download fribidi" now = figsplit(now, now, " ") figbac = now now = vpa(now) ; now = fignone(now, figbac) ; figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "download libXpm" now = figsplit(now, now, " ") figbac = now now = vpa(now) ; now = fignone(now, figbac) ; figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "download fluxbox" now = figsplit(now, now, " ") figbac = now now = vpa(now) ; now = fignone(now, figbac) ; figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "download alsa-tools" now = figsplit(now, now, " ") figbac = now now = vpa(now) ; now = fignone(now, figbac) ; figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "download alsa-utils" now = figsplit(now, now, " ") figbac = now now = vpa(now) ; now = fignone(now, figbac) ; figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "download binutils" now = figsplit(now, now, " ") figbac = now now = vpa(now) ; now = fignone(now, figbac) ; figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "download fltk" now = figsplit(now, now, " ") figbac = now now = vpa(now) ; now = fignone(now, figbac) ; figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "download gdmap" now = figsplit(now, now, " ") figbac = now now = vpa(now) ; now = fignone(now, figbac) ; figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "download ghostscript" now = figsplit(now, now, " ") figbac = now now = vpa(now) ; now = fignone(now, figbac) ; figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "download gsfonts" now = figsplit(now, now, " ") figbac = now now = vpa(now) ; now = fignone(now, figbac) ; figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "download hdparm" now = figsplit(now, now, " ") figbac = now now = vpa(now) ; now = fignone(now, figbac) ; figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "download hsetroot" now = figsplit(now, now, " ") figbac = now now = vpa(now) ; now = fignone(now, figbac) ; figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "download i3lock" now = figsplit(now, now, " ") figbac = now now = vpa(now) ; now = fignone(now, figbac) ; figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "download leafpad" now = figsplit(now, now, " ") figbac = now now = vpa(now) ; now = fignone(now, figbac) ; figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "download lesstif" now = figsplit(now, now, " ") figbac = now now = vpa(now) ; now = fignone(now, figbac) ; figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "download libXfontcache" now = figsplit(now, now, " ") figbac = now now = vpa(now) ; now = fignone(now, figbac) ; figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "download libXp" now = figsplit(now, now, " ") figbac = now now = vpa(now) ; now = fignone(now, figbac) ; figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "download libXxf86misc" now = figsplit(now, now, " ") figbac = now now = vpa(now) ; now = fignone(now, figbac) ; figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "download libev" now = figsplit(now, now, " ") figbac = now now = vpa(now) ; now = fignone(now, figbac) ; figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "download libglade" now = figsplit(now, now, " ") figbac = now now = vpa(now) ; now = fignone(now, figbac) ; figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "download libgs" now = figsplit(now, now, " ") figbac = now now = vpa(now) ; now = fignone(now, figbac) ; figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "download libijs" now = figsplit(now, now, " ") figbac = now now = vpa(now) ; now = fignone(now, figbac) ; figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "download libjbig2dec" now = figsplit(now, now, " ") figbac = now now = vpa(now) ; now = fignone(now, figbac) ; figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "download liblz4" now = figsplit(now, now, " ") figbac = now now = vpa(now) ; now = fignone(now, figbac) ; figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "download liblzma" now = figsplit(now, now, " ") figbac = now now = vpa(now) ; now = fignone(now, figbac) ; figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "download libopenjpeg" now = figsplit(now, now, " ") figbac = now now = vpa(now) ; now = fignone(now, figbac) ; figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "download libopenjpeg2" now = figsplit(now, now, " ") figbac = now now = vpa(now) ; now = fignone(now, figbac) ; figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "download libpaper" now = figsplit(now, now, " ") figbac = now now = vpa(now) ; now = fignone(now, figbac) ; figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "download lsof" now = figsplit(now, now, " ") figbac = now now = vpa(now) ; now = fignone(now, figbac) ; figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "download mtpaint" now = figsplit(now, now, " ") figbac = now now = vpa(now) ; now = fignone(now, figbac) ; figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "download nano" now = figsplit(now, now, " ") figbac = now now = vpa(now) ; now = fignone(now, figbac) ; figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "download ncdu" now = figsplit(now, now, " ") figbac = now now = vpa(now) ; now = fignone(now, figbac) ; figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "download psutils" now = figsplit(now, now, " ") figbac = now now = vpa(now) ; now = fignone(now, figbac) ; figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "download pygtk" now = figsplit(now, now, " ") figbac = now now = vpa(now) ; now = fignone(now, figbac) ; figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "download python-alsa" now = figsplit(now, now, " ") figbac = now now = vpa(now) ; now = fignone(now, figbac) ; figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "download python-cairo" now = figsplit(now, now, " ") figbac = now now = vpa(now) ; now = fignone(now, figbac) ; figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "download python-gobject2" now = figsplit(now, now, " ") figbac = now now = vpa(now) ; now = fignone(now, figbac) ; figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "download smartmontools" now = figsplit(now, now, " ") figbac = now now = vpa(now) ; now = fignone(now, figbac) ; figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "download squashfs-tools" now = figsplit(now, now, " ") figbac = now now = vpa(now) ; now = fignone(now, figbac) ; figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "download syslinux" now = figsplit(now, now, " ") figbac = now now = vpa(now) ; now = fignone(now, figbac) ; figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "download xmlcatmgr" now = figsplit(now, now, " ") figbac = now now = vpa(now) ; now = fignone(now, figbac) ; figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "download xorriso" now = figsplit(now, now, " ") figbac = now now = vpa(now) ; now = fignone(now, figbac) ; figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "download xpdf" now = figsplit(now, now, " ") figbac = now now = vpa(now) ; now = fignone(now, figbac) ; figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "download xrandr" now = figsplit(now, now, " ") figbac = now now = vpa(now) ; now = fignone(now, figbac) ; figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "download xset" now = figsplit(now, now, " ") figbac = now now = vpa(now) ; now = fignone(now, figbac) ; figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "download xz" now = figsplit(now, now, " ") figbac = now now = vpa(now) ; now = fignone(now, figbac) ; figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "download yad" now = figsplit(now, now, " ") figbac = now now = vpa(now) ; now = fignone(now, figbac) ; figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "wget 'https://repo.voidlinux.eu/current/psutils-p17_4.i686.xbps.sig'" figshell(now) figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "wget 'https://repo.voidlinux.eu/current/psutils-p17_4.i686.xbps'" figshell(now) figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "wget 'https://repo.voidlinux.eu/current/gsfonts-8.11_4.noarch.xbps.sig'" figshell(now) figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "wget 'https://repo.voidlinux.eu/current/gsfonts-8.11_4.noarch.xbps'" figshell(now) figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "/mnt/mkrefpup/" figchdir(now) figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "wget 'http://http.us.debian.org/debian/pool/main/d/dpkg/dpkg_1.19.2_i386.deb'" figshell(now) figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "ar x dpkg_1.19.2_i386.deb" figshell(now) figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "tar -xvf data.tar.xz ./usr/bin/dpkg-deb ; cp ./usr/bin/dpkg-deb /mnt/mkrefpup" figshell(now) figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "cp dpkg-deb /mnt/mkrefpup/vrefractafs/squashfs-root/usr/bin" figshell(now) figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "cp *.xbps *.xbps.sig /mnt/mkrefpup/vrefractafs/squashfs-root/var/cache/xbps" figshell(now) figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "/mnt/mkrefpup/refractafs" figchdir(now) figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "cp /mnt/mkrefpup/figuchsh.odt /mnt/mkrefpup/vrefractafs/squashfs-root/usr/share/doc/figueira" figshell(now) figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "cp /mnt/mkrefpup/figuchsh.pdf /mnt/mkrefpup/vrefractafs/squashfs-root/usr/share/doc/figueira" figshell(now) figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "ln -s /root/.bash_history /mnt/mkrefpup/vrefractafs/squashfs-root/.bash_history" figshell(now) figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = pwd figchdir(now) figlist = 0 try: figlist = int(type(insticewm) == list) except NameError: pass if not figlist: insticewm = 0 insticewm = "ls /mnt/mkrefpup/vrefractafs/squashfs-root/usr/bin/icewm | wc -l 2> /dev/null" insticewm = figarrshell(insticewm) insticewm = figmid(insticewm, 1, 1) insticewm = figint(insticewm) if insticewm == 0: figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "mkdir -p /mnt/mkrefpup/vrefractafs/squashfs-root/usr/share/pixmaps" figshell(now) figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 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" figshell(now) figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 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" figshell(now) figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 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" figshell(now) figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 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" figshell(now) figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "wget https://notabug.org/figosdev/figos/raw/master/arrlen.fig" figshell(now) figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "wget https://notabug.org/figosdev/figos/raw/master/arrname.fig" figshell(now) figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "wget https://notabug.org/figosdev/figos/raw/master/dircmp.fig" figshell(now) figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "wget http://http.us.debian.org/debian/pool/main/h/hashdeep/hashdeep_4.4-4_i386.deb" figshell(now) figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "wget http://http.us.debian.org/debian/pool/main/h/hashdeep/md5deep_4.4-4_all.deb" figshell(now) figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "/mnt/mkrefpup/refractafs" figchdir(now) figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "rm /mnt/mkrefpup/vrefractafs/squashfs-root/usr/share/icewm/themes/default/default.png" figshell(now) figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "cp arrlen.fig arrname.fig dircmp.fig /mnt/mkrefpup/vrefractafs/squashfs-root/usr/bin" figshell(now) figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "mkdir -p /mnt/mkrefpup/vrefractafs/squashfs-root/var/cache/apt/archives" figshell(now) #now "cp libglib2.0-0_2.42.1-1+b1_i386.deb /mnt/mkrefpup/vrefractafs/squashfs-root/var/cache/apt/archives" shell #now "dpkg-deb -x iceweasel_45.4.0esr-1~deb8u2_all.deb /mnt/mkrefpup/vrefractafs/squashfs-root" shell #now "dpkg-deb -x firefox-esr_45.4.0esr-1~deb8u2_i386.deb /mnt/mkrefpup/vrefractafs/squashfs-root" shell #now "dpkg-deb -x libssl1.0.0_1.0.1t-1+deb8u5_i386.deb /mnt/mkrefpup/vrefractafs/squashfs-root" shell #now "rm -rf /mnt/mkrefpup/vrefractafs/squashfs-root/etc/systemd" shell #now "rm -rf /mnt/mkrefpup/vrefractafs/squashfs-root/var/lib/systemd" shell #now "rm /mnt/mkrefpup/vrefractafs/squashfs-root/usr/bin/dbus-daemon" shell #now "rm /mnt/mkrefpup/vrefractafs/squashfs-root/usr/bin/dbus-launch" shell # (udisks) # now "rm /mnt/mkrefpup/vrefractafs/squashfs-root/etc/avahi/services/*.service" shell figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "nrm /mnt/mkrefpup/refractafs/squashfs-root/etc/systemd/system/bluetooth.target.wants/*.service" figshell(now) figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "nrm /mnt/mkrefpup/refractafs/squashfs-root/etc/systemd/system/sysinit.target.wants/*.service" figshell(now) figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "nrm /mnt/mkrefpup/refractafs/squashfs-root/lib/systemd/system/halt.target.wants/*.service" figshell(now) figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "nrm /mnt/mkrefpup/refractafs/squashfs-root/lib/systemd/system/poweroff.target.wants/*.service" figshell(now) figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "nrm /mnt/mkrefpup/refractafs/squashfs-root/lib/systemd/system/reboot.target.wants/*.service" figshell(now) figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "nrm /mnt/mkrefpup/refractafs/squashfs-root/lib/systemd/system/shutdown.target.wants/*.service" figshell(now) figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "nrm /mnt/mkrefpup/refractafs/squashfs-root/usr/share/man/man8/*.service" figshell(now) figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "nrm /mnt/mkrefpup/refractafs/squashfs-root/var/lib/systemd/deb-systemd-helper-enabled/bluetooth.target.wants/*.service" figshell(now) figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "nrm /mnt/mkrefpup/refractafs/squashfs-root/var/lib/systemd/deb-systemd-helper-enabled/sysinit.target.wants/*.service" figshell(now) figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "nrm /mnt/mkrefpup/refractafs/squashfs-root/etc/systemd/system/local-fs.target.wants/*.service" figshell(now) figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "nrm /mnt/mkrefpup/refractafs/squashfs-root/var/lib/systemd/deb-systemd-helper-enabled/local-fs.target.wants/*.service" figshell(now) figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "nrm /mnt/mkrefpup/refractafs/squashfs-root/lib/systemd/system/basic.target.wants/*.service" figshell(now) figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "nrm /mnt/mkrefpup/refractafs/squashfs-root/lib/systemd/system/sysinit.target.wants/*.service" figshell(now) figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "nrm /mnt/mkrefpup/refractafs/squashfs-root/etc/systemd/system/*.service" figshell(now) figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "nrm /mnt/mkrefpup/refractafs/squashfs-root/etc/systemd/system/multi-user.target.wants/*.service" figshell(now) figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "nrm /mnt/mkrefpup/refractafs/squashfs-root/var/lib/systemd/deb-systemd-helper-enabled/multi-user.target.wants/*.service" figshell(now) figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "nrm /mnt/mkrefpup/refractafs/squashfs-root/usr/share/dbus-1/services/*.service*" figshell(now) figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "nrm /mnt/mkrefpup/refractafs/squashfs-root/var/lib/systemd/deb-systemd-helper-enabled/*.service*" figshell(now) figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "nrm /mnt/mkrefpup/refractafs/squashfs-root/usr/share/dbus-1/system-services/*.service*" figshell(now) figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "nrm /mnt/mkrefpup/refractafs/squashfs-root/lib/systemd/system/*.service*" figshell(now) figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "nrm /mnt/mkrefpup/refractafs/squashfs-root/root/deb/lib/systemd/system/*.service*" figshell(now) # keep /lib/systemd/system/udisks.service #now "rm -rf /mnt/mkrefpup/refractafs/squashfs-root/lib/systemd/system/[abcdefghijklmnopqrstvwxyz]*" shell #now "rm /mnt/mkrefpup/refractafs/squashfs-root/etc/alternatives/x-session-manager" shell #now "ln -s /usr/bin/icewm-session /mnt/mkrefpup/vrefractafs/squashfs-root/etc/alternatives/x-session-manager" shell #now "rm /mnt/mkrefpup/vrefractafs/squashfs-root/etc/alternatives/x-window-manager" shell #now "ln -s /usr/bin/icewm /mnt/mkrefpup/vrefractafs/squashfs-root/etc/alternatives/x-window-manager" shell #now fixpings 0 isoname "/usr/bin/startxfce4" "/usr/bin/icewm-session" "/mnt/mkrefpup/vrefractafs/squashfs-root/etc/lxdm/lxdm.conf" #now fixpings 0 isoname "__Default__" "IceWM" "/mnt/mkrefpup/vrefractafs/squashfs-root/var/lib/lxdm/lxdm.conf" ###now "cp /mnt/mkrefpup/unsq/squashfs-root/usr/local/PupClockset/icons/blank1.png /mnt/mkrefpup/vrefractafs/squashfs-root/usr/share/backgrounds/default.png" shell #now "ln -s /root/.config /mnt/mkrefpup/vrefractafs/squashfs-root/.config" shell # puppy to refracta #now "cat /mnt/mkrefpup/unsq/squashfs-root/usr/share/backgrounds/default.png > /mnt/mkrefpup/vrefractafs/squashfs-root/usr/share/backgrounds/xfce" shell #now "mkdir /mnt/mkrefpup/vrefractafs/squashfs-root/usr/local/apps" shell #now "cp -r /mnt/mkrefpup/unsq/squashfs-root/usr/local/apps/ROX-Filer /mnt/mkrefpup/vrefractafs/squashfs-root/usr/local/apps" shell #now "cp /mnt/mkrefpup/unsq/squashfs-root/usr/local/bin/rox /mnt/mkrefpup/vrefractafs/squashfs-root/usr/local/apps" shell #now "mkdir /mnt/mkrefpup/vrefractafs/squashfs-root/usr/local/lib" shell figlist = 0 try: figlist = int(type(q) == list) except NameError: pass if not figlist: q = 0 q = 34 q = figchr(q) #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 #now "sed -i 's/xterm/xterm -fn 10x20/g' /mnt/mkrefpup/vrefractafs/squashfs-root/usr/share/icewm/keys" shell #now "sed -i 's/^PermitRootLogin without-password/PermitRootLogin no/g' /mnt/mkrefpup/vrefractafs/squashfs-root/etc/ssh/sshd_config" shell figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 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" figshell(now) figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 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 " figshell(now) figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "cd /mnt/mkrefpup/vrefractafs/squashfs-root/usr/share/locale/ ; rm -rf dv dz el en@boldquot " figshell(now) figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 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" figshell(now) figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 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" figshell(now) figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 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 " figshell(now) figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 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 " figshell(now) figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 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" figshell(now) figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 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" figshell(now) figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 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 " figshell(now) figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 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" figshell(now) figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "cd /mnt/mkrefpup/vrefractafs/squashfs-root/usr/share/icons/ ; rm -rf mate" figshell(now) figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "cd /mnt/mkrefpup/vrefractafs/squashfs-root/usr/share/icons/ ; rm -rf Adwaita" figshell(now) figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "cd /mnt/mkrefpup/vrefractafs/squashfs-root/usr/share/icons/ ; rm -rf breeze*" figshell(now) figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "/mnt/mkrefpup/vrefractafs/squashfs-root/usr/bin/" figchdir(now) figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 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" figshell(now) figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "cd fig ; dpkg-deb -x fig29-31_1.0.deb /mnt/mkrefpup/vrefractafs/squashfs-root" figshell(now) # fig now catches a reference in this example, this line fixes the error figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 figbac = now now = fixpings(0, isoname, "abs :", "", "/mnt/mkrefpup/vrefractafs/squashfs-root/usr/share/doc/fig/examples/asciimint.fig") ; now = fignone(now, figbac) ; figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "echo 'export LANG=en_US.UTF-8' >> /mnt/mkrefpup/vrefractafs/squashfs-root/root/.bashrc" figshell(now) figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "echo '#export LANG=en_US.UTF-8' >> /mnt/mkrefpup/vrefractafs/squashfs-root/user/.bashrc" figshell(now) figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 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" figshell(now) figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 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" figshell(now) def overloadclihelp(folder): figlist = 0 try: figlist = int(type(clihelp) == list) except NameError: pass if not figlist: clihelp = 0 clihelp = """#!/usr/bin/env bash #### license: creative commons cc0 1.0 (public domain) #### http://creativecommons.org/publicdomain/zero/1.0/ proginf="cli help overloading 0.2" if [[ "$1" == "" ]] then echo function pq() { echo -e "$q" | tr '(' '^' | sed "s/\ \@/\x1b\[1\;37m\ \@/g" | sed "s/\@\ /\@\ \x1b\[0\;37m/g" | sed "s/\@\^/\@\x1b\[0\;37m\^/g" | tr '^' '(' } q=' \x1b[1;33mfig os command line help\x1b[0m ' ; pq q=' ' ; pq echo -e " \x1b[1;33mhelp usual \x1b[0m standard bash help command" echo -e " \x1b[1;33mhelp network \x1b[0m help with network commands" echo -e " \x1b[1;33mhelp files \x1b[0m help with file commands" echo -e " \x1b[1;33mhelp config \x1b[0m help with some puppy settings" echo -e " \x1b[1;33mhelp misc \x1b[0m commands to reboot, stop beeping, etc." echo -e " \x1b[1;33mhelp coding \x1b[0m quick help for coding" echo -e " \x1b[1;33mhelp alias \x1b[0m aliases to customize bash" echo else if [[ "$1" == "usual" ]] then bash -c 'help' fi if [[ "$1" == "network" ]] then echo -e "help with network commands" \\\\n echo -e \\\\nto connect to available network interfaces: '(use one)'\\\\n for p in $(ip link | cut -d " " -f 2 | tr -d ':') ; do if [[ "$p" != "lo" ]] ; then echo dhclient $p ; fi ; done ; echo -e \\\\n \\\\nto find available network interfaces: \\\\n \\\\nip link \| 'cut -d " " -f 2 | tr -d' \\':\\' \\\\n fi if [[ "$1" == "files" ]] then echo "help with file commands" fi if [[ "$1" == "config" ]] then echo "help with some puppy settings" fi if [[ "$1" == "misc" ]] then echo "commands to reboot, stop beeping, etc." fi if [[ "$1" == "coding" ]] then echo "quick help for coding" fi if [[ "$1" == "alias" ]] then echo "aliases to customize bash" fi fi """ figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = folder now = figplus(now, "/usr/local/bin") figchdir(now) figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "help" figopen(now, "w") figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = clihelp figfprint(now, "help") figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "help" figclose(now) figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "chmod +x ./help" figshell(now) figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = folder figchdir(now) figlist = 0 try: figlist = int(type(q) == list) except NameError: pass if not figlist: q = 0 q = 34 q = figchr(q) figlist = 0 try: figlist = int(type(bs) == list) except NameError: pass if not figlist: bs = 0 bs = 92 bs = figchr(bs) bs = figplus(bs, q) figlist = 0 try: figlist = int(type(q) == list) except NameError: pass if not figlist: q = 0 q = bs figlist = 0 try: figlist = int(type(usualhelp) == list) except NameError: pass if not figlist: usualhelp = 0 usualhelp = "cat root/.bashrc | grep usualhelp | wc -l" usualhelp = figarrshell(usualhelp) usualhelp = figmid(usualhelp, 1, 1) usualhelp = figint(usualhelp) if usualhelp == 0: figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "echo alias usualhelp=" now = figplus(now, q) now = figplus(now, "bash -c 'help'") now = figplus(now, q) now = figplus(now, " >> root/.bashrc") figshell(now) figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "echo alias help=" now = figplus(now, q) now = figplus(now, "/usr/local/bin/help") now = figplus(now, q) now = figplus(now, " >> root/.bashrc") figshell(now) figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "/mnt/mkrefpup/vrefractafs/squashfs-root" figbac = now now = overloadclihelp(now) ; now = fignone(now, figbac) ; figlist = 0 try: figlist = int(type(quot) == list) except NameError: pass if not figlist: quot = 0 quot = 34 quot = figchr(quot) ###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 figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 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" figshell(now) figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "mkdir -p /mnt/mkrefpup/vrefractafs/squashfs-root/usr/share/icewm/taskbar" figshell(now) figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "/mnt/mkrefpup/vrefractafs/squashfs-root/usr/share/icewm.xpm" figopen(now, "w") figlist = 0 try: figlist = int(type(icewmicon) == list) except NameError: pass if not figlist: icewmicon = 0 icewmicon = """/* XPM */ static char *icewm_xpm[] = { "48 20 4 1", " c None", "1 c #009A00", "2 c #000000", "3 c #000000", " ", " ", " 33333 ", " 311113 ", " 3111113 ", " 311111133 ", " 22222222222222222222222222222223111111113 ", " 311111111111111111111111111111111111111113 ", " 311111111111111111111111111111111111111113 ", " 311111111111111111111111111111111111111113 ", " 311111111111111111111111111111111111111113 ", " 311111111111111111111111111111111111111113 ", " 22222222222222222222222222222222111111113 ", " 311111113 ", " 31111133 ", " 311113 ", " 33333 ", " ", " ", " " }; """ figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = icewmicon figfprint(now, "/mnt/mkrefpup/vrefractafs/squashfs-root/usr/share/icewm.xpm") figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "/mnt/mkrefpup/vrefractafs/squashfs-root/usr/share/icewm.xpm" figclose(now) figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "mkdir -p /mnt/mkrefpup/vrefractafs/squashfs-root/root/.config/pcmanfm/default/" figshell(now) figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "mkdir -p /mnt/mkrefpup/vrefractafs/squashfs-root/root/.config/libfm/" figshell(now) ###now "mkdir -p /mnt/mkrefpup/unsq/squashfs-root/root/.config/pcmanfm/default/" shell ###now "mkdir -p /mnt/mkrefpup/unsq/squashfs-root/root/.config/libfm/" shell figlist = 0 try: figlist = int(type(df) == list) except NameError: pass if not figlist: df = 0 df = "/mnt/mkrefpup/vrefractafs/squashfs-root/root/welcome.fig" figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = df figopen(now, "w") figlist = 0 try: figlist = int(type(text0) == list) except NameError: pass if not figlist: text0 = 0 text0 = "" text0 = """proginf = "fig os welcome 0.1, oct 2016 mn" now "" print ckremote "pgrep sshd | wc -l" arrshell mid 1 1 int iftrue ckremote now "" print now " you have sshd enabled... to prevent remote logins," colortext 12 print "" print now " it is recommended you turn it off by typing: " prints now "remote off" colortext 14 print colortext 7 "" print print `fig trythatfirst 0 while qu 0 rc 0 ifequal trythatfirst 1 now " " times 11 prints "you can get help simply by typing: " colortext 7 prints now "help" colortext 14 print colortext 7 "" print print trythatfirst 2 else ifequal trythatfirst 0 trythatfirst 1 `fig `fig try p "type here: " colortext 10 prints colortext 7 "" prints "bash -c 'read -e t ; echo $t'" arrshell mid 1 1 plen p len iftrue plen first p asc else first 0 `fig now p ltrim rtrim lcase ckcmd " " plus now plus " " ckcmdremote instr ckcmd " remote " ckcmdoff instr ckcmd " off " times ckcmdremote iftrue ckcmdoff rc 1 now " " times 11 prints "service ssh stop" shell "" print `fig ifequal now "help" rc 1 trythatfirst 2 ## disable function that tells you about the help command now " " times 11 prints "valid commands are:" colortext 3 print "" print now " " times 11 prints " help" colortext 14 prints ": to get help" colortext 7 print now " " times 11 prints "remote off" colortext 14 prints ": to turn off remote login" colortext 7 print now " " times 11 prints " sh" colortext 14 prints ": if you know bash" colortext 7 print now " " times 11 prints " exit" colortext 14 prints ": (or quit or q) to quit welcome program " colortext 7 print now "" colortext 7 print `fig ifequal now "sh" rc 1 qu 1 now " " times 11 prints "running bash... welcome program will quit on exit:" colortext 3 print "" print now "cd /root ; bash --rcfile /root/.bashrc" shell `fig ifequal now "exit" rc 1 qu 1 `fig ifequal now "quit" rc 1 qu 1 `fig ifequal now "q" rc 1 qu 1 `fig except qu 1 resume iftrue qu now "" print system `fig ifequal rc 0 now " " times 11 prints colortext 3 "unrecognized command (no problem)" prints colortext 7 "" print print wend """ figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = figsplit(now, text0, "`") now = figjoin(now, now, "") now, text0 = text0, now ; figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = text0 figfprint(now, df) figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = df figclose(now) figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "fig29.py " now = figplus(now, df) now = figplus(now, " 2> /dev/null") figshell(now) figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "fig29 " now = figplus(now, df) now = figplus(now, " 2> /dev/null") figshell(now) figlist = 0 try: figlist = int(type(df) == list) except NameError: pass if not figlist: df = 0 df = "/mnt/mkrefpup/vrefractafs/squashfs-root/root/desktops" figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = df figopen(now, "w") figlist = 0 try: figlist = int(type(text0) == list) except NameError: pass if not figlist: text0 = 0 text0 = "" text0 = """#!/bin/bash while [[ 1 ]] do p=$(pgrep pcmanfm | wc -l) if [[ "$p" -lt "1" ]] then export XAUTHORITY=$(find /home | grep "\.Xauthority" | tail -1) pcmanfm export DISPLAY=:0.0 d=$(pwd) while [[ 1 ]] ; do sleep .2 ; p=$(pgrep icewm | wc -l) ; if [[ "$p" -gt "1" ]] ; then break ; fi ; done cd /root pcmanfm-qt --desktop 2> /dev/null & cd $d export XAUTHORITY= fi sleep 2 done """ figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = text0 figfprint(now, df) figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = df figclose(now) figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "chmod +x " now = figplus(now, df) figshell(now) figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "/mnt/mkrefpup/" figchdir(now) figlist = 0 try: figlist = int(type(df) == list) except NameError: pass if not figlist: df = 0 df = "/mnt/mkrefpup/vrefractafs/squashfs-root/root/welcomes" figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = df figopen(now, "w") figlist = 0 try: figlist = int(type(text0) == list) except NameError: pass if not figlist: text0 = 0 text0 = "" text0 = """#!/bin/bash while [[ 1 ]] do while [[ 1 ]] ; do sleep .2 ; p=$(pgrep icewm | wc -l) ; if [[ "$p" -gt "1" ]] ; then break ; fi ; done while [[ 1 ]] ; do sleep .2 ; p=$(pgrep pcmanfm | wc -l) ; if [[ "$p" -gt "0" ]] ; then break ; fi ; done w=$(pgrep python | wc -l) if [[ "$w" -lt "1" ]] then export XAUTHORITY=$(find /home | grep "\.Xauthority" | tail -1) xterm export DISPLAY=:0.0 sleep 1.75 xterm -fn 10x20 -geometry 800x240 -e bash --rcfile /root/.bashrc -c 'cd /root ; python /root/welcome.fig.py' export XAUTHORITY= kill $(pgrep welcomes) fi sleep 2 done """ figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = text0 figfprint(now, df) figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = df figclose(now) figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "chmod +x " now = figplus(now, df) figshell(now) figlist = 0 try: figlist = int(type(nl) == list) except NameError: pass if not figlist: nl = 0 nl = 10 nl = figchr(nl) figlist = 0 try: figlist = int(type(icofx) == list) except NameError: pass if not figlist: icofx = 0 icofx = "ownIcon=true" icofx = figplus(icofx, nl) icofx = figplus(icofx, "type=mainmenu") figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 figbac = now now = fixpings(1, isoname, "type=mainmenu", icofx, "/mnt/mkrefpup/vrefractafs/squashfs-root/home/anon/.config/lxqt/panel.conf") ; now = fignone(now, figbac) ; figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 figbac = now now = fixpings(1, isoname, "position=Bottom", "position=Top", "/mnt/mkrefpup/vrefractafs/squashfs-root/home/anon/.config/lxqt/panel.conf") ; now = fignone(now, figbac) ; figlist = 0 try: figlist = int(type(df) == list) except NameError: pass if not figlist: df = 0 df = "/mnt/mkrefpup/vrefractafs/squashfs-root/root/.config/pcmanfm/default/pcmanfm.conf" figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = df figopen(now, "w") figlist = 0 try: figlist = int(type(text0) == list) except NameError: pass if not figlist: text0 = 0 text0 = "" text0 = """[config] bm_open_method=0 [volume] mount_on_startup=0 mount_removable=0 autorun=1 [ui] always_show_tabs=0 max_tab_chars=32 win_width=640 win_height=480 splitter_pos=150 media_in_new_tab=0 desktop_folder_new_win=0 change_tab_on_drop=1 close_on_unmount=1 focus_previous=0 side_pane_mode=places view_mode=icon show_hidden=0 sort=name;ascending; toolbar=newtab;navigation;home; show_statusbar=1 pathbar_mode_buttons=0 """ figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = text0 figfprint(now, df) figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = df figclose(now) figlist = 0 try: figlist = int(type(df) == list) except NameError: pass if not figlist: df = 0 df = "/mnt/mkrefpup/vrefractafs/squashfs-root/root/.config/pcmanfm/default/desktop-items-0.conf" figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = df figopen(now, "w") figlist = 0 try: figlist = int(type(text1) == list) except NameError: pass if not figlist: text1 = 0 text1 = "" text1 = """[*] wallpaper_mode=crop wallpaper_common=1 wallpaper=/usr/share/backgrounds/default.png desktop_bg=#000000 desktop_fg=#ffffff desktop_shadow=#000000 desktop_font=Sans 12 show_wm_menu=1 sort=mtime;ascending; show_documents=0 show_trash=0 show_mounts=1 """ figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = text1 figfprint(now, df) figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = df figclose(now) figlist = 0 try: figlist = int(type(df) == list) except NameError: pass if not figlist: df = 0 df = "/mnt/mkrefpup/vrefractafs/squashfs-root/root/.config/libfm/libfm.conf" figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = df figopen(now, "w") figlist = 0 try: figlist = int(type(text2) == list) except NameError: pass if not figlist: text2 = 0 text2 = "" text2 = """# Configuration file for the libfm version 1.2.3. # Autogenerated file, don't edit, your changes will be overwritten. [config] single_click=1 use_trash=1 confirm_del=1 confirm_trash=1 advanced_mode=0 si_unit=0 force_startup_notify=1 backup_as_hidden=1 no_usb_trash=1 no_child_non_expandable=0 show_full_names=0 only_user_templates=0 template_run_app=0 template_type_once=0 auto_selection_delay=600 drop_default_action=auto defer_content_test=0 quick_exec=0 show_internal_volumes=0 terminal=xterm thumbnail_local=0 thumbnail_max=2048 smart_desktop_autodrop=1 [ui] big_icon_size=48 small_icon_size=16 pane_icon_size=16 thumbnail_size=128 show_thumbnail=0 shadow_hidden=0 [places] places_home=1 places_desktop=1 places_root=0 places_computer=1 places_trash=1 places_applications=1 places_network=0 places_unmounted=1 """ figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = text2 figfprint(now, df) figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = df figclose(now) ###df "/mnt/mkrefpup/unsq/squashfs-root/root/.config/libfm/libfm.conf" #now df open "w" #now text2 fprint df #now df close # fig os is an educational os designed for teaching people about computers. # editing /etc/hosts is a valuable skill, and knowing it exists is a useful piece of knowledge. # it is (in this authors opinion) better to edit mkfigos and run it than to download the iso. # then you can customize mkfigos all you like; for instance, removing the following lines. # you can also remove them if you install fig os, then edit the /etc/hosts file. figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "echo >> /mnt/mkrefpup/vrefractafs/squashfs-root/etc/hosts" figshell(now) figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "echo # a few lines drawn in the sand-- delete any of the following entries you want: >> /mnt/mkrefpup/vrefractafs/squashfs-root/etc/hosts" figshell(now) figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "echo 127.0.0.1 icanhazip.com >> /mnt/mkrefpup/vrefractafs/squashfs-root/etc/hosts" figshell(now) figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "echo 127.0.0.1 hello.firefox.com >> /mnt/mkrefpup/vrefractafs/squashfs-root/etc/hosts" figshell(now) figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "echo 127.0.0.1 input.mozilla.org >> /mnt/mkrefpup/vrefractafs/squashfs-root/etc/hosts" figshell(now) figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "echo #127.0.0.1 support.mozilla.org >> /mnt/mkrefpup/vrefractafs/squashfs-root/etc/hosts" figshell(now) figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "echo 127.0.0.1 aus5.mozilla.org >> /mnt/mkrefpup/vrefractafs/squashfs-root/etc/hosts" figshell(now) figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "echo 127.0.0.1 crash-stats.mozilla.com >> /mnt/mkrefpup/vrefractafs/squashfs-root/etc/hosts" figshell(now) figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "echo 127.0.0.1 snippets.cdn.mozilla.net >> /mnt/mkrefpup/vrefractafs/squashfs-root/etc/hosts" figshell(now) figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "echo 127.0.0.1 marketplace.firefox.com >> /mnt/mkrefpup/vrefractafs/squashfs-root/etc/hosts" figshell(now) figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "echo 127.0.0.1 tiles.services.mozilla.com >> /mnt/mkrefpup/vrefractafs/squashfs-root/etc/hosts" figshell(now) figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "echo 127.0.0.1 api.getpocket.com >> /mnt/mkrefpup/vrefractafs/squashfs-root/etc/hosts" figshell(now) figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "echo 127.0.0.1 sb-ssl.google.com >> /mnt/mkrefpup/vrefractafs/squashfs-root/etc/hosts" figshell(now) figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "echo 127.0.0.1 safebrowsing.google.com >> /mnt/mkrefpup/vrefractafs/squashfs-root/etc/hosts" figshell(now) figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "echo 127.0.0.1 shavar.services.mozilla.com >> /mnt/mkrefpup/vrefractafs/squashfs-root/etc/hosts" figshell(now) figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "echo 127.0.0.1 en.malware-error.mozilla.com >> /mnt/mkrefpup/vrefractafs/squashfs-root/etc/hosts" figshell(now) figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "echo 127.0.0.1 en_us.malware-error.mozilla.com >> /mnt/mkrefpup/vrefractafs/squashfs-root/etc/hosts" figshell(now) figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "echo 127.0.0.1 en.phish-error.mozilla.com >> /mnt/mkrefpup/vrefractafs/squashfs-root/etc/hosts" figshell(now) figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "echo 127.0.0.1 en_us.phish-error.mozilla.com >> /mnt/mkrefpup/vrefractafs/squashfs-root/etc/hosts" figshell(now) figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "echo 127.0.0.1 en.phish-report.mozilla.com >> /mnt/mkrefpup/vrefractafs/squashfs-root/etc/hosts" figshell(now) figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "echo 127.0.0.1 en_us.phish-report.mozilla.com >> /mnt/mkrefpup/vrefractafs/squashfs-root/etc/hosts" figshell(now) figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "echo 127.0.0.1 self-repair.mozilla.org >> /mnt/mkrefpup/vrefractafs/squashfs-root/etc/hosts" figshell(now) figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "echo 127.0.0.1 search.services.mozilla.com >> /mnt/mkrefpup/vrefractafs/squashfs-root/etc/hosts" figshell(now) figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "echo 127.0.0.1 location.services.mozilla.com >> /mnt/mkrefpup/vrefractafs/squashfs-root/etc/hosts" figshell(now) figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "echo 127.0.0.1 detectportal.firefox.com >> /mnt/mkrefpup/vrefractafs/squashfs-root/etc/hosts" figshell(now) figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "echo 127.0.0.1 fhr.cdn.mozilla.net >> /mnt/mkrefpup/vrefractafs/squashfs-root/etc/hosts" figshell(now) figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "echo 127.0.0.1 fhr.data.mozilla.com >> /mnt/mkrefpup/vrefractafs/squashfs-root/etc/hosts" figshell(now) figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "echo 127.0.0.1 code.cdn.mozilla.net >> /mnt/mkrefpup/vrefractafs/squashfs-root/etc/hosts" figshell(now) figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "echo 127.0.0.1 push.services.mozilla.com >> /mnt/mkrefpup/vrefractafs/squashfs-root/etc/hosts" figshell(now) figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "echo 127.0.0.1 telemetry-experiment.cdn.mozilla.net >> /mnt/mkrefpup/vrefractafs/squashfs-root/etc/hosts" figshell(now) figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "echo 127.0.0.1 blocklist.addons.mozilla.org >> /mnt/mkrefpup/vrefractafs/squashfs-root/etc/hosts" figshell(now) figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "echo 127.0.0.1 services.addons.mozilla.org >> /mnt/mkrefpup/vrefractafs/squashfs-root/etc/hosts" figshell(now) figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "echo 127.0.0.1 versioncheck-bg.addons.mozilla.org >> /mnt/mkrefpup/vrefractafs/squashfs-root/etc/hosts" figshell(now) figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "echo 127.0.0.1 versioncheck.addons.mozilla.org >> /mnt/mkrefpup/vrefractafs/squashfs-root/etc/hosts" figshell(now) figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "echo 127.0.0.1 api.accounts.firefox.com >> /mnt/mkrefpup/vrefractafs/squashfs-root/etc/hosts" figshell(now) figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "echo 127.0.0.1 accounts.firefox.com >> /mnt/mkrefpup/vrefractafs/squashfs-root/etc/hosts" figshell(now) figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "echo 127.0.0.1 oauth.accounts.firefox.com >> /mnt/mkrefpup/vrefractafs/squashfs-root/etc/hosts" figshell(now) figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "echo 127.0.0.1 profile.accounts.firefox.com >> /mnt/mkrefpup/vrefractafs/squashfs-root/etc/hosts" figshell(now) figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "echo 127.0.0.1 token.services.mozilla.com >> /mnt/mkrefpup/vrefractafs/squashfs-root/etc/hosts" figshell(now) figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "echo 127.0.0.1 loop.services.mozilla.com >> /mnt/mkrefpup/vrefractafs/squashfs-root/etc/hosts" figshell(now) figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "echo 127.0.0.1 data.mozilla.com >> /mnt/mkrefpup/vrefractafs/squashfs-root/etc/hosts" figshell(now) figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "echo 127.0.0.1 setup.services.mozilla.com >> /mnt/mkrefpup/vrefractafs/squashfs-root/etc/hosts" figshell(now) figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "echo 127.0.0.1 auth.services.mozilla.com >> /mnt/mkrefpup/vrefractafs/squashfs-root/etc/hosts" figshell(now) figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "echo 127.0.0.1 services.mozilla.com >> /mnt/mkrefpup/vrefractafs/squashfs-root/etc/hosts" figshell(now) figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "echo 127.0.0.1 activations.cdn.mozilla.net >> /mnt/mkrefpup/vrefractafs/squashfs-root/etc/hosts" figshell(now) figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "echo 127.0.0.1 mozsocial.cliqz.com >> /mnt/mkrefpup/vrefractafs/squashfs-root/etc/hosts" figshell(now) figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "echo 127.0.0.1 incoming.telemetry.mozilla.org >> /mnt/mkrefpup/vrefractafs/squashfs-root/etc/hosts" figshell(now) figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "echo >> /mnt/mkrefpup/vrefractafs/squashfs-root/etc/hosts" figshell(now) #now "/mnt/mkrefpup/unsq/squashfs-root/bin/baseping" open "w" figlist = 0 try: figlist = int(type(text) == list) except NameError: pass if not figlist: text = 0 text = "exit 0" #now text fprint "/mnt/mkrefpup/unsq/squashfs-root/bin/baseping" #now "/mnt/mkrefpup/unsq/squashfs-root/bin/baseping" close #now "chmod +x /mnt/mkrefpup/unsq/squashfs-root/bin/baseping" shell #now "/mnt/mkrefpup/unsq/squashfs-root/bin/baseping6" open "w" #text "exit 0" #now text fprint "/mnt/mkrefpup/unsq/squashfs-root/bin/baseping6" #now "/mnt/mkrefpup/unsq/squashfs-root/bin/baseping6" close #now "chmod +x /mnt/mkrefpup/unsq/squashfs-root/bin/baseping6" shell figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "mkdir /mnt/mkrefpup/vrefractafs/squashfs-root/etc/rc.d" figshell(now) #now "cp /mnt/mkrefpup/unsq/squashfs-root/etc/rc.d/PUPSTATE /mnt/mkrefpup/vrefractafs/squashfs-root/etc/rc.d/" shell figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "mkdir /mnt/mkrefpup/vrefractafs/squashfs-root/etc/xdg/menus/" figshell(now) figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "echo -n >> /mnt/mkrefpup/vrefractafs/squashfs-root/etc/xdg/menus/hierarchy" figshell(now) figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "sed -i 's/# FocusRequestFlashTime=0/FocusRequestFlashTime=1/g' /mnt/mkrefpup/vrefractafs/squashfs-root/usr/share/icewm/preferences" figshell(now) figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "sed -i 's/# TaskBarAtTop=0/TaskBarAtTop=1/g' /mnt/mkrefpup/vrefractafs/squashfs-root/usr/share/icewm/preferences" figshell(now) figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "sed -i 's/# TaskBarShowClock=1/TaskBarShowClock=0/g' /mnt/mkrefpup/vrefractafs/squashfs-root/usr/share/icewm/preferences" figshell(now) figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "sed -i 's/# TaskBarShowAPMStatus=0/TaskBarShowAPMStatus=1/g' /mnt/mkrefpup/vrefractafs/squashfs-root/usr/share/icewm/preferences" figshell(now) if 1 == 0: #now "echo '#!/bin/sh -e' > /mnt/mkrefpup/vrefractafs/squashfs-root/etc/rc.local" shell figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 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" figshell(now) figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "echo 'rm /var/lib/dbus/machine-id' >> /mnt/mkrefpup/vrefractafs/squashfs-root/etc/rc.local" figshell(now) figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "echo '/root/desktops &' >> /mnt/mkrefpup/vrefractafs/squashfs-root/etc/rc.local" figshell(now) figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "echo '/root/welcomes &' >> /mnt/mkrefpup/vrefractafs/squashfs-root/etc/rc.local" figshell(now) ### 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 figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "echo 'exit 0' >> /mnt/mkrefpup/vrefractafs/squashfs-root/etc/rc.local" figshell(now) #now "mkdir /mnt/mkrefpup/vrefractafs/squashfs-root/home/user/.icewm" shell #now "echo 'sudo pcmanfm --desktop &' > /mnt/mkrefpup/vrefractafs/squashfs-root/home/user/.icewm/startup" shell #now fixpings 0 isoname "# invoke global X" "/usr/bin/pcmanfm --desktop & # # invoke global X" "/mnt/mkrefpup/vrefractafs/squashfs-root/home/user/.icewm/startup" figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "mkdir /mnt/mkrefpup/vrefractafs/squashfs-root/Desktop" figshell(now) def ldesk(df, n, cmt, ex, ico, term): figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = df figopen(now, "w") figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "[Desktop Entry]" figfprint(now, df) # now "Keywords=editor" fprint df figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "Name=" now = figplus(now, n) figfprint(now, df) figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "Comment=" now = figplus(now, cmt) figfprint(now, df) figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "Exec=" now = figplus(now, ex) figfprint(now, df) figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "Icon=" now = figplus(now, ico) figfprint(now, df) figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "Terminal=" now = figplus(now, term) figfprint(now, df) figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "Type=Application" figfprint(now, df) figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = df figclose(now) if 1 == 0: figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 figbac = now now = ldesk("/mnt/mkrefpup/vrefractafs/squashfs-root/Desktop/conn.desktop", "Connect", "network setup", "/usr/bin/wicd-gtk", "/usr/share/pixmaps/connect48.png", "false") ; now = fignone(now, figbac) ; figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 figbac = now 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") ; now = fignone(now, figbac) ; #now ldesk "/mnt/mkrefpup/vrefractafs/squashfs-root/Desktop/draw.desktop" "Draw" "vector editor" "/usr/local/bin/defaultdraw" "/usr/share/pixmaps/paint48.png" "false" figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 figbac = now now = ldesk("/mnt/mkrefpup/vrefractafs/squashfs-root/Desktop/help.desktop", "Help", "help files", "/usr/sbin/figoshelp", "/usr/share/pixmaps/help48.png", "false") ; now = fignone(now, figbac) ; #now ldesk "/mnt/mkrefpup/vrefractafs/squashfs-root/Desktop/inst.desktop" "Install" "installer" "/usr/sbin/dotpup" "/usr/share/pixmaps/pet48.png" "false" figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 figbac = now now = ldesk("/mnt/mkrefpup/vrefractafs/squashfs-root/Desktop/edit.desktop", "Leafpad", "text editor", "/usr/bin/leafpad", "/usr/share/pixmaps/edit48.png", "false") ; now = fignone(now, figbac) ; #now ldesk "/mnt/mkrefpup/vrefractafs/squashfs-root/Desktop/dmnt.desktop" "Mount" "connect drives" "/usr/sbin/pmount" "/usr/share/pixmaps/drive48.png" "false" #now ldesk "/mnt/mkrefpup/vrefractafs/squashfs-root/Desktop/osmo.desktop" "Plan" "calendar" "/usr/local/bin/defaultcalendar" "/usr/share/pixmaps/date48.png" "false" #now ldesk "/mnt/mkrefpup/vrefractafs/squashfs-root/Desktop/setp.desktop" "Setup" "setup wizard" "/usr/sbin/wizardwizard" "/usr/share/pixmaps/configuration48.png" "false" ## copy all files to puppy except ones already there #cwrfdir "find /mnt/mkrefpup/vrefractafs/squashfs-root/ -type d" arrshell #cwrf "find /mnt/mkrefpup/vrefractafs/squashfs-root/" arrshell #cwpp "find /mnt/mkrefpup/unsq/squashfs-root/" arrshell #cc 0 #q 34 chr #now "creating extra folders for puppy mode..." print #forin p cwrfdir #f split p "/mnt/mkrefpup/vrefractafs/squashfs-root/" join f "/mnt/mkrefpup/unsq/squashfs-root/" #print #ifequal f "" #pass #else #ckref "mkdir -p " plus q plus f plus q shell #fig #next #now "copy all refracta files to puppy that are not blacklisted..." print #forin p cwrf #f split p "/mnt/mkrefpup/vrefractafs/squashfs-root/" join f "" #print #ckpup "/mnt/mkrefpup/unsq/squashfs-root/" plus f #blacklist 0 #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" " " #forin nos listitems #cklist instr ckpup nos #iftrue cklist # blacklist 1 # fig #next #ck instr cwpp ckpup plus blacklist #iftrue ck # now f # else # addcc cc plus 1 swap addcc cc # ckref " cp " plus q plus "/mnt/mkrefpup/vrefractafs/squashfs-root/" plus f plus q plus " " plus q plus ckpup plus q print shell # fig #next #cb #python # cb=""" #etc/pam.d/common-password #etc/pam.d/common-passwd # #`usr/bin/resize #""" # fig # #cb "" # #lf 10 chr #q 34 chr #copybin split cb lf #forin cb copybin # f cb ltrim rtrim # ifequal f "" # pass # else # top f asc # ifequal top 96 # pass # else # 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 # fig # fig # next # if you have mkfigos in /mnt/mkrefpup it will copy it into figos iso / refracta sfs figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "cp /mnt/mkrefpup/mk" now = figplus(now, isoname) now = figsplit(now, now, ".iso") now = figjoin(now, now, "") now = figsplit(now, now, ".") now = figjoin(now, now, "") now = figplus(now, ".fig /mnt/mkrefpup/vrefractafs/squashfs-root/usr/share 2> /dev/null") figshell(now) figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "cp /mnt/mkrefpup/mk" now = figplus(now, isoname) now = figsplit(now, now, ".iso") now = figjoin(now, now, "") now = figsplit(now, now, ".") now = figjoin(now, now, "") now = figplus(now, ".fig /mnt/mkrefpup/newiso 2> /dev/null") figshell(now) #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 ###now "/mnt/mkrefpup/unsq/squashfs-root" chdir #iftrue fastcomp # 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 #else # 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 # fig figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "echo 'mkdir /mnt/hda1' >> /mnt/mkrefpup/vrefractafs/squashfs-root/etc/rc.local" figshell(now) figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "echo 'mkdir /mnt/hda2' >> /mnt/mkrefpup/vrefractafs/squashfs-root/etc/rc.local" figshell(now) figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "echo 'mkdir /mnt/hdb1' >> /mnt/mkrefpup/vrefractafs/squashfs-root/etc/rc.local" figshell(now) figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "echo 'mkdir /mnt/hdb2' >> /mnt/mkrefpup/vrefractafs/squashfs-root/etc/rc.local" figshell(now) figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "echo 'mount -r /dev/sda1 /mnt/hda1' >> /mnt/mkrefpup/vrefractafs/squashfs-root/etc/rc.local" figshell(now) figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "echo 'mount -r /dev/sda2 /mnt/hda2' >> /mnt/mkrefpup/vrefractafs/squashfs-root/etc/rc.local" figshell(now) figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "echo 'mount -r /dev/sdb1 /mnt/hdb1' >> /mnt/mkrefpup/vrefractafs/squashfs-root/etc/rc.local" figshell(now) figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "echo 'mount -r /dev/sdb2 /mnt/hdb2' >> /mnt/mkrefpup/vrefractafs/squashfs-root/etc/rc.local" figshell(now) figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "echo 'rm /usr/share/icewm/themes/default/default.png' >> /mnt/mkrefpup/vrefractafs/squashfs-root/root/wminstall" figshell(now) figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "echo 'rm /usr/share/icewm/taskbar/*pm' >> /mnt/mkrefpup/vrefractafs/squashfs-root/root/wminstall" figshell(now) figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "echo 'cp /usr/share/icewm.xpm /usr/share/icewm/taskbar' >> /mnt/mkrefpup/vrefractafs/squashfs-root/root/wminstall" figshell(now) figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "echo 'rm -rf /usr/bin/lxqt-session /usr/share/void-artwork' >> /mnt/mkrefpup/vrefractafs/squashfs-root/root/wminstall" figshell(now) figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "echo 'cp /usr/bin/openbox-session /usr/bin/lxqt-session' >> /mnt/mkrefpup/vrefractafs/squashfs-root/root/wminstall" figshell(now) figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "echo 'cp /usr/bin/icewm-session /usr/bin/lxqt-session' >> /mnt/mkrefpup/vrefractafs/squashfs-root/root/wminstall" figshell(now) figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "echo 'cp /usr/share/icewm/preferences /usr/share/icewm/pref' >> /mnt/mkrefpup/vrefractafs/squashfs-root/root/wminstall" figshell(now) figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "echo 'cp /usr/bin/qter* /usr/bin/xterm' >> /mnt/mkrefpup/vrefractafs/squashfs-root/root/wminstall" figshell(now) figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "echo 'echo DesktopBackgroundColor=000000 >> /usr/share/icewm/themes/default/default.theme' >> /mnt/mkrefpup/vrefractafs/squashfs-root/root/wminstall" figshell(now) figlist = 0 try: figlist = int(type(quot) == list) except NameError: pass if not figlist: quot = 0 quot = 34 quot = figchr(quot) figlist = 0 try: figlist = int(type(quoted) == list) except NameError: pass if not figlist: quoted = 0 quoted = "echo 'cat /usr/share/icewm/pref | alex23.py --replace " quoted = figplus(quoted, quot) quoted = figplus(quoted, "# TaskBarShowClock=1") quoted = figplus(quoted, quot) quoted = figplus(quoted, " ") figlist = 0 try: figlist = int(type(quoted2) == list) except NameError: pass if not figlist: quoted2 = 0 quoted2 = quoted quoted2 = figplus(quoted2, quot) quoted2 = figplus(quoted2, "TaskBarShowClock=0") quoted2 = figplus(quoted2, quot) quoted2 = figplus(quoted2, " | alex23.py --replace ") quoted2 = figplus(quoted2, quot) quoted2 = figplus(quoted2, "# TaskBarAtTop=0") quoted2 = figplus(quoted2, quot) quoted2 = figplus(quoted2, " ") figlist = 0 try: figlist = int(type(quoted3) == list) except NameError: pass if not figlist: quoted3 = 0 quoted3 = quoted2 quoted3 = figplus(quoted3, quot) quoted3 = figplus(quoted3, "TaskBarAtTop=1") quoted3 = figplus(quoted3, quot) quoted3 = figplus(quoted3, " | alex23.py --replace ") quoted3 = figplus(quoted3, quot) quoted3 = figplus(quoted3, "# TaskBarShowWindowListMenu=1") quoted3 = figplus(quoted3, quot) figlist = 0 try: figlist = int(type(quoted) == list) except NameError: pass if not figlist: quoted = 0 quoted = quoted3 quoted = figplus(quoted, " ") quoted = figplus(quoted, quot) quoted = figplus(quoted, "TaskBarShowWindowListMenu=0") quoted = figplus(quoted, quot) quoted = figplus(quoted, " > /usr/share/icewm/preferences ; fi' >> /mnt/mkrefpup/vrefractafs/squashfs-root/root/wminstall") figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = quoted figshell(now) figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "echo '/root/desktops &' >> /mnt/mkrefpup/vrefractafs/squashfs-root/etc/rc.local" figshell(now) figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "echo '/root/welcomes &' >> /mnt/mkrefpup/vrefractafs/squashfs-root/etc/rc.local" figshell(now) figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "echo 'p=$(cat /mnt/hda1/etc/.figos-local 2> /dev/null) ; if [ " now = figplus(now, quot) now = figplus(now, "$p") now = figplus(now, quot) now = figplus(now, " -eq ") now = figplus(now, quot) now = figplus(now, "1") now = figplus(now, quot) now = figplus(now, " ] ; 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") figshell(now) figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "echo 'p=$(cat /mnt/hda2/etc/.figos-local 2> /dev/null) ; if [ " now = figplus(now, quot) now = figplus(now, "$p") now = figplus(now, quot) now = figplus(now, " -eq ") now = figplus(now, quot) now = figplus(now, "1") now = figplus(now, quot) now = figplus(now, " ] ; 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") figshell(now) figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "echo 'p=$(cat /mnt/hdb1/etc/.figos-local 2> /dev/null) ; if [ " now = figplus(now, quot) now = figplus(now, "$p") now = figplus(now, quot) now = figplus(now, " -eq ") now = figplus(now, quot) now = figplus(now, "1") now = figplus(now, quot) now = figplus(now, " ] ; 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") figshell(now) figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "echo 'p=$(cat /mnt/hdb2/etc/.figos-local 2> /dev/null) ; if [ " now = figplus(now, quot) now = figplus(now, "$p") now = figplus(now, quot) now = figplus(now, " -eq ") now = figplus(now, quot) now = figplus(now, "1") now = figplus(now, quot) now = figplus(now, " ] ; then /mnt/hdb2/etc/rc.local ; else umount /mnt/hdb2 2> /dev/null ; fi' >> /mnt/mkrefpup/vrefractafs/squashfs-root/etc/rc.local") figshell(now) figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "umount /mnt/mkrefpup/vrefractafs/squashfs-root/ ; echo copying" figshell(now) #now "echo copying ; cp /mnt/mkrefpup/refractafs/squashfs-root/LiveOS/ext3fs.img /mnt/mkrefpup/" shell #now "mount /mnt/mkrefpup/refractafs/squashfs-root/LiveOS/ext3fs.img /mnt/mkrefpup/vrefractafs/squashfs-root/" shell figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "/mnt/mkrefpup/refractafs/squashfs-root" figchdir(now) #now "umount /mnt/mkrefpup/vrefractafs/squashfs-root/ ; echo copying" shell #now "cp /mnt/mkrefpup/ext3fs.img /mnt/mkrefpup/refractafs/squashfs-root/LiveOS/" shell if fastcomp: figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "mksquashfs . /mnt/mkrefpup/newiso/LiveOS/squashfs.img -noappend" figshell(now) else: figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "mksquashfs . /mnt/mkrefpup/newiso/LiveOS/squashfs.img -noappend -comp xz -b 512K" figshell(now) figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "/mnt/mkrefpup/newiso" figchdir(now) figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "cp /mnt/mkrefpup/logo.16 boot/isolinux/splash.png" figshell(now) #now "cp /mnt/mkrefpup/refracta/LiveOS/squashfs.img LiveOS" shell # now "genisoimage -b boot/isolinux/isolinux.bin -c boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table -r -J -l -V VOID_LIVE -o /mnt/mkrefpup/" plus isoname plus ".iso /mnt/mkrefpup/newiso/" shell figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 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/" now = figplus(now, isoname) now = figplus(now, ".iso /mnt/mkrefpup/newiso/") figshell(now) figlist = 0 try: figlist = int(type(now) == list) except NameError: pass if not figlist: now = 0 now = "isohybrid /mnt/mkrefpup/" now = figplus(now, isoname) now = figplus(now, ".iso") figshell(now) ``` license: 0-clause bsd ``` # 2018 mn # # Permission to use, copy, modify, and/or distribute this software for any # purpose with or without fee is hereby granted. # # THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES # WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF # MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR # ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES # WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN # ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF # OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. ``` => https://freesoftwareresistance.neocities.org