If it's not on-topic, it's in here.
Post a reply

refractahrpup (not a real hybrid-- real screencaps)

Fri Jul 15, 2016 6:26 am

Code:
#### license: creative commons cc0 1.0 (public domain)
#### http://creativecommons.org/publicdomain/zero/1.0/

proginf "mkrefractahrpup 0.1, jul 2016 mn" print

function addquoted mainv toquote
    q 34 chr
    now mainv  plus " "  plus q  plus toquote  plus q  return now
    fig

function urf p
    # filename from url
    # ... return whats to the right of the rightmost "/" (or entire string if "/" not found)
    r p  reverse  instr r "/" minus 1
    ifmore r 0
        now p  right r  return now
    else
        now p  return now
        fig
    fig

function download iso
    now iso print
    now urf iso print
    u  urf iso 
    ck "ls"  addquoted ck u  plus " | wc -l"  arrshell  join ck " "  int
    ifequal ck 0
        now "wget"  addquoted now iso  shell
        fig
    fig


pwd "pwd" arrshell  join pwd "" 

tahrurl "http://distro.ibiblio.org/puppylinux/puppy-tahr/iso/tahrpup%20-6.0-CE/tahr-6.0.5_PAE.iso"
refractaurl "http://downloads.sourceforge.net/project/refracta/testing/refracta8_xfce_i386_beta-20160526_1442.iso?r=&ts=1468558237&use_mirror=netassist"
urftahrurl  urf tahrurl
urfrefractaurl  urf refractaurl

now download tahrurl
now download refractaurl



fpath pwd  plus "/"  plus urfrefractaurl
now "ln -s "  addquoted now fpath  addquoted now "refracta8_xfce_i386_beta-20160526_1442.iso"  plus " 2> /dev/null"  shell

shel "du -b refr*.iso*"
now "hello"  addquoted now shel  colortext 7 print

now "mkdir /mnt/mkrefpup"  shell
now "mkdir /mnt/mkrefpup/iso"  shell
now "mkdir /mnt/mkrefpup/newiso"  shell
now "mkdir /mnt/mkrefpup/fs"  shell
now "mkdir /mnt/mkrefpup/newfs"  shell
now "mkdir /mnt/mkrefpup/unsq"  shell

q 34  chr
now "mount "  plus q  plus pwd  plus "/"  plus urftahrurl  plus q  plus " /mnt/mkrefpup/iso -o loop"  shell
now "cp /mnt/mkrefpup/iso/* /mnt/mkrefpup/newiso"  shell

now "/mnt/mkrefpup/unsq"  chdir
now "unsquashfs /mnt/mkrefpup/iso/puppy_tahr_6.0.5.sfs"  shell

now "/mnt/mkrefpup/unsq/squashfs-root/usr/share/"  chdir
now "mkdir fig ; cd fig ; wget http://distro.ibiblio.org/refracta/files/extra_packages/fig31_1.0.deb"  shell

now "/mnt/mkrefpup/unsq/squashfs-root"  chdir
now "mksquashfs . /mnt/mkrefpup/newfs/new.sfs -noappend ; cp /mnt/mkrefpup/newfs/new.sfs /mnt/mkrefpup/newiso/puppy_tahr_6.0.5.sfs"  shell
now "/mnt/mkrefpup/newiso"  chdir

now "rm logo.16 ; wget "  plus q plus "http://murga-linux.com/puppy/viewtopic.php?mode=attach&id=99819"  plus q plus " -O logo.16"  shell

now "genisoimage -b isolinux.bin -c boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table -r -J -l -o /mnt/mkrefpup/unsq/rpup.iso /mnt/mkrefpup/newiso/"  shell


Image

Image

Re: refractahrpup (not a real hybrid-- real screencaps)

Fri Jul 22, 2016 9:17 pm

it wont let me post the entire script, so heres a link:

http://murga-linux.com/puppy/viewtopic.php?mode=attach&id=100096

Re: refractahrpup (not a real hybrid-- real screencaps)

Fri Jul 22, 2016 10:41 pm

Interesting concept. I always make multiboot usb drives, but with this, you could make a multiboot optical disk. Truly read-only.

I like the icewm on refracta - it reminds me of an older version, maybe 605 or so. But it lacks some configuration items - shutdown/reboot, and more important, menu items - I think there's a way to add the debian menu to the icewm menu, and then you can find everything that's installed. It's not the most efficient menu, but it's comprehensive.

Your script is outdated already - here's the new link:
https://sourceforge.net/projects/refrac ... 2_1444.iso

Re: refractahrpup (not a real hybrid-- real screencaps)

Sat Jul 23, 2016 6:39 am

Your script is outdated already - here's the new link:
https://sourceforge.net/projects/refrac ... 2_1444.iso


well this is exciting! naturally, i think refracta is the single greatest distro in the history of the linux kernel... i am definitely biased; but it is really good.

if you can run md5sum on the iso, id be curious what it says... its running fine in qemu though my download doesnt match the md5 on the website again :)

fsmithred wrote:Interesting concept. I always make multiboot usb drives, but with this, you could make a multiboot optical disk. Truly read-only.


yeah, you dont need half of this stuff to just mix the isos together-- most of it is there to mix the sfs files.

I like the icewm on refracta - it reminds me of an older version, maybe 605 or so. But it lacks some configuration items - shutdown/reboot, and more important, menu items - I think there's a way to add the debian menu to the icewm menu


i was surprised by that, but theres a variety of things that could be done about it. everything was fine when it had xfce (note it still has xfce, its just running icewm) and i havent really customized the icewm setup yet.

since the debian menu isnt present, id like to possibly fix the debianization a la steve litts fetish (his fetish is common sense, thats what i like about him) -- debian has always added a useless layer to their menu. usually when i run icewm, i think the menu is present.

let me know if the md5sum you do on your machine matches the one on sf.

wonderful stuff!

Re: refractahrpup (not a real hybrid-- real screencaps)

Sat Jul 23, 2016 10:27 am

Code:
7e5f9391ba703f44db91d08f4ea9260a
I didn't download it, but the copy on the server has the same md5sum as the original on my hard drive.

It is possible to get to the xfce desktop, but you have to either disable autologin or increase the delay time, then log out of icewm and choose xfce at the login screen.

Re: refractahrpup (not a real hybrid-- real screencaps)

Sat Jul 23, 2016 1:44 pm

Here's an alternate quit-dialogue, in case you don't like the wide horizonal arrangement of buttons. There are some sample logout commands in the bottom comments. The last one should work in any desktop.
Code:
#!/usr/bin/env bash
# quit-dialog-form

yad --title="Exit Choices" --form --columns 2 --separator " " \
   --field "Lock Screen"\!"lock.png:BTN" \
   --field "Reboot"\!"gtk-refresh:BTN" \
   --field "Hibernate"\!"gnome-session-hibernate:BTN" \
   --field "Logout"\!"application-exit:BTN" \
   --field "Shutdown"\!"system-shutdown:BTN" \
   --field "Suspend"\!"gnome-session-suspend:BTN" \
   'xscreensaver-command -lock' \
   'sudo /sbin/reboot' \
   'sudo /usr/sbin/pm-hibernate' \
   'xfce4-session-logout --logout' \
   'sudo /sbin/halt' \
   'sudo /usr/sbin/pm-suspend' \
   --button=Cancel:0

exit 0


# Logout commands
#
# xfce4-session-logout --logout
# openbox --exit
# pkill -u $USER
#

Re: refractahrpup (not a real hybrid-- real screencaps)

Sat Jul 23, 2016 3:35 pm

i just figured out why i thought the md5 didnt match.

it was putting the 7 on the previous line, on column 80 :) so the "wrong" one started "e5f9..." lol, sorry.
Last edited by figlfdev on Sat Jul 23, 2016 3:41 pm, edited 1 time in total.
Post a reply