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 19 Aug 2018, 21:26
All times are UTC - 4
 Forum index » Advanced Topics » Puppy Projects
mcorepup ; a script to create corepup
Moderators: Flash, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 2 [23 Posts]   Goto page: 1, 2 Next
Author Message
nosystemdthanks

Joined: 03 May 2018
Posts: 331

PostPosted: Thu 05 Jul 2018, 05:31    Post subject:  mcorepup ; a script to create corepup  

if this were just another concept thread (it is largely a concept thread) i would post this in the corepup thread.

this thread is largely related to corepup, and if it has to be merged there i figure wanderer will be fine with that; ive read through about half of the corepup thread and one thing i can tell you-- wanderer and i have a lot in common.

wanderer wrote:

its not really needed
or actually desirable
if i start making isos
people will just wait for the next iso
and will never learn the system




the present version of corepup is based on coreplus 6.4.1:

http://tinycorelinux.net/6.x/x86/archive/6.4.1/

it produces this iso, which ive got running in ram (details available) on the monitor next to this one: http://smokey01.com/wanderer/corepup-6.iso



i can tell you the difference between these two isos, because i have a tool called distdiff:

these files in corepup and their hashsums:

< 36172640730af955bd17410afeb6ccc9 /boot/core.gz
< 123a3254252f6f0e1885a5e992d76763 /cde/onboot.lst
< dd006344d3489ff17cb3ec21910afb85 /boot/isolinux/isolinux.cfg
< a63ef89b84dafa513041ab049a776527 /boot/isolinux/isolinux.bin

change hashsums to:

> b962559370267eec2ac9242f46b35440 /boot/core.gz
> 484abcd0d80515fab732756d89a34985 /cde/onboot.lst
> a78fff2a84e9edba70b6c2516bf5b254 /boot/isolinux/isolinux.cfg
> dc2e8ebda9cdd24c4f2d4336646348ef /boot/isolinux/isolinux.bin

and apart from those changes, these files are added to create the presently available version of corepup:

leafpad is added: (excellent choice)

> 5072ab3ebb80015d261af6393bdcd3c2 /cde/optional/leafpad.tcz
> 806e226d95b342341b7ba7aab1c224f7 /cde/optional/leafpad.tcz.md5.txt
> 1a63067c0686b724b0f476da72436cc3 /cde/optional/leafpad.tcz.dep

gtk1 is added: (very cool)

> 8a85227d0434a14c8d211596bf8bac8e /cde/optional/gtk1.tcz.md5.txt
> 68a85ad4fb84027de749d9e8c7d74574 /cde/optional/gtk1.tcz.dep
> 3e40448a1acadbfd6a4792297ddd50ab /cde/optional/gtk1.tcz

glib1 is added:

> ce5ef5a42a222464b6d4ef1649d45cd8 /cde/optional/glib1.tcz
> 500692842724022d846c32408303eb72 /cde/optional/glib1.tcz.md5.txt

emelfm is added:

> 0e3da35f474d8ac9c23baa73e50ae93f /cde/optional/emelfm.tcz
> b097947487b4e77b604b6927eb193cca /cde/optional/emelfm.tcz.dep
> 095795fa5c6f371dd41007de573e2085 /cde/optional/emelfm.tcz.md5.txt

dillo is added:

> 56c46e01c6b6be56881e4a1b437d413f /cde/optional/dillo.tcz
> d94e570bab119deeb512299ab257c0a2 /cde/optional/dillo.tcz.md5.txt
> 6a31b66e0a749242f7c05631c2cd7e6c /cde/optional/dillo.tcz.dep

and this file called corepup.tcz is added:

> 25f0d8bdb27224abe72c9df6b783fc90 /cde/optional/corepup.tcz



just as most of the differences in two debian-based livecds would be in the squashfs (which distdiff mounts and compares) most of the differences in corepup are in these archives.

while it may appear that i am looking to duplicate corepup (why?) i am actually trying to create a corepup-making machine.

i am aware that wanderer is likely to continue using isomaster and doing this "by hand," some of that "by hand" stuff is only going to apply to coreplus 6.4.1; im not sure how much of it is documented, or how easy it will be to move to later versions of coreplus (such as 9.)

if it turns out that the only important part of this is actually corepup.tcz and core.gz, thats great! that means this gets a lot easier.

my approach will be largely the same then, only it will be easier to work on. at the moment, i am working under the assumption that there is actually more to this than corepup.tcz and core.gz.



the other thread has 40 pages, and i am already adding to those. i hope this thread will make the other thread easier to manage; i believe it is its own topic, even if it is related.

http://murga-linux.com/puppy/viewtopic.php?p=995523#995523
wanderer wrote:
that is the beauty of this system
and why I posted the official tinycore isos

just download one of the official isos
and add apps (or other stuff) to the iso
by downloading or making a tcz

the only 2 other files that I change
are syslinux.cfg in the boot directory
and tc-config in the core.gz image

syslinux.cfg sets up the boot loader to load to the corepup version
and tc-config sets up the services
like init in puppy

I leave the rest alone to keep things simple
and maintain compatibility with tinycore




this approach of wanderers, of work on something and occasionally explain it, is something i like. thats the concept of this thread too. let me know if you have questions-- bonus points if the first reply is thoughtful (wanderers thread is very open to comments, this one might as well try to be similar in what it accepts.)

however, i am not wanderer. he has the patience of 10 saints, while i am probably working on too many things right now to care if this thread goes well or not. but that would certainly be nice.



i have also talked about "restructuring puppy" and at present, im waiting for more details on that from or dancytron. presently, im not sure if i understood him in the first place, but i thought i did.

_________________
strengthen the public domain, use free culture/free sw licenses and cc0
Back to top
View user's profile Send private message Visit poster's website 
wanderer

Joined: 20 Oct 2007
Posts: 727

PostPosted: Thu 05 Jul 2018, 09:41    Post subject:  

hi nosystemdthanks

this thread is totally cool

allow me to be the first to add to it

I have (of course) read the first post
and look forward to your work

wanderer
Back to top
View user's profile Send private message 
nosystemdthanks

Joined: 03 May 2018
Posts: 331

PostPosted: Thu 05 Jul 2018, 10:56    Post subject:  

thank you.

you know a bit of your modesty is misleading-- i have read 3/4 the way through your corepup thread, i am finding my own posts in there now.

but i realise that even though you have made a relatively noob-friendly way to create some of the puppy experience with a different base, there is a little more to it than i thought.

i still think youre doing a great job and i agree that your approach is to keep things as simple as possible.

im finding more answers to my own questions now, but im sure i will have questions. one of the best things about mcorepup will be making it easier to document how corepup is made and how it works.

right now i have the boot menu up on the screen next to mine. im working on mcorepup on the machine im typing this on, but i try the results on a different machine without rebooting this one.

i dont have a machine dedicated to mcorepup, but i do have a spindrive dedicated to it. again, thanks.

_________________
strengthen the public domain, use free culture/free sw licenses and cc0
Back to top
View user's profile Send private message Visit poster's website 
rockedge


Joined: 11 Apr 2012
Posts: 733
Location: Connecticut, United States

PostPosted: Thu 05 Jul 2018, 11:13    Post subject:  

I am ready to test out the corepup concept.....which ISO should I start with?
Back to top
View user's profile Send private message Visit poster's website 
nosystemdthanks

Joined: 03 May 2018
Posts: 331

PostPosted: Thu 05 Jul 2018, 12:02    Post subject:  

rockedge wrote:
I am ready to test out the corepup concept.....which ISO should I start with?


id recommend this one: http://smokey01.com/wanderer/corepup-6.iso

also note this thread has far more information so far: http://murga-linux.com/puppy/viewtopic.php?t=108188 though if youre trying to find a shortcut, read the first post and then skip to page 20.

_________________
strengthen the public domain, use free culture/free sw licenses and cc0

Last edited by nosystemdthanks on Tue 24 Jul 2018, 05:12; edited 4 times in total
Back to top
View user's profile Send private message Visit poster's website 
wanderer

Joined: 20 Oct 2007
Posts: 727

PostPosted: Thu 05 Jul 2018, 12:42    Post subject:  

hi all

corepup is simple

but cleverly designed

and in that simplicity of design lies its power

like a knife

there is no end of things you can do with it

I like to use it to make unique puppylike isos in minutes


thank you very much nosystemdthanks


wanderer
Back to top
View user's profile Send private message 
nosystemdthanks

Joined: 03 May 2018
Posts: 331

PostPosted: Thu 05 Jul 2018, 13:22    Post subject:  

two things i can help you with wanderer, are finding features of tinycore youre less familiar with. years have passed since i previously used tc, but roberts told me about it when it was very new.

i might even be able to help you with installation / iso issues, because i dont bother with a bootloader at all. i just run isohybrid on the corepup, and then instead of fiddling with second bootloader i dd the iso directly to a usb.

the dd method is good because you dont need to create a partition on the usb to boot; just run dd, this will create the partition for you. you will still need to create a second partition IF you want to use the rest of the space on the usb. maybe this isnt the best "first option" for installing, but its nice to have as second option.

when i get further into these files i can say more about them.

keep up the good work. also optional-- i would recommend you sign up here: https://notabug.org so you (and others) can contribute scripts to corepup...

of course they can use the forum for that too.

i recommend notabug over github as the latter is now owned by microsoft. notabug and sourceforge are both easy to use-- notabug is a lot easier to get started though, you basically just register with your email and youre ready.

you dont need to have a code repo like this, but id recommend starting one, its free.

_________________
strengthen the public domain, use free culture/free sw licenses and cc0
Back to top
View user's profile Send private message Visit poster's website 
nosystemdthanks

Joined: 03 May 2018
Posts: 331

PostPosted: Fri 06 Jul 2018, 00:52    Post subject:  

nosystemdthanks wrote:
i might even be able to help you with installation / iso issues, because i dont bother with a bootloader at all. i just run isohybrid on the corepup, and then instead of fiddling with second bootloader i dd the iso directly to a usb.


or per the corepup thread, http://murga-linux.com/puppy/viewtopic.php?p=996565#996565 i try out getting grub2 to boot from the iso, and actually succeed.

first i installed grub2 from fig os-- but any existing grub2 installation should do. the post in the other thread is about grub4dos.

i copied corepup-6.iso to / (which is /dev/sda1) and i opened /boot/grub/grub.cfg and changed the first menuentry to this: (TAB means actual tab character, you should be able to use spaces)

menuentry 'corepup' {
TAB load_video
TAB set gfxpayload=keep
TAB insmod gzio
TAB insmod ext2
TAB set iso=/corepup-6.iso
TAB loopback loop ${iso}
TAB echo 'loading corepup kernel...'
TAB linux (loop)/boot/vmlinuz loglevel=3 iso=(loop)/corepup-6.iso cde tce=(loop)/tce showapps desktop=icewm isoloop=${iso}
TAB echo 'loading corepup initrd...'
TAB initrd (loop)/boot/core.gz
}



it takes me to the vt where i figure i need to read about cde vs tce and try creating a folder like in the post i linked to.

mount the cd and copy everything from the tce folder to /tce on the hdd.



i have to turn off this beeping, because im in the vt and i want to use tab. setterm is not included in corepup, but its included in void. so i copy it?

no, setterm produces escape codes. but it only runs from the vt, so i switch to that (in fig os) and setterm -blength 0 > file.txt ; cat file.txt | alex23.py --ascii

i get 27 91 49 49 59 48 93. in octal thats 033 133 061 061 073 060 135 (says python) so we try echo -e "\\033\\133\\061\\061\\073\\060\\135" in corepup...

it stops beeping! however you have to run it again if you run the reset command.

_________________
strengthen the public domain, use free culture/free sw licenses and cc0
Back to top
View user's profile Send private message Visit poster's website 
nosystemdthanks

Joined: 03 May 2018
Posts: 331

PostPosted: Sun 08 Jul 2018, 04:25    Post subject:  

its not as far along as i would like-- i got it to do probably 90% of what i would like it to do for version 0.1.

right now it is powerful enough to help out wanderer with his isomaster problems, if he wants to learn to use it. this isnt meant to explain itself, download it and ask the questions you want to.

i dont like to remaster manually. i like to do that automatically. that way instead of moving files around, i edit the automation.

also instead of distributing iso files, you can distribute the script. since most of the iso is the base, this lets you download the iso, then changes can be done without downloading it again.
mcorepup01.fig.gz
Description  may work with fig-2.9.pet: https://archive.org/download/Puppy_Linux_Refractapup/fig-2.9.pet
gz

 Download 
Filename  mcorepup01.fig.gz 
Filesize  52.55 KB 
Downloaded  67 Time(s) 

_________________
strengthen the public domain, use free culture/free sw licenses and cc0
Back to top
View user's profile Send private message Visit poster's website 
nosystemdthanks

Joined: 03 May 2018
Posts: 331

PostPosted: Mon 09 Jul 2018, 08:51    Post subject:  

mcorepup 0.1 produces corepup-6.
mcorepup 0.2 produces corepup-7.

the "times 10, plus 5" thing isnt a rule, though. there could be more than one mcorepup per corepup.
mcorepup02.fig.gz
Description 
gz

 Download 
Filename  mcorepup02.fig.gz 
Filesize  50.83 KB 
Downloaded  57 Time(s) 

_________________
strengthen the public domain, use free culture/free sw licenses and cc0
Back to top
View user's profile Send private message Visit poster's website 
nosystemdthanks

Joined: 03 May 2018
Posts: 331

PostPosted: Wed 11 Jul 2018, 01:49    Post subject:  

not too happy with the shorter manual-- i mean its fine, i just didnt make it as short as i hoped. at least it includes information about mcorepup.

i think it will be faster and more useful and relevant.

if you want to mess with the layout i will include the odt.
mcorefig.odt.gz
Description 
gz

 Download 
Filename  mcorefig.odt.gz 
Filesize  36.03 KB 
Downloaded  13 Time(s) 
mcorefig.pdf.gz
Description 
gz

 Download 
Filename  mcorefig.pdf.gz 
Filesize  116.5 KB 
Downloaded  44 Time(s) 

_________________
strengthen the public domain, use free culture/free sw licenses and cc0
Back to top
View user's profile Send private message Visit poster's website 
nosystemdthanks

Joined: 03 May 2018
Posts: 331

PostPosted: Sun 15 Jul 2018, 17:31    Post subject:  

these are from corepup-8.iso
boot.msg.gz
Description 
gz

 Download 
Filename  boot.msg.gz 
Filesize  529 Bytes 
Downloaded  48 Time(s) 
f4.gz
Description 
gz

 Download 
Filename  f4.gz 
Filesize  929 Bytes 
Downloaded  49 Time(s) 
f3.gz
Description 
gz

 Download 
Filename  f3.gz 
Filesize  1.03 KB 
Downloaded  47 Time(s) 
f2.gz
Description 
gz

 Download 
Filename  f2.gz 
Filesize  870 Bytes 
Downloaded  52 Time(s) 

_________________
strengthen the public domain, use free culture/free sw licenses and cc0
Back to top
View user's profile Send private message Visit poster's website 
aaaaa


Joined: 22 May 2018
Posts: 20

PostPosted: Sun 15 Jul 2018, 18:54    Post subject:  

I downloaded the script and was shocked to find it's a python script.

Somehow the thoughts of ubuntu flood my mind

Even systemd comes to mind

But i'll run the script anyway to see the results, thanks

Hmm i get this error, how do i fix it?

# python mcorepup02.fig.gz.py
File "mcorepup02.fig.gz.py", line 70
fastcomp 0
^
SyntaxError: invalid syntax
Back to top
View user's profile Send private message 
nosystemdthanks

Joined: 03 May 2018
Posts: 331

PostPosted: Sun 15 Jul 2018, 20:46    Post subject:  

aaaaa wrote:
I downloaded the script and was shocked to find it's a python script.


very close

Quote:
Somehow the thoughts of ubuntu


interesting, why ubuntu?

Quote:
Even systemd comes to mind


hmm...

Quote:
i get this error, how do i fix it?

# python mcorepup02.fig.gz.py
File "mcorepup02.fig.gz.py", line 70
fastcomp 0
^
SyntaxError: invalid syntax




i need to move lines 44-51 up closer to the top again:

Code:
# ===========================================================
# you will need python 2, and fig 2.x or 4.x to run mcorepup.
# you can download fig 4.6 here:
# https://notabug.org/figosdev/figos/raw/master/fig46.py
# ===========================================================

# this is a python-based language ; it does not require indentation
# only inline python code needs indenting




# fig46.py mcorepup02.fig

# ./mcorepup02.fig.py

the forum requires adding .gz but fig 4.6 requires .fig



id recommend running this from /mnt/mcorepup too

manual is fairly new: http://murga-linux.com/puppy/viewtopic.php?mode=attach&id=117617

_________________
strengthen the public domain, use free culture/free sw licenses and cc0
Back to top
View user's profile Send private message Visit poster's website 
nosystemdthanks

Joined: 03 May 2018
Posts: 331

PostPosted: Mon 16 Jul 2018, 03:36    Post subject:  

mcorepup 0.3

creates corepup-8.iso

could likely create corepup-7.iso too if you follow the instructions
mcorepup03.fig.gz
Description 
gz

 Download 
Filename  mcorepup03.fig.gz 
Filesize  53.98 KB 
Downloaded  49 Time(s) 

_________________
strengthen the public domain, use free culture/free sw licenses and cc0
Back to top
View user's profile Send private message Visit poster's website 
Display posts from previous:   Sort by:   
Page 1 of 2 [23 Posts]   Goto page: 1, 2 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Puppy Projects
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.0768s ][ Queries: 13 (0.0080s) ][ GZIP on ]