Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Sun 24 Jul 2016, 12:56
All times are UTC - 4
 Forum index » Advanced Topics » Puppy Derivatives
mkfigos 0.7: combines puppy tahr with refracta
Moderators: Flash, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 2 [25 Posts]   Goto page: 1, 2 Next
Author Message
learnhow2code

Joined: 12 Jun 2016
Posts: 492

PostPosted: Fri 15 Jul 2016, 15:34    Post subject:  mkfigos 0.7: combines puppy tahr with refracta  

script downloads refracta and tahr and new logo.16, uses unsquashfs and genisoimage to create a new 932mb iso, bootable into:

* puppy tahr 6.0.5 by default
* the latest version of refracta, with puppy sfs available
(thats puppys copy of mtpaint and urxvt running.)

to boot puppy, type "puppy" at boot.

to boot refracta, type "live" at boot.







bug report: version 0.2 requires the refracta iso to be mounted in /mnt/refracta-- the next version (posted in this thread) will hopefully fix this.
Code:

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

proginf "mkrefractahrpup 0.2, jul 2016 mn" print

# lazy way to stop redundant downloads
morewget 1

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
    now urf iso
    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 "cp /mnt/refracta/live/vmlinuz /mnt/mkrefpup/newiso"  shell   
# now "cp /mnt/refracta/live/initrd.img /mnt/mkrefpup/newiso/initrd.gz"  shell   
now "mkdir /mnt/mkrefpup/newiso/live"  shell

now "cp /mnt/refracta/live/vmlinuz /mnt/mkrefpup/newiso/live"  shell   
now "cp /mnt/refracta/live/initrd.img /mnt/mkrefpup/newiso/live/"  shell   

now "cp /mnt/refracta/live/filesystem.squashfs /mnt/mkrefpup/newiso/live"  shell   


now "cat /mnt/refracta/isolinux/live.cfg >> /mnt/mkrefpup/newiso/isolinux.cfg"  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
iftrue morewget
    now "mkdir fig ; cd fig ; wget http://distro.ibiblio.org/refracta/files/extra_packages/fig31_1.0.deb ; cp fig31_1.0.deb /mnt/mkrefpup/newiso"  shell
    fig

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

iftrue morewget
    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
    fig

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
logo.16.gz
Description 
gz

 Download 
Filename  logo.16.gz 
Filesize  23.61 KB 
Downloaded  13 Time(s) 
rfp.png
Description 
png

 Download 
Filename  rfp.png 
Filesize  121.07 KB 
Downloaded  36 Time(s) 

_________________
what are your favorite puppy features?

Last edited by learnhow2code on Fri 22 Jul 2016, 15:10; edited 4 times in total
Back to top
View user's profile Send private message 
Keef


Joined: 20 Dec 2007
Posts: 747
Location: Staffordshire

PostPosted: Sat 16 Jul 2016, 08:03    Post subject:  

I think it would help to give a little more info.
Having seen your posts in Programming, I guessed it was a fig script, so ran it through that first. It seemed to work ok, and downloaded everything, but just ended up with a 265mb ISO at /mnt/mkrefpup/unsq/rpup.iso. All the 'bits' seem to be there in /mnt/mkrefpup/, but something is going wrong with the iso building part. The 'newiso' directory has all the puppy files, but the 'live' directory is empty.
Back to top
View user's profile Send private message 
learnhow2code

Joined: 12 Jun 2016
Posts: 492

PostPosted: Sat 16 Jul 2016, 16:47    Post subject:  

Keef wrote:
I think it would help to give a little more info.
Having seen your posts in Programming, I guessed it was a fig script, so ran it through that first. It seemed to work ok, and downloaded everything, but just ended up with a 265mb ISO at /mnt/mkrefpup/unsq/rpup.iso. All the 'bits' seem to be there in /mnt/mkrefpup/, but something is going wrong with the iso building part. The 'newiso' directory has all the puppy files, but the 'live' directory is empty.


thanks for the feedback and bug report, i wasnt sure how this would work for other users. my guess is that i manually mounted the refracta iso in /mnt/mkrefpup/refracta or worse, /mnt/refracta, and need to add that as an automatic step. a patched version that may work (i will probably report on that before you do) is included in this post.

yes, quality-wise that is abhorrent, although the project is about 24 hours old. i really appreciate you trying it out and reporting this bug. sorry about that-- it does seem like you did everything right.

refractahrpup is mostly a proof of concept, although im running it (as i type this) from dvd. adding isohybrid to the script would make the iso dd'able to usb. it seems like this project from a few years ago: http://murga-linux.com/puppy/viewtopic.php?t=57037 is similar, and still in use, as far as proof-of-concept is concerned. thanks again.

Code:

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

proginf "mkrefractahrpup 0.3, jul 2016 mn" print

# # # # ! ! ! !   
####    patched version of 0.2... havent even tried it yet    ####
# # # # ! ! ! !                                                 

# lazy way to stop redundant downloads
morewget 1

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
    now urf iso
    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
now "mkdir /mnt/mkrefpup/refracta"  shell

q 34  chr
now "mount "  plus q  plus pwd  plus "/"  plus urftahrurl  plus q  plus " /mnt/mkrefpup/iso -o loop"  shell
now "mount "  plus q  plus pwd  plus "/"  plus urfrefractaurl  plus q  plus " /mnt/mkrefpup/refracta -o loop"  shell
now "cp /mnt/mkrefpup/iso/* /mnt/mkrefpup/newiso"  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   
now "mkdir /mnt/mkrefpup/newiso/live"  shell

now "cp /mnt/mkrefpup/refracta/live/vmlinuz /mnt/mkrefpup/newiso/live"  shell   
now "cp /mnt/mkrefpup/refracta/live/initrd.img /mnt/mkrefpup/newiso/live/"  shell   

now "cp /mnt/mkrefpup/refracta/live/filesystem.squashfs /mnt/mkrefpup/newiso/live"  shell   


now "cat /mnt/mkrefpup/refracta/isolinux/live.cfg >> /mnt/mkrefpup/newiso/isolinux.cfg"  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
iftrue morewget
    now "mkdir fig ; cd fig ; wget http://distro.ibiblio.org/refracta/files/extra_packages/fig31_1.0.deb ; cp fig31_1.0.deb /mnt/mkrefpup/newiso"  shell
    fig

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

iftrue morewget
    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
    fig

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


_________________
what are your favorite puppy features?
Back to top
View user's profile Send private message 
learnhow2code

Joined: 12 Jun 2016
Posts: 492

PostPosted: Sun 17 Jul 2016, 21:29    Post subject:  

version 0.4 is the first version that edits the sfs for refracta mode, making it possible to puppify devuan-- one of the primary goals of refractahrpup. as a demo, refracta now shows the puppy wallpaper. version 0.4 is also the first version to remove files from the refracta sfs, cutting out a lot of locale data to keep the iso under 1gb.

Code:

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

proginf "mkrefractahrpup 0.4, 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
    now urf iso
    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

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
now "mkdir /mnt/mkrefpup/refracta"  shell
now "mkdir /mnt/mkrefpup/refractafs"  shell
now "mkdir /mnt/mkrefpup/newrefractafs"  shell


now "cd /mnt/mkrefpup ; if [ -e logo.16 ] ; then echo ; else wget 'http://murga-linux.com/puppy/viewtopic.php?mode=attach&id=99819' -O logo.16 ; fi"  shell

q 34  chr
now "mount "  plus q  plus pwd  plus "/"  plus urftahrurl  plus q  plus " /mnt/mkrefpup/iso -o loop"  shell
now "mount "  plus q  plus pwd  plus "/"  plus urfrefractaurl  plus q  plus " /mnt/mkrefpup/refracta -o loop"  shell
now "cp /mnt/mkrefpup/iso/* /mnt/mkrefpup/newiso"  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   
now "mkdir /mnt/mkrefpup/newiso/live"  shell

now "cp /mnt/mkrefpup/refracta/live/vmlinuz /mnt/mkrefpup/newiso/live"  shell   
now "cp /mnt/mkrefpup/refracta/live/initrd.img /mnt/mkrefpup/newiso/live/"  shell   




# now "cp /mnt/mkrefpup/refracta/live/filesystem.squashfs /mnt/mkrefpup/newiso/live"  shell   


now "cat /mnt/mkrefpup/refracta/isolinux/live.cfg >> /mnt/mkrefpup/newiso/isolinux.cfg"  shell   


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

now "/mnt/mkrefpup/refractafs"  chdir
now "unsquashfs /mnt/mkrefpup/refracta/live/filesystem.squashfs"  shell


now "cp /mnt/mkrefpup/unsq/squashfs-root/usr/share/backgrounds/default.png /mnt/mkrefpup/refractafs/squashfs-root/usr/share/backgrounds/xfce"  shell
now "sed -i 's/\/usr\/share\/backgrounds\/refracta\/milky-1280x1024-p4-redo.jpg/\/usr\/share\/backgrounds\/xfce\/default.png/g' "
nowplus now plus " /mnt/mkrefpup/refractafs/squashfs-root/home/user/.config/xfce4/xfconf/xfce-perchannel-xml/xfce4-desktop.xml"  shell

now "cd /mnt/mkrefpup/refractafs/squashfs-root/usr/share/locale/ ; rm -rf af  am an ang ar ar_EG as ast az az_IR bal be be@latin bg bg_BG bn bn_IN"  shell
now "cd /mnt/mkrefpup/refractafs/squashfs-root/usr/share/locale/ ; rm -rf bo br bs bs_BA byn ca ca@valencia ceb ckb cmn crh cs csb cy da da_DK de "  shell
now "cd /mnt/mkrefpup/refractafs/squashfs-root/usr/share/locale/ ; rm -rf de_CH de_DE de@hebrew dv dz el en@arabic en@boldquot en@cyrillic en@greek "  shell
now "cd /mnt/mkrefpup/refractafs/squashfs-root/usr/share/locale/ ; rm -rf en@hebrew en_NZ en@piglatin en@quot en@shaw eo et et_EE fa fa_IR fi fi_FI"  shell
now "cd /mnt/mkrefpup/refractafs/squashfs-root/usr/share/locale/ ; rm -rf fil fo frp fur fy ga gd gez gl gu gv haw he hi hr ht hu hy ia id id_ID ig"  shell
now "cd /mnt/mkrefpup/refractafs/squashfs-root/usr/share/locale/ ; rm -rf io is it it_IT ja ja_JP ka kg kk km kn ko kok ks ku ky la lb lg li lo lt "  shell
now "cd /mnt/mkrefpup/refractafs/squashfs-root/usr/share/locale/ ; rm -rf lv mai mg mhr mi mk ml ml_IN mn mr ms mt my nah nb nb_NO nds ne nhn nl "  shell
now "cd /mnt/mkrefpup/refractafs/squashfs-root/usr/share/locale/ ; rm -rf nl_NL nn nn_NO no nso oc or pa pl ps qu rm ro ru rw sc sd se shn si sk sl"  shell
now "cd /mnt/mkrefpup/refractafs/squashfs-root/usr/share/locale/ ; rm -rf so sq sr sr@ije sr@latin sr@Latn sr_RS sv sv_SE sw szl ta ta_LK te tet tg"  shell
now "cd /mnt/mkrefpup/refractafs/squashfs-root/usr/share/locale/ ; rm -rf th ti tig tk tl tl_PH tr tt tt@iqtelif tt_RU ug ur ur_PK uz uz@cyrillic "  shell
now "cd /mnt/mkrefpup/refractafs/squashfs-root/usr/share/locale/ ; rm -rf ve vi wa wae wal wo xh yi yo zh zh_CN zh_HK zh_TW zu"  shell

now "/mnt/mkrefpup/unsq/squashfs-root/usr/share/"  chdir
now "mkdir fig ; cd fig ; if [ -e fig31_1.0.deb ] ; then echo ; else wget http://distro.ibiblio.org/refracta/files/extra_packages/fig31_1.0.deb ; fi"  shell
now "cd fig ; dpkg-deb -x fig31_1.0.deb /mnt/mkrefpup/unsq/squashfs-root"  shell
now "cd fig ; dpkg-deb -x fig31_1.0.deb /mnt/mkrefpup/refractafs/squashfs-root"  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/refractafs/squashfs-root"  chdir
now "mksquashfs . /mnt/mkrefpup/newiso/live/filesystem.squashfs -noappend"  shell


now "/mnt/mkrefpup/newiso"  chdir
now "rm logo.16 ; cp /mnt/mkrefpup/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
logo.16.gz
Description 
gz

 Download 
Filename  logo.16.gz 
Filesize  23.46 KB 
Downloaded  8 Time(s) 
rpup05.fig.gz
Description  several changes: cli help overloading, new boot screen, icewm is now the default, adwaita icons removed
gz

 Download 
Filename  rpup05.fig.gz 
Filesize  11.28 KB 
Downloaded  8 Time(s) 

_________________
what are your favorite puppy features?

Last edited by learnhow2code on Fri 22 Jul 2016, 11:31; edited 2 times in total
Back to top
View user's profile Send private message 
learnhow2code

Joined: 12 Jun 2016
Posts: 492

PostPosted: Thu 21 Jul 2016, 09:47    Post subject:  

heres mkrefractahrpup 0.6.

this version disables the ping command in the following scripts:

* squashfs-root/usr/local/video_upgrade/video_upgrade_wizard
* squashfs-root/usr/local/petget/devx_service_pack.sh
* squashfs-root/usr/local/petget/service_pack.sh
* squashfs-root/usr/local/yassm/yassm-search
* squashfs-root/usr/local/apps/pnethood/pnethood
* squashfs-root/usr/share/alsa-base/alsa-info.sh
* squashfs-root/usr/sbin/Pudd
* squashfs-root/usr/sbin/getflash
* squashfs-root/usr/sbin/check_internet

will this break those scripts? probably.
can they be edited further to work without ping? probably.
will there ever be a remaster that makes everyone happy? probably not.
but this one can make it trivial to turn this sort of thing on and off before the iso is a dvd or usb.
rpup06.fig.gz
Description 
gz

 Download 
Filename  rpup06.fig.gz 
Filesize  12.51 KB 
Downloaded  8 Time(s) 

_________________
what are your favorite puppy features?
Back to top
View user's profile Send private message 
learnhow2code

Joined: 12 Jun 2016
Posts: 492

PostPosted: Fri 22 Jul 2016, 15:15    Post subject:  

per suggestions from both the puppy community and a refracta dev, this is now called fig os.

i actually wanted to call it refractahrpup to show where it came from. a regular from the puppy community thinks its better without pup in the name (if only because of length) and the refracta dev doesnt mind the project, but doesnt want the name to create confusion. so, fig os it is Smile

a note of thanks to those who have supported this so far.

you know who you are Smile its much appreciated.
mkfigos07.fig.gz
Description 
gz

 Download 
Filename  mkfigos07.fig.gz 
Filesize  12.68 KB 
Downloaded  8 Time(s) 

_________________
what are your favorite puppy features?
Back to top
View user's profile Send private message 
rcrsn51


Joined: 05 Sep 2006
Posts: 10970
Location: Stratford, Ontario

PostPosted: Fri 22 Jul 2016, 16:17    Post subject:  

learnhow2code wrote:
will this break those scripts? probably.
can they be edited further to work without ping? probably.

How do you know this? Did you look at the code to see what purpose the pings were serving? Did you collaborate with the author before breaking his program?
Back to top
View user's profile Send private message 
learnhow2code

Joined: 12 Jun 2016
Posts: 492

PostPosted: Fri 22 Jul 2016, 16:45    Post subject:  

rcrsn51 wrote:
learnhow2code wrote:
will this break those scripts? probably.
can they be edited further to work without ping? probably.

How do you know this? Did you look at the code to see what purpose the pings were serving? Did you collaborate with the author before breaking his program?


this is how:

* i used fig os in puppy mode for about a day, and it worked fine. like any new derivative, it needs more users to find out how reliable it is.

* a (small) number of experienced puppy users seem to think the change is fine

* its trivial to use this remaster script in a way that doesnt change the scripts

* even if you somehow find this iso in the wild, you can simply copy (or link) /bin/ping to /bin/baseping and /bin/ping6 to /bin/baseping6

COPYING THOSE TWO FILES WILL COMPLETELY RESTORE THE PING SCRIPT FUNCTIONALITY. im sure theres a variety of ways this can be done as a feature, but i personally prefer the ping scripts off by default. so do the other users (no, not just one) i did this for.

and thats the only change that was made to the scripts. want to see the part that does it?

Code:
now "sed -i 's/ping/baseping/g' unsq/squashfs-root/usr/local/video_upgrade/video_upgrade_wizard"  shell
now "sed -i 's/ping/baseping/g' unsq/squashfs-root/usr/local/petget/devx_service_pack.sh"  shell
now "sed -i 's/ping/baseping/g' unsq/squashfs-root/usr/local/petget/service_pack.sh"  shell
now "sed -i 's/ping/baseping/g' unsq/squashfs-root/usr/local/yassm/yassm-search"  shell
now "sed -i 's/ping/baseping/g' unsq/squashfs-root/usr/local/apps/pnethood/pnethood"  shell
now "sed -i 's/ping -4/baseping -4/g' unsq/squashfs-root/usr/sbin/Pudd"  shell
now "sed -i 's/ping -c/baseping -c/g' unsq/squashfs-root/usr/share/alsa-base/alsa-info.sh"  shell
now "sed -i 's/ping/baseping/g' unsq/squashfs-root/usr/sbin/getflash"  shell
now "sed -i 's/ping/baseping/g' unsq/squashfs-root/usr/sbin/check_internet"  shell


not elegant, but it works.
Back to top
View user's profile Send private message 
Pete

Joined: 02 Mar 2014
Posts: 430

PostPosted: Fri 22 Jul 2016, 16:50    Post subject:  

@rcrsn51

Why does he have to collaborate with anyone?
He decided to create a project and set his own parameters and does warn potential users that it may break a few things.
It is then up to each potential user to decide if they want to try it or not.

This is Linux, free Linux, free to do with it what you like.
Don't like it? no problem don't use it, it's called freedom of choice.
Back to top
View user's profile Send private message 
learnhow2code

Joined: 12 Jun 2016
Posts: 492

PostPosted: Fri 22 Jul 2016, 16:55    Post subject:  

Pete wrote:
Why does he have to collaborate with anyone?


its actually a ridiculous question if he knows the history of the decision-- because any attempt to collaborate on this was forcefully shut down. even bans were called for.

so collaboration was not a real option even if i wanted to.

no matter how i try to talk about something else, people come and blame me for keeping this going. i tell them its fixed, no need to talk about it-- they tell me people should be banned for talking about it. then they come here and talk about it some more.

but its important to point out that (since there is nothing about it mentioned here) rcrsn51 may have missed all that fun... i dont want to assume, so i might as well answer the question. as for the external ip script, hes right. and you pete, can probably guess what id like to do with that feature. in fact i should check it for wgets and things.
Back to top
View user's profile Send private message 
Pete

Joined: 02 Mar 2014
Posts: 430

PostPosted: Fri 22 Jul 2016, 17:00    Post subject:  

@learnhow2code

You heretic, you.
How dare you mess with sacred code and propose progress. Very Happy
Back to top
View user's profile Send private message 
learnhow2code

Joined: 12 Jun 2016
Posts: 492

PostPosted: Fri 22 Jul 2016, 17:03    Post subject:  

you know, im just trying to show how it can be edited-- to the people that dont want it in their iso. im not uploading it to puppylinux.com, im not writing over the online copy of puppy tahr. ive even made it very easy to turn back on. this whole debacle is about defaults.

tahr is a fine pup, i already said so. but there are things you cant customize without p*ssing off half the town. funny because i take no issue with someone editing the part of mkfigos that edits the part of tahr-- go right ahead! thats honestly what its there for.

_________________
what are your favorite puppy features?
Back to top
View user's profile Send private message 
rcrsn51


Joined: 05 Sep 2006
Posts: 10970
Location: Stratford, Ontario

PostPosted: Fri 22 Jul 2016, 17:26    Post subject:  

Pete wrote:
@rcrsn51
Why does he have to collaborate with anyone?

Common courtesy.
Back to top
View user's profile Send private message 
Pete

Joined: 02 Mar 2014
Posts: 430

PostPosted: Fri 22 Jul 2016, 17:29    Post subject:  

rcrsn51 wrote:
Pete wrote:
@rcrsn51
Why does he have to collaborate with anyone?

Common courtesy.


What is so discourteous about changing someones code that is open sourced without first asking them provided credit is given?

If I write some code, open source it and release it, people can do with it what they like except claim that they originally wrote it.
Learnhow2code never claimed it as his own, he simply modified it to suit his needs and made it available again.
Where is the problem in that?
Back to top
View user's profile Send private message 
learnhow2code

Joined: 12 Jun 2016
Posts: 492

PostPosted: Fri 22 Jul 2016, 18:50    Post subject:  

im glad the puppy community has such a diverse culture. apparently its neatly divided between people who think i shouldnt edit the scripts without talking to the devs, and people who think the devs shouldnt be bothered about it-- not only that, but that talking about it should result in a ban. what kind of catch-22 version of "open source" is this?

and also the people who dont want to say anything about it in public, for obvious reasons. im happy to remove the scripts entirely if that would be more courteous:

Code:
now "rm unsq/squashfs-root/usr/local/video_upgrade/video_upgrade_wizard" shell
now "rm unsq/squashfs-root/usr/local/petget/devx_service_pack.sh"        shell
now "rm unsq/squashfs-root/usr/local/petget/service_pack.sh"             shell
now "rm unsq/squashfs-root/usr/local/yassm/yassm-search"                 shell
now "rm unsq/squashfs-root/usr/local/apps/pnethood/pnethood"             shell
now "rm unsq/squashfs-root/usr/sbin/Pudd"                                shell
now "rm unsq/squashfs-root/usr/share/alsa-base/alsa-info.sh"             shell
now "rm unsq/squashfs-root/usr/sbin/getflash"                            shell
now "rm unsq/squashfs-root/usr/sbin/check_internet"                      shell


however, this is all about people electing to speak on behalf of the devs... it would be better if the devs would simply contact me-- since several people seem to have an issue with me contacting them over this.

Last edited by learnhow2code on Fri 22 Jul 2016, 19:19; edited 2 times in total
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 2 [25 Posts]   Goto page: 1, 2 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Puppy Derivatives
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.2234s ][ Queries: 12 (0.0136s) ][ GZIP on ]